]> git.saurik.com Git - cycript.git/blob - configure
Simplify autogen.sh by just updating configure.ac.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='Cycript'
592 PACKAGE_TARNAME='cycript'
593 PACKAGE_VERSION='0.9'
594 PACKAGE_STRING='Cycript 0.9'
595 PACKAGE_BUGREPORT='saurik@saurik.com'
596 PACKAGE_URL='http://www.cycript.org/'
597
598 ac_unique_file="Console.cpp"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='LTLIBOBJS
636 LIBOBJS
637 CY_ATTACH_GROUP
638 CY_OBJECTIVEC_MACH
639 ac_ct__NM
640 _NM
641 ac_ct__LIPO
642 _LIPO
643 ac_ct__OTOOL
644 _OTOOL
645 SO
646 LTLIBICONV
647 LIBICONV
648 GNUSTEP_CONFIG
649 CY_OBJECTIVEC
650 LIBFFI_LIBS
651 LIBFFI_CFLAGS
652 CY_EXECUTE
653 WEBKIT_LIBS
654 WEBKIT_CFLAGS
655 LTLIBAPR
656 ac_ct_OBJCXX
657 OBJCXXFLAGS
658 OBJCXX
659 CXXCPP
660 ac_ct_CXX
661 CXXFLAGS
662 CXX
663 GIT
664 GNUTAR
665 INSTALL_DATA
666 INSTALL_SCRIPT
667 INSTALL_PROGRAM
668 GPERF
669 FLEX
670 BISON
671 TIME
672 _BASH
673 LTFLAGS
674 GMAKE
675 ifGNUmake
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CPP
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 MANIFEST_TOOL
686 RANLIB
687 STRIP
688 ac_ct_AR
689 AR
690 DLLTOOL
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LD
697 FGREP
698 EGREP
699 GREP
700 SED
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_static
759 enable_shared
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_universal_binary
766 with_frameworks
767 with_apr
768 enable_javascript
769 enable_rpath
770 with_libiconv_prefix
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 PKG_CONFIG
782 PKG_CONFIG_PATH
783 PKG_CONFIG_LIBDIR
784 BISON
785 FLEX
786 GPERF
787 CXX
788 CXXFLAGS
789 CCC
790 CXXCPP
791 OBJCXX
792 OBJCXXFLAGS
793 WEBKIT_CFLAGS
794 WEBKIT_LIBS
795 LIBFFI_CFLAGS
796 LIBFFI_LIBS
797 GNUSTEP_CONFIG'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of Cycript 0.9:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-static[=PKGS] build static libraries [default=no]
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --disable-universal-binary
1417 do not build with universal binary support on Darwin
1418 --enable-javascript[=ENGINE]
1419 use a JavaScript runtime (currently the only
1420 available option for ENGINE is JavaScriptCore)
1421 [default=yes]
1422 --disable-rpath do not hardcode runtime library paths
1423
1424 Optional Packages:
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428 both]
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1432 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1433 path for frameworks with -F
1434 --with-apr=PATH prefix for installed APR or the full path to
1435 apr-config
1436 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1438 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1439
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 CPP C preprocessor
1449 PKG_CONFIG path to pkg-config utility
1450 PKG_CONFIG_PATH
1451 directories to add to pkg-config's search path
1452 PKG_CONFIG_LIBDIR
1453 path overriding pkg-config's built-in search path
1454 BISON GNU Project parser generator (yacc replacement)
1455 FLEX the fast lexical analyser generator
1456 GPERF perfect hash function generator
1457 CXX C++ compiler command
1458 CXXFLAGS C++ compiler flags
1459 CXXCPP C++ preprocessor
1460 OBJCXX Objective C++ compiler command
1461 OBJCXXFLAGS Objective C++ compiler flags
1462 WEBKIT_CFLAGS
1463 C compiler flags for WEBKIT, overriding pkg-config
1464 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1465 LIBFFI_CFLAGS
1466 C compiler flags for LIBFFI, overriding pkg-config
1467 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1468 GNUSTEP_CONFIG
1469 prints information about the current gnustep installation
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <saurik@saurik.com>.
1475 Cycript home page: <http://www.cycript.org/>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 Cycript configure 0.9
1539 generated by GNU Autoconf 2.69
1540
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_compile
1589
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 test -x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_link
1635
1636 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637 # -------------------------------------------------------
1638 # Tests whether HEADER exists and can be compiled using the include files in
1639 # INCLUDES, setting the cache variable VAR accordingly.
1640 ac_fn_c_check_header_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1650 $4
1651 #include <$2>
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655 else
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_cpp LINENO
1668 # ----------------------
1669 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_cpp ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } > conftest.i && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_cpp
1703
1704 # ac_fn_c_try_run LINENO
1705 # ----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707 # that executables *can* be run.
1708 ac_fn_c_try_run ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
1739 fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_run
1745
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1750 {
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1767
1768 #ifdef __STDC__
1769 # include <limits.h>
1770 #else
1771 # include <assert.h>
1772 #endif
1773
1774 #undef $2
1775
1776 /* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779 #ifdef __cplusplus
1780 extern "C"
1781 #endif
1782 char $2 ();
1783 /* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786 #if defined __stub_$2 || defined __stub___$2
1787 choke me
1788 #endif
1789
1790 int
1791 main ()
1792 {
1793 return $2 ();
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1802 fi
1803 rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_func
1812
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_cxx_try_compile
1850
1851 # ac_fn_cxx_try_cpp LINENO
1852 # ------------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_cpp ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1870 fi
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } > conftest.i && {
1873 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1885
1886 } # ac_fn_cxx_try_cpp
1887
1888 # ac_fn_cxx_try_link LINENO
1889 # -------------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_link ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 rm -f conftest.$ac_objext conftest$ac_exeext
1895 if { { ac_try="$ac_link"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && {
1911 test -z "$ac_cxx_werror_flag" ||
1912 test ! -s conftest.err
1913 } && test -s conftest$ac_exeext && {
1914 test "$cross_compiling" = yes ||
1915 test -x conftest$ac_exeext
1916 }; then :
1917 ac_retval=0
1918 else
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923 fi
1924 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926 # interfere with the next link command; also delete a directory that is
1927 # left behind by Apple's compiler. We do this before executing the actions.
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1931
1932 } # ac_fn_cxx_try_link
1933
1934 # ac_fn_objcxx_try_compile LINENO
1935 # -------------------------------
1936 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_objcxx_try_compile ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext
1941 if { { ac_try="$ac_compile"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_compile") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_objcxx_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest.$ac_objext; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_objcxx_try_compile
1971
1972 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # ---------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1976 # accordingly.
1977 ac_fn_cxx_check_header_mongrel ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if eval \${$3+:} false; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 fi
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 else
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_cxx_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2000 else
2001 ac_header_compiler=no
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2006
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_cxx_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2016 else
2017 ac_header_preproc=no
2018 fi
2019 rm -f conftest.err conftest.i conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2022
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2025 yes:no: )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 ;;
2031 no:yes:* )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 ( $as_echo "## -------------------------------- ##
2043 ## Report this to saurik@saurik.com ##
2044 ## -------------------------------- ##"
2045 ) | sed "s/^/$as_me: WARNING: /" >&2
2046 ;;
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_cxx_check_header_mongrel
2062
2063 # ac_fn_objcxx_try_link LINENO
2064 # ----------------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_objcxx_try_link ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext conftest$ac_exeext
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2083 fi
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_objcxx_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest$ac_exeext && {
2089 test "$cross_compiling" = yes ||
2090 test -x conftest$ac_exeext
2091 }; then :
2092 ac_retval=0
2093 else
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_retval=1
2098 fi
2099 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2100 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2101 # interfere with the next link command; also delete a directory that is
2102 # left behind by Apple's compiler. We do this before executing the actions.
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 as_fn_set_status $ac_retval
2106
2107 } # ac_fn_objcxx_try_link
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by Cycript $as_me 0.9, which was
2113 generated by GNU Autoconf 2.69. Invocation command line was
2114
2115 $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133
2134 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2135 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2138 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2139 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2140 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 $as_echo "PATH: $as_dir"
2150 done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176 for ac_arg
2177 do
2178 case $ac_arg in
2179 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181 | -silent | --silent | --silen | --sile | --sil)
2182 continue ;;
2183 *\'*)
2184 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185 esac
2186 case $ac_pass in
2187 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 2)
2189 as_fn_append ac_configure_args1 " '$ac_arg'"
2190 if test $ac_must_keep_next = true; then
2191 ac_must_keep_next=false # Got value, back to normal.
2192 else
2193 case $ac_arg in
2194 *=* | --config-cache | -C | -disable-* | --disable-* \
2195 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197 | -with-* | --with-* | -without-* | --without-* | --x)
2198 case "$ac_configure_args0 " in
2199 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200 esac
2201 ;;
2202 -* ) ac_must_keep_next=true ;;
2203 esac
2204 fi
2205 as_fn_append ac_configure_args " '$ac_arg'"
2206 ;;
2207 esac
2208 done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log. We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219 # Save into config.log some information that might help in debugging.
2220 {
2221 echo
2222
2223 $as_echo "## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##"
2226 echo
2227 # The following way of writing the cache mishandles newlines in values,
2228 (
2229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in #(
2232 *${as_nl}*)
2233 case $ac_var in #(
2234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2236 esac
2237 case $ac_var in #(
2238 _ | IFS | as_nl) ;; #(
2239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2240 *) { eval $ac_var=; unset $ac_var;} ;;
2241 esac ;;
2242 esac
2243 done
2244 (set) 2>&1 |
2245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2246 *${as_nl}ac_space=\ *)
2247 sed -n \
2248 "s/'\''/'\''\\\\'\'''\''/g;
2249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2250 ;; #(
2251 *)
2252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253 ;;
2254 esac |
2255 sort
2256 )
2257 echo
2258
2259 $as_echo "## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##"
2262 echo
2263 for ac_var in $ac_subst_vars
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272
2273 if test -n "$ac_subst_files"; then
2274 $as_echo "## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##"
2277 echo
2278 for ac_var in $ac_subst_files
2279 do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in
2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 esac
2284 $as_echo "$ac_var='\''$ac_val'\''"
2285 done | sort
2286 echo
2287 fi
2288
2289 if test -s confdefs.h; then
2290 $as_echo "## ----------- ##
2291 ## confdefs.h. ##
2292 ## ----------- ##"
2293 echo
2294 cat confdefs.h
2295 echo
2296 fi
2297 test "$ac_signal" != 0 &&
2298 $as_echo "$as_me: caught signal $ac_signal"
2299 $as_echo "$as_me: exit $exit_status"
2300 } >&5
2301 rm -f core *.core core.conftest.* &&
2302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2303 exit $exit_status
2304 ' 0
2305 for ac_signal in 1 2 13 15; do
2306 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2307 done
2308 ac_signal=0
2309
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2312
2313 $as_echo "/* confdefs.h */" > confdefs.h
2314
2315 # Predefined preprocessor variables.
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_NAME "$PACKAGE_NAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_STRING "$PACKAGE_STRING"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_URL "$PACKAGE_URL"
2339 _ACEOF
2340
2341
2342 # Let the site file select an alternate cache file if it wants to.
2343 # Prefer an explicitly selected file to automatically selected ones.
2344 ac_site_file1=NONE
2345 ac_site_file2=NONE
2346 if test -n "$CONFIG_SITE"; then
2347 # We do not want a PATH search for config.site.
2348 case $CONFIG_SITE in #((
2349 -*) ac_site_file1=./$CONFIG_SITE;;
2350 */*) ac_site_file1=$CONFIG_SITE;;
2351 *) ac_site_file1=./$CONFIG_SITE;;
2352 esac
2353 elif test "x$prefix" != xNONE; then
2354 ac_site_file1=$prefix/share/config.site
2355 ac_site_file2=$prefix/etc/config.site
2356 else
2357 ac_site_file1=$ac_default_prefix/share/config.site
2358 ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362 test "x$ac_site_file" = xNONE && continue
2363 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366 sed 's/^/| /' "$ac_site_file" >&5
2367 . "$ac_site_file" \
2368 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 as_fn_error $? "failed to load site script $ac_site_file
2371 See \`config.log' for more details" "$LINENO" 5; }
2372 fi
2373 done
2374
2375 if test -r "$cache_file"; then
2376 # Some versions of bash will fail to source /dev/null (special files
2377 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2378 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2380 $as_echo "$as_me: loading cache $cache_file" >&6;}
2381 case $cache_file in
2382 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383 *) . "./$cache_file";;
2384 esac
2385 fi
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2388 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389 >$cache_file
2390 fi
2391
2392 # Check that the precious variables saved in the cache have kept the same
2393 # value.
2394 ac_cache_corrupted=false
2395 for ac_var in $ac_precious_vars; do
2396 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2397 eval ac_new_set=\$ac_env_${ac_var}_set
2398 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2399 eval ac_new_val=\$ac_env_${ac_var}_value
2400 case $ac_old_set,$ac_new_set in
2401 set,)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,set)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,);;
2410 *)
2411 if test "x$ac_old_val" != "x$ac_new_val"; then
2412 # differences in whitespace do not lead to failure.
2413 ac_old_val_w=`echo x $ac_old_val`
2414 ac_new_val_w=`echo x $ac_new_val`
2415 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2417 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2418 ac_cache_corrupted=:
2419 else
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2421 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2422 eval $ac_var=\$ac_old_val
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2425 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2427 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2428 fi;;
2429 esac
2430 # Pass precious variables to config.status.
2431 if test "$ac_new_set" = set; then
2432 case $ac_new_val in
2433 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2434 *) ac_arg=$ac_var=$ac_new_val ;;
2435 esac
2436 case " $ac_configure_args " in
2437 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2438 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439 esac
2440 fi
2441 done
2442 if $ac_cache_corrupted; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2446 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2447 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 fi
2449 ## -------------------- ##
2450 ## Main body of script. ##
2451 ## -------------------- ##
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
2459
2460 #AC_CONFIG_MACRO_DIR([m4])
2461
2462 ac_aux_dir=
2463 for ac_dir in . "$srcdir"/.; do
2464 if test -f "$ac_dir/install-sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 break
2468 elif test -f "$ac_dir/install.sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 break
2472 elif test -f "$ac_dir/shtool"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 break
2476 fi
2477 done
2478 if test -z "$ac_aux_dir"; then
2479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2480 fi
2481
2482 # These three variables are undocumented and unsupported,
2483 # and are intended to be withdrawn in a future Autoconf release.
2484 # They can cause serious problems if a builder's source tree is in a directory
2485 # whose full name contains unusual characters.
2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489
2490
2491 case `pwd` in
2492 *\ * | *\ *)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2494 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2495 esac
2496
2497
2498
2499 macro_version='2.4.2'
2500 macro_revision='1.3337'
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514 ltmain="$ac_aux_dir/ltmain.sh"
2515
2516 # Make sure we can run config.sub.
2517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2518 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2521 $as_echo_n "checking build system type... " >&6; }
2522 if ${ac_cv_build+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 ac_build_alias=$build_alias
2526 test "x$ac_build_alias" = x &&
2527 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2528 test "x$ac_build_alias" = x &&
2529 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2530 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2532
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2535 $as_echo "$ac_cv_build" >&6; }
2536 case $ac_cv_build in
2537 *-*-*) ;;
2538 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2539 esac
2540 build=$ac_cv_build
2541 ac_save_IFS=$IFS; IFS='-'
2542 set x $ac_cv_build
2543 shift
2544 build_cpu=$1
2545 build_vendor=$2
2546 shift; shift
2547 # Remember, the first character of IFS is used to create $*,
2548 # except with old shells:
2549 build_os=$*
2550 IFS=$ac_save_IFS
2551 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2552
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2555 $as_echo_n "checking host system type... " >&6; }
2556 if ${ac_cv_host+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test "x$host_alias" = x; then
2560 ac_cv_host=$ac_cv_build
2561 else
2562 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2564 fi
2565
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2568 $as_echo "$ac_cv_host" >&6; }
2569 case $ac_cv_host in
2570 *-*-*) ;;
2571 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2572 esac
2573 host=$ac_cv_host
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_host
2576 shift
2577 host_cpu=$1
2578 host_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 host_os=$*
2583 IFS=$ac_save_IFS
2584 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 # Backslashify metacharacters that are still active within
2588 # double-quoted strings.
2589 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2590
2591 # Same as above, but do not quote variable references.
2592 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2593
2594 # Sed substitution to delay expansion of an escaped shell variable in a
2595 # double_quote_subst'ed string.
2596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2597
2598 # Sed substitution to delay expansion of an escaped single quote.
2599 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2600
2601 # Sed substitution to avoid accidental globbing in evaled expressions
2602 no_glob_subst='s/\*/\\\*/g'
2603
2604 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2609 $as_echo_n "checking how to print strings... " >&6; }
2610 # Test print first, because it will be a builtin if present.
2611 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2613 ECHO='print -r --'
2614 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2615 ECHO='printf %s\n'
2616 else
2617 # Use this function as a fallback that always works.
2618 func_fallback_echo ()
2619 {
2620 eval 'cat <<_LTECHO_EOF
2621 $1
2622 _LTECHO_EOF'
2623 }
2624 ECHO='func_fallback_echo'
2625 fi
2626
2627 # func_echo_all arg...
2628 # Invoke $ECHO with all args, space-separated.
2629 func_echo_all ()
2630 {
2631 $ECHO ""
2632 }
2633
2634 case "$ECHO" in
2635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2636 $as_echo "printf" >&6; } ;;
2637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2638 $as_echo "print -r" >&6; } ;;
2639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2640 $as_echo "cat" >&6; } ;;
2641 esac
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656 ac_ext=c
2657 ac_cpp='$CPP $CPPFLAGS'
2658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661 if test -n "$ac_tool_prefix"; then
2662 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_CC+:} false; then :
2667 $as_echo_n "(cached) " >&6
2668 else
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2692 $as_echo "$CC" >&6; }
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_CC"; then
2701 ac_ct_CC=$CC
2702 # Extract the first word of "gcc", so it can be a program name with args.
2703 set dummy gcc; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$ac_ct_CC"; then
2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_ac_ct_CC="gcc"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730 if test -n "$ac_ct_CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2732 $as_echo "$ac_ct_CC" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738 if test "x$ac_ct_CC" = x; then
2739 CC=""
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747 CC=$ac_ct_CC
2748 fi
2749 else
2750 CC="$ac_cv_prog_CC"
2751 fi
2752
2753 if test -z "$CC"; then
2754 if test -n "$ac_tool_prefix"; then
2755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2756 set dummy ${ac_tool_prefix}cc; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_CC+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$CC"; then
2763 ac_cv_prog_CC="$CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772 ac_cv_prog_CC="${ac_tool_prefix}cc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2785 $as_echo "$CC" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791
2792 fi
2793 fi
2794 if test -z "$CC"; then
2795 # Extract the first word of "cc", so it can be a program name with args.
2796 set dummy cc; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 ac_prog_rejected=no
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2814 ac_prog_rejected=yes
2815 continue
2816 fi
2817 ac_cv_prog_CC="cc"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 if test $ac_prog_rejected = yes; then
2826 # We found a bogon in the path, so make sure we never use it.
2827 set dummy $ac_cv_prog_CC
2828 shift
2829 if test $# != 0; then
2830 # We chose a different compiler from the bogus one.
2831 # However, it has the same basename, so the bogon will be chosen
2832 # first if we set CC to just the basename; use the full file name.
2833 shift
2834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2835 fi
2836 fi
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2842 $as_echo "$CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849 fi
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 for ac_prog in cl.exe
2853 do
2854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2855 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880 fi
2881 CC=$ac_cv_prog_CC
2882 if test -n "$CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2884 $as_echo "$CC" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888 fi
2889
2890
2891 test -n "$CC" && break
2892 done
2893 fi
2894 if test -z "$CC"; then
2895 ac_ct_CC=$CC
2896 for ac_prog in cl.exe
2897 do
2898 # Extract the first word of "$ac_prog", so it can be a program name with args.
2899 set dummy $ac_prog; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$ac_ct_CC"; then
2906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_CC="$ac_prog"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2926 if test -n "$ac_ct_CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2928 $as_echo "$ac_ct_CC" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 test -n "$ac_ct_CC" && break
2936 done
2937
2938 if test "x$ac_ct_CC" = x; then
2939 CC=""
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 CC=$ac_ct_CC
2948 fi
2949 fi
2950
2951 fi
2952
2953
2954 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956 as_fn_error $? "no acceptable C compiler found in \$PATH
2957 See \`config.log' for more details" "$LINENO" 5; }
2958
2959 # Provide some information about the compiler.
2960 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2961 set X $ac_compile
2962 ac_compiler=$2
2963 for ac_option in --version -v -V -qversion; do
2964 { { ac_try="$ac_compiler $ac_option >&5"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2972 ac_status=$?
2973 if test -s conftest.err; then
2974 sed '10a\
2975 ... rest of stderr output deleted ...
2976 10q' conftest.err >conftest.er1
2977 cat conftest.er1 >&5
2978 fi
2979 rm -f conftest.er1 conftest.err
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }
2982 done
2983
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2986
2987 int
2988 main ()
2989 {
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
2999 # of exeext.
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3001 $as_echo_n "checking whether the C compiler works... " >&6; }
3002 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003
3004 # The possible output files:
3005 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3006
3007 ac_rmfiles=
3008 for ac_file in $ac_files
3009 do
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3012 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013 esac
3014 done
3015 rm -f $ac_rmfiles
3016
3017 if { { ac_try="$ac_link_default"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_link_default") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3031 # so that the user can short-circuit this test for compilers unknown to
3032 # Autoconf.
3033 for ac_file in $ac_files ''
3034 do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3038 ;;
3039 [ab].out )
3040 # We found the default executable, but exeext='' is most
3041 # certainly right.
3042 break;;
3043 *.* )
3044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3045 then :; else
3046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047 fi
3048 # We set ac_cv_exeext here because the later test for it is not
3049 # safe: cross compilers may not add the suffix if given an `-o'
3050 # argument, so we may need to know it at that point already.
3051 # Even if this section looks crufty: it has the advantage of
3052 # actually working.
3053 break;;
3054 * )
3055 break;;
3056 esac
3057 done
3058 test "$ac_cv_exeext" = no && ac_cv_exeext=
3059
3060 else
3061 ac_file=''
3062 fi
3063 if test -z "$ac_file"; then :
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 $as_echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error 77 "C compiler cannot create executables
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075 $as_echo "yes" >&6; }
3076 fi
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3078 $as_echo_n "checking for C compiler default output file name... " >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3080 $as_echo "$ac_file" >&6; }
3081 ac_exeext=$ac_cv_exeext
3082
3083 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3084 ac_clean_files=$ac_clean_files_save
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3086 $as_echo_n "checking for suffix of executables... " >&6; }
3087 if { { ac_try="$ac_link"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3099 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3100 # work properly (i.e., refer to `conftest.exe'), while it won't with
3101 # `rm'.
3102 for ac_file in conftest.exe conftest conftest.*; do
3103 test -f "$ac_file" || continue
3104 case $ac_file in
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3106 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 break;;
3108 * ) break;;
3109 esac
3110 done
3111 else
3112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3115 See \`config.log' for more details" "$LINENO" 5; }
3116 fi
3117 rm -f conftest conftest$ac_cv_exeext
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3119 $as_echo "$ac_cv_exeext" >&6; }
3120
3121 rm -f conftest.$ac_ext
3122 EXEEXT=$ac_cv_exeext
3123 ac_exeext=$EXEEXT
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3126 #include <stdio.h>
3127 int
3128 main ()
3129 {
3130 FILE *f = fopen ("conftest.out", "w");
3131 return ferror (f) || fclose (f) != 0;
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 ac_clean_files="$ac_clean_files conftest.out"
3138 # Check that the compiler produces executables we can run. If not, either
3139 # the compiler is broken, or we cross compile.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3141 $as_echo_n "checking whether we are cross compiling... " >&6; }
3142 if test "$cross_compiling" != yes; then
3143 { { ac_try="$ac_link"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3154 if { ac_try='./conftest$ac_cv_exeext'
3155 { { case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; }; then
3165 cross_compiling=no
3166 else
3167 if test "$cross_compiling" = maybe; then
3168 cross_compiling=yes
3169 else
3170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 fi
3176 fi
3177 fi
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3179 $as_echo "$cross_compiling" >&6; }
3180
3181 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3182 ac_clean_files=$ac_clean_files_save
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3184 $as_echo_n "checking for suffix of object files... " >&6; }
3185 if ${ac_cv_objext+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.o conftest.obj
3200 if { { ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compile") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3216 break;;
3217 esac
3218 done
3219 else
3220 $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details" "$LINENO" 5; }
3227 fi
3228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3231 $as_echo "$ac_cv_objext" >&6; }
3232 OBJEXT=$ac_cv_objext
3233 ac_objext=$OBJEXT
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3236 if ${ac_cv_c_compiler_gnu+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 if ac_fn_c_try_compile "$LINENO"; then :
3254 ac_compiler_gnu=yes
3255 else
3256 ac_compiler_gnu=no
3257 fi
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3260
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3264 if test $ac_compiler_gnu = yes; then
3265 GCC=yes
3266 else
3267 GCC=
3268 fi
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3273 if ${ac_cv_prog_cc_g+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 ac_save_c_werror_flag=$ac_c_werror_flag
3277 ac_c_werror_flag=yes
3278 ac_cv_prog_cc_g=no
3279 CFLAGS="-g"
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_prog_cc_g=yes
3293 else
3294 CFLAGS=""
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297
3298 int
3299 main ()
3300 {
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307
3308 else
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3310 CFLAGS="-g"
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_g=yes
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 fi
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3333 $as_echo "$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342 else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3350 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3351 if ${ac_cv_prog_cc_c89+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 ac_cv_prog_cc_c89=no
3355 ac_save_CC=$CC
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdarg.h>
3359 #include <stdio.h>
3360 struct stat;
3361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3362 struct buf { int x; };
3363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3364 static char *e (p, i)
3365 char **p;
3366 int i;
3367 {
3368 return p[i];
3369 }
3370 static char *f (char * (*g) (char **, int), char **p, ...)
3371 {
3372 char *s;
3373 va_list v;
3374 va_start (v,p);
3375 s = g (p, va_arg (v,int));
3376 va_end (v);
3377 return s;
3378 }
3379
3380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3381 function prototypes and stuff, but not '\xHH' hex character constants.
3382 These don't provoke an error unfortunately, instead are silently treated
3383 as 'x'. The following induces an error, until -std is added to get
3384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3385 array size at least. It's necessary to write '\x00'==0 to get something
3386 that's true only with -std. */
3387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3388
3389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3390 inside strings and character constants. */
3391 #define FOO(x) 'x'
3392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3393
3394 int test (int i, double x);
3395 struct s1 {int (*f) (int a);};
3396 struct s2 {int (*f) (double a);};
3397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398 int argc;
3399 char **argv;
3400 int
3401 main ()
3402 {
3403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3410 do
3411 CC="$ac_save_CC $ac_arg"
3412 if ac_fn_c_try_compile "$LINENO"; then :
3413 ac_cv_prog_cc_c89=$ac_arg
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext
3416 test "x$ac_cv_prog_cc_c89" != "xno" && break
3417 done
3418 rm -f conftest.$ac_ext
3419 CC=$ac_save_CC
3420
3421 fi
3422 # AC_CACHE_VAL
3423 case "x$ac_cv_prog_cc_c89" in
3424 x)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3426 $as_echo "none needed" >&6; } ;;
3427 xno)
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3429 $as_echo "unsupported" >&6; } ;;
3430 *)
3431 CC="$CC $ac_cv_prog_cc_c89"
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3434 esac
3435 if test "x$ac_cv_prog_cc_c89" != xno; then :
3436
3437 fi
3438
3439 ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3446 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3447 if ${ac_cv_path_SED+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3451 for ac_i in 1 2 3 4 5 6 7; do
3452 ac_script="$ac_script$as_nl$ac_script"
3453 done
3454 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3455 { ac_script=; unset ac_script;}
3456 if test -z "$SED"; then
3457 ac_path_SED_found=false
3458 # Loop through the user's path and test for each of PROGNAME-LIST
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_prog in sed gsed; do
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3467 as_fn_executable_p "$ac_path_SED" || continue
3468 # Check for GNU ac_path_SED and select it if it is found.
3469 # Check for GNU $ac_path_SED
3470 case `"$ac_path_SED" --version 2>&1` in
3471 *GNU*)
3472 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3473 *)
3474 ac_count=0
3475 $as_echo_n 0123456789 >"conftest.in"
3476 while :
3477 do
3478 cat "conftest.in" "conftest.in" >"conftest.tmp"
3479 mv "conftest.tmp" "conftest.in"
3480 cp "conftest.in" "conftest.nl"
3481 $as_echo '' >> "conftest.nl"
3482 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3484 as_fn_arith $ac_count + 1 && ac_count=$as_val
3485 if test $ac_count -gt ${ac_path_SED_max-0}; then
3486 # Best one so far, save it but keep looking for a better one
3487 ac_cv_path_SED="$ac_path_SED"
3488 ac_path_SED_max=$ac_count
3489 fi
3490 # 10*(2^10) chars as input seems more than enough
3491 test $ac_count -gt 10 && break
3492 done
3493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3494 esac
3495
3496 $ac_path_SED_found && break 3
3497 done
3498 done
3499 done
3500 IFS=$as_save_IFS
3501 if test -z "$ac_cv_path_SED"; then
3502 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3503 fi
3504 else
3505 ac_cv_path_SED=$SED
3506 fi
3507
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3510 $as_echo "$ac_cv_path_SED" >&6; }
3511 SED="$ac_cv_path_SED"
3512 rm -f conftest.sed
3513
3514 test -z "$SED" && SED=sed
3515 Xsed="$SED -e 1s/^X//"
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3528 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3529 if ${ac_cv_path_GREP+:} false; then :
3530 $as_echo_n "(cached) " >&6
3531 else
3532 if test -z "$GREP"; then
3533 ac_path_GREP_found=false
3534 # Loop through the user's path and test for each of PROGNAME-LIST
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3537 do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_prog in grep ggrep; do
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3543 as_fn_executable_p "$ac_path_GREP" || continue
3544 # Check for GNU ac_path_GREP and select it if it is found.
3545 # Check for GNU $ac_path_GREP
3546 case `"$ac_path_GREP" --version 2>&1` in
3547 *GNU*)
3548 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3549 *)
3550 ac_count=0
3551 $as_echo_n 0123456789 >"conftest.in"
3552 while :
3553 do
3554 cat "conftest.in" "conftest.in" >"conftest.tmp"
3555 mv "conftest.tmp" "conftest.in"
3556 cp "conftest.in" "conftest.nl"
3557 $as_echo 'GREP' >> "conftest.nl"
3558 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3560 as_fn_arith $ac_count + 1 && ac_count=$as_val
3561 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3562 # Best one so far, save it but keep looking for a better one
3563 ac_cv_path_GREP="$ac_path_GREP"
3564 ac_path_GREP_max=$ac_count
3565 fi
3566 # 10*(2^10) chars as input seems more than enough
3567 test $ac_count -gt 10 && break
3568 done
3569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3570 esac
3571
3572 $ac_path_GREP_found && break 3
3573 done
3574 done
3575 done
3576 IFS=$as_save_IFS
3577 if test -z "$ac_cv_path_GREP"; then
3578 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3579 fi
3580 else
3581 ac_cv_path_GREP=$GREP
3582 fi
3583
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3586 $as_echo "$ac_cv_path_GREP" >&6; }
3587 GREP="$ac_cv_path_GREP"
3588
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3591 $as_echo_n "checking for egrep... " >&6; }
3592 if ${ac_cv_path_EGREP+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3596 then ac_cv_path_EGREP="$GREP -E"
3597 else
3598 if test -z "$EGREP"; then
3599 ac_path_EGREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in egrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3609 as_fn_executable_p "$ac_path_EGREP" || continue
3610 # Check for GNU ac_path_EGREP and select it if it is found.
3611 # Check for GNU $ac_path_EGREP
3612 case `"$ac_path_EGREP" --version 2>&1` in
3613 *GNU*)
3614 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3615 *)
3616 ac_count=0
3617 $as_echo_n 0123456789 >"conftest.in"
3618 while :
3619 do
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 $as_echo 'EGREP' >> "conftest.nl"
3624 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 as_fn_arith $ac_count + 1 && ac_count=$as_val
3627 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_EGREP="$ac_path_EGREP"
3630 ac_path_EGREP_max=$ac_count
3631 fi
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3634 done
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3636 esac
3637
3638 $ac_path_EGREP_found && break 3
3639 done
3640 done
3641 done
3642 IFS=$as_save_IFS
3643 if test -z "$ac_cv_path_EGREP"; then
3644 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3645 fi
3646 else
3647 ac_cv_path_EGREP=$EGREP
3648 fi
3649
3650 fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3653 $as_echo "$ac_cv_path_EGREP" >&6; }
3654 EGREP="$ac_cv_path_EGREP"
3655
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3658 $as_echo_n "checking for fgrep... " >&6; }
3659 if ${ac_cv_path_FGREP+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3663 then ac_cv_path_FGREP="$GREP -F"
3664 else
3665 if test -z "$FGREP"; then
3666 ac_path_FGREP_found=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_prog in fgrep; do
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3676 as_fn_executable_p "$ac_path_FGREP" || continue
3677 # Check for GNU ac_path_FGREP and select it if it is found.
3678 # Check for GNU $ac_path_FGREP
3679 case `"$ac_path_FGREP" --version 2>&1` in
3680 *GNU*)
3681 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3682 *)
3683 ac_count=0
3684 $as_echo_n 0123456789 >"conftest.in"
3685 while :
3686 do
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 $as_echo 'FGREP' >> "conftest.nl"
3691 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3693 as_fn_arith $ac_count + 1 && ac_count=$as_val
3694 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_FGREP="$ac_path_FGREP"
3697 ac_path_FGREP_max=$ac_count
3698 fi
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3701 done
3702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3703 esac
3704
3705 $ac_path_FGREP_found && break 3
3706 done
3707 done
3708 done
3709 IFS=$as_save_IFS
3710 if test -z "$ac_cv_path_FGREP"; then
3711 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3712 fi
3713 else
3714 ac_cv_path_FGREP=$FGREP
3715 fi
3716
3717 fi
3718 fi
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3720 $as_echo "$ac_cv_path_FGREP" >&6; }
3721 FGREP="$ac_cv_path_FGREP"
3722
3723
3724 test -z "$GREP" && GREP=grep
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744 # Check whether --with-gnu-ld was given.
3745 if test "${with_gnu_ld+set}" = set; then :
3746 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3747 else
3748 with_gnu_ld=no
3749 fi
3750
3751 ac_prog=ld
3752 if test "$GCC" = yes; then
3753 # Check if gcc -print-prog-name=ld gives a path.
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3755 $as_echo_n "checking for ld used by $CC... " >&6; }
3756 case $host in
3757 *-*-mingw*)
3758 # gcc leaves a trailing carriage return which upsets mingw
3759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3760 *)
3761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3762 esac
3763 case $ac_prog in
3764 # Accept absolute paths.
3765 [\\/]* | ?:[\\/]*)
3766 re_direlt='/[^/][^/]*/\.\./'
3767 # Canonicalize the pathname of ld
3768 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3769 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3770 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3771 done
3772 test -z "$LD" && LD="$ac_prog"
3773 ;;
3774 "")
3775 # If it fails, then pretend we aren't using GCC.
3776 ac_prog=ld
3777 ;;
3778 *)
3779 # If it is relative, then search for the first ld in PATH.
3780 with_gnu_ld=unknown
3781 ;;
3782 esac
3783 elif test "$with_gnu_ld" = yes; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3785 $as_echo_n "checking for GNU ld... " >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3788 $as_echo_n "checking for non-GNU ld... " >&6; }
3789 fi
3790 if ${lt_cv_path_LD+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if test -z "$LD"; then
3794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3795 for ac_dir in $PATH; do
3796 IFS="$lt_save_ifs"
3797 test -z "$ac_dir" && ac_dir=.
3798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3799 lt_cv_path_LD="$ac_dir/$ac_prog"
3800 # Check to see if the program is GNU ld. I'd rather use --version,
3801 # but apparently some variants of GNU ld only accept -v.
3802 # Break only if it was the GNU/non-GNU ld that we prefer.
3803 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3804 *GNU* | *'with BFD'*)
3805 test "$with_gnu_ld" != no && break
3806 ;;
3807 *)
3808 test "$with_gnu_ld" != yes && break
3809 ;;
3810 esac
3811 fi
3812 done
3813 IFS="$lt_save_ifs"
3814 else
3815 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3816 fi
3817 fi
3818
3819 LD="$lt_cv_path_LD"
3820 if test -n "$LD"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3822 $as_echo "$LD" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3829 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3830 if ${lt_cv_prog_gnu_ld+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3834 case `$LD -v 2>&1 </dev/null` in
3835 *GNU* | *'with BFD'*)
3836 lt_cv_prog_gnu_ld=yes
3837 ;;
3838 *)
3839 lt_cv_prog_gnu_ld=no
3840 ;;
3841 esac
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3844 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3845 with_gnu_ld=$lt_cv_prog_gnu_ld
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3856 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3857 if ${lt_cv_path_NM+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$NM"; then
3861 # Let the user override the test.
3862 lt_cv_path_NM="$NM"
3863 else
3864 lt_nm_to_check="${ac_tool_prefix}nm"
3865 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3866 lt_nm_to_check="$lt_nm_to_check nm"
3867 fi
3868 for lt_tmp_nm in $lt_nm_to_check; do
3869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3870 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3871 IFS="$lt_save_ifs"
3872 test -z "$ac_dir" && ac_dir=.
3873 tmp_nm="$ac_dir/$lt_tmp_nm"
3874 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3875 # Check to see if the nm accepts a BSD-compat flag.
3876 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3877 # nm: unknown option "B" ignored
3878 # Tru64's nm complains that /dev/null is an invalid object file
3879 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3880 */dev/null* | *'Invalid file or object type'*)
3881 lt_cv_path_NM="$tmp_nm -B"
3882 break
3883 ;;
3884 *)
3885 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3886 */dev/null*)
3887 lt_cv_path_NM="$tmp_nm -p"
3888 break
3889 ;;
3890 *)
3891 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3892 continue # so that we can try to find one that supports BSD flags
3893 ;;
3894 esac
3895 ;;
3896 esac
3897 fi
3898 done
3899 IFS="$lt_save_ifs"
3900 done
3901 : ${lt_cv_path_NM=no}
3902 fi
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3905 $as_echo "$lt_cv_path_NM" >&6; }
3906 if test "$lt_cv_path_NM" != "no"; then
3907 NM="$lt_cv_path_NM"
3908 else
3909 # Didn't find any BSD compatible name lister, look for dumpbin.
3910 if test -n "$DUMPBIN"; then :
3911 # Let the user override the test.
3912 else
3913 if test -n "$ac_tool_prefix"; then
3914 for ac_prog in dumpbin "link -dump"
3915 do
3916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3919 $as_echo_n "checking for $ac_word... " >&6; }
3920 if ${ac_cv_prog_DUMPBIN+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -n "$DUMPBIN"; then
3924 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937 done
3938 done
3939 IFS=$as_save_IFS
3940
3941 fi
3942 fi
3943 DUMPBIN=$ac_cv_prog_DUMPBIN
3944 if test -n "$DUMPBIN"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3946 $as_echo "$DUMPBIN" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3950 fi
3951
3952
3953 test -n "$DUMPBIN" && break
3954 done
3955 fi
3956 if test -z "$DUMPBIN"; then
3957 ac_ct_DUMPBIN=$DUMPBIN
3958 for ac_prog in dumpbin "link -dump"
3959 do
3960 # Extract the first word of "$ac_prog", so it can be a program name with args.
3961 set dummy $ac_prog; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$ac_ct_DUMPBIN"; then
3968 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3988 if test -n "$ac_ct_DUMPBIN"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3990 $as_echo "$ac_ct_DUMPBIN" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 test -n "$ac_ct_DUMPBIN" && break
3998 done
3999
4000 if test "x$ac_ct_DUMPBIN" = x; then
4001 DUMPBIN=":"
4002 else
4003 case $cross_compiling:$ac_tool_warned in
4004 yes:)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4007 ac_tool_warned=yes ;;
4008 esac
4009 DUMPBIN=$ac_ct_DUMPBIN
4010 fi
4011 fi
4012
4013 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4014 *COFF*)
4015 DUMPBIN="$DUMPBIN -symbols"
4016 ;;
4017 *)
4018 DUMPBIN=:
4019 ;;
4020 esac
4021 fi
4022
4023 if test "$DUMPBIN" != ":"; then
4024 NM="$DUMPBIN"
4025 fi
4026 fi
4027 test -z "$NM" && NM=nm
4028
4029
4030
4031
4032
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4036 if ${lt_cv_nm_interface+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 lt_cv_nm_interface="BSD nm"
4040 echo "int some_variable = 0;" > conftest.$ac_ext
4041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4042 (eval "$ac_compile" 2>conftest.err)
4043 cat conftest.err >&5
4044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4046 cat conftest.err >&5
4047 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4048 cat conftest.out >&5
4049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4050 lt_cv_nm_interface="MS dumpbin"
4051 fi
4052 rm -rf conftest*
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4055 $as_echo "$lt_cv_nm_interface" >&6; }
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4058 $as_echo_n "checking whether ln -s works... " >&6; }
4059 LN_S=$as_ln_s
4060 if test "$LN_S" = "ln -s"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062 $as_echo "yes" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4065 $as_echo "no, using $LN_S" >&6; }
4066 fi
4067
4068 # find the maximum length of command line arguments
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4070 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4071 if ${lt_cv_sys_max_cmd_len+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 i=0
4075 teststring="ABCD"
4076
4077 case $build_os in
4078 msdosdjgpp*)
4079 # On DJGPP, this test can blow up pretty badly due to problems in libc
4080 # (any single argument exceeding 2000 bytes causes a buffer overrun
4081 # during glob expansion). Even if it were fixed, the result of this
4082 # check would be larger than it should be.
4083 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4084 ;;
4085
4086 gnu*)
4087 # Under GNU Hurd, this test is not required because there is
4088 # no limit to the length of command line arguments.
4089 # Libtool will interpret -1 as no limit whatsoever
4090 lt_cv_sys_max_cmd_len=-1;
4091 ;;
4092
4093 cygwin* | mingw* | cegcc*)
4094 # On Win9x/ME, this test blows up -- it succeeds, but takes
4095 # about 5 minutes as the teststring grows exponentially.
4096 # Worse, since 9x/ME are not pre-emptively multitasking,
4097 # you end up with a "frozen" computer, even though with patience
4098 # the test eventually succeeds (with a max line length of 256k).
4099 # Instead, let's just punt: use the minimum linelength reported by
4100 # all of the supported platforms: 8192 (on NT/2K/XP).
4101 lt_cv_sys_max_cmd_len=8192;
4102 ;;
4103
4104 mint*)
4105 # On MiNT this can take a long time and run out of memory.
4106 lt_cv_sys_max_cmd_len=8192;
4107 ;;
4108
4109 amigaos*)
4110 # On AmigaOS with pdksh, this test takes hours, literally.
4111 # So we just punt and use a minimum line length of 8192.
4112 lt_cv_sys_max_cmd_len=8192;
4113 ;;
4114
4115 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4116 # This has been around since 386BSD, at least. Likely further.
4117 if test -x /sbin/sysctl; then
4118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4119 elif test -x /usr/sbin/sysctl; then
4120 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4121 else
4122 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4123 fi
4124 # And add a safety zone
4125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4127 ;;
4128
4129 interix*)
4130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4131 lt_cv_sys_max_cmd_len=196608
4132 ;;
4133
4134 os2*)
4135 # The test takes a long time on OS/2.
4136 lt_cv_sys_max_cmd_len=8192
4137 ;;
4138
4139 osf*)
4140 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4141 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4142 # nice to cause kernel panics so lets avoid the loop below.
4143 # First set a reasonable default.
4144 lt_cv_sys_max_cmd_len=16384
4145 #
4146 if test -x /sbin/sysconfig; then
4147 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4148 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4149 esac
4150 fi
4151 ;;
4152 sco3.2v5*)
4153 lt_cv_sys_max_cmd_len=102400
4154 ;;
4155 sysv5* | sco5v6* | sysv4.2uw2*)
4156 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4157 if test -n "$kargmax"; then
4158 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4159 else
4160 lt_cv_sys_max_cmd_len=32768
4161 fi
4162 ;;
4163 *)
4164 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4165 if test -n "$lt_cv_sys_max_cmd_len"; then
4166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4168 else
4169 # Make teststring a little bigger before we do anything with it.
4170 # a 1K string should be a reasonable start.
4171 for i in 1 2 3 4 5 6 7 8 ; do
4172 teststring=$teststring$teststring
4173 done
4174 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4175 # If test is not a shell built-in, we'll probably end up computing a
4176 # maximum length that is only half of the actual maximum length, but
4177 # we can't tell.
4178 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4179 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4180 test $i != 17 # 1/2 MB should be enough
4181 do
4182 i=`expr $i + 1`
4183 teststring=$teststring$teststring
4184 done
4185 # Only check the string length outside the loop.
4186 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4187 teststring=
4188 # Add a significant safety factor because C++ compilers can tack on
4189 # massive amounts of additional arguments before passing them to the
4190 # linker. It appears as though 1/2 is a usable value.
4191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4192 fi
4193 ;;
4194 esac
4195
4196 fi
4197
4198 if test -n $lt_cv_sys_max_cmd_len ; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4200 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4201 else
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4203 $as_echo "none" >&6; }
4204 fi
4205 max_cmd_len=$lt_cv_sys_max_cmd_len
4206
4207
4208
4209
4210
4211
4212 : ${CP="cp -f"}
4213 : ${MV="mv -f"}
4214 : ${RM="rm -f"}
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4217 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4218 # Try some XSI features
4219 xsi_shell=no
4220 ( _lt_dummy="a/b/c"
4221 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4222 = c,a/b,b/c, \
4223 && eval 'test $(( 1 + 1 )) -eq 2 \
4224 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4225 && xsi_shell=yes
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4227 $as_echo "$xsi_shell" >&6; }
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4231 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4232 lt_shell_append=no
4233 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4234 >/dev/null 2>&1 \
4235 && lt_shell_append=yes
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4237 $as_echo "$lt_shell_append" >&6; }
4238
4239
4240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4241 lt_unset=unset
4242 else
4243 lt_unset=false
4244 fi
4245
4246
4247
4248
4249
4250 # test EBCDIC or ASCII
4251 case `echo X|tr X '\101'` in
4252 A) # ASCII based system
4253 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4254 lt_SP2NL='tr \040 \012'
4255 lt_NL2SP='tr \015\012 \040\040'
4256 ;;
4257 *) # EBCDIC based system
4258 lt_SP2NL='tr \100 \n'
4259 lt_NL2SP='tr \r\n \100\100'
4260 ;;
4261 esac
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4272 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4273 if ${lt_cv_to_host_file_cmd+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 case $host in
4277 *-*-mingw* )
4278 case $build in
4279 *-*-mingw* ) # actually msys
4280 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4281 ;;
4282 *-*-cygwin* )
4283 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4284 ;;
4285 * ) # otherwise, assume *nix
4286 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4287 ;;
4288 esac
4289 ;;
4290 *-*-cygwin* )
4291 case $build in
4292 *-*-mingw* ) # actually msys
4293 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4294 ;;
4295 *-*-cygwin* )
4296 lt_cv_to_host_file_cmd=func_convert_file_noop
4297 ;;
4298 * ) # otherwise, assume *nix
4299 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4300 ;;
4301 esac
4302 ;;
4303 * ) # unhandled hosts (and "normal" native builds)
4304 lt_cv_to_host_file_cmd=func_convert_file_noop
4305 ;;
4306 esac
4307
4308 fi
4309
4310 to_host_file_cmd=$lt_cv_to_host_file_cmd
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4312 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4313
4314
4315
4316
4317
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4319 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4320 if ${lt_cv_to_tool_file_cmd+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 #assume ordinary cross tools, or native build.
4324 lt_cv_to_tool_file_cmd=func_convert_file_noop
4325 case $host in
4326 *-*-mingw* )
4327 case $build in
4328 *-*-mingw* ) # actually msys
4329 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4330 ;;
4331 esac
4332 ;;
4333 esac
4334
4335 fi
4336
4337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4339 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4340
4341
4342
4343
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4346 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4347 if ${lt_cv_ld_reload_flag+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 lt_cv_ld_reload_flag='-r'
4351 fi
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4353 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4354 reload_flag=$lt_cv_ld_reload_flag
4355 case $reload_flag in
4356 "" | " "*) ;;
4357 *) reload_flag=" $reload_flag" ;;
4358 esac
4359 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4360 case $host_os in
4361 cygwin* | mingw* | pw32* | cegcc*)
4362 if test "$GCC" != yes; then
4363 reload_cmds=false
4364 fi
4365 ;;
4366 darwin*)
4367 if test "$GCC" = yes; then
4368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4369 else
4370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4371 fi
4372 ;;
4373 esac
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383 if test -n "$ac_tool_prefix"; then
4384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_OBJDUMP+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if test -n "$OBJDUMP"; then
4392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 OBJDUMP=$ac_cv_prog_OBJDUMP
4412 if test -n "$OBJDUMP"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4414 $as_echo "$OBJDUMP" >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 fi
4419
4420
4421 fi
4422 if test -z "$ac_cv_prog_OBJDUMP"; then
4423 ac_ct_OBJDUMP=$OBJDUMP
4424 # Extract the first word of "objdump", so it can be a program name with args.
4425 set dummy objdump; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -n "$ac_ct_OBJDUMP"; then
4432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4452 if test -n "$ac_ct_OBJDUMP"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4454 $as_echo "$ac_ct_OBJDUMP" >&6; }
4455 else
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4458 fi
4459
4460 if test "x$ac_ct_OBJDUMP" = x; then
4461 OBJDUMP="false"
4462 else
4463 case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469 OBJDUMP=$ac_ct_OBJDUMP
4470 fi
4471 else
4472 OBJDUMP="$ac_cv_prog_OBJDUMP"
4473 fi
4474
4475 test -z "$OBJDUMP" && OBJDUMP=objdump
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4487 if ${lt_cv_deplibs_check_method+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 lt_cv_file_magic_cmd='$MAGIC_CMD'
4491 lt_cv_file_magic_test_file=
4492 lt_cv_deplibs_check_method='unknown'
4493 # Need to set the preceding variable on all platforms that support
4494 # interlibrary dependencies.
4495 # 'none' -- dependencies not supported.
4496 # `unknown' -- same as none, but documents that we really don't know.
4497 # 'pass_all' -- all dependencies passed with no checks.
4498 # 'test_compile' -- check by making test program.
4499 # 'file_magic [[regex]]' -- check by looking for files in library path
4500 # which responds to the $file_magic_cmd with a given extended regex.
4501 # If you have `file' or equivalent on your system and you're not sure
4502 # whether `pass_all' will *always* work, you probably want this one.
4503
4504 case $host_os in
4505 aix[4-9]*)
4506 lt_cv_deplibs_check_method=pass_all
4507 ;;
4508
4509 beos*)
4510 lt_cv_deplibs_check_method=pass_all
4511 ;;
4512
4513 bsdi[45]*)
4514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4515 lt_cv_file_magic_cmd='/usr/bin/file -L'
4516 lt_cv_file_magic_test_file=/shlib/libc.so
4517 ;;
4518
4519 cygwin*)
4520 # func_win32_libid is a shell function defined in ltmain.sh
4521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522 lt_cv_file_magic_cmd='func_win32_libid'
4523 ;;
4524
4525 mingw* | pw32*)
4526 # Base MSYS/MinGW do not provide the 'file' command needed by
4527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4528 # unless we find 'file', for example because we are cross-compiling.
4529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4530 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4532 lt_cv_file_magic_cmd='func_win32_libid'
4533 else
4534 # Keep this pattern in sync with the one in func_win32_libid.
4535 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4536 lt_cv_file_magic_cmd='$OBJDUMP -f'
4537 fi
4538 ;;
4539
4540 cegcc*)
4541 # use the weaker test based on 'objdump'. See mingw*.
4542 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4543 lt_cv_file_magic_cmd='$OBJDUMP -f'
4544 ;;
4545
4546 darwin* | rhapsody*)
4547 lt_cv_deplibs_check_method=pass_all
4548 ;;
4549
4550 freebsd* | dragonfly*)
4551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4552 case $host_cpu in
4553 i*86 )
4554 # Not sure whether the presence of OpenBSD here was a mistake.
4555 # Let's accept both of them until this is cleared up.
4556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4557 lt_cv_file_magic_cmd=/usr/bin/file
4558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4559 ;;
4560 esac
4561 else
4562 lt_cv_deplibs_check_method=pass_all
4563 fi
4564 ;;
4565
4566 gnu*)
4567 lt_cv_deplibs_check_method=pass_all
4568 ;;
4569
4570 haiku*)
4571 lt_cv_deplibs_check_method=pass_all
4572 ;;
4573
4574 hpux10.20* | hpux11*)
4575 lt_cv_file_magic_cmd=/usr/bin/file
4576 case $host_cpu in
4577 ia64*)
4578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4580 ;;
4581 hppa*64*)
4582 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]'
4583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4584 ;;
4585 *)
4586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4588 ;;
4589 esac
4590 ;;
4591
4592 interix[3-9]*)
4593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4595 ;;
4596
4597 irix5* | irix6* | nonstopux*)
4598 case $LD in
4599 *-32|*"-32 ") libmagic=32-bit;;
4600 *-n32|*"-n32 ") libmagic=N32;;
4601 *-64|*"-64 ") libmagic=64-bit;;
4602 *) libmagic=never-match;;
4603 esac
4604 lt_cv_deplibs_check_method=pass_all
4605 ;;
4606
4607 # This must be glibc/ELF.
4608 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4609 lt_cv_deplibs_check_method=pass_all
4610 ;;
4611
4612 netbsd*)
4613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4615 else
4616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4617 fi
4618 ;;
4619
4620 newos6*)
4621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4622 lt_cv_file_magic_cmd=/usr/bin/file
4623 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4624 ;;
4625
4626 *nto* | *qnx*)
4627 lt_cv_deplibs_check_method=pass_all
4628 ;;
4629
4630 openbsd*)
4631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4633 else
4634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4635 fi
4636 ;;
4637
4638 osf3* | osf4* | osf5*)
4639 lt_cv_deplibs_check_method=pass_all
4640 ;;
4641
4642 rdos*)
4643 lt_cv_deplibs_check_method=pass_all
4644 ;;
4645
4646 solaris*)
4647 lt_cv_deplibs_check_method=pass_all
4648 ;;
4649
4650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4651 lt_cv_deplibs_check_method=pass_all
4652 ;;
4653
4654 sysv4 | sysv4.3*)
4655 case $host_vendor in
4656 motorola)
4657 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]'
4658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4659 ;;
4660 ncr)
4661 lt_cv_deplibs_check_method=pass_all
4662 ;;
4663 sequent)
4664 lt_cv_file_magic_cmd='/bin/file'
4665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4666 ;;
4667 sni)
4668 lt_cv_file_magic_cmd='/bin/file'
4669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4670 lt_cv_file_magic_test_file=/lib/libc.so
4671 ;;
4672 siemens)
4673 lt_cv_deplibs_check_method=pass_all
4674 ;;
4675 pc)
4676 lt_cv_deplibs_check_method=pass_all
4677 ;;
4678 esac
4679 ;;
4680
4681 tpf*)
4682 lt_cv_deplibs_check_method=pass_all
4683 ;;
4684 esac
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4689
4690 file_magic_glob=
4691 want_nocaseglob=no
4692 if test "$build" = "$host"; then
4693 case $host_os in
4694 mingw* | pw32*)
4695 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4696 want_nocaseglob=yes
4697 else
4698 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4699 fi
4700 ;;
4701 esac
4702 fi
4703
4704 file_magic_cmd=$lt_cv_file_magic_cmd
4705 deplibs_check_method=$lt_cv_deplibs_check_method
4706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_DLLTOOL+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 if test -n "$DLLTOOL"; then
4738 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751 done
4752 done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 DLLTOOL=$ac_cv_prog_DLLTOOL
4758 if test -n "$DLLTOOL"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4760 $as_echo "$DLLTOOL" >&6; }
4761 else
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 fi
4768 if test -z "$ac_cv_prog_DLLTOOL"; then
4769 ac_ct_DLLTOOL=$DLLTOOL
4770 # Extract the first word of "dlltool", so it can be a program name with args.
4771 set dummy dlltool; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -n "$ac_ct_DLLTOOL"; then
4778 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4800 $as_echo "$ac_ct_DLLTOOL" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806 if test "x$ac_ct_DLLTOOL" = x; then
4807 DLLTOOL="false"
4808 else
4809 case $cross_compiling:$ac_tool_warned in
4810 yes:)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813 ac_tool_warned=yes ;;
4814 esac
4815 DLLTOOL=$ac_ct_DLLTOOL
4816 fi
4817 else
4818 DLLTOOL="$ac_cv_prog_DLLTOOL"
4819 fi
4820
4821 test -z "$DLLTOOL" && DLLTOOL=dlltool
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4833 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4834 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 lt_cv_sharedlib_from_linklib_cmd='unknown'
4838
4839 case $host_os in
4840 cygwin* | mingw* | pw32* | cegcc*)
4841 # two different shell functions defined in ltmain.sh
4842 # decide which to use based on capabilities of $DLLTOOL
4843 case `$DLLTOOL --help 2>&1` in
4844 *--identify-strict*)
4845 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4846 ;;
4847 *)
4848 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4849 ;;
4850 esac
4851 ;;
4852 *)
4853 # fallback: assume linklib IS sharedlib
4854 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4855 ;;
4856 esac
4857
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4860 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4861 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4862 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4863
4864
4865
4866
4867
4868
4869
4870
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in ar
4873 do
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if ${ac_cv_prog_AR+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$AR"; then
4882 ac_cv_prog_AR="$AR" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895 done
4896 done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 AR=$ac_cv_prog_AR
4902 if test -n "$AR"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4904 $as_echo "$AR" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910
4911 test -n "$AR" && break
4912 done
4913 fi
4914 if test -z "$AR"; then
4915 ac_ct_AR=$AR
4916 for ac_prog in ar
4917 do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$ac_ct_AR"; then
4926 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_ac_ct_AR="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4946 if test -n "$ac_ct_AR"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4948 $as_echo "$ac_ct_AR" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 test -n "$ac_ct_AR" && break
4956 done
4957
4958 if test "x$ac_ct_AR" = x; then
4959 AR="false"
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 AR=$ac_ct_AR
4968 fi
4969 fi
4970
4971 : ${AR=ar}
4972 : ${AR_FLAGS=cru}
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4985 $as_echo_n "checking for archiver @FILE support... " >&6; }
4986 if ${lt_cv_ar_at_file+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 lt_cv_ar_at_file=no
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992
4993 int
4994 main ()
4995 {
4996
4997 ;
4998 return 0;
4999 }
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 echo conftest.$ac_objext > conftest.lst
5003 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5005 (eval $lt_ar_try) 2>&5
5006 ac_status=$?
5007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5008 test $ac_status = 0; }
5009 if test "$ac_status" -eq 0; then
5010 # Ensure the archiver fails upon bogus file names.
5011 rm -f conftest.$ac_objext libconftest.a
5012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5013 (eval $lt_ar_try) 2>&5
5014 ac_status=$?
5015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016 test $ac_status = 0; }
5017 if test "$ac_status" -ne 0; then
5018 lt_cv_ar_at_file=@
5019 fi
5020 fi
5021 rm -f conftest.* libconftest.a
5022
5023 fi
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5028 $as_echo "$lt_cv_ar_at_file" >&6; }
5029
5030 if test "x$lt_cv_ar_at_file" = xno; then
5031 archiver_list_spec=
5032 else
5033 archiver_list_spec=$lt_cv_ar_at_file
5034 fi
5035
5036
5037
5038
5039
5040
5041
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}strip; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_STRIP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$STRIP"; then
5051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5067
5068 fi
5069 fi
5070 STRIP=$ac_cv_prog_STRIP
5071 if test -n "$STRIP"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5073 $as_echo "$STRIP" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5078
5079
5080 fi
5081 if test -z "$ac_cv_prog_STRIP"; then
5082 ac_ct_STRIP=$STRIP
5083 # Extract the first word of "strip", so it can be a program name with args.
5084 set dummy strip; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_STRIP"; then
5091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_STRIP="strip"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5111 if test -n "$ac_ct_STRIP"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5113 $as_echo "$ac_ct_STRIP" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119 if test "x$ac_ct_STRIP" = x; then
5120 STRIP=":"
5121 else
5122 case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128 STRIP=$ac_ct_STRIP
5129 fi
5130 else
5131 STRIP="$ac_cv_prog_STRIP"
5132 fi
5133
5134 test -z "$STRIP" && STRIP=:
5135
5136
5137
5138
5139
5140
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_RANLIB+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$RANLIB"; then
5150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 RANLIB=$ac_cv_prog_RANLIB
5170 if test -n "$RANLIB"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5172 $as_echo "$RANLIB" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 fi
5180 if test -z "$ac_cv_prog_RANLIB"; then
5181 ac_ct_RANLIB=$RANLIB
5182 # Extract the first word of "ranlib", so it can be a program name with args.
5183 set dummy ranlib; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$ac_ct_RANLIB"; then
5190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_RANLIB="ranlib"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5210 if test -n "$ac_ct_RANLIB"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5212 $as_echo "$ac_ct_RANLIB" >&6; }
5213 else
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218 if test "x$ac_ct_RANLIB" = x; then
5219 RANLIB=":"
5220 else
5221 case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227 RANLIB=$ac_ct_RANLIB
5228 fi
5229 else
5230 RANLIB="$ac_cv_prog_RANLIB"
5231 fi
5232
5233 test -z "$RANLIB" && RANLIB=:
5234
5235
5236
5237
5238
5239
5240 # Determine commands to create old-style static archives.
5241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5242 old_postinstall_cmds='chmod 644 $oldlib'
5243 old_postuninstall_cmds=
5244
5245 if test -n "$RANLIB"; then
5246 case $host_os in
5247 openbsd*)
5248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5249 ;;
5250 *)
5251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5252 ;;
5253 esac
5254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5255 fi
5256
5257 case $host_os in
5258 darwin*)
5259 lock_old_archive_extraction=yes ;;
5260 *)
5261 lock_old_archive_extraction=no ;;
5262 esac
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 # If no C compiler was specified, use CC.
5303 LTCC=${LTCC-"$CC"}
5304
5305 # If no C compiler flags were specified, use CFLAGS.
5306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5307
5308 # Allow CC to be a program name with arguments.
5309 compiler=$CC
5310
5311
5312 # Check for command to grab the raw symbol name followed by C symbol from nm.
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5314 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5315 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318
5319 # These are sane defaults that work on at least a few old systems.
5320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5321
5322 # Character class describing NM global symbol codes.
5323 symcode='[BCDEGRST]'
5324
5325 # Regexp to match symbols that can be accessed directly from C.
5326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5327
5328 # Define system-specific variables.
5329 case $host_os in
5330 aix*)
5331 symcode='[BCDT]'
5332 ;;
5333 cygwin* | mingw* | pw32* | cegcc*)
5334 symcode='[ABCDGISTW]'
5335 ;;
5336 hpux*)
5337 if test "$host_cpu" = ia64; then
5338 symcode='[ABCDEGRST]'
5339 fi
5340 ;;
5341 irix* | nonstopux*)
5342 symcode='[BCDEGRST]'
5343 ;;
5344 osf*)
5345 symcode='[BCDEGQRST]'
5346 ;;
5347 solaris*)
5348 symcode='[BDRT]'
5349 ;;
5350 sco3.2v5*)
5351 symcode='[DT]'
5352 ;;
5353 sysv4.2uw2*)
5354 symcode='[DT]'
5355 ;;
5356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5357 symcode='[ABDT]'
5358 ;;
5359 sysv4)
5360 symcode='[DFNSTU]'
5361 ;;
5362 esac
5363
5364 # If we're using GNU nm, then use its standard symbol codes.
5365 case `$NM -V 2>&1` in
5366 *GNU* | *'with BFD'*)
5367 symcode='[ABCDGIRSTW]' ;;
5368 esac
5369
5370 # Transform an extracted symbol line into a proper C declaration.
5371 # Some systems (esp. on ia64) link data and code symbols differently,
5372 # so use this general approach.
5373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5374
5375 # Transform an extracted symbol line into symbol name and symbol address
5376 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5377 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'"
5378
5379 # Handle CRLF in mingw tool chain
5380 opt_cr=
5381 case $build_os in
5382 mingw*)
5383 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5384 ;;
5385 esac
5386
5387 # Try without a prefix underscore, then with it.
5388 for ac_symprfx in "" "_"; do
5389
5390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5391 symxfrm="\\1 $ac_symprfx\\2 \\2"
5392
5393 # Write the raw and C identifiers.
5394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5395 # Fake it for dumpbin and say T for any non-static function
5396 # and D for any global variable.
5397 # Also find C++ and __fastcall symbols from MSVC++,
5398 # which start with @ or ?.
5399 lt_cv_sys_global_symbol_pipe="$AWK '"\
5400 " {last_section=section; section=\$ 3};"\
5401 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5402 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5403 " \$ 0!~/External *\|/{next};"\
5404 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5405 " {if(hide[section]) next};"\
5406 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5407 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5408 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5409 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5410 " ' prfx=^$ac_symprfx"
5411 else
5412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5413 fi
5414 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5415
5416 # Check to see that the pipe works correctly.
5417 pipe_works=no
5418
5419 rm -rf conftest*
5420 cat > conftest.$ac_ext <<_LT_EOF
5421 #ifdef __cplusplus
5422 extern "C" {
5423 #endif
5424 char nm_test_var;
5425 void nm_test_func(void);
5426 void nm_test_func(void){}
5427 #ifdef __cplusplus
5428 }
5429 #endif
5430 int main(){nm_test_var='a';nm_test_func();return(0);}
5431 _LT_EOF
5432
5433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5434 (eval $ac_compile) 2>&5
5435 ac_status=$?
5436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5437 test $ac_status = 0; }; then
5438 # Now try to grab the symbols.
5439 nlist=conftest.nm
5440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5441 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5442 ac_status=$?
5443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5444 test $ac_status = 0; } && test -s "$nlist"; then
5445 # Try sorting and uniquifying the output.
5446 if sort "$nlist" | uniq > "$nlist"T; then
5447 mv -f "$nlist"T "$nlist"
5448 else
5449 rm -f "$nlist"T
5450 fi
5451
5452 # Make sure that we snagged all the symbols we need.
5453 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5454 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5455 cat <<_LT_EOF > conftest.$ac_ext
5456 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5457 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5458 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5459 relocations are performed -- see ld's documentation on pseudo-relocs. */
5460 # define LT_DLSYM_CONST
5461 #elif defined(__osf__)
5462 /* This system does not cope well with relocations in const data. */
5463 # define LT_DLSYM_CONST
5464 #else
5465 # define LT_DLSYM_CONST const
5466 #endif
5467
5468 #ifdef __cplusplus
5469 extern "C" {
5470 #endif
5471
5472 _LT_EOF
5473 # Now generate the symbol file.
5474 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5475
5476 cat <<_LT_EOF >> conftest.$ac_ext
5477
5478 /* The mapping between symbol names and symbols. */
5479 LT_DLSYM_CONST struct {
5480 const char *name;
5481 void *address;
5482 }
5483 lt__PROGRAM__LTX_preloaded_symbols[] =
5484 {
5485 { "@PROGRAM@", (void *) 0 },
5486 _LT_EOF
5487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5488 cat <<\_LT_EOF >> conftest.$ac_ext
5489 {0, (void *) 0}
5490 };
5491
5492 /* This works around a problem in FreeBSD linker */
5493 #ifdef FREEBSD_WORKAROUND
5494 static const void *lt_preloaded_setup() {
5495 return lt__PROGRAM__LTX_preloaded_symbols;
5496 }
5497 #endif
5498
5499 #ifdef __cplusplus
5500 }
5501 #endif
5502 _LT_EOF
5503 # Now try linking the two files.
5504 mv conftest.$ac_objext conftstm.$ac_objext
5505 lt_globsym_save_LIBS=$LIBS
5506 lt_globsym_save_CFLAGS=$CFLAGS
5507 LIBS="conftstm.$ac_objext"
5508 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5510 (eval $ac_link) 2>&5
5511 ac_status=$?
5512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5513 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5514 pipe_works=yes
5515 fi
5516 LIBS=$lt_globsym_save_LIBS
5517 CFLAGS=$lt_globsym_save_CFLAGS
5518 else
5519 echo "cannot find nm_test_func in $nlist" >&5
5520 fi
5521 else
5522 echo "cannot find nm_test_var in $nlist" >&5
5523 fi
5524 else
5525 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5526 fi
5527 else
5528 echo "$progname: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 fi
5531 rm -rf conftest* conftst*
5532
5533 # Do not use the global_symbol_pipe unless it works.
5534 if test "$pipe_works" = yes; then
5535 break
5536 else
5537 lt_cv_sys_global_symbol_pipe=
5538 fi
5539 done
5540
5541 fi
5542
5543 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5544 lt_cv_sys_global_symbol_to_cdecl=
5545 fi
5546 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5548 $as_echo "failed" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5551 $as_echo "ok" >&6; }
5552 fi
5553
5554 # Response file support.
5555 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5556 nm_file_list_spec='@'
5557 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5558 nm_file_list_spec='@'
5559 fi
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5588 $as_echo_n "checking for sysroot... " >&6; }
5589
5590 # Check whether --with-sysroot was given.
5591 if test "${with_sysroot+set}" = set; then :
5592 withval=$with_sysroot;
5593 else
5594 with_sysroot=no
5595 fi
5596
5597
5598 lt_sysroot=
5599 case ${with_sysroot} in #(
5600 yes)
5601 if test "$GCC" = yes; then
5602 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5603 fi
5604 ;; #(
5605 /*)
5606 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5607 ;; #(
5608 no|'')
5609 ;; #(
5610 *)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5612 $as_echo "${with_sysroot}" >&6; }
5613 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5614 ;;
5615 esac
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5618 $as_echo "${lt_sysroot:-no}" >&6; }
5619
5620
5621
5622
5623
5624 # Check whether --enable-libtool-lock was given.
5625 if test "${enable_libtool_lock+set}" = set; then :
5626 enableval=$enable_libtool_lock;
5627 fi
5628
5629 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5630
5631 # Some flags need to be propagated to the compiler or linker for good
5632 # libtool support.
5633 case $host in
5634 ia64-*-hpux*)
5635 # Find out which ABI we are using.
5636 echo 'int i;' > conftest.$ac_ext
5637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5638 (eval $ac_compile) 2>&5
5639 ac_status=$?
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; }; then
5642 case `/usr/bin/file conftest.$ac_objext` in
5643 *ELF-32*)
5644 HPUX_IA64_MODE="32"
5645 ;;
5646 *ELF-64*)
5647 HPUX_IA64_MODE="64"
5648 ;;
5649 esac
5650 fi
5651 rm -rf conftest*
5652 ;;
5653 *-*-irix6*)
5654 # Find out which ABI we are using.
5655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5657 (eval $ac_compile) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }; then
5661 if test "$lt_cv_prog_gnu_ld" = yes; then
5662 case `/usr/bin/file conftest.$ac_objext` in
5663 *32-bit*)
5664 LD="${LD-ld} -melf32bsmip"
5665 ;;
5666 *N32*)
5667 LD="${LD-ld} -melf32bmipn32"
5668 ;;
5669 *64-bit*)
5670 LD="${LD-ld} -melf64bmip"
5671 ;;
5672 esac
5673 else
5674 case `/usr/bin/file conftest.$ac_objext` in
5675 *32-bit*)
5676 LD="${LD-ld} -32"
5677 ;;
5678 *N32*)
5679 LD="${LD-ld} -n32"
5680 ;;
5681 *64-bit*)
5682 LD="${LD-ld} -64"
5683 ;;
5684 esac
5685 fi
5686 fi
5687 rm -rf conftest*
5688 ;;
5689
5690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5692 # Find out which ABI we are using.
5693 echo 'int i;' > conftest.$ac_ext
5694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }; then
5699 case `/usr/bin/file conftest.o` in
5700 *32-bit*)
5701 case $host in
5702 x86_64-*kfreebsd*-gnu)
5703 LD="${LD-ld} -m elf_i386_fbsd"
5704 ;;
5705 x86_64-*linux*)
5706 LD="${LD-ld} -m elf_i386"
5707 ;;
5708 ppc64-*linux*|powerpc64-*linux*)
5709 LD="${LD-ld} -m elf32ppclinux"
5710 ;;
5711 s390x-*linux*)
5712 LD="${LD-ld} -m elf_s390"
5713 ;;
5714 sparc64-*linux*)
5715 LD="${LD-ld} -m elf32_sparc"
5716 ;;
5717 esac
5718 ;;
5719 *64-bit*)
5720 case $host in
5721 x86_64-*kfreebsd*-gnu)
5722 LD="${LD-ld} -m elf_x86_64_fbsd"
5723 ;;
5724 x86_64-*linux*)
5725 LD="${LD-ld} -m elf_x86_64"
5726 ;;
5727 ppc*-*linux*|powerpc*-*linux*)
5728 LD="${LD-ld} -m elf64ppc"
5729 ;;
5730 s390*-*linux*|s390*-*tpf*)
5731 LD="${LD-ld} -m elf64_s390"
5732 ;;
5733 sparc*-*linux*)
5734 LD="${LD-ld} -m elf64_sparc"
5735 ;;
5736 esac
5737 ;;
5738 esac
5739 fi
5740 rm -rf conftest*
5741 ;;
5742
5743 *-*-sco3.2v5*)
5744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5745 SAVE_CFLAGS="$CFLAGS"
5746 CFLAGS="$CFLAGS -belf"
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5748 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5749 if ${lt_cv_cc_needs_belf+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 ac_ext=c
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760
5761 int
5762 main ()
5763 {
5764
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_link "$LINENO"; then :
5770 lt_cv_cc_needs_belf=yes
5771 else
5772 lt_cv_cc_needs_belf=no
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5776 ac_ext=c
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5784 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5785 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5786 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5787 CFLAGS="$SAVE_CFLAGS"
5788 fi
5789 ;;
5790 *-*solaris*)
5791 # Find out which ABI we are using.
5792 echo 'int i;' > conftest.$ac_ext
5793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5794 (eval $ac_compile) 2>&5
5795 ac_status=$?
5796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797 test $ac_status = 0; }; then
5798 case `/usr/bin/file conftest.o` in
5799 *64-bit*)
5800 case $lt_cv_prog_gnu_ld in
5801 yes*)
5802 case $host in
5803 i?86-*-solaris*)
5804 LD="${LD-ld} -m elf_x86_64"
5805 ;;
5806 sparc*-*-solaris*)
5807 LD="${LD-ld} -m elf64_sparc"
5808 ;;
5809 esac
5810 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5811 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5812 LD="${LD-ld}_sol2"
5813 fi
5814 ;;
5815 *)
5816 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5817 LD="${LD-ld} -64"
5818 fi
5819 ;;
5820 esac
5821 ;;
5822 esac
5823 fi
5824 rm -rf conftest*
5825 ;;
5826 esac
5827
5828 need_locks="$enable_libtool_lock"
5829
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}mt; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$MANIFEST_TOOL"; then
5839 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5859 if test -n "$MANIFEST_TOOL"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5861 $as_echo "$MANIFEST_TOOL" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866
5867
5868 fi
5869 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5870 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5871 # Extract the first word of "mt", so it can be a program name with args.
5872 set dummy mt; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if test -n "$ac_ct_MANIFEST_TOOL"; then
5879 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5899 if test -n "$ac_ct_MANIFEST_TOOL"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5901 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5902 else
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5908 MANIFEST_TOOL=":"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911 yes:)
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914 ac_tool_warned=yes ;;
5915 esac
5916 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5917 fi
5918 else
5919 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5920 fi
5921
5922 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5924 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5925 if ${lt_cv_path_mainfest_tool+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 lt_cv_path_mainfest_tool=no
5929 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5930 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5931 cat conftest.err >&5
5932 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5933 lt_cv_path_mainfest_tool=yes
5934 fi
5935 rm -rf conftest*
5936 fi
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5938 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5939 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5940 MANIFEST_TOOL=:
5941 fi
5942
5943
5944
5945
5946
5947
5948 case $host_os in
5949 rhapsody* | darwin*)
5950 if test -n "$ac_tool_prefix"; then
5951 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5952 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if test -n "$DSYMUTIL"; then
5959 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5960 else
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972 done
5973 done
5974 IFS=$as_save_IFS
5975
5976 fi
5977 fi
5978 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5979 if test -n "$DSYMUTIL"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5981 $as_echo "$DSYMUTIL" >&6; }
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 fi
5986
5987
5988 fi
5989 if test -z "$ac_cv_prog_DSYMUTIL"; then
5990 ac_ct_DSYMUTIL=$DSYMUTIL
5991 # Extract the first word of "dsymutil", so it can be a program name with args.
5992 set dummy dsymutil; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if test -n "$ac_ct_DSYMUTIL"; then
5999 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6019 if test -n "$ac_ct_DSYMUTIL"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6021 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6022 else
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027 if test "x$ac_ct_DSYMUTIL" = x; then
6028 DSYMUTIL=":"
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031 yes:)
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6034 ac_tool_warned=yes ;;
6035 esac
6036 DSYMUTIL=$ac_ct_DSYMUTIL
6037 fi
6038 else
6039 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6040 fi
6041
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if ${ac_cv_prog_NMEDIT+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$NMEDIT"; then
6051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 NMEDIT=$ac_cv_prog_NMEDIT
6071 if test -n "$NMEDIT"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6073 $as_echo "$NMEDIT" >&6; }
6074 else
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6077 fi
6078
6079
6080 fi
6081 if test -z "$ac_cv_prog_NMEDIT"; then
6082 ac_ct_NMEDIT=$NMEDIT
6083 # Extract the first word of "nmedit", so it can be a program name with args.
6084 set dummy nmedit; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$ac_ct_NMEDIT"; then
6091 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6111 if test -n "$ac_ct_NMEDIT"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6113 $as_echo "$ac_ct_NMEDIT" >&6; }
6114 else
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117 fi
6118
6119 if test "x$ac_ct_NMEDIT" = x; then
6120 NMEDIT=":"
6121 else
6122 case $cross_compiling:$ac_tool_warned in
6123 yes:)
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128 NMEDIT=$ac_ct_NMEDIT
6129 fi
6130 else
6131 NMEDIT="$ac_cv_prog_NMEDIT"
6132 fi
6133
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_LIPO+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$LIPO"; then
6143 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6155 fi
6156 done
6157 done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 LIPO=$ac_cv_prog_LIPO
6163 if test -n "$LIPO"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6165 $as_echo "$LIPO" >&6; }
6166 else
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172 fi
6173 if test -z "$ac_cv_prog_LIPO"; then
6174 ac_ct_LIPO=$LIPO
6175 # Extract the first word of "lipo", so it can be a program name with args.
6176 set dummy lipo; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 if test -n "$ac_ct_LIPO"; then
6183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_ac_ct_LIPO="lipo"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6195 fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200 fi
6201 fi
6202 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6203 if test -n "$ac_ct_LIPO"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6205 $as_echo "$ac_ct_LIPO" >&6; }
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 fi
6210
6211 if test "x$ac_ct_LIPO" = x; then
6212 LIPO=":"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220 LIPO=$ac_ct_LIPO
6221 fi
6222 else
6223 LIPO="$ac_cv_prog_LIPO"
6224 fi
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}otool; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_OTOOL+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$OTOOL"; then
6235 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 OTOOL=$ac_cv_prog_OTOOL
6255 if test -n "$OTOOL"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6257 $as_echo "$OTOOL" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_OTOOL"; then
6266 ac_ct_OTOOL=$OTOOL
6267 # Extract the first word of "otool", so it can be a program name with args.
6268 set dummy otool; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_OTOOL"; then
6275 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_OTOOL="otool"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6295 if test -n "$ac_ct_OTOOL"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6297 $as_echo "$ac_ct_OTOOL" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_OTOOL" = x; then
6304 OTOOL=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 OTOOL=$ac_ct_OTOOL
6313 fi
6314 else
6315 OTOOL="$ac_cv_prog_OTOOL"
6316 fi
6317
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if ${ac_cv_prog_OTOOL64+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$OTOOL64"; then
6327 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 OTOOL64=$ac_cv_prog_OTOOL64
6347 if test -n "$OTOOL64"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6349 $as_echo "$OTOOL64" >&6; }
6350 else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355
6356 fi
6357 if test -z "$ac_cv_prog_OTOOL64"; then
6358 ac_ct_OTOOL64=$OTOOL64
6359 # Extract the first word of "otool64", so it can be a program name with args.
6360 set dummy otool64; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_OTOOL64"; then
6367 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_ac_ct_OTOOL64="otool64"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6379 fi
6380 done
6381 done
6382 IFS=$as_save_IFS
6383
6384 fi
6385 fi
6386 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6387 if test -n "$ac_ct_OTOOL64"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6389 $as_echo "$ac_ct_OTOOL64" >&6; }
6390 else
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6393 fi
6394
6395 if test "x$ac_ct_OTOOL64" = x; then
6396 OTOOL64=":"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404 OTOOL64=$ac_ct_OTOOL64
6405 fi
6406 else
6407 OTOOL64="$ac_cv_prog_OTOOL64"
6408 fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6437 $as_echo_n "checking for -single_module linker flag... " >&6; }
6438 if ${lt_cv_apple_cc_single_mod+:} false; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 lt_cv_apple_cc_single_mod=no
6442 if test -z "${LT_MULTI_MODULE}"; then
6443 # By default we will add the -single_module flag. You can override
6444 # by either setting the environment variable LT_MULTI_MODULE
6445 # non-empty at configure time, or by adding -multi_module to the
6446 # link flags.
6447 rm -rf libconftest.dylib*
6448 echo "int foo(void){return 1;}" > conftest.c
6449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6450 -dynamiclib -Wl,-single_module conftest.c" >&5
6451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6453 _lt_result=$?
6454 # If there is a non-empty error log, and "single_module"
6455 # appears in it, assume the flag caused a linker warning
6456 if test -s conftest.err && $GREP single_module conftest.err; then
6457 cat conftest.err >&5
6458 # Otherwise, if the output was created with a 0 exit code from
6459 # the compiler, it worked.
6460 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6461 lt_cv_apple_cc_single_mod=yes
6462 else
6463 cat conftest.err >&5
6464 fi
6465 rm -rf libconftest.dylib*
6466 rm -f conftest.*
6467 fi
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6470 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6473 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6474 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 lt_cv_ld_exported_symbols_list=no
6478 save_LDFLAGS=$LDFLAGS
6479 echo "_main" > conftest.sym
6480 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 lt_cv_ld_exported_symbols_list=yes
6494 else
6495 lt_cv_ld_exported_symbols_list=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LDFLAGS="$save_LDFLAGS"
6500
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6503 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6506 $as_echo_n "checking for -force_load linker flag... " >&6; }
6507 if ${lt_cv_ld_force_load+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 lt_cv_ld_force_load=no
6511 cat > conftest.c << _LT_EOF
6512 int forced_loaded() { return 2;}
6513 _LT_EOF
6514 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6515 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6516 echo "$AR cru libconftest.a conftest.o" >&5
6517 $AR cru libconftest.a conftest.o 2>&5
6518 echo "$RANLIB libconftest.a" >&5
6519 $RANLIB libconftest.a 2>&5
6520 cat > conftest.c << _LT_EOF
6521 int main() { return 0;}
6522 _LT_EOF
6523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6525 _lt_result=$?
6526 if test -s conftest.err && $GREP force_load conftest.err; then
6527 cat conftest.err >&5
6528 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6529 lt_cv_ld_force_load=yes
6530 else
6531 cat conftest.err >&5
6532 fi
6533 rm -f conftest.err libconftest.a conftest conftest.c
6534 rm -rf conftest.dSYM
6535
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6538 $as_echo "$lt_cv_ld_force_load" >&6; }
6539 case $host_os in
6540 rhapsody* | darwin1.[012])
6541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6542 darwin1.*)
6543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6544 darwin*) # darwin 5.x on
6545 # if running on 10.5 or later, the deployment target defaults
6546 # to the OS version, if on x86, and 10.4, the deployment
6547 # target defaults to 10.4. Don't you love it?
6548 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6549 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6551 10.[012]*)
6552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6553 10.*)
6554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6555 esac
6556 ;;
6557 esac
6558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6559 _lt_dar_single_mod='$single_module'
6560 fi
6561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6563 else
6564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6565 fi
6566 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6567 _lt_dsymutil='~$DSYMUTIL $lib || :'
6568 else
6569 _lt_dsymutil=
6570 fi
6571 ;;
6572 esac
6573
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6580 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6581 # On Suns, sometimes $CPP names a directory.
6582 if test -n "$CPP" && test -d "$CPP"; then
6583 CPP=
6584 fi
6585 if test -z "$CPP"; then
6586 if ${ac_cv_prog_CPP+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 # Double quotes because CPP needs to be expanded
6590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6591 do
6592 ac_preproc_ok=false
6593 for ac_c_preproc_warn_flag in '' yes
6594 do
6595 # Use a header file that comes with gcc, so configuring glibc
6596 # with a fresh cross-compiler works.
6597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6598 # <limits.h> exists even on freestanding compilers.
6599 # On the NeXT, cc -E runs the code through the compiler's parser,
6600 # not just through cpp. "Syntax error" is here to catch this case.
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 #ifdef __STDC__
6604 # include <limits.h>
6605 #else
6606 # include <assert.h>
6607 #endif
6608 Syntax error
6609 _ACEOF
6610 if ac_fn_c_try_cpp "$LINENO"; then :
6611
6612 else
6613 # Broken: fails on valid input.
6614 continue
6615 fi
6616 rm -f conftest.err conftest.i conftest.$ac_ext
6617
6618 # OK, works on sane cases. Now check whether nonexistent headers
6619 # can be detected and how.
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <ac_nonexistent.h>
6623 _ACEOF
6624 if ac_fn_c_try_cpp "$LINENO"; then :
6625 # Broken: success on invalid input.
6626 continue
6627 else
6628 # Passes both tests.
6629 ac_preproc_ok=:
6630 break
6631 fi
6632 rm -f conftest.err conftest.i conftest.$ac_ext
6633
6634 done
6635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6636 rm -f conftest.i conftest.err conftest.$ac_ext
6637 if $ac_preproc_ok; then :
6638 break
6639 fi
6640
6641 done
6642 ac_cv_prog_CPP=$CPP
6643
6644 fi
6645 CPP=$ac_cv_prog_CPP
6646 else
6647 ac_cv_prog_CPP=$CPP
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6650 $as_echo "$CPP" >&6; }
6651 ac_preproc_ok=false
6652 for ac_c_preproc_warn_flag in '' yes
6653 do
6654 # Use a header file that comes with gcc, so configuring glibc
6655 # with a fresh cross-compiler works.
6656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6657 # <limits.h> exists even on freestanding compilers.
6658 # On the NeXT, cc -E runs the code through the compiler's parser,
6659 # not just through cpp. "Syntax error" is here to catch this case.
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #ifdef __STDC__
6663 # include <limits.h>
6664 #else
6665 # include <assert.h>
6666 #endif
6667 Syntax error
6668 _ACEOF
6669 if ac_fn_c_try_cpp "$LINENO"; then :
6670
6671 else
6672 # Broken: fails on valid input.
6673 continue
6674 fi
6675 rm -f conftest.err conftest.i conftest.$ac_ext
6676
6677 # OK, works on sane cases. Now check whether nonexistent headers
6678 # can be detected and how.
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681 #include <ac_nonexistent.h>
6682 _ACEOF
6683 if ac_fn_c_try_cpp "$LINENO"; then :
6684 # Broken: success on invalid input.
6685 continue
6686 else
6687 # Passes both tests.
6688 ac_preproc_ok=:
6689 break
6690 fi
6691 rm -f conftest.err conftest.i conftest.$ac_ext
6692
6693 done
6694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6695 rm -f conftest.i conftest.err conftest.$ac_ext
6696 if $ac_preproc_ok; then :
6697
6698 else
6699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6701 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6702 See \`config.log' for more details" "$LINENO" 5; }
6703 fi
6704
6705 ac_ext=c
6706 ac_cpp='$CPP $CPPFLAGS'
6707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6710
6711
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6713 $as_echo_n "checking for ANSI C header files... " >&6; }
6714 if ${ac_cv_header_stdc+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <stdlib.h>
6720 #include <stdarg.h>
6721 #include <string.h>
6722 #include <float.h>
6723
6724 int
6725 main ()
6726 {
6727
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_compile "$LINENO"; then :
6733 ac_cv_header_stdc=yes
6734 else
6735 ac_cv_header_stdc=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738
6739 if test $ac_cv_header_stdc = yes; then
6740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <string.h>
6744
6745 _ACEOF
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "memchr" >/dev/null 2>&1; then :
6748
6749 else
6750 ac_cv_header_stdc=no
6751 fi
6752 rm -f conftest*
6753
6754 fi
6755
6756 if test $ac_cv_header_stdc = yes; then
6757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 #include <stdlib.h>
6761
6762 _ACEOF
6763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "free" >/dev/null 2>&1; then :
6765
6766 else
6767 ac_cv_header_stdc=no
6768 fi
6769 rm -f conftest*
6770
6771 fi
6772
6773 if test $ac_cv_header_stdc = yes; then
6774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6775 if test "$cross_compiling" = yes; then :
6776 :
6777 else
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #include <ctype.h>
6781 #include <stdlib.h>
6782 #if ((' ' & 0x0FF) == 0x020)
6783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6785 #else
6786 # define ISLOWER(c) \
6787 (('a' <= (c) && (c) <= 'i') \
6788 || ('j' <= (c) && (c) <= 'r') \
6789 || ('s' <= (c) && (c) <= 'z'))
6790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6791 #endif
6792
6793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6794 int
6795 main ()
6796 {
6797 int i;
6798 for (i = 0; i < 256; i++)
6799 if (XOR (islower (i), ISLOWER (i))
6800 || toupper (i) != TOUPPER (i))
6801 return 2;
6802 return 0;
6803 }
6804 _ACEOF
6805 if ac_fn_c_try_run "$LINENO"; then :
6806
6807 else
6808 ac_cv_header_stdc=no
6809 fi
6810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6811 conftest.$ac_objext conftest.beam conftest.$ac_ext
6812 fi
6813
6814 fi
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6817 $as_echo "$ac_cv_header_stdc" >&6; }
6818 if test $ac_cv_header_stdc = yes; then
6819
6820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6821
6822 fi
6823
6824 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6826 inttypes.h stdint.h unistd.h
6827 do :
6828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6829 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6830 "
6831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6832 cat >>confdefs.h <<_ACEOF
6833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834 _ACEOF
6835
6836 fi
6837
6838 done
6839
6840
6841 for ac_header in dlfcn.h
6842 do :
6843 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6844 "
6845 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6846 cat >>confdefs.h <<_ACEOF
6847 #define HAVE_DLFCN_H 1
6848 _ACEOF
6849
6850 fi
6851
6852 done
6853
6854
6855
6856
6857
6858 # Set options
6859 # Check whether --enable-static was given.
6860 if test "${enable_static+set}" = set; then :
6861 enableval=$enable_static; p=${PACKAGE-default}
6862 case $enableval in
6863 yes) enable_static=yes ;;
6864 no) enable_static=no ;;
6865 *)
6866 enable_static=no
6867 # Look at the argument we got. We use all the common list separators.
6868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6869 for pkg in $enableval; do
6870 IFS="$lt_save_ifs"
6871 if test "X$pkg" = "X$p"; then
6872 enable_static=yes
6873 fi
6874 done
6875 IFS="$lt_save_ifs"
6876 ;;
6877 esac
6878 else
6879 enable_static=no
6880 fi
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 enable_dlopen=no
6892
6893
6894 enable_win32_dll=no
6895
6896
6897 # Check whether --enable-shared was given.
6898 if test "${enable_shared+set}" = set; then :
6899 enableval=$enable_shared; p=${PACKAGE-default}
6900 case $enableval in
6901 yes) enable_shared=yes ;;
6902 no) enable_shared=no ;;
6903 *)
6904 enable_shared=no
6905 # Look at the argument we got. We use all the common list separators.
6906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6907 for pkg in $enableval; do
6908 IFS="$lt_save_ifs"
6909 if test "X$pkg" = "X$p"; then
6910 enable_shared=yes
6911 fi
6912 done
6913 IFS="$lt_save_ifs"
6914 ;;
6915 esac
6916 else
6917 enable_shared=yes
6918 fi
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 # Check whether --with-pic was given.
6931 if test "${with_pic+set}" = set; then :
6932 withval=$with_pic; lt_p=${PACKAGE-default}
6933 case $withval in
6934 yes|no) pic_mode=$withval ;;
6935 *)
6936 pic_mode=default
6937 # Look at the argument we got. We use all the common list separators.
6938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939 for lt_pkg in $withval; do
6940 IFS="$lt_save_ifs"
6941 if test "X$lt_pkg" = "X$lt_p"; then
6942 pic_mode=yes
6943 fi
6944 done
6945 IFS="$lt_save_ifs"
6946 ;;
6947 esac
6948 else
6949 pic_mode=default
6950 fi
6951
6952
6953 test -z "$pic_mode" && pic_mode=default
6954
6955
6956
6957
6958
6959
6960
6961 # Check whether --enable-fast-install was given.
6962 if test "${enable_fast_install+set}" = set; then :
6963 enableval=$enable_fast_install; p=${PACKAGE-default}
6964 case $enableval in
6965 yes) enable_fast_install=yes ;;
6966 no) enable_fast_install=no ;;
6967 *)
6968 enable_fast_install=no
6969 # Look at the argument we got. We use all the common list separators.
6970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6971 for pkg in $enableval; do
6972 IFS="$lt_save_ifs"
6973 if test "X$pkg" = "X$p"; then
6974 enable_fast_install=yes
6975 fi
6976 done
6977 IFS="$lt_save_ifs"
6978 ;;
6979 esac
6980 else
6981 enable_fast_install=yes
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994 # This can be used to rebuild libtool when needed
6995 LIBTOOL_DEPS="$ltmain"
6996
6997 # Always use our own libtool.
6998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 test -z "$LN_S" && LN_S="ln -s"
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044 if test -n "${ZSH_VERSION+set}" ; then
7045 setopt NO_GLOB_SUBST
7046 fi
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7049 $as_echo_n "checking for objdir... " >&6; }
7050 if ${lt_cv_objdir+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 rm -f .libs 2>/dev/null
7054 mkdir .libs 2>/dev/null
7055 if test -d .libs; then
7056 lt_cv_objdir=.libs
7057 else
7058 # MS-DOS does not allow filenames that begin with a dot.
7059 lt_cv_objdir=_libs
7060 fi
7061 rmdir .libs 2>/dev/null
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7064 $as_echo "$lt_cv_objdir" >&6; }
7065 objdir=$lt_cv_objdir
7066
7067
7068
7069
7070
7071 cat >>confdefs.h <<_ACEOF
7072 #define LT_OBJDIR "$lt_cv_objdir/"
7073 _ACEOF
7074
7075
7076
7077
7078 case $host_os in
7079 aix3*)
7080 # AIX sometimes has problems with the GCC collect2 program. For some
7081 # reason, if we set the COLLECT_NAMES environment variable, the problems
7082 # vanish in a puff of smoke.
7083 if test "X${COLLECT_NAMES+set}" != Xset; then
7084 COLLECT_NAMES=
7085 export COLLECT_NAMES
7086 fi
7087 ;;
7088 esac
7089
7090 # Global variables:
7091 ofile=libtool
7092 can_build_shared=yes
7093
7094 # All known linkers require a `.a' archive for static linking (except MSVC,
7095 # which needs '.lib').
7096 libext=a
7097
7098 with_gnu_ld="$lt_cv_prog_gnu_ld"
7099
7100 old_CC="$CC"
7101 old_CFLAGS="$CFLAGS"
7102
7103 # Set sane defaults for various variables
7104 test -z "$CC" && CC=cc
7105 test -z "$LTCC" && LTCC=$CC
7106 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7107 test -z "$LD" && LD=ld
7108 test -z "$ac_objext" && ac_objext=o
7109
7110 for cc_temp in $compiler""; do
7111 case $cc_temp in
7112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7114 \-*) ;;
7115 *) break;;
7116 esac
7117 done
7118 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7119
7120
7121 # Only perform the check for file, if the check method requires it
7122 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7123 case $deplibs_check_method in
7124 file_magic*)
7125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7127 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7128 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 case $MAGIC_CMD in
7132 [\\/*] | ?:[\\/]*)
7133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7134 ;;
7135 *)
7136 lt_save_MAGIC_CMD="$MAGIC_CMD"
7137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139 for ac_dir in $ac_dummy; do
7140 IFS="$lt_save_ifs"
7141 test -z "$ac_dir" && ac_dir=.
7142 if test -f $ac_dir/${ac_tool_prefix}file; then
7143 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7144 if test -n "$file_magic_test_file"; then
7145 case $deplibs_check_method in
7146 "file_magic "*)
7147 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150 $EGREP "$file_magic_regex" > /dev/null; then
7151 :
7152 else
7153 cat <<_LT_EOF 1>&2
7154
7155 *** Warning: the command libtool uses to detect shared libraries,
7156 *** $file_magic_cmd, produces output that libtool cannot recognize.
7157 *** The result is that libtool may fail to recognize shared libraries
7158 *** as such. This will affect the creation of libtool libraries that
7159 *** depend on shared libraries, but programs linked with such libtool
7160 *** libraries will work regardless of this problem. Nevertheless, you
7161 *** may want to report the problem to your system manager and/or to
7162 *** bug-libtool@gnu.org
7163
7164 _LT_EOF
7165 fi ;;
7166 esac
7167 fi
7168 break
7169 fi
7170 done
7171 IFS="$lt_save_ifs"
7172 MAGIC_CMD="$lt_save_MAGIC_CMD"
7173 ;;
7174 esac
7175 fi
7176
7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178 if test -n "$MAGIC_CMD"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7180 $as_echo "$MAGIC_CMD" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187
7188
7189
7190 if test -z "$lt_cv_path_MAGIC_CMD"; then
7191 if test -n "$ac_tool_prefix"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7193 $as_echo_n "checking for file... " >&6; }
7194 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 case $MAGIC_CMD in
7198 [\\/*] | ?:[\\/]*)
7199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7200 ;;
7201 *)
7202 lt_save_MAGIC_CMD="$MAGIC_CMD"
7203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7205 for ac_dir in $ac_dummy; do
7206 IFS="$lt_save_ifs"
7207 test -z "$ac_dir" && ac_dir=.
7208 if test -f $ac_dir/file; then
7209 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7210 if test -n "$file_magic_test_file"; then
7211 case $deplibs_check_method in
7212 "file_magic "*)
7213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7216 $EGREP "$file_magic_regex" > /dev/null; then
7217 :
7218 else
7219 cat <<_LT_EOF 1>&2
7220
7221 *** Warning: the command libtool uses to detect shared libraries,
7222 *** $file_magic_cmd, produces output that libtool cannot recognize.
7223 *** The result is that libtool may fail to recognize shared libraries
7224 *** as such. This will affect the creation of libtool libraries that
7225 *** depend on shared libraries, but programs linked with such libtool
7226 *** libraries will work regardless of this problem. Nevertheless, you
7227 *** may want to report the problem to your system manager and/or to
7228 *** bug-libtool@gnu.org
7229
7230 _LT_EOF
7231 fi ;;
7232 esac
7233 fi
7234 break
7235 fi
7236 done
7237 IFS="$lt_save_ifs"
7238 MAGIC_CMD="$lt_save_MAGIC_CMD"
7239 ;;
7240 esac
7241 fi
7242
7243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7244 if test -n "$MAGIC_CMD"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7246 $as_echo "$MAGIC_CMD" >&6; }
7247 else
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249 $as_echo "no" >&6; }
7250 fi
7251
7252
7253 else
7254 MAGIC_CMD=:
7255 fi
7256 fi
7257
7258 fi
7259 ;;
7260 esac
7261
7262 # Use C for the default configuration in the libtool script
7263
7264 lt_save_CC="$CC"
7265 ac_ext=c
7266 ac_cpp='$CPP $CPPFLAGS'
7267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270
7271
7272 # Source file extension for C test sources.
7273 ac_ext=c
7274
7275 # Object file extension for compiled C test sources.
7276 objext=o
7277 objext=$objext
7278
7279 # Code to be used in simple compile tests
7280 lt_simple_compile_test_code="int some_variable = 0;"
7281
7282 # Code to be used in simple link tests
7283 lt_simple_link_test_code='int main(){return(0);}'
7284
7285
7286
7287
7288
7289
7290
7291 # If no C compiler was specified, use CC.
7292 LTCC=${LTCC-"$CC"}
7293
7294 # If no C compiler flags were specified, use CFLAGS.
7295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7296
7297 # Allow CC to be a program name with arguments.
7298 compiler=$CC
7299
7300 # Save the default compiler, since it gets overwritten when the other
7301 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7302 compiler_DEFAULT=$CC
7303
7304 # save warnings/boilerplate of simple test code
7305 ac_outfile=conftest.$ac_objext
7306 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7308 _lt_compiler_boilerplate=`cat conftest.err`
7309 $RM -r conftest*
7310
7311 ac_outfile=conftest.$ac_objext
7312 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7313 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7314 _lt_linker_boilerplate=`cat conftest.err`
7315 $RM -r conftest*
7316
7317
7318 if test -n "$compiler"; then
7319
7320 lt_prog_compiler_no_builtin_flag=
7321
7322 if test "$GCC" = yes; then
7323 case $cc_basename in
7324 nvcc*)
7325 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7326 *)
7327 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7328 esac
7329
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7331 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7332 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 lt_cv_prog_compiler_rtti_exceptions=no
7336 ac_outfile=conftest.$ac_objext
7337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7338 lt_compiler_flag="-fno-rtti -fno-exceptions"
7339 # Insert the option either (1) after the last *FLAGS variable, or
7340 # (2) before a word containing "conftest.", or (3) at the end.
7341 # Note that $ac_compile itself does not contain backslashes and begins
7342 # with a dollar sign (not a hyphen), so the echo should work correctly.
7343 # The option is referenced via a variable to avoid confusing sed.
7344 lt_compile=`echo "$ac_compile" | $SED \
7345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7347 -e 's:$: $lt_compiler_flag:'`
7348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7349 (eval "$lt_compile" 2>conftest.err)
7350 ac_status=$?
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 if (exit $ac_status) && test -s "$ac_outfile"; then
7354 # The compiler can only warn and ignore the option if not recognized
7355 # So say no if there are warnings other than the usual output.
7356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7359 lt_cv_prog_compiler_rtti_exceptions=yes
7360 fi
7361 fi
7362 $RM -r conftest*
7363
7364 fi
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7366 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7367
7368 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7369 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7370 else
7371 :
7372 fi
7373
7374 fi
7375
7376
7377
7378
7379
7380
7381 lt_prog_compiler_wl=
7382 lt_prog_compiler_pic=
7383 lt_prog_compiler_static=
7384
7385
7386 if test "$GCC" = yes; then
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_static='-static'
7389
7390 case $host_os in
7391 aix*)
7392 # All AIX code is PIC.
7393 if test "$host_cpu" = ia64; then
7394 # AIX 5 now supports IA64 processor
7395 lt_prog_compiler_static='-Bstatic'
7396 fi
7397 ;;
7398
7399 amigaos*)
7400 case $host_cpu in
7401 powerpc)
7402 # see comment about AmigaOS4 .so support
7403 lt_prog_compiler_pic='-fPIC'
7404 ;;
7405 m68k)
7406 # FIXME: we need at least 68020 code to build shared libraries, but
7407 # adding the `-m68020' flag to GCC prevents building anything better,
7408 # like `-m68040'.
7409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7410 ;;
7411 esac
7412 ;;
7413
7414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7415 # PIC is the default for these OSes.
7416 ;;
7417
7418 mingw* | cygwin* | pw32* | os2* | cegcc*)
7419 # This hack is so that the source file can tell whether it is being
7420 # built for inclusion in a dll (and should export symbols for example).
7421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7422 # (--disable-auto-import) libraries
7423 lt_prog_compiler_pic='-DDLL_EXPORT'
7424 ;;
7425
7426 darwin* | rhapsody*)
7427 # PIC is the default on this platform
7428 # Common symbols not allowed in MH_DYLIB files
7429 lt_prog_compiler_pic='-fno-common'
7430 ;;
7431
7432 haiku*)
7433 # PIC is the default for Haiku.
7434 # The "-static" flag exists, but is broken.
7435 lt_prog_compiler_static=
7436 ;;
7437
7438 hpux*)
7439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7441 # sets the default TLS model and affects inlining.
7442 case $host_cpu in
7443 hppa*64*)
7444 # +Z the default
7445 ;;
7446 *)
7447 lt_prog_compiler_pic='-fPIC'
7448 ;;
7449 esac
7450 ;;
7451
7452 interix[3-9]*)
7453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7454 # Instead, we relocate shared libraries at runtime.
7455 ;;
7456
7457 msdosdjgpp*)
7458 # Just because we use GCC doesn't mean we suddenly get shared libraries
7459 # on systems that don't support them.
7460 lt_prog_compiler_can_build_shared=no
7461 enable_shared=no
7462 ;;
7463
7464 *nto* | *qnx*)
7465 # QNX uses GNU C++, but need to define -shared option too, otherwise
7466 # it will coredump.
7467 lt_prog_compiler_pic='-fPIC -shared'
7468 ;;
7469
7470 sysv4*MP*)
7471 if test -d /usr/nec; then
7472 lt_prog_compiler_pic=-Kconform_pic
7473 fi
7474 ;;
7475
7476 *)
7477 lt_prog_compiler_pic='-fPIC'
7478 ;;
7479 esac
7480
7481 case $cc_basename in
7482 nvcc*) # Cuda Compiler Driver 2.2
7483 lt_prog_compiler_wl='-Xlinker '
7484 if test -n "$lt_prog_compiler_pic"; then
7485 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7486 fi
7487 ;;
7488 esac
7489 else
7490 # PORTME Check for flag to pass linker flags through the system compiler.
7491 case $host_os in
7492 aix*)
7493 lt_prog_compiler_wl='-Wl,'
7494 if test "$host_cpu" = ia64; then
7495 # AIX 5 now supports IA64 processor
7496 lt_prog_compiler_static='-Bstatic'
7497 else
7498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7499 fi
7500 ;;
7501
7502 mingw* | cygwin* | pw32* | os2* | cegcc*)
7503 # This hack is so that the source file can tell whether it is being
7504 # built for inclusion in a dll (and should export symbols for example).
7505 lt_prog_compiler_pic='-DDLL_EXPORT'
7506 ;;
7507
7508 hpux9* | hpux10* | hpux11*)
7509 lt_prog_compiler_wl='-Wl,'
7510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7511 # not for PA HP-UX.
7512 case $host_cpu in
7513 hppa*64*|ia64*)
7514 # +Z the default
7515 ;;
7516 *)
7517 lt_prog_compiler_pic='+Z'
7518 ;;
7519 esac
7520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7521 lt_prog_compiler_static='${wl}-a ${wl}archive'
7522 ;;
7523
7524 irix5* | irix6* | nonstopux*)
7525 lt_prog_compiler_wl='-Wl,'
7526 # PIC (with -KPIC) is the default.
7527 lt_prog_compiler_static='-non_shared'
7528 ;;
7529
7530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7531 case $cc_basename in
7532 # old Intel for x86_64 which still supported -KPIC.
7533 ecc*)
7534 lt_prog_compiler_wl='-Wl,'
7535 lt_prog_compiler_pic='-KPIC'
7536 lt_prog_compiler_static='-static'
7537 ;;
7538 # icc used to be incompatible with GCC.
7539 # ICC 10 doesn't accept -KPIC any more.
7540 icc* | ifort*)
7541 lt_prog_compiler_wl='-Wl,'
7542 lt_prog_compiler_pic='-fPIC'
7543 lt_prog_compiler_static='-static'
7544 ;;
7545 # Lahey Fortran 8.1.
7546 lf95*)
7547 lt_prog_compiler_wl='-Wl,'
7548 lt_prog_compiler_pic='--shared'
7549 lt_prog_compiler_static='--static'
7550 ;;
7551 nagfor*)
7552 # NAG Fortran compiler
7553 lt_prog_compiler_wl='-Wl,-Wl,,'
7554 lt_prog_compiler_pic='-PIC'
7555 lt_prog_compiler_static='-Bstatic'
7556 ;;
7557 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7558 # Portland Group compilers (*not* the Pentium gcc compiler,
7559 # which looks to be a dead project)
7560 lt_prog_compiler_wl='-Wl,'
7561 lt_prog_compiler_pic='-fpic'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7564 ccc*)
7565 lt_prog_compiler_wl='-Wl,'
7566 # All Alpha code is PIC.
7567 lt_prog_compiler_static='-non_shared'
7568 ;;
7569 xl* | bgxl* | bgf* | mpixl*)
7570 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7571 lt_prog_compiler_wl='-Wl,'
7572 lt_prog_compiler_pic='-qpic'
7573 lt_prog_compiler_static='-qstaticlink'
7574 ;;
7575 *)
7576 case `$CC -V 2>&1 | sed 5q` in
7577 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7578 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7579 lt_prog_compiler_pic='-KPIC'
7580 lt_prog_compiler_static='-Bstatic'
7581 lt_prog_compiler_wl=''
7582 ;;
7583 *Sun\ F* | *Sun*Fortran*)
7584 lt_prog_compiler_pic='-KPIC'
7585 lt_prog_compiler_static='-Bstatic'
7586 lt_prog_compiler_wl='-Qoption ld '
7587 ;;
7588 *Sun\ C*)
7589 # Sun C 5.9
7590 lt_prog_compiler_pic='-KPIC'
7591 lt_prog_compiler_static='-Bstatic'
7592 lt_prog_compiler_wl='-Wl,'
7593 ;;
7594 *Intel*\ [CF]*Compiler*)
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='-fPIC'
7597 lt_prog_compiler_static='-static'
7598 ;;
7599 *Portland\ Group*)
7600 lt_prog_compiler_wl='-Wl,'
7601 lt_prog_compiler_pic='-fpic'
7602 lt_prog_compiler_static='-Bstatic'
7603 ;;
7604 esac
7605 ;;
7606 esac
7607 ;;
7608
7609 newsos6)
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 ;;
7613
7614 *nto* | *qnx*)
7615 # QNX uses GNU C++, but need to define -shared option too, otherwise
7616 # it will coredump.
7617 lt_prog_compiler_pic='-fPIC -shared'
7618 ;;
7619
7620 osf3* | osf4* | osf5*)
7621 lt_prog_compiler_wl='-Wl,'
7622 # All OSF/1 code is PIC.
7623 lt_prog_compiler_static='-non_shared'
7624 ;;
7625
7626 rdos*)
7627 lt_prog_compiler_static='-non_shared'
7628 ;;
7629
7630 solaris*)
7631 lt_prog_compiler_pic='-KPIC'
7632 lt_prog_compiler_static='-Bstatic'
7633 case $cc_basename in
7634 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7635 lt_prog_compiler_wl='-Qoption ld ';;
7636 *)
7637 lt_prog_compiler_wl='-Wl,';;
7638 esac
7639 ;;
7640
7641 sunos4*)
7642 lt_prog_compiler_wl='-Qoption ld '
7643 lt_prog_compiler_pic='-PIC'
7644 lt_prog_compiler_static='-Bstatic'
7645 ;;
7646
7647 sysv4 | sysv4.2uw2* | sysv4.3*)
7648 lt_prog_compiler_wl='-Wl,'
7649 lt_prog_compiler_pic='-KPIC'
7650 lt_prog_compiler_static='-Bstatic'
7651 ;;
7652
7653 sysv4*MP*)
7654 if test -d /usr/nec ;then
7655 lt_prog_compiler_pic='-Kconform_pic'
7656 lt_prog_compiler_static='-Bstatic'
7657 fi
7658 ;;
7659
7660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7661 lt_prog_compiler_wl='-Wl,'
7662 lt_prog_compiler_pic='-KPIC'
7663 lt_prog_compiler_static='-Bstatic'
7664 ;;
7665
7666 unicos*)
7667 lt_prog_compiler_wl='-Wl,'
7668 lt_prog_compiler_can_build_shared=no
7669 ;;
7670
7671 uts4*)
7672 lt_prog_compiler_pic='-pic'
7673 lt_prog_compiler_static='-Bstatic'
7674 ;;
7675
7676 *)
7677 lt_prog_compiler_can_build_shared=no
7678 ;;
7679 esac
7680 fi
7681
7682 case $host_os in
7683 # For platforms which do not support PIC, -DPIC is meaningless:
7684 *djgpp*)
7685 lt_prog_compiler_pic=
7686 ;;
7687 *)
7688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7689 ;;
7690 esac
7691
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7693 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7694 if ${lt_cv_prog_compiler_pic+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7700 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7701 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7702
7703 #
7704 # Check to make sure the PIC flag actually works.
7705 #
7706 if test -n "$lt_prog_compiler_pic"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7708 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7709 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 lt_cv_prog_compiler_pic_works=no
7713 ac_outfile=conftest.$ac_objext
7714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7716 # Insert the option either (1) after the last *FLAGS variable, or
7717 # (2) before a word containing "conftest.", or (3) at the end.
7718 # Note that $ac_compile itself does not contain backslashes and begins
7719 # with a dollar sign (not a hyphen), so the echo should work correctly.
7720 # The option is referenced via a variable to avoid confusing sed.
7721 lt_compile=`echo "$ac_compile" | $SED \
7722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724 -e 's:$: $lt_compiler_flag:'`
7725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726 (eval "$lt_compile" 2>conftest.err)
7727 ac_status=$?
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 if (exit $ac_status) && test -s "$ac_outfile"; then
7731 # The compiler can only warn and ignore the option if not recognized
7732 # So say no if there are warnings other than the usual output.
7733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736 lt_cv_prog_compiler_pic_works=yes
7737 fi
7738 fi
7739 $RM -r conftest*
7740
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7743 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7744
7745 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7746 case $lt_prog_compiler_pic in
7747 "" | " "*) ;;
7748 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7749 esac
7750 else
7751 lt_prog_compiler_pic=
7752 lt_prog_compiler_can_build_shared=no
7753 fi
7754
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 #
7768 # Check to make sure the static flag actually works.
7769 #
7770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7773 if ${lt_cv_prog_compiler_static_works+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 lt_cv_prog_compiler_static_works=no
7777 save_LDFLAGS="$LDFLAGS"
7778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7781 # The linker can only warn and ignore the option if not recognized
7782 # So say no if there are warnings
7783 if test -s conftest.err; then
7784 # Append any errors to the config.log.
7785 cat conftest.err 1>&5
7786 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788 if diff conftest.exp conftest.er2 >/dev/null; then
7789 lt_cv_prog_compiler_static_works=yes
7790 fi
7791 else
7792 lt_cv_prog_compiler_static_works=yes
7793 fi
7794 fi
7795 $RM -r conftest*
7796 LDFLAGS="$save_LDFLAGS"
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7800 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7801
7802 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7803 :
7804 else
7805 lt_prog_compiler_static=
7806 fi
7807
7808
7809
7810
7811
7812
7813
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7815 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7816 if ${lt_cv_prog_compiler_c_o+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 lt_cv_prog_compiler_c_o=no
7820 $RM -r conftest 2>/dev/null
7821 mkdir conftest
7822 cd conftest
7823 mkdir out
7824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7825
7826 lt_compiler_flag="-o out/conftest2.$ac_objext"
7827 # Insert the option either (1) after the last *FLAGS variable, or
7828 # (2) before a word containing "conftest.", or (3) at the end.
7829 # Note that $ac_compile itself does not contain backslashes and begins
7830 # with a dollar sign (not a hyphen), so the echo should work correctly.
7831 lt_compile=`echo "$ac_compile" | $SED \
7832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7834 -e 's:$: $lt_compiler_flag:'`
7835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7836 (eval "$lt_compile" 2>out/conftest.err)
7837 ac_status=$?
7838 cat out/conftest.err >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7841 then
7842 # The compiler can only warn and ignore the option if not recognized
7843 # So say no if there are warnings
7844 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7847 lt_cv_prog_compiler_c_o=yes
7848 fi
7849 fi
7850 chmod u+w . 2>&5
7851 $RM -r conftest*
7852 # SGI C++ compiler will create directory out/ii_files/ for
7853 # template instantiation
7854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7855 $RM out/* && rmdir out
7856 cd ..
7857 $RM -r conftest
7858 $RM -r conftest*
7859
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7862 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7863
7864
7865
7866
7867
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7871 if ${lt_cv_prog_compiler_c_o+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_prog_compiler_c_o=no
7875 $RM -r conftest 2>/dev/null
7876 mkdir conftest
7877 cd conftest
7878 mkdir out
7879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7880
7881 lt_compiler_flag="-o out/conftest2.$ac_objext"
7882 # Insert the option either (1) after the last *FLAGS variable, or
7883 # (2) before a word containing "conftest.", or (3) at the end.
7884 # Note that $ac_compile itself does not contain backslashes and begins
7885 # with a dollar sign (not a hyphen), so the echo should work correctly.
7886 lt_compile=`echo "$ac_compile" | $SED \
7887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7889 -e 's:$: $lt_compiler_flag:'`
7890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7891 (eval "$lt_compile" 2>out/conftest.err)
7892 ac_status=$?
7893 cat out/conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7896 then
7897 # The compiler can only warn and ignore the option if not recognized
7898 # So say no if there are warnings
7899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7902 lt_cv_prog_compiler_c_o=yes
7903 fi
7904 fi
7905 chmod u+w . 2>&5
7906 $RM -r conftest*
7907 # SGI C++ compiler will create directory out/ii_files/ for
7908 # template instantiation
7909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7910 $RM out/* && rmdir out
7911 cd ..
7912 $RM -r conftest
7913 $RM -r conftest*
7914
7915 fi
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7918
7919
7920
7921
7922 hard_links="nottested"
7923 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7924 # do not overwrite the value of need_locks provided by the user
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7926 $as_echo_n "checking if we can lock with hard links... " >&6; }
7927 hard_links=yes
7928 $RM -r conftest*
7929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7930 touch conftest.a
7931 ln conftest.a conftest.b 2>&5 || hard_links=no
7932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7934 $as_echo "$hard_links" >&6; }
7935 if test "$hard_links" = no; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7937 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7938 need_locks=warn
7939 fi
7940 else
7941 need_locks=no
7942 fi
7943
7944
7945
7946
7947
7948
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7950 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7951
7952 runpath_var=
7953 allow_undefined_flag=
7954 always_export_symbols=no
7955 archive_cmds=
7956 archive_expsym_cmds=
7957 compiler_needs_object=no
7958 enable_shared_with_static_runtimes=no
7959 export_dynamic_flag_spec=
7960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7961 hardcode_automatic=no
7962 hardcode_direct=no
7963 hardcode_direct_absolute=no
7964 hardcode_libdir_flag_spec=
7965 hardcode_libdir_separator=
7966 hardcode_minus_L=no
7967 hardcode_shlibpath_var=unsupported
7968 inherit_rpath=no
7969 link_all_deplibs=unknown
7970 module_cmds=
7971 module_expsym_cmds=
7972 old_archive_from_new_cmds=
7973 old_archive_from_expsyms_cmds=
7974 thread_safe_flag_spec=
7975 whole_archive_flag_spec=
7976 # include_expsyms should be a list of space-separated symbols to be *always*
7977 # included in the symbol list
7978 include_expsyms=
7979 # exclude_expsyms can be an extended regexp of symbols to exclude
7980 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7981 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7982 # as well as any symbol that contains `d'.
7983 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7984 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7985 # platforms (ab)use it in PIC code, but their linkers get confused if
7986 # the symbol is explicitly referenced. Since portable code cannot
7987 # rely on this symbol name, it's probably fine to never include it in
7988 # preloaded symbol tables.
7989 # Exclude shared library initialization/finalization symbols.
7990 extract_expsyms_cmds=
7991
7992 case $host_os in
7993 cygwin* | mingw* | pw32* | cegcc*)
7994 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7995 # When not using gcc, we currently assume that we are using
7996 # Microsoft Visual C++.
7997 if test "$GCC" != yes; then
7998 with_gnu_ld=no
7999 fi
8000 ;;
8001 interix*)
8002 # we just hope/assume this is gcc and not c89 (= MSVC++)
8003 with_gnu_ld=yes
8004 ;;
8005 openbsd*)
8006 with_gnu_ld=no
8007 ;;
8008 esac
8009
8010 ld_shlibs=yes
8011
8012 # On some targets, GNU ld is compatible enough with the native linker
8013 # that we're better off using the native interface for both.
8014 lt_use_gnu_ld_interface=no
8015 if test "$with_gnu_ld" = yes; then
8016 case $host_os in
8017 aix*)
8018 # The AIX port of GNU ld has always aspired to compatibility
8019 # with the native linker. However, as the warning in the GNU ld
8020 # block says, versions before 2.19.5* couldn't really create working
8021 # shared libraries, regardless of the interface used.
8022 case `$LD -v 2>&1` in
8023 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8024 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8025 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8026 *)
8027 lt_use_gnu_ld_interface=yes
8028 ;;
8029 esac
8030 ;;
8031 *)
8032 lt_use_gnu_ld_interface=yes
8033 ;;
8034 esac
8035 fi
8036
8037 if test "$lt_use_gnu_ld_interface" = yes; then
8038 # If archive_cmds runs LD, not CC, wlarc should be empty
8039 wlarc='${wl}'
8040
8041 # Set some defaults for GNU ld with shared library support. These
8042 # are reset later if shared libraries are not supported. Putting them
8043 # here allows them to be overridden if necessary.
8044 runpath_var=LD_RUN_PATH
8045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8046 export_dynamic_flag_spec='${wl}--export-dynamic'
8047 # ancient GNU ld didn't support --whole-archive et. al.
8048 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8049 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8050 else
8051 whole_archive_flag_spec=
8052 fi
8053 supports_anon_versioning=no
8054 case `$LD -v 2>&1` in
8055 *GNU\ gold*) supports_anon_versioning=yes ;;
8056 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8057 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8058 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8059 *\ 2.11.*) ;; # other 2.11 versions
8060 *) supports_anon_versioning=yes ;;
8061 esac
8062
8063 # See if GNU ld supports shared libraries.
8064 case $host_os in
8065 aix[3-9]*)
8066 # On AIX/PPC, the GNU linker is very broken
8067 if test "$host_cpu" != ia64; then
8068 ld_shlibs=no
8069 cat <<_LT_EOF 1>&2
8070
8071 *** Warning: the GNU linker, at least up to release 2.19, is reported
8072 *** to be unable to reliably create shared libraries on AIX.
8073 *** Therefore, libtool is disabling shared libraries support. If you
8074 *** really care for shared libraries, you may want to install binutils
8075 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8076 *** You will then need to restart the configuration process.
8077
8078 _LT_EOF
8079 fi
8080 ;;
8081
8082 amigaos*)
8083 case $host_cpu in
8084 powerpc)
8085 # see comment about AmigaOS4 .so support
8086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8087 archive_expsym_cmds=''
8088 ;;
8089 m68k)
8090 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)'
8091 hardcode_libdir_flag_spec='-L$libdir'
8092 hardcode_minus_L=yes
8093 ;;
8094 esac
8095 ;;
8096
8097 beos*)
8098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8099 allow_undefined_flag=unsupported
8100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8101 # support --undefined. This deserves some investigation. FIXME
8102 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103 else
8104 ld_shlibs=no
8105 fi
8106 ;;
8107
8108 cygwin* | mingw* | pw32* | cegcc*)
8109 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8110 # as there is no search path for DLLs.
8111 hardcode_libdir_flag_spec='-L$libdir'
8112 export_dynamic_flag_spec='${wl}--export-all-symbols'
8113 allow_undefined_flag=unsupported
8114 always_export_symbols=no
8115 enable_shared_with_static_runtimes=yes
8116 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'
8117 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8118
8119 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8121 # If the export-symbols file already is a .def file (1st line
8122 # is EXPORTS), use it as is; otherwise, prepend...
8123 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8124 cp $export_symbols $output_objdir/$soname.def;
8125 else
8126 echo EXPORTS > $output_objdir/$soname.def;
8127 cat $export_symbols >> $output_objdir/$soname.def;
8128 fi~
8129 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8130 else
8131 ld_shlibs=no
8132 fi
8133 ;;
8134
8135 haiku*)
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 link_all_deplibs=yes
8138 ;;
8139
8140 interix[3-9]*)
8141 hardcode_direct=no
8142 hardcode_shlibpath_var=no
8143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8144 export_dynamic_flag_spec='${wl}-E'
8145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8146 # Instead, shared libraries are loaded at an image base (0x10000000 by
8147 # default) and relocated if they conflict, which is a slow very memory
8148 # consuming and fragmenting process. To avoid this, we pick a random,
8149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8152 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'
8153 ;;
8154
8155 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8156 tmp_diet=no
8157 if test "$host_os" = linux-dietlibc; then
8158 case $cc_basename in
8159 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8160 esac
8161 fi
8162 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8163 && test "$tmp_diet" = no
8164 then
8165 tmp_addflag=' $pic_flag'
8166 tmp_sharedflag='-shared'
8167 case $cc_basename,$host_cpu in
8168 pgcc*) # Portland Group C compiler
8169 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'
8170 tmp_addflag=' $pic_flag'
8171 ;;
8172 pgf77* | pgf90* | pgf95* | pgfortran*)
8173 # Portland Group f77 and f90 compilers
8174 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'
8175 tmp_addflag=' $pic_flag -Mnomain' ;;
8176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8177 tmp_addflag=' -i_dynamic' ;;
8178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8179 tmp_addflag=' -i_dynamic -nofor_main' ;;
8180 ifc* | ifort*) # Intel Fortran compiler
8181 tmp_addflag=' -nofor_main' ;;
8182 lf95*) # Lahey Fortran 8.1
8183 whole_archive_flag_spec=
8184 tmp_sharedflag='--shared' ;;
8185 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8186 tmp_sharedflag='-qmkshrobj'
8187 tmp_addflag= ;;
8188 nvcc*) # Cuda Compiler Driver 2.2
8189 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'
8190 compiler_needs_object=yes
8191 ;;
8192 esac
8193 case `$CC -V 2>&1 | sed 5q` in
8194 *Sun\ C*) # Sun C 5.9
8195 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'
8196 compiler_needs_object=yes
8197 tmp_sharedflag='-G' ;;
8198 *Sun\ F*) # Sun Fortran 8.3
8199 tmp_sharedflag='-G' ;;
8200 esac
8201 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202
8203 if test "x$supports_anon_versioning" = xyes; then
8204 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8205 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8206 echo "local: *; };" >> $output_objdir/$libname.ver~
8207 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8208 fi
8209
8210 case $cc_basename in
8211 xlf* | bgf* | bgxlf* | mpixlf*)
8212 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8213 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8216 if test "x$supports_anon_versioning" = xyes; then
8217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8219 echo "local: *; };" >> $output_objdir/$libname.ver~
8220 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8221 fi
8222 ;;
8223 esac
8224 else
8225 ld_shlibs=no
8226 fi
8227 ;;
8228
8229 netbsd*)
8230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8231 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8232 wlarc=
8233 else
8234 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236 fi
8237 ;;
8238
8239 solaris*)
8240 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8241 ld_shlibs=no
8242 cat <<_LT_EOF 1>&2
8243
8244 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8245 *** create shared libraries on Solaris systems. Therefore, libtool
8246 *** is disabling shared libraries support. We urge you to upgrade GNU
8247 *** binutils to release 2.9.1 or newer. Another option is to modify
8248 *** your PATH or compiler configuration so that the native linker is
8249 *** used, and then restart.
8250
8251 _LT_EOF
8252 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8255 else
8256 ld_shlibs=no
8257 fi
8258 ;;
8259
8260 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8261 case `$LD -v 2>&1` in
8262 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8263 ld_shlibs=no
8264 cat <<_LT_EOF 1>&2
8265
8266 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8267 *** reliably create shared libraries on SCO systems. Therefore, libtool
8268 *** is disabling shared libraries support. We urge you to upgrade GNU
8269 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8270 *** your PATH or compiler configuration so that the native linker is
8271 *** used, and then restart.
8272
8273 _LT_EOF
8274 ;;
8275 *)
8276 # For security reasons, it is highly recommended that you always
8277 # use absolute paths for naming shared libraries, and exclude the
8278 # DT_RUNPATH tag from executables and libraries. But doing so
8279 # requires that you compile everything twice, which is a pain.
8280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8284 else
8285 ld_shlibs=no
8286 fi
8287 ;;
8288 esac
8289 ;;
8290
8291 sunos4*)
8292 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293 wlarc=
8294 hardcode_direct=yes
8295 hardcode_shlibpath_var=no
8296 ;;
8297
8298 *)
8299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302 else
8303 ld_shlibs=no
8304 fi
8305 ;;
8306 esac
8307
8308 if test "$ld_shlibs" = no; then
8309 runpath_var=
8310 hardcode_libdir_flag_spec=
8311 export_dynamic_flag_spec=
8312 whole_archive_flag_spec=
8313 fi
8314 else
8315 # PORTME fill in a description of your system's linker (not GNU ld)
8316 case $host_os in
8317 aix3*)
8318 allow_undefined_flag=unsupported
8319 always_export_symbols=yes
8320 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'
8321 # Note: this linker hardcodes the directories in LIBPATH if there
8322 # are no directories specified by -L.
8323 hardcode_minus_L=yes
8324 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8325 # Neither direct hardcoding nor static linking is supported with a
8326 # broken collect2.
8327 hardcode_direct=unsupported
8328 fi
8329 ;;
8330
8331 aix[4-9]*)
8332 if test "$host_cpu" = ia64; then
8333 # On IA64, the linker does run time linking by default, so we don't
8334 # have to do anything special.
8335 aix_use_runtimelinking=no
8336 exp_sym_flag='-Bexport'
8337 no_entry_flag=""
8338 else
8339 # If we're using GNU nm, then we don't want the "-C" option.
8340 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8341 # Also, AIX nm treats weak defined symbols like other global
8342 # defined symbols, whereas GNU nm marks them as "W".
8343 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8344 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'
8345 else
8346 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'
8347 fi
8348 aix_use_runtimelinking=no
8349
8350 # Test if we are trying to use run time linking or normal
8351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8352 # need to do runtime linking.
8353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8354 for ld_flag in $LDFLAGS; do
8355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8356 aix_use_runtimelinking=yes
8357 break
8358 fi
8359 done
8360 ;;
8361 esac
8362
8363 exp_sym_flag='-bexport'
8364 no_entry_flag='-bnoentry'
8365 fi
8366
8367 # When large executables or shared objects are built, AIX ld can
8368 # have problems creating the table of contents. If linking a library
8369 # or program results in "error TOC overflow" add -mminimal-toc to
8370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8372
8373 archive_cmds=''
8374 hardcode_direct=yes
8375 hardcode_direct_absolute=yes
8376 hardcode_libdir_separator=':'
8377 link_all_deplibs=yes
8378 file_list_spec='${wl}-f,'
8379
8380 if test "$GCC" = yes; then
8381 case $host_os in aix4.[012]|aix4.[012].*)
8382 # We only want to do this on AIX 4.2 and lower, the check
8383 # below for broken collect2 doesn't work under 4.3+
8384 collect2name=`${CC} -print-prog-name=collect2`
8385 if test -f "$collect2name" &&
8386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8387 then
8388 # We have reworked collect2
8389 :
8390 else
8391 # We have old collect2
8392 hardcode_direct=unsupported
8393 # It fails to find uninstalled libraries when the uninstalled
8394 # path is not listed in the libpath. Setting hardcode_minus_L
8395 # to unsupported forces relinking
8396 hardcode_minus_L=yes
8397 hardcode_libdir_flag_spec='-L$libdir'
8398 hardcode_libdir_separator=
8399 fi
8400 ;;
8401 esac
8402 shared_flag='-shared'
8403 if test "$aix_use_runtimelinking" = yes; then
8404 shared_flag="$shared_flag "'${wl}-G'
8405 fi
8406 else
8407 # not using gcc
8408 if test "$host_cpu" = ia64; then
8409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8410 # chokes on -Wl,-G. The following line is correct:
8411 shared_flag='-G'
8412 else
8413 if test "$aix_use_runtimelinking" = yes; then
8414 shared_flag='${wl}-G'
8415 else
8416 shared_flag='${wl}-bM:SRE'
8417 fi
8418 fi
8419 fi
8420
8421 export_dynamic_flag_spec='${wl}-bexpall'
8422 # It seems that -bexpall does not export symbols beginning with
8423 # underscore (_), so it is better to generate a list of symbols to export.
8424 always_export_symbols=yes
8425 if test "$aix_use_runtimelinking" = yes; then
8426 # Warning - without using the other runtime loading flags (-brtl),
8427 # -berok will link without error, but may produce a broken library.
8428 allow_undefined_flag='-berok'
8429 # Determine the default libpath from the value encoded in an
8430 # empty executable.
8431 if test "${lt_cv_aix_libpath+set}" = set; then
8432 aix_libpath=$lt_cv_aix_libpath
8433 else
8434 if ${lt_cv_aix_libpath_+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439
8440 int
8441 main ()
8442 {
8443
8444 ;
8445 return 0;
8446 }
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449
8450 lt_aix_libpath_sed='
8451 /Import File Strings/,/^$/ {
8452 /^0/ {
8453 s/^0 *\([^ ]*\) *$/\1/
8454 p
8455 }
8456 }'
8457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8458 # Check for a 64-bit object if we didn't find anything.
8459 if test -z "$lt_cv_aix_libpath_"; then
8460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8461 fi
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext \
8464 conftest$ac_exeext conftest.$ac_ext
8465 if test -z "$lt_cv_aix_libpath_"; then
8466 lt_cv_aix_libpath_="/usr/lib:/lib"
8467 fi
8468
8469 fi
8470
8471 aix_libpath=$lt_cv_aix_libpath_
8472 fi
8473
8474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8475 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"
8476 else
8477 if test "$host_cpu" = ia64; then
8478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8479 allow_undefined_flag="-z nodefs"
8480 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"
8481 else
8482 # Determine the default libpath from the value encoded in an
8483 # empty executable.
8484 if test "${lt_cv_aix_libpath+set}" = set; then
8485 aix_libpath=$lt_cv_aix_libpath
8486 else
8487 if ${lt_cv_aix_libpath_+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492
8493 int
8494 main ()
8495 {
8496
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 if ac_fn_c_try_link "$LINENO"; then :
8502
8503 lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8505 /^0/ {
8506 s/^0 *\([^ ]*\) *$/\1/
8507 p
8508 }
8509 }'
8510 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 # Check for a 64-bit object if we didn't find anything.
8512 if test -z "$lt_cv_aix_libpath_"; then
8513 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8514 fi
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 if test -z "$lt_cv_aix_libpath_"; then
8519 lt_cv_aix_libpath_="/usr/lib:/lib"
8520 fi
8521
8522 fi
8523
8524 aix_libpath=$lt_cv_aix_libpath_
8525 fi
8526
8527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8528 # Warning - without using the other run time loading flags,
8529 # -berok will link without error, but may produce a broken library.
8530 no_undefined_flag=' ${wl}-bernotok'
8531 allow_undefined_flag=' ${wl}-berok'
8532 if test "$with_gnu_ld" = yes; then
8533 # We only use this code for GNU lds that support --whole-archive.
8534 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8535 else
8536 # Exported symbols can be pulled into shared objects from archives
8537 whole_archive_flag_spec='$convenience'
8538 fi
8539 archive_cmds_need_lc=yes
8540 # This is similar to how AIX traditionally builds its shared libraries.
8541 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'
8542 fi
8543 fi
8544 ;;
8545
8546 amigaos*)
8547 case $host_cpu in
8548 powerpc)
8549 # see comment about AmigaOS4 .so support
8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551 archive_expsym_cmds=''
8552 ;;
8553 m68k)
8554 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)'
8555 hardcode_libdir_flag_spec='-L$libdir'
8556 hardcode_minus_L=yes
8557 ;;
8558 esac
8559 ;;
8560
8561 bsdi[45]*)
8562 export_dynamic_flag_spec=-rdynamic
8563 ;;
8564
8565 cygwin* | mingw* | pw32* | cegcc*)
8566 # When not using gcc, we currently assume that we are using
8567 # Microsoft Visual C++.
8568 # hardcode_libdir_flag_spec is actually meaningless, as there is
8569 # no search path for DLLs.
8570 case $cc_basename in
8571 cl*)
8572 # Native MSVC
8573 hardcode_libdir_flag_spec=' '
8574 allow_undefined_flag=unsupported
8575 always_export_symbols=yes
8576 file_list_spec='@'
8577 # Tell ltmain to make .lib files, not .a files.
8578 libext=lib
8579 # Tell ltmain to make .dll files, not .so files.
8580 shrext_cmds=".dll"
8581 # FIXME: Setting linknames here is a bad hack.
8582 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8583 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8584 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8585 else
8586 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8587 fi~
8588 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8589 linknames='
8590 # The linker will not automatically build a static lib if we build a DLL.
8591 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8592 enable_shared_with_static_runtimes=yes
8593 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8595 # Don't use ranlib
8596 old_postinstall_cmds='chmod 644 $oldlib'
8597 postlink_cmds='lt_outputfile="@OUTPUT@"~
8598 lt_tool_outputfile="@TOOL_OUTPUT@"~
8599 case $lt_outputfile in
8600 *.exe|*.EXE) ;;
8601 *)
8602 lt_outputfile="$lt_outputfile.exe"
8603 lt_tool_outputfile="$lt_tool_outputfile.exe"
8604 ;;
8605 esac~
8606 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8607 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8608 $RM "$lt_outputfile.manifest";
8609 fi'
8610 ;;
8611 *)
8612 # Assume MSVC wrapper
8613 hardcode_libdir_flag_spec=' '
8614 allow_undefined_flag=unsupported
8615 # Tell ltmain to make .lib files, not .a files.
8616 libext=lib
8617 # Tell ltmain to make .dll files, not .so files.
8618 shrext_cmds=".dll"
8619 # FIXME: Setting linknames here is a bad hack.
8620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8621 # The linker will automatically build a .lib file if we build a DLL.
8622 old_archive_from_new_cmds='true'
8623 # FIXME: Should let the user specify the lib program.
8624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8625 enable_shared_with_static_runtimes=yes
8626 ;;
8627 esac
8628 ;;
8629
8630 darwin* | rhapsody*)
8631
8632
8633 archive_cmds_need_lc=no
8634 hardcode_direct=no
8635 hardcode_automatic=yes
8636 hardcode_shlibpath_var=unsupported
8637 if test "$lt_cv_ld_force_load" = "yes"; then
8638 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\"`'
8639
8640 else
8641 whole_archive_flag_spec=''
8642 fi
8643 link_all_deplibs=yes
8644 allow_undefined_flag="$_lt_dar_allow_undefined"
8645 case $cc_basename in
8646 ifort*) _lt_dar_can_shared=yes ;;
8647 *) _lt_dar_can_shared=$GCC ;;
8648 esac
8649 if test "$_lt_dar_can_shared" = "yes"; then
8650 output_verbose_link_cmd=func_echo_all
8651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8653 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}"
8654 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}"
8655
8656 else
8657 ld_shlibs=no
8658 fi
8659
8660 ;;
8661
8662 dgux*)
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 hardcode_shlibpath_var=no
8666 ;;
8667
8668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669 # support. Future versions do this automatically, but an explicit c++rt0.o
8670 # does not break anything, and helps significantly (at the cost of a little
8671 # extra space).
8672 freebsd2.2*)
8673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674 hardcode_libdir_flag_spec='-R$libdir'
8675 hardcode_direct=yes
8676 hardcode_shlibpath_var=no
8677 ;;
8678
8679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8680 freebsd2.*)
8681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682 hardcode_direct=yes
8683 hardcode_minus_L=yes
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8688 freebsd* | dragonfly*)
8689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8690 hardcode_libdir_flag_spec='-R$libdir'
8691 hardcode_direct=yes
8692 hardcode_shlibpath_var=no
8693 ;;
8694
8695 hpux9*)
8696 if test "$GCC" = yes; then
8697 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'
8698 else
8699 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'
8700 fi
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_separator=:
8703 hardcode_direct=yes
8704
8705 # hardcode_minus_L: Not really in the search PATH,
8706 # but as the default location of the library.
8707 hardcode_minus_L=yes
8708 export_dynamic_flag_spec='${wl}-E'
8709 ;;
8710
8711 hpux10*)
8712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8713 archive_cmds='$CC -shared $pic_flag ${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 if test "$with_gnu_ld" = no; then
8718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8719 hardcode_libdir_separator=:
8720 hardcode_direct=yes
8721 hardcode_direct_absolute=yes
8722 export_dynamic_flag_spec='${wl}-E'
8723 # hardcode_minus_L: Not really in the search PATH,
8724 # but as the default location of the library.
8725 hardcode_minus_L=yes
8726 fi
8727 ;;
8728
8729 hpux11*)
8730 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8731 case $host_cpu in
8732 hppa*64*)
8733 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 ;;
8735 ia64*)
8736 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737 ;;
8738 *)
8739 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8740 ;;
8741 esac
8742 else
8743 case $host_cpu in
8744 hppa*64*)
8745 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 ;;
8747 ia64*)
8748 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 *)
8751
8752 # Older versions of the 11.00 compiler do not understand -b yet
8753 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8755 $as_echo_n "checking if $CC understands -b... " >&6; }
8756 if ${lt_cv_prog_compiler__b+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 lt_cv_prog_compiler__b=no
8760 save_LDFLAGS="$LDFLAGS"
8761 LDFLAGS="$LDFLAGS -b"
8762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8764 # The linker can only warn and ignore the option if not recognized
8765 # So say no if there are warnings
8766 if test -s conftest.err; then
8767 # Append any errors to the config.log.
8768 cat conftest.err 1>&5
8769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771 if diff conftest.exp conftest.er2 >/dev/null; then
8772 lt_cv_prog_compiler__b=yes
8773 fi
8774 else
8775 lt_cv_prog_compiler__b=yes
8776 fi
8777 fi
8778 $RM -r conftest*
8779 LDFLAGS="$save_LDFLAGS"
8780
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8783 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8784
8785 if test x"$lt_cv_prog_compiler__b" = xyes; then
8786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8787 else
8788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8789 fi
8790
8791 ;;
8792 esac
8793 fi
8794 if test "$with_gnu_ld" = no; then
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8797
8798 case $host_cpu in
8799 hppa*64*|ia64*)
8800 hardcode_direct=no
8801 hardcode_shlibpath_var=no
8802 ;;
8803 *)
8804 hardcode_direct=yes
8805 hardcode_direct_absolute=yes
8806 export_dynamic_flag_spec='${wl}-E'
8807
8808 # hardcode_minus_L: Not really in the search PATH,
8809 # but as the default location of the library.
8810 hardcode_minus_L=yes
8811 ;;
8812 esac
8813 fi
8814 ;;
8815
8816 irix5* | irix6* | nonstopux*)
8817 if test "$GCC" = yes; then
8818 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'
8819 # Try to use the -exported_symbol ld option, if it does not
8820 # work, assume that -exports_file does not work either and
8821 # implicitly export all symbols.
8822 # This should be the same for all languages, so no per-tag cache variable.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8824 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8825 if ${lt_cv_irix_exported_symbol+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 save_LDFLAGS="$LDFLAGS"
8829 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 int foo (void) { return 0; }
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 lt_cv_irix_exported_symbol=yes
8836 else
8837 lt_cv_irix_exported_symbol=no
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LDFLAGS="$save_LDFLAGS"
8842 fi
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8844 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8845 if test "$lt_cv_irix_exported_symbol" = yes; then
8846 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'
8847 fi
8848 else
8849 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'
8850 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'
8851 fi
8852 archive_cmds_need_lc='no'
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855 inherit_rpath=yes
8856 link_all_deplibs=yes
8857 ;;
8858
8859 netbsd*)
8860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8862 else
8863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8864 fi
8865 hardcode_libdir_flag_spec='-R$libdir'
8866 hardcode_direct=yes
8867 hardcode_shlibpath_var=no
8868 ;;
8869
8870 newsos6)
8871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8872 hardcode_direct=yes
8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874 hardcode_libdir_separator=:
8875 hardcode_shlibpath_var=no
8876 ;;
8877
8878 *nto* | *qnx*)
8879 ;;
8880
8881 openbsd*)
8882 if test -f /usr/libexec/ld.so; then
8883 hardcode_direct=yes
8884 hardcode_shlibpath_var=no
8885 hardcode_direct_absolute=yes
8886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 else
8892 case $host_os in
8893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_libdir_flag_spec='-R$libdir'
8896 ;;
8897 *)
8898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900 ;;
8901 esac
8902 fi
8903 else
8904 ld_shlibs=no
8905 fi
8906 ;;
8907
8908 os2*)
8909 hardcode_libdir_flag_spec='-L$libdir'
8910 hardcode_minus_L=yes
8911 allow_undefined_flag=unsupported
8912 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'
8913 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8914 ;;
8915
8916 osf3*)
8917 if test "$GCC" = yes; then
8918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8919 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'
8920 else
8921 allow_undefined_flag=' -expect_unresolved \*'
8922 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'
8923 fi
8924 archive_cmds_need_lc='no'
8925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8926 hardcode_libdir_separator=:
8927 ;;
8928
8929 osf4* | osf5*) # as osf3* with the addition of -msym flag
8930 if test "$GCC" = yes; then
8931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8932 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'
8933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8934 else
8935 allow_undefined_flag=' -expect_unresolved \*'
8936 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'
8937 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~
8938 $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'
8939
8940 # Both c and cxx compiler support -rpath directly
8941 hardcode_libdir_flag_spec='-rpath $libdir'
8942 fi
8943 archive_cmds_need_lc='no'
8944 hardcode_libdir_separator=:
8945 ;;
8946
8947 solaris*)
8948 no_undefined_flag=' -z defs'
8949 if test "$GCC" = yes; then
8950 wlarc='${wl}'
8951 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8953 $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'
8954 else
8955 case `$CC -V 2>&1` in
8956 *"Compilers 5.0"*)
8957 wlarc=''
8958 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8961 ;;
8962 *)
8963 wlarc='${wl}'
8964 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8966 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8967 ;;
8968 esac
8969 fi
8970 hardcode_libdir_flag_spec='-R$libdir'
8971 hardcode_shlibpath_var=no
8972 case $host_os in
8973 solaris2.[0-5] | solaris2.[0-5].*) ;;
8974 *)
8975 # The compiler driver will combine and reorder linker options,
8976 # but understands `-z linker_flag'. GCC discards it without `$wl',
8977 # but is careful enough not to reorder.
8978 # Supported since Solaris 2.6 (maybe 2.5.1?)
8979 if test "$GCC" = yes; then
8980 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8981 else
8982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8983 fi
8984 ;;
8985 esac
8986 link_all_deplibs=yes
8987 ;;
8988
8989 sunos4*)
8990 if test "x$host_vendor" = xsequent; then
8991 # Use $CC to link under sequent, because it throws in some extra .o
8992 # files that make .init and .fini sections work.
8993 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8994 else
8995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8996 fi
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_direct=yes
8999 hardcode_minus_L=yes
9000 hardcode_shlibpath_var=no
9001 ;;
9002
9003 sysv4)
9004 case $host_vendor in
9005 sni)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_direct=yes # is this really true???
9008 ;;
9009 siemens)
9010 ## LD is ld it makes a PLAMLIB
9011 ## CC just makes a GrossModule.
9012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9013 reload_cmds='$CC -r -o $output$reload_objs'
9014 hardcode_direct=no
9015 ;;
9016 motorola)
9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9019 ;;
9020 esac
9021 runpath_var='LD_RUN_PATH'
9022 hardcode_shlibpath_var=no
9023 ;;
9024
9025 sysv4.3*)
9026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_shlibpath_var=no
9028 export_dynamic_flag_spec='-Bexport'
9029 ;;
9030
9031 sysv4*MP*)
9032 if test -d /usr/nec; then
9033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9034 hardcode_shlibpath_var=no
9035 runpath_var=LD_RUN_PATH
9036 hardcode_runpath_var=yes
9037 ld_shlibs=yes
9038 fi
9039 ;;
9040
9041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9042 no_undefined_flag='${wl}-z,text'
9043 archive_cmds_need_lc=no
9044 hardcode_shlibpath_var=no
9045 runpath_var='LD_RUN_PATH'
9046
9047 if test "$GCC" = yes; then
9048 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050 else
9051 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 fi
9054 ;;
9055
9056 sysv5* | sco3.2v5* | sco5v6*)
9057 # Note: We can NOT use -z defs as we might desire, because we do not
9058 # link with -lc, and that would cause any symbols used from libc to
9059 # always be unresolved, which means just about no library would
9060 # ever link correctly. If we're not using GNU ld we use -z text
9061 # though, which does catch some bad symbols but isn't as heavy-handed
9062 # as -z defs.
9063 no_undefined_flag='${wl}-z,text'
9064 allow_undefined_flag='${wl}-z,nodefs'
9065 archive_cmds_need_lc=no
9066 hardcode_shlibpath_var=no
9067 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9068 hardcode_libdir_separator=':'
9069 link_all_deplibs=yes
9070 export_dynamic_flag_spec='${wl}-Bexport'
9071 runpath_var='LD_RUN_PATH'
9072
9073 if test "$GCC" = yes; then
9074 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 else
9077 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079 fi
9080 ;;
9081
9082 uts4*)
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 hardcode_shlibpath_var=no
9086 ;;
9087
9088 *)
9089 ld_shlibs=no
9090 ;;
9091 esac
9092
9093 if test x$host_vendor = xsni; then
9094 case $host in
9095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9096 export_dynamic_flag_spec='${wl}-Blargedynsym'
9097 ;;
9098 esac
9099 fi
9100 fi
9101
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9103 $as_echo "$ld_shlibs" >&6; }
9104 test "$ld_shlibs" = no && can_build_shared=no
9105
9106 with_gnu_ld=$with_gnu_ld
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 #
9123 # Do we need to explicitly link libc?
9124 #
9125 case "x$archive_cmds_need_lc" in
9126 x|xyes)
9127 # Assume -lc should be added
9128 archive_cmds_need_lc=yes
9129
9130 if test "$enable_shared" = yes && test "$GCC" = yes; then
9131 case $archive_cmds in
9132 *'~'*)
9133 # FIXME: we may have to deal with multi-command sequences.
9134 ;;
9135 '$CC '*)
9136 # Test whether the compiler implicitly links with -lc since on some
9137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9138 # to ld, don't add -lc before -lgcc.
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9141 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 $RM -r conftest*
9145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9146
9147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9148 (eval $ac_compile) 2>&5
9149 ac_status=$?
9150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9151 test $ac_status = 0; } 2>conftest.err; then
9152 soname=conftest
9153 lib=conftest
9154 libobjs=conftest.$ac_objext
9155 deplibs=
9156 wl=$lt_prog_compiler_wl
9157 pic_flag=$lt_prog_compiler_pic
9158 compiler_flags=-v
9159 linker_flags=-v
9160 verstring=
9161 output_objdir=.
9162 libname=conftest
9163 lt_save_allow_undefined_flag=$allow_undefined_flag
9164 allow_undefined_flag=
9165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9166 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9167 ac_status=$?
9168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9169 test $ac_status = 0; }
9170 then
9171 lt_cv_archive_cmds_need_lc=no
9172 else
9173 lt_cv_archive_cmds_need_lc=yes
9174 fi
9175 allow_undefined_flag=$lt_save_allow_undefined_flag
9176 else
9177 cat conftest.err 1>&5
9178 fi
9179 $RM -r conftest*
9180
9181 fi
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9183 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9184 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9185 ;;
9186 esac
9187 fi
9188 ;;
9189 esac
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
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9344
9345 if test "$GCC" = yes; then
9346 case $host_os in
9347 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9348 *) lt_awk_arg="/^libraries:/" ;;
9349 esac
9350 case $host_os in
9351 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9352 *) lt_sed_strip_eq="s,=/,/,g" ;;
9353 esac
9354 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9355 case $lt_search_path_spec in
9356 *\;*)
9357 # if the path contains ";" then we assume it to be the separator
9358 # otherwise default to the standard path separator (i.e. ":") - it is
9359 # assumed that no part of a normal pathname contains ";" but that should
9360 # okay in the real world where ";" in dirpaths is itself problematic.
9361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9362 ;;
9363 *)
9364 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9365 ;;
9366 esac
9367 # Ok, now we have the path, separated by spaces, we can step through it
9368 # and add multilib dir if necessary.
9369 lt_tmp_lt_search_path_spec=
9370 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9371 for lt_sys_path in $lt_search_path_spec; do
9372 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9374 else
9375 test -d "$lt_sys_path" && \
9376 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9377 fi
9378 done
9379 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9380 BEGIN {RS=" "; FS="/|\n";} {
9381 lt_foo="";
9382 lt_count=0;
9383 for (lt_i = NF; lt_i > 0; lt_i--) {
9384 if ($lt_i != "" && $lt_i != ".") {
9385 if ($lt_i == "..") {
9386 lt_count++;
9387 } else {
9388 if (lt_count == 0) {
9389 lt_foo="/" $lt_i lt_foo;
9390 } else {
9391 lt_count--;
9392 }
9393 }
9394 }
9395 }
9396 if (lt_foo != "") { lt_freq[lt_foo]++; }
9397 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9398 }'`
9399 # AWK program above erroneously prepends '/' to C:/dos/paths
9400 # for these hosts.
9401 case $host_os in
9402 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9403 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9404 esac
9405 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9406 else
9407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9408 fi
9409 library_names_spec=
9410 libname_spec='lib$name'
9411 soname_spec=
9412 shrext_cmds=".so"
9413 postinstall_cmds=
9414 postuninstall_cmds=
9415 finish_cmds=
9416 finish_eval=
9417 shlibpath_var=
9418 shlibpath_overrides_runpath=unknown
9419 version_type=none
9420 dynamic_linker="$host_os ld.so"
9421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9422 need_lib_prefix=unknown
9423 hardcode_into_libs=no
9424
9425 # when you set need_version to no, make sure it does not cause -set_version
9426 # flags to be left without arguments
9427 need_version=unknown
9428
9429 case $host_os in
9430 aix3*)
9431 version_type=linux # correct to gnu/linux during the next big refactor
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9433 shlibpath_var=LIBPATH
9434
9435 # AIX 3 has no versioning support, so we append a major version to the name.
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 ;;
9438
9439 aix[4-9]*)
9440 version_type=linux # correct to gnu/linux during the next big refactor
9441 need_lib_prefix=no
9442 need_version=no
9443 hardcode_into_libs=yes
9444 if test "$host_cpu" = ia64; then
9445 # AIX 5 supports IA64
9446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 else
9449 # With GCC up to 2.95.x, collect2 would create an import file
9450 # for dependence libraries. The import file would start with
9451 # the line `#! .'. This would cause the generated library to
9452 # depend on `.', always an invalid library. This was fixed in
9453 # development snapshots of GCC prior to 3.0.
9454 case $host_os in
9455 aix4 | aix4.[01] | aix4.[01].*)
9456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9457 echo ' yes '
9458 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9459 :
9460 else
9461 can_build_shared=no
9462 fi
9463 ;;
9464 esac
9465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9466 # soname into executable. Probably we can add versioning support to
9467 # collect2, so additional links can be useful in future.
9468 if test "$aix_use_runtimelinking" = yes; then
9469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9470 # instead of lib<name>.a to let people know that these are not
9471 # typical AIX shared libraries.
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 else
9474 # We preserve .a as extension for shared libraries through AIX4.2
9475 # and later when we are not doing run time linking.
9476 library_names_spec='${libname}${release}.a $libname.a'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 fi
9479 shlibpath_var=LIBPATH
9480 fi
9481 ;;
9482
9483 amigaos*)
9484 case $host_cpu in
9485 powerpc)
9486 # Since July 2007 AmigaOS4 officially supports .so libraries.
9487 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 ;;
9490 m68k)
9491 library_names_spec='$libname.ixlibrary $libname.a'
9492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9493 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'
9494 ;;
9495 esac
9496 ;;
9497
9498 beos*)
9499 library_names_spec='${libname}${shared_ext}'
9500 dynamic_linker="$host_os ld.so"
9501 shlibpath_var=LIBRARY_PATH
9502 ;;
9503
9504 bsdi[45]*)
9505 version_type=linux # correct to gnu/linux during the next big refactor
9506 need_version=no
9507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9513 # the default ld.so.conf also contains /usr/contrib/lib and
9514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9515 # libtool to hard-code these into programs
9516 ;;
9517
9518 cygwin* | mingw* | pw32* | cegcc*)
9519 version_type=windows
9520 shrext_cmds=".dll"
9521 need_version=no
9522 need_lib_prefix=no
9523
9524 case $GCC,$cc_basename in
9525 yes,*)
9526 # gcc
9527 library_names_spec='$libname.dll.a'
9528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9529 postinstall_cmds='base_file=`basename \${file}`~
9530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9531 dldir=$destdir/`dirname \$dlpath`~
9532 test -d \$dldir || mkdir -p \$dldir~
9533 $install_prog $dir/$dlname \$dldir/$dlname~
9534 chmod a+x \$dldir/$dlname~
9535 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9536 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9537 fi'
9538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9539 dlpath=$dir/\$dldll~
9540 $RM \$dlpath'
9541 shlibpath_overrides_runpath=yes
9542
9543 case $host_os in
9544 cygwin*)
9545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9546 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547
9548 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9549 ;;
9550 mingw* | cegcc*)
9551 # MinGW DLLs use traditional 'lib' prefix
9552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9553 ;;
9554 pw32*)
9555 # pw32 DLLs use 'pw' prefix rather than 'lib'
9556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9557 ;;
9558 esac
9559 dynamic_linker='Win32 ld.exe'
9560 ;;
9561
9562 *,cl*)
9563 # Native MSVC
9564 libname_spec='$name'
9565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9566 library_names_spec='${libname}.dll.lib'
9567
9568 case $build_os in
9569 mingw*)
9570 sys_lib_search_path_spec=
9571 lt_save_ifs=$IFS
9572 IFS=';'
9573 for lt_path in $LIB
9574 do
9575 IFS=$lt_save_ifs
9576 # Let DOS variable expansion print the short 8.3 style file name.
9577 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9578 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9579 done
9580 IFS=$lt_save_ifs
9581 # Convert to MSYS style.
9582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9583 ;;
9584 cygwin*)
9585 # Convert to unix form, then to dos form, then back to unix form
9586 # but this time dos style (no spaces!) so that the unix form looks
9587 # like /cygdrive/c/PROGRA~1:/cygdr...
9588 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9589 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9590 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9591 ;;
9592 *)
9593 sys_lib_search_path_spec="$LIB"
9594 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9595 # It is most probably a Windows format PATH.
9596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9597 else
9598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9599 fi
9600 # FIXME: find the short name or the path components, as spaces are
9601 # common. (e.g. "Program Files" -> "PROGRA~1")
9602 ;;
9603 esac
9604
9605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9606 postinstall_cmds='base_file=`basename \${file}`~
9607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9608 dldir=$destdir/`dirname \$dlpath`~
9609 test -d \$dldir || mkdir -p \$dldir~
9610 $install_prog $dir/$dlname \$dldir/$dlname'
9611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9612 dlpath=$dir/\$dldll~
9613 $RM \$dlpath'
9614 shlibpath_overrides_runpath=yes
9615 dynamic_linker='Win32 link.exe'
9616 ;;
9617
9618 *)
9619 # Assume MSVC wrapper
9620 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9621 dynamic_linker='Win32 ld.exe'
9622 ;;
9623 esac
9624 # FIXME: first we should search . and the directory the executable is in
9625 shlibpath_var=PATH
9626 ;;
9627
9628 darwin* | rhapsody*)
9629 dynamic_linker="$host_os dyld"
9630 version_type=darwin
9631 need_lib_prefix=no
9632 need_version=no
9633 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9634 soname_spec='${libname}${release}${major}$shared_ext'
9635 shlibpath_overrides_runpath=yes
9636 shlibpath_var=DYLD_LIBRARY_PATH
9637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9638
9639 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9641 ;;
9642
9643 dgux*)
9644 version_type=linux # correct to gnu/linux during the next big refactor
9645 need_lib_prefix=no
9646 need_version=no
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 ;;
9651
9652 freebsd* | dragonfly*)
9653 # DragonFly does not have aout. When/if they implement a new
9654 # versioning mechanism, adjust this.
9655 if test -x /usr/bin/objformat; then
9656 objformat=`/usr/bin/objformat`
9657 else
9658 case $host_os in
9659 freebsd[23].*) objformat=aout ;;
9660 *) objformat=elf ;;
9661 esac
9662 fi
9663 version_type=freebsd-$objformat
9664 case $version_type in
9665 freebsd-elf*)
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9667 need_version=no
9668 need_lib_prefix=no
9669 ;;
9670 freebsd-*)
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9672 need_version=yes
9673 ;;
9674 esac
9675 shlibpath_var=LD_LIBRARY_PATH
9676 case $host_os in
9677 freebsd2.*)
9678 shlibpath_overrides_runpath=yes
9679 ;;
9680 freebsd3.[01]* | freebsdelf3.[01]*)
9681 shlibpath_overrides_runpath=yes
9682 hardcode_into_libs=yes
9683 ;;
9684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9686 shlibpath_overrides_runpath=no
9687 hardcode_into_libs=yes
9688 ;;
9689 *) # from 4.6 on, and DragonFly
9690 shlibpath_overrides_runpath=yes
9691 hardcode_into_libs=yes
9692 ;;
9693 esac
9694 ;;
9695
9696 gnu*)
9697 version_type=linux # correct to gnu/linux during the next big refactor
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9703 shlibpath_overrides_runpath=no
9704 hardcode_into_libs=yes
9705 ;;
9706
9707 haiku*)
9708 version_type=linux # correct to gnu/linux during the next big refactor
9709 need_lib_prefix=no
9710 need_version=no
9711 dynamic_linker="$host_os runtime_loader"
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9714 shlibpath_var=LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes
9716 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9717 hardcode_into_libs=yes
9718 ;;
9719
9720 hpux9* | hpux10* | hpux11*)
9721 # Give a soname corresponding to the major version so that dld.sl refuses to
9722 # link against other versions.
9723 version_type=sunos
9724 need_lib_prefix=no
9725 need_version=no
9726 case $host_cpu in
9727 ia64*)
9728 shrext_cmds='.so'
9729 hardcode_into_libs=yes
9730 dynamic_linker="$host_os dld.so"
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 if test "X$HPUX_IA64_MODE" = X32; then
9736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9737 else
9738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9739 fi
9740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9741 ;;
9742 hppa*64*)
9743 shrext_cmds='.sl'
9744 hardcode_into_libs=yes
9745 dynamic_linker="$host_os dld.sl"
9746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9752 ;;
9753 *)
9754 shrext_cmds='.sl'
9755 dynamic_linker="$host_os dld.sl"
9756 shlibpath_var=SHLIB_PATH
9757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 ;;
9761 esac
9762 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9763 postinstall_cmds='chmod 555 $lib'
9764 # or fails outright, so override atomically:
9765 install_override_mode=555
9766 ;;
9767
9768 interix[3-9]*)
9769 version_type=linux # correct to gnu/linux during the next big refactor
9770 need_lib_prefix=no
9771 need_version=no
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9775 shlibpath_var=LD_LIBRARY_PATH
9776 shlibpath_overrides_runpath=no
9777 hardcode_into_libs=yes
9778 ;;
9779
9780 irix5* | irix6* | nonstopux*)
9781 case $host_os in
9782 nonstopux*) version_type=nonstopux ;;
9783 *)
9784 if test "$lt_cv_prog_gnu_ld" = yes; then
9785 version_type=linux # correct to gnu/linux during the next big refactor
9786 else
9787 version_type=irix
9788 fi ;;
9789 esac
9790 need_lib_prefix=no
9791 need_version=no
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9794 case $host_os in
9795 irix5* | nonstopux*)
9796 libsuff= shlibsuff=
9797 ;;
9798 *)
9799 case $LD in # libtool.m4 will add one of these switches to LD
9800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9801 libsuff= shlibsuff= libmagic=32-bit;;
9802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9803 libsuff=32 shlibsuff=N32 libmagic=N32;;
9804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9806 *) libsuff= shlibsuff= libmagic=never-match;;
9807 esac
9808 ;;
9809 esac
9810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9811 shlibpath_overrides_runpath=no
9812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9814 hardcode_into_libs=yes
9815 ;;
9816
9817 # No shared lib support for Linux oldld, aout, or coff.
9818 linux*oldld* | linux*aout* | linux*coff*)
9819 dynamic_linker=no
9820 ;;
9821
9822 # This must be glibc/ELF.
9823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9824 version_type=linux # correct to gnu/linux during the next big refactor
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=no
9832
9833 # Some binutils ld are patched to set DT_RUNPATH
9834 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 lt_cv_shlibpath_overrides_runpath=no
9838 save_LDFLAGS=$LDFLAGS
9839 save_libdir=$libdir
9840 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9841 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844
9845 int
9846 main ()
9847 {
9848
9849 ;
9850 return 0;
9851 }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9855 lt_cv_shlibpath_overrides_runpath=yes
9856 fi
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LDFLAGS=$save_LDFLAGS
9861 libdir=$save_libdir
9862
9863 fi
9864
9865 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9866
9867 # This implies no fast_install, which is unacceptable.
9868 # Some rework will be needed to allow for fast_install
9869 # before this can be enabled.
9870 hardcode_into_libs=yes
9871
9872 # Append ld.so.conf contents to the search path
9873 if test -f /etc/ld.so.conf; then
9874 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' ' '`
9875 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9876 fi
9877
9878 # We used to test for /lib/ld.so.1 and disable shared libraries on
9879 # powerpc, because MkLinux only supported shared libraries with the
9880 # GNU dynamic linker. Since this was broken with cross compilers,
9881 # most powerpc-linux boxes support dynamic linking these days and
9882 # people can always --disable-shared, the test was removed, and we
9883 # assume the GNU/Linux dynamic linker is in use.
9884 dynamic_linker='GNU/Linux ld.so'
9885 ;;
9886
9887 netbsd*)
9888 version_type=sunos
9889 need_lib_prefix=no
9890 need_version=no
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9894 dynamic_linker='NetBSD (a.out) ld.so'
9895 else
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 dynamic_linker='NetBSD ld.elf_so'
9899 fi
9900 shlibpath_var=LD_LIBRARY_PATH
9901 shlibpath_overrides_runpath=yes
9902 hardcode_into_libs=yes
9903 ;;
9904
9905 newsos6)
9906 version_type=linux # correct to gnu/linux during the next big refactor
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=yes
9910 ;;
9911
9912 *nto* | *qnx*)
9913 version_type=qnx
9914 need_lib_prefix=no
9915 need_version=no
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath=no
9920 hardcode_into_libs=yes
9921 dynamic_linker='ldqnx.so'
9922 ;;
9923
9924 openbsd*)
9925 version_type=sunos
9926 sys_lib_dlsearch_path_spec="/usr/lib"
9927 need_lib_prefix=no
9928 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9929 case $host_os in
9930 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9931 *) need_version=no ;;
9932 esac
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9937 case $host_os in
9938 openbsd2.[89] | openbsd2.[89].*)
9939 shlibpath_overrides_runpath=no
9940 ;;
9941 *)
9942 shlibpath_overrides_runpath=yes
9943 ;;
9944 esac
9945 else
9946 shlibpath_overrides_runpath=yes
9947 fi
9948 ;;
9949
9950 os2*)
9951 libname_spec='$name'
9952 shrext_cmds=".dll"
9953 need_lib_prefix=no
9954 library_names_spec='$libname${shared_ext} $libname.a'
9955 dynamic_linker='OS/2 ld.exe'
9956 shlibpath_var=LIBPATH
9957 ;;
9958
9959 osf3* | osf4* | osf5*)
9960 version_type=osf
9961 need_lib_prefix=no
9962 need_version=no
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9967 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9968 ;;
9969
9970 rdos*)
9971 dynamic_linker=no
9972 ;;
9973
9974 solaris*)
9975 version_type=linux # correct to gnu/linux during the next big refactor
9976 need_lib_prefix=no
9977 need_version=no
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes
9982 hardcode_into_libs=yes
9983 # ldd complains unless libraries are executable
9984 postinstall_cmds='chmod +x $lib'
9985 ;;
9986
9987 sunos4*)
9988 version_type=sunos
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9990 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9991 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=yes
9993 if test "$with_gnu_ld" = yes; then
9994 need_lib_prefix=no
9995 fi
9996 need_version=yes
9997 ;;
9998
9999 sysv4 | sysv4.3*)
10000 version_type=linux # correct to gnu/linux during the next big refactor
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 case $host_vendor in
10005 sni)
10006 shlibpath_overrides_runpath=no
10007 need_lib_prefix=no
10008 runpath_var=LD_RUN_PATH
10009 ;;
10010 siemens)
10011 need_lib_prefix=no
10012 ;;
10013 motorola)
10014 need_lib_prefix=no
10015 need_version=no
10016 shlibpath_overrides_runpath=no
10017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10018 ;;
10019 esac
10020 ;;
10021
10022 sysv4*MP*)
10023 if test -d /usr/nec ;then
10024 version_type=linux # correct to gnu/linux during the next big refactor
10025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10026 soname_spec='$libname${shared_ext}.$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 fi
10029 ;;
10030
10031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10032 version_type=freebsd-elf
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 shlibpath_overrides_runpath=yes
10039 hardcode_into_libs=yes
10040 if test "$with_gnu_ld" = yes; then
10041 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10042 else
10043 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10044 case $host_os in
10045 sco3.2v5*)
10046 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10047 ;;
10048 esac
10049 fi
10050 sys_lib_dlsearch_path_spec='/usr/lib'
10051 ;;
10052
10053 tpf*)
10054 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10055 version_type=linux # correct to gnu/linux during the next big refactor
10056 need_lib_prefix=no
10057 need_version=no
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10062 ;;
10063
10064 uts4*)
10065 version_type=linux # correct to gnu/linux during the next big refactor
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 ;;
10070
10071 *)
10072 dynamic_linker=no
10073 ;;
10074 esac
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10076 $as_echo "$dynamic_linker" >&6; }
10077 test "$dynamic_linker" = no && can_build_shared=no
10078
10079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10080 if test "$GCC" = yes; then
10081 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10082 fi
10083
10084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10085 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10086 fi
10087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10088 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10089 fi
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
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10184 hardcode_action=
10185 if test -n "$hardcode_libdir_flag_spec" ||
10186 test -n "$runpath_var" ||
10187 test "X$hardcode_automatic" = "Xyes" ; then
10188
10189 # We can hardcode non-existent directories.
10190 if test "$hardcode_direct" != no &&
10191 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10192 # have to relink, otherwise we might link with an installed library
10193 # when we should be linking with a yet-to-be-installed one
10194 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10195 test "$hardcode_minus_L" != no; then
10196 # Linking always hardcodes the temporary library directory.
10197 hardcode_action=relink
10198 else
10199 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10200 hardcode_action=immediate
10201 fi
10202 else
10203 # We cannot hardcode anything, or else we can only hardcode existing
10204 # directories.
10205 hardcode_action=unsupported
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10208 $as_echo "$hardcode_action" >&6; }
10209
10210 if test "$hardcode_action" = relink ||
10211 test "$inherit_rpath" = yes; then
10212 # Fast installation is not supported
10213 enable_fast_install=no
10214 elif test "$shlibpath_overrides_runpath" = yes ||
10215 test "$enable_shared" = no; then
10216 # Fast installation is not necessary
10217 enable_fast_install=needless
10218 fi
10219
10220
10221
10222
10223
10224
10225 if test "x$enable_dlopen" != xyes; then
10226 enable_dlopen=unknown
10227 enable_dlopen_self=unknown
10228 enable_dlopen_self_static=unknown
10229 else
10230 lt_cv_dlopen=no
10231 lt_cv_dlopen_libs=
10232
10233 case $host_os in
10234 beos*)
10235 lt_cv_dlopen="load_add_on"
10236 lt_cv_dlopen_libs=
10237 lt_cv_dlopen_self=yes
10238 ;;
10239
10240 mingw* | pw32* | cegcc*)
10241 lt_cv_dlopen="LoadLibrary"
10242 lt_cv_dlopen_libs=
10243 ;;
10244
10245 cygwin*)
10246 lt_cv_dlopen="dlopen"
10247 lt_cv_dlopen_libs=
10248 ;;
10249
10250 darwin*)
10251 # if libdl is installed we need to link against it
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10254 if ${ac_cv_lib_dl_dlopen+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldl $LIBS"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261
10262 /* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char dlopen ();
10269 int
10270 main ()
10271 {
10272 return dlopen ();
10273 ;
10274 return 0;
10275 }
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278 ac_cv_lib_dl_dlopen=yes
10279 else
10280 ac_cv_lib_dl_dlopen=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 LIBS=$ac_check_lib_save_LIBS
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10288 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10290 else
10291
10292 lt_cv_dlopen="dyld"
10293 lt_cv_dlopen_libs=
10294 lt_cv_dlopen_self=yes
10295
10296 fi
10297
10298 ;;
10299
10300 *)
10301 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10302 if test "x$ac_cv_func_shl_load" = xyes; then :
10303 lt_cv_dlopen="shl_load"
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10307 if ${ac_cv_lib_dld_shl_load+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 ac_check_lib_save_LIBS=$LIBS
10311 LIBS="-ldld $LIBS"
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10314
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10318 #ifdef __cplusplus
10319 extern "C"
10320 #endif
10321 char shl_load ();
10322 int
10323 main ()
10324 {
10325 return shl_load ();
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 ac_cv_lib_dld_shl_load=yes
10332 else
10333 ac_cv_lib_dld_shl_load=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10341 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10342 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10343 else
10344 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10345 if test "x$ac_cv_func_dlopen" = xyes; then :
10346 lt_cv_dlopen="dlopen"
10347 else
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10350 if ${ac_cv_lib_dl_dlopen+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 ac_check_lib_save_LIBS=$LIBS
10354 LIBS="-ldl $LIBS"
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char dlopen ();
10365 int
10366 main ()
10367 {
10368 return dlopen ();
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 ac_cv_lib_dl_dlopen=yes
10375 else
10376 ac_cv_lib_dl_dlopen=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10384 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10389 if ${ac_cv_lib_svld_dlopen+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-lsvld $LIBS"
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char dlopen ();
10404 int
10405 main ()
10406 {
10407 return dlopen ();
10408 ;
10409 return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"; then :
10413 ac_cv_lib_svld_dlopen=yes
10414 else
10415 ac_cv_lib_svld_dlopen=no
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10420 fi
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10423 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10428 if ${ac_cv_lib_dld_dld_link+:} false; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-ldld $LIBS"
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char dld_link ();
10443 int
10444 main ()
10445 {
10446 return dld_link ();
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 ac_cv_lib_dld_dld_link=yes
10453 else
10454 ac_cv_lib_dld_dld_link=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10459 fi
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10462 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10464 fi
10465
10466
10467 fi
10468
10469
10470 fi
10471
10472
10473 fi
10474
10475
10476 fi
10477
10478
10479 fi
10480
10481 ;;
10482 esac
10483
10484 if test "x$lt_cv_dlopen" != xno; then
10485 enable_dlopen=yes
10486 else
10487 enable_dlopen=no
10488 fi
10489
10490 case $lt_cv_dlopen in
10491 dlopen)
10492 save_CPPFLAGS="$CPPFLAGS"
10493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10494
10495 save_LDFLAGS="$LDFLAGS"
10496 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10497
10498 save_LIBS="$LIBS"
10499 LIBS="$lt_cv_dlopen_libs $LIBS"
10500
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10502 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10503 if ${lt_cv_dlopen_self+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 if test "$cross_compiling" = yes; then :
10507 lt_cv_dlopen_self=cross
10508 else
10509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10510 lt_status=$lt_dlunknown
10511 cat > conftest.$ac_ext <<_LT_EOF
10512 #line $LINENO "configure"
10513 #include "confdefs.h"
10514
10515 #if HAVE_DLFCN_H
10516 #include <dlfcn.h>
10517 #endif
10518
10519 #include <stdio.h>
10520
10521 #ifdef RTLD_GLOBAL
10522 # define LT_DLGLOBAL RTLD_GLOBAL
10523 #else
10524 # ifdef DL_GLOBAL
10525 # define LT_DLGLOBAL DL_GLOBAL
10526 # else
10527 # define LT_DLGLOBAL 0
10528 # endif
10529 #endif
10530
10531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10532 find out it does not work in some platform. */
10533 #ifndef LT_DLLAZY_OR_NOW
10534 # ifdef RTLD_LAZY
10535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10536 # else
10537 # ifdef DL_LAZY
10538 # define LT_DLLAZY_OR_NOW DL_LAZY
10539 # else
10540 # ifdef RTLD_NOW
10541 # define LT_DLLAZY_OR_NOW RTLD_NOW
10542 # else
10543 # ifdef DL_NOW
10544 # define LT_DLLAZY_OR_NOW DL_NOW
10545 # else
10546 # define LT_DLLAZY_OR_NOW 0
10547 # endif
10548 # endif
10549 # endif
10550 # endif
10551 #endif
10552
10553 /* When -fvisbility=hidden is used, assume the code has been annotated
10554 correspondingly for the symbols needed. */
10555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10556 int fnord () __attribute__((visibility("default")));
10557 #endif
10558
10559 int fnord () { return 42; }
10560 int main ()
10561 {
10562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10563 int status = $lt_dlunknown;
10564
10565 if (self)
10566 {
10567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10568 else
10569 {
10570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10571 else puts (dlerror ());
10572 }
10573 /* dlclose (self); */
10574 }
10575 else
10576 puts (dlerror ());
10577
10578 return status;
10579 }
10580 _LT_EOF
10581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10582 (eval $ac_link) 2>&5
10583 ac_status=$?
10584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10586 (./conftest; exit; ) >&5 2>/dev/null
10587 lt_status=$?
10588 case x$lt_status in
10589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10592 esac
10593 else :
10594 # compilation failed
10595 lt_cv_dlopen_self=no
10596 fi
10597 fi
10598 rm -fr conftest*
10599
10600
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10603 $as_echo "$lt_cv_dlopen_self" >&6; }
10604
10605 if test "x$lt_cv_dlopen_self" = xyes; then
10606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10609 if ${lt_cv_dlopen_self_static+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 if test "$cross_compiling" = yes; then :
10613 lt_cv_dlopen_self_static=cross
10614 else
10615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10616 lt_status=$lt_dlunknown
10617 cat > conftest.$ac_ext <<_LT_EOF
10618 #line $LINENO "configure"
10619 #include "confdefs.h"
10620
10621 #if HAVE_DLFCN_H
10622 #include <dlfcn.h>
10623 #endif
10624
10625 #include <stdio.h>
10626
10627 #ifdef RTLD_GLOBAL
10628 # define LT_DLGLOBAL RTLD_GLOBAL
10629 #else
10630 # ifdef DL_GLOBAL
10631 # define LT_DLGLOBAL DL_GLOBAL
10632 # else
10633 # define LT_DLGLOBAL 0
10634 # endif
10635 #endif
10636
10637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10638 find out it does not work in some platform. */
10639 #ifndef LT_DLLAZY_OR_NOW
10640 # ifdef RTLD_LAZY
10641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10642 # else
10643 # ifdef DL_LAZY
10644 # define LT_DLLAZY_OR_NOW DL_LAZY
10645 # else
10646 # ifdef RTLD_NOW
10647 # define LT_DLLAZY_OR_NOW RTLD_NOW
10648 # else
10649 # ifdef DL_NOW
10650 # define LT_DLLAZY_OR_NOW DL_NOW
10651 # else
10652 # define LT_DLLAZY_OR_NOW 0
10653 # endif
10654 # endif
10655 # endif
10656 # endif
10657 #endif
10658
10659 /* When -fvisbility=hidden is used, assume the code has been annotated
10660 correspondingly for the symbols needed. */
10661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10662 int fnord () __attribute__((visibility("default")));
10663 #endif
10664
10665 int fnord () { return 42; }
10666 int main ()
10667 {
10668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10669 int status = $lt_dlunknown;
10670
10671 if (self)
10672 {
10673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10674 else
10675 {
10676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10677 else puts (dlerror ());
10678 }
10679 /* dlclose (self); */
10680 }
10681 else
10682 puts (dlerror ());
10683
10684 return status;
10685 }
10686 _LT_EOF
10687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10688 (eval $ac_link) 2>&5
10689 ac_status=$?
10690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10691 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10692 (./conftest; exit; ) >&5 2>/dev/null
10693 lt_status=$?
10694 case x$lt_status in
10695 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10696 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10697 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10698 esac
10699 else :
10700 # compilation failed
10701 lt_cv_dlopen_self_static=no
10702 fi
10703 fi
10704 rm -fr conftest*
10705
10706
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10709 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10710 fi
10711
10712 CPPFLAGS="$save_CPPFLAGS"
10713 LDFLAGS="$save_LDFLAGS"
10714 LIBS="$save_LIBS"
10715 ;;
10716 esac
10717
10718 case $lt_cv_dlopen_self in
10719 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10720 *) enable_dlopen_self=unknown ;;
10721 esac
10722
10723 case $lt_cv_dlopen_self_static in
10724 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10725 *) enable_dlopen_self_static=unknown ;;
10726 esac
10727 fi
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745 striplib=
10746 old_striplib=
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10748 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10749 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10750 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10751 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; }
10754 else
10755 # FIXME - insert some real tests, host_os isn't really good enough
10756 case $host_os in
10757 darwin*)
10758 if test -n "$STRIP" ; then
10759 striplib="$STRIP -x"
10760 old_striplib="$STRIP -S"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10762 $as_echo "yes" >&6; }
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767 ;;
10768 *)
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 ;;
10772 esac
10773 fi
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786 # Report which library types will actually be built
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10788 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10790 $as_echo "$can_build_shared" >&6; }
10791
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10793 $as_echo_n "checking whether to build shared libraries... " >&6; }
10794 test "$can_build_shared" = "no" && enable_shared=no
10795
10796 # On AIX, shared libraries and static libraries use the same namespace, and
10797 # are all built from PIC.
10798 case $host_os in
10799 aix3*)
10800 test "$enable_shared" = yes && enable_static=no
10801 if test -n "$RANLIB"; then
10802 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10803 postinstall_cmds='$RANLIB $lib'
10804 fi
10805 ;;
10806
10807 aix[4-9]*)
10808 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10809 test "$enable_shared" = yes && enable_static=no
10810 fi
10811 ;;
10812 esac
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10814 $as_echo "$enable_shared" >&6; }
10815
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10817 $as_echo_n "checking whether to build static libraries... " >&6; }
10818 # Make sure either enable_shared or enable_static is yes.
10819 test "$enable_shared" = yes || enable_static=yes
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10821 $as_echo "$enable_static" >&6; }
10822
10823
10824
10825
10826 fi
10827 ac_ext=c
10828 ac_cpp='$CPP $CPPFLAGS'
10829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10832
10833 CC="$lt_save_CC"
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849 ac_config_commands="$ac_config_commands libtool"
10850
10851
10852
10853
10854 # Only expand once:
10855
10856
10857
10858
10859
10860
10861
10862
10863 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10864 if test -n "$ac_tool_prefix"; then
10865 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10866 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 case $PKG_CONFIG in
10873 [\\/]* | ?:[\\/]*)
10874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10875 ;;
10876 *)
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10879 do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888 done
10889 done
10890 IFS=$as_save_IFS
10891
10892 ;;
10893 esac
10894 fi
10895 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10896 if test -n "$PKG_CONFIG"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10898 $as_echo "$PKG_CONFIG" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10902 fi
10903
10904
10905 fi
10906 if test -z "$ac_cv_path_PKG_CONFIG"; then
10907 ac_pt_PKG_CONFIG=$PKG_CONFIG
10908 # Extract the first word of "pkg-config", so it can be a program name with args.
10909 set dummy pkg-config; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 case $ac_pt_PKG_CONFIG in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10918 ;;
10919 *)
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10922 do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931 done
10932 done
10933 IFS=$as_save_IFS
10934
10935 ;;
10936 esac
10937 fi
10938 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10939 if test -n "$ac_pt_PKG_CONFIG"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10941 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10945 fi
10946
10947 if test "x$ac_pt_PKG_CONFIG" = x; then
10948 PKG_CONFIG=""
10949 else
10950 case $cross_compiling:$ac_tool_warned in
10951 yes:)
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10954 ac_tool_warned=yes ;;
10955 esac
10956 PKG_CONFIG=$ac_pt_PKG_CONFIG
10957 fi
10958 else
10959 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10960 fi
10961
10962 fi
10963 if test -n "$PKG_CONFIG"; then
10964 _pkg_min_version=0.22
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10966 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10967 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10969 $as_echo "yes" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 PKG_CONFIG=""
10974 fi
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10977 $as_echo_n "checking for GNU make... " >&6; }
10978 if ${_cv_gnu_make_command+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 _cv_gnu_make_command='' ;
10982 for a in "$MAKE" make gmake gnumake ; do
10983 if test -z "$a" ; then continue ; fi ;
10984 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10985 _cv_gnu_make_command=$a ;
10986 break;
10987 fi
10988 done ;
10989
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10992 $as_echo "$_cv_gnu_make_command" >&6; } ;
10993 if test "x$_cv_gnu_make_command" != "x" ; then
10994 ifGNUmake='' ;
10995 else
10996 ifGNUmake='#' ;
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10998 $as_echo "\"Not found\"" >&6; };
10999 fi
11000
11001
11002 GMAKE=$_cv_gnu_make_command
11003
11004
11005 if test "x$GMAKE" = x; then :
11006 as_fn_error $? "You need GNU make" "$LINENO" 5
11007 fi
11008 for ac_prog in bash
11009 do
11010 # Extract the first word of "$ac_prog", so it can be a program name with args.
11011 set dummy $ac_prog; ac_word=$2
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013 $as_echo_n "checking for $ac_word... " >&6; }
11014 if ${ac_cv_path__BASH+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 case $_BASH in
11018 [\\/]* | ?:[\\/]*)
11019 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
11020 ;;
11021 *)
11022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11024 do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11029 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033 done
11034 done
11035 IFS=$as_save_IFS
11036
11037 ;;
11038 esac
11039 fi
11040 _BASH=$ac_cv_path__BASH
11041 if test -n "$_BASH"; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
11043 $as_echo "$_BASH" >&6; }
11044 else
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046 $as_echo "no" >&6; }
11047 fi
11048
11049
11050 test -n "$_BASH" && break
11051 done
11052
11053 if test "x$_BASH" = x; then :
11054 as_fn_error $? "You need GNU bash" "$LINENO" 5
11055 fi
11056 for ac_prog in time
11057 do
11058 # Extract the first word of "$ac_prog", so it can be a program name with args.
11059 set dummy $ac_prog; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_TIME+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 case $TIME in
11066 [\\/]* | ?:[\\/]*)
11067 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
11068 ;;
11069 *)
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081 done
11082 done
11083 IFS=$as_save_IFS
11084
11085 ;;
11086 esac
11087 fi
11088 TIME=$ac_cv_path_TIME
11089 if test -n "$TIME"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
11091 $as_echo "$TIME" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096
11097
11098 test -n "$TIME" && break
11099 done
11100
11101
11102
11103
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
11105 $as_echo_n "checking for bison >= 2.3... " >&6; }
11106 if test -z "$BISON"; then
11107 ac_path_BISON_found=false
11108 # Loop through the user's path and test for each of PROGNAME-LIST
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_prog in bison; do
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
11117 as_fn_executable_p "$ac_path_BISON" || continue
11118 as_awk_strverscmp='
11119 # Use only awk features that work with 7th edition Unix awk (1978).
11120 # My, what an old awk you have, Mr. Solaris!
11121 END {
11122 while (length(v1) && length(v2)) {
11123 # Set d1 to be the next thing to compare from v1, and likewise for d2.
11124 # Normally this is a single character, but if v1 and v2 contain digits,
11125 # compare them as integers and fractions as strverscmp does.
11126 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
11127 # Split v1 and v2 into their leading digit string components d1 and d2,
11128 # and advance v1 and v2 past the leading digit strings.
11129 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
11130 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
11131 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
11132 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
11133 if (d1 ~ /^0/) {
11134 if (d2 ~ /^0/) {
11135 # Compare two fractions.
11136 while (d1 ~ /^0/ && d2 ~ /^0/) {
11137 d1 = substr(d1, 2); len1--
11138 d2 = substr(d2, 2); len2--
11139 }
11140 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
11141 # The two components differ in length, and the common prefix
11142 # contains only leading zeros. Consider the longer to be less.
11143 d1 = -len1
11144 d2 = -len2
11145 } else {
11146 # Otherwise, compare as strings.
11147 d1 = "x" d1
11148 d2 = "x" d2
11149 }
11150 } else {
11151 # A fraction is less than an integer.
11152 exit 1
11153 }
11154 } else {
11155 if (d2 ~ /^0/) {
11156 # An integer is greater than a fraction.
11157 exit 2
11158 } else {
11159 # Compare two integers.
11160 d1 += 0
11161 d2 += 0
11162 }
11163 }
11164 } else {
11165 # The normal case, without worrying about digits.
11166 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
11167 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
11168 }
11169 if (d1 < d2) exit 1
11170 if (d1 > d2) exit 2
11171 }
11172 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
11173 # which mishandles some comparisons of empty strings to integers.
11174 if (length(v2)) exit 1
11175 if (length(v1)) exit 2
11176 }
11177 '
11178 as_arg_v1=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
11179 as_arg_v2=2.3
11180 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11181 case $? in #(
11182 1) :
11183 ;; #(
11184 0) :
11185 ac_cv_path_BISON=$ac_path_BISON
11186 ;; #(
11187 2) :
11188 ac_cv_path_BISON=$ac_path_BISON
11189 ;; #(
11190 *) :
11191 ;;
11192 esac
11193
11194 $ac_path_BISON_found && break 3
11195 done
11196 done
11197 done
11198 IFS=$as_save_IFS
11199 if test -z "$ac_cv_path_BISON"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
11203
11204 fi
11205 else
11206 ac_cv_path_BISON=$BISON
11207 fi
11208
11209 BISON=$ac_cv_path_BISON
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11212 $as_echo "$BISON" >&6; }
11213
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
11217 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
11218 if test -z "$FLEX"; then
11219 ac_path_FLEX_found=false
11220 # Loop through the user's path and test for each of PROGNAME-LIST
11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_prog in flex; do
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
11229 as_fn_executable_p "$ac_path_FLEX" || continue
11230 as_arg_v1=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
11231 as_arg_v2=2.5.33
11232 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11233 case $? in #(
11234 1) :
11235 ;; #(
11236 0) :
11237 ac_cv_path_FLEX=$ac_path_FLEX
11238 ;; #(
11239 2) :
11240 ac_cv_path_FLEX=$ac_path_FLEX
11241 ;; #(
11242 *) :
11243 ;;
11244 esac
11245
11246 $ac_path_FLEX_found && break 3
11247 done
11248 done
11249 done
11250 IFS=$as_save_IFS
11251 if test -z "$ac_cv_path_FLEX"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
11255
11256 fi
11257 else
11258 ac_cv_path_FLEX=$FLEX
11259 fi
11260
11261 FLEX=$ac_cv_path_FLEX
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11264 $as_echo "$FLEX" >&6; }
11265
11266
11267
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
11269 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
11270 if test -z "$GPERF"; then
11271 ac_path_GPERF_found=false
11272 # Loop through the user's path and test for each of PROGNAME-LIST
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_prog in gperf; do
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
11281 as_fn_executable_p "$ac_path_GPERF" || continue
11282 as_arg_v1=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
11283 as_arg_v2=3.0.3
11284 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11285 case $? in #(
11286 1) :
11287 ;; #(
11288 0) :
11289 ac_cv_path_GPERF=$ac_path_GPERF
11290 ;; #(
11291 2) :
11292 ac_cv_path_GPERF=$ac_path_GPERF
11293 ;; #(
11294 *) :
11295 ;;
11296 esac
11297
11298 $ac_path_GPERF_found && break 3
11299 done
11300 done
11301 done
11302 IFS=$as_save_IFS
11303 if test -z "$ac_cv_path_GPERF"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11306 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
11307
11308 fi
11309 else
11310 ac_cv_path_GPERF=$GPERF
11311 fi
11312
11313 GPERF=$ac_cv_path_GPERF
11314
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
11316 $as_echo "$GPERF" >&6; }
11317
11318 # Find a good install program. We prefer a C program (faster),
11319 # so one script is as good as another. But avoid the broken or
11320 # incompatible versions:
11321 # SysV /etc/install, /usr/sbin/install
11322 # SunOS /usr/etc/install
11323 # IRIX /sbin/install
11324 # AIX /bin/install
11325 # AmigaOS /C/install, which installs bootblocks on floppy discs
11326 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11327 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11328 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11329 # OS/2's system install, which has a completely different semantic
11330 # ./install, which can be erroneously created by make from ./install.sh.
11331 # Reject install programs that cannot install multiple files.
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11333 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11334 if test -z "$INSTALL"; then
11335 if ${ac_cv_path_install+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11340 do
11341 IFS=$as_save_IFS
11342 test -z "$as_dir" && as_dir=.
11343 # Account for people who put trailing slashes in PATH elements.
11344 case $as_dir/ in #((
11345 ./ | .// | /[cC]/* | \
11346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11348 /usr/ucb/* ) ;;
11349 *)
11350 # OSF1 and SCO ODT 3.0 have their own names for install.
11351 # Don't use installbsd from OSF since it installs stuff as root
11352 # by default.
11353 for ac_prog in ginstall scoinst install; do
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11356 if test $ac_prog = install &&
11357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11358 # AIX install. It has an incompatible calling convention.
11359 :
11360 elif test $ac_prog = install &&
11361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11362 # program-specific install script used by HP pwplus--don't use.
11363 :
11364 else
11365 rm -rf conftest.one conftest.two conftest.dir
11366 echo one > conftest.one
11367 echo two > conftest.two
11368 mkdir conftest.dir
11369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11370 test -s conftest.one && test -s conftest.two &&
11371 test -s conftest.dir/conftest.one &&
11372 test -s conftest.dir/conftest.two
11373 then
11374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11375 break 3
11376 fi
11377 fi
11378 fi
11379 done
11380 done
11381 ;;
11382 esac
11383
11384 done
11385 IFS=$as_save_IFS
11386
11387 rm -rf conftest.one conftest.two conftest.dir
11388
11389 fi
11390 if test "${ac_cv_path_install+set}" = set; then
11391 INSTALL=$ac_cv_path_install
11392 else
11393 # As a last resort, use the slow shell script. Don't cache a
11394 # value for INSTALL within a source directory, because that will
11395 # break other packages using the cache if that directory is
11396 # removed, or if the value is a relative name.
11397 INSTALL=$ac_install_sh
11398 fi
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11401 $as_echo "$INSTALL" >&6; }
11402
11403 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11404 # It thinks the first close brace ends the variable substitution.
11405 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11406
11407 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11408
11409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar >=1.19" >&5
11412 $as_echo_n "checking for GNU tar >=1.19... " >&6; }
11413 if test -z "$GNUTAR"; then
11414 ac_path_GNUTAR_found=false
11415 # Loop through the user's path and test for each of PROGNAME-LIST
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11418 do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_prog in tar gtar gnutar; do
11422 for ac_exec_ext in '' $ac_executable_extensions; do
11423 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
11424 as_fn_executable_p "$ac_path_GNUTAR" || continue
11425
11426 if test "x`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar)/&/p;d'`" != x; then :
11427
11428 as_arg_v1=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
11429 as_arg_v2=1.19
11430 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11431 case $? in #(
11432 1) :
11433 ;; #(
11434 0) :
11435
11436 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11437 ;; #(
11438 2) :
11439
11440 ac_cv_path_GNUTAR=$ac_path_GNUTAR
11441 ;; #(
11442 *) :
11443 ;;
11444 esac
11445
11446 fi
11447
11448 $ac_path_GNUTAR_found && break 3
11449 done
11450 done
11451 done
11452 IFS=$as_save_IFS
11453 if test -z "$ac_cv_path_GNUTAR"; then
11454 :
11455 fi
11456 else
11457 ac_cv_path_GNUTAR=$GNUTAR
11458 fi
11459
11460 if test "x$ac_cv_path_GNUTAR" != x; then :
11461
11462 GNUTAR=$ac_cv_path_GNUTAR
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
11465 $as_echo "$GNUTAR" >&6; }
11466
11467 else
11468
11469 GNUTAR=:
11470
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473
11474 fi
11475 for ac_prog in git
11476 do
11477 # Extract the first word of "$ac_prog", so it can be a program name with args.
11478 set dummy $ac_prog; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_prog_GIT+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test -n "$GIT"; then
11485 ac_cv_prog_GIT="$GIT" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11494 ac_cv_prog_GIT="$ac_prog"
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498 done
11499 done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 GIT=$ac_cv_prog_GIT
11505 if test -n "$GIT"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
11507 $as_echo "$GIT" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 fi
11512
11513
11514 test -n "$GIT" && break
11515 done
11516
11517 ac_ext=cpp
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11522 if test -z "$CXX"; then
11523 if test -n "$CCC"; then
11524 CXX=$CCC
11525 else
11526 if test -n "$ac_tool_prefix"; then
11527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11528 do
11529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_prog_CXX+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 if test -n "$CXX"; then
11537 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11538 else
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11546 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548 break 2
11549 fi
11550 done
11551 done
11552 IFS=$as_save_IFS
11553
11554 fi
11555 fi
11556 CXX=$ac_cv_prog_CXX
11557 if test -n "$CXX"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11559 $as_echo "$CXX" >&6; }
11560 else
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11563 fi
11564
11565
11566 test -n "$CXX" && break
11567 done
11568 fi
11569 if test -z "$CXX"; then
11570 ac_ct_CXX=$CXX
11571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11572 do
11573 # Extract the first word of "$ac_prog", so it can be a program name with args.
11574 set dummy $ac_prog; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 if test -n "$ac_ct_CXX"; then
11581 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11582 else
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11585 do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_ac_ct_CXX="$ac_prog"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594 done
11595 done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11601 if test -n "$ac_ct_CXX"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11603 $as_echo "$ac_ct_CXX" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 fi
11608
11609
11610 test -n "$ac_ct_CXX" && break
11611 done
11612
11613 if test "x$ac_ct_CXX" = x; then
11614 CXX="g++"
11615 else
11616 case $cross_compiling:$ac_tool_warned in
11617 yes:)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11620 ac_tool_warned=yes ;;
11621 esac
11622 CXX=$ac_ct_CXX
11623 fi
11624 fi
11625
11626 fi
11627 fi
11628 # Provide some information about the compiler.
11629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11630 set X $ac_compile
11631 ac_compiler=$2
11632 for ac_option in --version -v -V -qversion; do
11633 { { ac_try="$ac_compiler $ac_option >&5"
11634 case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637 esac
11638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11639 $as_echo "$ac_try_echo"; } >&5
11640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11641 ac_status=$?
11642 if test -s conftest.err; then
11643 sed '10a\
11644 ... rest of stderr output deleted ...
11645 10q' conftest.err >conftest.er1
11646 cat conftest.er1 >&5
11647 fi
11648 rm -f conftest.er1 conftest.err
11649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650 test $ac_status = 0; }
11651 done
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11654 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11655 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 int
11662 main ()
11663 {
11664 #ifndef __GNUC__
11665 choke me
11666 #endif
11667
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_cxx_try_compile "$LINENO"; then :
11673 ac_compiler_gnu=yes
11674 else
11675 ac_compiler_gnu=no
11676 fi
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11679
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11682 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11683 if test $ac_compiler_gnu = yes; then
11684 GXX=yes
11685 else
11686 GXX=
11687 fi
11688 ac_test_CXXFLAGS=${CXXFLAGS+set}
11689 ac_save_CXXFLAGS=$CXXFLAGS
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11691 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11692 if ${ac_cv_prog_cxx_g+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11696 ac_cxx_werror_flag=yes
11697 ac_cv_prog_cxx_g=no
11698 CXXFLAGS="-g"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701
11702 int
11703 main ()
11704 {
11705
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_cxx_try_compile "$LINENO"; then :
11711 ac_cv_prog_cxx_g=yes
11712 else
11713 CXXFLAGS=""
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716
11717 int
11718 main ()
11719 {
11720
11721 ;
11722 return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_cxx_try_compile "$LINENO"; then :
11726
11727 else
11728 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11729 CXXFLAGS="-g"
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732
11733 int
11734 main ()
11735 {
11736
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_cxx_try_compile "$LINENO"; then :
11742 ac_cv_prog_cxx_g=yes
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745 fi
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747 fi
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11752 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11753 if test "$ac_test_CXXFLAGS" = set; then
11754 CXXFLAGS=$ac_save_CXXFLAGS
11755 elif test $ac_cv_prog_cxx_g = yes; then
11756 if test "$GXX" = yes; then
11757 CXXFLAGS="-g -O2"
11758 else
11759 CXXFLAGS="-g"
11760 fi
11761 else
11762 if test "$GXX" = yes; then
11763 CXXFLAGS="-O2"
11764 else
11765 CXXFLAGS=
11766 fi
11767 fi
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774
11775
11776 func_stripname_cnf ()
11777 {
11778 case ${2} in
11779 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
11780 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
11781 esac
11782 } # func_stripname_cnf
11783
11784 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11785 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11786 (test "X$CXX" != "Xg++"))) ; then
11787 ac_ext=cpp
11788 ac_cpp='$CXXCPP $CPPFLAGS'
11789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11793 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11794 if test -z "$CXXCPP"; then
11795 if ${ac_cv_prog_CXXCPP+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 # Double quotes because CXXCPP needs to be expanded
11799 for CXXCPP in "$CXX -E" "/lib/cpp"
11800 do
11801 ac_preproc_ok=false
11802 for ac_cxx_preproc_warn_flag in '' yes
11803 do
11804 # Use a header file that comes with gcc, so configuring glibc
11805 # with a fresh cross-compiler works.
11806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 # <limits.h> exists even on freestanding compilers.
11808 # On the NeXT, cc -E runs the code through the compiler's parser,
11809 # not just through cpp. "Syntax error" is here to catch this case.
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812 #ifdef __STDC__
11813 # include <limits.h>
11814 #else
11815 # include <assert.h>
11816 #endif
11817 Syntax error
11818 _ACEOF
11819 if ac_fn_cxx_try_cpp "$LINENO"; then :
11820
11821 else
11822 # Broken: fails on valid input.
11823 continue
11824 fi
11825 rm -f conftest.err conftest.i conftest.$ac_ext
11826
11827 # OK, works on sane cases. Now check whether nonexistent headers
11828 # can be detected and how.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <ac_nonexistent.h>
11832 _ACEOF
11833 if ac_fn_cxx_try_cpp "$LINENO"; then :
11834 # Broken: success on invalid input.
11835 continue
11836 else
11837 # Passes both tests.
11838 ac_preproc_ok=:
11839 break
11840 fi
11841 rm -f conftest.err conftest.i conftest.$ac_ext
11842
11843 done
11844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11845 rm -f conftest.i conftest.err conftest.$ac_ext
11846 if $ac_preproc_ok; then :
11847 break
11848 fi
11849
11850 done
11851 ac_cv_prog_CXXCPP=$CXXCPP
11852
11853 fi
11854 CXXCPP=$ac_cv_prog_CXXCPP
11855 else
11856 ac_cv_prog_CXXCPP=$CXXCPP
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11859 $as_echo "$CXXCPP" >&6; }
11860 ac_preproc_ok=false
11861 for ac_cxx_preproc_warn_flag in '' yes
11862 do
11863 # Use a header file that comes with gcc, so configuring glibc
11864 # with a fresh cross-compiler works.
11865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11866 # <limits.h> exists even on freestanding compilers.
11867 # On the NeXT, cc -E runs the code through the compiler's parser,
11868 # not just through cpp. "Syntax error" is here to catch this case.
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871 #ifdef __STDC__
11872 # include <limits.h>
11873 #else
11874 # include <assert.h>
11875 #endif
11876 Syntax error
11877 _ACEOF
11878 if ac_fn_cxx_try_cpp "$LINENO"; then :
11879
11880 else
11881 # Broken: fails on valid input.
11882 continue
11883 fi
11884 rm -f conftest.err conftest.i conftest.$ac_ext
11885
11886 # OK, works on sane cases. Now check whether nonexistent headers
11887 # can be detected and how.
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11890 #include <ac_nonexistent.h>
11891 _ACEOF
11892 if ac_fn_cxx_try_cpp "$LINENO"; then :
11893 # Broken: success on invalid input.
11894 continue
11895 else
11896 # Passes both tests.
11897 ac_preproc_ok=:
11898 break
11899 fi
11900 rm -f conftest.err conftest.i conftest.$ac_ext
11901
11902 done
11903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11904 rm -f conftest.i conftest.err conftest.$ac_ext
11905 if $ac_preproc_ok; then :
11906
11907 else
11908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11910 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11911 See \`config.log' for more details" "$LINENO" 5; }
11912 fi
11913
11914 ac_ext=c
11915 ac_cpp='$CPP $CPPFLAGS'
11916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11919
11920 else
11921 _lt_caught_CXX_error=yes
11922 fi
11923
11924 ac_ext=cpp
11925 ac_cpp='$CXXCPP $CPPFLAGS'
11926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11929
11930 archive_cmds_need_lc_CXX=no
11931 allow_undefined_flag_CXX=
11932 always_export_symbols_CXX=no
11933 archive_expsym_cmds_CXX=
11934 compiler_needs_object_CXX=no
11935 export_dynamic_flag_spec_CXX=
11936 hardcode_direct_CXX=no
11937 hardcode_direct_absolute_CXX=no
11938 hardcode_libdir_flag_spec_CXX=
11939 hardcode_libdir_separator_CXX=
11940 hardcode_minus_L_CXX=no
11941 hardcode_shlibpath_var_CXX=unsupported
11942 hardcode_automatic_CXX=no
11943 inherit_rpath_CXX=no
11944 module_cmds_CXX=
11945 module_expsym_cmds_CXX=
11946 link_all_deplibs_CXX=unknown
11947 old_archive_cmds_CXX=$old_archive_cmds
11948 reload_flag_CXX=$reload_flag
11949 reload_cmds_CXX=$reload_cmds
11950 no_undefined_flag_CXX=
11951 whole_archive_flag_spec_CXX=
11952 enable_shared_with_static_runtimes_CXX=no
11953
11954 # Source file extension for C++ test sources.
11955 ac_ext=cpp
11956
11957 # Object file extension for compiled C++ test sources.
11958 objext=o
11959 objext_CXX=$objext
11960
11961 # No sense in running all these tests if we already determined that
11962 # the CXX compiler isn't working. Some variables (like enable_shared)
11963 # are currently assumed to apply to all compilers on this platform,
11964 # and will be corrupted by setting them based on a non-working compiler.
11965 if test "$_lt_caught_CXX_error" != yes; then
11966 # Code to be used in simple compile tests
11967 lt_simple_compile_test_code="int some_variable = 0;"
11968
11969 # Code to be used in simple link tests
11970 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11971
11972 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11973
11974
11975
11976
11977
11978
11979 # If no C compiler was specified, use CC.
11980 LTCC=${LTCC-"$CC"}
11981
11982 # If no C compiler flags were specified, use CFLAGS.
11983 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11984
11985 # Allow CC to be a program name with arguments.
11986 compiler=$CC
11987
11988
11989 # save warnings/boilerplate of simple test code
11990 ac_outfile=conftest.$ac_objext
11991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11993 _lt_compiler_boilerplate=`cat conftest.err`
11994 $RM -r conftest*
11995
11996 ac_outfile=conftest.$ac_objext
11997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11999 _lt_linker_boilerplate=`cat conftest.err`
12000 $RM -r conftest*
12001
12002
12003 # Allow CC to be a program name with arguments.
12004 lt_save_CC=$CC
12005 lt_save_CFLAGS=$CFLAGS
12006 lt_save_LD=$LD
12007 lt_save_GCC=$GCC
12008 GCC=$GXX
12009 lt_save_with_gnu_ld=$with_gnu_ld
12010 lt_save_path_LD=$lt_cv_path_LD
12011 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12012 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12013 else
12014 $as_unset lt_cv_prog_gnu_ld
12015 fi
12016 if test -n "${lt_cv_path_LDCXX+set}"; then
12017 lt_cv_path_LD=$lt_cv_path_LDCXX
12018 else
12019 $as_unset lt_cv_path_LD
12020 fi
12021 test -z "${LDCXX+set}" || LD=$LDCXX
12022 CC=${CXX-"c++"}
12023 CFLAGS=$CXXFLAGS
12024 compiler=$CC
12025 compiler_CXX=$CC
12026 for cc_temp in $compiler""; do
12027 case $cc_temp in
12028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12030 \-*) ;;
12031 *) break;;
12032 esac
12033 done
12034 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12035
12036
12037 if test -n "$compiler"; then
12038 # We don't want -fno-exception when compiling C++ code, so set the
12039 # no_builtin_flag separately
12040 if test "$GXX" = yes; then
12041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12042 else
12043 lt_prog_compiler_no_builtin_flag_CXX=
12044 fi
12045
12046 if test "$GXX" = yes; then
12047 # Set up default GNU C++ configuration
12048
12049
12050
12051 # Check whether --with-gnu-ld was given.
12052 if test "${with_gnu_ld+set}" = set; then :
12053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12054 else
12055 with_gnu_ld=no
12056 fi
12057
12058 ac_prog=ld
12059 if test "$GCC" = yes; then
12060 # Check if gcc -print-prog-name=ld gives a path.
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12062 $as_echo_n "checking for ld used by $CC... " >&6; }
12063 case $host in
12064 *-*-mingw*)
12065 # gcc leaves a trailing carriage return which upsets mingw
12066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12067 *)
12068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12069 esac
12070 case $ac_prog in
12071 # Accept absolute paths.
12072 [\\/]* | ?:[\\/]*)
12073 re_direlt='/[^/][^/]*/\.\./'
12074 # Canonicalize the pathname of ld
12075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12078 done
12079 test -z "$LD" && LD="$ac_prog"
12080 ;;
12081 "")
12082 # If it fails, then pretend we aren't using GCC.
12083 ac_prog=ld
12084 ;;
12085 *)
12086 # If it is relative, then search for the first ld in PATH.
12087 with_gnu_ld=unknown
12088 ;;
12089 esac
12090 elif test "$with_gnu_ld" = yes; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12092 $as_echo_n "checking for GNU ld... " >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12095 $as_echo_n "checking for non-GNU ld... " >&6; }
12096 fi
12097 if ${lt_cv_path_LD+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if test -z "$LD"; then
12101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12102 for ac_dir in $PATH; do
12103 IFS="$lt_save_ifs"
12104 test -z "$ac_dir" && ac_dir=.
12105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12106 lt_cv_path_LD="$ac_dir/$ac_prog"
12107 # Check to see if the program is GNU ld. I'd rather use --version,
12108 # but apparently some variants of GNU ld only accept -v.
12109 # Break only if it was the GNU/non-GNU ld that we prefer.
12110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12111 *GNU* | *'with BFD'*)
12112 test "$with_gnu_ld" != no && break
12113 ;;
12114 *)
12115 test "$with_gnu_ld" != yes && break
12116 ;;
12117 esac
12118 fi
12119 done
12120 IFS="$lt_save_ifs"
12121 else
12122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12123 fi
12124 fi
12125
12126 LD="$lt_cv_path_LD"
12127 if test -n "$LD"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12129 $as_echo "$LD" >&6; }
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12133 fi
12134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12137 if ${lt_cv_prog_gnu_ld+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12141 case `$LD -v 2>&1 </dev/null` in
12142 *GNU* | *'with BFD'*)
12143 lt_cv_prog_gnu_ld=yes
12144 ;;
12145 *)
12146 lt_cv_prog_gnu_ld=no
12147 ;;
12148 esac
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12152 with_gnu_ld=$lt_cv_prog_gnu_ld
12153
12154
12155
12156
12157
12158
12159
12160 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12161 # archiving commands below assume that GNU ld is being used.
12162 if test "$with_gnu_ld" = yes; then
12163 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12164 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'
12165
12166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12168
12169 # If archive_cmds runs LD, not CC, wlarc should be empty
12170 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12171 # investigate it a little bit more. (MM)
12172 wlarc='${wl}'
12173
12174 # ancient GNU ld didn't support --whole-archive et. al.
12175 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12176 $GREP 'no-whole-archive' > /dev/null; then
12177 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12178 else
12179 whole_archive_flag_spec_CXX=
12180 fi
12181 else
12182 with_gnu_ld=no
12183 wlarc=
12184
12185 # A generic and very simple default shared library creation
12186 # command for GNU C++ for the case where it uses the native
12187 # linker, instead of GNU ld. If possible, this setting should
12188 # overridden to take advantage of the native linker features on
12189 # the platform it is being used on.
12190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12191 fi
12192
12193 # Commands to make compiler produce verbose output that lists
12194 # what "hidden" libraries, object files and flags are used when
12195 # linking a shared library.
12196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12197
12198 else
12199 GXX=no
12200 with_gnu_ld=no
12201 wlarc=
12202 fi
12203
12204 # PORTME: fill in a description of your system's C++ link characteristics
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12207 ld_shlibs_CXX=yes
12208 case $host_os in
12209 aix3*)
12210 # FIXME: insert proper C++ library support
12211 ld_shlibs_CXX=no
12212 ;;
12213 aix[4-9]*)
12214 if test "$host_cpu" = ia64; then
12215 # On IA64, the linker does run time linking by default, so we don't
12216 # have to do anything special.
12217 aix_use_runtimelinking=no
12218 exp_sym_flag='-Bexport'
12219 no_entry_flag=""
12220 else
12221 aix_use_runtimelinking=no
12222
12223 # Test if we are trying to use run time linking or normal
12224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12225 # need to do runtime linking.
12226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12227 for ld_flag in $LDFLAGS; do
12228 case $ld_flag in
12229 *-brtl*)
12230 aix_use_runtimelinking=yes
12231 break
12232 ;;
12233 esac
12234 done
12235 ;;
12236 esac
12237
12238 exp_sym_flag='-bexport'
12239 no_entry_flag='-bnoentry'
12240 fi
12241
12242 # When large executables or shared objects are built, AIX ld can
12243 # have problems creating the table of contents. If linking a library
12244 # or program results in "error TOC overflow" add -mminimal-toc to
12245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12247
12248 archive_cmds_CXX=''
12249 hardcode_direct_CXX=yes
12250 hardcode_direct_absolute_CXX=yes
12251 hardcode_libdir_separator_CXX=':'
12252 link_all_deplibs_CXX=yes
12253 file_list_spec_CXX='${wl}-f,'
12254
12255 if test "$GXX" = yes; then
12256 case $host_os in aix4.[012]|aix4.[012].*)
12257 # We only want to do this on AIX 4.2 and lower, the check
12258 # below for broken collect2 doesn't work under 4.3+
12259 collect2name=`${CC} -print-prog-name=collect2`
12260 if test -f "$collect2name" &&
12261 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12262 then
12263 # We have reworked collect2
12264 :
12265 else
12266 # We have old collect2
12267 hardcode_direct_CXX=unsupported
12268 # It fails to find uninstalled libraries when the uninstalled
12269 # path is not listed in the libpath. Setting hardcode_minus_L
12270 # to unsupported forces relinking
12271 hardcode_minus_L_CXX=yes
12272 hardcode_libdir_flag_spec_CXX='-L$libdir'
12273 hardcode_libdir_separator_CXX=
12274 fi
12275 esac
12276 shared_flag='-shared'
12277 if test "$aix_use_runtimelinking" = yes; then
12278 shared_flag="$shared_flag "'${wl}-G'
12279 fi
12280 else
12281 # not using gcc
12282 if test "$host_cpu" = ia64; then
12283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12284 # chokes on -Wl,-G. The following line is correct:
12285 shared_flag='-G'
12286 else
12287 if test "$aix_use_runtimelinking" = yes; then
12288 shared_flag='${wl}-G'
12289 else
12290 shared_flag='${wl}-bM:SRE'
12291 fi
12292 fi
12293 fi
12294
12295 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12296 # It seems that -bexpall does not export symbols beginning with
12297 # underscore (_), so it is better to generate a list of symbols to
12298 # export.
12299 always_export_symbols_CXX=yes
12300 if test "$aix_use_runtimelinking" = yes; then
12301 # Warning - without using the other runtime loading flags (-brtl),
12302 # -berok will link without error, but may produce a broken library.
12303 allow_undefined_flag_CXX='-berok'
12304 # Determine the default libpath from the value encoded in an empty
12305 # executable.
12306 if test "${lt_cv_aix_libpath+set}" = set; then
12307 aix_libpath=$lt_cv_aix_libpath
12308 else
12309 if ${lt_cv_aix_libpath__CXX+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 int
12316 main ()
12317 {
12318
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_cxx_try_link "$LINENO"; then :
12324
12325 lt_aix_libpath_sed='
12326 /Import File Strings/,/^$/ {
12327 /^0/ {
12328 s/^0 *\([^ ]*\) *$/\1/
12329 p
12330 }
12331 }'
12332 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12333 # Check for a 64-bit object if we didn't find anything.
12334 if test -z "$lt_cv_aix_libpath__CXX"; then
12335 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12336 fi
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 if test -z "$lt_cv_aix_libpath__CXX"; then
12341 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12342 fi
12343
12344 fi
12345
12346 aix_libpath=$lt_cv_aix_libpath__CXX
12347 fi
12348
12349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12350
12351 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"
12352 else
12353 if test "$host_cpu" = ia64; then
12354 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12355 allow_undefined_flag_CXX="-z nodefs"
12356 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"
12357 else
12358 # Determine the default libpath from the value encoded in an
12359 # empty executable.
12360 if test "${lt_cv_aix_libpath+set}" = set; then
12361 aix_libpath=$lt_cv_aix_libpath
12362 else
12363 if ${lt_cv_aix_libpath__CXX+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 int
12370 main ()
12371 {
12372
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_cxx_try_link "$LINENO"; then :
12378
12379 lt_aix_libpath_sed='
12380 /Import File Strings/,/^$/ {
12381 /^0/ {
12382 s/^0 *\([^ ]*\) *$/\1/
12383 p
12384 }
12385 }'
12386 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12387 # Check for a 64-bit object if we didn't find anything.
12388 if test -z "$lt_cv_aix_libpath__CXX"; then
12389 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 fi
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 if test -z "$lt_cv_aix_libpath__CXX"; then
12395 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12396 fi
12397
12398 fi
12399
12400 aix_libpath=$lt_cv_aix_libpath__CXX
12401 fi
12402
12403 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12404 # Warning - without using the other run time loading flags,
12405 # -berok will link without error, but may produce a broken library.
12406 no_undefined_flag_CXX=' ${wl}-bernotok'
12407 allow_undefined_flag_CXX=' ${wl}-berok'
12408 if test "$with_gnu_ld" = yes; then
12409 # We only use this code for GNU lds that support --whole-archive.
12410 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12411 else
12412 # Exported symbols can be pulled into shared objects from archives
12413 whole_archive_flag_spec_CXX='$convenience'
12414 fi
12415 archive_cmds_need_lc_CXX=yes
12416 # This is similar to how AIX traditionally builds its shared
12417 # libraries.
12418 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'
12419 fi
12420 fi
12421 ;;
12422
12423 beos*)
12424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12425 allow_undefined_flag_CXX=unsupported
12426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12427 # support --undefined. This deserves some investigation. FIXME
12428 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429 else
12430 ld_shlibs_CXX=no
12431 fi
12432 ;;
12433
12434 chorus*)
12435 case $cc_basename in
12436 *)
12437 # FIXME: insert proper C++ library support
12438 ld_shlibs_CXX=no
12439 ;;
12440 esac
12441 ;;
12442
12443 cygwin* | mingw* | pw32* | cegcc*)
12444 case $GXX,$cc_basename in
12445 ,cl* | no,cl*)
12446 # Native MSVC
12447 # hardcode_libdir_flag_spec is actually meaningless, as there is
12448 # no search path for DLLs.
12449 hardcode_libdir_flag_spec_CXX=' '
12450 allow_undefined_flag_CXX=unsupported
12451 always_export_symbols_CXX=yes
12452 file_list_spec_CXX='@'
12453 # Tell ltmain to make .lib files, not .a files.
12454 libext=lib
12455 # Tell ltmain to make .dll files, not .so files.
12456 shrext_cmds=".dll"
12457 # FIXME: Setting linknames here is a bad hack.
12458 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12460 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12461 else
12462 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12463 fi~
12464 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12465 linknames='
12466 # The linker will not automatically build a static lib if we build a DLL.
12467 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12468 enable_shared_with_static_runtimes_CXX=yes
12469 # Don't use ranlib
12470 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12471 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12472 lt_tool_outputfile="@TOOL_OUTPUT@"~
12473 case $lt_outputfile in
12474 *.exe|*.EXE) ;;
12475 *)
12476 lt_outputfile="$lt_outputfile.exe"
12477 lt_tool_outputfile="$lt_tool_outputfile.exe"
12478 ;;
12479 esac~
12480 func_to_tool_file "$lt_outputfile"~
12481 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12482 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12483 $RM "$lt_outputfile.manifest";
12484 fi'
12485 ;;
12486 *)
12487 # g++
12488 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12489 # as there is no search path for DLLs.
12490 hardcode_libdir_flag_spec_CXX='-L$libdir'
12491 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12492 allow_undefined_flag_CXX=unsupported
12493 always_export_symbols_CXX=no
12494 enable_shared_with_static_runtimes_CXX=yes
12495
12496 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12497 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'
12498 # If the export-symbols file already is a .def file (1st line
12499 # is EXPORTS), use it as is; otherwise, prepend...
12500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12501 cp $export_symbols $output_objdir/$soname.def;
12502 else
12503 echo EXPORTS > $output_objdir/$soname.def;
12504 cat $export_symbols >> $output_objdir/$soname.def;
12505 fi~
12506 $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'
12507 else
12508 ld_shlibs_CXX=no
12509 fi
12510 ;;
12511 esac
12512 ;;
12513 darwin* | rhapsody*)
12514
12515
12516 archive_cmds_need_lc_CXX=no
12517 hardcode_direct_CXX=no
12518 hardcode_automatic_CXX=yes
12519 hardcode_shlibpath_var_CXX=unsupported
12520 if test "$lt_cv_ld_force_load" = "yes"; then
12521 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\"`'
12522
12523 else
12524 whole_archive_flag_spec_CXX=''
12525 fi
12526 link_all_deplibs_CXX=yes
12527 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12528 case $cc_basename in
12529 ifort*) _lt_dar_can_shared=yes ;;
12530 *) _lt_dar_can_shared=$GCC ;;
12531 esac
12532 if test "$_lt_dar_can_shared" = "yes"; then
12533 output_verbose_link_cmd=func_echo_all
12534 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}"
12535 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12536 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}"
12537 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}"
12538 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12539 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}"
12540 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}"
12541 fi
12542
12543 else
12544 ld_shlibs_CXX=no
12545 fi
12546
12547 ;;
12548
12549 dgux*)
12550 case $cc_basename in
12551 ec++*)
12552 # FIXME: insert proper C++ library support
12553 ld_shlibs_CXX=no
12554 ;;
12555 ghcx*)
12556 # Green Hills C++ Compiler
12557 # FIXME: insert proper C++ library support
12558 ld_shlibs_CXX=no
12559 ;;
12560 *)
12561 # FIXME: insert proper C++ library support
12562 ld_shlibs_CXX=no
12563 ;;
12564 esac
12565 ;;
12566
12567 freebsd2.*)
12568 # C++ shared libraries reported to be fairly broken before
12569 # switch to ELF
12570 ld_shlibs_CXX=no
12571 ;;
12572
12573 freebsd-elf*)
12574 archive_cmds_need_lc_CXX=no
12575 ;;
12576
12577 freebsd* | dragonfly*)
12578 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12579 # conventions
12580 ld_shlibs_CXX=yes
12581 ;;
12582
12583 gnu*)
12584 ;;
12585
12586 haiku*)
12587 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12588 link_all_deplibs_CXX=yes
12589 ;;
12590
12591 hpux9*)
12592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12593 hardcode_libdir_separator_CXX=:
12594 export_dynamic_flag_spec_CXX='${wl}-E'
12595 hardcode_direct_CXX=yes
12596 hardcode_minus_L_CXX=yes # Not in the search PATH,
12597 # but as the default
12598 # location of the library.
12599
12600 case $cc_basename in
12601 CC*)
12602 # FIXME: insert proper C++ library support
12603 ld_shlibs_CXX=no
12604 ;;
12605 aCC*)
12606 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'
12607 # Commands to make compiler produce verbose output that lists
12608 # what "hidden" libraries, object files and flags are used when
12609 # linking a shared library.
12610 #
12611 # There doesn't appear to be a way to prevent this compiler from
12612 # explicitly linking system object files so we need to strip them
12613 # from the output so that they don't get included in the library
12614 # dependencies.
12615 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"'
12616 ;;
12617 *)
12618 if test "$GXX" = yes; then
12619 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'
12620 else
12621 # FIXME: insert proper C++ library support
12622 ld_shlibs_CXX=no
12623 fi
12624 ;;
12625 esac
12626 ;;
12627
12628 hpux10*|hpux11*)
12629 if test $with_gnu_ld = no; then
12630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12631 hardcode_libdir_separator_CXX=:
12632
12633 case $host_cpu in
12634 hppa*64*|ia64*)
12635 ;;
12636 *)
12637 export_dynamic_flag_spec_CXX='${wl}-E'
12638 ;;
12639 esac
12640 fi
12641 case $host_cpu in
12642 hppa*64*|ia64*)
12643 hardcode_direct_CXX=no
12644 hardcode_shlibpath_var_CXX=no
12645 ;;
12646 *)
12647 hardcode_direct_CXX=yes
12648 hardcode_direct_absolute_CXX=yes
12649 hardcode_minus_L_CXX=yes # Not in the search PATH,
12650 # but as the default
12651 # location of the library.
12652 ;;
12653 esac
12654
12655 case $cc_basename in
12656 CC*)
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12659 ;;
12660 aCC*)
12661 case $host_cpu in
12662 hppa*64*)
12663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12664 ;;
12665 ia64*)
12666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12667 ;;
12668 *)
12669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12670 ;;
12671 esac
12672 # Commands to make compiler produce verbose output that lists
12673 # what "hidden" libraries, object files and flags are used when
12674 # linking a shared library.
12675 #
12676 # There doesn't appear to be a way to prevent this compiler from
12677 # explicitly linking system object files so we need to strip them
12678 # from the output so that they don't get included in the library
12679 # dependencies.
12680 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"'
12681 ;;
12682 *)
12683 if test "$GXX" = yes; then
12684 if test $with_gnu_ld = no; then
12685 case $host_cpu in
12686 hppa*64*)
12687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12688 ;;
12689 ia64*)
12690 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12691 ;;
12692 *)
12693 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'
12694 ;;
12695 esac
12696 fi
12697 else
12698 # FIXME: insert proper C++ library support
12699 ld_shlibs_CXX=no
12700 fi
12701 ;;
12702 esac
12703 ;;
12704
12705 interix[3-9]*)
12706 hardcode_direct_CXX=no
12707 hardcode_shlibpath_var_CXX=no
12708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12709 export_dynamic_flag_spec_CXX='${wl}-E'
12710 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12711 # Instead, shared libraries are loaded at an image base (0x10000000 by
12712 # default) and relocated if they conflict, which is a slow very memory
12713 # consuming and fragmenting process. To avoid this, we pick a random,
12714 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12715 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12716 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'
12717 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'
12718 ;;
12719 irix5* | irix6*)
12720 case $cc_basename in
12721 CC*)
12722 # SGI C++
12723 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'
12724
12725 # Archives containing C++ object files must be created using
12726 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12727 # necessary to make sure instantiated templates are included
12728 # in the archive.
12729 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12730 ;;
12731 *)
12732 if test "$GXX" = yes; then
12733 if test "$with_gnu_ld" = no; then
12734 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'
12735 else
12736 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'
12737 fi
12738 fi
12739 link_all_deplibs_CXX=yes
12740 ;;
12741 esac
12742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743 hardcode_libdir_separator_CXX=:
12744 inherit_rpath_CXX=yes
12745 ;;
12746
12747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12748 case $cc_basename in
12749 KCC*)
12750 # Kuck and Associates, Inc. (KAI) C++ Compiler
12751
12752 # KCC will only create a shared library if the output file
12753 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12754 # to its proper name (with version) after linking.
12755 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'
12756 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'
12757 # Commands to make compiler produce verbose output that lists
12758 # what "hidden" libraries, object files and flags are used when
12759 # linking a shared library.
12760 #
12761 # There doesn't appear to be a way to prevent this compiler from
12762 # explicitly linking system object files so we need to strip them
12763 # from the output so that they don't get included in the library
12764 # dependencies.
12765 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"'
12766
12767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12769
12770 # Archives containing C++ object files must be created using
12771 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12772 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12773 ;;
12774 icpc* | ecpc* )
12775 # Intel C++
12776 with_gnu_ld=yes
12777 # version 8.0 and above of icpc choke on multiply defined symbols
12778 # if we add $predep_objects and $postdep_objects, however 7.1 and
12779 # earlier do not add the objects themselves.
12780 case `$CC -V 2>&1` in
12781 *"Version 7."*)
12782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12783 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'
12784 ;;
12785 *) # Version 8.0 or newer
12786 tmp_idyn=
12787 case $host_cpu in
12788 ia64*) tmp_idyn=' -i_dynamic';;
12789 esac
12790 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12791 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'
12792 ;;
12793 esac
12794 archive_cmds_need_lc_CXX=no
12795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12798 ;;
12799 pgCC* | pgcpp*)
12800 # Portland Group C++ compiler
12801 case `$CC -V` in
12802 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12803 prelink_cmds_CXX='tpldir=Template.dir~
12804 rm -rf $tpldir~
12805 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12806 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12807 old_archive_cmds_CXX='tpldir=Template.dir~
12808 rm -rf $tpldir~
12809 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12810 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12811 $RANLIB $oldlib'
12812 archive_cmds_CXX='tpldir=Template.dir~
12813 rm -rf $tpldir~
12814 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12815 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12816 archive_expsym_cmds_CXX='tpldir=Template.dir~
12817 rm -rf $tpldir~
12818 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12819 $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'
12820 ;;
12821 *) # Version 6 and above use weak symbols
12822 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12823 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'
12824 ;;
12825 esac
12826
12827 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12828 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12829 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'
12830 ;;
12831 cxx*)
12832 # Compaq C++
12833 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12834 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'
12835
12836 runpath_var=LD_RUN_PATH
12837 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12838 hardcode_libdir_separator_CXX=:
12839
12840 # Commands to make compiler produce verbose output that lists
12841 # what "hidden" libraries, object files and flags are used when
12842 # linking a shared library.
12843 #
12844 # There doesn't appear to be a way to prevent this compiler from
12845 # explicitly linking system object files so we need to strip them
12846 # from the output so that they don't get included in the library
12847 # dependencies.
12848 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'
12849 ;;
12850 xl* | mpixl* | bgxl*)
12851 # IBM XL 8.0 on PPC, with GNU ld
12852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12854 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12855 if test "x$supports_anon_versioning" = xyes; then
12856 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12858 echo "local: *; };" >> $output_objdir/$libname.ver~
12859 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12860 fi
12861 ;;
12862 *)
12863 case `$CC -V 2>&1 | sed 5q` in
12864 *Sun\ C*)
12865 # Sun C++ 5.9
12866 no_undefined_flag_CXX=' -zdefs'
12867 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12868 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'
12869 hardcode_libdir_flag_spec_CXX='-R$libdir'
12870 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'
12871 compiler_needs_object_CXX=yes
12872
12873 # Not sure whether something based on
12874 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12875 # would be better.
12876 output_verbose_link_cmd='func_echo_all'
12877
12878 # Archives containing C++ object files must be created using
12879 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12880 # necessary to make sure instantiated templates are included
12881 # in the archive.
12882 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12883 ;;
12884 esac
12885 ;;
12886 esac
12887 ;;
12888
12889 lynxos*)
12890 # FIXME: insert proper C++ library support
12891 ld_shlibs_CXX=no
12892 ;;
12893
12894 m88k*)
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12897 ;;
12898
12899 mvs*)
12900 case $cc_basename in
12901 cxx*)
12902 # FIXME: insert proper C++ library support
12903 ld_shlibs_CXX=no
12904 ;;
12905 *)
12906 # FIXME: insert proper C++ library support
12907 ld_shlibs_CXX=no
12908 ;;
12909 esac
12910 ;;
12911
12912 netbsd*)
12913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12914 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12915 wlarc=
12916 hardcode_libdir_flag_spec_CXX='-R$libdir'
12917 hardcode_direct_CXX=yes
12918 hardcode_shlibpath_var_CXX=no
12919 fi
12920 # Workaround some broken pre-1.5 toolchains
12921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12922 ;;
12923
12924 *nto* | *qnx*)
12925 ld_shlibs_CXX=yes
12926 ;;
12927
12928 openbsd2*)
12929 # C++ shared libraries are fairly broken
12930 ld_shlibs_CXX=no
12931 ;;
12932
12933 openbsd*)
12934 if test -f /usr/libexec/ld.so; then
12935 hardcode_direct_CXX=yes
12936 hardcode_shlibpath_var_CXX=no
12937 hardcode_direct_absolute_CXX=yes
12938 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12941 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12942 export_dynamic_flag_spec_CXX='${wl}-E'
12943 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12944 fi
12945 output_verbose_link_cmd=func_echo_all
12946 else
12947 ld_shlibs_CXX=no
12948 fi
12949 ;;
12950
12951 osf3* | osf4* | osf5*)
12952 case $cc_basename in
12953 KCC*)
12954 # Kuck and Associates, Inc. (KAI) C++ Compiler
12955
12956 # KCC will only create a shared library if the output file
12957 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12958 # to its proper name (with version) after linking.
12959 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'
12960
12961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12962 hardcode_libdir_separator_CXX=:
12963
12964 # Archives containing C++ object files must be created using
12965 # the KAI C++ compiler.
12966 case $host in
12967 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12968 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12969 esac
12970 ;;
12971 RCC*)
12972 # Rational C++ 2.4.1
12973 # FIXME: insert proper C++ library support
12974 ld_shlibs_CXX=no
12975 ;;
12976 cxx*)
12977 case $host in
12978 osf3*)
12979 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12980 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'
12981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12982 ;;
12983 *)
12984 allow_undefined_flag_CXX=' -expect_unresolved \*'
12985 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'
12986 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12987 echo "-hidden">> $lib.exp~
12988 $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~
12989 $RM $lib.exp'
12990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12991 ;;
12992 esac
12993
12994 hardcode_libdir_separator_CXX=:
12995
12996 # Commands to make compiler produce verbose output that lists
12997 # what "hidden" libraries, object files and flags are used when
12998 # linking a shared library.
12999 #
13000 # There doesn't appear to be a way to prevent this compiler from
13001 # explicitly linking system object files so we need to strip them
13002 # from the output so that they don't get included in the library
13003 # dependencies.
13004 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"'
13005 ;;
13006 *)
13007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13009 case $host in
13010 osf3*)
13011 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'
13012 ;;
13013 *)
13014 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'
13015 ;;
13016 esac
13017
13018 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13019 hardcode_libdir_separator_CXX=:
13020
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13025
13026 else
13027 # FIXME: insert proper C++ library support
13028 ld_shlibs_CXX=no
13029 fi
13030 ;;
13031 esac
13032 ;;
13033
13034 psos*)
13035 # FIXME: insert proper C++ library support
13036 ld_shlibs_CXX=no
13037 ;;
13038
13039 sunos4*)
13040 case $cc_basename in
13041 CC*)
13042 # Sun C++ 4.x
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13045 ;;
13046 lcc*)
13047 # Lucid
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13050 ;;
13051 *)
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13054 ;;
13055 esac
13056 ;;
13057
13058 solaris*)
13059 case $cc_basename in
13060 CC* | sunCC*)
13061 # Sun C++ 4.2, 5.x and Centerline C++
13062 archive_cmds_need_lc_CXX=yes
13063 no_undefined_flag_CXX=' -zdefs'
13064 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13065 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13066 $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'
13067
13068 hardcode_libdir_flag_spec_CXX='-R$libdir'
13069 hardcode_shlibpath_var_CXX=no
13070 case $host_os in
13071 solaris2.[0-5] | solaris2.[0-5].*) ;;
13072 *)
13073 # The compiler driver will combine and reorder linker options,
13074 # but understands `-z linker_flag'.
13075 # Supported since Solaris 2.6 (maybe 2.5.1?)
13076 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13077 ;;
13078 esac
13079 link_all_deplibs_CXX=yes
13080
13081 output_verbose_link_cmd='func_echo_all'
13082
13083 # Archives containing C++ object files must be created using
13084 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13085 # necessary to make sure instantiated templates are included
13086 # in the archive.
13087 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13088 ;;
13089 gcx*)
13090 # Green Hills C++ Compiler
13091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13092
13093 # The C++ compiler must be used to create the archive.
13094 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13095 ;;
13096 *)
13097 # GNU C++ compiler with Solaris linker
13098 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13099 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13100 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13101 archive_cmds_CXX='$CC -shared $pic_flag -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 -shared $pic_flag -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13109 else
13110 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13111 # platform.
13112 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13113 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13114 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13115
13116 # Commands to make compiler produce verbose output that lists
13117 # what "hidden" libraries, object files and flags are used when
13118 # linking a shared library.
13119 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13120 fi
13121
13122 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13123 case $host_os in
13124 solaris2.[0-5] | solaris2.[0-5].*) ;;
13125 *)
13126 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13127 ;;
13128 esac
13129 fi
13130 ;;
13131 esac
13132 ;;
13133
13134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13135 no_undefined_flag_CXX='${wl}-z,text'
13136 archive_cmds_need_lc_CXX=no
13137 hardcode_shlibpath_var_CXX=no
13138 runpath_var='LD_RUN_PATH'
13139
13140 case $cc_basename in
13141 CC*)
13142 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13143 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13144 ;;
13145 *)
13146 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 ;;
13149 esac
13150 ;;
13151
13152 sysv5* | sco3.2v5* | sco5v6*)
13153 # Note: We can NOT use -z defs as we might desire, because we do not
13154 # link with -lc, and that would cause any symbols used from libc to
13155 # always be unresolved, which means just about no library would
13156 # ever link correctly. If we're not using GNU ld we use -z text
13157 # though, which does catch some bad symbols but isn't as heavy-handed
13158 # as -z defs.
13159 no_undefined_flag_CXX='${wl}-z,text'
13160 allow_undefined_flag_CXX='${wl}-z,nodefs'
13161 archive_cmds_need_lc_CXX=no
13162 hardcode_shlibpath_var_CXX=no
13163 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13164 hardcode_libdir_separator_CXX=':'
13165 link_all_deplibs_CXX=yes
13166 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13167 runpath_var='LD_RUN_PATH'
13168
13169 case $cc_basename in
13170 CC*)
13171 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13174 '"$old_archive_cmds_CXX"
13175 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13176 '"$reload_cmds_CXX"
13177 ;;
13178 *)
13179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13181 ;;
13182 esac
13183 ;;
13184
13185 tandem*)
13186 case $cc_basename in
13187 NCC*)
13188 # NonStop-UX NCC 3.20
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13191 ;;
13192 *)
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13195 ;;
13196 esac
13197 ;;
13198
13199 vxworks*)
13200 # FIXME: insert proper C++ library support
13201 ld_shlibs_CXX=no
13202 ;;
13203
13204 *)
13205 # FIXME: insert proper C++ library support
13206 ld_shlibs_CXX=no
13207 ;;
13208 esac
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13211 $as_echo "$ld_shlibs_CXX" >&6; }
13212 test "$ld_shlibs_CXX" = no && can_build_shared=no
13213
13214 GCC_CXX="$GXX"
13215 LD_CXX="$LD"
13216
13217 ## CAVEAT EMPTOR:
13218 ## There is no encapsulation within the following macros, do not change
13219 ## the running order or otherwise move them around unless you know exactly
13220 ## what you are doing...
13221 # Dependencies to place before and after the object being linked:
13222 predep_objects_CXX=
13223 postdep_objects_CXX=
13224 predeps_CXX=
13225 postdeps_CXX=
13226 compiler_lib_search_path_CXX=
13227
13228 cat > conftest.$ac_ext <<_LT_EOF
13229 class Foo
13230 {
13231 public:
13232 Foo (void) { a = 0; }
13233 private:
13234 int a;
13235 };
13236 _LT_EOF
13237
13238
13239 _lt_libdeps_save_CFLAGS=$CFLAGS
13240 case "$CC $CFLAGS " in #(
13241 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13242 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13243 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13244 esac
13245
13246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13247 (eval $ac_compile) 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; then
13251 # Parse the compiler output and extract the necessary
13252 # objects, libraries and library flags.
13253
13254 # Sentinel used to keep track of whether or not we are before
13255 # the conftest object file.
13256 pre_test_object_deps_done=no
13257
13258 for p in `eval "$output_verbose_link_cmd"`; do
13259 case ${prev}${p} in
13260
13261 -L* | -R* | -l*)
13262 # Some compilers place space between "-{L,R}" and the path.
13263 # Remove the space.
13264 if test $p = "-L" ||
13265 test $p = "-R"; then
13266 prev=$p
13267 continue
13268 fi
13269
13270 # Expand the sysroot to ease extracting the directories later.
13271 if test -z "$prev"; then
13272 case $p in
13273 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13274 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13275 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13276 esac
13277 fi
13278 case $p in
13279 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13280 esac
13281 if test "$pre_test_object_deps_done" = no; then
13282 case ${prev} in
13283 -L | -R)
13284 # Internal compiler library paths should come after those
13285 # provided the user. The postdeps already come after the
13286 # user supplied libs so there is no need to process them.
13287 if test -z "$compiler_lib_search_path_CXX"; then
13288 compiler_lib_search_path_CXX="${prev}${p}"
13289 else
13290 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13291 fi
13292 ;;
13293 # The "-l" case would never come before the object being
13294 # linked, so don't bother handling this case.
13295 esac
13296 else
13297 if test -z "$postdeps_CXX"; then
13298 postdeps_CXX="${prev}${p}"
13299 else
13300 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13301 fi
13302 fi
13303 prev=
13304 ;;
13305
13306 *.lto.$objext) ;; # Ignore GCC LTO objects
13307 *.$objext)
13308 # This assumes that the test object file only shows up
13309 # once in the compiler output.
13310 if test "$p" = "conftest.$objext"; then
13311 pre_test_object_deps_done=yes
13312 continue
13313 fi
13314
13315 if test "$pre_test_object_deps_done" = no; then
13316 if test -z "$predep_objects_CXX"; then
13317 predep_objects_CXX="$p"
13318 else
13319 predep_objects_CXX="$predep_objects_CXX $p"
13320 fi
13321 else
13322 if test -z "$postdep_objects_CXX"; then
13323 postdep_objects_CXX="$p"
13324 else
13325 postdep_objects_CXX="$postdep_objects_CXX $p"
13326 fi
13327 fi
13328 ;;
13329
13330 *) ;; # Ignore the rest.
13331
13332 esac
13333 done
13334
13335 # Clean up.
13336 rm -f a.out a.exe
13337 else
13338 echo "libtool.m4: error: problem compiling CXX test program"
13339 fi
13340
13341 $RM -f confest.$objext
13342 CFLAGS=$_lt_libdeps_save_CFLAGS
13343
13344 # PORTME: override above test on systems where it is broken
13345 case $host_os in
13346 interix[3-9]*)
13347 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13348 # hack all around it, let's just trust "g++" to DTRT.
13349 predep_objects_CXX=
13350 postdep_objects_CXX=
13351 postdeps_CXX=
13352 ;;
13353
13354 linux*)
13355 case `$CC -V 2>&1 | sed 5q` in
13356 *Sun\ C*)
13357 # Sun C++ 5.9
13358
13359 # The more standards-conforming stlport4 library is
13360 # incompatible with the Cstd library. Avoid specifying
13361 # it if it's in CXXFLAGS. Ignore libCrun as
13362 # -library=stlport4 depends on it.
13363 case " $CXX $CXXFLAGS " in
13364 *" -library=stlport4 "*)
13365 solaris_use_stlport4=yes
13366 ;;
13367 esac
13368
13369 if test "$solaris_use_stlport4" != yes; then
13370 postdeps_CXX='-library=Cstd -library=Crun'
13371 fi
13372 ;;
13373 esac
13374 ;;
13375
13376 solaris*)
13377 case $cc_basename in
13378 CC* | sunCC*)
13379 # The more standards-conforming stlport4 library is
13380 # incompatible with the Cstd library. Avoid specifying
13381 # it if it's in CXXFLAGS. Ignore libCrun as
13382 # -library=stlport4 depends on it.
13383 case " $CXX $CXXFLAGS " in
13384 *" -library=stlport4 "*)
13385 solaris_use_stlport4=yes
13386 ;;
13387 esac
13388
13389 # Adding this requires a known-good setup of shared libraries for
13390 # Sun compiler versions before 5.6, else PIC objects from an old
13391 # archive will be linked into the output, leading to subtle bugs.
13392 if test "$solaris_use_stlport4" != yes; then
13393 postdeps_CXX='-library=Cstd -library=Crun'
13394 fi
13395 ;;
13396 esac
13397 ;;
13398 esac
13399
13400
13401 case " $postdeps_CXX " in
13402 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13403 esac
13404 compiler_lib_search_dirs_CXX=
13405 if test -n "${compiler_lib_search_path_CXX}"; then
13406 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13407 fi
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439 lt_prog_compiler_wl_CXX=
13440 lt_prog_compiler_pic_CXX=
13441 lt_prog_compiler_static_CXX=
13442
13443
13444 # C++ specific cases for pic, static, wl, etc.
13445 if test "$GXX" = yes; then
13446 lt_prog_compiler_wl_CXX='-Wl,'
13447 lt_prog_compiler_static_CXX='-static'
13448
13449 case $host_os in
13450 aix*)
13451 # All AIX code is PIC.
13452 if test "$host_cpu" = ia64; then
13453 # AIX 5 now supports IA64 processor
13454 lt_prog_compiler_static_CXX='-Bstatic'
13455 fi
13456 ;;
13457
13458 amigaos*)
13459 case $host_cpu in
13460 powerpc)
13461 # see comment about AmigaOS4 .so support
13462 lt_prog_compiler_pic_CXX='-fPIC'
13463 ;;
13464 m68k)
13465 # FIXME: we need at least 68020 code to build shared libraries, but
13466 # adding the `-m68020' flag to GCC prevents building anything better,
13467 # like `-m68040'.
13468 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13469 ;;
13470 esac
13471 ;;
13472
13473 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13474 # PIC is the default for these OSes.
13475 ;;
13476 mingw* | cygwin* | os2* | pw32* | cegcc*)
13477 # This hack is so that the source file can tell whether it is being
13478 # built for inclusion in a dll (and should export symbols for example).
13479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13480 # (--disable-auto-import) libraries
13481 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13482 ;;
13483 darwin* | rhapsody*)
13484 # PIC is the default on this platform
13485 # Common symbols not allowed in MH_DYLIB files
13486 lt_prog_compiler_pic_CXX='-fno-common'
13487 ;;
13488 *djgpp*)
13489 # DJGPP does not support shared libraries at all
13490 lt_prog_compiler_pic_CXX=
13491 ;;
13492 haiku*)
13493 # PIC is the default for Haiku.
13494 # The "-static" flag exists, but is broken.
13495 lt_prog_compiler_static_CXX=
13496 ;;
13497 interix[3-9]*)
13498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13499 # Instead, we relocate shared libraries at runtime.
13500 ;;
13501 sysv4*MP*)
13502 if test -d /usr/nec; then
13503 lt_prog_compiler_pic_CXX=-Kconform_pic
13504 fi
13505 ;;
13506 hpux*)
13507 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13508 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13509 # sets the default TLS model and affects inlining.
13510 case $host_cpu in
13511 hppa*64*)
13512 ;;
13513 *)
13514 lt_prog_compiler_pic_CXX='-fPIC'
13515 ;;
13516 esac
13517 ;;
13518 *qnx* | *nto*)
13519 # QNX uses GNU C++, but need to define -shared option too, otherwise
13520 # it will coredump.
13521 lt_prog_compiler_pic_CXX='-fPIC -shared'
13522 ;;
13523 *)
13524 lt_prog_compiler_pic_CXX='-fPIC'
13525 ;;
13526 esac
13527 else
13528 case $host_os in
13529 aix[4-9]*)
13530 # All AIX code is PIC.
13531 if test "$host_cpu" = ia64; then
13532 # AIX 5 now supports IA64 processor
13533 lt_prog_compiler_static_CXX='-Bstatic'
13534 else
13535 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13536 fi
13537 ;;
13538 chorus*)
13539 case $cc_basename in
13540 cxch68*)
13541 # Green Hills C++ Compiler
13542 # _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"
13543 ;;
13544 esac
13545 ;;
13546 mingw* | cygwin* | os2* | pw32* | cegcc*)
13547 # This hack is so that the source file can tell whether it is being
13548 # built for inclusion in a dll (and should export symbols for example).
13549 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13550 ;;
13551 dgux*)
13552 case $cc_basename in
13553 ec++*)
13554 lt_prog_compiler_pic_CXX='-KPIC'
13555 ;;
13556 ghcx*)
13557 # Green Hills C++ Compiler
13558 lt_prog_compiler_pic_CXX='-pic'
13559 ;;
13560 *)
13561 ;;
13562 esac
13563 ;;
13564 freebsd* | dragonfly*)
13565 # FreeBSD uses GNU C++
13566 ;;
13567 hpux9* | hpux10* | hpux11*)
13568 case $cc_basename in
13569 CC*)
13570 lt_prog_compiler_wl_CXX='-Wl,'
13571 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13572 if test "$host_cpu" != ia64; then
13573 lt_prog_compiler_pic_CXX='+Z'
13574 fi
13575 ;;
13576 aCC*)
13577 lt_prog_compiler_wl_CXX='-Wl,'
13578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13579 case $host_cpu in
13580 hppa*64*|ia64*)
13581 # +Z the default
13582 ;;
13583 *)
13584 lt_prog_compiler_pic_CXX='+Z'
13585 ;;
13586 esac
13587 ;;
13588 *)
13589 ;;
13590 esac
13591 ;;
13592 interix*)
13593 # This is c89, which is MS Visual C++ (no shared libs)
13594 # Anyone wants to do a port?
13595 ;;
13596 irix5* | irix6* | nonstopux*)
13597 case $cc_basename in
13598 CC*)
13599 lt_prog_compiler_wl_CXX='-Wl,'
13600 lt_prog_compiler_static_CXX='-non_shared'
13601 # CC pic flag -KPIC is the default.
13602 ;;
13603 *)
13604 ;;
13605 esac
13606 ;;
13607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13608 case $cc_basename in
13609 KCC*)
13610 # KAI C++ Compiler
13611 lt_prog_compiler_wl_CXX='--backend -Wl,'
13612 lt_prog_compiler_pic_CXX='-fPIC'
13613 ;;
13614 ecpc* )
13615 # old Intel C++ for x86_64 which still supported -KPIC.
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_pic_CXX='-KPIC'
13618 lt_prog_compiler_static_CXX='-static'
13619 ;;
13620 icpc* )
13621 # Intel C++, used to be incompatible with GCC.
13622 # ICC 10 doesn't accept -KPIC any more.
13623 lt_prog_compiler_wl_CXX='-Wl,'
13624 lt_prog_compiler_pic_CXX='-fPIC'
13625 lt_prog_compiler_static_CXX='-static'
13626 ;;
13627 pgCC* | pgcpp*)
13628 # Portland Group C++ compiler
13629 lt_prog_compiler_wl_CXX='-Wl,'
13630 lt_prog_compiler_pic_CXX='-fpic'
13631 lt_prog_compiler_static_CXX='-Bstatic'
13632 ;;
13633 cxx*)
13634 # Compaq C++
13635 # Make sure the PIC flag is empty. It appears that all Alpha
13636 # Linux and Compaq Tru64 Unix objects are PIC.
13637 lt_prog_compiler_pic_CXX=
13638 lt_prog_compiler_static_CXX='-non_shared'
13639 ;;
13640 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13641 # IBM XL 8.0, 9.0 on PPC and BlueGene
13642 lt_prog_compiler_wl_CXX='-Wl,'
13643 lt_prog_compiler_pic_CXX='-qpic'
13644 lt_prog_compiler_static_CXX='-qstaticlink'
13645 ;;
13646 *)
13647 case `$CC -V 2>&1 | sed 5q` in
13648 *Sun\ C*)
13649 # Sun C++ 5.9
13650 lt_prog_compiler_pic_CXX='-KPIC'
13651 lt_prog_compiler_static_CXX='-Bstatic'
13652 lt_prog_compiler_wl_CXX='-Qoption ld '
13653 ;;
13654 esac
13655 ;;
13656 esac
13657 ;;
13658 lynxos*)
13659 ;;
13660 m88k*)
13661 ;;
13662 mvs*)
13663 case $cc_basename in
13664 cxx*)
13665 lt_prog_compiler_pic_CXX='-W c,exportall'
13666 ;;
13667 *)
13668 ;;
13669 esac
13670 ;;
13671 netbsd*)
13672 ;;
13673 *qnx* | *nto*)
13674 # QNX uses GNU C++, but need to define -shared option too, otherwise
13675 # it will coredump.
13676 lt_prog_compiler_pic_CXX='-fPIC -shared'
13677 ;;
13678 osf3* | osf4* | osf5*)
13679 case $cc_basename in
13680 KCC*)
13681 lt_prog_compiler_wl_CXX='--backend -Wl,'
13682 ;;
13683 RCC*)
13684 # Rational C++ 2.4.1
13685 lt_prog_compiler_pic_CXX='-pic'
13686 ;;
13687 cxx*)
13688 # Digital/Compaq C++
13689 lt_prog_compiler_wl_CXX='-Wl,'
13690 # Make sure the PIC flag is empty. It appears that all Alpha
13691 # Linux and Compaq Tru64 Unix objects are PIC.
13692 lt_prog_compiler_pic_CXX=
13693 lt_prog_compiler_static_CXX='-non_shared'
13694 ;;
13695 *)
13696 ;;
13697 esac
13698 ;;
13699 psos*)
13700 ;;
13701 solaris*)
13702 case $cc_basename in
13703 CC* | sunCC*)
13704 # Sun C++ 4.2, 5.x and Centerline C++
13705 lt_prog_compiler_pic_CXX='-KPIC'
13706 lt_prog_compiler_static_CXX='-Bstatic'
13707 lt_prog_compiler_wl_CXX='-Qoption ld '
13708 ;;
13709 gcx*)
13710 # Green Hills C++ Compiler
13711 lt_prog_compiler_pic_CXX='-PIC'
13712 ;;
13713 *)
13714 ;;
13715 esac
13716 ;;
13717 sunos4*)
13718 case $cc_basename in
13719 CC*)
13720 # Sun C++ 4.x
13721 lt_prog_compiler_pic_CXX='-pic'
13722 lt_prog_compiler_static_CXX='-Bstatic'
13723 ;;
13724 lcc*)
13725 # Lucid
13726 lt_prog_compiler_pic_CXX='-pic'
13727 ;;
13728 *)
13729 ;;
13730 esac
13731 ;;
13732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13733 case $cc_basename in
13734 CC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_pic_CXX='-KPIC'
13737 lt_prog_compiler_static_CXX='-Bstatic'
13738 ;;
13739 esac
13740 ;;
13741 tandem*)
13742 case $cc_basename in
13743 NCC*)
13744 # NonStop-UX NCC 3.20
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 ;;
13747 *)
13748 ;;
13749 esac
13750 ;;
13751 vxworks*)
13752 ;;
13753 *)
13754 lt_prog_compiler_can_build_shared_CXX=no
13755 ;;
13756 esac
13757 fi
13758
13759 case $host_os in
13760 # For platforms which do not support PIC, -DPIC is meaningless:
13761 *djgpp*)
13762 lt_prog_compiler_pic_CXX=
13763 ;;
13764 *)
13765 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13766 ;;
13767 esac
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13770 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13771 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13777 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13778 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13779
13780 #
13781 # Check to make sure the PIC flag actually works.
13782 #
13783 if test -n "$lt_prog_compiler_pic_CXX"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13786 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 lt_cv_prog_compiler_pic_works_CXX=no
13790 ac_outfile=conftest.$ac_objext
13791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13793 # Insert the option either (1) after the last *FLAGS variable, or
13794 # (2) before a word containing "conftest.", or (3) at the end.
13795 # Note that $ac_compile itself does not contain backslashes and begins
13796 # with a dollar sign (not a hyphen), so the echo should work correctly.
13797 # The option is referenced via a variable to avoid confusing sed.
13798 lt_compile=`echo "$ac_compile" | $SED \
13799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801 -e 's:$: $lt_compiler_flag:'`
13802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13803 (eval "$lt_compile" 2>conftest.err)
13804 ac_status=$?
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 if (exit $ac_status) && test -s "$ac_outfile"; then
13808 # The compiler can only warn and ignore the option if not recognized
13809 # So say no if there are warnings other than the usual output.
13810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13813 lt_cv_prog_compiler_pic_works_CXX=yes
13814 fi
13815 fi
13816 $RM -r conftest*
13817
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13820 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13821
13822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13823 case $lt_prog_compiler_pic_CXX in
13824 "" | " "*) ;;
13825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13826 esac
13827 else
13828 lt_prog_compiler_pic_CXX=
13829 lt_prog_compiler_can_build_shared_CXX=no
13830 fi
13831
13832 fi
13833
13834
13835
13836
13837
13838 #
13839 # Check to make sure the static flag actually works.
13840 #
13841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13844 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 lt_cv_prog_compiler_static_works_CXX=no
13848 save_LDFLAGS="$LDFLAGS"
13849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13852 # The linker can only warn and ignore the option if not recognized
13853 # So say no if there are warnings
13854 if test -s conftest.err; then
13855 # Append any errors to the config.log.
13856 cat conftest.err 1>&5
13857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13859 if diff conftest.exp conftest.er2 >/dev/null; then
13860 lt_cv_prog_compiler_static_works_CXX=yes
13861 fi
13862 else
13863 lt_cv_prog_compiler_static_works_CXX=yes
13864 fi
13865 fi
13866 $RM -r conftest*
13867 LDFLAGS="$save_LDFLAGS"
13868
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13871 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13872
13873 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13874 :
13875 else
13876 lt_prog_compiler_static_CXX=
13877 fi
13878
13879
13880
13881
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13884 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 lt_cv_prog_compiler_c_o_CXX=no
13888 $RM -r conftest 2>/dev/null
13889 mkdir conftest
13890 cd conftest
13891 mkdir out
13892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13893
13894 lt_compiler_flag="-o out/conftest2.$ac_objext"
13895 # Insert the option either (1) after the last *FLAGS variable, or
13896 # (2) before a word containing "conftest.", or (3) at the end.
13897 # Note that $ac_compile itself does not contain backslashes and begins
13898 # with a dollar sign (not a hyphen), so the echo should work correctly.
13899 lt_compile=`echo "$ac_compile" | $SED \
13900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13902 -e 's:$: $lt_compiler_flag:'`
13903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13904 (eval "$lt_compile" 2>out/conftest.err)
13905 ac_status=$?
13906 cat out/conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13909 then
13910 # The compiler can only warn and ignore the option if not recognized
13911 # So say no if there are warnings
13912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13915 lt_cv_prog_compiler_c_o_CXX=yes
13916 fi
13917 fi
13918 chmod u+w . 2>&5
13919 $RM -r conftest*
13920 # SGI C++ compiler will create directory out/ii_files/ for
13921 # template instantiation
13922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13923 $RM out/* && rmdir out
13924 cd ..
13925 $RM -r conftest
13926 $RM -r conftest*
13927
13928 fi
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13930 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13931
13932
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13935 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13936 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 lt_cv_prog_compiler_c_o_CXX=no
13940 $RM -r conftest 2>/dev/null
13941 mkdir conftest
13942 cd conftest
13943 mkdir out
13944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13945
13946 lt_compiler_flag="-o out/conftest2.$ac_objext"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 lt_compile=`echo "$ac_compile" | $SED \
13952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13954 -e 's:$: $lt_compiler_flag:'`
13955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13956 (eval "$lt_compile" 2>out/conftest.err)
13957 ac_status=$?
13958 cat out/conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13961 then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings
13964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_c_o_CXX=yes
13968 fi
13969 fi
13970 chmod u+w . 2>&5
13971 $RM -r conftest*
13972 # SGI C++ compiler will create directory out/ii_files/ for
13973 # template instantiation
13974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13975 $RM out/* && rmdir out
13976 cd ..
13977 $RM -r conftest
13978 $RM -r conftest*
13979
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13982 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13983
13984
13985
13986
13987 hard_links="nottested"
13988 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13989 # do not overwrite the value of need_locks provided by the user
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13991 $as_echo_n "checking if we can lock with hard links... " >&6; }
13992 hard_links=yes
13993 $RM -r conftest*
13994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13995 touch conftest.a
13996 ln conftest.a conftest.b 2>&5 || hard_links=no
13997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13999 $as_echo "$hard_links" >&6; }
14000 if test "$hard_links" = no; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14002 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14003 need_locks=warn
14004 fi
14005 else
14006 need_locks=no
14007 fi
14008
14009
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14012 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14013
14014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14016 case $host_os in
14017 aix[4-9]*)
14018 # If we're using GNU nm, then we don't want the "-C" option.
14019 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14020 # Also, AIX nm treats weak defined symbols like other global defined
14021 # symbols, whereas GNU nm marks them as "W".
14022 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14023 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'
14024 else
14025 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'
14026 fi
14027 ;;
14028 pw32*)
14029 export_symbols_cmds_CXX="$ltdll_cmds"
14030 ;;
14031 cygwin* | mingw* | cegcc*)
14032 case $cc_basename in
14033 cl*)
14034 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14035 ;;
14036 *)
14037 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'
14038 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14039 ;;
14040 esac
14041 ;;
14042 *)
14043 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14044 ;;
14045 esac
14046
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14048 $as_echo "$ld_shlibs_CXX" >&6; }
14049 test "$ld_shlibs_CXX" = no && can_build_shared=no
14050
14051 with_gnu_ld_CXX=$with_gnu_ld
14052
14053
14054
14055
14056
14057
14058 #
14059 # Do we need to explicitly link libc?
14060 #
14061 case "x$archive_cmds_need_lc_CXX" in
14062 x|xyes)
14063 # Assume -lc should be added
14064 archive_cmds_need_lc_CXX=yes
14065
14066 if test "$enable_shared" = yes && test "$GCC" = yes; then
14067 case $archive_cmds_CXX in
14068 *'~'*)
14069 # FIXME: we may have to deal with multi-command sequences.
14070 ;;
14071 '$CC '*)
14072 # Test whether the compiler implicitly links with -lc since on some
14073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14074 # to ld, don't add -lc before -lgcc.
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14077 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 $RM -r conftest*
14081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14082
14083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14084 (eval $ac_compile) 2>&5
14085 ac_status=$?
14086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14087 test $ac_status = 0; } 2>conftest.err; then
14088 soname=conftest
14089 lib=conftest
14090 libobjs=conftest.$ac_objext
14091 deplibs=
14092 wl=$lt_prog_compiler_wl_CXX
14093 pic_flag=$lt_prog_compiler_pic_CXX
14094 compiler_flags=-v
14095 linker_flags=-v
14096 verstring=
14097 output_objdir=.
14098 libname=conftest
14099 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14100 allow_undefined_flag_CXX=
14101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14102 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14103 ac_status=$?
14104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105 test $ac_status = 0; }
14106 then
14107 lt_cv_archive_cmds_need_lc_CXX=no
14108 else
14109 lt_cv_archive_cmds_need_lc_CXX=yes
14110 fi
14111 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14112 else
14113 cat conftest.err 1>&5
14114 fi
14115 $RM -r conftest*
14116
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14119 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14120 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14121 ;;
14122 esac
14123 fi
14124 ;;
14125 esac
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
14180
14181
14182
14183
14184
14185
14186
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14189 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14190
14191 library_names_spec=
14192 libname_spec='lib$name'
14193 soname_spec=
14194 shrext_cmds=".so"
14195 postinstall_cmds=
14196 postuninstall_cmds=
14197 finish_cmds=
14198 finish_eval=
14199 shlibpath_var=
14200 shlibpath_overrides_runpath=unknown
14201 version_type=none
14202 dynamic_linker="$host_os ld.so"
14203 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14204 need_lib_prefix=unknown
14205 hardcode_into_libs=no
14206
14207 # when you set need_version to no, make sure it does not cause -set_version
14208 # flags to be left without arguments
14209 need_version=unknown
14210
14211 case $host_os in
14212 aix3*)
14213 version_type=linux # correct to gnu/linux during the next big refactor
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14215 shlibpath_var=LIBPATH
14216
14217 # AIX 3 has no versioning support, so we append a major version to the name.
14218 soname_spec='${libname}${release}${shared_ext}$major'
14219 ;;
14220
14221 aix[4-9]*)
14222 version_type=linux # correct to gnu/linux during the next big refactor
14223 need_lib_prefix=no
14224 need_version=no
14225 hardcode_into_libs=yes
14226 if test "$host_cpu" = ia64; then
14227 # AIX 5 supports IA64
14228 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 else
14231 # With GCC up to 2.95.x, collect2 would create an import file
14232 # for dependence libraries. The import file would start with
14233 # the line `#! .'. This would cause the generated library to
14234 # depend on `.', always an invalid library. This was fixed in
14235 # development snapshots of GCC prior to 3.0.
14236 case $host_os in
14237 aix4 | aix4.[01] | aix4.[01].*)
14238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14239 echo ' yes '
14240 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14241 :
14242 else
14243 can_build_shared=no
14244 fi
14245 ;;
14246 esac
14247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14248 # soname into executable. Probably we can add versioning support to
14249 # collect2, so additional links can be useful in future.
14250 if test "$aix_use_runtimelinking" = yes; then
14251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14252 # instead of lib<name>.a to let people know that these are not
14253 # typical AIX shared libraries.
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 else
14256 # We preserve .a as extension for shared libraries through AIX4.2
14257 # and later when we are not doing run time linking.
14258 library_names_spec='${libname}${release}.a $libname.a'
14259 soname_spec='${libname}${release}${shared_ext}$major'
14260 fi
14261 shlibpath_var=LIBPATH
14262 fi
14263 ;;
14264
14265 amigaos*)
14266 case $host_cpu in
14267 powerpc)
14268 # Since July 2007 AmigaOS4 officially supports .so libraries.
14269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14271 ;;
14272 m68k)
14273 library_names_spec='$libname.ixlibrary $libname.a'
14274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14275 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'
14276 ;;
14277 esac
14278 ;;
14279
14280 beos*)
14281 library_names_spec='${libname}${shared_ext}'
14282 dynamic_linker="$host_os ld.so"
14283 shlibpath_var=LIBRARY_PATH
14284 ;;
14285
14286 bsdi[45]*)
14287 version_type=linux # correct to gnu/linux during the next big refactor
14288 need_version=no
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14295 # the default ld.so.conf also contains /usr/contrib/lib and
14296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14297 # libtool to hard-code these into programs
14298 ;;
14299
14300 cygwin* | mingw* | pw32* | cegcc*)
14301 version_type=windows
14302 shrext_cmds=".dll"
14303 need_version=no
14304 need_lib_prefix=no
14305
14306 case $GCC,$cc_basename in
14307 yes,*)
14308 # gcc
14309 library_names_spec='$libname.dll.a'
14310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14311 postinstall_cmds='base_file=`basename \${file}`~
14312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14313 dldir=$destdir/`dirname \$dlpath`~
14314 test -d \$dldir || mkdir -p \$dldir~
14315 $install_prog $dir/$dlname \$dldir/$dlname~
14316 chmod a+x \$dldir/$dlname~
14317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14319 fi'
14320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14321 dlpath=$dir/\$dldll~
14322 $RM \$dlpath'
14323 shlibpath_overrides_runpath=yes
14324
14325 case $host_os in
14326 cygwin*)
14327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14329
14330 ;;
14331 mingw* | cegcc*)
14332 # MinGW DLLs use traditional 'lib' prefix
14333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14334 ;;
14335 pw32*)
14336 # pw32 DLLs use 'pw' prefix rather than 'lib'
14337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14338 ;;
14339 esac
14340 dynamic_linker='Win32 ld.exe'
14341 ;;
14342
14343 *,cl*)
14344 # Native MSVC
14345 libname_spec='$name'
14346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14347 library_names_spec='${libname}.dll.lib'
14348
14349 case $build_os in
14350 mingw*)
14351 sys_lib_search_path_spec=
14352 lt_save_ifs=$IFS
14353 IFS=';'
14354 for lt_path in $LIB
14355 do
14356 IFS=$lt_save_ifs
14357 # Let DOS variable expansion print the short 8.3 style file name.
14358 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14359 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14360 done
14361 IFS=$lt_save_ifs
14362 # Convert to MSYS style.
14363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14364 ;;
14365 cygwin*)
14366 # Convert to unix form, then to dos form, then back to unix form
14367 # but this time dos style (no spaces!) so that the unix form looks
14368 # like /cygdrive/c/PROGRA~1:/cygdr...
14369 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14370 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14371 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14372 ;;
14373 *)
14374 sys_lib_search_path_spec="$LIB"
14375 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14376 # It is most probably a Windows format PATH.
14377 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378 else
14379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14380 fi
14381 # FIXME: find the short name or the path components, as spaces are
14382 # common. (e.g. "Program Files" -> "PROGRA~1")
14383 ;;
14384 esac
14385
14386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14387 postinstall_cmds='base_file=`basename \${file}`~
14388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14389 dldir=$destdir/`dirname \$dlpath`~
14390 test -d \$dldir || mkdir -p \$dldir~
14391 $install_prog $dir/$dlname \$dldir/$dlname'
14392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14393 dlpath=$dir/\$dldll~
14394 $RM \$dlpath'
14395 shlibpath_overrides_runpath=yes
14396 dynamic_linker='Win32 link.exe'
14397 ;;
14398
14399 *)
14400 # Assume MSVC wrapper
14401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14402 dynamic_linker='Win32 ld.exe'
14403 ;;
14404 esac
14405 # FIXME: first we should search . and the directory the executable is in
14406 shlibpath_var=PATH
14407 ;;
14408
14409 darwin* | rhapsody*)
14410 dynamic_linker="$host_os dyld"
14411 version_type=darwin
14412 need_lib_prefix=no
14413 need_version=no
14414 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14415 soname_spec='${libname}${release}${major}$shared_ext'
14416 shlibpath_overrides_runpath=yes
14417 shlibpath_var=DYLD_LIBRARY_PATH
14418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14419
14420 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14421 ;;
14422
14423 dgux*)
14424 version_type=linux # correct to gnu/linux during the next big refactor
14425 need_lib_prefix=no
14426 need_version=no
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14428 soname_spec='${libname}${release}${shared_ext}$major'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 ;;
14431
14432 freebsd* | dragonfly*)
14433 # DragonFly does not have aout. When/if they implement a new
14434 # versioning mechanism, adjust this.
14435 if test -x /usr/bin/objformat; then
14436 objformat=`/usr/bin/objformat`
14437 else
14438 case $host_os in
14439 freebsd[23].*) objformat=aout ;;
14440 *) objformat=elf ;;
14441 esac
14442 fi
14443 version_type=freebsd-$objformat
14444 case $version_type in
14445 freebsd-elf*)
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14447 need_version=no
14448 need_lib_prefix=no
14449 ;;
14450 freebsd-*)
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14452 need_version=yes
14453 ;;
14454 esac
14455 shlibpath_var=LD_LIBRARY_PATH
14456 case $host_os in
14457 freebsd2.*)
14458 shlibpath_overrides_runpath=yes
14459 ;;
14460 freebsd3.[01]* | freebsdelf3.[01]*)
14461 shlibpath_overrides_runpath=yes
14462 hardcode_into_libs=yes
14463 ;;
14464 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14465 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14466 shlibpath_overrides_runpath=no
14467 hardcode_into_libs=yes
14468 ;;
14469 *) # from 4.6 on, and DragonFly
14470 shlibpath_overrides_runpath=yes
14471 hardcode_into_libs=yes
14472 ;;
14473 esac
14474 ;;
14475
14476 gnu*)
14477 version_type=linux # correct to gnu/linux during the next big refactor
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=no
14484 hardcode_into_libs=yes
14485 ;;
14486
14487 haiku*)
14488 version_type=linux # correct to gnu/linux during the next big refactor
14489 need_lib_prefix=no
14490 need_version=no
14491 dynamic_linker="$host_os runtime_loader"
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 shlibpath_var=LIBRARY_PATH
14495 shlibpath_overrides_runpath=yes
14496 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14497 hardcode_into_libs=yes
14498 ;;
14499
14500 hpux9* | hpux10* | hpux11*)
14501 # Give a soname corresponding to the major version so that dld.sl refuses to
14502 # link against other versions.
14503 version_type=sunos
14504 need_lib_prefix=no
14505 need_version=no
14506 case $host_cpu in
14507 ia64*)
14508 shrext_cmds='.so'
14509 hardcode_into_libs=yes
14510 dynamic_linker="$host_os dld.so"
14511 shlibpath_var=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 if test "X$HPUX_IA64_MODE" = X32; then
14516 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14517 else
14518 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14519 fi
14520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14521 ;;
14522 hppa*64*)
14523 shrext_cmds='.sl'
14524 hardcode_into_libs=yes
14525 dynamic_linker="$host_os dld.sl"
14526 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529 soname_spec='${libname}${release}${shared_ext}$major'
14530 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14532 ;;
14533 *)
14534 shrext_cmds='.sl'
14535 dynamic_linker="$host_os dld.sl"
14536 shlibpath_var=SHLIB_PATH
14537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539 soname_spec='${libname}${release}${shared_ext}$major'
14540 ;;
14541 esac
14542 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14543 postinstall_cmds='chmod 555 $lib'
14544 # or fails outright, so override atomically:
14545 install_override_mode=555
14546 ;;
14547
14548 interix[3-9]*)
14549 version_type=linux # correct to gnu/linux during the next big refactor
14550 need_lib_prefix=no
14551 need_version=no
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=no
14557 hardcode_into_libs=yes
14558 ;;
14559
14560 irix5* | irix6* | nonstopux*)
14561 case $host_os in
14562 nonstopux*) version_type=nonstopux ;;
14563 *)
14564 if test "$lt_cv_prog_gnu_ld" = yes; then
14565 version_type=linux # correct to gnu/linux during the next big refactor
14566 else
14567 version_type=irix
14568 fi ;;
14569 esac
14570 need_lib_prefix=no
14571 need_version=no
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14574 case $host_os in
14575 irix5* | nonstopux*)
14576 libsuff= shlibsuff=
14577 ;;
14578 *)
14579 case $LD in # libtool.m4 will add one of these switches to LD
14580 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14581 libsuff= shlibsuff= libmagic=32-bit;;
14582 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14583 libsuff=32 shlibsuff=N32 libmagic=N32;;
14584 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14585 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14586 *) libsuff= shlibsuff= libmagic=never-match;;
14587 esac
14588 ;;
14589 esac
14590 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14591 shlibpath_overrides_runpath=no
14592 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14593 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14594 hardcode_into_libs=yes
14595 ;;
14596
14597 # No shared lib support for Linux oldld, aout, or coff.
14598 linux*oldld* | linux*aout* | linux*coff*)
14599 dynamic_linker=no
14600 ;;
14601
14602 # This must be glibc/ELF.
14603 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14604 version_type=linux # correct to gnu/linux during the next big refactor
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=no
14612
14613 # Some binutils ld are patched to set DT_RUNPATH
14614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14617 lt_cv_shlibpath_overrides_runpath=no
14618 save_LDFLAGS=$LDFLAGS
14619 save_libdir=$libdir
14620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624
14625 int
14626 main ()
14627 {
14628
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 if ac_fn_cxx_try_link "$LINENO"; then :
14634 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14635 lt_cv_shlibpath_overrides_runpath=yes
14636 fi
14637 fi
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 LDFLAGS=$save_LDFLAGS
14641 libdir=$save_libdir
14642
14643 fi
14644
14645 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14646
14647 # This implies no fast_install, which is unacceptable.
14648 # Some rework will be needed to allow for fast_install
14649 # before this can be enabled.
14650 hardcode_into_libs=yes
14651
14652 # Append ld.so.conf contents to the search path
14653 if test -f /etc/ld.so.conf; then
14654 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' ' '`
14655 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14656 fi
14657
14658 # We used to test for /lib/ld.so.1 and disable shared libraries on
14659 # powerpc, because MkLinux only supported shared libraries with the
14660 # GNU dynamic linker. Since this was broken with cross compilers,
14661 # most powerpc-linux boxes support dynamic linking these days and
14662 # people can always --disable-shared, the test was removed, and we
14663 # assume the GNU/Linux dynamic linker is in use.
14664 dynamic_linker='GNU/Linux ld.so'
14665 ;;
14666
14667 netbsd*)
14668 version_type=sunos
14669 need_lib_prefix=no
14670 need_version=no
14671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14674 dynamic_linker='NetBSD (a.out) ld.so'
14675 else
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14677 soname_spec='${libname}${release}${shared_ext}$major'
14678 dynamic_linker='NetBSD ld.elf_so'
14679 fi
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes
14682 hardcode_into_libs=yes
14683 ;;
14684
14685 newsos6)
14686 version_type=linux # correct to gnu/linux during the next big refactor
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 ;;
14691
14692 *nto* | *qnx*)
14693 version_type=qnx
14694 need_lib_prefix=no
14695 need_version=no
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700 hardcode_into_libs=yes
14701 dynamic_linker='ldqnx.so'
14702 ;;
14703
14704 openbsd*)
14705 version_type=sunos
14706 sys_lib_dlsearch_path_spec="/usr/lib"
14707 need_lib_prefix=no
14708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14709 case $host_os in
14710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14711 *) need_version=no ;;
14712 esac
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14715 shlibpath_var=LD_LIBRARY_PATH
14716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14717 case $host_os in
14718 openbsd2.[89] | openbsd2.[89].*)
14719 shlibpath_overrides_runpath=no
14720 ;;
14721 *)
14722 shlibpath_overrides_runpath=yes
14723 ;;
14724 esac
14725 else
14726 shlibpath_overrides_runpath=yes
14727 fi
14728 ;;
14729
14730 os2*)
14731 libname_spec='$name'
14732 shrext_cmds=".dll"
14733 need_lib_prefix=no
14734 library_names_spec='$libname${shared_ext} $libname.a'
14735 dynamic_linker='OS/2 ld.exe'
14736 shlibpath_var=LIBPATH
14737 ;;
14738
14739 osf3* | osf4* | osf5*)
14740 version_type=osf
14741 need_lib_prefix=no
14742 need_version=no
14743 soname_spec='${libname}${release}${shared_ext}$major'
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14748 ;;
14749
14750 rdos*)
14751 dynamic_linker=no
14752 ;;
14753
14754 solaris*)
14755 version_type=linux # correct to gnu/linux during the next big refactor
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=yes
14762 hardcode_into_libs=yes
14763 # ldd complains unless libraries are executable
14764 postinstall_cmds='chmod +x $lib'
14765 ;;
14766
14767 sunos4*)
14768 version_type=sunos
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes
14773 if test "$with_gnu_ld" = yes; then
14774 need_lib_prefix=no
14775 fi
14776 need_version=yes
14777 ;;
14778
14779 sysv4 | sysv4.3*)
14780 version_type=linux # correct to gnu/linux during the next big refactor
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 case $host_vendor in
14785 sni)
14786 shlibpath_overrides_runpath=no
14787 need_lib_prefix=no
14788 runpath_var=LD_RUN_PATH
14789 ;;
14790 siemens)
14791 need_lib_prefix=no
14792 ;;
14793 motorola)
14794 need_lib_prefix=no
14795 need_version=no
14796 shlibpath_overrides_runpath=no
14797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14798 ;;
14799 esac
14800 ;;
14801
14802 sysv4*MP*)
14803 if test -d /usr/nec ;then
14804 version_type=linux # correct to gnu/linux during the next big refactor
14805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14806 soname_spec='$libname${shared_ext}.$major'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 fi
14809 ;;
14810
14811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14812 version_type=freebsd-elf
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14816 soname_spec='${libname}${release}${shared_ext}$major'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 shlibpath_overrides_runpath=yes
14819 hardcode_into_libs=yes
14820 if test "$with_gnu_ld" = yes; then
14821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14822 else
14823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14824 case $host_os in
14825 sco3.2v5*)
14826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14827 ;;
14828 esac
14829 fi
14830 sys_lib_dlsearch_path_spec='/usr/lib'
14831 ;;
14832
14833 tpf*)
14834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14835 version_type=linux # correct to gnu/linux during the next big refactor
14836 need_lib_prefix=no
14837 need_version=no
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 shlibpath_overrides_runpath=no
14841 hardcode_into_libs=yes
14842 ;;
14843
14844 uts4*)
14845 version_type=linux # correct to gnu/linux during the next big refactor
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 ;;
14850
14851 *)
14852 dynamic_linker=no
14853 ;;
14854 esac
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14856 $as_echo "$dynamic_linker" >&6; }
14857 test "$dynamic_linker" = no && can_build_shared=no
14858
14859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14860 if test "$GCC" = yes; then
14861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14862 fi
14863
14864 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14866 fi
14867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14869 fi
14870
14871
14872
14873
14874
14875
14876
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14909 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14910 hardcode_action_CXX=
14911 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14912 test -n "$runpath_var_CXX" ||
14913 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14914
14915 # We can hardcode non-existent directories.
14916 if test "$hardcode_direct_CXX" != no &&
14917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14918 # have to relink, otherwise we might link with an installed library
14919 # when we should be linking with a yet-to-be-installed one
14920 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14921 test "$hardcode_minus_L_CXX" != no; then
14922 # Linking always hardcodes the temporary library directory.
14923 hardcode_action_CXX=relink
14924 else
14925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14926 hardcode_action_CXX=immediate
14927 fi
14928 else
14929 # We cannot hardcode anything, or else we can only hardcode existing
14930 # directories.
14931 hardcode_action_CXX=unsupported
14932 fi
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14934 $as_echo "$hardcode_action_CXX" >&6; }
14935
14936 if test "$hardcode_action_CXX" = relink ||
14937 test "$inherit_rpath_CXX" = yes; then
14938 # Fast installation is not supported
14939 enable_fast_install=no
14940 elif test "$shlibpath_overrides_runpath" = yes ||
14941 test "$enable_shared" = no; then
14942 # Fast installation is not necessary
14943 enable_fast_install=needless
14944 fi
14945
14946
14947
14948
14949
14950
14951
14952 fi # test -n "$compiler"
14953
14954 CC=$lt_save_CC
14955 CFLAGS=$lt_save_CFLAGS
14956 LDCXX=$LD
14957 LD=$lt_save_LD
14958 GCC=$lt_save_GCC
14959 with_gnu_ld=$lt_save_with_gnu_ld
14960 lt_cv_path_LDCXX=$lt_cv_path_LD
14961 lt_cv_path_LD=$lt_save_path_LD
14962 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14963 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14964 fi # test "$_lt_caught_CXX_error" != yes
14965
14966 ac_ext=c
14967 ac_cpp='$CPP $CPPFLAGS'
14968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972
14973 ac_ext=mm
14974 ac_cpp='$OBJCXXCPP $CPPFLAGS'
14975 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14976 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14977 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
14978 if test -n "$ac_tool_prefix"; then
14979 for ac_prog in g++ objc++ objcxx c++ CXX
14980 do
14981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14984 $as_echo_n "checking for $ac_word... " >&6; }
14985 if ${ac_cv_prog_OBJCXX+:} false; then :
14986 $as_echo_n "(cached) " >&6
14987 else
14988 if test -n "$OBJCXX"; then
14989 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
14990 else
14991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14992 for as_dir in $PATH
14993 do
14994 IFS=$as_save_IFS
14995 test -z "$as_dir" && as_dir=.
14996 for ac_exec_ext in '' $ac_executable_extensions; do
14997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14998 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
14999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15000 break 2
15001 fi
15002 done
15003 done
15004 IFS=$as_save_IFS
15005
15006 fi
15007 fi
15008 OBJCXX=$ac_cv_prog_OBJCXX
15009 if test -n "$OBJCXX"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
15011 $as_echo "$OBJCXX" >&6; }
15012 else
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15015 fi
15016
15017
15018 test -n "$OBJCXX" && break
15019 done
15020 fi
15021 if test -z "$OBJCXX"; then
15022 ac_ct_OBJCXX=$OBJCXX
15023 for ac_prog in g++ objc++ objcxx c++ CXX
15024 do
15025 # Extract the first word of "$ac_prog", so it can be a program name with args.
15026 set dummy $ac_prog; ac_word=$2
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15028 $as_echo_n "checking for $ac_word... " >&6; }
15029 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 if test -n "$ac_ct_OBJCXX"; then
15033 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
15034 else
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15037 do
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
15043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 break 2
15045 fi
15046 done
15047 done
15048 IFS=$as_save_IFS
15049
15050 fi
15051 fi
15052 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
15053 if test -n "$ac_ct_OBJCXX"; then
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
15055 $as_echo "$ac_ct_OBJCXX" >&6; }
15056 else
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15058 $as_echo "no" >&6; }
15059 fi
15060
15061
15062 test -n "$ac_ct_OBJCXX" && break
15063 done
15064
15065 if test "x$ac_ct_OBJCXX" = x; then
15066 OBJCXX="g++"
15067 else
15068 case $cross_compiling:$ac_tool_warned in
15069 yes:)
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15072 ac_tool_warned=yes ;;
15073 esac
15074 OBJCXX=$ac_ct_OBJCXX
15075 fi
15076 fi
15077
15078 # Provide some information about the compiler.
15079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
15080 set X $ac_compile
15081 ac_compiler=$2
15082 for ac_option in --version -v -V -qversion; do
15083 { { ac_try="$ac_compiler $ac_option >&5"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087 esac
15088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15089 $as_echo "$ac_try_echo"; } >&5
15090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15091 ac_status=$?
15092 if test -s conftest.err; then
15093 sed '10a\
15094 ... rest of stderr output deleted ...
15095 10q' conftest.err >conftest.er1
15096 cat conftest.er1 >&5
15097 fi
15098 rm -f conftest.er1 conftest.err
15099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }
15101 done
15102
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
15104 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
15105 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110
15111 int
15112 main ()
15113 {
15114 #ifndef __GNUC__
15115 choke me
15116 #endif
15117
15118 ;
15119 return 0;
15120 }
15121 _ACEOF
15122 if ac_fn_objcxx_try_compile "$LINENO"; then :
15123 ac_compiler_gnu=yes
15124 else
15125 ac_compiler_gnu=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
15132 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
15133 if test $ac_compiler_gnu = yes; then
15134 GOBJCXX=yes
15135 else
15136 GOBJCXX=
15137 fi
15138 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
15139 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
15141 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
15142 if ${ac_cv_prog_objcxx_g+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
15146 ac_objcxx_werror_flag=yes
15147 ac_cv_prog_objcxx_g=no
15148 OBJCXXFLAGS="-g"
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151
15152 int
15153 main ()
15154 {
15155
15156 ;
15157 return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_objcxx_try_compile "$LINENO"; then :
15161 ac_cv_prog_objcxx_g=yes
15162 else
15163 OBJCXXFLAGS=""
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166
15167 int
15168 main ()
15169 {
15170
15171 ;
15172 return 0;
15173 }
15174 _ACEOF
15175 if ac_fn_objcxx_try_compile "$LINENO"; then :
15176
15177 else
15178 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
15179 OBJCXXFLAGS="-g"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182
15183 int
15184 main ()
15185 {
15186
15187 ;
15188 return 0;
15189 }
15190 _ACEOF
15191 if ac_fn_objcxx_try_compile "$LINENO"; then :
15192 ac_cv_prog_objcxx_g=yes
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 fi
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
15200 fi
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
15202 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
15203 if test "$ac_test_OBJCXXFLAGS" = set; then
15204 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
15205 elif test $ac_cv_prog_objcxx_g = yes; then
15206 if test "$GOBJCXX" = yes; then
15207 OBJCXXFLAGS="-g -O2"
15208 else
15209 OBJCXXFLAGS="-g"
15210 fi
15211 else
15212 if test "$GOBJCXX" = yes; then
15213 OBJCXXFLAGS="-O2"
15214 else
15215 OBJCXXFLAGS=
15216 fi
15217 fi
15218 ac_ext=c
15219 ac_cpp='$CPP $CPPFLAGS'
15220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15223
15224 ac_ext=cpp
15225 ac_cpp='$CXXCPP $CPPFLAGS'
15226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15229
15230
15231 # Check whether --enable-universal-binary was given.
15232 if test "${enable_universal_binary+set}" = set; then :
15233 enableval=$enable_universal_binary;
15234 case $enableval in #(
15235 no) :
15236 ;; #(
15237 *) :
15238
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15240 $as_echo_n "checking for universal binary support... " >&6; }
15241 case $host_vendor in #(
15242 apple) :
15243
15244 case $host_cpu in #(
15245 armv6|i386|x86_64) :
15246
15247 for cy_arch in armv6 i386 x86_64; do
15248 cy_save_CXXFLAGS=$CXXFLAGS
15249
15250 for element in "-arch $cy_arch"; do
15251 haveit=
15252 for x in $CXXFLAGS; do
15253
15254 acl_save_prefix="$prefix"
15255 prefix="$acl_final_prefix"
15256 acl_save_exec_prefix="$exec_prefix"
15257 exec_prefix="$acl_final_exec_prefix"
15258 eval x=\"$x\"
15259 exec_prefix="$acl_save_exec_prefix"
15260 prefix="$acl_save_prefix"
15261
15262 if test "X$x" = "X$element"; then
15263 haveit=yes
15264 break
15265 fi
15266 done
15267 if test -z "$haveit"; then
15268 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15269 fi
15270 done
15271
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274
15275 int
15276 main ()
15277 {
15278
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_cxx_try_link "$LINENO"; then :
15284
15285
15286 for element in $cy_arch; do
15287 haveit=
15288 for x in $cy_arches; do
15289
15290 acl_save_prefix="$prefix"
15291 prefix="$acl_final_prefix"
15292 acl_save_exec_prefix="$exec_prefix"
15293 exec_prefix="$acl_final_exec_prefix"
15294 eval x=\"$x\"
15295 exec_prefix="$acl_save_exec_prefix"
15296 prefix="$acl_save_prefix"
15297
15298 if test "X$x" = "X$element"; then
15299 haveit=yes
15300 break
15301 fi
15302 done
15303 if test -z "$haveit"; then
15304 cy_arches="${cy_arches}${cy_arches:+ }$element"
15305 fi
15306 done
15307
15308
15309 for element in "-arch $cy_arch"; do
15310 haveit=
15311 for x in $CFLAGS; do
15312
15313 acl_save_prefix="$prefix"
15314 prefix="$acl_final_prefix"
15315 acl_save_exec_prefix="$exec_prefix"
15316 exec_prefix="$acl_final_exec_prefix"
15317 eval x=\"$x\"
15318 exec_prefix="$acl_save_exec_prefix"
15319 prefix="$acl_save_prefix"
15320
15321 if test "X$x" = "X$element"; then
15322 haveit=yes
15323 break
15324 fi
15325 done
15326 if test -z "$haveit"; then
15327 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15328 fi
15329 done
15330
15331
15332 for element in "-arch $cy_arch"; do
15333 haveit=
15334 for x in $LDFLAGS; do
15335
15336 acl_save_prefix="$prefix"
15337 prefix="$acl_final_prefix"
15338 acl_save_exec_prefix="$exec_prefix"
15339 exec_prefix="$acl_final_exec_prefix"
15340 eval x=\"$x\"
15341 exec_prefix="$acl_save_exec_prefix"
15342 prefix="$acl_save_prefix"
15343
15344 if test "X$x" = "X$element"; then
15345 haveit=yes
15346 break
15347 fi
15348 done
15349 if test -z "$haveit"; then
15350 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15351 fi
15352 done
15353
15354
15355 for element in "-arch $cy_arch"; do
15356 haveit=
15357 for x in $OBJCXXFLAGS; do
15358
15359 acl_save_prefix="$prefix"
15360 prefix="$acl_final_prefix"
15361 acl_save_exec_prefix="$exec_prefix"
15362 exec_prefix="$acl_final_exec_prefix"
15363 eval x=\"$x\"
15364 exec_prefix="$acl_save_exec_prefix"
15365 prefix="$acl_save_prefix"
15366
15367 if test "X$x" = "X$element"; then
15368 haveit=yes
15369 break
15370 fi
15371 done
15372 if test -z "$haveit"; then
15373 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15374 fi
15375 done
15376
15377
15378 else
15379
15380 CXXFLAGS=$cy_save_CXXFLAGS
15381
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 done
15386 ;; #(
15387 *) :
15388 ;;
15389 esac
15390 ;; #(
15391 *) :
15392 ;;
15393 esac
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15395 $as_echo "${cy_arches-no}" >&6; }
15396 ;;
15397 esac
15398
15399 else
15400
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for universal binary support" >&5
15402 $as_echo_n "checking for universal binary support... " >&6; }
15403 case $host_vendor in #(
15404 apple) :
15405
15406 case $host_cpu in #(
15407 armv6|i386|x86_64) :
15408
15409 for cy_arch in armv6 i386 x86_64; do
15410 cy_save_CXXFLAGS=$CXXFLAGS
15411
15412 for element in "-arch $cy_arch"; do
15413 haveit=
15414 for x in $CXXFLAGS; do
15415
15416 acl_save_prefix="$prefix"
15417 prefix="$acl_final_prefix"
15418 acl_save_exec_prefix="$exec_prefix"
15419 exec_prefix="$acl_final_exec_prefix"
15420 eval x=\"$x\"
15421 exec_prefix="$acl_save_exec_prefix"
15422 prefix="$acl_save_prefix"
15423
15424 if test "X$x" = "X$element"; then
15425 haveit=yes
15426 break
15427 fi
15428 done
15429 if test -z "$haveit"; then
15430 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15431 fi
15432 done
15433
15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436
15437 int
15438 main ()
15439 {
15440
15441 ;
15442 return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_cxx_try_link "$LINENO"; then :
15446
15447
15448 for element in $cy_arch; do
15449 haveit=
15450 for x in $cy_arches; do
15451
15452 acl_save_prefix="$prefix"
15453 prefix="$acl_final_prefix"
15454 acl_save_exec_prefix="$exec_prefix"
15455 exec_prefix="$acl_final_exec_prefix"
15456 eval x=\"$x\"
15457 exec_prefix="$acl_save_exec_prefix"
15458 prefix="$acl_save_prefix"
15459
15460 if test "X$x" = "X$element"; then
15461 haveit=yes
15462 break
15463 fi
15464 done
15465 if test -z "$haveit"; then
15466 cy_arches="${cy_arches}${cy_arches:+ }$element"
15467 fi
15468 done
15469
15470
15471 for element in "-arch $cy_arch"; do
15472 haveit=
15473 for x in $CFLAGS; do
15474
15475 acl_save_prefix="$prefix"
15476 prefix="$acl_final_prefix"
15477 acl_save_exec_prefix="$exec_prefix"
15478 exec_prefix="$acl_final_exec_prefix"
15479 eval x=\"$x\"
15480 exec_prefix="$acl_save_exec_prefix"
15481 prefix="$acl_save_prefix"
15482
15483 if test "X$x" = "X$element"; then
15484 haveit=yes
15485 break
15486 fi
15487 done
15488 if test -z "$haveit"; then
15489 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15490 fi
15491 done
15492
15493
15494 for element in "-arch $cy_arch"; do
15495 haveit=
15496 for x in $LDFLAGS; do
15497
15498 acl_save_prefix="$prefix"
15499 prefix="$acl_final_prefix"
15500 acl_save_exec_prefix="$exec_prefix"
15501 exec_prefix="$acl_final_exec_prefix"
15502 eval x=\"$x\"
15503 exec_prefix="$acl_save_exec_prefix"
15504 prefix="$acl_save_prefix"
15505
15506 if test "X$x" = "X$element"; then
15507 haveit=yes
15508 break
15509 fi
15510 done
15511 if test -z "$haveit"; then
15512 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }$element"
15513 fi
15514 done
15515
15516
15517 for element in "-arch $cy_arch"; do
15518 haveit=
15519 for x in $OBJCXXFLAGS; do
15520
15521 acl_save_prefix="$prefix"
15522 prefix="$acl_final_prefix"
15523 acl_save_exec_prefix="$exec_prefix"
15524 exec_prefix="$acl_final_exec_prefix"
15525 eval x=\"$x\"
15526 exec_prefix="$acl_save_exec_prefix"
15527 prefix="$acl_save_prefix"
15528
15529 if test "X$x" = "X$element"; then
15530 haveit=yes
15531 break
15532 fi
15533 done
15534 if test -z "$haveit"; then
15535 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
15536 fi
15537 done
15538
15539
15540 else
15541
15542 CXXFLAGS=$cy_save_CXXFLAGS
15543
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 done
15548 ;; #(
15549 *) :
15550 ;;
15551 esac
15552 ;; #(
15553 *) :
15554 ;;
15555 esac
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${cy_arches-no}" >&5
15557 $as_echo "${cy_arches-no}" >&6; }
15558
15559 fi
15560
15561
15562 # Check whether --with-frameworks was given.
15563 if test "${with_frameworks+set}" = set; then :
15564 withval=$with_frameworks;
15565 for cy_framework in $withval; do
15566
15567 for element in -F$cy_framework; do
15568 haveit=
15569 for x in $CFLAGS; do
15570
15571 acl_save_prefix="$prefix"
15572 prefix="$acl_final_prefix"
15573 acl_save_exec_prefix="$exec_prefix"
15574 exec_prefix="$acl_final_exec_prefix"
15575 eval x=\"$x\"
15576 exec_prefix="$acl_save_exec_prefix"
15577 prefix="$acl_save_prefix"
15578
15579 if test "X$x" = "X$element"; then
15580 haveit=yes
15581 break
15582 fi
15583 done
15584 if test -z "$haveit"; then
15585 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
15586 fi
15587 done
15588
15589
15590 for element in -F$cy_framework; do
15591 haveit=
15592 for x in $CXXFLAGS; do
15593
15594 acl_save_prefix="$prefix"
15595 prefix="$acl_final_prefix"
15596 acl_save_exec_prefix="$exec_prefix"
15597 exec_prefix="$acl_final_exec_prefix"
15598 eval x=\"$x\"
15599 exec_prefix="$acl_save_exec_prefix"
15600 prefix="$acl_save_prefix"
15601
15602 if test "X$x" = "X$element"; then
15603 haveit=yes
15604 break
15605 fi
15606 done
15607 if test -z "$haveit"; then
15608 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
15609 fi
15610 done
15611
15612
15613 for element in -F$cy_framework; do
15614 haveit=
15615 for x in $OBJCCXXFLAGS; do
15616
15617 acl_save_prefix="$prefix"
15618 prefix="$acl_final_prefix"
15619 acl_save_exec_prefix="$exec_prefix"
15620 exec_prefix="$acl_final_exec_prefix"
15621 eval x=\"$x\"
15622 exec_prefix="$acl_save_exec_prefix"
15623 prefix="$acl_save_prefix"
15624
15625 if test "X$x" = "X$element"; then
15626 haveit=yes
15627 break
15628 fi
15629 done
15630 if test -z "$haveit"; then
15631 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
15632 fi
15633 done
15634
15635 done
15636
15637 fi
15638
15639
15640 apr_found="no"
15641
15642 if test "$target_os" = "os2-emx"; then
15643 # Scripts don't pass test -x on OS/2
15644 TEST_X="test -f"
15645 else
15646 TEST_X="test -x"
15647 fi
15648
15649 acceptable_majors="1"
15650
15651 apr_temp_acceptable_apr_config=""
15652 for apr_temp_major in $acceptable_majors
15653 do
15654 case $apr_temp_major in
15655 0)
15656 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
15657 ;;
15658 *)
15659 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
15660 ;;
15661 esac
15662 done
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
15665 $as_echo_n "checking for APR... " >&6; }
15666
15667 # Check whether --with-apr was given.
15668 if test "${with_apr+set}" = set; then :
15669 withval=$with_apr;
15670 if test "$withval" = "no" || test "$withval" = "yes"; then
15671 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
15672 fi
15673
15674 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15675 do
15676 for lookdir in "$withval/bin" "$withval"
15677 do
15678 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
15679 apr_config="$lookdir/$apr_temp_apr_config_file"
15680
15681 apr_found="yes"
15682 break 2
15683 fi
15684 done
15685 done
15686
15687 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
15688 apr_config="$withval"
15689 apr_found="yes"
15690 fi
15691
15692 if test "$apr_found" != "yes"; then
15693 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
15694 fi
15695
15696 else
15697
15698 if test -n "1" && test "1" = "1"; then
15699 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
15700 do
15701 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
15702 apr_config="$apr_temp_apr_config_file"
15703
15704 apr_found="yes"
15705 break
15706 else
15707 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
15708 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
15709 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
15710
15711 apr_found="yes"
15712 break 2
15713 fi
15714 done
15715 fi
15716 done
15717 fi
15718 if test "$apr_found" = "no" && test -d ""; then
15719 apr_temp_abs_srcdir="`cd && pwd`"
15720 apr_found="reconfig"
15721 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
15722 case $apr_bundled_major in
15723 "")
15724 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
15725 ;;
15726 0)
15727 apr_temp_apr_config_file="apr-config"
15728 ;;
15729 *)
15730 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
15731 ;;
15732 esac
15733 if test -n ""; then
15734 apr_config="/$apr_temp_apr_config_file"
15735 else
15736 apr_config="/$apr_temp_apr_config_file"
15737 fi
15738 fi
15739
15740 fi
15741
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
15744 $as_echo "$apr_found" >&6; }
15745
15746 case $apr_found in #(
15747 yes) :
15748
15749
15750 for element in `$apr_config --includes`; do
15751 haveit=
15752 for x in $CPPFLAGS; do
15753
15754 acl_save_prefix="$prefix"
15755 prefix="$acl_final_prefix"
15756 acl_save_exec_prefix="$exec_prefix"
15757 exec_prefix="$acl_final_exec_prefix"
15758 eval x=\"$x\"
15759 exec_prefix="$acl_save_exec_prefix"
15760 prefix="$acl_save_prefix"
15761
15762 if test "X$x" = "X$element"; then
15763 haveit=yes
15764 break
15765 fi
15766 done
15767 if test -z "$haveit"; then
15768 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15769 fi
15770 done
15771
15772 LTLIBAPR=`$apr_config --link-libtool`
15773
15774 ;; #(
15775 *) :
15776 as_fn_error $? "You need apr" "$LINENO" 5 ;;
15777 esac
15778
15779
15780 # Check whether --enable-javascript was given.
15781 if test "${enable_javascript+set}" = set; then :
15782 enableval=$enable_javascript;
15783 case $enableval in #(
15784 yes) :
15785
15786
15787
15788 pkg_failed=no
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15790 $as_echo_n "checking for WEBKIT... " >&6; }
15791
15792 if test -n "$WEBKIT_CFLAGS"; then
15793 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15794 elif test -n "$PKG_CONFIG"; then
15795 if test -n "$PKG_CONFIG" && \
15796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15797 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; }; then
15801 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
15802 else
15803 pkg_failed=yes
15804 fi
15805 else
15806 pkg_failed=untried
15807 fi
15808 if test -n "$WEBKIT_LIBS"; then
15809 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15810 elif test -n "$PKG_CONFIG"; then
15811 if test -n "$PKG_CONFIG" && \
15812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
15813 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
15814 ac_status=$?
15815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15816 test $ac_status = 0; }; then
15817 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
15818 else
15819 pkg_failed=yes
15820 fi
15821 else
15822 pkg_failed=untried
15823 fi
15824
15825
15826
15827 if test $pkg_failed = yes; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15830
15831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15832 _pkg_short_errors_supported=yes
15833 else
15834 _pkg_short_errors_supported=no
15835 fi
15836 if test $_pkg_short_errors_supported = yes; then
15837 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
15838 else
15839 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
15840 fi
15841 # Put the nasty error message in config.log where it belongs
15842 echo "$WEBKIT_PKG_ERRORS" >&5
15843
15844
15845
15846 pkg_failed=no
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
15848 $as_echo_n "checking for WEBKIT... " >&6; }
15849
15850 if test -n "$WEBKIT_CFLAGS"; then
15851 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
15852 elif test -n "$PKG_CONFIG"; then
15853 if test -n "$PKG_CONFIG" && \
15854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15855 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15856 ac_status=$?
15857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15858 test $ac_status = 0; }; then
15859 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
15860 else
15861 pkg_failed=yes
15862 fi
15863 else
15864 pkg_failed=untried
15865 fi
15866 if test -n "$WEBKIT_LIBS"; then
15867 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
15868 elif test -n "$PKG_CONFIG"; then
15869 if test -n "$PKG_CONFIG" && \
15870 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
15871 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
15872 ac_status=$?
15873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874 test $ac_status = 0; }; then
15875 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
15876 else
15877 pkg_failed=yes
15878 fi
15879 else
15880 pkg_failed=untried
15881 fi
15882
15883
15884
15885 if test $pkg_failed = yes; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15887 $as_echo "no" >&6; }
15888
15889 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15890 _pkg_short_errors_supported=yes
15891 else
15892 _pkg_short_errors_supported=no
15893 fi
15894 if test $_pkg_short_errors_supported = yes; then
15895 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
15896 else
15897 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
15898 fi
15899 # Put the nasty error message in config.log where it belongs
15900 echo "$WEBKIT_PKG_ERRORS" >&5
15901
15902
15903
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15905 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15906 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909
15910 ac_check_framework_save_LIBS=$LIBS
15911 LIBS="-framework JavaScriptCore $LIBS"
15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15913 /* end confdefs.h. */
15914
15915 #include <JavaScriptCore/JSBase.h>
15916
15917 int
15918 main ()
15919 {
15920 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15921 ;
15922 return 0;
15923 }
15924 _ACEOF
15925 if ac_fn_cxx_try_link "$LINENO"; then :
15926
15927 ac_cv_framework_JavaScriptCore=yes
15928
15929 else
15930 ac_cv_framework_JavaScriptCore=no
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 LIBS=$ac_check_framework_save_LIBS
15935
15936 fi
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
15938 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
15939 if test $ac_cv_framework_JavaScriptCore = yes; then :
15940
15941
15942 for element in "-framework JavaScriptCore $LIBS"; do
15943 haveit=
15944 for x in $LIBS; do
15945
15946 acl_save_prefix="$prefix"
15947 prefix="$acl_final_prefix"
15948 acl_save_exec_prefix="$exec_prefix"
15949 exec_prefix="$acl_final_exec_prefix"
15950 eval x=\"$x\"
15951 exec_prefix="$acl_save_exec_prefix"
15952 prefix="$acl_save_prefix"
15953
15954 if test "X$x" = "X$element"; then
15955 haveit=yes
15956 break
15957 fi
15958 done
15959 if test -z "$haveit"; then
15960 LIBS="${LIBS}${LIBS:+ }$element"
15961 fi
15962 done
15963
15964 CY_EXECUTE=1
15965
15966 fi
15967
15968 elif test $pkg_failed = untried; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15970 $as_echo "no" >&6; }
15971
15972
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
15974 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
15975 if ${ac_cv_framework_JavaScriptCore+:} false; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978
15979 ac_check_framework_save_LIBS=$LIBS
15980 LIBS="-framework JavaScriptCore $LIBS"
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983
15984 #include <JavaScriptCore/JSBase.h>
15985
15986 int
15987 main ()
15988 {
15989 JSEvaluateScript(0, 0, 0, 0, 0, 0);
15990 ;
15991 return 0;
15992 }
15993 _ACEOF
15994 if ac_fn_cxx_try_link "$LINENO"; then :
15995
15996 ac_cv_framework_JavaScriptCore=yes
15997
15998 else
15999 ac_cv_framework_JavaScriptCore=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_framework_save_LIBS
16004
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16007 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16008 if test $ac_cv_framework_JavaScriptCore = yes; then :
16009
16010
16011 for element in "-framework JavaScriptCore $LIBS"; do
16012 haveit=
16013 for x in $LIBS; do
16014
16015 acl_save_prefix="$prefix"
16016 prefix="$acl_final_prefix"
16017 acl_save_exec_prefix="$exec_prefix"
16018 exec_prefix="$acl_final_exec_prefix"
16019 eval x=\"$x\"
16020 exec_prefix="$acl_save_exec_prefix"
16021 prefix="$acl_save_prefix"
16022
16023 if test "X$x" = "X$element"; then
16024 haveit=yes
16025 break
16026 fi
16027 done
16028 if test -z "$haveit"; then
16029 LIBS="${LIBS}${LIBS:+ }$element"
16030 fi
16031 done
16032
16033 CY_EXECUTE=1
16034
16035 fi
16036
16037 else
16038 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16039 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16042
16043 CY_EXECUTE=1
16044
16045 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16046 haveit=
16047 for x in $CXXFLAGS; do
16048
16049 acl_save_prefix="$prefix"
16050 prefix="$acl_final_prefix"
16051 acl_save_exec_prefix="$exec_prefix"
16052 exec_prefix="$acl_final_exec_prefix"
16053 eval x=\"$x\"
16054 exec_prefix="$acl_save_exec_prefix"
16055 prefix="$acl_save_prefix"
16056
16057 if test "X$x" = "X$element"; then
16058 haveit=yes
16059 break
16060 fi
16061 done
16062 if test -z "$haveit"; then
16063 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16064 fi
16065 done
16066
16067
16068 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16069 haveit=
16070 for x in $LIBS; do
16071
16072 acl_save_prefix="$prefix"
16073 prefix="$acl_final_prefix"
16074 acl_save_exec_prefix="$exec_prefix"
16075 exec_prefix="$acl_final_exec_prefix"
16076 eval x=\"$x\"
16077 exec_prefix="$acl_save_exec_prefix"
16078 prefix="$acl_save_prefix"
16079
16080 if test "X$x" = "X$element"; then
16081 haveit=yes
16082 break
16083 fi
16084 done
16085 if test -z "$haveit"; then
16086 LIBS="${LIBS}${LIBS:+ }$element"
16087 fi
16088 done
16089
16090
16091 fi
16092
16093 elif test $pkg_failed = untried; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16096
16097
16098 pkg_failed=no
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16100 $as_echo_n "checking for WEBKIT... " >&6; }
16101
16102 if test -n "$WEBKIT_CFLAGS"; then
16103 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16104 elif test -n "$PKG_CONFIG"; then
16105 if test -n "$PKG_CONFIG" && \
16106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16107 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16108 ac_status=$?
16109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16110 test $ac_status = 0; }; then
16111 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16112 else
16113 pkg_failed=yes
16114 fi
16115 else
16116 pkg_failed=untried
16117 fi
16118 if test -n "$WEBKIT_LIBS"; then
16119 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16120 elif test -n "$PKG_CONFIG"; then
16121 if test -n "$PKG_CONFIG" && \
16122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16123 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16124 ac_status=$?
16125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16126 test $ac_status = 0; }; then
16127 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16128 else
16129 pkg_failed=yes
16130 fi
16131 else
16132 pkg_failed=untried
16133 fi
16134
16135
16136
16137 if test $pkg_failed = yes; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139 $as_echo "no" >&6; }
16140
16141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16142 _pkg_short_errors_supported=yes
16143 else
16144 _pkg_short_errors_supported=no
16145 fi
16146 if test $_pkg_short_errors_supported = yes; then
16147 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16148 else
16149 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16150 fi
16151 # Put the nasty error message in config.log where it belongs
16152 echo "$WEBKIT_PKG_ERRORS" >&5
16153
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16157 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16158 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161
16162 ac_check_framework_save_LIBS=$LIBS
16163 LIBS="-framework JavaScriptCore $LIBS"
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166
16167 #include <JavaScriptCore/JSBase.h>
16168
16169 int
16170 main ()
16171 {
16172 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16173 ;
16174 return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_cxx_try_link "$LINENO"; then :
16178
16179 ac_cv_framework_JavaScriptCore=yes
16180
16181 else
16182 ac_cv_framework_JavaScriptCore=no
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 LIBS=$ac_check_framework_save_LIBS
16187
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16190 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16191 if test $ac_cv_framework_JavaScriptCore = yes; then :
16192
16193
16194 for element in "-framework JavaScriptCore $LIBS"; do
16195 haveit=
16196 for x in $LIBS; do
16197
16198 acl_save_prefix="$prefix"
16199 prefix="$acl_final_prefix"
16200 acl_save_exec_prefix="$exec_prefix"
16201 exec_prefix="$acl_final_exec_prefix"
16202 eval x=\"$x\"
16203 exec_prefix="$acl_save_exec_prefix"
16204 prefix="$acl_save_prefix"
16205
16206 if test "X$x" = "X$element"; then
16207 haveit=yes
16208 break
16209 fi
16210 done
16211 if test -z "$haveit"; then
16212 LIBS="${LIBS}${LIBS:+ }$element"
16213 fi
16214 done
16215
16216 CY_EXECUTE=1
16217
16218 fi
16219
16220 elif test $pkg_failed = untried; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16223
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16226 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16227 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229 else
16230
16231 ac_check_framework_save_LIBS=$LIBS
16232 LIBS="-framework JavaScriptCore $LIBS"
16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16235
16236 #include <JavaScriptCore/JSBase.h>
16237
16238 int
16239 main ()
16240 {
16241 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16242 ;
16243 return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_cxx_try_link "$LINENO"; then :
16247
16248 ac_cv_framework_JavaScriptCore=yes
16249
16250 else
16251 ac_cv_framework_JavaScriptCore=no
16252 fi
16253 rm -f core conftest.err conftest.$ac_objext \
16254 conftest$ac_exeext conftest.$ac_ext
16255 LIBS=$ac_check_framework_save_LIBS
16256
16257 fi
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16259 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16260 if test $ac_cv_framework_JavaScriptCore = yes; then :
16261
16262
16263 for element in "-framework JavaScriptCore $LIBS"; do
16264 haveit=
16265 for x in $LIBS; do
16266
16267 acl_save_prefix="$prefix"
16268 prefix="$acl_final_prefix"
16269 acl_save_exec_prefix="$exec_prefix"
16270 exec_prefix="$acl_final_exec_prefix"
16271 eval x=\"$x\"
16272 exec_prefix="$acl_save_exec_prefix"
16273 prefix="$acl_save_prefix"
16274
16275 if test "X$x" = "X$element"; then
16276 haveit=yes
16277 break
16278 fi
16279 done
16280 if test -z "$haveit"; then
16281 LIBS="${LIBS}${LIBS:+ }$element"
16282 fi
16283 done
16284
16285 CY_EXECUTE=1
16286
16287 fi
16288
16289 else
16290 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16291 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16293 $as_echo "yes" >&6; }
16294
16295 CY_EXECUTE=1
16296
16297 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16298 haveit=
16299 for x in $CXXFLAGS; do
16300
16301 acl_save_prefix="$prefix"
16302 prefix="$acl_final_prefix"
16303 acl_save_exec_prefix="$exec_prefix"
16304 exec_prefix="$acl_final_exec_prefix"
16305 eval x=\"$x\"
16306 exec_prefix="$acl_save_exec_prefix"
16307 prefix="$acl_save_prefix"
16308
16309 if test "X$x" = "X$element"; then
16310 haveit=yes
16311 break
16312 fi
16313 done
16314 if test -z "$haveit"; then
16315 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16316 fi
16317 done
16318
16319
16320 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16321 haveit=
16322 for x in $LIBS; do
16323
16324 acl_save_prefix="$prefix"
16325 prefix="$acl_final_prefix"
16326 acl_save_exec_prefix="$exec_prefix"
16327 exec_prefix="$acl_final_exec_prefix"
16328 eval x=\"$x\"
16329 exec_prefix="$acl_save_exec_prefix"
16330 prefix="$acl_save_prefix"
16331
16332 if test "X$x" = "X$element"; then
16333 haveit=yes
16334 break
16335 fi
16336 done
16337 if test -z "$haveit"; then
16338 LIBS="${LIBS}${LIBS:+ }$element"
16339 fi
16340 done
16341
16342
16343 fi
16344
16345 else
16346 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16347 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349 $as_echo "yes" >&6; }
16350
16351 CY_EXECUTE=1
16352
16353 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16354 haveit=
16355 for x in $CXXFLAGS; do
16356
16357 acl_save_prefix="$prefix"
16358 prefix="$acl_final_prefix"
16359 acl_save_exec_prefix="$exec_prefix"
16360 exec_prefix="$acl_final_exec_prefix"
16361 eval x=\"$x\"
16362 exec_prefix="$acl_save_exec_prefix"
16363 prefix="$acl_save_prefix"
16364
16365 if test "X$x" = "X$element"; then
16366 haveit=yes
16367 break
16368 fi
16369 done
16370 if test -z "$haveit"; then
16371 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16372 fi
16373 done
16374
16375
16376 for element in `$PKG_CONFIG --libs webkit-1.0`; do
16377 haveit=
16378 for x in $LIBS; do
16379
16380 acl_save_prefix="$prefix"
16381 prefix="$acl_final_prefix"
16382 acl_save_exec_prefix="$exec_prefix"
16383 exec_prefix="$acl_final_exec_prefix"
16384 eval x=\"$x\"
16385 exec_prefix="$acl_save_exec_prefix"
16386 prefix="$acl_save_prefix"
16387
16388 if test "X$x" = "X$element"; then
16389 haveit=yes
16390 break
16391 fi
16392 done
16393 if test -z "$haveit"; then
16394 LIBS="${LIBS}${LIBS:+ }$element"
16395 fi
16396 done
16397
16398
16399 fi
16400
16401 ;; #(
16402 no) :
16403
16404 CY_EXECUTE=0
16405
16406 ;; #(
16407 JavaScriptCore) :
16408
16409
16410
16411 pkg_failed=no
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16413 $as_echo_n "checking for WEBKIT... " >&6; }
16414
16415 if test -n "$WEBKIT_CFLAGS"; then
16416 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16417 elif test -n "$PKG_CONFIG"; then
16418 if test -n "$PKG_CONFIG" && \
16419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16420 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16421 ac_status=$?
16422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16423 test $ac_status = 0; }; then
16424 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
16425 else
16426 pkg_failed=yes
16427 fi
16428 else
16429 pkg_failed=untried
16430 fi
16431 if test -n "$WEBKIT_LIBS"; then
16432 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16433 elif test -n "$PKG_CONFIG"; then
16434 if test -n "$PKG_CONFIG" && \
16435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
16436 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
16437 ac_status=$?
16438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439 test $ac_status = 0; }; then
16440 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
16441 else
16442 pkg_failed=yes
16443 fi
16444 else
16445 pkg_failed=untried
16446 fi
16447
16448
16449
16450 if test $pkg_failed = yes; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453
16454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16455 _pkg_short_errors_supported=yes
16456 else
16457 _pkg_short_errors_supported=no
16458 fi
16459 if test $_pkg_short_errors_supported = yes; then
16460 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
16461 else
16462 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
16463 fi
16464 # Put the nasty error message in config.log where it belongs
16465 echo "$WEBKIT_PKG_ERRORS" >&5
16466
16467
16468
16469 pkg_failed=no
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16471 $as_echo_n "checking for WEBKIT... " >&6; }
16472
16473 if test -n "$WEBKIT_CFLAGS"; then
16474 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16475 elif test -n "$PKG_CONFIG"; then
16476 if test -n "$PKG_CONFIG" && \
16477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16478 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16479 ac_status=$?
16480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16481 test $ac_status = 0; }; then
16482 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16483 else
16484 pkg_failed=yes
16485 fi
16486 else
16487 pkg_failed=untried
16488 fi
16489 if test -n "$WEBKIT_LIBS"; then
16490 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16491 elif test -n "$PKG_CONFIG"; then
16492 if test -n "$PKG_CONFIG" && \
16493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16494 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16495 ac_status=$?
16496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16497 test $ac_status = 0; }; then
16498 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16499 else
16500 pkg_failed=yes
16501 fi
16502 else
16503 pkg_failed=untried
16504 fi
16505
16506
16507
16508 if test $pkg_failed = yes; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16510 $as_echo "no" >&6; }
16511
16512 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16513 _pkg_short_errors_supported=yes
16514 else
16515 _pkg_short_errors_supported=no
16516 fi
16517 if test $_pkg_short_errors_supported = yes; then
16518 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16519 else
16520 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16521 fi
16522 # Put the nasty error message in config.log where it belongs
16523 echo "$WEBKIT_PKG_ERRORS" >&5
16524
16525
16526
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16528 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16529 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532
16533 ac_check_framework_save_LIBS=$LIBS
16534 LIBS="-framework JavaScriptCore $LIBS"
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537
16538 #include <JavaScriptCore/JSBase.h>
16539
16540 int
16541 main ()
16542 {
16543 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16544 ;
16545 return 0;
16546 }
16547 _ACEOF
16548 if ac_fn_cxx_try_link "$LINENO"; then :
16549
16550 ac_cv_framework_JavaScriptCore=yes
16551
16552 else
16553 ac_cv_framework_JavaScriptCore=no
16554 fi
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16557 LIBS=$ac_check_framework_save_LIBS
16558
16559 fi
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16561 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16562 if test $ac_cv_framework_JavaScriptCore = yes; then :
16563
16564
16565 for element in "-framework JavaScriptCore $LIBS"; do
16566 haveit=
16567 for x in $LIBS; do
16568
16569 acl_save_prefix="$prefix"
16570 prefix="$acl_final_prefix"
16571 acl_save_exec_prefix="$exec_prefix"
16572 exec_prefix="$acl_final_exec_prefix"
16573 eval x=\"$x\"
16574 exec_prefix="$acl_save_exec_prefix"
16575 prefix="$acl_save_prefix"
16576
16577 if test "X$x" = "X$element"; then
16578 haveit=yes
16579 break
16580 fi
16581 done
16582 if test -z "$haveit"; then
16583 LIBS="${LIBS}${LIBS:+ }$element"
16584 fi
16585 done
16586
16587 CY_EXECUTE=1
16588
16589 fi
16590
16591 elif test $pkg_failed = untried; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 $as_echo "no" >&6; }
16594
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16597 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16598 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601
16602 ac_check_framework_save_LIBS=$LIBS
16603 LIBS="-framework JavaScriptCore $LIBS"
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16606
16607 #include <JavaScriptCore/JSBase.h>
16608
16609 int
16610 main ()
16611 {
16612 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16613 ;
16614 return 0;
16615 }
16616 _ACEOF
16617 if ac_fn_cxx_try_link "$LINENO"; then :
16618
16619 ac_cv_framework_JavaScriptCore=yes
16620
16621 else
16622 ac_cv_framework_JavaScriptCore=no
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext \
16625 conftest$ac_exeext conftest.$ac_ext
16626 LIBS=$ac_check_framework_save_LIBS
16627
16628 fi
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16630 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16631 if test $ac_cv_framework_JavaScriptCore = yes; then :
16632
16633
16634 for element in "-framework JavaScriptCore $LIBS"; do
16635 haveit=
16636 for x in $LIBS; do
16637
16638 acl_save_prefix="$prefix"
16639 prefix="$acl_final_prefix"
16640 acl_save_exec_prefix="$exec_prefix"
16641 exec_prefix="$acl_final_exec_prefix"
16642 eval x=\"$x\"
16643 exec_prefix="$acl_save_exec_prefix"
16644 prefix="$acl_save_prefix"
16645
16646 if test "X$x" = "X$element"; then
16647 haveit=yes
16648 break
16649 fi
16650 done
16651 if test -z "$haveit"; then
16652 LIBS="${LIBS}${LIBS:+ }$element"
16653 fi
16654 done
16655
16656 CY_EXECUTE=1
16657
16658 fi
16659
16660 else
16661 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16662 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16664 $as_echo "yes" >&6; }
16665
16666 CY_EXECUTE=1
16667
16668 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16669 haveit=
16670 for x in $CXXFLAGS; do
16671
16672 acl_save_prefix="$prefix"
16673 prefix="$acl_final_prefix"
16674 acl_save_exec_prefix="$exec_prefix"
16675 exec_prefix="$acl_final_exec_prefix"
16676 eval x=\"$x\"
16677 exec_prefix="$acl_save_exec_prefix"
16678 prefix="$acl_save_prefix"
16679
16680 if test "X$x" = "X$element"; then
16681 haveit=yes
16682 break
16683 fi
16684 done
16685 if test -z "$haveit"; then
16686 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16687 fi
16688 done
16689
16690
16691 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16692 haveit=
16693 for x in $LIBS; do
16694
16695 acl_save_prefix="$prefix"
16696 prefix="$acl_final_prefix"
16697 acl_save_exec_prefix="$exec_prefix"
16698 exec_prefix="$acl_final_exec_prefix"
16699 eval x=\"$x\"
16700 exec_prefix="$acl_save_exec_prefix"
16701 prefix="$acl_save_prefix"
16702
16703 if test "X$x" = "X$element"; then
16704 haveit=yes
16705 break
16706 fi
16707 done
16708 if test -z "$haveit"; then
16709 LIBS="${LIBS}${LIBS:+ }$element"
16710 fi
16711 done
16712
16713
16714 fi
16715
16716 elif test $pkg_failed = untried; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16719
16720
16721 pkg_failed=no
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
16723 $as_echo_n "checking for WEBKIT... " >&6; }
16724
16725 if test -n "$WEBKIT_CFLAGS"; then
16726 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
16727 elif test -n "$PKG_CONFIG"; then
16728 if test -n "$PKG_CONFIG" && \
16729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16730 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16731 ac_status=$?
16732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16733 test $ac_status = 0; }; then
16734 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
16735 else
16736 pkg_failed=yes
16737 fi
16738 else
16739 pkg_failed=untried
16740 fi
16741 if test -n "$WEBKIT_LIBS"; then
16742 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
16743 elif test -n "$PKG_CONFIG"; then
16744 if test -n "$PKG_CONFIG" && \
16745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
16746 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
16747 ac_status=$?
16748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749 test $ac_status = 0; }; then
16750 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
16751 else
16752 pkg_failed=yes
16753 fi
16754 else
16755 pkg_failed=untried
16756 fi
16757
16758
16759
16760 if test $pkg_failed = yes; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763
16764 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16765 _pkg_short_errors_supported=yes
16766 else
16767 _pkg_short_errors_supported=no
16768 fi
16769 if test $_pkg_short_errors_supported = yes; then
16770 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
16771 else
16772 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
16773 fi
16774 # Put the nasty error message in config.log where it belongs
16775 echo "$WEBKIT_PKG_ERRORS" >&5
16776
16777
16778
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16780 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16781 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784
16785 ac_check_framework_save_LIBS=$LIBS
16786 LIBS="-framework JavaScriptCore $LIBS"
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16789
16790 #include <JavaScriptCore/JSBase.h>
16791
16792 int
16793 main ()
16794 {
16795 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16796 ;
16797 return 0;
16798 }
16799 _ACEOF
16800 if ac_fn_cxx_try_link "$LINENO"; then :
16801
16802 ac_cv_framework_JavaScriptCore=yes
16803
16804 else
16805 ac_cv_framework_JavaScriptCore=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_framework_save_LIBS
16810
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16813 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16814 if test $ac_cv_framework_JavaScriptCore = yes; then :
16815
16816
16817 for element in "-framework JavaScriptCore $LIBS"; do
16818 haveit=
16819 for x in $LIBS; do
16820
16821 acl_save_prefix="$prefix"
16822 prefix="$acl_final_prefix"
16823 acl_save_exec_prefix="$exec_prefix"
16824 exec_prefix="$acl_final_exec_prefix"
16825 eval x=\"$x\"
16826 exec_prefix="$acl_save_exec_prefix"
16827 prefix="$acl_save_prefix"
16828
16829 if test "X$x" = "X$element"; then
16830 haveit=yes
16831 break
16832 fi
16833 done
16834 if test -z "$haveit"; then
16835 LIBS="${LIBS}${LIBS:+ }$element"
16836 fi
16837 done
16838
16839 CY_EXECUTE=1
16840
16841 fi
16842
16843 elif test $pkg_failed = untried; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16845 $as_echo "no" >&6; }
16846
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
16849 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
16850 if ${ac_cv_framework_JavaScriptCore+:} false; then :
16851 $as_echo_n "(cached) " >&6
16852 else
16853
16854 ac_check_framework_save_LIBS=$LIBS
16855 LIBS="-framework JavaScriptCore $LIBS"
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858
16859 #include <JavaScriptCore/JSBase.h>
16860
16861 int
16862 main ()
16863 {
16864 JSEvaluateScript(0, 0, 0, 0, 0, 0);
16865 ;
16866 return 0;
16867 }
16868 _ACEOF
16869 if ac_fn_cxx_try_link "$LINENO"; then :
16870
16871 ac_cv_framework_JavaScriptCore=yes
16872
16873 else
16874 ac_cv_framework_JavaScriptCore=no
16875 fi
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878 LIBS=$ac_check_framework_save_LIBS
16879
16880 fi
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
16882 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
16883 if test $ac_cv_framework_JavaScriptCore = yes; then :
16884
16885
16886 for element in "-framework JavaScriptCore $LIBS"; do
16887 haveit=
16888 for x in $LIBS; do
16889
16890 acl_save_prefix="$prefix"
16891 prefix="$acl_final_prefix"
16892 acl_save_exec_prefix="$exec_prefix"
16893 exec_prefix="$acl_final_exec_prefix"
16894 eval x=\"$x\"
16895 exec_prefix="$acl_save_exec_prefix"
16896 prefix="$acl_save_prefix"
16897
16898 if test "X$x" = "X$element"; then
16899 haveit=yes
16900 break
16901 fi
16902 done
16903 if test -z "$haveit"; then
16904 LIBS="${LIBS}${LIBS:+ }$element"
16905 fi
16906 done
16907
16908 CY_EXECUTE=1
16909
16910 fi
16911
16912 else
16913 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16914 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16916 $as_echo "yes" >&6; }
16917
16918 CY_EXECUTE=1
16919
16920 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
16921 haveit=
16922 for x in $CXXFLAGS; do
16923
16924 acl_save_prefix="$prefix"
16925 prefix="$acl_final_prefix"
16926 acl_save_exec_prefix="$exec_prefix"
16927 exec_prefix="$acl_final_exec_prefix"
16928 eval x=\"$x\"
16929 exec_prefix="$acl_save_exec_prefix"
16930 prefix="$acl_save_prefix"
16931
16932 if test "X$x" = "X$element"; then
16933 haveit=yes
16934 break
16935 fi
16936 done
16937 if test -z "$haveit"; then
16938 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16939 fi
16940 done
16941
16942
16943 for element in `$PKG_CONFIG --libs WebKitGtk`; do
16944 haveit=
16945 for x in $LIBS; do
16946
16947 acl_save_prefix="$prefix"
16948 prefix="$acl_final_prefix"
16949 acl_save_exec_prefix="$exec_prefix"
16950 exec_prefix="$acl_final_exec_prefix"
16951 eval x=\"$x\"
16952 exec_prefix="$acl_save_exec_prefix"
16953 prefix="$acl_save_prefix"
16954
16955 if test "X$x" = "X$element"; then
16956 haveit=yes
16957 break
16958 fi
16959 done
16960 if test -z "$haveit"; then
16961 LIBS="${LIBS}${LIBS:+ }$element"
16962 fi
16963 done
16964
16965
16966 fi
16967
16968 else
16969 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
16970 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16972 $as_echo "yes" >&6; }
16973
16974 CY_EXECUTE=1
16975
16976 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
16977 haveit=
16978 for x in $CXXFLAGS; do
16979
16980 acl_save_prefix="$prefix"
16981 prefix="$acl_final_prefix"
16982 acl_save_exec_prefix="$exec_prefix"
16983 exec_prefix="$acl_final_exec_prefix"
16984 eval x=\"$x\"
16985 exec_prefix="$acl_save_exec_prefix"
16986 prefix="$acl_save_prefix"
16987
16988 if test "X$x" = "X$element"; then
16989 haveit=yes
16990 break
16991 fi
16992 done
16993 if test -z "$haveit"; then
16994 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16995 fi
16996 done
16997
16998
16999 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17000 haveit=
17001 for x in $LIBS; do
17002
17003 acl_save_prefix="$prefix"
17004 prefix="$acl_final_prefix"
17005 acl_save_exec_prefix="$exec_prefix"
17006 exec_prefix="$acl_final_exec_prefix"
17007 eval x=\"$x\"
17008 exec_prefix="$acl_save_exec_prefix"
17009 prefix="$acl_save_prefix"
17010
17011 if test "X$x" = "X$element"; then
17012 haveit=yes
17013 break
17014 fi
17015 done
17016 if test -z "$haveit"; then
17017 LIBS="${LIBS}${LIBS:+ }$element"
17018 fi
17019 done
17020
17021
17022 fi
17023
17024 ;; #(
17025 *) :
17026 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
17027 esac
17028
17029 else
17030
17031
17032
17033 pkg_failed=no
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17035 $as_echo_n "checking for WEBKIT... " >&6; }
17036
17037 if test -n "$WEBKIT_CFLAGS"; then
17038 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17039 elif test -n "$PKG_CONFIG"; then
17040 if test -n "$PKG_CONFIG" && \
17041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17042 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17043 ac_status=$?
17044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17045 test $ac_status = 0; }; then
17046 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17047 else
17048 pkg_failed=yes
17049 fi
17050 else
17051 pkg_failed=untried
17052 fi
17053 if test -n "$WEBKIT_LIBS"; then
17054 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17055 elif test -n "$PKG_CONFIG"; then
17056 if test -n "$PKG_CONFIG" && \
17057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17058 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17059 ac_status=$?
17060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17061 test $ac_status = 0; }; then
17062 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17063 else
17064 pkg_failed=yes
17065 fi
17066 else
17067 pkg_failed=untried
17068 fi
17069
17070
17071
17072 if test $pkg_failed = yes; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17075
17076 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17077 _pkg_short_errors_supported=yes
17078 else
17079 _pkg_short_errors_supported=no
17080 fi
17081 if test $_pkg_short_errors_supported = yes; then
17082 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17083 else
17084 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17085 fi
17086 # Put the nasty error message in config.log where it belongs
17087 echo "$WEBKIT_PKG_ERRORS" >&5
17088
17089
17090
17091 pkg_failed=no
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17093 $as_echo_n "checking for WEBKIT... " >&6; }
17094
17095 if test -n "$WEBKIT_CFLAGS"; then
17096 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17097 elif test -n "$PKG_CONFIG"; then
17098 if test -n "$PKG_CONFIG" && \
17099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17100 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17101 ac_status=$?
17102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17103 test $ac_status = 0; }; then
17104 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17105 else
17106 pkg_failed=yes
17107 fi
17108 else
17109 pkg_failed=untried
17110 fi
17111 if test -n "$WEBKIT_LIBS"; then
17112 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17113 elif test -n "$PKG_CONFIG"; then
17114 if test -n "$PKG_CONFIG" && \
17115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17116 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17117 ac_status=$?
17118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17119 test $ac_status = 0; }; then
17120 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17121 else
17122 pkg_failed=yes
17123 fi
17124 else
17125 pkg_failed=untried
17126 fi
17127
17128
17129
17130 if test $pkg_failed = yes; then
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17133
17134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17135 _pkg_short_errors_supported=yes
17136 else
17137 _pkg_short_errors_supported=no
17138 fi
17139 if test $_pkg_short_errors_supported = yes; then
17140 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17141 else
17142 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17143 fi
17144 # Put the nasty error message in config.log where it belongs
17145 echo "$WEBKIT_PKG_ERRORS" >&5
17146
17147
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17150 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17151 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154
17155 ac_check_framework_save_LIBS=$LIBS
17156 LIBS="-framework JavaScriptCore $LIBS"
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159
17160 #include <JavaScriptCore/JSBase.h>
17161
17162 int
17163 main ()
17164 {
17165 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_cxx_try_link "$LINENO"; then :
17171
17172 ac_cv_framework_JavaScriptCore=yes
17173
17174 else
17175 ac_cv_framework_JavaScriptCore=no
17176 fi
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 LIBS=$ac_check_framework_save_LIBS
17180
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17183 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17184 if test $ac_cv_framework_JavaScriptCore = yes; then :
17185
17186
17187 for element in "-framework JavaScriptCore $LIBS"; do
17188 haveit=
17189 for x in $LIBS; do
17190
17191 acl_save_prefix="$prefix"
17192 prefix="$acl_final_prefix"
17193 acl_save_exec_prefix="$exec_prefix"
17194 exec_prefix="$acl_final_exec_prefix"
17195 eval x=\"$x\"
17196 exec_prefix="$acl_save_exec_prefix"
17197 prefix="$acl_save_prefix"
17198
17199 if test "X$x" = "X$element"; then
17200 haveit=yes
17201 break
17202 fi
17203 done
17204 if test -z "$haveit"; then
17205 LIBS="${LIBS}${LIBS:+ }$element"
17206 fi
17207 done
17208
17209 CY_EXECUTE=1
17210
17211 fi
17212
17213 elif test $pkg_failed = untried; then
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215 $as_echo "no" >&6; }
17216
17217
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17219 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17220 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17221 $as_echo_n "(cached) " >&6
17222 else
17223
17224 ac_check_framework_save_LIBS=$LIBS
17225 LIBS="-framework JavaScriptCore $LIBS"
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228
17229 #include <JavaScriptCore/JSBase.h>
17230
17231 int
17232 main ()
17233 {
17234 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17235 ;
17236 return 0;
17237 }
17238 _ACEOF
17239 if ac_fn_cxx_try_link "$LINENO"; then :
17240
17241 ac_cv_framework_JavaScriptCore=yes
17242
17243 else
17244 ac_cv_framework_JavaScriptCore=no
17245 fi
17246 rm -f core conftest.err conftest.$ac_objext \
17247 conftest$ac_exeext conftest.$ac_ext
17248 LIBS=$ac_check_framework_save_LIBS
17249
17250 fi
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17252 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17253 if test $ac_cv_framework_JavaScriptCore = yes; then :
17254
17255
17256 for element in "-framework JavaScriptCore $LIBS"; do
17257 haveit=
17258 for x in $LIBS; do
17259
17260 acl_save_prefix="$prefix"
17261 prefix="$acl_final_prefix"
17262 acl_save_exec_prefix="$exec_prefix"
17263 exec_prefix="$acl_final_exec_prefix"
17264 eval x=\"$x\"
17265 exec_prefix="$acl_save_exec_prefix"
17266 prefix="$acl_save_prefix"
17267
17268 if test "X$x" = "X$element"; then
17269 haveit=yes
17270 break
17271 fi
17272 done
17273 if test -z "$haveit"; then
17274 LIBS="${LIBS}${LIBS:+ }$element"
17275 fi
17276 done
17277
17278 CY_EXECUTE=1
17279
17280 fi
17281
17282 else
17283 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17284 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17286 $as_echo "yes" >&6; }
17287
17288 CY_EXECUTE=1
17289
17290 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17291 haveit=
17292 for x in $CXXFLAGS; do
17293
17294 acl_save_prefix="$prefix"
17295 prefix="$acl_final_prefix"
17296 acl_save_exec_prefix="$exec_prefix"
17297 exec_prefix="$acl_final_exec_prefix"
17298 eval x=\"$x\"
17299 exec_prefix="$acl_save_exec_prefix"
17300 prefix="$acl_save_prefix"
17301
17302 if test "X$x" = "X$element"; then
17303 haveit=yes
17304 break
17305 fi
17306 done
17307 if test -z "$haveit"; then
17308 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17309 fi
17310 done
17311
17312
17313 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17314 haveit=
17315 for x in $LIBS; 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 LIBS="${LIBS}${LIBS:+ }$element"
17332 fi
17333 done
17334
17335
17336 fi
17337
17338 elif test $pkg_failed = untried; then
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17340 $as_echo "no" >&6; }
17341
17342
17343 pkg_failed=no
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17345 $as_echo_n "checking for WEBKIT... " >&6; }
17346
17347 if test -n "$WEBKIT_CFLAGS"; then
17348 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17349 elif test -n "$PKG_CONFIG"; then
17350 if test -n "$PKG_CONFIG" && \
17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17352 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17353 ac_status=$?
17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }; then
17356 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17357 else
17358 pkg_failed=yes
17359 fi
17360 else
17361 pkg_failed=untried
17362 fi
17363 if test -n "$WEBKIT_LIBS"; then
17364 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17365 elif test -n "$PKG_CONFIG"; then
17366 if test -n "$PKG_CONFIG" && \
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17368 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17369 ac_status=$?
17370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371 test $ac_status = 0; }; then
17372 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17373 else
17374 pkg_failed=yes
17375 fi
17376 else
17377 pkg_failed=untried
17378 fi
17379
17380
17381
17382 if test $pkg_failed = yes; then
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385
17386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17387 _pkg_short_errors_supported=yes
17388 else
17389 _pkg_short_errors_supported=no
17390 fi
17391 if test $_pkg_short_errors_supported = yes; then
17392 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17393 else
17394 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17395 fi
17396 # Put the nasty error message in config.log where it belongs
17397 echo "$WEBKIT_PKG_ERRORS" >&5
17398
17399
17400
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17402 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17403 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406
17407 ac_check_framework_save_LIBS=$LIBS
17408 LIBS="-framework JavaScriptCore $LIBS"
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411
17412 #include <JavaScriptCore/JSBase.h>
17413
17414 int
17415 main ()
17416 {
17417 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 if ac_fn_cxx_try_link "$LINENO"; then :
17423
17424 ac_cv_framework_JavaScriptCore=yes
17425
17426 else
17427 ac_cv_framework_JavaScriptCore=no
17428 fi
17429 rm -f core conftest.err conftest.$ac_objext \
17430 conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_framework_save_LIBS
17432
17433 fi
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17435 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17436 if test $ac_cv_framework_JavaScriptCore = yes; then :
17437
17438
17439 for element in "-framework JavaScriptCore $LIBS"; do
17440 haveit=
17441 for x in $LIBS; do
17442
17443 acl_save_prefix="$prefix"
17444 prefix="$acl_final_prefix"
17445 acl_save_exec_prefix="$exec_prefix"
17446 exec_prefix="$acl_final_exec_prefix"
17447 eval x=\"$x\"
17448 exec_prefix="$acl_save_exec_prefix"
17449 prefix="$acl_save_prefix"
17450
17451 if test "X$x" = "X$element"; then
17452 haveit=yes
17453 break
17454 fi
17455 done
17456 if test -z "$haveit"; then
17457 LIBS="${LIBS}${LIBS:+ }$element"
17458 fi
17459 done
17460
17461 CY_EXECUTE=1
17462
17463 fi
17464
17465 elif test $pkg_failed = untried; then
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17467 $as_echo "no" >&6; }
17468
17469
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17471 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17472 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475
17476 ac_check_framework_save_LIBS=$LIBS
17477 LIBS="-framework JavaScriptCore $LIBS"
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480
17481 #include <JavaScriptCore/JSBase.h>
17482
17483 int
17484 main ()
17485 {
17486 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 if ac_fn_cxx_try_link "$LINENO"; then :
17492
17493 ac_cv_framework_JavaScriptCore=yes
17494
17495 else
17496 ac_cv_framework_JavaScriptCore=no
17497 fi
17498 rm -f core conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LIBS=$ac_check_framework_save_LIBS
17501
17502 fi
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17504 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17505 if test $ac_cv_framework_JavaScriptCore = yes; then :
17506
17507
17508 for element in "-framework JavaScriptCore $LIBS"; do
17509 haveit=
17510 for x in $LIBS; do
17511
17512 acl_save_prefix="$prefix"
17513 prefix="$acl_final_prefix"
17514 acl_save_exec_prefix="$exec_prefix"
17515 exec_prefix="$acl_final_exec_prefix"
17516 eval x=\"$x\"
17517 exec_prefix="$acl_save_exec_prefix"
17518 prefix="$acl_save_prefix"
17519
17520 if test "X$x" = "X$element"; then
17521 haveit=yes
17522 break
17523 fi
17524 done
17525 if test -z "$haveit"; then
17526 LIBS="${LIBS}${LIBS:+ }$element"
17527 fi
17528 done
17529
17530 CY_EXECUTE=1
17531
17532 fi
17533
17534 else
17535 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17536 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 $as_echo "yes" >&6; }
17539
17540 CY_EXECUTE=1
17541
17542 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17543 haveit=
17544 for x in $CXXFLAGS; do
17545
17546 acl_save_prefix="$prefix"
17547 prefix="$acl_final_prefix"
17548 acl_save_exec_prefix="$exec_prefix"
17549 exec_prefix="$acl_final_exec_prefix"
17550 eval x=\"$x\"
17551 exec_prefix="$acl_save_exec_prefix"
17552 prefix="$acl_save_prefix"
17553
17554 if test "X$x" = "X$element"; then
17555 haveit=yes
17556 break
17557 fi
17558 done
17559 if test -z "$haveit"; then
17560 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17561 fi
17562 done
17563
17564
17565 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17566 haveit=
17567 for x in $LIBS; do
17568
17569 acl_save_prefix="$prefix"
17570 prefix="$acl_final_prefix"
17571 acl_save_exec_prefix="$exec_prefix"
17572 exec_prefix="$acl_final_exec_prefix"
17573 eval x=\"$x\"
17574 exec_prefix="$acl_save_exec_prefix"
17575 prefix="$acl_save_prefix"
17576
17577 if test "X$x" = "X$element"; then
17578 haveit=yes
17579 break
17580 fi
17581 done
17582 if test -z "$haveit"; then
17583 LIBS="${LIBS}${LIBS:+ }$element"
17584 fi
17585 done
17586
17587
17588 fi
17589
17590 else
17591 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17592 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17594 $as_echo "yes" >&6; }
17595
17596 CY_EXECUTE=1
17597
17598 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17599 haveit=
17600 for x in $CXXFLAGS; do
17601
17602 acl_save_prefix="$prefix"
17603 prefix="$acl_final_prefix"
17604 acl_save_exec_prefix="$exec_prefix"
17605 exec_prefix="$acl_final_exec_prefix"
17606 eval x=\"$x\"
17607 exec_prefix="$acl_save_exec_prefix"
17608 prefix="$acl_save_prefix"
17609
17610 if test "X$x" = "X$element"; then
17611 haveit=yes
17612 break
17613 fi
17614 done
17615 if test -z "$haveit"; then
17616 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17617 fi
17618 done
17619
17620
17621 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17622 haveit=
17623 for x in $LIBS; do
17624
17625 acl_save_prefix="$prefix"
17626 prefix="$acl_final_prefix"
17627 acl_save_exec_prefix="$exec_prefix"
17628 exec_prefix="$acl_final_exec_prefix"
17629 eval x=\"$x\"
17630 exec_prefix="$acl_save_exec_prefix"
17631 prefix="$acl_save_prefix"
17632
17633 if test "X$x" = "X$element"; then
17634 haveit=yes
17635 break
17636 fi
17637 done
17638 if test -z "$haveit"; then
17639 LIBS="${LIBS}${LIBS:+ }$element"
17640 fi
17641 done
17642
17643
17644 fi
17645
17646
17647 fi
17648
17649
17650
17651
17652 case $CY_EXECUTE in #(
17653 1) :
17654
17655
17656 for ac_header in ffi.h ffi/ffi.h
17657 do :
17658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17659 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17660 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17661 cat >>confdefs.h <<_ACEOF
17662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17663 _ACEOF
17664 break
17665 fi
17666
17667 done
17668
17669 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
17670
17671
17672
17673 pkg_failed=no
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17675 $as_echo_n "checking for LIBFFI... " >&6; }
17676
17677 if test -n "$LIBFFI_CFLAGS"; then
17678 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17679 elif test -n "$PKG_CONFIG"; then
17680 if test -n "$PKG_CONFIG" && \
17681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17682 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17683 ac_status=$?
17684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17685 test $ac_status = 0; }; then
17686 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17687 else
17688 pkg_failed=yes
17689 fi
17690 else
17691 pkg_failed=untried
17692 fi
17693 if test -n "$LIBFFI_LIBS"; then
17694 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17695 elif test -n "$PKG_CONFIG"; then
17696 if test -n "$PKG_CONFIG" && \
17697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17698 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17699 ac_status=$?
17700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17701 test $ac_status = 0; }; then
17702 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17703 else
17704 pkg_failed=yes
17705 fi
17706 else
17707 pkg_failed=untried
17708 fi
17709
17710
17711
17712 if test $pkg_failed = yes; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715
17716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17717 _pkg_short_errors_supported=yes
17718 else
17719 _pkg_short_errors_supported=no
17720 fi
17721 if test $_pkg_short_errors_supported = yes; then
17722 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
17723 else
17724 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
17725 fi
17726 # Put the nasty error message in config.log where it belongs
17727 echo "$LIBFFI_PKG_ERRORS" >&5
17728
17729
17730 as_fn_error $? "You need libffi" "$LINENO" 5
17731
17732 elif test $pkg_failed = untried; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17734 $as_echo "no" >&6; }
17735
17736 as_fn_error $? "You need libffi" "$LINENO" 5
17737
17738 else
17739 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17740 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17742 $as_echo "yes" >&6; }
17743
17744
17745 for element in `$PKG_CONFIG --cflags libffi`; do
17746 haveit=
17747 for x in $CXXFLAGS; do
17748
17749 acl_save_prefix="$prefix"
17750 prefix="$acl_final_prefix"
17751 acl_save_exec_prefix="$exec_prefix"
17752 exec_prefix="$acl_final_exec_prefix"
17753 eval x=\"$x\"
17754 exec_prefix="$acl_save_exec_prefix"
17755 prefix="$acl_save_prefix"
17756
17757 if test "X$x" = "X$element"; then
17758 haveit=yes
17759 break
17760 fi
17761 done
17762 if test -z "$haveit"; then
17763 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17764 fi
17765 done
17766
17767
17768 for element in `$PKG_CONFIG --libs libffi`; do
17769 haveit=
17770 for x in $LIBS; do
17771
17772 acl_save_prefix="$prefix"
17773 prefix="$acl_final_prefix"
17774 acl_save_exec_prefix="$exec_prefix"
17775 exec_prefix="$acl_final_exec_prefix"
17776 eval x=\"$x\"
17777 exec_prefix="$acl_save_exec_prefix"
17778 prefix="$acl_save_prefix"
17779
17780 if test "X$x" = "X$element"; then
17781 haveit=yes
17782 break
17783 fi
17784 done
17785 if test -z "$haveit"; then
17786 LIBS="${LIBS}${LIBS:+ }$element"
17787 fi
17788 done
17789
17790
17791 fi
17792
17793
17794 else
17795
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
17797 $as_echo_n "checking for library containing ffi_call... " >&6; }
17798 if ${ac_cv_search_ffi_call+:} false; then :
17799 $as_echo_n "(cached) " >&6
17800 else
17801 ac_func_search_save_LIBS=$LIBS
17802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17804
17805 /* Override any GCC internal prototype to avoid an error.
17806 Use char because int might match the return type of a GCC
17807 builtin and then its argument prototype would still apply. */
17808 #ifdef __cplusplus
17809 extern "C"
17810 #endif
17811 char ffi_call ();
17812 int
17813 main ()
17814 {
17815 return ffi_call ();
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 for ac_lib in '' ffi; do
17821 if test -z "$ac_lib"; then
17822 ac_res="none required"
17823 else
17824 ac_res=-l$ac_lib
17825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17826 fi
17827 if ac_fn_cxx_try_link "$LINENO"; then :
17828 ac_cv_search_ffi_call=$ac_res
17829 fi
17830 rm -f core conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext
17832 if ${ac_cv_search_ffi_call+:} false; then :
17833 break
17834 fi
17835 done
17836 if ${ac_cv_search_ffi_call+:} false; then :
17837
17838 else
17839 ac_cv_search_ffi_call=no
17840 fi
17841 rm conftest.$ac_ext
17842 LIBS=$ac_func_search_save_LIBS
17843 fi
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
17845 $as_echo "$ac_cv_search_ffi_call" >&6; }
17846 ac_res=$ac_cv_search_ffi_call
17847 if test "$ac_res" != no; then :
17848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17849
17850 fi
17851
17852 case $ac_cv_search_ffi_call in #(
17853 no) :
17854
17855
17856 pkg_failed=no
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
17858 $as_echo_n "checking for LIBFFI... " >&6; }
17859
17860 if test -n "$LIBFFI_CFLAGS"; then
17861 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
17862 elif test -n "$PKG_CONFIG"; then
17863 if test -n "$PKG_CONFIG" && \
17864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17865 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17866 ac_status=$?
17867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; }; then
17869 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
17870 else
17871 pkg_failed=yes
17872 fi
17873 else
17874 pkg_failed=untried
17875 fi
17876 if test -n "$LIBFFI_LIBS"; then
17877 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
17878 elif test -n "$PKG_CONFIG"; then
17879 if test -n "$PKG_CONFIG" && \
17880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
17881 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
17882 ac_status=$?
17883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17884 test $ac_status = 0; }; then
17885 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
17886 else
17887 pkg_failed=yes
17888 fi
17889 else
17890 pkg_failed=untried
17891 fi
17892
17893
17894
17895 if test $pkg_failed = yes; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17897 $as_echo "no" >&6; }
17898
17899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17900 _pkg_short_errors_supported=yes
17901 else
17902 _pkg_short_errors_supported=no
17903 fi
17904 if test $_pkg_short_errors_supported = yes; then
17905 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
17906 else
17907 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
17908 fi
17909 # Put the nasty error message in config.log where it belongs
17910 echo "$LIBFFI_PKG_ERRORS" >&5
17911
17912
17913 as_fn_error $? "You need libffi" "$LINENO" 5
17914
17915 elif test $pkg_failed = untried; then
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917 $as_echo "no" >&6; }
17918
17919 as_fn_error $? "You need libffi" "$LINENO" 5
17920
17921 else
17922 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
17923 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17925 $as_echo "yes" >&6; }
17926
17927
17928 for element in `$PKG_CONFIG --cflags libffi`; do
17929 haveit=
17930 for x in $CXXFLAGS; do
17931
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17936 eval x=\"$x\"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17939
17940 if test "X$x" = "X$element"; then
17941 haveit=yes
17942 break
17943 fi
17944 done
17945 if test -z "$haveit"; then
17946 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17947 fi
17948 done
17949
17950
17951 for element in `$PKG_CONFIG --libs libffi`; do
17952 haveit=
17953 for x in $LIBS; do
17954
17955 acl_save_prefix="$prefix"
17956 prefix="$acl_final_prefix"
17957 acl_save_exec_prefix="$exec_prefix"
17958 exec_prefix="$acl_final_exec_prefix"
17959 eval x=\"$x\"
17960 exec_prefix="$acl_save_exec_prefix"
17961 prefix="$acl_save_prefix"
17962
17963 if test "X$x" = "X$element"; then
17964 haveit=yes
17965 break
17966 fi
17967 done
17968 if test -z "$haveit"; then
17969 LIBS="${LIBS}${LIBS:+ }$element"
17970 fi
17971 done
17972
17973
17974 fi
17975 ;; #(
17976 *) :
17977 ;;
17978 esac
17979
17980 fi
17981 ac_ext=mm
17982 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17983 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17986
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
17988 $as_echo_n "checking if we really have Objective C++... " >&6; }
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991
17992 // This space intentionally left blank
17993
17994 _ACEOF
17995 if ac_fn_objcxx_try_compile "$LINENO"; then :
17996
17997 CY_OBJECTIVEC=1
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17999 $as_echo "yes" >&6; }
18000
18001 else
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18006 if test "x$CY_OBJECTIVEC" = x1; then :
18007
18008
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
18010 $as_echo_n "checking for framework CoreFoundation... " >&6; }
18011 if ${ac_cv_framework_CoreFoundation+:} false; then :
18012 $as_echo_n "(cached) " >&6
18013 else
18014
18015 ac_check_framework_save_LIBS=$LIBS
18016 LIBS="-framework CoreFoundation $LIBS"
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019
18020 #include <CoreFoundation/CFBase.h>
18021
18022 int
18023 main ()
18024 {
18025 CFAllocatorGetDefault();
18026 ;
18027 return 0;
18028 }
18029 _ACEOF
18030 if ac_fn_objcxx_try_link "$LINENO"; then :
18031
18032 ac_cv_framework_CoreFoundation=yes
18033
18034 else
18035 ac_cv_framework_CoreFoundation=no
18036 fi
18037 rm -f core conftest.err conftest.$ac_objext \
18038 conftest$ac_exeext conftest.$ac_ext
18039 LIBS=$ac_check_framework_save_LIBS
18040
18041 fi
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
18043 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
18044 if test $ac_cv_framework_CoreFoundation = yes; then :
18045
18046
18047 for element in "-framework CoreFoundation $LIBS"; do
18048 haveit=
18049 for x in $LIBS; do
18050
18051 acl_save_prefix="$prefix"
18052 prefix="$acl_final_prefix"
18053 acl_save_exec_prefix="$exec_prefix"
18054 exec_prefix="$acl_final_exec_prefix"
18055 eval x=\"$x\"
18056 exec_prefix="$acl_save_exec_prefix"
18057 prefix="$acl_save_prefix"
18058
18059 if test "X$x" = "X$element"; then
18060 haveit=yes
18061 break
18062 fi
18063 done
18064 if test -z "$haveit"; then
18065 LIBS="${LIBS}${LIBS:+ }$element"
18066 fi
18067 done
18068
18069
18070
18071
18072
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
18074 $as_echo_n "checking for framework Foundation... " >&6; }
18075 if ${ac_cv_framework_Foundation+:} false; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078
18079 ac_check_framework_save_LIBS=$LIBS
18080 LIBS="-framework Foundation $LIBS"
18081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082 /* end confdefs.h. */
18083
18084 #include <Foundation/NSObject.h>
18085
18086 int
18087 main ()
18088 {
18089 [[NSObject alloc] init];
18090 ;
18091 return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_objcxx_try_link "$LINENO"; then :
18095
18096 ac_cv_framework_Foundation=yes
18097
18098 else
18099 ac_cv_framework_Foundation=no
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext \
18102 conftest$ac_exeext conftest.$ac_ext
18103 LIBS=$ac_check_framework_save_LIBS
18104
18105 fi
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
18107 $as_echo "$ac_cv_framework_Foundation" >&6; }
18108 if test $ac_cv_framework_Foundation = yes; then :
18109
18110
18111 for element in "-framework Foundation $LIBS"; do
18112 haveit=
18113 for x in $LIBS; do
18114
18115 acl_save_prefix="$prefix"
18116 prefix="$acl_final_prefix"
18117 acl_save_exec_prefix="$exec_prefix"
18118 exec_prefix="$acl_final_exec_prefix"
18119 eval x=\"$x\"
18120 exec_prefix="$acl_save_exec_prefix"
18121 prefix="$acl_save_prefix"
18122
18123 if test "X$x" = "X$element"; then
18124 haveit=yes
18125 break
18126 fi
18127 done
18128 if test -z "$haveit"; then
18129 LIBS="${LIBS}${LIBS:+ }$element"
18130 fi
18131 done
18132
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_FRAMEWORK_FOUNDATION 1
18135 _ACEOF
18136
18137
18138 fi
18139
18140
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
18142 $as_echo_n "checking for framework WebKit... " >&6; }
18143 if ${ac_cv_framework_WebKit+:} false; then :
18144 $as_echo_n "(cached) " >&6
18145 else
18146
18147 ac_check_framework_save_LIBS=$LIBS
18148 LIBS="-framework WebKit $LIBS"
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151
18152 #include <WebKit/WebScriptObject.h>
18153
18154 int
18155 main ()
18156 {
18157 [[WebScriptObject alloc] init];
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 if ac_fn_objcxx_try_link "$LINENO"; then :
18163
18164 ac_cv_framework_WebKit=yes
18165
18166 else
18167 ac_cv_framework_WebKit=no
18168 fi
18169 rm -f core conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_framework_save_LIBS
18172
18173 fi
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
18175 $as_echo "$ac_cv_framework_WebKit" >&6; }
18176 if test $ac_cv_framework_WebKit = yes; then :
18177
18178
18179 for element in "-framework WebKit $LIBS"; do
18180 haveit=
18181 for x in $LIBS; do
18182
18183 acl_save_prefix="$prefix"
18184 prefix="$acl_final_prefix"
18185 acl_save_exec_prefix="$exec_prefix"
18186 exec_prefix="$acl_final_exec_prefix"
18187 eval x=\"$x\"
18188 exec_prefix="$acl_save_exec_prefix"
18189 prefix="$acl_save_prefix"
18190
18191 if test "X$x" = "X$element"; then
18192 haveit=yes
18193 break
18194 fi
18195 done
18196 if test -z "$haveit"; then
18197 LIBS="${LIBS}${LIBS:+ }$element"
18198 fi
18199 done
18200
18201 cat >>confdefs.h <<_ACEOF
18202 #define HAVE_FRAMEWORK_WEBKIT 1
18203 _ACEOF
18204
18205
18206 fi
18207
18208
18209 else
18210
18211
18212 for ac_prog in gnustep-config
18213 do
18214 # Extract the first word of "$ac_prog", so it can be a program name with args.
18215 set dummy $ac_prog; ac_word=$2
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18217 $as_echo_n "checking for $ac_word... " >&6; }
18218 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
18219 $as_echo_n "(cached) " >&6
18220 else
18221 if test -n "$GNUSTEP_CONFIG"; then
18222 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
18223 else
18224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225 for as_dir in $PATH
18226 do
18227 IFS=$as_save_IFS
18228 test -z "$as_dir" && as_dir=.
18229 for ac_exec_ext in '' $ac_executable_extensions; do
18230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
18232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18233 break 2
18234 fi
18235 done
18236 done
18237 IFS=$as_save_IFS
18238
18239 fi
18240 fi
18241 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
18242 if test -n "$GNUSTEP_CONFIG"; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
18244 $as_echo "$GNUSTEP_CONFIG" >&6; }
18245 else
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 $as_echo "no" >&6; }
18248 fi
18249
18250
18251 test -n "$GNUSTEP_CONFIG" && break
18252 done
18253
18254 if test "x$GNUSTEP_CONFIG" != x; then :
18255
18256
18257
18258 for element in `$GNUSTEP_CONFIG --objc-flags`; do
18259 haveit=
18260 for x in $OBJCXXFLAGS; do
18261
18262 acl_save_prefix="$prefix"
18263 prefix="$acl_final_prefix"
18264 acl_save_exec_prefix="$exec_prefix"
18265 exec_prefix="$acl_final_exec_prefix"
18266 eval x=\"$x\"
18267 exec_prefix="$acl_save_exec_prefix"
18268 prefix="$acl_save_prefix"
18269
18270 if test "X$x" = "X$element"; then
18271 haveit=yes
18272 break
18273 fi
18274 done
18275 if test -z "$haveit"; then
18276 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18277 fi
18278 done
18279
18280
18281 for element in `$GNUSTEP_CONFIG --base-libs`; do
18282 haveit=
18283 for x in $LIBS; do
18284
18285 acl_save_prefix="$prefix"
18286 prefix="$acl_final_prefix"
18287 acl_save_exec_prefix="$exec_prefix"
18288 exec_prefix="$acl_final_exec_prefix"
18289 eval x=\"$x\"
18290 exec_prefix="$acl_save_exec_prefix"
18291 prefix="$acl_save_prefix"
18292
18293 if test "X$x" = "X$element"; then
18294 haveit=yes
18295 break
18296 fi
18297 done
18298 if test -z "$haveit"; then
18299 LIBS="${LIBS}${LIBS:+ }$element"
18300 fi
18301 done
18302
18303
18304 else
18305 CY_OBJECTIVEC=0
18306
18307 fi
18308
18309 fi
18310
18311 fi
18312 ac_ext=cpp
18313 ac_cpp='$CXXCPP $CPPFLAGS'
18314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18317
18318 ;; #(
18319 *) :
18320 ;;
18321 esac
18322
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
18324 $as_echo_n "checking for a readline compatible library... " >&6; }
18325 if ${ax_cv_lib_readline+:} false; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328
18329 ORIG_LIBS="$LIBS"
18330 for readline_lib in readline edit editline; do
18331 for termcap_lib in "" termcap curses ncurses; do
18332 if test -z "$termcap_lib"; then
18333 TRY_LIB="-l$readline_lib"
18334 else
18335 TRY_LIB="-l$readline_lib -l$termcap_lib"
18336 fi
18337 LIBS="$ORIG_LIBS $TRY_LIB"
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340
18341 /* Override any GCC internal prototype to avoid an error.
18342 Use char because int might match the return type of a GCC
18343 builtin and then its argument prototype would still apply. */
18344 #ifdef __cplusplus
18345 extern "C"
18346 #endif
18347 char readline ();
18348 int
18349 main ()
18350 {
18351 return readline ();
18352 ;
18353 return 0;
18354 }
18355 _ACEOF
18356 if ac_fn_cxx_try_link "$LINENO"; then :
18357 ax_cv_lib_readline="$TRY_LIB"
18358 fi
18359 rm -f core conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18361 if test -n "$ax_cv_lib_readline"; then
18362 break
18363 fi
18364 done
18365 if test -n "$ax_cv_lib_readline"; then
18366 break
18367 fi
18368 done
18369 if test -z "$ax_cv_lib_readline"; then
18370 ax_cv_lib_readline="no"
18371 fi
18372 LIBS="$ORIG_LIBS"
18373
18374 fi
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
18376 $as_echo "$ax_cv_lib_readline" >&6; }
18377
18378 if test "$ax_cv_lib_readline" != "no"; then
18379 LIBS="$LIBS $ax_cv_lib_readline"
18380
18381 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
18382
18383 for ac_header in readline.h readline/readline.h
18384 do :
18385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18386 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18387 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18388 cat >>confdefs.h <<_ACEOF
18389 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18390 _ACEOF
18391
18392 fi
18393
18394 done
18395
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
18397 $as_echo_n "checking whether readline supports history... " >&6; }
18398 if ${ax_cv_lib_readline_history+:} false; then :
18399 $as_echo_n "(cached) " >&6
18400 else
18401
18402 ax_cv_lib_readline_history="no"
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char add_history ();
18413 int
18414 main ()
18415 {
18416 return add_history ();
18417 ;
18418 return 0;
18419 }
18420 _ACEOF
18421 if ac_fn_cxx_try_link "$LINENO"; then :
18422 ax_cv_lib_readline_history="yes"
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext \
18425 conftest$ac_exeext conftest.$ac_ext
18426
18427 fi
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
18429 $as_echo "$ax_cv_lib_readline_history" >&6; }
18430 if test "$ax_cv_lib_readline_history" = "yes"; then
18431
18432 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
18433
18434 for ac_header in history.h readline/history.h
18435 do :
18436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18437 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18439 cat >>confdefs.h <<_ACEOF
18440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18441 _ACEOF
18442
18443 fi
18444
18445 done
18446
18447 fi
18448 fi
18449
18450 case $vl_cv_lib_readline in #(
18451 no) :
18452 as_fn_error $? "You need readline" "$LINENO" 5 ;; #(
18453 *) :
18454 ;;
18455 esac
18456 ac_ext=c
18457 ac_cpp='$CPP $CPPFLAGS'
18458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18461
18462
18463 if test "X$prefix" = "XNONE"; then
18464 acl_final_prefix="$ac_default_prefix"
18465 else
18466 acl_final_prefix="$prefix"
18467 fi
18468 if test "X$exec_prefix" = "XNONE"; then
18469 acl_final_exec_prefix='${prefix}'
18470 else
18471 acl_final_exec_prefix="$exec_prefix"
18472 fi
18473 acl_save_prefix="$prefix"
18474 prefix="$acl_final_prefix"
18475 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18476 prefix="$acl_save_prefix"
18477
18478
18479
18480 # Check whether --with-gnu-ld was given.
18481 if test "${with_gnu_ld+set}" = set; then :
18482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18483 else
18484 with_gnu_ld=no
18485 fi
18486
18487 # Prepare PATH_SEPARATOR.
18488 # The user is always right.
18489 if test "${PATH_SEPARATOR+set}" != set; then
18490 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18491 # contains only /bin. Note that ksh looks also at the FPATH variable,
18492 # so we have to set that as well for the test.
18493 PATH_SEPARATOR=:
18494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18495 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18496 || PATH_SEPARATOR=';'
18497 }
18498 fi
18499
18500 ac_prog=ld
18501 if test "$GCC" = yes; then
18502 # Check if gcc -print-prog-name=ld gives a path.
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18504 $as_echo_n "checking for ld used by $CC... " >&6; }
18505 case $host in
18506 *-*-mingw*)
18507 # gcc leaves a trailing carriage return which upsets mingw
18508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18509 *)
18510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18511 esac
18512 case $ac_prog in
18513 # Accept absolute paths.
18514 [\\/]* | ?:[\\/]*)
18515 re_direlt='/[^/][^/]*/\.\./'
18516 # Canonicalize the pathname of ld
18517 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
18518 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
18519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18520 done
18521 test -z "$LD" && LD="$ac_prog"
18522 ;;
18523 "")
18524 # If it fails, then pretend we aren't using GCC.
18525 ac_prog=ld
18526 ;;
18527 *)
18528 # If it is relative, then search for the first ld in PATH.
18529 with_gnu_ld=unknown
18530 ;;
18531 esac
18532 elif test "$with_gnu_ld" = yes; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18534 $as_echo_n "checking for GNU ld... " >&6; }
18535 else
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18537 $as_echo_n "checking for non-GNU ld... " >&6; }
18538 fi
18539 if ${acl_cv_path_LD+:} false; then :
18540 $as_echo_n "(cached) " >&6
18541 else
18542 if test -z "$LD"; then
18543 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18544 for ac_dir in $PATH; do
18545 IFS="$acl_save_ifs"
18546 test -z "$ac_dir" && ac_dir=.
18547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18548 acl_cv_path_LD="$ac_dir/$ac_prog"
18549 # Check to see if the program is GNU ld. I'd rather use --version,
18550 # but apparently some variants of GNU ld only accept -v.
18551 # Break only if it was the GNU/non-GNU ld that we prefer.
18552 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18553 *GNU* | *'with BFD'*)
18554 test "$with_gnu_ld" != no && break
18555 ;;
18556 *)
18557 test "$with_gnu_ld" != yes && break
18558 ;;
18559 esac
18560 fi
18561 done
18562 IFS="$acl_save_ifs"
18563 else
18564 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18565 fi
18566 fi
18567
18568 LD="$acl_cv_path_LD"
18569 if test -n "$LD"; then
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18571 $as_echo "$LD" >&6; }
18572 else
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18574 $as_echo "no" >&6; }
18575 fi
18576 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18578 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18579 if ${acl_cv_prog_gnu_ld+:} false; then :
18580 $as_echo_n "(cached) " >&6
18581 else
18582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18583 case `$LD -v 2>&1 </dev/null` in
18584 *GNU* | *'with BFD'*)
18585 acl_cv_prog_gnu_ld=yes
18586 ;;
18587 *)
18588 acl_cv_prog_gnu_ld=no
18589 ;;
18590 esac
18591 fi
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18593 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18594 with_gnu_ld=$acl_cv_prog_gnu_ld
18595
18596
18597
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18600 $as_echo_n "checking for shared library run path origin... " >&6; }
18601 if ${acl_cv_rpath+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603 else
18604
18605 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18606 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18607 . ./conftest.sh
18608 rm -f ./conftest.sh
18609 acl_cv_rpath=done
18610
18611 fi
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18613 $as_echo "$acl_cv_rpath" >&6; }
18614 wl="$acl_cv_wl"
18615 acl_libext="$acl_cv_libext"
18616 acl_shlibext="$acl_cv_shlibext"
18617 acl_libname_spec="$acl_cv_libname_spec"
18618 acl_library_names_spec="$acl_cv_library_names_spec"
18619 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18620 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18621 acl_hardcode_direct="$acl_cv_hardcode_direct"
18622 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18623 # Check whether --enable-rpath was given.
18624 if test "${enable_rpath+set}" = set; then :
18625 enableval=$enable_rpath; :
18626 else
18627 enable_rpath=yes
18628 fi
18629
18630
18631
18632
18633 acl_libdirstem=lib
18634 acl_libdirstem2=
18635 case "$host_os" in
18636 solaris*)
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18638 $as_echo_n "checking for 64-bit host... " >&6; }
18639 if ${gl_cv_solaris_64bit+:} false; then :
18640 $as_echo_n "(cached) " >&6
18641 else
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644
18645 #ifdef _LP64
18646 sixtyfour bits
18647 #endif
18648
18649 _ACEOF
18650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18651 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18652 gl_cv_solaris_64bit=yes
18653 else
18654 gl_cv_solaris_64bit=no
18655 fi
18656 rm -f conftest*
18657
18658
18659 fi
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18661 $as_echo "$gl_cv_solaris_64bit" >&6; }
18662 if test $gl_cv_solaris_64bit = yes; then
18663 acl_libdirstem=lib/64
18664 case "$host_cpu" in
18665 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18666 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18667 esac
18668 fi
18669 ;;
18670 *)
18671 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18672 if test -n "$searchpath"; then
18673 acl_save_IFS="${IFS= }"; IFS=":"
18674 for searchdir in $searchpath; do
18675 if test -d "$searchdir"; then
18676 case "$searchdir" in
18677 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18678 */../ | */.. )
18679 # Better ignore directories of this form. They are misleading.
18680 ;;
18681 *) searchdir=`cd "$searchdir" && pwd`
18682 case "$searchdir" in
18683 */lib64 ) acl_libdirstem=lib64 ;;
18684 esac ;;
18685 esac
18686 fi
18687 done
18688 IFS="$acl_save_IFS"
18689 fi
18690 ;;
18691 esac
18692 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705 use_additional=yes
18706
18707 acl_save_prefix="$prefix"
18708 prefix="$acl_final_prefix"
18709 acl_save_exec_prefix="$exec_prefix"
18710 exec_prefix="$acl_final_exec_prefix"
18711
18712 eval additional_includedir=\"$includedir\"
18713 eval additional_libdir=\"$libdir\"
18714
18715 exec_prefix="$acl_save_exec_prefix"
18716 prefix="$acl_save_prefix"
18717
18718
18719 # Check whether --with-libiconv-prefix was given.
18720 if test "${with_libiconv_prefix+set}" = set; then :
18721 withval=$with_libiconv_prefix;
18722 if test "X$withval" = "Xno"; then
18723 use_additional=no
18724 else
18725 if test "X$withval" = "X"; then
18726
18727 acl_save_prefix="$prefix"
18728 prefix="$acl_final_prefix"
18729 acl_save_exec_prefix="$exec_prefix"
18730 exec_prefix="$acl_final_exec_prefix"
18731
18732 eval additional_includedir=\"$includedir\"
18733 eval additional_libdir=\"$libdir\"
18734
18735 exec_prefix="$acl_save_exec_prefix"
18736 prefix="$acl_save_prefix"
18737
18738 else
18739 additional_includedir="$withval/include"
18740 additional_libdir="$withval/$acl_libdirstem"
18741 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18742 && ! test -d "$withval/$acl_libdirstem"; then
18743 additional_libdir="$withval/$acl_libdirstem2"
18744 fi
18745 fi
18746 fi
18747
18748 fi
18749
18750 LIBICONV=
18751 LTLIBICONV=
18752 INCICONV=
18753 LIBICONV_PREFIX=
18754 HAVE_LIBICONV=
18755 rpathdirs=
18756 ltrpathdirs=
18757 names_already_handled=
18758 names_next_round='iconv '
18759 while test -n "$names_next_round"; do
18760 names_this_round="$names_next_round"
18761 names_next_round=
18762 for name in $names_this_round; do
18763 already_handled=
18764 for n in $names_already_handled; do
18765 if test "$n" = "$name"; then
18766 already_handled=yes
18767 break
18768 fi
18769 done
18770 if test -z "$already_handled"; then
18771 names_already_handled="$names_already_handled $name"
18772 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18773 eval value=\"\$HAVE_LIB$uppername\"
18774 if test -n "$value"; then
18775 if test "$value" = yes; then
18776 eval value=\"\$LIB$uppername\"
18777 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18778 eval value=\"\$LTLIB$uppername\"
18779 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18780 else
18781 :
18782 fi
18783 else
18784 found_dir=
18785 found_la=
18786 found_so=
18787 found_a=
18788 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18789 if test -n "$acl_shlibext"; then
18790 shrext=".$acl_shlibext" # typically: shrext=.so
18791 else
18792 shrext=
18793 fi
18794 if test $use_additional = yes; then
18795 dir="$additional_libdir"
18796 if test -n "$acl_shlibext"; then
18797 if test -f "$dir/$libname$shrext"; then
18798 found_dir="$dir"
18799 found_so="$dir/$libname$shrext"
18800 else
18801 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18802 ver=`(cd "$dir" && \
18803 for f in "$libname$shrext".*; do echo "$f"; done \
18804 | sed -e "s,^$libname$shrext\\\\.,," \
18805 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18806 | sed 1q ) 2>/dev/null`
18807 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18808 found_dir="$dir"
18809 found_so="$dir/$libname$shrext.$ver"
18810 fi
18811 else
18812 eval library_names=\"$acl_library_names_spec\"
18813 for f in $library_names; do
18814 if test -f "$dir/$f"; then
18815 found_dir="$dir"
18816 found_so="$dir/$f"
18817 break
18818 fi
18819 done
18820 fi
18821 fi
18822 fi
18823 if test "X$found_dir" = "X"; then
18824 if test -f "$dir/$libname.$acl_libext"; then
18825 found_dir="$dir"
18826 found_a="$dir/$libname.$acl_libext"
18827 fi
18828 fi
18829 if test "X$found_dir" != "X"; then
18830 if test -f "$dir/$libname.la"; then
18831 found_la="$dir/$libname.la"
18832 fi
18833 fi
18834 fi
18835 if test "X$found_dir" = "X"; then
18836 for x in $LDFLAGS $LTLIBICONV; do
18837
18838 acl_save_prefix="$prefix"
18839 prefix="$acl_final_prefix"
18840 acl_save_exec_prefix="$exec_prefix"
18841 exec_prefix="$acl_final_exec_prefix"
18842 eval x=\"$x\"
18843 exec_prefix="$acl_save_exec_prefix"
18844 prefix="$acl_save_prefix"
18845
18846 case "$x" in
18847 -L*)
18848 dir=`echo "X$x" | sed -e 's/^X-L//'`
18849 if test -n "$acl_shlibext"; then
18850 if test -f "$dir/$libname$shrext"; then
18851 found_dir="$dir"
18852 found_so="$dir/$libname$shrext"
18853 else
18854 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18855 ver=`(cd "$dir" && \
18856 for f in "$libname$shrext".*; do echo "$f"; done \
18857 | sed -e "s,^$libname$shrext\\\\.,," \
18858 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18859 | sed 1q ) 2>/dev/null`
18860 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18861 found_dir="$dir"
18862 found_so="$dir/$libname$shrext.$ver"
18863 fi
18864 else
18865 eval library_names=\"$acl_library_names_spec\"
18866 for f in $library_names; do
18867 if test -f "$dir/$f"; then
18868 found_dir="$dir"
18869 found_so="$dir/$f"
18870 break
18871 fi
18872 done
18873 fi
18874 fi
18875 fi
18876 if test "X$found_dir" = "X"; then
18877 if test -f "$dir/$libname.$acl_libext"; then
18878 found_dir="$dir"
18879 found_a="$dir/$libname.$acl_libext"
18880 fi
18881 fi
18882 if test "X$found_dir" != "X"; then
18883 if test -f "$dir/$libname.la"; then
18884 found_la="$dir/$libname.la"
18885 fi
18886 fi
18887 ;;
18888 esac
18889 if test "X$found_dir" != "X"; then
18890 break
18891 fi
18892 done
18893 fi
18894 if test "X$found_dir" != "X"; then
18895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18896 if test "X$found_so" != "X"; then
18897 if test "$enable_rpath" = no \
18898 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18899 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18900 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18901 else
18902 haveit=
18903 for x in $ltrpathdirs; do
18904 if test "X$x" = "X$found_dir"; then
18905 haveit=yes
18906 break
18907 fi
18908 done
18909 if test -z "$haveit"; then
18910 ltrpathdirs="$ltrpathdirs $found_dir"
18911 fi
18912 if test "$acl_hardcode_direct" = yes; then
18913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18914 else
18915 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18917 haveit=
18918 for x in $rpathdirs; do
18919 if test "X$x" = "X$found_dir"; then
18920 haveit=yes
18921 break
18922 fi
18923 done
18924 if test -z "$haveit"; then
18925 rpathdirs="$rpathdirs $found_dir"
18926 fi
18927 else
18928 haveit=
18929 for x in $LDFLAGS $LIBICONV; do
18930
18931 acl_save_prefix="$prefix"
18932 prefix="$acl_final_prefix"
18933 acl_save_exec_prefix="$exec_prefix"
18934 exec_prefix="$acl_final_exec_prefix"
18935 eval x=\"$x\"
18936 exec_prefix="$acl_save_exec_prefix"
18937 prefix="$acl_save_prefix"
18938
18939 if test "X$x" = "X-L$found_dir"; then
18940 haveit=yes
18941 break
18942 fi
18943 done
18944 if test -z "$haveit"; then
18945 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18946 fi
18947 if test "$acl_hardcode_minus_L" != no; then
18948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18949 else
18950 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18951 fi
18952 fi
18953 fi
18954 fi
18955 else
18956 if test "X$found_a" != "X"; then
18957 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18958 else
18959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18960 fi
18961 fi
18962 additional_includedir=
18963 case "$found_dir" in
18964 */$acl_libdirstem | */$acl_libdirstem/)
18965 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18966 if test "$name" = 'iconv'; then
18967 LIBICONV_PREFIX="$basedir"
18968 fi
18969 additional_includedir="$basedir/include"
18970 ;;
18971 */$acl_libdirstem2 | */$acl_libdirstem2/)
18972 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18973 if test "$name" = 'iconv'; then
18974 LIBICONV_PREFIX="$basedir"
18975 fi
18976 additional_includedir="$basedir/include"
18977 ;;
18978 esac
18979 if test "X$additional_includedir" != "X"; then
18980 if test "X$additional_includedir" != "X/usr/include"; then
18981 haveit=
18982 if test "X$additional_includedir" = "X/usr/local/include"; then
18983 if test -n "$GCC"; then
18984 case $host_os in
18985 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18986 esac
18987 fi
18988 fi
18989 if test -z "$haveit"; then
18990 for x in $CPPFLAGS $INCICONV; do
18991
18992 acl_save_prefix="$prefix"
18993 prefix="$acl_final_prefix"
18994 acl_save_exec_prefix="$exec_prefix"
18995 exec_prefix="$acl_final_exec_prefix"
18996 eval x=\"$x\"
18997 exec_prefix="$acl_save_exec_prefix"
18998 prefix="$acl_save_prefix"
18999
19000 if test "X$x" = "X-I$additional_includedir"; then
19001 haveit=yes
19002 break
19003 fi
19004 done
19005 if test -z "$haveit"; then
19006 if test -d "$additional_includedir"; then
19007 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19008 fi
19009 fi
19010 fi
19011 fi
19012 fi
19013 if test -n "$found_la"; then
19014 save_libdir="$libdir"
19015 case "$found_la" in
19016 */* | *\\*) . "$found_la" ;;
19017 *) . "./$found_la" ;;
19018 esac
19019 libdir="$save_libdir"
19020 for dep in $dependency_libs; do
19021 case "$dep" in
19022 -L*)
19023 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19024 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19025 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19026 haveit=
19027 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19028 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19029 if test -n "$GCC"; then
19030 case $host_os in
19031 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19032 esac
19033 fi
19034 fi
19035 if test -z "$haveit"; then
19036 haveit=
19037 for x in $LDFLAGS $LIBICONV; do
19038
19039 acl_save_prefix="$prefix"
19040 prefix="$acl_final_prefix"
19041 acl_save_exec_prefix="$exec_prefix"
19042 exec_prefix="$acl_final_exec_prefix"
19043 eval x=\"$x\"
19044 exec_prefix="$acl_save_exec_prefix"
19045 prefix="$acl_save_prefix"
19046
19047 if test "X$x" = "X-L$additional_libdir"; then
19048 haveit=yes
19049 break
19050 fi
19051 done
19052 if test -z "$haveit"; then
19053 if test -d "$additional_libdir"; then
19054 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19055 fi
19056 fi
19057 haveit=
19058 for x in $LDFLAGS $LTLIBICONV; do
19059
19060 acl_save_prefix="$prefix"
19061 prefix="$acl_final_prefix"
19062 acl_save_exec_prefix="$exec_prefix"
19063 exec_prefix="$acl_final_exec_prefix"
19064 eval x=\"$x\"
19065 exec_prefix="$acl_save_exec_prefix"
19066 prefix="$acl_save_prefix"
19067
19068 if test "X$x" = "X-L$additional_libdir"; then
19069 haveit=yes
19070 break
19071 fi
19072 done
19073 if test -z "$haveit"; then
19074 if test -d "$additional_libdir"; then
19075 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19076 fi
19077 fi
19078 fi
19079 fi
19080 ;;
19081 -R*)
19082 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19083 if test "$enable_rpath" != no; then
19084 haveit=
19085 for x in $rpathdirs; do
19086 if test "X$x" = "X$dir"; then
19087 haveit=yes
19088 break
19089 fi
19090 done
19091 if test -z "$haveit"; then
19092 rpathdirs="$rpathdirs $dir"
19093 fi
19094 haveit=
19095 for x in $ltrpathdirs; do
19096 if test "X$x" = "X$dir"; then
19097 haveit=yes
19098 break
19099 fi
19100 done
19101 if test -z "$haveit"; then
19102 ltrpathdirs="$ltrpathdirs $dir"
19103 fi
19104 fi
19105 ;;
19106 -l*)
19107 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19108 ;;
19109 *.la)
19110 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19111 ;;
19112 *)
19113 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19114 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19115 ;;
19116 esac
19117 done
19118 fi
19119 else
19120 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19121 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19122 fi
19123 fi
19124 fi
19125 done
19126 done
19127 if test "X$rpathdirs" != "X"; then
19128 if test -n "$acl_hardcode_libdir_separator"; then
19129 alldirs=
19130 for found_dir in $rpathdirs; do
19131 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19132 done
19133 acl_save_libdir="$libdir"
19134 libdir="$alldirs"
19135 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19136 libdir="$acl_save_libdir"
19137 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19138 else
19139 for found_dir in $rpathdirs; do
19140 acl_save_libdir="$libdir"
19141 libdir="$found_dir"
19142 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19143 libdir="$acl_save_libdir"
19144 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19145 done
19146 fi
19147 fi
19148 if test "X$ltrpathdirs" != "X"; then
19149 for found_dir in $ltrpathdirs; do
19150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19151 done
19152 fi
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165 am_save_CPPFLAGS="$CPPFLAGS"
19166
19167 for element in $INCICONV; do
19168 haveit=
19169 for x in $CPPFLAGS; do
19170
19171 acl_save_prefix="$prefix"
19172 prefix="$acl_final_prefix"
19173 acl_save_exec_prefix="$exec_prefix"
19174 exec_prefix="$acl_final_exec_prefix"
19175 eval x=\"$x\"
19176 exec_prefix="$acl_save_exec_prefix"
19177 prefix="$acl_save_prefix"
19178
19179 if test "X$x" = "X$element"; then
19180 haveit=yes
19181 break
19182 fi
19183 done
19184 if test -z "$haveit"; then
19185 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19186 fi
19187 done
19188
19189
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19191 $as_echo_n "checking for iconv... " >&6; }
19192 if ${am_cv_func_iconv+:} false; then :
19193 $as_echo_n "(cached) " >&6
19194 else
19195
19196 am_cv_func_iconv="no, consider installing GNU libiconv"
19197 am_cv_lib_iconv=no
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19200
19201 #include <stdlib.h>
19202 #include <iconv.h>
19203
19204 int
19205 main ()
19206 {
19207 iconv_t cd = iconv_open("","");
19208 iconv(cd,NULL,NULL,NULL,NULL);
19209 iconv_close(cd);
19210 ;
19211 return 0;
19212 }
19213 _ACEOF
19214 if ac_fn_c_try_link "$LINENO"; then :
19215 am_cv_func_iconv=yes
19216 fi
19217 rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 if test "$am_cv_func_iconv" != yes; then
19220 am_save_LIBS="$LIBS"
19221 LIBS="$LIBS $LIBICONV"
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h. */
19224
19225 #include <stdlib.h>
19226 #include <iconv.h>
19227
19228 int
19229 main ()
19230 {
19231 iconv_t cd = iconv_open("","");
19232 iconv(cd,NULL,NULL,NULL,NULL);
19233 iconv_close(cd);
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 if ac_fn_c_try_link "$LINENO"; then :
19239 am_cv_lib_iconv=yes
19240 am_cv_func_iconv=yes
19241 fi
19242 rm -f core conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
19244 LIBS="$am_save_LIBS"
19245 fi
19246
19247 fi
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19249 $as_echo "$am_cv_func_iconv" >&6; }
19250 if test "$am_cv_func_iconv" = yes; then
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
19252 $as_echo_n "checking for working iconv... " >&6; }
19253 if ${am_cv_func_iconv_works+:} false; then :
19254 $as_echo_n "(cached) " >&6
19255 else
19256
19257 am_save_LIBS="$LIBS"
19258 if test $am_cv_lib_iconv = yes; then
19259 LIBS="$LIBS $LIBICONV"
19260 fi
19261 if test "$cross_compiling" = yes; then :
19262
19263 case "$host_os" in
19264 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
19265 *) am_cv_func_iconv_works="guessing yes" ;;
19266 esac
19267
19268 else
19269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19271
19272 #include <iconv.h>
19273 #include <string.h>
19274 int main ()
19275 {
19276 int result = 0;
19277 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
19278 returns. */
19279 {
19280 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
19281 if (cd_utf8_to_88591 != (iconv_t)(-1))
19282 {
19283 static const char input[] = "\342\202\254"; /* EURO SIGN */
19284 char buf[10];
19285 const char *inptr = input;
19286 size_t inbytesleft = strlen (input);
19287 char *outptr = buf;
19288 size_t outbytesleft = sizeof (buf);
19289 size_t res = iconv (cd_utf8_to_88591,
19290 (char **) &inptr, &inbytesleft,
19291 &outptr, &outbytesleft);
19292 if (res == 0)
19293 result |= 1;
19294 iconv_close (cd_utf8_to_88591);
19295 }
19296 }
19297 /* Test against Solaris 10 bug: Failures are not distinguishable from
19298 successful returns. */
19299 {
19300 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
19301 if (cd_ascii_to_88591 != (iconv_t)(-1))
19302 {
19303 static const char input[] = "\263";
19304 char buf[10];
19305 const char *inptr = input;
19306 size_t inbytesleft = strlen (input);
19307 char *outptr = buf;
19308 size_t outbytesleft = sizeof (buf);
19309 size_t res = iconv (cd_ascii_to_88591,
19310 (char **) &inptr, &inbytesleft,
19311 &outptr, &outbytesleft);
19312 if (res == 0)
19313 result |= 2;
19314 iconv_close (cd_ascii_to_88591);
19315 }
19316 }
19317 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
19318 {
19319 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
19320 if (cd_88591_to_utf8 != (iconv_t)(-1))
19321 {
19322 static const char input[] = "\304";
19323 static char buf[2] = { (char)0xDE, (char)0xAD };
19324 const char *inptr = input;
19325 size_t inbytesleft = 1;
19326 char *outptr = buf;
19327 size_t outbytesleft = 1;
19328 size_t res = iconv (cd_88591_to_utf8,
19329 (char **) &inptr, &inbytesleft,
19330 &outptr, &outbytesleft);
19331 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
19332 result |= 4;
19333 iconv_close (cd_88591_to_utf8);
19334 }
19335 }
19336 #if 0 /* This bug could be worked around by the caller. */
19337 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
19338 {
19339 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
19340 if (cd_88591_to_utf8 != (iconv_t)(-1))
19341 {
19342 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
19343 char buf[50];
19344 const char *inptr = input;
19345 size_t inbytesleft = strlen (input);
19346 char *outptr = buf;
19347 size_t outbytesleft = sizeof (buf);
19348 size_t res = iconv (cd_88591_to_utf8,
19349 (char **) &inptr, &inbytesleft,
19350 &outptr, &outbytesleft);
19351 if ((int)res > 0)
19352 result |= 8;
19353 iconv_close (cd_88591_to_utf8);
19354 }
19355 }
19356 #endif
19357 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
19358 provided. */
19359 if (/* Try standardized names. */
19360 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
19361 /* Try IRIX, OSF/1 names. */
19362 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
19363 /* Try AIX names. */
19364 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
19365 /* Try HP-UX names. */
19366 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
19367 result |= 16;
19368 return result;
19369 }
19370 _ACEOF
19371 if ac_fn_c_try_run "$LINENO"; then :
19372 am_cv_func_iconv_works=yes
19373 else
19374 am_cv_func_iconv_works=no
19375 fi
19376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19377 conftest.$ac_objext conftest.beam conftest.$ac_ext
19378 fi
19379
19380 LIBS="$am_save_LIBS"
19381
19382 fi
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
19384 $as_echo "$am_cv_func_iconv_works" >&6; }
19385 case "$am_cv_func_iconv_works" in
19386 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
19387 *) am_func_iconv=yes ;;
19388 esac
19389 else
19390 am_func_iconv=no am_cv_lib_iconv=no
19391 fi
19392 if test "$am_func_iconv" = yes; then
19393
19394 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19395
19396 fi
19397 if test "$am_cv_lib_iconv" = yes; then
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19399 $as_echo_n "checking how to link with libiconv... " >&6; }
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19401 $as_echo "$LIBICONV" >&6; }
19402 else
19403 CPPFLAGS="$am_save_CPPFLAGS"
19404 LIBICONV=
19405 LTLIBICONV=
19406 fi
19407
19408
19409
19410 if test "$am_cv_func_iconv" = yes; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19412 $as_echo_n "checking for iconv declaration... " >&6; }
19413 if ${am_cv_proto_iconv+:} false; then :
19414 $as_echo_n "(cached) " >&6
19415 else
19416
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19419
19420 #include <stdlib.h>
19421 #include <iconv.h>
19422 extern
19423 #ifdef __cplusplus
19424 "C"
19425 #endif
19426 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
19427 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19428 #else
19429 size_t iconv();
19430 #endif
19431
19432 int
19433 main ()
19434 {
19435
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 if ac_fn_c_try_compile "$LINENO"; then :
19441 am_cv_proto_iconv_arg1=""
19442 else
19443 am_cv_proto_iconv_arg1="const"
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 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);"
19447 fi
19448
19449 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
19451 $am_cv_proto_iconv" >&5
19452 $as_echo "
19453 $am_cv_proto_iconv" >&6; }
19454
19455 cat >>confdefs.h <<_ACEOF
19456 #define ICONV_CONST $am_cv_proto_iconv_arg1
19457 _ACEOF
19458
19459
19460 fi
19461
19462 case $am_cv_func_iconv in #(
19463 yes) :
19464 ;; #(
19465 *) :
19466
19467 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
19468 case $cy_iconv_prefix_arg in #(
19469 -I*) :
19470
19471
19472 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
19473 haveit=
19474 for x in $cy_iconv_prefixes; do
19475
19476 acl_save_prefix="$prefix"
19477 prefix="$acl_final_prefix"
19478 acl_save_exec_prefix="$exec_prefix"
19479 exec_prefix="$acl_final_exec_prefix"
19480 eval x=\"$x\"
19481 exec_prefix="$acl_save_exec_prefix"
19482 prefix="$acl_save_prefix"
19483
19484 if test "X$x" = "X$element"; then
19485 haveit=yes
19486 break
19487 fi
19488 done
19489 if test -z "$haveit"; then
19490 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19491 fi
19492 done
19493
19494 ;; #(
19495 -L*) :
19496
19497
19498 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
19499 haveit=
19500 for x in $cy_iconv_prefixes; do
19501
19502 acl_save_prefix="$prefix"
19503 prefix="$acl_final_prefix"
19504 acl_save_exec_prefix="$exec_prefix"
19505 exec_prefix="$acl_final_exec_prefix"
19506 eval x=\"$x\"
19507 exec_prefix="$acl_save_exec_prefix"
19508 prefix="$acl_save_prefix"
19509
19510 if test "X$x" = "X$element"; then
19511 haveit=yes
19512 break
19513 fi
19514 done
19515 if test -z "$haveit"; then
19516 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
19517 fi
19518 done
19519
19520 ;; #(
19521 *) :
19522 ;;
19523 esac
19524 done
19525 for with_libiconv_prefix in $cy_iconv_prefixes; do
19526 { am_cv_func_iconv=; unset am_cv_func_iconv;}
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538 use_additional=yes
19539
19540 acl_save_prefix="$prefix"
19541 prefix="$acl_final_prefix"
19542 acl_save_exec_prefix="$exec_prefix"
19543 exec_prefix="$acl_final_exec_prefix"
19544
19545 eval additional_includedir=\"$includedir\"
19546 eval additional_libdir=\"$libdir\"
19547
19548 exec_prefix="$acl_save_exec_prefix"
19549 prefix="$acl_save_prefix"
19550
19551
19552 # Check whether --with-libiconv-prefix was given.
19553 if test "${with_libiconv_prefix+set}" = set; then :
19554 withval=$with_libiconv_prefix;
19555 if test "X$withval" = "Xno"; then
19556 use_additional=no
19557 else
19558 if test "X$withval" = "X"; then
19559
19560 acl_save_prefix="$prefix"
19561 prefix="$acl_final_prefix"
19562 acl_save_exec_prefix="$exec_prefix"
19563 exec_prefix="$acl_final_exec_prefix"
19564
19565 eval additional_includedir=\"$includedir\"
19566 eval additional_libdir=\"$libdir\"
19567
19568 exec_prefix="$acl_save_exec_prefix"
19569 prefix="$acl_save_prefix"
19570
19571 else
19572 additional_includedir="$withval/include"
19573 additional_libdir="$withval/$acl_libdirstem"
19574 if test "$acl_libdirstem2" != "$acl_libdirstem" \
19575 && ! test -d "$withval/$acl_libdirstem"; then
19576 additional_libdir="$withval/$acl_libdirstem2"
19577 fi
19578 fi
19579 fi
19580
19581 fi
19582
19583 LIBICONV=
19584 LTLIBICONV=
19585 INCICONV=
19586 LIBICONV_PREFIX=
19587 HAVE_LIBICONV=
19588 rpathdirs=
19589 ltrpathdirs=
19590 names_already_handled=
19591 names_next_round='iconv '
19592 while test -n "$names_next_round"; do
19593 names_this_round="$names_next_round"
19594 names_next_round=
19595 for name in $names_this_round; do
19596 already_handled=
19597 for n in $names_already_handled; do
19598 if test "$n" = "$name"; then
19599 already_handled=yes
19600 break
19601 fi
19602 done
19603 if test -z "$already_handled"; then
19604 names_already_handled="$names_already_handled $name"
19605 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19606 eval value=\"\$HAVE_LIB$uppername\"
19607 if test -n "$value"; then
19608 if test "$value" = yes; then
19609 eval value=\"\$LIB$uppername\"
19610 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19611 eval value=\"\$LTLIB$uppername\"
19612 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19613 else
19614 :
19615 fi
19616 else
19617 found_dir=
19618 found_la=
19619 found_so=
19620 found_a=
19621 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
19622 if test -n "$acl_shlibext"; then
19623 shrext=".$acl_shlibext" # typically: shrext=.so
19624 else
19625 shrext=
19626 fi
19627 if test $use_additional = yes; then
19628 dir="$additional_libdir"
19629 if test -n "$acl_shlibext"; then
19630 if test -f "$dir/$libname$shrext"; then
19631 found_dir="$dir"
19632 found_so="$dir/$libname$shrext"
19633 else
19634 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19635 ver=`(cd "$dir" && \
19636 for f in "$libname$shrext".*; do echo "$f"; done \
19637 | sed -e "s,^$libname$shrext\\\\.,," \
19638 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19639 | sed 1q ) 2>/dev/null`
19640 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19641 found_dir="$dir"
19642 found_so="$dir/$libname$shrext.$ver"
19643 fi
19644 else
19645 eval library_names=\"$acl_library_names_spec\"
19646 for f in $library_names; do
19647 if test -f "$dir/$f"; then
19648 found_dir="$dir"
19649 found_so="$dir/$f"
19650 break
19651 fi
19652 done
19653 fi
19654 fi
19655 fi
19656 if test "X$found_dir" = "X"; then
19657 if test -f "$dir/$libname.$acl_libext"; then
19658 found_dir="$dir"
19659 found_a="$dir/$libname.$acl_libext"
19660 fi
19661 fi
19662 if test "X$found_dir" != "X"; then
19663 if test -f "$dir/$libname.la"; then
19664 found_la="$dir/$libname.la"
19665 fi
19666 fi
19667 fi
19668 if test "X$found_dir" = "X"; then
19669 for x in $LDFLAGS $LTLIBICONV; do
19670
19671 acl_save_prefix="$prefix"
19672 prefix="$acl_final_prefix"
19673 acl_save_exec_prefix="$exec_prefix"
19674 exec_prefix="$acl_final_exec_prefix"
19675 eval x=\"$x\"
19676 exec_prefix="$acl_save_exec_prefix"
19677 prefix="$acl_save_prefix"
19678
19679 case "$x" in
19680 -L*)
19681 dir=`echo "X$x" | sed -e 's/^X-L//'`
19682 if test -n "$acl_shlibext"; then
19683 if test -f "$dir/$libname$shrext"; then
19684 found_dir="$dir"
19685 found_so="$dir/$libname$shrext"
19686 else
19687 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19688 ver=`(cd "$dir" && \
19689 for f in "$libname$shrext".*; do echo "$f"; done \
19690 | sed -e "s,^$libname$shrext\\\\.,," \
19691 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19692 | sed 1q ) 2>/dev/null`
19693 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19694 found_dir="$dir"
19695 found_so="$dir/$libname$shrext.$ver"
19696 fi
19697 else
19698 eval library_names=\"$acl_library_names_spec\"
19699 for f in $library_names; do
19700 if test -f "$dir/$f"; then
19701 found_dir="$dir"
19702 found_so="$dir/$f"
19703 break
19704 fi
19705 done
19706 fi
19707 fi
19708 fi
19709 if test "X$found_dir" = "X"; then
19710 if test -f "$dir/$libname.$acl_libext"; then
19711 found_dir="$dir"
19712 found_a="$dir/$libname.$acl_libext"
19713 fi
19714 fi
19715 if test "X$found_dir" != "X"; then
19716 if test -f "$dir/$libname.la"; then
19717 found_la="$dir/$libname.la"
19718 fi
19719 fi
19720 ;;
19721 esac
19722 if test "X$found_dir" != "X"; then
19723 break
19724 fi
19725 done
19726 fi
19727 if test "X$found_dir" != "X"; then
19728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
19729 if test "X$found_so" != "X"; then
19730 if test "$enable_rpath" = no \
19731 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19732 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19734 else
19735 haveit=
19736 for x in $ltrpathdirs; do
19737 if test "X$x" = "X$found_dir"; then
19738 haveit=yes
19739 break
19740 fi
19741 done
19742 if test -z "$haveit"; then
19743 ltrpathdirs="$ltrpathdirs $found_dir"
19744 fi
19745 if test "$acl_hardcode_direct" = yes; then
19746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19747 else
19748 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19749 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19750 haveit=
19751 for x in $rpathdirs; do
19752 if test "X$x" = "X$found_dir"; then
19753 haveit=yes
19754 break
19755 fi
19756 done
19757 if test -z "$haveit"; then
19758 rpathdirs="$rpathdirs $found_dir"
19759 fi
19760 else
19761 haveit=
19762 for x in $LDFLAGS $LIBICONV; do
19763
19764 acl_save_prefix="$prefix"
19765 prefix="$acl_final_prefix"
19766 acl_save_exec_prefix="$exec_prefix"
19767 exec_prefix="$acl_final_exec_prefix"
19768 eval x=\"$x\"
19769 exec_prefix="$acl_save_exec_prefix"
19770 prefix="$acl_save_prefix"
19771
19772 if test "X$x" = "X-L$found_dir"; then
19773 haveit=yes
19774 break
19775 fi
19776 done
19777 if test -z "$haveit"; then
19778 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
19779 fi
19780 if test "$acl_hardcode_minus_L" != no; then
19781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
19782 else
19783 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19784 fi
19785 fi
19786 fi
19787 fi
19788 else
19789 if test "X$found_a" != "X"; then
19790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
19791 else
19792 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
19793 fi
19794 fi
19795 additional_includedir=
19796 case "$found_dir" in
19797 */$acl_libdirstem | */$acl_libdirstem/)
19798 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19799 if test "$name" = 'iconv'; then
19800 LIBICONV_PREFIX="$basedir"
19801 fi
19802 additional_includedir="$basedir/include"
19803 ;;
19804 */$acl_libdirstem2 | */$acl_libdirstem2/)
19805 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19806 if test "$name" = 'iconv'; then
19807 LIBICONV_PREFIX="$basedir"
19808 fi
19809 additional_includedir="$basedir/include"
19810 ;;
19811 esac
19812 if test "X$additional_includedir" != "X"; then
19813 if test "X$additional_includedir" != "X/usr/include"; then
19814 haveit=
19815 if test "X$additional_includedir" = "X/usr/local/include"; then
19816 if test -n "$GCC"; then
19817 case $host_os in
19818 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19819 esac
19820 fi
19821 fi
19822 if test -z "$haveit"; then
19823 for x in $CPPFLAGS $INCICONV; do
19824
19825 acl_save_prefix="$prefix"
19826 prefix="$acl_final_prefix"
19827 acl_save_exec_prefix="$exec_prefix"
19828 exec_prefix="$acl_final_exec_prefix"
19829 eval x=\"$x\"
19830 exec_prefix="$acl_save_exec_prefix"
19831 prefix="$acl_save_prefix"
19832
19833 if test "X$x" = "X-I$additional_includedir"; then
19834 haveit=yes
19835 break
19836 fi
19837 done
19838 if test -z "$haveit"; then
19839 if test -d "$additional_includedir"; then
19840 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
19841 fi
19842 fi
19843 fi
19844 fi
19845 fi
19846 if test -n "$found_la"; then
19847 save_libdir="$libdir"
19848 case "$found_la" in
19849 */* | *\\*) . "$found_la" ;;
19850 *) . "./$found_la" ;;
19851 esac
19852 libdir="$save_libdir"
19853 for dep in $dependency_libs; do
19854 case "$dep" in
19855 -L*)
19856 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19857 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19858 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19859 haveit=
19860 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19861 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19862 if test -n "$GCC"; then
19863 case $host_os in
19864 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19865 esac
19866 fi
19867 fi
19868 if test -z "$haveit"; then
19869 haveit=
19870 for x in $LDFLAGS $LIBICONV; do
19871
19872 acl_save_prefix="$prefix"
19873 prefix="$acl_final_prefix"
19874 acl_save_exec_prefix="$exec_prefix"
19875 exec_prefix="$acl_final_exec_prefix"
19876 eval x=\"$x\"
19877 exec_prefix="$acl_save_exec_prefix"
19878 prefix="$acl_save_prefix"
19879
19880 if test "X$x" = "X-L$additional_libdir"; then
19881 haveit=yes
19882 break
19883 fi
19884 done
19885 if test -z "$haveit"; then
19886 if test -d "$additional_libdir"; then
19887 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
19888 fi
19889 fi
19890 haveit=
19891 for x in $LDFLAGS $LTLIBICONV; do
19892
19893 acl_save_prefix="$prefix"
19894 prefix="$acl_final_prefix"
19895 acl_save_exec_prefix="$exec_prefix"
19896 exec_prefix="$acl_final_exec_prefix"
19897 eval x=\"$x\"
19898 exec_prefix="$acl_save_exec_prefix"
19899 prefix="$acl_save_prefix"
19900
19901 if test "X$x" = "X-L$additional_libdir"; then
19902 haveit=yes
19903 break
19904 fi
19905 done
19906 if test -z "$haveit"; then
19907 if test -d "$additional_libdir"; then
19908 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
19909 fi
19910 fi
19911 fi
19912 fi
19913 ;;
19914 -R*)
19915 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19916 if test "$enable_rpath" != no; then
19917 haveit=
19918 for x in $rpathdirs; do
19919 if test "X$x" = "X$dir"; then
19920 haveit=yes
19921 break
19922 fi
19923 done
19924 if test -z "$haveit"; then
19925 rpathdirs="$rpathdirs $dir"
19926 fi
19927 haveit=
19928 for x in $ltrpathdirs; do
19929 if test "X$x" = "X$dir"; then
19930 haveit=yes
19931 break
19932 fi
19933 done
19934 if test -z "$haveit"; then
19935 ltrpathdirs="$ltrpathdirs $dir"
19936 fi
19937 fi
19938 ;;
19939 -l*)
19940 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19941 ;;
19942 *.la)
19943 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19944 ;;
19945 *)
19946 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
19947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
19948 ;;
19949 esac
19950 done
19951 fi
19952 else
19953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
19954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
19955 fi
19956 fi
19957 fi
19958 done
19959 done
19960 if test "X$rpathdirs" != "X"; then
19961 if test -n "$acl_hardcode_libdir_separator"; then
19962 alldirs=
19963 for found_dir in $rpathdirs; do
19964 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19965 done
19966 acl_save_libdir="$libdir"
19967 libdir="$alldirs"
19968 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19969 libdir="$acl_save_libdir"
19970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19971 else
19972 for found_dir in $rpathdirs; do
19973 acl_save_libdir="$libdir"
19974 libdir="$found_dir"
19975 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19976 libdir="$acl_save_libdir"
19977 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
19978 done
19979 fi
19980 fi
19981 if test "X$ltrpathdirs" != "X"; then
19982 for found_dir in $ltrpathdirs; do
19983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
19984 done
19985 fi
19986
19987
19988
19989
19990
19991
19992
19993
19994 done
19995 ;;
19996 esac
19997 case $am_cv_func_iconv in #(
19998 yes) :
19999 ;; #(
20000 *) :
20001 as_fn_error $? "You need iconv" "$LINENO" 5 ;;
20002 esac
20003 ac_ext=cpp
20004 ac_cpp='$CXXCPP $CPPFLAGS'
20005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20008
20009 SO=$acl_shlibext
20010
20011 if test "x$CY_OBJECTIVEC" = x1; then :
20012
20013 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20014 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20015
20016 if test -n "$ac_tool_prefix"; then
20017 for ac_prog in otool
20018 do
20019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20022 $as_echo_n "checking for $ac_word... " >&6; }
20023 if ${ac_cv_prog__OTOOL+:} false; then :
20024 $as_echo_n "(cached) " >&6
20025 else
20026 if test -n "$_OTOOL"; then
20027 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20028 else
20029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20030 for as_dir in $PATH
20031 do
20032 IFS=$as_save_IFS
20033 test -z "$as_dir" && as_dir=.
20034 for ac_exec_ext in '' $ac_executable_extensions; do
20035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20036 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20038 break 2
20039 fi
20040 done
20041 done
20042 IFS=$as_save_IFS
20043
20044 fi
20045 fi
20046 _OTOOL=$ac_cv_prog__OTOOL
20047 if test -n "$_OTOOL"; then
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20049 $as_echo "$_OTOOL" >&6; }
20050 else
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20052 $as_echo "no" >&6; }
20053 fi
20054
20055
20056 test -n "$_OTOOL" && break
20057 done
20058 fi
20059 if test -z "$_OTOOL"; then
20060 ac_ct__OTOOL=$_OTOOL
20061 for ac_prog in otool
20062 do
20063 # Extract the first word of "$ac_prog", so it can be a program name with args.
20064 set dummy $ac_prog; ac_word=$2
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20066 $as_echo_n "checking for $ac_word... " >&6; }
20067 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20068 $as_echo_n "(cached) " >&6
20069 else
20070 if test -n "$ac_ct__OTOOL"; then
20071 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20072 else
20073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20075 do
20076 IFS=$as_save_IFS
20077 test -z "$as_dir" && as_dir=.
20078 for ac_exec_ext in '' $ac_executable_extensions; do
20079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20080 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20082 break 2
20083 fi
20084 done
20085 done
20086 IFS=$as_save_IFS
20087
20088 fi
20089 fi
20090 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20091 if test -n "$ac_ct__OTOOL"; then
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20093 $as_echo "$ac_ct__OTOOL" >&6; }
20094 else
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20096 $as_echo "no" >&6; }
20097 fi
20098
20099
20100 test -n "$ac_ct__OTOOL" && break
20101 done
20102
20103 if test "x$ac_ct__OTOOL" = x; then
20104 _OTOOL=""
20105 else
20106 case $cross_compiling:$ac_tool_warned in
20107 yes:)
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20110 ac_tool_warned=yes ;;
20111 esac
20112 _OTOOL=$ac_ct__OTOOL
20113 fi
20114 fi
20115
20116 if test "x$_OTOOL" = x; then :
20117 as_fn_error $? "You need otool" "$LINENO" 5
20118 fi
20119 if test -n "$ac_tool_prefix"; then
20120 for ac_prog in lipo
20121 do
20122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20125 $as_echo_n "checking for $ac_word... " >&6; }
20126 if ${ac_cv_prog__LIPO+:} false; then :
20127 $as_echo_n "(cached) " >&6
20128 else
20129 if test -n "$_LIPO"; then
20130 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20131 else
20132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20134 do
20135 IFS=$as_save_IFS
20136 test -z "$as_dir" && as_dir=.
20137 for ac_exec_ext in '' $ac_executable_extensions; do
20138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20141 break 2
20142 fi
20143 done
20144 done
20145 IFS=$as_save_IFS
20146
20147 fi
20148 fi
20149 _LIPO=$ac_cv_prog__LIPO
20150 if test -n "$_LIPO"; then
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20152 $as_echo "$_LIPO" >&6; }
20153 else
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155 $as_echo "no" >&6; }
20156 fi
20157
20158
20159 test -n "$_LIPO" && break
20160 done
20161 fi
20162 if test -z "$_LIPO"; then
20163 ac_ct__LIPO=$_LIPO
20164 for ac_prog in lipo
20165 do
20166 # Extract the first word of "$ac_prog", so it can be a program name with args.
20167 set dummy $ac_prog; ac_word=$2
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20169 $as_echo_n "checking for $ac_word... " >&6; }
20170 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20171 $as_echo_n "(cached) " >&6
20172 else
20173 if test -n "$ac_ct__LIPO"; then
20174 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20175 else
20176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20177 for as_dir in $PATH
20178 do
20179 IFS=$as_save_IFS
20180 test -z "$as_dir" && as_dir=.
20181 for ac_exec_ext in '' $ac_executable_extensions; do
20182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20183 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20185 break 2
20186 fi
20187 done
20188 done
20189 IFS=$as_save_IFS
20190
20191 fi
20192 fi
20193 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20194 if test -n "$ac_ct__LIPO"; then
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20196 $as_echo "$ac_ct__LIPO" >&6; }
20197 else
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20199 $as_echo "no" >&6; }
20200 fi
20201
20202
20203 test -n "$ac_ct__LIPO" && break
20204 done
20205
20206 if test "x$ac_ct__LIPO" = x; then
20207 _LIPO=""
20208 else
20209 case $cross_compiling:$ac_tool_warned in
20210 yes:)
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20213 ac_tool_warned=yes ;;
20214 esac
20215 _LIPO=$ac_ct__LIPO
20216 fi
20217 fi
20218
20219 if test "x$_LIPO" = x; then :
20220 as_fn_error $? "You need lipo" "$LINENO" 5
20221 fi
20222 if test -n "$ac_tool_prefix"; then
20223 for ac_prog in nm
20224 do
20225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20228 $as_echo_n "checking for $ac_word... " >&6; }
20229 if ${ac_cv_prog__NM+:} false; then :
20230 $as_echo_n "(cached) " >&6
20231 else
20232 if test -n "$_NM"; then
20233 ac_cv_prog__NM="$_NM" # Let the user override the test.
20234 else
20235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20236 for as_dir in $PATH
20237 do
20238 IFS=$as_save_IFS
20239 test -z "$as_dir" && as_dir=.
20240 for ac_exec_ext in '' $ac_executable_extensions; do
20241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20242 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20244 break 2
20245 fi
20246 done
20247 done
20248 IFS=$as_save_IFS
20249
20250 fi
20251 fi
20252 _NM=$ac_cv_prog__NM
20253 if test -n "$_NM"; then
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20255 $as_echo "$_NM" >&6; }
20256 else
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20258 $as_echo "no" >&6; }
20259 fi
20260
20261
20262 test -n "$_NM" && break
20263 done
20264 fi
20265 if test -z "$_NM"; then
20266 ac_ct__NM=$_NM
20267 for ac_prog in nm
20268 do
20269 # Extract the first word of "$ac_prog", so it can be a program name with args.
20270 set dummy $ac_prog; ac_word=$2
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20272 $as_echo_n "checking for $ac_word... " >&6; }
20273 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20274 $as_echo_n "(cached) " >&6
20275 else
20276 if test -n "$ac_ct__NM"; then
20277 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20278 else
20279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20280 for as_dir in $PATH
20281 do
20282 IFS=$as_save_IFS
20283 test -z "$as_dir" && as_dir=.
20284 for ac_exec_ext in '' $ac_executable_extensions; do
20285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20286 ac_cv_prog_ac_ct__NM="$ac_prog"
20287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20288 break 2
20289 fi
20290 done
20291 done
20292 IFS=$as_save_IFS
20293
20294 fi
20295 fi
20296 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20297 if test -n "$ac_ct__NM"; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20299 $as_echo "$ac_ct__NM" >&6; }
20300 else
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 $as_echo "no" >&6; }
20303 fi
20304
20305
20306 test -n "$ac_ct__NM" && break
20307 done
20308
20309 if test "x$ac_ct__NM" = x; then
20310 _NM=""
20311 else
20312 case $cross_compiling:$ac_tool_warned in
20313 yes:)
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20316 ac_tool_warned=yes ;;
20317 esac
20318 _NM=$ac_ct__NM
20319 fi
20320 fi
20321
20322 if test "x$_NM" = x; then :
20323 as_fn_error $? "You need nm" "$LINENO" 5
20324 fi
20325 CY_OBJECTIVEC_MACH=1
20326
20327 CY_ATTACH_GROUP=procmod
20328
20329
20330 fi
20331
20332
20333
20334 fi
20335 if test "x$GMAKE" != xmake; then :
20336
20337 ac_config_files="$ac_config_files Makefile"
20338
20339
20340 fi
20341 ac_config_files="$ac_config_files GNUmakefile"
20342
20343 cat >confcache <<\_ACEOF
20344 # This file is a shell script that caches the results of configure
20345 # tests run on this system so they can be shared between configure
20346 # scripts and configure runs, see configure's option --config-cache.
20347 # It is not useful on other systems. If it contains results you don't
20348 # want to keep, you may remove or edit it.
20349 #
20350 # config.status only pays attention to the cache file if you give it
20351 # the --recheck option to rerun configure.
20352 #
20353 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20354 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20355 # following values.
20356
20357 _ACEOF
20358
20359 # The following way of writing the cache mishandles newlines in values,
20360 # but we know of no workaround that is simple, portable, and efficient.
20361 # So, we kill variables containing newlines.
20362 # Ultrix sh set writes to stderr and can't be redirected directly,
20363 # and sets the high bit in the cache file unless we assign to the vars.
20364 (
20365 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20366 eval ac_val=\$$ac_var
20367 case $ac_val in #(
20368 *${as_nl}*)
20369 case $ac_var in #(
20370 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20371 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20372 esac
20373 case $ac_var in #(
20374 _ | IFS | as_nl) ;; #(
20375 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20376 *) { eval $ac_var=; unset $ac_var;} ;;
20377 esac ;;
20378 esac
20379 done
20380
20381 (set) 2>&1 |
20382 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20383 *${as_nl}ac_space=\ *)
20384 # `set' does not quote correctly, so add quotes: double-quote
20385 # substitution turns \\\\ into \\, and sed turns \\ into \.
20386 sed -n \
20387 "s/'/'\\\\''/g;
20388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20389 ;; #(
20390 *)
20391 # `set' quotes correctly as required by POSIX, so do not add quotes.
20392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20393 ;;
20394 esac |
20395 sort
20396 ) |
20397 sed '
20398 /^ac_cv_env_/b end
20399 t clear
20400 :clear
20401 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20402 t end
20403 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20404 :end' >>confcache
20405 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20406 if test -w "$cache_file"; then
20407 if test "x$cache_file" != "x/dev/null"; then
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20409 $as_echo "$as_me: updating cache $cache_file" >&6;}
20410 if test ! -f "$cache_file" || test -h "$cache_file"; then
20411 cat confcache >"$cache_file"
20412 else
20413 case $cache_file in #(
20414 */* | ?:*)
20415 mv -f confcache "$cache_file"$$ &&
20416 mv -f "$cache_file"$$ "$cache_file" ;; #(
20417 *)
20418 mv -f confcache "$cache_file" ;;
20419 esac
20420 fi
20421 fi
20422 else
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20425 fi
20426 fi
20427 rm -f confcache
20428
20429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20430 # Let make expand exec_prefix.
20431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20432
20433 # Transform confdefs.h into DEFS.
20434 # Protect against shell expansion while executing Makefile rules.
20435 # Protect against Makefile macro expansion.
20436 #
20437 # If the first sed substitution is executed (which looks for macros that
20438 # take arguments), then branch to the quote section. Otherwise,
20439 # look for a macro that doesn't take arguments.
20440 ac_script='
20441 :mline
20442 /\\$/{
20443 N
20444 s,\\\n,,
20445 b mline
20446 }
20447 t clear
20448 :clear
20449 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20450 t quote
20451 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20452 t quote
20453 b any
20454 :quote
20455 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20456 s/\[/\\&/g
20457 s/\]/\\&/g
20458 s/\$/$$/g
20459 H
20460 :any
20461 ${
20462 g
20463 s/^\n//
20464 s/\n/ /g
20465 p
20466 }
20467 '
20468 DEFS=`sed -n "$ac_script" confdefs.h`
20469
20470
20471 ac_libobjs=
20472 ac_ltlibobjs=
20473 U=
20474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20475 # 1. Remove the extension, and $U if already installed.
20476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20479 # will be set to the directory where LIBOBJS objects are built.
20480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20482 done
20483 LIBOBJS=$ac_libobjs
20484
20485 LTLIBOBJS=$ac_ltlibobjs
20486
20487
20488
20489 : "${CONFIG_STATUS=./config.status}"
20490 ac_write_fail=0
20491 ac_clean_files_save=$ac_clean_files
20492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20495 as_write_fail=0
20496 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20497 #! $SHELL
20498 # Generated by $as_me.
20499 # Run this file to recreate the current configuration.
20500 # Compiler output produced by configure, useful for debugging
20501 # configure, is in config.log if it exists.
20502
20503 debug=false
20504 ac_cs_recheck=false
20505 ac_cs_silent=false
20506
20507 SHELL=\${CONFIG_SHELL-$SHELL}
20508 export SHELL
20509 _ASEOF
20510 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20511 ## -------------------- ##
20512 ## M4sh Initialization. ##
20513 ## -------------------- ##
20514
20515 # Be more Bourne compatible
20516 DUALCASE=1; export DUALCASE # for MKS sh
20517 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20518 emulate sh
20519 NULLCMD=:
20520 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20521 # is contrary to our usage. Disable this feature.
20522 alias -g '${1+"$@"}'='"$@"'
20523 setopt NO_GLOB_SUBST
20524 else
20525 case `(set -o) 2>/dev/null` in #(
20526 *posix*) :
20527 set -o posix ;; #(
20528 *) :
20529 ;;
20530 esac
20531 fi
20532
20533
20534 as_nl='
20535 '
20536 export as_nl
20537 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20538 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20539 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20541 # Prefer a ksh shell builtin over an external printf program on Solaris,
20542 # but without wasting forks for bash or zsh.
20543 if test -z "$BASH_VERSION$ZSH_VERSION" \
20544 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20545 as_echo='print -r --'
20546 as_echo_n='print -rn --'
20547 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20548 as_echo='printf %s\n'
20549 as_echo_n='printf %s'
20550 else
20551 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20552 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20553 as_echo_n='/usr/ucb/echo -n'
20554 else
20555 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20556 as_echo_n_body='eval
20557 arg=$1;
20558 case $arg in #(
20559 *"$as_nl"*)
20560 expr "X$arg" : "X\\(.*\\)$as_nl";
20561 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20562 esac;
20563 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20564 '
20565 export as_echo_n_body
20566 as_echo_n='sh -c $as_echo_n_body as_echo'
20567 fi
20568 export as_echo_body
20569 as_echo='sh -c $as_echo_body as_echo'
20570 fi
20571
20572 # The user is always right.
20573 if test "${PATH_SEPARATOR+set}" != set; then
20574 PATH_SEPARATOR=:
20575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20576 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20577 PATH_SEPARATOR=';'
20578 }
20579 fi
20580
20581
20582 # IFS
20583 # We need space, tab and new line, in precisely that order. Quoting is
20584 # there to prevent editors from complaining about space-tab.
20585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20586 # splitting by setting IFS to empty value.)
20587 IFS=" "" $as_nl"
20588
20589 # Find who we are. Look in the path if we contain no directory separator.
20590 as_myself=
20591 case $0 in #((
20592 *[\\/]* ) as_myself=$0 ;;
20593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20594 for as_dir in $PATH
20595 do
20596 IFS=$as_save_IFS
20597 test -z "$as_dir" && as_dir=.
20598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20599 done
20600 IFS=$as_save_IFS
20601
20602 ;;
20603 esac
20604 # We did not find ourselves, most probably we were run as `sh COMMAND'
20605 # in which case we are not to be found in the path.
20606 if test "x$as_myself" = x; then
20607 as_myself=$0
20608 fi
20609 if test ! -f "$as_myself"; then
20610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20611 exit 1
20612 fi
20613
20614 # Unset variables that we do not need and which cause bugs (e.g. in
20615 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20616 # suppresses any "Segmentation fault" message there. '((' could
20617 # trigger a bug in pdksh 5.2.14.
20618 for as_var in BASH_ENV ENV MAIL MAILPATH
20619 do eval test x\${$as_var+set} = xset \
20620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20621 done
20622 PS1='$ '
20623 PS2='> '
20624 PS4='+ '
20625
20626 # NLS nuisances.
20627 LC_ALL=C
20628 export LC_ALL
20629 LANGUAGE=C
20630 export LANGUAGE
20631
20632 # CDPATH.
20633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20634
20635
20636 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20637 # ----------------------------------------
20638 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20639 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20640 # script with STATUS, using 1 if that was 0.
20641 as_fn_error ()
20642 {
20643 as_status=$1; test $as_status -eq 0 && as_status=1
20644 if test "$4"; then
20645 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20647 fi
20648 $as_echo "$as_me: error: $2" >&2
20649 as_fn_exit $as_status
20650 } # as_fn_error
20651
20652
20653 # as_fn_set_status STATUS
20654 # -----------------------
20655 # Set $? to STATUS, without forking.
20656 as_fn_set_status ()
20657 {
20658 return $1
20659 } # as_fn_set_status
20660
20661 # as_fn_exit STATUS
20662 # -----------------
20663 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20664 as_fn_exit ()
20665 {
20666 set +e
20667 as_fn_set_status $1
20668 exit $1
20669 } # as_fn_exit
20670
20671 # as_fn_unset VAR
20672 # ---------------
20673 # Portably unset VAR.
20674 as_fn_unset ()
20675 {
20676 { eval $1=; unset $1;}
20677 }
20678 as_unset=as_fn_unset
20679 # as_fn_append VAR VALUE
20680 # ----------------------
20681 # Append the text in VALUE to the end of the definition contained in VAR. Take
20682 # advantage of any shell optimizations that allow amortized linear growth over
20683 # repeated appends, instead of the typical quadratic growth present in naive
20684 # implementations.
20685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20686 eval 'as_fn_append ()
20687 {
20688 eval $1+=\$2
20689 }'
20690 else
20691 as_fn_append ()
20692 {
20693 eval $1=\$$1\$2
20694 }
20695 fi # as_fn_append
20696
20697 # as_fn_arith ARG...
20698 # ------------------
20699 # Perform arithmetic evaluation on the ARGs, and store the result in the
20700 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20701 # must be portable across $(()) and expr.
20702 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20703 eval 'as_fn_arith ()
20704 {
20705 as_val=$(( $* ))
20706 }'
20707 else
20708 as_fn_arith ()
20709 {
20710 as_val=`expr "$@" || test $? -eq 1`
20711 }
20712 fi # as_fn_arith
20713
20714
20715 if expr a : '\(a\)' >/dev/null 2>&1 &&
20716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20717 as_expr=expr
20718 else
20719 as_expr=false
20720 fi
20721
20722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20723 as_basename=basename
20724 else
20725 as_basename=false
20726 fi
20727
20728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20729 as_dirname=dirname
20730 else
20731 as_dirname=false
20732 fi
20733
20734 as_me=`$as_basename -- "$0" ||
20735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20736 X"$0" : 'X\(//\)$' \| \
20737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20738 $as_echo X/"$0" |
20739 sed '/^.*\/\([^/][^/]*\)\/*$/{
20740 s//\1/
20741 q
20742 }
20743 /^X\/\(\/\/\)$/{
20744 s//\1/
20745 q
20746 }
20747 /^X\/\(\/\).*/{
20748 s//\1/
20749 q
20750 }
20751 s/.*/./; q'`
20752
20753 # Avoid depending upon Character Ranges.
20754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20757 as_cr_digits='0123456789'
20758 as_cr_alnum=$as_cr_Letters$as_cr_digits
20759
20760 ECHO_C= ECHO_N= ECHO_T=
20761 case `echo -n x` in #(((((
20762 -n*)
20763 case `echo 'xy\c'` in
20764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20765 xy) ECHO_C='\c';;
20766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20767 ECHO_T=' ';;
20768 esac;;
20769 *)
20770 ECHO_N='-n';;
20771 esac
20772
20773 rm -f conf$$ conf$$.exe conf$$.file
20774 if test -d conf$$.dir; then
20775 rm -f conf$$.dir/conf$$.file
20776 else
20777 rm -f conf$$.dir
20778 mkdir conf$$.dir 2>/dev/null
20779 fi
20780 if (echo >conf$$.file) 2>/dev/null; then
20781 if ln -s conf$$.file conf$$ 2>/dev/null; then
20782 as_ln_s='ln -s'
20783 # ... but there are two gotchas:
20784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20786 # In both cases, we have to default to `cp -pR'.
20787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20788 as_ln_s='cp -pR'
20789 elif ln conf$$.file conf$$ 2>/dev/null; then
20790 as_ln_s=ln
20791 else
20792 as_ln_s='cp -pR'
20793 fi
20794 else
20795 as_ln_s='cp -pR'
20796 fi
20797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20798 rmdir conf$$.dir 2>/dev/null
20799
20800
20801 # as_fn_mkdir_p
20802 # -------------
20803 # Create "$as_dir" as a directory, including parents if necessary.
20804 as_fn_mkdir_p ()
20805 {
20806
20807 case $as_dir in #(
20808 -*) as_dir=./$as_dir;;
20809 esac
20810 test -d "$as_dir" || eval $as_mkdir_p || {
20811 as_dirs=
20812 while :; do
20813 case $as_dir in #(
20814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20815 *) as_qdir=$as_dir;;
20816 esac
20817 as_dirs="'$as_qdir' $as_dirs"
20818 as_dir=`$as_dirname -- "$as_dir" ||
20819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20820 X"$as_dir" : 'X\(//\)[^/]' \| \
20821 X"$as_dir" : 'X\(//\)$' \| \
20822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20823 $as_echo X"$as_dir" |
20824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\(\/\/\)[^/].*/{
20829 s//\1/
20830 q
20831 }
20832 /^X\(\/\/\)$/{
20833 s//\1/
20834 q
20835 }
20836 /^X\(\/\).*/{
20837 s//\1/
20838 q
20839 }
20840 s/.*/./; q'`
20841 test -d "$as_dir" && break
20842 done
20843 test -z "$as_dirs" || eval "mkdir $as_dirs"
20844 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20845
20846
20847 } # as_fn_mkdir_p
20848 if mkdir -p . 2>/dev/null; then
20849 as_mkdir_p='mkdir -p "$as_dir"'
20850 else
20851 test -d ./-p && rmdir ./-p
20852 as_mkdir_p=false
20853 fi
20854
20855
20856 # as_fn_executable_p FILE
20857 # -----------------------
20858 # Test if FILE is an executable regular file.
20859 as_fn_executable_p ()
20860 {
20861 test -f "$1" && test -x "$1"
20862 } # as_fn_executable_p
20863 as_test_x='test -x'
20864 as_executable_p=as_fn_executable_p
20865
20866 # Sed expression to map a string onto a valid CPP name.
20867 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20868
20869 # Sed expression to map a string onto a valid variable name.
20870 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20871
20872
20873 exec 6>&1
20874 ## ----------------------------------- ##
20875 ## Main body of $CONFIG_STATUS script. ##
20876 ## ----------------------------------- ##
20877 _ASEOF
20878 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20879
20880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20881 # Save the log message, to keep $0 and so on meaningful, and to
20882 # report actual input values of CONFIG_FILES etc. instead of their
20883 # values after options handling.
20884 ac_log="
20885 This file was extended by Cycript $as_me 0.9, which was
20886 generated by GNU Autoconf 2.69. Invocation command line was
20887
20888 CONFIG_FILES = $CONFIG_FILES
20889 CONFIG_HEADERS = $CONFIG_HEADERS
20890 CONFIG_LINKS = $CONFIG_LINKS
20891 CONFIG_COMMANDS = $CONFIG_COMMANDS
20892 $ $0 $@
20893
20894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20895 "
20896
20897 _ACEOF
20898
20899 case $ac_config_files in *"
20900 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20901 esac
20902
20903
20904
20905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20906 # Files that config.status was made for.
20907 config_files="$ac_config_files"
20908 config_commands="$ac_config_commands"
20909
20910 _ACEOF
20911
20912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20913 ac_cs_usage="\
20914 \`$as_me' instantiates files and other configuration actions
20915 from templates according to the current configuration. Unless the files
20916 and actions are specified as TAGs, all are instantiated by default.
20917
20918 Usage: $0 [OPTION]... [TAG]...
20919
20920 -h, --help print this help, then exit
20921 -V, --version print version number and configuration settings, then exit
20922 --config print configuration, then exit
20923 -q, --quiet, --silent
20924 do not print progress messages
20925 -d, --debug don't remove temporary files
20926 --recheck update $as_me by reconfiguring in the same conditions
20927 --file=FILE[:TEMPLATE]
20928 instantiate the configuration file FILE
20929
20930 Configuration files:
20931 $config_files
20932
20933 Configuration commands:
20934 $config_commands
20935
20936 Report bugs to <saurik@saurik.com>.
20937 Cycript home page: <http://www.cycript.org/>."
20938
20939 _ACEOF
20940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20941 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20942 ac_cs_version="\\
20943 Cycript config.status 0.9
20944 configured by $0, generated by GNU Autoconf 2.69,
20945 with options \\"\$ac_cs_config\\"
20946
20947 Copyright (C) 2012 Free Software Foundation, Inc.
20948 This config.status script is free software; the Free Software Foundation
20949 gives unlimited permission to copy, distribute and modify it."
20950
20951 ac_pwd='$ac_pwd'
20952 srcdir='$srcdir'
20953 INSTALL='$INSTALL'
20954 test -n "\$AWK" || AWK=awk
20955 _ACEOF
20956
20957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20958 # The default lists apply if the user does not specify any file.
20959 ac_need_defaults=:
20960 while test $# != 0
20961 do
20962 case $1 in
20963 --*=?*)
20964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20966 ac_shift=:
20967 ;;
20968 --*=)
20969 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20970 ac_optarg=
20971 ac_shift=:
20972 ;;
20973 *)
20974 ac_option=$1
20975 ac_optarg=$2
20976 ac_shift=shift
20977 ;;
20978 esac
20979
20980 case $ac_option in
20981 # Handling of the options.
20982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20983 ac_cs_recheck=: ;;
20984 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20985 $as_echo "$ac_cs_version"; exit ;;
20986 --config | --confi | --conf | --con | --co | --c )
20987 $as_echo "$ac_cs_config"; exit ;;
20988 --debug | --debu | --deb | --de | --d | -d )
20989 debug=: ;;
20990 --file | --fil | --fi | --f )
20991 $ac_shift
20992 case $ac_optarg in
20993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20994 '') as_fn_error $? "missing file argument" ;;
20995 esac
20996 as_fn_append CONFIG_FILES " '$ac_optarg'"
20997 ac_need_defaults=false;;
20998 --he | --h | --help | --hel | -h )
20999 $as_echo "$ac_cs_usage"; exit ;;
21000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21002 ac_cs_silent=: ;;
21003
21004 # This is an error.
21005 -*) as_fn_error $? "unrecognized option: \`$1'
21006 Try \`$0 --help' for more information." ;;
21007
21008 *) as_fn_append ac_config_targets " $1"
21009 ac_need_defaults=false ;;
21010
21011 esac
21012 shift
21013 done
21014
21015 ac_configure_extra_args=
21016
21017 if $ac_cs_silent; then
21018 exec 6>/dev/null
21019 ac_configure_extra_args="$ac_configure_extra_args --silent"
21020 fi
21021
21022 _ACEOF
21023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21024 if \$ac_cs_recheck; then
21025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21026 shift
21027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21028 CONFIG_SHELL='$SHELL'
21029 export CONFIG_SHELL
21030 exec "\$@"
21031 fi
21032
21033 _ACEOF
21034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21035 exec 5>>config.log
21036 {
21037 echo
21038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21039 ## Running $as_me. ##
21040 _ASBOX
21041 $as_echo "$ac_log"
21042 } >&5
21043
21044 _ACEOF
21045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21046 #
21047 # INIT-COMMANDS
21048 #
21049
21050
21051 # The HP-UX ksh and POSIX shell print the target directory to stdout
21052 # if CDPATH is set.
21053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21054
21055 sed_quote_subst='$sed_quote_subst'
21056 double_quote_subst='$double_quote_subst'
21057 delay_variable_subst='$delay_variable_subst'
21058 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21059 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21060 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21061 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21062 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21063 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21064 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21065 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21066 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21067 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21068 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21069 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21070 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21071 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21072 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21073 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21074 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21075 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21076 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21077 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21078 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21079 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21080 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21081 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21082 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21083 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21084 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21085 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21086 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21087 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21088 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21089 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21090 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21091 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21092 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21093 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21094 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21095 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21096 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21097 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21098 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21099 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21100 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21101 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21102 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21103 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21104 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21105 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21106 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21107 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21108 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21109 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21110 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21111 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21112 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21113 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21114 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"`'
21115 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21116 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21117 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21118 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21119 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21120 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21121 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21122 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21123 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21124 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21125 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21126 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21127 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21128 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21129 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21130 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21131 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21132 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21133 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21134 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21135 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21136 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21137 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21138 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21139 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21140 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21141 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21142 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21143 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21144 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21145 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21146 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21147 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21148 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21149 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21150 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21151 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21152 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21153 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21154 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21155 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21156 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21157 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21158 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21159 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21160 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21161 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21162 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21163 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21164 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21165 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21166 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21167 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21168 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21169 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21170 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21171 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21172 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21173 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21174 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21175 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21176 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21177 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21178 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21179 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21180 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21181 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21182 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21183 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21184 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21185 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21186 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21187 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21188 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21189 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21190 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21191 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21192 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21193 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21194 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21195 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21196 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21197 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21198 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21199 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21200 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21201 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21202 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21203 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21204 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21205 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21206 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21207 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21208 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21209 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21210 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21211 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21212 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21213 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21214 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21215 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21216 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21217 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21218 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21219 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21220 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21221 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21222 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21223 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21224 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21225 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21226 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21227 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21228 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21229 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21230 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21231 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21232 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21233 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21234 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21235 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21236 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21237 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21238 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21239 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21240 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21241 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21242
21243 LTCC='$LTCC'
21244 LTCFLAGS='$LTCFLAGS'
21245 compiler='$compiler_DEFAULT'
21246
21247 # A function that is used when there is no print builtin or printf.
21248 func_fallback_echo ()
21249 {
21250 eval 'cat <<_LTECHO_EOF
21251 \$1
21252 _LTECHO_EOF'
21253 }
21254
21255 # Quote evaled strings.
21256 for var in SHELL \
21257 ECHO \
21258 PATH_SEPARATOR \
21259 SED \
21260 GREP \
21261 EGREP \
21262 FGREP \
21263 LD \
21264 NM \
21265 LN_S \
21266 lt_SP2NL \
21267 lt_NL2SP \
21268 reload_flag \
21269 OBJDUMP \
21270 deplibs_check_method \
21271 file_magic_cmd \
21272 file_magic_glob \
21273 want_nocaseglob \
21274 DLLTOOL \
21275 sharedlib_from_linklib_cmd \
21276 AR \
21277 AR_FLAGS \
21278 archiver_list_spec \
21279 STRIP \
21280 RANLIB \
21281 CC \
21282 CFLAGS \
21283 compiler \
21284 lt_cv_sys_global_symbol_pipe \
21285 lt_cv_sys_global_symbol_to_cdecl \
21286 lt_cv_sys_global_symbol_to_c_name_address \
21287 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21288 nm_file_list_spec \
21289 lt_prog_compiler_no_builtin_flag \
21290 lt_prog_compiler_pic \
21291 lt_prog_compiler_wl \
21292 lt_prog_compiler_static \
21293 lt_cv_prog_compiler_c_o \
21294 need_locks \
21295 MANIFEST_TOOL \
21296 DSYMUTIL \
21297 NMEDIT \
21298 LIPO \
21299 OTOOL \
21300 OTOOL64 \
21301 shrext_cmds \
21302 export_dynamic_flag_spec \
21303 whole_archive_flag_spec \
21304 compiler_needs_object \
21305 with_gnu_ld \
21306 allow_undefined_flag \
21307 no_undefined_flag \
21308 hardcode_libdir_flag_spec \
21309 hardcode_libdir_separator \
21310 exclude_expsyms \
21311 include_expsyms \
21312 file_list_spec \
21313 variables_saved_for_relink \
21314 libname_spec \
21315 library_names_spec \
21316 soname_spec \
21317 install_override_mode \
21318 finish_eval \
21319 old_striplib \
21320 striplib \
21321 compiler_lib_search_dirs \
21322 predep_objects \
21323 postdep_objects \
21324 predeps \
21325 postdeps \
21326 compiler_lib_search_path \
21327 LD_CXX \
21328 reload_flag_CXX \
21329 compiler_CXX \
21330 lt_prog_compiler_no_builtin_flag_CXX \
21331 lt_prog_compiler_pic_CXX \
21332 lt_prog_compiler_wl_CXX \
21333 lt_prog_compiler_static_CXX \
21334 lt_cv_prog_compiler_c_o_CXX \
21335 export_dynamic_flag_spec_CXX \
21336 whole_archive_flag_spec_CXX \
21337 compiler_needs_object_CXX \
21338 with_gnu_ld_CXX \
21339 allow_undefined_flag_CXX \
21340 no_undefined_flag_CXX \
21341 hardcode_libdir_flag_spec_CXX \
21342 hardcode_libdir_separator_CXX \
21343 exclude_expsyms_CXX \
21344 include_expsyms_CXX \
21345 file_list_spec_CXX \
21346 compiler_lib_search_dirs_CXX \
21347 predep_objects_CXX \
21348 postdep_objects_CXX \
21349 predeps_CXX \
21350 postdeps_CXX \
21351 compiler_lib_search_path_CXX; do
21352 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21353 *[\\\\\\\`\\"\\\$]*)
21354 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21355 ;;
21356 *)
21357 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21358 ;;
21359 esac
21360 done
21361
21362 # Double-quote double-evaled strings.
21363 for var in reload_cmds \
21364 old_postinstall_cmds \
21365 old_postuninstall_cmds \
21366 old_archive_cmds \
21367 extract_expsyms_cmds \
21368 old_archive_from_new_cmds \
21369 old_archive_from_expsyms_cmds \
21370 archive_cmds \
21371 archive_expsym_cmds \
21372 module_cmds \
21373 module_expsym_cmds \
21374 export_symbols_cmds \
21375 prelink_cmds \
21376 postlink_cmds \
21377 postinstall_cmds \
21378 postuninstall_cmds \
21379 finish_cmds \
21380 sys_lib_search_path_spec \
21381 sys_lib_dlsearch_path_spec \
21382 reload_cmds_CXX \
21383 old_archive_cmds_CXX \
21384 old_archive_from_new_cmds_CXX \
21385 old_archive_from_expsyms_cmds_CXX \
21386 archive_cmds_CXX \
21387 archive_expsym_cmds_CXX \
21388 module_cmds_CXX \
21389 module_expsym_cmds_CXX \
21390 export_symbols_cmds_CXX \
21391 prelink_cmds_CXX \
21392 postlink_cmds_CXX; do
21393 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21394 *[\\\\\\\`\\"\\\$]*)
21395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21396 ;;
21397 *)
21398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21399 ;;
21400 esac
21401 done
21402
21403 ac_aux_dir='$ac_aux_dir'
21404 xsi_shell='$xsi_shell'
21405 lt_shell_append='$lt_shell_append'
21406
21407 # See if we are running on zsh, and set the options which allow our
21408 # commands through without removal of \ escapes INIT.
21409 if test -n "\${ZSH_VERSION+set}" ; then
21410 setopt NO_GLOB_SUBST
21411 fi
21412
21413
21414 PACKAGE='$PACKAGE'
21415 VERSION='$VERSION'
21416 TIMESTAMP='$TIMESTAMP'
21417 RM='$RM'
21418 ofile='$ofile'
21419
21420
21421
21422
21423
21424
21425 _ACEOF
21426
21427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21428
21429 # Handling of arguments.
21430 for ac_config_target in $ac_config_targets
21431 do
21432 case $ac_config_target in
21433 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21434 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21435 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
21436
21437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21438 esac
21439 done
21440
21441
21442 # If the user did not use the arguments to specify the items to instantiate,
21443 # then the envvar interface is used. Set only those that are not.
21444 # We use the long form for the default assignment because of an extremely
21445 # bizarre bug on SunOS 4.1.3.
21446 if $ac_need_defaults; then
21447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21448 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21449 fi
21450
21451 # Have a temporary directory for convenience. Make it in the build tree
21452 # simply because there is no reason against having it here, and in addition,
21453 # creating and moving files from /tmp can sometimes cause problems.
21454 # Hook for its removal unless debugging.
21455 # Note that there is a small window in which the directory will not be cleaned:
21456 # after its creation but before its name has been assigned to `$tmp'.
21457 $debug ||
21458 {
21459 tmp= ac_tmp=
21460 trap 'exit_status=$?
21461 : "${ac_tmp:=$tmp}"
21462 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21463 ' 0
21464 trap 'as_fn_exit 1' 1 2 13 15
21465 }
21466 # Create a (secure) tmp directory for tmp files.
21467
21468 {
21469 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21470 test -d "$tmp"
21471 } ||
21472 {
21473 tmp=./conf$$-$RANDOM
21474 (umask 077 && mkdir "$tmp")
21475 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21476 ac_tmp=$tmp
21477
21478 # Set up the scripts for CONFIG_FILES section.
21479 # No need to generate them if there are no CONFIG_FILES.
21480 # This happens for instance with `./config.status config.h'.
21481 if test -n "$CONFIG_FILES"; then
21482
21483
21484 ac_cr=`echo X | tr X '\015'`
21485 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21486 # But we know of no other shell where ac_cr would be empty at this
21487 # point, so we can use a bashism as a fallback.
21488 if test "x$ac_cr" = x; then
21489 eval ac_cr=\$\'\\r\'
21490 fi
21491 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21492 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21493 ac_cs_awk_cr='\\r'
21494 else
21495 ac_cs_awk_cr=$ac_cr
21496 fi
21497
21498 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21499 _ACEOF
21500
21501
21502 {
21503 echo "cat >conf$$subs.awk <<_ACEOF" &&
21504 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21505 echo "_ACEOF"
21506 } >conf$$subs.sh ||
21507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21509 ac_delim='%!_!# '
21510 for ac_last_try in false false false false false :; do
21511 . ./conf$$subs.sh ||
21512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21513
21514 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21515 if test $ac_delim_n = $ac_delim_num; then
21516 break
21517 elif $ac_last_try; then
21518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21519 else
21520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21521 fi
21522 done
21523 rm -f conf$$subs.sh
21524
21525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21526 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21527 _ACEOF
21528 sed -n '
21529 h
21530 s/^/S["/; s/!.*/"]=/
21531 p
21532 g
21533 s/^[^!]*!//
21534 :repl
21535 t repl
21536 s/'"$ac_delim"'$//
21537 t delim
21538 :nl
21539 h
21540 s/\(.\{148\}\)..*/\1/
21541 t more1
21542 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21543 p
21544 n
21545 b repl
21546 :more1
21547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21548 p
21549 g
21550 s/.\{148\}//
21551 t nl
21552 :delim
21553 h
21554 s/\(.\{148\}\)..*/\1/
21555 t more2
21556 s/["\\]/\\&/g; s/^/"/; s/$/"/
21557 p
21558 b
21559 :more2
21560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21561 p
21562 g
21563 s/.\{148\}//
21564 t delim
21565 ' <conf$$subs.awk | sed '
21566 /^[^""]/{
21567 N
21568 s/\n//
21569 }
21570 ' >>$CONFIG_STATUS || ac_write_fail=1
21571 rm -f conf$$subs.awk
21572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21573 _ACAWK
21574 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21575 for (key in S) S_is_set[key] = 1
21576 FS = "\a"
21577
21578 }
21579 {
21580 line = $ 0
21581 nfields = split(line, field, "@")
21582 substed = 0
21583 len = length(field[1])
21584 for (i = 2; i < nfields; i++) {
21585 key = field[i]
21586 keylen = length(key)
21587 if (S_is_set[key]) {
21588 value = S[key]
21589 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21590 len += length(value) + length(field[++i])
21591 substed = 1
21592 } else
21593 len += 1 + keylen
21594 }
21595
21596 print line
21597 }
21598
21599 _ACAWK
21600 _ACEOF
21601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21602 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21603 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21604 else
21605 cat
21606 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21607 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21608 _ACEOF
21609
21610 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21611 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21612 # trailing colons and then remove the whole line if VPATH becomes empty
21613 # (actually we leave an empty line to preserve line numbers).
21614 if test "x$srcdir" = x.; then
21615 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21616 h
21617 s///
21618 s/^/:/
21619 s/[ ]*$/:/
21620 s/:\$(srcdir):/:/g
21621 s/:\${srcdir}:/:/g
21622 s/:@srcdir@:/:/g
21623 s/^:*//
21624 s/:*$//
21625 x
21626 s/\(=[ ]*\).*/\1/
21627 G
21628 s/\n//
21629 s/^[^=]*=[ ]*$//
21630 }'
21631 fi
21632
21633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21634 fi # test -n "$CONFIG_FILES"
21635
21636
21637 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21638 shift
21639 for ac_tag
21640 do
21641 case $ac_tag in
21642 :[FHLC]) ac_mode=$ac_tag; continue;;
21643 esac
21644 case $ac_mode$ac_tag in
21645 :[FHL]*:*);;
21646 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21647 :[FH]-) ac_tag=-:-;;
21648 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21649 esac
21650 ac_save_IFS=$IFS
21651 IFS=:
21652 set x $ac_tag
21653 IFS=$ac_save_IFS
21654 shift
21655 ac_file=$1
21656 shift
21657
21658 case $ac_mode in
21659 :L) ac_source=$1;;
21660 :[FH])
21661 ac_file_inputs=
21662 for ac_f
21663 do
21664 case $ac_f in
21665 -) ac_f="$ac_tmp/stdin";;
21666 *) # Look for the file first in the build tree, then in the source tree
21667 # (if the path is not absolute). The absolute path cannot be DOS-style,
21668 # because $ac_f cannot contain `:'.
21669 test -f "$ac_f" ||
21670 case $ac_f in
21671 [\\/$]*) false;;
21672 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21673 esac ||
21674 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21675 esac
21676 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21677 as_fn_append ac_file_inputs " '$ac_f'"
21678 done
21679
21680 # Let's still pretend it is `configure' which instantiates (i.e., don't
21681 # use $as_me), people would be surprised to read:
21682 # /* config.h. Generated by config.status. */
21683 configure_input='Generated from '`
21684 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21685 `' by configure.'
21686 if test x"$ac_file" != x-; then
21687 configure_input="$ac_file. $configure_input"
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21689 $as_echo "$as_me: creating $ac_file" >&6;}
21690 fi
21691 # Neutralize special characters interpreted by sed in replacement strings.
21692 case $configure_input in #(
21693 *\&* | *\|* | *\\* )
21694 ac_sed_conf_input=`$as_echo "$configure_input" |
21695 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21696 *) ac_sed_conf_input=$configure_input;;
21697 esac
21698
21699 case $ac_tag in
21700 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21702 esac
21703 ;;
21704 esac
21705
21706 ac_dir=`$as_dirname -- "$ac_file" ||
21707 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21708 X"$ac_file" : 'X\(//\)[^/]' \| \
21709 X"$ac_file" : 'X\(//\)$' \| \
21710 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21711 $as_echo X"$ac_file" |
21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21713 s//\1/
21714 q
21715 }
21716 /^X\(\/\/\)[^/].*/{
21717 s//\1/
21718 q
21719 }
21720 /^X\(\/\/\)$/{
21721 s//\1/
21722 q
21723 }
21724 /^X\(\/\).*/{
21725 s//\1/
21726 q
21727 }
21728 s/.*/./; q'`
21729 as_dir="$ac_dir"; as_fn_mkdir_p
21730 ac_builddir=.
21731
21732 case "$ac_dir" in
21733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21734 *)
21735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21736 # A ".." for each directory in $ac_dir_suffix.
21737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21738 case $ac_top_builddir_sub in
21739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21741 esac ;;
21742 esac
21743 ac_abs_top_builddir=$ac_pwd
21744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21745 # for backward compatibility:
21746 ac_top_builddir=$ac_top_build_prefix
21747
21748 case $srcdir in
21749 .) # We are building in place.
21750 ac_srcdir=.
21751 ac_top_srcdir=$ac_top_builddir_sub
21752 ac_abs_top_srcdir=$ac_pwd ;;
21753 [\\/]* | ?:[\\/]* ) # Absolute name.
21754 ac_srcdir=$srcdir$ac_dir_suffix;
21755 ac_top_srcdir=$srcdir
21756 ac_abs_top_srcdir=$srcdir ;;
21757 *) # Relative name.
21758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21759 ac_top_srcdir=$ac_top_build_prefix$srcdir
21760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21761 esac
21762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21763
21764
21765 case $ac_mode in
21766 :F)
21767 #
21768 # CONFIG_FILE
21769 #
21770
21771 case $INSTALL in
21772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21773 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21774 esac
21775 _ACEOF
21776
21777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21778 # If the template does not know about datarootdir, expand it.
21779 # FIXME: This hack should be removed a few years after 2.60.
21780 ac_datarootdir_hack=; ac_datarootdir_seen=
21781 ac_sed_dataroot='
21782 /datarootdir/ {
21783 p
21784 q
21785 }
21786 /@datadir@/p
21787 /@docdir@/p
21788 /@infodir@/p
21789 /@localedir@/p
21790 /@mandir@/p'
21791 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21792 *datarootdir*) ac_datarootdir_seen=yes;;
21793 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21795 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21796 _ACEOF
21797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21798 ac_datarootdir_hack='
21799 s&@datadir@&$datadir&g
21800 s&@docdir@&$docdir&g
21801 s&@infodir@&$infodir&g
21802 s&@localedir@&$localedir&g
21803 s&@mandir@&$mandir&g
21804 s&\\\${datarootdir}&$datarootdir&g' ;;
21805 esac
21806 _ACEOF
21807
21808 # Neutralize VPATH when `$srcdir' = `.'.
21809 # Shell code in configure.ac might set extrasub.
21810 # FIXME: do we really want to maintain this feature?
21811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21812 ac_sed_extra="$ac_vpsub
21813 $extrasub
21814 _ACEOF
21815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21816 :t
21817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21818 s|@configure_input@|$ac_sed_conf_input|;t t
21819 s&@top_builddir@&$ac_top_builddir_sub&;t t
21820 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21821 s&@srcdir@&$ac_srcdir&;t t
21822 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21823 s&@top_srcdir@&$ac_top_srcdir&;t t
21824 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21825 s&@builddir@&$ac_builddir&;t t
21826 s&@abs_builddir@&$ac_abs_builddir&;t t
21827 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21828 s&@INSTALL@&$ac_INSTALL&;t t
21829 $ac_datarootdir_hack
21830 "
21831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21833
21834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21839 which seems to be undefined. Please make sure it is defined" >&5
21840 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21841 which seems to be undefined. Please make sure it is defined" >&2;}
21842
21843 rm -f "$ac_tmp/stdin"
21844 case $ac_file in
21845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21847 esac \
21848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21849 ;;
21850
21851
21852 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21853 $as_echo "$as_me: executing $ac_file commands" >&6;}
21854 ;;
21855 esac
21856
21857
21858 case $ac_file$ac_mode in
21859 "libtool":C)
21860
21861 # See if we are running on zsh, and set the options which allow our
21862 # commands through without removal of \ escapes.
21863 if test -n "${ZSH_VERSION+set}" ; then
21864 setopt NO_GLOB_SUBST
21865 fi
21866
21867 cfgfile="${ofile}T"
21868 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21869 $RM "$cfgfile"
21870
21871 cat <<_LT_EOF >> "$cfgfile"
21872 #! $SHELL
21873
21874 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21875 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21878 #
21879 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21880 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21881 # Foundation, Inc.
21882 # Written by Gordon Matzigkeit, 1996
21883 #
21884 # This file is part of GNU Libtool.
21885 #
21886 # GNU Libtool is free software; you can redistribute it and/or
21887 # modify it under the terms of the GNU General Public License as
21888 # published by the Free Software Foundation; either version 2 of
21889 # the License, or (at your option) any later version.
21890 #
21891 # As a special exception to the GNU General Public License,
21892 # if you distribute this file as part of a program or library that
21893 # is built using GNU Libtool, you may include this file under the
21894 # same distribution terms that you use for the rest of that program.
21895 #
21896 # GNU Libtool is distributed in the hope that it will be useful,
21897 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21898 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21899 # GNU General Public License for more details.
21900 #
21901 # You should have received a copy of the GNU General Public License
21902 # along with GNU Libtool; see the file COPYING. If not, a copy
21903 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21904 # obtained by writing to the Free Software Foundation, Inc.,
21905 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21906
21907
21908 # The names of the tagged configurations supported by this script.
21909 available_tags="CXX "
21910
21911 # ### BEGIN LIBTOOL CONFIG
21912
21913 # Which release of libtool.m4 was used?
21914 macro_version=$macro_version
21915 macro_revision=$macro_revision
21916
21917 # Whether or not to build static libraries.
21918 build_old_libs=$enable_static
21919
21920 # Whether or not to build shared libraries.
21921 build_libtool_libs=$enable_shared
21922
21923 # What type of objects to build.
21924 pic_mode=$pic_mode
21925
21926 # Whether or not to optimize for fast installation.
21927 fast_install=$enable_fast_install
21928
21929 # Shell to use when invoking shell scripts.
21930 SHELL=$lt_SHELL
21931
21932 # An echo program that protects backslashes.
21933 ECHO=$lt_ECHO
21934
21935 # The PATH separator for the build system.
21936 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21937
21938 # The host system.
21939 host_alias=$host_alias
21940 host=$host
21941 host_os=$host_os
21942
21943 # The build system.
21944 build_alias=$build_alias
21945 build=$build
21946 build_os=$build_os
21947
21948 # A sed program that does not truncate output.
21949 SED=$lt_SED
21950
21951 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21952 Xsed="\$SED -e 1s/^X//"
21953
21954 # A grep program that handles long lines.
21955 GREP=$lt_GREP
21956
21957 # An ERE matcher.
21958 EGREP=$lt_EGREP
21959
21960 # A literal string matcher.
21961 FGREP=$lt_FGREP
21962
21963 # A BSD- or MS-compatible name lister.
21964 NM=$lt_NM
21965
21966 # Whether we need soft or hard links.
21967 LN_S=$lt_LN_S
21968
21969 # What is the maximum length of a command?
21970 max_cmd_len=$max_cmd_len
21971
21972 # Object file suffix (normally "o").
21973 objext=$ac_objext
21974
21975 # Executable file suffix (normally "").
21976 exeext=$exeext
21977
21978 # whether the shell understands "unset".
21979 lt_unset=$lt_unset
21980
21981 # turn spaces into newlines.
21982 SP2NL=$lt_lt_SP2NL
21983
21984 # turn newlines into spaces.
21985 NL2SP=$lt_lt_NL2SP
21986
21987 # convert \$build file names to \$host format.
21988 to_host_file_cmd=$lt_cv_to_host_file_cmd
21989
21990 # convert \$build files to toolchain format.
21991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21992
21993 # An object symbol dumper.
21994 OBJDUMP=$lt_OBJDUMP
21995
21996 # Method to check whether dependent libraries are shared objects.
21997 deplibs_check_method=$lt_deplibs_check_method
21998
21999 # Command to use when deplibs_check_method = "file_magic".
22000 file_magic_cmd=$lt_file_magic_cmd
22001
22002 # How to find potential files when deplibs_check_method = "file_magic".
22003 file_magic_glob=$lt_file_magic_glob
22004
22005 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22006 want_nocaseglob=$lt_want_nocaseglob
22007
22008 # DLL creation program.
22009 DLLTOOL=$lt_DLLTOOL
22010
22011 # Command to associate shared and link libraries.
22012 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22013
22014 # The archiver.
22015 AR=$lt_AR
22016
22017 # Flags to create an archive.
22018 AR_FLAGS=$lt_AR_FLAGS
22019
22020 # How to feed a file listing to the archiver.
22021 archiver_list_spec=$lt_archiver_list_spec
22022
22023 # A symbol stripping program.
22024 STRIP=$lt_STRIP
22025
22026 # Commands used to install an old-style archive.
22027 RANLIB=$lt_RANLIB
22028 old_postinstall_cmds=$lt_old_postinstall_cmds
22029 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22030
22031 # Whether to use a lock for old archive extraction.
22032 lock_old_archive_extraction=$lock_old_archive_extraction
22033
22034 # A C compiler.
22035 LTCC=$lt_CC
22036
22037 # LTCC compiler flags.
22038 LTCFLAGS=$lt_CFLAGS
22039
22040 # Take the output of nm and produce a listing of raw symbols and C names.
22041 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22042
22043 # Transform the output of nm in a proper C declaration.
22044 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22045
22046 # Transform the output of nm in a C name address pair.
22047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22048
22049 # Transform the output of nm in a C name address pair when lib prefix is needed.
22050 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22051
22052 # Specify filename containing input files for \$NM.
22053 nm_file_list_spec=$lt_nm_file_list_spec
22054
22055 # The root where to search for dependent libraries,and in which our libraries should be installed.
22056 lt_sysroot=$lt_sysroot
22057
22058 # The name of the directory that contains temporary libtool files.
22059 objdir=$objdir
22060
22061 # Used to examine libraries when file_magic_cmd begins with "file".
22062 MAGIC_CMD=$MAGIC_CMD
22063
22064 # Must we lock files when doing compilation?
22065 need_locks=$lt_need_locks
22066
22067 # Manifest tool.
22068 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22069
22070 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22071 DSYMUTIL=$lt_DSYMUTIL
22072
22073 # Tool to change global to local symbols on Mac OS X.
22074 NMEDIT=$lt_NMEDIT
22075
22076 # Tool to manipulate fat objects and archives on Mac OS X.
22077 LIPO=$lt_LIPO
22078
22079 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22080 OTOOL=$lt_OTOOL
22081
22082 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22083 OTOOL64=$lt_OTOOL64
22084
22085 # Old archive suffix (normally "a").
22086 libext=$libext
22087
22088 # Shared library suffix (normally ".so").
22089 shrext_cmds=$lt_shrext_cmds
22090
22091 # The commands to extract the exported symbol list from a shared archive.
22092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22093
22094 # Variables whose values should be saved in libtool wrapper scripts and
22095 # restored at link time.
22096 variables_saved_for_relink=$lt_variables_saved_for_relink
22097
22098 # Do we need the "lib" prefix for modules?
22099 need_lib_prefix=$need_lib_prefix
22100
22101 # Do we need a version for libraries?
22102 need_version=$need_version
22103
22104 # Library versioning type.
22105 version_type=$version_type
22106
22107 # Shared library runtime path variable.
22108 runpath_var=$runpath_var
22109
22110 # Shared library path variable.
22111 shlibpath_var=$shlibpath_var
22112
22113 # Is shlibpath searched before the hard-coded library search path?
22114 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22115
22116 # Format of library name prefix.
22117 libname_spec=$lt_libname_spec
22118
22119 # List of archive names. First name is the real one, the rest are links.
22120 # The last name is the one that the linker finds with -lNAME
22121 library_names_spec=$lt_library_names_spec
22122
22123 # The coded name of the library, if different from the real name.
22124 soname_spec=$lt_soname_spec
22125
22126 # Permission mode override for installation of shared libraries.
22127 install_override_mode=$lt_install_override_mode
22128
22129 # Command to use after installation of a shared archive.
22130 postinstall_cmds=$lt_postinstall_cmds
22131
22132 # Command to use after uninstallation of a shared archive.
22133 postuninstall_cmds=$lt_postuninstall_cmds
22134
22135 # Commands used to finish a libtool library installation in a directory.
22136 finish_cmds=$lt_finish_cmds
22137
22138 # As "finish_cmds", except a single script fragment to be evaled but
22139 # not shown.
22140 finish_eval=$lt_finish_eval
22141
22142 # Whether we should hardcode library paths into libraries.
22143 hardcode_into_libs=$hardcode_into_libs
22144
22145 # Compile-time system search path for libraries.
22146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22147
22148 # Run-time system search path for libraries.
22149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22150
22151 # Whether dlopen is supported.
22152 dlopen_support=$enable_dlopen
22153
22154 # Whether dlopen of programs is supported.
22155 dlopen_self=$enable_dlopen_self
22156
22157 # Whether dlopen of statically linked programs is supported.
22158 dlopen_self_static=$enable_dlopen_self_static
22159
22160 # Commands to strip libraries.
22161 old_striplib=$lt_old_striplib
22162 striplib=$lt_striplib
22163
22164
22165 # The linker used to build libraries.
22166 LD=$lt_LD
22167
22168 # How to create reloadable object files.
22169 reload_flag=$lt_reload_flag
22170 reload_cmds=$lt_reload_cmds
22171
22172 # Commands used to build an old-style archive.
22173 old_archive_cmds=$lt_old_archive_cmds
22174
22175 # A language specific compiler.
22176 CC=$lt_compiler
22177
22178 # Is the compiler the GNU compiler?
22179 with_gcc=$GCC
22180
22181 # Compiler flag to turn off builtin functions.
22182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22183
22184 # Additional compiler flags for building library objects.
22185 pic_flag=$lt_lt_prog_compiler_pic
22186
22187 # How to pass a linker flag through the compiler.
22188 wl=$lt_lt_prog_compiler_wl
22189
22190 # Compiler flag to prevent dynamic linking.
22191 link_static_flag=$lt_lt_prog_compiler_static
22192
22193 # Does compiler simultaneously support -c and -o options?
22194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22195
22196 # Whether or not to add -lc for building shared libraries.
22197 build_libtool_need_lc=$archive_cmds_need_lc
22198
22199 # Whether or not to disallow shared libs when runtime libs are static.
22200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22201
22202 # Compiler flag to allow reflexive dlopens.
22203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22204
22205 # Compiler flag to generate shared objects directly from archives.
22206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22207
22208 # Whether the compiler copes with passing no objects directly.
22209 compiler_needs_object=$lt_compiler_needs_object
22210
22211 # Create an old-style archive from a shared archive.
22212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22213
22214 # Create a temporary old-style archive to link instead of a shared archive.
22215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22216
22217 # Commands used to build a shared archive.
22218 archive_cmds=$lt_archive_cmds
22219 archive_expsym_cmds=$lt_archive_expsym_cmds
22220
22221 # Commands used to build a loadable module if different from building
22222 # a shared archive.
22223 module_cmds=$lt_module_cmds
22224 module_expsym_cmds=$lt_module_expsym_cmds
22225
22226 # Whether we are building with GNU ld or not.
22227 with_gnu_ld=$lt_with_gnu_ld
22228
22229 # Flag that allows shared libraries with undefined symbols to be built.
22230 allow_undefined_flag=$lt_allow_undefined_flag
22231
22232 # Flag that enforces no undefined symbols.
22233 no_undefined_flag=$lt_no_undefined_flag
22234
22235 # Flag to hardcode \$libdir into a binary during linking.
22236 # This must work even if \$libdir does not exist
22237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22238
22239 # Whether we need a single "-rpath" flag with a separated argument.
22240 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22241
22242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22243 # DIR into the resulting binary.
22244 hardcode_direct=$hardcode_direct
22245
22246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22247 # DIR into the resulting binary and the resulting library dependency is
22248 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22249 # library is relocated.
22250 hardcode_direct_absolute=$hardcode_direct_absolute
22251
22252 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22253 # into the resulting binary.
22254 hardcode_minus_L=$hardcode_minus_L
22255
22256 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22257 # into the resulting binary.
22258 hardcode_shlibpath_var=$hardcode_shlibpath_var
22259
22260 # Set to "yes" if building a shared library automatically hardcodes DIR
22261 # into the library and all subsequent libraries and executables linked
22262 # against it.
22263 hardcode_automatic=$hardcode_automatic
22264
22265 # Set to yes if linker adds runtime paths of dependent libraries
22266 # to runtime path list.
22267 inherit_rpath=$inherit_rpath
22268
22269 # Whether libtool must link a program against all its dependency libraries.
22270 link_all_deplibs=$link_all_deplibs
22271
22272 # Set to "yes" if exported symbols are required.
22273 always_export_symbols=$always_export_symbols
22274
22275 # The commands to list exported symbols.
22276 export_symbols_cmds=$lt_export_symbols_cmds
22277
22278 # Symbols that should not be listed in the preloaded symbols.
22279 exclude_expsyms=$lt_exclude_expsyms
22280
22281 # Symbols that must always be exported.
22282 include_expsyms=$lt_include_expsyms
22283
22284 # Commands necessary for linking programs (against libraries) with templates.
22285 prelink_cmds=$lt_prelink_cmds
22286
22287 # Commands necessary for finishing linking programs.
22288 postlink_cmds=$lt_postlink_cmds
22289
22290 # Specify filename containing input files.
22291 file_list_spec=$lt_file_list_spec
22292
22293 # How to hardcode a shared library path into an executable.
22294 hardcode_action=$hardcode_action
22295
22296 # The directories searched by this compiler when creating a shared library.
22297 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22298
22299 # Dependencies to place before and after the objects being linked to
22300 # create a shared library.
22301 predep_objects=$lt_predep_objects
22302 postdep_objects=$lt_postdep_objects
22303 predeps=$lt_predeps
22304 postdeps=$lt_postdeps
22305
22306 # The library search path used internally by the compiler when linking
22307 # a shared library.
22308 compiler_lib_search_path=$lt_compiler_lib_search_path
22309
22310 # ### END LIBTOOL CONFIG
22311
22312 _LT_EOF
22313
22314 case $host_os in
22315 aix3*)
22316 cat <<\_LT_EOF >> "$cfgfile"
22317 # AIX sometimes has problems with the GCC collect2 program. For some
22318 # reason, if we set the COLLECT_NAMES environment variable, the problems
22319 # vanish in a puff of smoke.
22320 if test "X${COLLECT_NAMES+set}" != Xset; then
22321 COLLECT_NAMES=
22322 export COLLECT_NAMES
22323 fi
22324 _LT_EOF
22325 ;;
22326 esac
22327
22328
22329 ltmain="$ac_aux_dir/ltmain.sh"
22330
22331
22332 # We use sed instead of cat because bash on DJGPP gets confused if
22333 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22334 # text mode, it properly converts lines to CR/LF. This bash problem
22335 # is reportedly fixed, but why not run on old versions too?
22336 sed '$q' "$ltmain" >> "$cfgfile" \
22337 || (rm -f "$cfgfile"; exit 1)
22338
22339 if test x"$xsi_shell" = xyes; then
22340 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22341 func_dirname ()\
22342 {\
22343 \ case ${1} in\
22344 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22345 \ * ) func_dirname_result="${3}" ;;\
22346 \ esac\
22347 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22348 && mv -f "$cfgfile.tmp" "$cfgfile" \
22349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22350 test 0 -eq $? || _lt_function_replace_fail=:
22351
22352
22353 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22354 func_basename ()\
22355 {\
22356 \ func_basename_result="${1##*/}"\
22357 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22358 && mv -f "$cfgfile.tmp" "$cfgfile" \
22359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22360 test 0 -eq $? || _lt_function_replace_fail=:
22361
22362
22363 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22364 func_dirname_and_basename ()\
22365 {\
22366 \ case ${1} in\
22367 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22368 \ * ) func_dirname_result="${3}" ;;\
22369 \ esac\
22370 \ func_basename_result="${1##*/}"\
22371 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22372 && mv -f "$cfgfile.tmp" "$cfgfile" \
22373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22374 test 0 -eq $? || _lt_function_replace_fail=:
22375
22376
22377 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22378 func_stripname ()\
22379 {\
22380 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22381 \ # positional parameters, so assign one to ordinary parameter first.\
22382 \ func_stripname_result=${3}\
22383 \ func_stripname_result=${func_stripname_result#"${1}"}\
22384 \ func_stripname_result=${func_stripname_result%"${2}"}\
22385 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22386 && mv -f "$cfgfile.tmp" "$cfgfile" \
22387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22388 test 0 -eq $? || _lt_function_replace_fail=:
22389
22390
22391 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22392 func_split_long_opt ()\
22393 {\
22394 \ func_split_long_opt_name=${1%%=*}\
22395 \ func_split_long_opt_arg=${1#*=}\
22396 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22397 && mv -f "$cfgfile.tmp" "$cfgfile" \
22398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22399 test 0 -eq $? || _lt_function_replace_fail=:
22400
22401
22402 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22403 func_split_short_opt ()\
22404 {\
22405 \ func_split_short_opt_arg=${1#??}\
22406 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22407 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22408 && mv -f "$cfgfile.tmp" "$cfgfile" \
22409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22410 test 0 -eq $? || _lt_function_replace_fail=:
22411
22412
22413 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22414 func_lo2o ()\
22415 {\
22416 \ case ${1} in\
22417 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22418 \ *) func_lo2o_result=${1} ;;\
22419 \ esac\
22420 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22421 && mv -f "$cfgfile.tmp" "$cfgfile" \
22422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22423 test 0 -eq $? || _lt_function_replace_fail=:
22424
22425
22426 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22427 func_xform ()\
22428 {\
22429 func_xform_result=${1%.*}.lo\
22430 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22431 && mv -f "$cfgfile.tmp" "$cfgfile" \
22432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22433 test 0 -eq $? || _lt_function_replace_fail=:
22434
22435
22436 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22437 func_arith ()\
22438 {\
22439 func_arith_result=$(( $* ))\
22440 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22441 && mv -f "$cfgfile.tmp" "$cfgfile" \
22442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22443 test 0 -eq $? || _lt_function_replace_fail=:
22444
22445
22446 sed -e '/^func_len ()$/,/^} # func_len /c\
22447 func_len ()\
22448 {\
22449 func_len_result=${#1}\
22450 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22451 && mv -f "$cfgfile.tmp" "$cfgfile" \
22452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22453 test 0 -eq $? || _lt_function_replace_fail=:
22454
22455 fi
22456
22457 if test x"$lt_shell_append" = xyes; then
22458 sed -e '/^func_append ()$/,/^} # func_append /c\
22459 func_append ()\
22460 {\
22461 eval "${1}+=\\${2}"\
22462 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22463 && mv -f "$cfgfile.tmp" "$cfgfile" \
22464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22465 test 0 -eq $? || _lt_function_replace_fail=:
22466
22467
22468 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22469 func_append_quoted ()\
22470 {\
22471 \ func_quote_for_eval "${2}"\
22472 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22473 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22474 && mv -f "$cfgfile.tmp" "$cfgfile" \
22475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22476 test 0 -eq $? || _lt_function_replace_fail=:
22477
22478
22479 # Save a `func_append' function call where possible by direct use of '+='
22480 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22481 && mv -f "$cfgfile.tmp" "$cfgfile" \
22482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22483 test 0 -eq $? || _lt_function_replace_fail=:
22484 else
22485 # Save a `func_append' function call even when '+=' is not available
22486 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22487 && mv -f "$cfgfile.tmp" "$cfgfile" \
22488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22489 test 0 -eq $? || _lt_function_replace_fail=:
22490 fi
22491
22492 if test x"$_lt_function_replace_fail" = x":"; then
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22494 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22495 fi
22496
22497
22498 mv -f "$cfgfile" "$ofile" ||
22499 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22500 chmod +x "$ofile"
22501
22502
22503 cat <<_LT_EOF >> "$ofile"
22504
22505 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22506
22507 # The linker used to build libraries.
22508 LD=$lt_LD_CXX
22509
22510 # How to create reloadable object files.
22511 reload_flag=$lt_reload_flag_CXX
22512 reload_cmds=$lt_reload_cmds_CXX
22513
22514 # Commands used to build an old-style archive.
22515 old_archive_cmds=$lt_old_archive_cmds_CXX
22516
22517 # A language specific compiler.
22518 CC=$lt_compiler_CXX
22519
22520 # Is the compiler the GNU compiler?
22521 with_gcc=$GCC_CXX
22522
22523 # Compiler flag to turn off builtin functions.
22524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22525
22526 # Additional compiler flags for building library objects.
22527 pic_flag=$lt_lt_prog_compiler_pic_CXX
22528
22529 # How to pass a linker flag through the compiler.
22530 wl=$lt_lt_prog_compiler_wl_CXX
22531
22532 # Compiler flag to prevent dynamic linking.
22533 link_static_flag=$lt_lt_prog_compiler_static_CXX
22534
22535 # Does compiler simultaneously support -c and -o options?
22536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22537
22538 # Whether or not to add -lc for building shared libraries.
22539 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22540
22541 # Whether or not to disallow shared libs when runtime libs are static.
22542 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22543
22544 # Compiler flag to allow reflexive dlopens.
22545 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22546
22547 # Compiler flag to generate shared objects directly from archives.
22548 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22549
22550 # Whether the compiler copes with passing no objects directly.
22551 compiler_needs_object=$lt_compiler_needs_object_CXX
22552
22553 # Create an old-style archive from a shared archive.
22554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22555
22556 # Create a temporary old-style archive to link instead of a shared archive.
22557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22558
22559 # Commands used to build a shared archive.
22560 archive_cmds=$lt_archive_cmds_CXX
22561 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22562
22563 # Commands used to build a loadable module if different from building
22564 # a shared archive.
22565 module_cmds=$lt_module_cmds_CXX
22566 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22567
22568 # Whether we are building with GNU ld or not.
22569 with_gnu_ld=$lt_with_gnu_ld_CXX
22570
22571 # Flag that allows shared libraries with undefined symbols to be built.
22572 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22573
22574 # Flag that enforces no undefined symbols.
22575 no_undefined_flag=$lt_no_undefined_flag_CXX
22576
22577 # Flag to hardcode \$libdir into a binary during linking.
22578 # This must work even if \$libdir does not exist
22579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22580
22581 # Whether we need a single "-rpath" flag with a separated argument.
22582 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22583
22584 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22585 # DIR into the resulting binary.
22586 hardcode_direct=$hardcode_direct_CXX
22587
22588 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22589 # DIR into the resulting binary and the resulting library dependency is
22590 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22591 # library is relocated.
22592 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22593
22594 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22595 # into the resulting binary.
22596 hardcode_minus_L=$hardcode_minus_L_CXX
22597
22598 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22599 # into the resulting binary.
22600 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22601
22602 # Set to "yes" if building a shared library automatically hardcodes DIR
22603 # into the library and all subsequent libraries and executables linked
22604 # against it.
22605 hardcode_automatic=$hardcode_automatic_CXX
22606
22607 # Set to yes if linker adds runtime paths of dependent libraries
22608 # to runtime path list.
22609 inherit_rpath=$inherit_rpath_CXX
22610
22611 # Whether libtool must link a program against all its dependency libraries.
22612 link_all_deplibs=$link_all_deplibs_CXX
22613
22614 # Set to "yes" if exported symbols are required.
22615 always_export_symbols=$always_export_symbols_CXX
22616
22617 # The commands to list exported symbols.
22618 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22619
22620 # Symbols that should not be listed in the preloaded symbols.
22621 exclude_expsyms=$lt_exclude_expsyms_CXX
22622
22623 # Symbols that must always be exported.
22624 include_expsyms=$lt_include_expsyms_CXX
22625
22626 # Commands necessary for linking programs (against libraries) with templates.
22627 prelink_cmds=$lt_prelink_cmds_CXX
22628
22629 # Commands necessary for finishing linking programs.
22630 postlink_cmds=$lt_postlink_cmds_CXX
22631
22632 # Specify filename containing input files.
22633 file_list_spec=$lt_file_list_spec_CXX
22634
22635 # How to hardcode a shared library path into an executable.
22636 hardcode_action=$hardcode_action_CXX
22637
22638 # The directories searched by this compiler when creating a shared library.
22639 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22640
22641 # Dependencies to place before and after the objects being linked to
22642 # create a shared library.
22643 predep_objects=$lt_predep_objects_CXX
22644 postdep_objects=$lt_postdep_objects_CXX
22645 predeps=$lt_predeps_CXX
22646 postdeps=$lt_postdeps_CXX
22647
22648 # The library search path used internally by the compiler when linking
22649 # a shared library.
22650 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22651
22652 # ### END LIBTOOL TAG CONFIG: CXX
22653 _LT_EOF
22654
22655 ;;
22656
22657 esac
22658 done # for ac_tag
22659
22660
22661 as_fn_exit 0
22662 _ACEOF
22663 ac_clean_files=$ac_clean_files_save
22664
22665 test $ac_write_fail = 0 ||
22666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22667
22668
22669 # configure is writing to config.log, and then calls config.status.
22670 # config.status does its own redirection, appending to config.log.
22671 # Unfortunately, on DOS this fails, as config.log is still kept open
22672 # by configure, so config.status won't be able to write to it; its
22673 # output is simply discarded. So we exec the FD to /dev/null,
22674 # effectively closing config.log, so it can be properly (re)opened and
22675 # appended to by config.status. When coming back to configure, we
22676 # need to make the FD available again.
22677 if test "$no_create" != yes; then
22678 ac_cs_success=:
22679 ac_config_status_args=
22680 test "$silent" = yes &&
22681 ac_config_status_args="$ac_config_status_args --quiet"
22682 exec 5>/dev/null
22683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22684 exec 5>>config.log
22685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22686 # would make configure fail if this is the last instruction.
22687 $ac_cs_success || as_fn_exit 1
22688 fi
22689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22692 fi
22693