]> git.saurik.com Git - cycript.git/blob - configure
Isolate linkage of libreadline and libtermcap.
[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 # Copyright (C) 2009-2012 Jay Freeman (saurik)
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 CY_MACH_FALSE
642 CY_MACH_TRUE
643 CY_ATTACH_GROUP
644 CY_MACH
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBICONV
654 LIBICONV
655 LTLIBTERMCAP
656 LTLIBREADLINE
657 CY_OBJECTIVEC_FALSE
658 CY_OBJECTIVEC_TRUE
659 GNUSTEP_CONFIG
660 CY_OBJECTIVEC
661 LIBFFI_LIBS
662 LIBFFI_CFLAGS
663 CY_EXECUTE_FALSE
664 CY_EXECUTE_TRUE
665 LTLIBAPR
666 CY_EXECUTE
667 WEBKIT_LIBS
668 WEBKIT_CFLAGS
669 CY_ARCH
670 CY_FILTERS
671 GNUTAR
672 GPERF
673 FLEX
674 BISON
675 TIME
676 GIT
677 _BASH
678 GMAKE
679 ifGNUmake
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CXXCPP
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 MANIFEST_TOOL
691 RANLIB
692 DLLTOOL
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 LIBTOOL
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 ac_ct_CC
716 CFLAGS
717 CC
718 ac_ct_AR
719 AR
720 am__fastdepOBJCXX_FALSE
721 am__fastdepOBJCXX_TRUE
722 OBJCXXDEPMODE
723 ac_ct_OBJCXX
724 OBJCXXFLAGS
725 OBJCXX
726 am__fastdepCXX_FALSE
727 am__fastdepCXX_TRUE
728 CXXDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CXX
739 CPPFLAGS
740 LDFLAGS
741 CXXFLAGS
742 CXX
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_dependency_tracking
813 enable_static
814 enable_shared
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 with_sysroot
819 enable_libtool_lock
820 with_frameworks
821 enable_javascript
822 with_apr
823 enable_rpath
824 with_libiconv_prefix
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CXX
830 CXXFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CCC
835 OBJCXX
836 OBJCXXFLAGS
837 CC
838 CFLAGS
839 CPP
840 CXXCPP
841 PKG_CONFIG
842 PKG_CONFIG_PATH
843 PKG_CONFIG_LIBDIR
844 BISON
845 FLEX
846 GPERF
847 GNUTAR
848 WEBKIT_CFLAGS
849 WEBKIT_LIBS
850 LIBFFI_CFLAGS
851 LIBFFI_LIBS
852 GNUSTEP_CONFIG'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 # Accept the important Cygnus configure options, so we can diagnose typos.
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1148
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1159
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1164
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1169
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1176
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1181
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1184
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1187
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1203
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1240 ;;
1241
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258 ;;
1259
1260 esac
1261 done
1262
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1266 fi
1267
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1274 fi
1275
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1281 do
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1309 cross_compiling=yes
1310 fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)[^/].*/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\).*/{
1350 s//\1/
1351 q
1352 }
1353 s/.*/./; q'`
1354 srcdir=$ac_confdir
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 srcdir=..
1357 fi
1358 else
1359 ac_srcdir_defaulted=no
1360 fi
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1447
1448 cat <<\_ACEOF
1449
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of Cycript 0.9:";;
1464 esac
1465 cat <<\_ACEOF
1466
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-javascript[=ENGINE]
1483 use a JavaScript runtime (currently the only
1484 available option for ENGINE is JavaScriptCore)
1485 [default=yes]
1486 --disable-rpath do not hardcode runtime library paths
1487
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-sysroot=DIR Search for dependent libraries within DIR
1495 (or the compiler's sysroot if not specified).
1496 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1497 path for frameworks with -F
1498 --with-apr=PATH prefix for installed APR or the full path to
1499 apr-config
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1502 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1503
1504 Some influential environment variables:
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 OBJCXX Objective C++ compiler command
1513 OBJCXXFLAGS Objective C++ compiler flags
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 CPP C preprocessor
1517 CXXCPP C++ preprocessor
1518 PKG_CONFIG path to pkg-config utility
1519 PKG_CONFIG_PATH
1520 directories to add to pkg-config's search path
1521 PKG_CONFIG_LIBDIR
1522 path overriding pkg-config's built-in search path
1523 BISON GNU Project parser generator (yacc replacement)
1524 FLEX the fast lexical analyser generator
1525 GPERF perfect hash function generator
1526 GNUTAR a very sticky lump of files
1527 WEBKIT_CFLAGS
1528 C compiler flags for WEBKIT, overriding pkg-config
1529 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1530 LIBFFI_CFLAGS
1531 C compiler flags for LIBFFI, overriding pkg-config
1532 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1533 GNUSTEP_CONFIG
1534 prints information about the current gnustep installation
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <saurik@saurik.com>.
1540 Cycript home page: <http://www.cycript.org/>.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
1551 ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 Cycript configure 0.9
1604 generated by GNU Autoconf 2.69
1605
1606 Copyright (C) 2012 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609
1610 Copyright (C) 2009-2012 Jay Freeman (saurik)
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_cxx_try_compile
1656
1657 # ac_fn_objcxx_try_compile LINENO
1658 # -------------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_objcxx_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_objcxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_objcxx_try_compile
1694
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_compile
1732
1733 # ac_fn_c_try_link LINENO
1734 # -----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_link ()
1737 {
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext conftest$ac_exeext
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest$ac_exeext && {
1759 test "$cross_compiling" = yes ||
1760 test -x conftest$ac_exeext
1761 }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1771 # interfere with the next link command; also delete a directory that is
1772 # left behind by Apple's compiler. We do this before executing the actions.
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_link
1778
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1780 # -------------------------------------------------------
1781 # Tests whether HEADER exists and can be compiled using the include files in
1782 # INCLUDES, setting the cache variable VAR accordingly.
1783 ac_fn_c_check_header_compile ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_header_compile
1809
1810 # ac_fn_c_try_cpp LINENO
1811 # ----------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_cpp ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } > conftest.i && {
1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 }; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_c_try_cpp
1846
1847 # ac_fn_c_try_run LINENO
1848 # ----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850 # that executables *can* be run.
1851 ac_fn_c_try_run ()
1852 {
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882 fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
1886
1887 } # ac_fn_c_try_run
1888
1889 # ac_fn_c_check_func LINENO FUNC VAR
1890 # ----------------------------------
1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1892 ac_fn_c_check_func ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1905
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1910
1911 #ifdef __STDC__
1912 # include <limits.h>
1913 #else
1914 # include <assert.h>
1915 #endif
1916
1917 #undef $2
1918
1919 /* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1922 #ifdef __cplusplus
1923 extern "C"
1924 #endif
1925 char $2 ();
1926 /* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929 #if defined __stub_$2 || defined __stub___$2
1930 choke me
1931 #endif
1932
1933 int
1934 main ()
1935 {
1936 return $2 ();
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_link "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
1948 fi
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953
1954 } # ac_fn_c_check_func
1955
1956 # ac_fn_cxx_try_cpp LINENO
1957 # ------------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_cpp ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } > conftest.i && {
1978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 }; then :
1981 ac_retval=0
1982 else
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
1991 } # ac_fn_cxx_try_cpp
1992
1993 # ac_fn_cxx_try_link LINENO
1994 # -------------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_cxx_try_link ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 test -x conftest$ac_exeext
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028 fi
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2036
2037 } # ac_fn_cxx_try_link
2038
2039 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2040 # ---------------------------------------------------------
2041 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2042 # the include files in INCLUDES and setting the cache variable VAR
2043 # accordingly.
2044 ac_fn_cxx_check_header_mongrel ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if eval \${$3+:} false; then :
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 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 else
2057 # Is the header compilable?
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2059 $as_echo_n "checking $2 usability... " >&6; }
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 #include <$2>
2064 _ACEOF
2065 if ac_fn_cxx_try_compile "$LINENO"; then :
2066 ac_header_compiler=yes
2067 else
2068 ac_header_compiler=no
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2072 $as_echo "$ac_header_compiler" >&6; }
2073
2074 # Is the header present?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2076 $as_echo_n "checking $2 presence... " >&6; }
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 #include <$2>
2080 _ACEOF
2081 if ac_fn_cxx_try_cpp "$LINENO"; then :
2082 ac_header_preproc=yes
2083 else
2084 ac_header_preproc=no
2085 fi
2086 rm -f conftest.err conftest.i conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2088 $as_echo "$ac_header_preproc" >&6; }
2089
2090 # So? What about this header?
2091 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2092 yes:no: )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2094 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2097 ;;
2098 no:yes:* )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2100 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2102 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2104 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2106 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2108 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2109 ( $as_echo "## -------------------------------- ##
2110 ## Report this to saurik@saurik.com ##
2111 ## -------------------------------- ##"
2112 ) | sed "s/^/$as_me: WARNING: /" >&2
2113 ;;
2114 esac
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if eval \${$3+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 eval "$3=\$ac_header_compiler"
2121 fi
2122 eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 fi
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_cxx_check_header_mongrel
2129
2130 # ac_fn_objcxx_try_link LINENO
2131 # ----------------------------
2132 # Try to link conftest.$ac_ext, and return whether this succeeded.
2133 ac_fn_objcxx_try_link ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 rm -f conftest.$ac_objext conftest$ac_exeext
2137 if { { ac_try="$ac_link"
2138 case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141 esac
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_link") 2>conftest.err
2145 ac_status=$?
2146 if test -s conftest.err; then
2147 grep -v '^ *+' conftest.err >conftest.er1
2148 cat conftest.er1 >&5
2149 mv -f conftest.er1 conftest.err
2150 fi
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } && {
2153 test -z "$ac_objcxx_werror_flag" ||
2154 test ! -s conftest.err
2155 } && test -s conftest$ac_exeext && {
2156 test "$cross_compiling" = yes ||
2157 test -x conftest$ac_exeext
2158 }; then :
2159 ac_retval=0
2160 else
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_retval=1
2165 fi
2166 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2167 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2168 # interfere with the next link command; also delete a directory that is
2169 # left behind by Apple's compiler. We do this before executing the actions.
2170 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 as_fn_set_status $ac_retval
2173
2174 } # ac_fn_objcxx_try_link
2175 cat >config.log <<_ACEOF
2176 This file contains any messages produced by compilers while
2177 running configure, to aid debugging if configure makes a mistake.
2178
2179 It was created by Cycript $as_me 0.9, which was
2180 generated by GNU Autoconf 2.69. Invocation command line was
2181
2182 $ $0 $@
2183
2184 _ACEOF
2185 exec 5>>config.log
2186 {
2187 cat <<_ASUNAME
2188 ## --------- ##
2189 ## Platform. ##
2190 ## --------- ##
2191
2192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197
2198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200
2201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2208
2209 _ASUNAME
2210
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 $as_echo "PATH: $as_dir"
2217 done
2218 IFS=$as_save_IFS
2219
2220 } >&5
2221
2222 cat >&5 <<_ACEOF
2223
2224
2225 ## ----------- ##
2226 ## Core tests. ##
2227 ## ----------- ##
2228
2229 _ACEOF
2230
2231
2232 # Keep a trace of the command line.
2233 # Strip out --no-create and --no-recursion so they do not pile up.
2234 # Strip out --silent because we don't want to record it for future runs.
2235 # Also quote any args containing shell meta-characters.
2236 # Make two passes to allow for proper duplicate-argument suppression.
2237 ac_configure_args=
2238 ac_configure_args0=
2239 ac_configure_args1=
2240 ac_must_keep_next=false
2241 for ac_pass in 1 2
2242 do
2243 for ac_arg
2244 do
2245 case $ac_arg in
2246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248 | -silent | --silent | --silen | --sile | --sil)
2249 continue ;;
2250 *\'*)
2251 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 esac
2253 case $ac_pass in
2254 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255 2)
2256 as_fn_append ac_configure_args1 " '$ac_arg'"
2257 if test $ac_must_keep_next = true; then
2258 ac_must_keep_next=false # Got value, back to normal.
2259 else
2260 case $ac_arg in
2261 *=* | --config-cache | -C | -disable-* | --disable-* \
2262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264 | -with-* | --with-* | -without-* | --without-* | --x)
2265 case "$ac_configure_args0 " in
2266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267 esac
2268 ;;
2269 -* ) ac_must_keep_next=true ;;
2270 esac
2271 fi
2272 as_fn_append ac_configure_args " '$ac_arg'"
2273 ;;
2274 esac
2275 done
2276 done
2277 { ac_configure_args0=; unset ac_configure_args0;}
2278 { ac_configure_args1=; unset ac_configure_args1;}
2279
2280 # When interrupted or exit'd, cleanup temporary files, and complete
2281 # config.log. We remove comments because anyway the quotes in there
2282 # would cause problems or look ugly.
2283 # WARNING: Use '\'' to represent an apostrophe within the trap.
2284 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285 trap 'exit_status=$?
2286 # Save into config.log some information that might help in debugging.
2287 {
2288 echo
2289
2290 $as_echo "## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##"
2293 echo
2294 # The following way of writing the cache mishandles newlines in values,
2295 (
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2298 case $ac_val in #(
2299 *${as_nl}*)
2300 case $ac_var in #(
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 esac
2304 case $ac_var in #(
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2308 esac ;;
2309 esac
2310 done
2311 (set) 2>&1 |
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
2314 sed -n \
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 ;; #(
2318 *)
2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320 ;;
2321 esac |
2322 sort
2323 )
2324 echo
2325
2326 $as_echo "## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##"
2329 echo
2330 for ac_var in $ac_subst_vars
2331 do
2332 eval ac_val=\$$ac_var
2333 case $ac_val in
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 esac
2336 $as_echo "$ac_var='\''$ac_val'\''"
2337 done | sort
2338 echo
2339
2340 if test -n "$ac_subst_files"; then
2341 $as_echo "## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##"
2344 echo
2345 for ac_var in $ac_subst_files
2346 do
2347 eval ac_val=\$$ac_var
2348 case $ac_val in
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2350 esac
2351 $as_echo "$ac_var='\''$ac_val'\''"
2352 done | sort
2353 echo
2354 fi
2355
2356 if test -s confdefs.h; then
2357 $as_echo "## ----------- ##
2358 ## confdefs.h. ##
2359 ## ----------- ##"
2360 echo
2361 cat confdefs.h
2362 echo
2363 fi
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2367 } >&5
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 exit $exit_status
2371 ' 0
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2374 done
2375 ac_signal=0
2376
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2379
2380 $as_echo "/* confdefs.h */" > confdefs.h
2381
2382 # Predefined preprocessor variables.
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2406 _ACEOF
2407
2408
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2411 ac_site_file1=NONE
2412 ac_site_file2=NONE
2413 if test -n "$CONFIG_SITE"; then
2414 # We do not want a PATH search for config.site.
2415 case $CONFIG_SITE in #((
2416 -*) ac_site_file1=./$CONFIG_SITE;;
2417 */*) ac_site_file1=$CONFIG_SITE;;
2418 *) ac_site_file1=./$CONFIG_SITE;;
2419 esac
2420 elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2423 else
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2426 fi
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 do
2429 test "x$ac_site_file" = xNONE && continue
2430 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
2434 . "$ac_site_file" \
2435 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "failed to load site script $ac_site_file
2438 See \`config.log' for more details" "$LINENO" 5; }
2439 fi
2440 done
2441
2442 if test -r "$cache_file"; then
2443 # Some versions of bash will fail to source /dev/null (special files
2444 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2448 case $cache_file in
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2451 esac
2452 fi
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2456 >$cache_file
2457 fi
2458
2459 # Check that the precious variables saved in the cache have kept the same
2460 # value.
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2477 *)
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2507 fi
2508 done
2509 if $ac_cache_corrupted; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2515 fi
2516 ## -------------------- ##
2517 ## Main body of script. ##
2518 ## -------------------- ##
2519
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525
2526
2527
2528
2529
2530 ac_aux_dir=
2531 for ac_dir in . "$srcdir"/.; do
2532 if test -f "$ac_dir/install-sh"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/install-sh -c"
2535 break
2536 elif test -f "$ac_dir/install.sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install.sh -c"
2539 break
2540 elif test -f "$ac_dir/shtool"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/shtool install -c"
2543 break
2544 fi
2545 done
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2548 fi
2549
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557
2558
2559
2560
2561 am__api_version='1.13'
2562
2563 # Find a good install program. We prefer a C program (faster),
2564 # so one script is as good as another. But avoid the broken or
2565 # incompatible versions:
2566 # SysV /etc/install, /usr/sbin/install
2567 # SunOS /usr/etc/install
2568 # IRIX /sbin/install
2569 # AIX /bin/install
2570 # AmigaOS /C/install, which installs bootblocks on floppy discs
2571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574 # OS/2's system install, which has a completely different semantic
2575 # ./install, which can be erroneously created by make from ./install.sh.
2576 # Reject install programs that cannot install multiple files.
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2579 if test -z "$INSTALL"; then
2580 if ${ac_cv_path_install+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 # Account for people who put trailing slashes in PATH elements.
2589 case $as_dir/ in #((
2590 ./ | .// | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627 esac
2628
2629 done
2630 IFS=$as_save_IFS
2631
2632 rm -rf conftest.one conftest.two conftest.dir
2633
2634 fi
2635 if test "${ac_cv_path_install+set}" = set; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646 $as_echo "$INSTALL" >&6; }
2647
2648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649 # It thinks the first close brace ends the variable substitution.
2650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657 $as_echo_n "checking whether build environment is sane... " >&6; }
2658 # Reject unsafe characters in $srcdir or the absolute working directory
2659 # name. Accept space and tab only in the latter.
2660 am_lf='
2661 '
2662 case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665 esac
2666 case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669 esac
2670
2671 # Do 'set' in a subshell so we don't clobber the current shell's
2672 # arguments. Must try -L first in case configure is actually a
2673 # symlink; some systems play weird games with the mod time of symlinks
2674 # (eg FreeBSD returns the mod time of the symlink's containing
2675 # directory).
2676 if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704 then
2705 # Ok.
2706 :
2707 else
2708 as_fn_error $? "newly created file is older than distributed files!
2709 Check your system clock" "$LINENO" 5
2710 fi
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2713 # If we didn't sleep, we still need to ensure time stamps of config.status and
2714 # generated files are strictly newer.
2715 am_sleep_pid=
2716 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719 fi
2720
2721 rm -f conftest.file
2722
2723 test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725 # Use a double $ so make ignores it.
2726 test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728 # Double any \ or $.
2729 # By default was `s,x,x', remove it if useless.
2730 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732
2733 # expand $ac_aux_dir to an absolute path
2734 am_aux_dir=`cd $ac_aux_dir && pwd`
2735
2736 if test x"${MISSING+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 *)
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 esac
2743 fi
2744 # Use eval to expand $SHELL
2745 if eval "$MISSING --is-lightweight"; then
2746 am_missing_run="$MISSING "
2747 else
2748 am_missing_run=
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2750 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751 fi
2752
2753 if test x"${install_sh}" != xset; then
2754 case $am_aux_dir in
2755 *\ * | *\ *)
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 *)
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2759 esac
2760 fi
2761
2762 # Installed binaries are usually stripped using 'strip' when the user
2763 # run "make install-strip". However 'strip' might not be the right
2764 # tool to use in cross-compilation environments, therefore Automake
2765 # will honor the 'STRIP' environment variable to overrule this program.
2766 if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}strip; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 STRIP=$ac_cv_prog_STRIP
2796 if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798 $as_echo "$STRIP" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2802 fi
2803
2804
2805 fi
2806 if test -z "$ac_cv_prog_STRIP"; then
2807 ac_ct_STRIP=$STRIP
2808 # Extract the first word of "strip", so it can be a program name with args.
2809 set dummy strip; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836 if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838 $as_echo "$ac_ct_STRIP" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844 if test "x$ac_ct_STRIP" = x; then
2845 STRIP=":"
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2852 esac
2853 STRIP=$ac_ct_STRIP
2854 fi
2855 else
2856 STRIP="$ac_cv_prog_STRIP"
2857 fi
2858
2859 fi
2860 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864 if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2881 break 3;;
2882 esac
2883 done
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2899 fi
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902 $as_echo "$MKDIR_P" >&6; }
2903
2904 for ac_prog in gawk mawk nawk awk
2905 do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_AWK+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$AWK"; then
2914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_AWK="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 AWK=$ac_cv_prog_AWK
2934 if test -n "$AWK"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2936 $as_echo "$AWK" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942
2943 test -n "$AWK" && break
2944 done
2945
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2948 set x ${MAKE-make}
2949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2950 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 cat >conftest.make <<\_ACEOF
2954 SHELL = /bin/sh
2955 all:
2956 @echo '@@@%%%=$(MAKE)=@@@%%%'
2957 _ACEOF
2958 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2960 *@@@%%%=?*=@@@%%%*)
2961 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 *)
2963 eval ac_cv_prog_make_${ac_make}_set=no;;
2964 esac
2965 rm -f conftest.make
2966 fi
2967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969 $as_echo "yes" >&6; }
2970 SET_MAKE=
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 SET_MAKE="MAKE=${MAKE-make}"
2975 fi
2976
2977 rm -rf .tst 2>/dev/null
2978 mkdir .tst 2>/dev/null
2979 if test -d .tst; then
2980 am__leading_dot=.
2981 else
2982 am__leading_dot=_
2983 fi
2984 rmdir .tst 2>/dev/null
2985
2986 # Check whether --enable-silent-rules was given.
2987 if test "${enable_silent_rules+set}" = set; then :
2988 enableval=$enable_silent_rules;
2989 fi
2990
2991 case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995 esac
2996 am_make=${MAKE-make}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2999 if ${am_cv_make_support_nested_variables+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if $as_echo 'TRUE=$(BAR$(V))
3003 BAR0=false
3004 BAR1=true
3005 V=1
3006 am__doit:
3007 @$(TRUE)
3008 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3009 am_cv_make_support_nested_variables=yes
3010 else
3011 am_cv_make_support_nested_variables=no
3012 fi
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3015 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3016 if test $am_cv_make_support_nested_variables = yes; then
3017 AM_V='$(V)'
3018 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019 else
3020 AM_V=$AM_DEFAULT_VERBOSITY
3021 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022 fi
3023 AM_BACKSLASH='\'
3024
3025 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3026 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3027 # is not polluted with repeated "-I."
3028 am__isrc=' -I$(srcdir)'
3029 # test to see if srcdir already configured
3030 if test -f $srcdir/config.status; then
3031 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3032 fi
3033 fi
3034
3035 # test whether we have cygpath
3036 if test -z "$CYGPATH_W"; then
3037 if (cygpath --version) >/dev/null 2>/dev/null; then
3038 CYGPATH_W='cygpath -w'
3039 else
3040 CYGPATH_W=echo
3041 fi
3042 fi
3043
3044
3045 # Define the identity of the package.
3046 PACKAGE='cycript'
3047 VERSION='0.9'
3048
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE "$PACKAGE"
3052 _ACEOF
3053
3054
3055 cat >>confdefs.h <<_ACEOF
3056 #define VERSION "$VERSION"
3057 _ACEOF
3058
3059 # Some tools Automake needs.
3060
3061 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062
3063
3064 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065
3066
3067 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068
3069
3070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071
3072
3073 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074
3075 # For better backward compatibility. To be removed once Automake 1.9.x
3076 # dies out for good. For more background, see:
3077 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3078 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3079 mkdir_p='$(MKDIR_P)'
3080
3081 # We need awk for the "check" target. The system "awk" is bad on
3082 # some platforms.
3083 # Always define AMTAR for backward compatibility. Yes, it's still used
3084 # in the wild :-( We should find a proper way to deprecate it ...
3085 AMTAR='$${TAR-tar}'
3086
3087 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3088
3089
3090
3091
3092
3093
3094 ac_ext=cpp
3095 ac_cpp='$CXXCPP $CPPFLAGS'
3096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3099 if test -z "$CXX"; then
3100 if test -n "$CCC"; then
3101 CXX=$CCC
3102 else
3103 if test -n "$ac_tool_prefix"; then
3104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3105 do
3106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CXX+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$CXX"; then
3114 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 CXX=$ac_cv_prog_CXX
3134 if test -n "$CXX"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3136 $as_echo "$CXX" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 test -n "$CXX" && break
3144 done
3145 fi
3146 if test -z "$CXX"; then
3147 ac_ct_CXX=$CXX
3148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3149 do
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 if test -n "$ac_ct_CXX"; then
3158 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_ac_ct_CXX="$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3178 if test -n "$ac_ct_CXX"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3180 $as_echo "$ac_ct_CXX" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 test -n "$ac_ct_CXX" && break
3188 done
3189
3190 if test "x$ac_ct_CXX" = x; then
3191 CXX="g++"
3192 else
3193 case $cross_compiling:$ac_tool_warned in
3194 yes:)
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197 ac_tool_warned=yes ;;
3198 esac
3199 CXX=$ac_ct_CXX
3200 fi
3201 fi
3202
3203 fi
3204 fi
3205 # Provide some information about the compiler.
3206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3207 set X $ac_compile
3208 ac_compiler=$2
3209 for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218 ac_status=$?
3219 if test -s conftest.err; then
3220 sed '10a\
3221 ... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
3224 fi
3225 rm -f conftest.er1 conftest.err
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 done
3229
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3232
3233 int
3234 main ()
3235 {
3236
3237 ;
3238 return 0;
3239 }
3240 _ACEOF
3241 ac_clean_files_save=$ac_clean_files
3242 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3243 # Try to create an executable without -o first, disregard a.out.
3244 # It will help us diagnose broken compilers, and finding out an intuition
3245 # of exeext.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3247 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3248 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249
3250 # The possible output files:
3251 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252
3253 ac_rmfiles=
3254 for ac_file in $ac_files
3255 do
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259 esac
3260 done
3261 rm -f $ac_rmfiles
3262
3263 if { { ac_try="$ac_link_default"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3278 # Autoconf.
3279 for ac_file in $ac_files ''
3280 do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3284 ;;
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 fi
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3300 * )
3301 break;;
3302 esac
3303 done
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
3306 else
3307 ac_file=''
3308 fi
3309 if test -z "$ac_file"; then :
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error 77 "C++ compiler cannot create executables
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3324 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326 $as_echo "$ac_file" >&6; }
3327 ac_exeext=$ac_cv_exeext
3328
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { { ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 # `rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 rm -f conftest conftest$ac_cv_exeext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365 $as_echo "$ac_cv_exeext" >&6; }
3366
3367 rm -f conftest.$ac_ext
3368 EXEEXT=$ac_cv_exeext
3369 ac_exeext=$EXEEXT
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372 #include <stdio.h>
3373 int
3374 main ()
3375 {
3376 FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3378
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 ac_clean_files="$ac_clean_files conftest.out"
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot run C++ compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details" "$LINENO" 5; }
3421 fi
3422 fi
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425 $as_echo "$cross_compiling" >&6; }
3426
3427 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428 ac_clean_files=$ac_clean_files_save
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430 $as_echo_n "checking for suffix of object files... " >&6; }
3431 if ${ac_cv_objext+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.o conftest.obj
3446 if { { ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compile") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 break;;
3463 esac
3464 done
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3482 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491 #ifndef __GNUC__
3492 choke me
3493 #endif
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_cxx_try_compile "$LINENO"; then :
3500 ac_compiler_gnu=yes
3501 else
3502 ac_compiler_gnu=no
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3506
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3509 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3510 if test $ac_compiler_gnu = yes; then
3511 GXX=yes
3512 else
3513 GXX=
3514 fi
3515 ac_test_CXXFLAGS=${CXXFLAGS+set}
3516 ac_save_CXXFLAGS=$CXXFLAGS
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3518 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3519 if ${ac_cv_prog_cxx_g+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3523 ac_cxx_werror_flag=yes
3524 ac_cv_prog_cxx_g=no
3525 CXXFLAGS="-g"
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_cxx_try_compile "$LINENO"; then :
3538 ac_cv_prog_cxx_g=yes
3539 else
3540 CXXFLAGS=""
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_cxx_try_compile "$LINENO"; then :
3553
3554 else
3555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556 CXXFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_cxx_try_compile "$LINENO"; then :
3569 ac_cv_prog_cxx_g=yes
3570 fi
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3579 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3580 if test "$ac_test_CXXFLAGS" = set; then
3581 CXXFLAGS=$ac_save_CXXFLAGS
3582 elif test $ac_cv_prog_cxx_g = yes; then
3583 if test "$GXX" = yes; then
3584 CXXFLAGS="-g -O2"
3585 else
3586 CXXFLAGS="-g"
3587 fi
3588 else
3589 if test "$GXX" = yes; then
3590 CXXFLAGS="-O2"
3591 else
3592 CXXFLAGS=
3593 fi
3594 fi
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 DEPDIR="${am__leading_dot}deps"
3601
3602 ac_config_commands="$ac_config_commands depfiles"
3603
3604
3605 am_make=${MAKE-make}
3606 cat > confinc << 'END'
3607 am__doit:
3608 @echo this is the am__doit target
3609 .PHONY: am__doit
3610 END
3611 # If we don't find an include directive, just comment out the code.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3613 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3614 am__include="#"
3615 am__quote=
3616 _am_result=none
3617 # First try GNU make style include.
3618 echo "include confinc" > confmf
3619 # Ignore all kinds of additional output from 'make'.
3620 case `$am_make -s -f confmf 2> /dev/null` in #(
3621 *the\ am__doit\ target*)
3622 am__include=include
3623 am__quote=
3624 _am_result=GNU
3625 ;;
3626 esac
3627 # Now try BSD make style include.
3628 if test "$am__include" = "#"; then
3629 echo '.include "confinc"' > confmf
3630 case `$am_make -s -f confmf 2> /dev/null` in #(
3631 *the\ am__doit\ target*)
3632 am__include=.include
3633 am__quote="\""
3634 _am_result=BSD
3635 ;;
3636 esac
3637 fi
3638
3639
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3641 $as_echo "$_am_result" >&6; }
3642 rm -f confinc confmf
3643
3644 # Check whether --enable-dependency-tracking was given.
3645 if test "${enable_dependency_tracking+set}" = set; then :
3646 enableval=$enable_dependency_tracking;
3647 fi
3648
3649 if test "x$enable_dependency_tracking" != xno; then
3650 am_depcomp="$ac_aux_dir/depcomp"
3651 AMDEPBACKSLASH='\'
3652 am__nodep='_no'
3653 fi
3654 if test "x$enable_dependency_tracking" != xno; then
3655 AMDEP_TRUE=
3656 AMDEP_FALSE='#'
3657 else
3658 AMDEP_TRUE='#'
3659 AMDEP_FALSE=
3660 fi
3661
3662
3663
3664 depcc="$CXX" am_compiler_list=
3665
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3667 $as_echo_n "checking dependency style of $depcc... " >&6; }
3668 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3672 # We make a subdir and do the tests there. Otherwise we can end up
3673 # making bogus files that we don't know about and never remove. For
3674 # instance it was reported that on HP-UX the gcc test will end up
3675 # making a dummy file named 'D' -- because '-MD' means "put the output
3676 # in D".
3677 rm -rf conftest.dir
3678 mkdir conftest.dir
3679 # Copy depcomp to subdir because otherwise we won't find it if we're
3680 # using a relative directory.
3681 cp "$am_depcomp" conftest.dir
3682 cd conftest.dir
3683 # We will build objects and dependencies in a subdirectory because
3684 # it helps to detect inapplicable dependency modes. For instance
3685 # both Tru64's cc and ICC support -MD to output dependencies as a
3686 # side effect of compilation, but ICC will put the dependencies in
3687 # the current directory while Tru64 will put them in the object
3688 # directory.
3689 mkdir sub
3690
3691 am_cv_CXX_dependencies_compiler_type=none
3692 if test "$am_compiler_list" = ""; then
3693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3694 fi
3695 am__universal=false
3696 case " $depcc " in #(
3697 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3698 esac
3699
3700 for depmode in $am_compiler_list; do
3701 # Setup a source with many dependencies, because some compilers
3702 # like to wrap large dependency lists on column 80 (with \), and
3703 # we should not choose a depcomp mode which is confused by this.
3704 #
3705 # We need to recreate these files for each test, as the compiler may
3706 # overwrite some of them when testing with obscure command lines.
3707 # This happens at least with the AIX C compiler.
3708 : > sub/conftest.c
3709 for i in 1 2 3 4 5 6; do
3710 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3711 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3712 # Solaris 10 /bin/sh.
3713 echo '/* dummy */' > sub/conftst$i.h
3714 done
3715 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3716
3717 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3718 # mode. It turns out that the SunPro C++ compiler does not properly
3719 # handle '-M -o', and we need to detect this. Also, some Intel
3720 # versions had trouble with output in subdirs.
3721 am__obj=sub/conftest.${OBJEXT-o}
3722 am__minus_obj="-o $am__obj"
3723 case $depmode in
3724 gcc)
3725 # This depmode causes a compiler race in universal mode.
3726 test "$am__universal" = false || continue
3727 ;;
3728 nosideeffect)
3729 # After this tag, mechanisms are not by side-effect, so they'll
3730 # only be used when explicitly requested.
3731 if test "x$enable_dependency_tracking" = xyes; then
3732 continue
3733 else
3734 break
3735 fi
3736 ;;
3737 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3738 # This compiler won't grok '-c -o', but also, the minuso test has
3739 # not run yet. These depmodes are late enough in the game, and
3740 # so weak that their functioning should not be impacted.
3741 am__obj=conftest.${OBJEXT-o}
3742 am__minus_obj=
3743 ;;
3744 none) break ;;
3745 esac
3746 if depmode=$depmode \
3747 source=sub/conftest.c object=$am__obj \
3748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3749 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3750 >/dev/null 2>conftest.err &&
3751 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3752 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3754 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3755 # icc doesn't choke on unknown options, it will just issue warnings
3756 # or remarks (even with -Werror). So we grep stderr for any message
3757 # that says an option was ignored or not supported.
3758 # When given -MP, icc 7.0 and 7.1 complain thusly:
3759 # icc: Command line warning: ignoring option '-M'; no argument required
3760 # The diagnosis changed in icc 8.0:
3761 # icc: Command line remark: option '-MP' not supported
3762 if (grep 'ignoring option' conftest.err ||
3763 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3764 am_cv_CXX_dependencies_compiler_type=$depmode
3765 break
3766 fi
3767 fi
3768 done
3769
3770 cd ..
3771 rm -rf conftest.dir
3772 else
3773 am_cv_CXX_dependencies_compiler_type=none
3774 fi
3775
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3778 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3779 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3780
3781 if
3782 test "x$enable_dependency_tracking" != xno \
3783 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3784 am__fastdepCXX_TRUE=
3785 am__fastdepCXX_FALSE='#'
3786 else
3787 am__fastdepCXX_TRUE='#'
3788 am__fastdepCXX_FALSE=
3789 fi
3790
3791
3792 ac_ext=mm
3793 ac_cpp='$OBJCXXCPP $CPPFLAGS'
3794 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in g++ objc++ objcxx c++ CXX
3799 do
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_OBJCXX+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$OBJCXX"; then
3808 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821 done
3822 done
3823 IFS=$as_save_IFS
3824
3825 fi
3826 fi
3827 OBJCXX=$ac_cv_prog_OBJCXX
3828 if test -n "$OBJCXX"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3830 $as_echo "$OBJCXX" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3834 fi
3835
3836
3837 test -n "$OBJCXX" && break
3838 done
3839 fi
3840 if test -z "$OBJCXX"; then
3841 ac_ct_OBJCXX=$OBJCXX
3842 for ac_prog in g++ objc++ objcxx c++ CXX
3843 do
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$ac_ct_OBJCXX"; then
3852 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865 done
3866 done
3867 IFS=$as_save_IFS
3868
3869 fi
3870 fi
3871 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3872 if test -n "$ac_ct_OBJCXX"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3874 $as_echo "$ac_ct_OBJCXX" >&6; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3878 fi
3879
3880
3881 test -n "$ac_ct_OBJCXX" && break
3882 done
3883
3884 if test "x$ac_ct_OBJCXX" = x; then
3885 OBJCXX="g++"
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 OBJCXX=$ac_ct_OBJCXX
3894 fi
3895 fi
3896
3897 # Provide some information about the compiler.
3898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3899 set X $ac_compile
3900 ac_compiler=$2
3901 for ac_option in --version -v -V -qversion; do
3902 { { ac_try="$ac_compiler $ac_option >&5"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3910 ac_status=$?
3911 if test -s conftest.err; then
3912 sed '10a\
3913 ... rest of stderr output deleted ...
3914 10q' conftest.err >conftest.er1
3915 cat conftest.er1 >&5
3916 fi
3917 rm -f conftest.er1 conftest.err
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }
3920 done
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3923 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3924 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 int
3931 main ()
3932 {
3933 #ifndef __GNUC__
3934 choke me
3935 #endif
3936
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_objcxx_try_compile "$LINENO"; then :
3942 ac_compiler_gnu=yes
3943 else
3944 ac_compiler_gnu=no
3945 fi
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
3948
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3951 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3952 if test $ac_compiler_gnu = yes; then
3953 GOBJCXX=yes
3954 else
3955 GOBJCXX=
3956 fi
3957 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3958 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3960 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3961 if ${ac_cv_prog_objcxx_g+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3965 ac_objcxx_werror_flag=yes
3966 ac_cv_prog_objcxx_g=no
3967 OBJCXXFLAGS="-g"
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main ()
3973 {
3974
3975 ;
3976 return 0;
3977 }
3978 _ACEOF
3979 if ac_fn_objcxx_try_compile "$LINENO"; then :
3980 ac_cv_prog_objcxx_g=yes
3981 else
3982 OBJCXXFLAGS=""
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_objcxx_try_compile "$LINENO"; then :
3995
3996 else
3997 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3998 OBJCXXFLAGS="-g"
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001
4002 int
4003 main ()
4004 {
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_objcxx_try_compile "$LINENO"; then :
4011 ac_cv_prog_objcxx_g=yes
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 fi
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4021 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4022 if test "$ac_test_OBJCXXFLAGS" = set; then
4023 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4024 elif test $ac_cv_prog_objcxx_g = yes; then
4025 if test "$GOBJCXX" = yes; then
4026 OBJCXXFLAGS="-g -O2"
4027 else
4028 OBJCXXFLAGS="-g"
4029 fi
4030 else
4031 if test "$GOBJCXX" = yes; then
4032 OBJCXXFLAGS="-O2"
4033 else
4034 OBJCXXFLAGS=
4035 fi
4036 fi
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4046 $as_echo_n "checking dependency style of $depcc... " >&6; }
4047 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4051 # We make a subdir and do the tests there. Otherwise we can end up
4052 # making bogus files that we don't know about and never remove. For
4053 # instance it was reported that on HP-UX the gcc test will end up
4054 # making a dummy file named 'D' -- because '-MD' means "put the output
4055 # in D".
4056 rm -rf conftest.dir
4057 mkdir conftest.dir
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4061 cd conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4067 # directory.
4068 mkdir sub
4069
4070 am_cv_OBJCXX_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 fi
4074 am__universal=false
4075
4076
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4089 # Solaris 10 /bin/sh.
4090 echo '/* dummy */' > sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
4094 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle '-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs.
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
4105 nosideeffect)
4106 # After this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested.
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok '-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149 else
4150 am_cv_OBJCXX_dependencies_compiler_type=none
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4156 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4161 am__fastdepOBJCXX_TRUE=
4162 am__fastdepOBJCXX_FALSE='#'
4163 else
4164 am__fastdepOBJCXX_TRUE='#'
4165 am__fastdepOBJCXX_FALSE=
4166 fi
4167
4168
4169 ac_ext=c
4170 ac_cpp='$CPP $CPPFLAGS'
4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4195 fi
4196 done
4197 done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4206 else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211
4212 fi
4213 if test -z "$ac_cv_prog_CC"; then
4214 ac_ct_CC=$CC
4215 # Extract the first word of "gcc", so it can be a program name with args.
4216 set dummy gcc; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$ac_ct_CC"; then
4223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_CC="gcc"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4245 $as_echo "$ac_ct_CC" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251 if test "x$ac_ct_CC" = x; then
4252 CC=""
4253 else
4254 case $cross_compiling:$ac_tool_warned in
4255 yes:)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260 CC=$ac_ct_CC
4261 fi
4262 else
4263 CC="$ac_cv_prog_CC"
4264 fi
4265
4266 if test -z "$CC"; then
4267 if test -n "$ac_tool_prefix"; then
4268 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4269 set dummy ${ac_tool_prefix}cc; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_CC+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_CC="${ac_tool_prefix}cc"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289 done
4290 done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 CC=$ac_cv_prog_CC
4296 if test -n "$CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298 $as_echo "$CC" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304
4305 fi
4306 fi
4307 if test -z "$CC"; then
4308 # Extract the first word of "cc", so it can be a program name with args.
4309 set dummy cc; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_CC+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317 else
4318 ac_prog_rejected=no
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4327 ac_prog_rejected=yes
4328 continue
4329 fi
4330 ac_cv_prog_CC="cc"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334 done
4335 done
4336 IFS=$as_save_IFS
4337
4338 if test $ac_prog_rejected = yes; then
4339 # We found a bogon in the path, so make sure we never use it.
4340 set dummy $ac_cv_prog_CC
4341 shift
4342 if test $# != 0; then
4343 # We chose a different compiler from the bogus one.
4344 # However, it has the same basename, so the bogon will be chosen
4345 # first if we set CC to just the basename; use the full file name.
4346 shift
4347 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4348 fi
4349 fi
4350 fi
4351 fi
4352 CC=$ac_cv_prog_CC
4353 if test -n "$CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4355 $as_echo "$CC" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362 fi
4363 if test -z "$CC"; then
4364 if test -n "$ac_tool_prefix"; then
4365 for ac_prog in cl.exe
4366 do
4367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_CC+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$CC"; then
4375 ac_cv_prog_CC="$CC" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 fi
4393 fi
4394 CC=$ac_cv_prog_CC
4395 if test -n "$CC"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4397 $as_echo "$CC" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 fi
4402
4403
4404 test -n "$CC" && break
4405 done
4406 fi
4407 if test -z "$CC"; then
4408 ac_ct_CC=$CC
4409 for ac_prog in cl.exe
4410 do
4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$ac_ct_CC"; then
4419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_ac_ct_CC="$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4439 if test -n "$ac_ct_CC"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4441 $as_echo "$ac_ct_CC" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448 test -n "$ac_ct_CC" && break
4449 done
4450
4451 if test "x$ac_ct_CC" = x; then
4452 CC=""
4453 else
4454 case $cross_compiling:$ac_tool_warned in
4455 yes:)
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458 ac_tool_warned=yes ;;
4459 esac
4460 CC=$ac_ct_CC
4461 fi
4462 fi
4463
4464 fi
4465
4466
4467 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "no acceptable C compiler found in \$PATH
4470 See \`config.log' for more details" "$LINENO" 5; }
4471
4472 # Provide some information about the compiler.
4473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4474 set X $ac_compile
4475 ac_compiler=$2
4476 for ac_option in --version -v -V -qversion; do
4477 { { ac_try="$ac_compiler $ac_option >&5"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4485 ac_status=$?
4486 if test -s conftest.err; then
4487 sed '10a\
4488 ... rest of stderr output deleted ...
4489 10q' conftest.err >conftest.er1
4490 cat conftest.er1 >&5
4491 fi
4492 rm -f conftest.er1 conftest.err
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }
4495 done
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4499 if ${ac_cv_c_compiler_gnu+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504
4505 int
4506 main ()
4507 {
4508 #ifndef __GNUC__
4509 choke me
4510 #endif
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_compiler_gnu=yes
4518 else
4519 ac_compiler_gnu=no
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4523
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4527 if test $ac_compiler_gnu = yes; then
4528 GCC=yes
4529 else
4530 GCC=
4531 fi
4532 ac_test_CFLAGS=${CFLAGS+set}
4533 ac_save_CFLAGS=$CFLAGS
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4536 if ${ac_cv_prog_cc_g+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 ac_save_c_werror_flag=$ac_c_werror_flag
4540 ac_c_werror_flag=yes
4541 ac_cv_prog_cc_g=no
4542 CFLAGS="-g"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_cv_prog_cc_g=yes
4556 else
4557 CFLAGS=""
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570
4571 else
4572 ac_c_werror_flag=$ac_save_c_werror_flag
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576
4577 int
4578 main ()
4579 {
4580
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 fi
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 ac_c_werror_flag=$ac_save_c_werror_flag
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4596 $as_echo "$ac_cv_prog_cc_g" >&6; }
4597 if test "$ac_test_CFLAGS" = set; then
4598 CFLAGS=$ac_save_CFLAGS
4599 elif test $ac_cv_prog_cc_g = yes; then
4600 if test "$GCC" = yes; then
4601 CFLAGS="-g -O2"
4602 else
4603 CFLAGS="-g"
4604 fi
4605 else
4606 if test "$GCC" = yes; then
4607 CFLAGS="-O2"
4608 else
4609 CFLAGS=
4610 fi
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4613 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4614 if ${ac_cv_prog_cc_c89+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_cv_prog_cc_c89=no
4618 ac_save_CC=$CC
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <stdarg.h>
4622 #include <stdio.h>
4623 struct stat;
4624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625 struct buf { int x; };
4626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627 static char *e (p, i)
4628 char **p;
4629 int i;
4630 {
4631 return p[i];
4632 }
4633 static char *f (char * (*g) (char **, int), char **p, ...)
4634 {
4635 char *s;
4636 va_list v;
4637 va_start (v,p);
4638 s = g (p, va_arg (v,int));
4639 va_end (v);
4640 return s;
4641 }
4642
4643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
4646 as 'x'. The following induces an error, until -std is added to get
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
4649 that's true only with -std. */
4650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4651
4652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4654 #define FOO(x) 'x'
4655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4656
4657 int test (int i, double x);
4658 struct s1 {int (*f) (int a);};
4659 struct s2 {int (*f) (double a);};
4660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4661 int argc;
4662 char **argv;
4663 int
4664 main ()
4665 {
4666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4673 do
4674 CC="$ac_save_CC $ac_arg"
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_c89=$ac_arg
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext
4679 test "x$ac_cv_prog_cc_c89" != "xno" && break
4680 done
4681 rm -f conftest.$ac_ext
4682 CC=$ac_save_CC
4683
4684 fi
4685 # AC_CACHE_VAL
4686 case "x$ac_cv_prog_cc_c89" in
4687 x)
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 $as_echo "none needed" >&6; } ;;
4690 xno)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692 $as_echo "unsupported" >&6; } ;;
4693 *)
4694 CC="$CC $ac_cv_prog_cc_c89"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4697 esac
4698 if test "x$ac_cv_prog_cc_c89" != xno; then :
4699
4700 fi
4701
4702 ac_ext=c
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707
4708 depcc="$CC" am_compiler_list=
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4711 $as_echo_n "checking dependency style of $depcc... " >&6; }
4712 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4716 # We make a subdir and do the tests there. Otherwise we can end up
4717 # making bogus files that we don't know about and never remove. For
4718 # instance it was reported that on HP-UX the gcc test will end up
4719 # making a dummy file named 'D' -- because '-MD' means "put the output
4720 # in D".
4721 rm -rf conftest.dir
4722 mkdir conftest.dir
4723 # Copy depcomp to subdir because otherwise we won't find it if we're
4724 # using a relative directory.
4725 cp "$am_depcomp" conftest.dir
4726 cd conftest.dir
4727 # We will build objects and dependencies in a subdirectory because
4728 # it helps to detect inapplicable dependency modes. For instance
4729 # both Tru64's cc and ICC support -MD to output dependencies as a
4730 # side effect of compilation, but ICC will put the dependencies in
4731 # the current directory while Tru64 will put them in the object
4732 # directory.
4733 mkdir sub
4734
4735 am_cv_CC_dependencies_compiler_type=none
4736 if test "$am_compiler_list" = ""; then
4737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4738 fi
4739 am__universal=false
4740 case " $depcc " in #(
4741 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4742 esac
4743
4744 for depmode in $am_compiler_list; do
4745 # Setup a source with many dependencies, because some compilers
4746 # like to wrap large dependency lists on column 80 (with \), and
4747 # we should not choose a depcomp mode which is confused by this.
4748 #
4749 # We need to recreate these files for each test, as the compiler may
4750 # overwrite some of them when testing with obscure command lines.
4751 # This happens at least with the AIX C compiler.
4752 : > sub/conftest.c
4753 for i in 1 2 3 4 5 6; do
4754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4755 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4756 # Solaris 10 /bin/sh.
4757 echo '/* dummy */' > sub/conftst$i.h
4758 done
4759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4760
4761 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4762 # mode. It turns out that the SunPro C++ compiler does not properly
4763 # handle '-M -o', and we need to detect this. Also, some Intel
4764 # versions had trouble with output in subdirs.
4765 am__obj=sub/conftest.${OBJEXT-o}
4766 am__minus_obj="-o $am__obj"
4767 case $depmode in
4768 gcc)
4769 # This depmode causes a compiler race in universal mode.
4770 test "$am__universal" = false || continue
4771 ;;
4772 nosideeffect)
4773 # After this tag, mechanisms are not by side-effect, so they'll
4774 # only be used when explicitly requested.
4775 if test "x$enable_dependency_tracking" = xyes; then
4776 continue
4777 else
4778 break
4779 fi
4780 ;;
4781 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4782 # This compiler won't grok '-c -o', but also, the minuso test has
4783 # not run yet. These depmodes are late enough in the game, and
4784 # so weak that their functioning should not be impacted.
4785 am__obj=conftest.${OBJEXT-o}
4786 am__minus_obj=
4787 ;;
4788 none) break ;;
4789 esac
4790 if depmode=$depmode \
4791 source=sub/conftest.c object=$am__obj \
4792 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4793 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4794 >/dev/null 2>conftest.err &&
4795 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4797 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4799 # icc doesn't choke on unknown options, it will just issue warnings
4800 # or remarks (even with -Werror). So we grep stderr for any message
4801 # that says an option was ignored or not supported.
4802 # When given -MP, icc 7.0 and 7.1 complain thusly:
4803 # icc: Command line warning: ignoring option '-M'; no argument required
4804 # The diagnosis changed in icc 8.0:
4805 # icc: Command line remark: option '-MP' not supported
4806 if (grep 'ignoring option' conftest.err ||
4807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4808 am_cv_CC_dependencies_compiler_type=$depmode
4809 break
4810 fi
4811 fi
4812 done
4813
4814 cd ..
4815 rm -rf conftest.dir
4816 else
4817 am_cv_CC_dependencies_compiler_type=none
4818 fi
4819
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4822 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4824
4825 if
4826 test "x$enable_dependency_tracking" != xno \
4827 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4828 am__fastdepCC_TRUE=
4829 am__fastdepCC_FALSE='#'
4830 else
4831 am__fastdepCC_TRUE='#'
4832 am__fastdepCC_FALSE=
4833 fi
4834
4835
4836
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in ar lib "link -lib"
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_AR+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$AR"; then
4848 ac_cv_prog_AR="$AR" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 AR=$ac_cv_prog_AR
4868 if test -n "$AR"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4870 $as_echo "$AR" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 test -n "$AR" && break
4878 done
4879 fi
4880 if test -z "$AR"; then
4881 ac_ct_AR=$AR
4882 for ac_prog in ar lib "link -lib"
4883 do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$ac_ct_AR"; then
4892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_ac_ct_AR="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4912 if test -n "$ac_ct_AR"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4914 $as_echo "$ac_ct_AR" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 test -n "$ac_ct_AR" && break
4922 done
4923
4924 if test "x$ac_ct_AR" = x; then
4925 AR="false"
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933 AR=$ac_ct_AR
4934 fi
4935 fi
4936
4937 : ${AR=ar}
4938
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4940 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4941 if ${am_cv_ar_interface+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 am_cv_ar_interface=ar
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 int some_variable = 0;
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4952 (eval $am_ar_try) 2>&5
4953 ac_status=$?
4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4955 test $ac_status = 0; }
4956 if test "$ac_status" -eq 0; then
4957 am_cv_ar_interface=ar
4958 else
4959 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4961 (eval $am_ar_try) 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965 if test "$ac_status" -eq 0; then
4966 am_cv_ar_interface=lib
4967 else
4968 am_cv_ar_interface=unknown
4969 fi
4970 fi
4971 rm -f conftest.lib libconftest.a
4972
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4978 $as_echo "$am_cv_ar_interface" >&6; }
4979
4980 case $am_cv_ar_interface in
4981 ar)
4982 ;;
4983 lib)
4984 # Microsoft lib, so override with the ar-lib wrapper script.
4985 # FIXME: It is wrong to rewrite AR.
4986 # But if we don't then we get into trouble of one sort or another.
4987 # A longer-term fix would be to have automake use am__AR in this case,
4988 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4989 # similar.
4990 AR="$am_aux_dir/ar-lib $AR"
4991 ;;
4992 unknown)
4993 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4994 ;;
4995 esac
4996
4997
4998
4999 case `pwd` in
5000 *\ * | *\ *)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5003 esac
5004
5005
5006
5007 macro_version='2.4.2'
5008 macro_revision='1.3337'
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 ltmain="$ac_aux_dir/ltmain.sh"
5023
5024 # Make sure we can run config.sub.
5025 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5026 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5029 $as_echo_n "checking build system type... " >&6; }
5030 if ${ac_cv_build+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 ac_build_alias=$build_alias
5034 test "x$ac_build_alias" = x &&
5035 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5036 test "x$ac_build_alias" = x &&
5037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5039 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5040
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5043 $as_echo "$ac_cv_build" >&6; }
5044 case $ac_cv_build in
5045 *-*-*) ;;
5046 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5047 esac
5048 build=$ac_cv_build
5049 ac_save_IFS=$IFS; IFS='-'
5050 set x $ac_cv_build
5051 shift
5052 build_cpu=$1
5053 build_vendor=$2
5054 shift; shift
5055 # Remember, the first character of IFS is used to create $*,
5056 # except with old shells:
5057 build_os=$*
5058 IFS=$ac_save_IFS
5059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5060
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5063 $as_echo_n "checking host system type... " >&6; }
5064 if ${ac_cv_host+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test "x$host_alias" = x; then
5068 ac_cv_host=$ac_cv_build
5069 else
5070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5071 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5072 fi
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5076 $as_echo "$ac_cv_host" >&6; }
5077 case $ac_cv_host in
5078 *-*-*) ;;
5079 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5080 esac
5081 host=$ac_cv_host
5082 ac_save_IFS=$IFS; IFS='-'
5083 set x $ac_cv_host
5084 shift
5085 host_cpu=$1
5086 host_vendor=$2
5087 shift; shift
5088 # Remember, the first character of IFS is used to create $*,
5089 # except with old shells:
5090 host_os=$*
5091 IFS=$ac_save_IFS
5092 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5093
5094
5095 # Backslashify metacharacters that are still active within
5096 # double-quoted strings.
5097 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5098
5099 # Same as above, but do not quote variable references.
5100 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5101
5102 # Sed substitution to delay expansion of an escaped shell variable in a
5103 # double_quote_subst'ed string.
5104 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5105
5106 # Sed substitution to delay expansion of an escaped single quote.
5107 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5108
5109 # Sed substitution to avoid accidental globbing in evaled expressions
5110 no_glob_subst='s/\*/\\\*/g'
5111
5112 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5113 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5114 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5117 $as_echo_n "checking how to print strings... " >&6; }
5118 # Test print first, because it will be a builtin if present.
5119 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5120 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5121 ECHO='print -r --'
5122 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5123 ECHO='printf %s\n'
5124 else
5125 # Use this function as a fallback that always works.
5126 func_fallback_echo ()
5127 {
5128 eval 'cat <<_LTECHO_EOF
5129 $1
5130 _LTECHO_EOF'
5131 }
5132 ECHO='func_fallback_echo'
5133 fi
5134
5135 # func_echo_all arg...
5136 # Invoke $ECHO with all args, space-separated.
5137 func_echo_all ()
5138 {
5139 $ECHO ""
5140 }
5141
5142 case "$ECHO" in
5143 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5144 $as_echo "printf" >&6; } ;;
5145 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5146 $as_echo "print -r" >&6; } ;;
5147 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5148 $as_echo "cat" >&6; } ;;
5149 esac
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5166 if ${ac_cv_path_SED+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5170 for ac_i in 1 2 3 4 5 6 7; do
5171 ac_script="$ac_script$as_nl$ac_script"
5172 done
5173 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5174 { ac_script=; unset ac_script;}
5175 if test -z "$SED"; then
5176 ac_path_SED_found=false
5177 # Loop through the user's path and test for each of PROGNAME-LIST
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH
5180 do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
5183 for ac_prog in sed gsed; do
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5186 as_fn_executable_p "$ac_path_SED" || continue
5187 # Check for GNU ac_path_SED and select it if it is found.
5188 # Check for GNU $ac_path_SED
5189 case `"$ac_path_SED" --version 2>&1` in
5190 *GNU*)
5191 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5192 *)
5193 ac_count=0
5194 $as_echo_n 0123456789 >"conftest.in"
5195 while :
5196 do
5197 cat "conftest.in" "conftest.in" >"conftest.tmp"
5198 mv "conftest.tmp" "conftest.in"
5199 cp "conftest.in" "conftest.nl"
5200 $as_echo '' >> "conftest.nl"
5201 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203 as_fn_arith $ac_count + 1 && ac_count=$as_val
5204 if test $ac_count -gt ${ac_path_SED_max-0}; then
5205 # Best one so far, save it but keep looking for a better one
5206 ac_cv_path_SED="$ac_path_SED"
5207 ac_path_SED_max=$ac_count
5208 fi
5209 # 10*(2^10) chars as input seems more than enough
5210 test $ac_count -gt 10 && break
5211 done
5212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215 $ac_path_SED_found && break 3
5216 done
5217 done
5218 done
5219 IFS=$as_save_IFS
5220 if test -z "$ac_cv_path_SED"; then
5221 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5222 fi
5223 else
5224 ac_cv_path_SED=$SED
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5229 $as_echo "$ac_cv_path_SED" >&6; }
5230 SED="$ac_cv_path_SED"
5231 rm -f conftest.sed
5232
5233 test -z "$SED" && SED=sed
5234 Xsed="$SED -e 1s/^X//"
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5247 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5248 if ${ac_cv_path_GREP+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -z "$GREP"; then
5252 ac_path_GREP_found=false
5253 # Loop through the user's path and test for each of PROGNAME-LIST
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_prog in grep ggrep; do
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5262 as_fn_executable_p "$ac_path_GREP" || continue
5263 # Check for GNU ac_path_GREP and select it if it is found.
5264 # Check for GNU $ac_path_GREP
5265 case `"$ac_path_GREP" --version 2>&1` in
5266 *GNU*)
5267 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5268 *)
5269 ac_count=0
5270 $as_echo_n 0123456789 >"conftest.in"
5271 while :
5272 do
5273 cat "conftest.in" "conftest.in" >"conftest.tmp"
5274 mv "conftest.tmp" "conftest.in"
5275 cp "conftest.in" "conftest.nl"
5276 $as_echo 'GREP' >> "conftest.nl"
5277 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5279 as_fn_arith $ac_count + 1 && ac_count=$as_val
5280 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5281 # Best one so far, save it but keep looking for a better one
5282 ac_cv_path_GREP="$ac_path_GREP"
5283 ac_path_GREP_max=$ac_count
5284 fi
5285 # 10*(2^10) chars as input seems more than enough
5286 test $ac_count -gt 10 && break
5287 done
5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289 esac
5290
5291 $ac_path_GREP_found && break 3
5292 done
5293 done
5294 done
5295 IFS=$as_save_IFS
5296 if test -z "$ac_cv_path_GREP"; then
5297 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5298 fi
5299 else
5300 ac_cv_path_GREP=$GREP
5301 fi
5302
5303 fi
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5305 $as_echo "$ac_cv_path_GREP" >&6; }
5306 GREP="$ac_cv_path_GREP"
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5310 $as_echo_n "checking for egrep... " >&6; }
5311 if ${ac_cv_path_EGREP+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5315 then ac_cv_path_EGREP="$GREP -E"
5316 else
5317 if test -z "$EGREP"; then
5318 ac_path_EGREP_found=false
5319 # Loop through the user's path and test for each of PROGNAME-LIST
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_prog in egrep; do
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5328 as_fn_executable_p "$ac_path_EGREP" || continue
5329 # Check for GNU ac_path_EGREP and select it if it is found.
5330 # Check for GNU $ac_path_EGREP
5331 case `"$ac_path_EGREP" --version 2>&1` in
5332 *GNU*)
5333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5334 *)
5335 ac_count=0
5336 $as_echo_n 0123456789 >"conftest.in"
5337 while :
5338 do
5339 cat "conftest.in" "conftest.in" >"conftest.tmp"
5340 mv "conftest.tmp" "conftest.in"
5341 cp "conftest.in" "conftest.nl"
5342 $as_echo 'EGREP' >> "conftest.nl"
5343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345 as_fn_arith $ac_count + 1 && ac_count=$as_val
5346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5347 # Best one so far, save it but keep looking for a better one
5348 ac_cv_path_EGREP="$ac_path_EGREP"
5349 ac_path_EGREP_max=$ac_count
5350 fi
5351 # 10*(2^10) chars as input seems more than enough
5352 test $ac_count -gt 10 && break
5353 done
5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355 esac
5356
5357 $ac_path_EGREP_found && break 3
5358 done
5359 done
5360 done
5361 IFS=$as_save_IFS
5362 if test -z "$ac_cv_path_EGREP"; then
5363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 fi
5365 else
5366 ac_cv_path_EGREP=$EGREP
5367 fi
5368
5369 fi
5370 fi
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5372 $as_echo "$ac_cv_path_EGREP" >&6; }
5373 EGREP="$ac_cv_path_EGREP"
5374
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5377 $as_echo_n "checking for fgrep... " >&6; }
5378 if ${ac_cv_path_FGREP+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5382 then ac_cv_path_FGREP="$GREP -F"
5383 else
5384 if test -z "$FGREP"; then
5385 ac_path_FGREP_found=false
5386 # Loop through the user's path and test for each of PROGNAME-LIST
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_prog in fgrep; do
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5395 as_fn_executable_p "$ac_path_FGREP" || continue
5396 # Check for GNU ac_path_FGREP and select it if it is found.
5397 # Check for GNU $ac_path_FGREP
5398 case `"$ac_path_FGREP" --version 2>&1` in
5399 *GNU*)
5400 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5401 *)
5402 ac_count=0
5403 $as_echo_n 0123456789 >"conftest.in"
5404 while :
5405 do
5406 cat "conftest.in" "conftest.in" >"conftest.tmp"
5407 mv "conftest.tmp" "conftest.in"
5408 cp "conftest.in" "conftest.nl"
5409 $as_echo 'FGREP' >> "conftest.nl"
5410 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5412 as_fn_arith $ac_count + 1 && ac_count=$as_val
5413 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5414 # Best one so far, save it but keep looking for a better one
5415 ac_cv_path_FGREP="$ac_path_FGREP"
5416 ac_path_FGREP_max=$ac_count
5417 fi
5418 # 10*(2^10) chars as input seems more than enough
5419 test $ac_count -gt 10 && break
5420 done
5421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422 esac
5423
5424 $ac_path_FGREP_found && break 3
5425 done
5426 done
5427 done
5428 IFS=$as_save_IFS
5429 if test -z "$ac_cv_path_FGREP"; then
5430 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431 fi
5432 else
5433 ac_cv_path_FGREP=$FGREP
5434 fi
5435
5436 fi
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5439 $as_echo "$ac_cv_path_FGREP" >&6; }
5440 FGREP="$ac_cv_path_FGREP"
5441
5442
5443 test -z "$GREP" && GREP=grep
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 # Check whether --with-gnu-ld was given.
5464 if test "${with_gnu_ld+set}" = set; then :
5465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5466 else
5467 with_gnu_ld=no
5468 fi
5469
5470 ac_prog=ld
5471 if test "$GCC" = yes; then
5472 # Check if gcc -print-prog-name=ld gives a path.
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5474 $as_echo_n "checking for ld used by $CC... " >&6; }
5475 case $host in
5476 *-*-mingw*)
5477 # gcc leaves a trailing carriage return which upsets mingw
5478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5479 *)
5480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5481 esac
5482 case $ac_prog in
5483 # Accept absolute paths.
5484 [\\/]* | ?:[\\/]*)
5485 re_direlt='/[^/][^/]*/\.\./'
5486 # Canonicalize the pathname of ld
5487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5490 done
5491 test -z "$LD" && LD="$ac_prog"
5492 ;;
5493 "")
5494 # If it fails, then pretend we aren't using GCC.
5495 ac_prog=ld
5496 ;;
5497 *)
5498 # If it is relative, then search for the first ld in PATH.
5499 with_gnu_ld=unknown
5500 ;;
5501 esac
5502 elif test "$with_gnu_ld" = yes; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5504 $as_echo_n "checking for GNU ld... " >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5507 $as_echo_n "checking for non-GNU ld... " >&6; }
5508 fi
5509 if ${lt_cv_path_LD+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -z "$LD"; then
5513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5514 for ac_dir in $PATH; do
5515 IFS="$lt_save_ifs"
5516 test -z "$ac_dir" && ac_dir=.
5517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5518 lt_cv_path_LD="$ac_dir/$ac_prog"
5519 # Check to see if the program is GNU ld. I'd rather use --version,
5520 # but apparently some variants of GNU ld only accept -v.
5521 # Break only if it was the GNU/non-GNU ld that we prefer.
5522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5523 *GNU* | *'with BFD'*)
5524 test "$with_gnu_ld" != no && break
5525 ;;
5526 *)
5527 test "$with_gnu_ld" != yes && break
5528 ;;
5529 esac
5530 fi
5531 done
5532 IFS="$lt_save_ifs"
5533 else
5534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5535 fi
5536 fi
5537
5538 LD="$lt_cv_path_LD"
5539 if test -n "$LD"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5541 $as_echo "$LD" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5549 if ${lt_cv_prog_gnu_ld+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5553 case `$LD -v 2>&1 </dev/null` in
5554 *GNU* | *'with BFD'*)
5555 lt_cv_prog_gnu_ld=yes
5556 ;;
5557 *)
5558 lt_cv_prog_gnu_ld=no
5559 ;;
5560 esac
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5564 with_gnu_ld=$lt_cv_prog_gnu_ld
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5575 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5576 if ${lt_cv_path_NM+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$NM"; then
5580 # Let the user override the test.
5581 lt_cv_path_NM="$NM"
5582 else
5583 lt_nm_to_check="${ac_tool_prefix}nm"
5584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5585 lt_nm_to_check="$lt_nm_to_check nm"
5586 fi
5587 for lt_tmp_nm in $lt_nm_to_check; do
5588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5589 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590 IFS="$lt_save_ifs"
5591 test -z "$ac_dir" && ac_dir=.
5592 tmp_nm="$ac_dir/$lt_tmp_nm"
5593 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5594 # Check to see if the nm accepts a BSD-compat flag.
5595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5596 # nm: unknown option "B" ignored
5597 # Tru64's nm complains that /dev/null is an invalid object file
5598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5599 */dev/null* | *'Invalid file or object type'*)
5600 lt_cv_path_NM="$tmp_nm -B"
5601 break
5602 ;;
5603 *)
5604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605 */dev/null*)
5606 lt_cv_path_NM="$tmp_nm -p"
5607 break
5608 ;;
5609 *)
5610 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5611 continue # so that we can try to find one that supports BSD flags
5612 ;;
5613 esac
5614 ;;
5615 esac
5616 fi
5617 done
5618 IFS="$lt_save_ifs"
5619 done
5620 : ${lt_cv_path_NM=no}
5621 fi
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5624 $as_echo "$lt_cv_path_NM" >&6; }
5625 if test "$lt_cv_path_NM" != "no"; then
5626 NM="$lt_cv_path_NM"
5627 else
5628 # Didn't find any BSD compatible name lister, look for dumpbin.
5629 if test -n "$DUMPBIN"; then :
5630 # Let the user override the test.
5631 else
5632 if test -n "$ac_tool_prefix"; then
5633 for ac_prog in dumpbin "link -dump"
5634 do
5635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_DUMPBIN+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$DUMPBIN"; then
5643 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 DUMPBIN=$ac_cv_prog_DUMPBIN
5663 if test -n "$DUMPBIN"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5665 $as_echo "$DUMPBIN" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 test -n "$DUMPBIN" && break
5673 done
5674 fi
5675 if test -z "$DUMPBIN"; then
5676 ac_ct_DUMPBIN=$DUMPBIN
5677 for ac_prog in dumpbin "link -dump"
5678 do
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_DUMPBIN"; then
5687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5707 if test -n "$ac_ct_DUMPBIN"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5709 $as_echo "$ac_ct_DUMPBIN" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$ac_ct_DUMPBIN" && break
5717 done
5718
5719 if test "x$ac_ct_DUMPBIN" = x; then
5720 DUMPBIN=":"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723 yes:)
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5727 esac
5728 DUMPBIN=$ac_ct_DUMPBIN
5729 fi
5730 fi
5731
5732 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5733 *COFF*)
5734 DUMPBIN="$DUMPBIN -symbols"
5735 ;;
5736 *)
5737 DUMPBIN=:
5738 ;;
5739 esac
5740 fi
5741
5742 if test "$DUMPBIN" != ":"; then
5743 NM="$DUMPBIN"
5744 fi
5745 fi
5746 test -z "$NM" && NM=nm
5747
5748
5749
5750
5751
5752
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5754 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5755 if ${lt_cv_nm_interface+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 lt_cv_nm_interface="BSD nm"
5759 echo "int some_variable = 0;" > conftest.$ac_ext
5760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5761 (eval "$ac_compile" 2>conftest.err)
5762 cat conftest.err >&5
5763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5765 cat conftest.err >&5
5766 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5767 cat conftest.out >&5
5768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5769 lt_cv_nm_interface="MS dumpbin"
5770 fi
5771 rm -rf conftest*
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5774 $as_echo "$lt_cv_nm_interface" >&6; }
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5777 $as_echo_n "checking whether ln -s works... " >&6; }
5778 LN_S=$as_ln_s
5779 if test "$LN_S" = "ln -s"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5784 $as_echo "no, using $LN_S" >&6; }
5785 fi
5786
5787 # find the maximum length of command line arguments
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5789 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5790 if ${lt_cv_sys_max_cmd_len+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 i=0
5794 teststring="ABCD"
5795
5796 case $build_os in
5797 msdosdjgpp*)
5798 # On DJGPP, this test can blow up pretty badly due to problems in libc
5799 # (any single argument exceeding 2000 bytes causes a buffer overrun
5800 # during glob expansion). Even if it were fixed, the result of this
5801 # check would be larger than it should be.
5802 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5803 ;;
5804
5805 gnu*)
5806 # Under GNU Hurd, this test is not required because there is
5807 # no limit to the length of command line arguments.
5808 # Libtool will interpret -1 as no limit whatsoever
5809 lt_cv_sys_max_cmd_len=-1;
5810 ;;
5811
5812 cygwin* | mingw* | cegcc*)
5813 # On Win9x/ME, this test blows up -- it succeeds, but takes
5814 # about 5 minutes as the teststring grows exponentially.
5815 # Worse, since 9x/ME are not pre-emptively multitasking,
5816 # you end up with a "frozen" computer, even though with patience
5817 # the test eventually succeeds (with a max line length of 256k).
5818 # Instead, let's just punt: use the minimum linelength reported by
5819 # all of the supported platforms: 8192 (on NT/2K/XP).
5820 lt_cv_sys_max_cmd_len=8192;
5821 ;;
5822
5823 mint*)
5824 # On MiNT this can take a long time and run out of memory.
5825 lt_cv_sys_max_cmd_len=8192;
5826 ;;
5827
5828 amigaos*)
5829 # On AmigaOS with pdksh, this test takes hours, literally.
5830 # So we just punt and use a minimum line length of 8192.
5831 lt_cv_sys_max_cmd_len=8192;
5832 ;;
5833
5834 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5835 # This has been around since 386BSD, at least. Likely further.
5836 if test -x /sbin/sysctl; then
5837 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5838 elif test -x /usr/sbin/sysctl; then
5839 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5840 else
5841 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5842 fi
5843 # And add a safety zone
5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5846 ;;
5847
5848 interix*)
5849 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5850 lt_cv_sys_max_cmd_len=196608
5851 ;;
5852
5853 os2*)
5854 # The test takes a long time on OS/2.
5855 lt_cv_sys_max_cmd_len=8192
5856 ;;
5857
5858 osf*)
5859 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5860 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5861 # nice to cause kernel panics so lets avoid the loop below.
5862 # First set a reasonable default.
5863 lt_cv_sys_max_cmd_len=16384
5864 #
5865 if test -x /sbin/sysconfig; then
5866 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5867 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5868 esac
5869 fi
5870 ;;
5871 sco3.2v5*)
5872 lt_cv_sys_max_cmd_len=102400
5873 ;;
5874 sysv5* | sco5v6* | sysv4.2uw2*)
5875 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5876 if test -n "$kargmax"; then
5877 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5878 else
5879 lt_cv_sys_max_cmd_len=32768
5880 fi
5881 ;;
5882 *)
5883 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5884 if test -n "$lt_cv_sys_max_cmd_len"; then
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5887 else
5888 # Make teststring a little bigger before we do anything with it.
5889 # a 1K string should be a reasonable start.
5890 for i in 1 2 3 4 5 6 7 8 ; do
5891 teststring=$teststring$teststring
5892 done
5893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5894 # If test is not a shell built-in, we'll probably end up computing a
5895 # maximum length that is only half of the actual maximum length, but
5896 # we can't tell.
5897 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5898 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5899 test $i != 17 # 1/2 MB should be enough
5900 do
5901 i=`expr $i + 1`
5902 teststring=$teststring$teststring
5903 done
5904 # Only check the string length outside the loop.
5905 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5906 teststring=
5907 # Add a significant safety factor because C++ compilers can tack on
5908 # massive amounts of additional arguments before passing them to the
5909 # linker. It appears as though 1/2 is a usable value.
5910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5911 fi
5912 ;;
5913 esac
5914
5915 fi
5916
5917 if test -n $lt_cv_sys_max_cmd_len ; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5919 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5922 $as_echo "none" >&6; }
5923 fi
5924 max_cmd_len=$lt_cv_sys_max_cmd_len
5925
5926
5927
5928
5929
5930
5931 : ${CP="cp -f"}
5932 : ${MV="mv -f"}
5933 : ${RM="rm -f"}
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5936 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5937 # Try some XSI features
5938 xsi_shell=no
5939 ( _lt_dummy="a/b/c"
5940 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5941 = c,a/b,b/c, \
5942 && eval 'test $(( 1 + 1 )) -eq 2 \
5943 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5944 && xsi_shell=yes
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5946 $as_echo "$xsi_shell" >&6; }
5947
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5950 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5951 lt_shell_append=no
5952 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5953 >/dev/null 2>&1 \
5954 && lt_shell_append=yes
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5956 $as_echo "$lt_shell_append" >&6; }
5957
5958
5959 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5960 lt_unset=unset
5961 else
5962 lt_unset=false
5963 fi
5964
5965
5966
5967
5968
5969 # test EBCDIC or ASCII
5970 case `echo X|tr X '\101'` in
5971 A) # ASCII based system
5972 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5973 lt_SP2NL='tr \040 \012'
5974 lt_NL2SP='tr \015\012 \040\040'
5975 ;;
5976 *) # EBCDIC based system
5977 lt_SP2NL='tr \100 \n'
5978 lt_NL2SP='tr \r\n \100\100'
5979 ;;
5980 esac
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5991 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5992 if ${lt_cv_to_host_file_cmd+:} false; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 case $host in
5996 *-*-mingw* )
5997 case $build in
5998 *-*-mingw* ) # actually msys
5999 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6000 ;;
6001 *-*-cygwin* )
6002 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6003 ;;
6004 * ) # otherwise, assume *nix
6005 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6006 ;;
6007 esac
6008 ;;
6009 *-*-cygwin* )
6010 case $build in
6011 *-*-mingw* ) # actually msys
6012 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6013 ;;
6014 *-*-cygwin* )
6015 lt_cv_to_host_file_cmd=func_convert_file_noop
6016 ;;
6017 * ) # otherwise, assume *nix
6018 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6019 ;;
6020 esac
6021 ;;
6022 * ) # unhandled hosts (and "normal" native builds)
6023 lt_cv_to_host_file_cmd=func_convert_file_noop
6024 ;;
6025 esac
6026
6027 fi
6028
6029 to_host_file_cmd=$lt_cv_to_host_file_cmd
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6031 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6032
6033
6034
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6038 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6039 if ${lt_cv_to_tool_file_cmd+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 #assume ordinary cross tools, or native build.
6043 lt_cv_to_tool_file_cmd=func_convert_file_noop
6044 case $host in
6045 *-*-mingw* )
6046 case $build in
6047 *-*-mingw* ) # actually msys
6048 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6049 ;;
6050 esac
6051 ;;
6052 esac
6053
6054 fi
6055
6056 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6058 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6059
6060
6061
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6065 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6066 if ${lt_cv_ld_reload_flag+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 lt_cv_ld_reload_flag='-r'
6070 fi
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6072 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6073 reload_flag=$lt_cv_ld_reload_flag
6074 case $reload_flag in
6075 "" | " "*) ;;
6076 *) reload_flag=" $reload_flag" ;;
6077 esac
6078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6079 case $host_os in
6080 cygwin* | mingw* | pw32* | cegcc*)
6081 if test "$GCC" != yes; then
6082 reload_cmds=false
6083 fi
6084 ;;
6085 darwin*)
6086 if test "$GCC" = yes; then
6087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088 else
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 fi
6091 ;;
6092 esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_OBJDUMP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$OBJDUMP"; then
6111 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 OBJDUMP=$ac_cv_prog_OBJDUMP
6131 if test -n "$OBJDUMP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6133 $as_echo "$OBJDUMP" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_OBJDUMP"; then
6142 ac_ct_OBJDUMP=$OBJDUMP
6143 # Extract the first word of "objdump", so it can be a program name with args.
6144 set dummy objdump; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$ac_ct_OBJDUMP"; then
6151 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6171 if test -n "$ac_ct_OBJDUMP"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6173 $as_echo "$ac_ct_OBJDUMP" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6177 fi
6178
6179 if test "x$ac_ct_OBJDUMP" = x; then
6180 OBJDUMP="false"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 OBJDUMP=$ac_ct_OBJDUMP
6189 fi
6190 else
6191 OBJDUMP="$ac_cv_prog_OBJDUMP"
6192 fi
6193
6194 test -z "$OBJDUMP" && OBJDUMP=objdump
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6205 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6206 if ${lt_cv_deplibs_check_method+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 lt_cv_file_magic_cmd='$MAGIC_CMD'
6210 lt_cv_file_magic_test_file=
6211 lt_cv_deplibs_check_method='unknown'
6212 # Need to set the preceding variable on all platforms that support
6213 # interlibrary dependencies.
6214 # 'none' -- dependencies not supported.
6215 # `unknown' -- same as none, but documents that we really don't know.
6216 # 'pass_all' -- all dependencies passed with no checks.
6217 # 'test_compile' -- check by making test program.
6218 # 'file_magic [[regex]]' -- check by looking for files in library path
6219 # which responds to the $file_magic_cmd with a given extended regex.
6220 # If you have `file' or equivalent on your system and you're not sure
6221 # whether `pass_all' will *always* work, you probably want this one.
6222
6223 case $host_os in
6224 aix[4-9]*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228 beos*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231
6232 bsdi[45]*)
6233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6234 lt_cv_file_magic_cmd='/usr/bin/file -L'
6235 lt_cv_file_magic_test_file=/shlib/libc.so
6236 ;;
6237
6238 cygwin*)
6239 # func_win32_libid is a shell function defined in ltmain.sh
6240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6241 lt_cv_file_magic_cmd='func_win32_libid'
6242 ;;
6243
6244 mingw* | pw32*)
6245 # Base MSYS/MinGW do not provide the 'file' command needed by
6246 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6247 # unless we find 'file', for example because we are cross-compiling.
6248 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6249 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6251 lt_cv_file_magic_cmd='func_win32_libid'
6252 else
6253 # Keep this pattern in sync with the one in func_win32_libid.
6254 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6255 lt_cv_file_magic_cmd='$OBJDUMP -f'
6256 fi
6257 ;;
6258
6259 cegcc*)
6260 # use the weaker test based on 'objdump'. See mingw*.
6261 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6262 lt_cv_file_magic_cmd='$OBJDUMP -f'
6263 ;;
6264
6265 darwin* | rhapsody*)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268
6269 freebsd* | dragonfly*)
6270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6271 case $host_cpu in
6272 i*86 )
6273 # Not sure whether the presence of OpenBSD here was a mistake.
6274 # Let's accept both of them until this is cleared up.
6275 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6276 lt_cv_file_magic_cmd=/usr/bin/file
6277 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6278 ;;
6279 esac
6280 else
6281 lt_cv_deplibs_check_method=pass_all
6282 fi
6283 ;;
6284
6285 gnu*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288
6289 haiku*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292
6293 hpux10.20* | hpux11*)
6294 lt_cv_file_magic_cmd=/usr/bin/file
6295 case $host_cpu in
6296 ia64*)
6297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6299 ;;
6300 hppa*64*)
6301 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]'
6302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6303 ;;
6304 *)
6305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6307 ;;
6308 esac
6309 ;;
6310
6311 interix[3-9]*)
6312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6314 ;;
6315
6316 irix5* | irix6* | nonstopux*)
6317 case $LD in
6318 *-32|*"-32 ") libmagic=32-bit;;
6319 *-n32|*"-n32 ") libmagic=N32;;
6320 *-64|*"-64 ") libmagic=64-bit;;
6321 *) libmagic=never-match;;
6322 esac
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 # This must be glibc/ELF.
6327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330
6331 netbsd*)
6332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6334 else
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6336 fi
6337 ;;
6338
6339 newos6*)
6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6341 lt_cv_file_magic_cmd=/usr/bin/file
6342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6343 ;;
6344
6345 *nto* | *qnx*)
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
6348
6349 openbsd*)
6350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6352 else
6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6354 fi
6355 ;;
6356
6357 osf3* | osf4* | osf5*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360
6361 rdos*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364
6365 solaris*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 sysv4 | sysv4.3*)
6374 case $host_vendor in
6375 motorola)
6376 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]'
6377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6378 ;;
6379 ncr)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382 sequent)
6383 lt_cv_file_magic_cmd='/bin/file'
6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6385 ;;
6386 sni)
6387 lt_cv_file_magic_cmd='/bin/file'
6388 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6389 lt_cv_file_magic_test_file=/lib/libc.so
6390 ;;
6391 siemens)
6392 lt_cv_deplibs_check_method=pass_all
6393 ;;
6394 pc)
6395 lt_cv_deplibs_check_method=pass_all
6396 ;;
6397 esac
6398 ;;
6399
6400 tpf*)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403 esac
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6407 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6408
6409 file_magic_glob=
6410 want_nocaseglob=no
6411 if test "$build" = "$host"; then
6412 case $host_os in
6413 mingw* | pw32*)
6414 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6415 want_nocaseglob=yes
6416 else
6417 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6418 fi
6419 ;;
6420 esac
6421 fi
6422
6423 file_magic_cmd=$lt_cv_file_magic_cmd
6424 deplibs_check_method=$lt_cv_deplibs_check_method
6425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_DLLTOOL+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$DLLTOOL"; then
6457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6469 fi
6470 done
6471 done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 DLLTOOL=$ac_cv_prog_DLLTOOL
6477 if test -n "$DLLTOOL"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6479 $as_echo "$DLLTOOL" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_DLLTOOL"; then
6488 ac_ct_DLLTOOL=$DLLTOOL
6489 # Extract the first word of "dlltool", so it can be a program name with args.
6490 set dummy dlltool; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$ac_ct_DLLTOOL"; then
6497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6509 fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6517 if test -n "$ac_ct_DLLTOOL"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6519 $as_echo "$ac_ct_DLLTOOL" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525 if test "x$ac_ct_DLLTOOL" = x; then
6526 DLLTOOL="false"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 DLLTOOL=$ac_ct_DLLTOOL
6535 fi
6536 else
6537 DLLTOOL="$ac_cv_prog_DLLTOOL"
6538 fi
6539
6540 test -z "$DLLTOOL" && DLLTOOL=dlltool
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6552 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6553 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 lt_cv_sharedlib_from_linklib_cmd='unknown'
6557
6558 case $host_os in
6559 cygwin* | mingw* | pw32* | cegcc*)
6560 # two different shell functions defined in ltmain.sh
6561 # decide which to use based on capabilities of $DLLTOOL
6562 case `$DLLTOOL --help 2>&1` in
6563 *--identify-strict*)
6564 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6565 ;;
6566 *)
6567 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6568 ;;
6569 esac
6570 ;;
6571 *)
6572 # fallback: assume linklib IS sharedlib
6573 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6574 ;;
6575 esac
6576
6577 fi
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6579 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6580 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6581 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6582
6583
6584
6585
6586
6587
6588
6589 if test -n "$ac_tool_prefix"; then
6590 for ac_prog in ar
6591 do
6592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if ${ac_cv_prog_AR+:} false; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 if test -n "$AR"; then
6600 ac_cv_prog_AR="$AR" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617 fi
6618 fi
6619 AR=$ac_cv_prog_AR
6620 if test -n "$AR"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6622 $as_echo "$AR" >&6; }
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627
6628
6629 test -n "$AR" && break
6630 done
6631 fi
6632 if test -z "$AR"; then
6633 ac_ct_AR=$AR
6634 for ac_prog in ar
6635 do
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$ac_ct_AR"; then
6644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_AR="$ac_prog"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6664 if test -n "$ac_ct_AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6666 $as_echo "$ac_ct_AR" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 test -n "$ac_ct_AR" && break
6674 done
6675
6676 if test "x$ac_ct_AR" = x; then
6677 AR="false"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 AR=$ac_ct_AR
6686 fi
6687 fi
6688
6689 : ${AR=ar}
6690 : ${AR_FLAGS=cru}
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6703 $as_echo_n "checking for archiver @FILE support... " >&6; }
6704 if ${lt_cv_ar_at_file+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 lt_cv_ar_at_file=no
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 echo conftest.$ac_objext > conftest.lst
6721 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6723 (eval $lt_ar_try) 2>&5
6724 ac_status=$?
6725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726 test $ac_status = 0; }
6727 if test "$ac_status" -eq 0; then
6728 # Ensure the archiver fails upon bogus file names.
6729 rm -f conftest.$ac_objext libconftest.a
6730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6731 (eval $lt_ar_try) 2>&5
6732 ac_status=$?
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }
6735 if test "$ac_status" -ne 0; then
6736 lt_cv_ar_at_file=@
6737 fi
6738 fi
6739 rm -f conftest.* libconftest.a
6740
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6746 $as_echo "$lt_cv_ar_at_file" >&6; }
6747
6748 if test "x$lt_cv_ar_at_file" = xno; then
6749 archiver_list_spec=
6750 else
6751 archiver_list_spec=$lt_cv_ar_at_file
6752 fi
6753
6754
6755
6756
6757
6758
6759
6760 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}strip; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_STRIP+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$STRIP"; then
6769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 STRIP=$ac_cv_prog_STRIP
6789 if test -n "$STRIP"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6791 $as_echo "$STRIP" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_STRIP"; then
6800 ac_ct_STRIP=$STRIP
6801 # Extract the first word of "strip", so it can be a program name with args.
6802 set dummy strip; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 if test -n "$ac_ct_STRIP"; then
6809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814 IFS=$as_save_IFS
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_ac_ct_STRIP="strip"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 break 2
6821 fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6829 if test -n "$ac_ct_STRIP"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6831 $as_echo "$ac_ct_STRIP" >&6; }
6832 else
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837 if test "x$ac_ct_STRIP" = x; then
6838 STRIP=":"
6839 else
6840 case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846 STRIP=$ac_ct_STRIP
6847 fi
6848 else
6849 STRIP="$ac_cv_prog_STRIP"
6850 fi
6851
6852 test -z "$STRIP" && STRIP=:
6853
6854
6855
6856
6857
6858
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_RANLIB+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 if test -n "$RANLIB"; then
6868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873 IFS=$as_save_IFS
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 RANLIB=$ac_cv_prog_RANLIB
6888 if test -n "$RANLIB"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6890 $as_echo "$RANLIB" >&6; }
6891 else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896
6897 fi
6898 if test -z "$ac_cv_prog_RANLIB"; then
6899 ac_ct_RANLIB=$RANLIB
6900 # Extract the first word of "ranlib", so it can be a program name with args.
6901 set dummy ranlib; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$ac_ct_RANLIB"; then
6908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_ac_ct_RANLIB="ranlib"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6928 if test -n "$ac_ct_RANLIB"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6930 $as_echo "$ac_ct_RANLIB" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936 if test "x$ac_ct_RANLIB" = x; then
6937 RANLIB=":"
6938 else
6939 case $cross_compiling:$ac_tool_warned in
6940 yes:)
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 RANLIB=$ac_ct_RANLIB
6946 fi
6947 else
6948 RANLIB="$ac_cv_prog_RANLIB"
6949 fi
6950
6951 test -z "$RANLIB" && RANLIB=:
6952
6953
6954
6955
6956
6957
6958 # Determine commands to create old-style static archives.
6959 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6960 old_postinstall_cmds='chmod 644 $oldlib'
6961 old_postuninstall_cmds=
6962
6963 if test -n "$RANLIB"; then
6964 case $host_os in
6965 openbsd*)
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6967 ;;
6968 *)
6969 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6970 ;;
6971 esac
6972 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6973 fi
6974
6975 case $host_os in
6976 darwin*)
6977 lock_old_archive_extraction=yes ;;
6978 *)
6979 lock_old_archive_extraction=no ;;
6980 esac
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020 # If no C compiler was specified, use CC.
7021 LTCC=${LTCC-"$CC"}
7022
7023 # If no C compiler flags were specified, use CFLAGS.
7024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7025
7026 # Allow CC to be a program name with arguments.
7027 compiler=$CC
7028
7029
7030 # Check for command to grab the raw symbol name followed by C symbol from nm.
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7032 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7033 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036
7037 # These are sane defaults that work on at least a few old systems.
7038 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7039
7040 # Character class describing NM global symbol codes.
7041 symcode='[BCDEGRST]'
7042
7043 # Regexp to match symbols that can be accessed directly from C.
7044 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7045
7046 # Define system-specific variables.
7047 case $host_os in
7048 aix*)
7049 symcode='[BCDT]'
7050 ;;
7051 cygwin* | mingw* | pw32* | cegcc*)
7052 symcode='[ABCDGISTW]'
7053 ;;
7054 hpux*)
7055 if test "$host_cpu" = ia64; then
7056 symcode='[ABCDEGRST]'
7057 fi
7058 ;;
7059 irix* | nonstopux*)
7060 symcode='[BCDEGRST]'
7061 ;;
7062 osf*)
7063 symcode='[BCDEGQRST]'
7064 ;;
7065 solaris*)
7066 symcode='[BDRT]'
7067 ;;
7068 sco3.2v5*)
7069 symcode='[DT]'
7070 ;;
7071 sysv4.2uw2*)
7072 symcode='[DT]'
7073 ;;
7074 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7075 symcode='[ABDT]'
7076 ;;
7077 sysv4)
7078 symcode='[DFNSTU]'
7079 ;;
7080 esac
7081
7082 # If we're using GNU nm, then use its standard symbol codes.
7083 case `$NM -V 2>&1` in
7084 *GNU* | *'with BFD'*)
7085 symcode='[ABCDGIRSTW]' ;;
7086 esac
7087
7088 # Transform an extracted symbol line into a proper C declaration.
7089 # Some systems (esp. on ia64) link data and code symbols differently,
7090 # so use this general approach.
7091 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7092
7093 # Transform an extracted symbol line into symbol name and symbol address
7094 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7095 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'"
7096
7097 # Handle CRLF in mingw tool chain
7098 opt_cr=
7099 case $build_os in
7100 mingw*)
7101 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7102 ;;
7103 esac
7104
7105 # Try without a prefix underscore, then with it.
7106 for ac_symprfx in "" "_"; do
7107
7108 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7109 symxfrm="\\1 $ac_symprfx\\2 \\2"
7110
7111 # Write the raw and C identifiers.
7112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7113 # Fake it for dumpbin and say T for any non-static function
7114 # and D for any global variable.
7115 # Also find C++ and __fastcall symbols from MSVC++,
7116 # which start with @ or ?.
7117 lt_cv_sys_global_symbol_pipe="$AWK '"\
7118 " {last_section=section; section=\$ 3};"\
7119 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7120 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7121 " \$ 0!~/External *\|/{next};"\
7122 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7123 " {if(hide[section]) next};"\
7124 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7125 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7126 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7127 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7128 " ' prfx=^$ac_symprfx"
7129 else
7130 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7131 fi
7132 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7133
7134 # Check to see that the pipe works correctly.
7135 pipe_works=no
7136
7137 rm -rf conftest*
7138 cat > conftest.$ac_ext <<_LT_EOF
7139 #ifdef __cplusplus
7140 extern "C" {
7141 #endif
7142 char nm_test_var;
7143 void nm_test_func(void);
7144 void nm_test_func(void){}
7145 #ifdef __cplusplus
7146 }
7147 #endif
7148 int main(){nm_test_var='a';nm_test_func();return(0);}
7149 _LT_EOF
7150
7151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152 (eval $ac_compile) 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; then
7156 # Now try to grab the symbols.
7157 nlist=conftest.nm
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7159 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7160 ac_status=$?
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; } && test -s "$nlist"; then
7163 # Try sorting and uniquifying the output.
7164 if sort "$nlist" | uniq > "$nlist"T; then
7165 mv -f "$nlist"T "$nlist"
7166 else
7167 rm -f "$nlist"T
7168 fi
7169
7170 # Make sure that we snagged all the symbols we need.
7171 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7172 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7173 cat <<_LT_EOF > conftest.$ac_ext
7174 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7175 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7176 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7177 relocations are performed -- see ld's documentation on pseudo-relocs. */
7178 # define LT_DLSYM_CONST
7179 #elif defined(__osf__)
7180 /* This system does not cope well with relocations in const data. */
7181 # define LT_DLSYM_CONST
7182 #else
7183 # define LT_DLSYM_CONST const
7184 #endif
7185
7186 #ifdef __cplusplus
7187 extern "C" {
7188 #endif
7189
7190 _LT_EOF
7191 # Now generate the symbol file.
7192 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7193
7194 cat <<_LT_EOF >> conftest.$ac_ext
7195
7196 /* The mapping between symbol names and symbols. */
7197 LT_DLSYM_CONST struct {
7198 const char *name;
7199 void *address;
7200 }
7201 lt__PROGRAM__LTX_preloaded_symbols[] =
7202 {
7203 { "@PROGRAM@", (void *) 0 },
7204 _LT_EOF
7205 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7206 cat <<\_LT_EOF >> conftest.$ac_ext
7207 {0, (void *) 0}
7208 };
7209
7210 /* This works around a problem in FreeBSD linker */
7211 #ifdef FREEBSD_WORKAROUND
7212 static const void *lt_preloaded_setup() {
7213 return lt__PROGRAM__LTX_preloaded_symbols;
7214 }
7215 #endif
7216
7217 #ifdef __cplusplus
7218 }
7219 #endif
7220 _LT_EOF
7221 # Now try linking the two files.
7222 mv conftest.$ac_objext conftstm.$ac_objext
7223 lt_globsym_save_LIBS=$LIBS
7224 lt_globsym_save_CFLAGS=$CFLAGS
7225 LIBS="conftstm.$ac_objext"
7226 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7228 (eval $ac_link) 2>&5
7229 ac_status=$?
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7232 pipe_works=yes
7233 fi
7234 LIBS=$lt_globsym_save_LIBS
7235 CFLAGS=$lt_globsym_save_CFLAGS
7236 else
7237 echo "cannot find nm_test_func in $nlist" >&5
7238 fi
7239 else
7240 echo "cannot find nm_test_var in $nlist" >&5
7241 fi
7242 else
7243 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7244 fi
7245 else
7246 echo "$progname: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7248 fi
7249 rm -rf conftest* conftst*
7250
7251 # Do not use the global_symbol_pipe unless it works.
7252 if test "$pipe_works" = yes; then
7253 break
7254 else
7255 lt_cv_sys_global_symbol_pipe=
7256 fi
7257 done
7258
7259 fi
7260
7261 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7262 lt_cv_sys_global_symbol_to_cdecl=
7263 fi
7264 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7266 $as_echo "failed" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7269 $as_echo "ok" >&6; }
7270 fi
7271
7272 # Response file support.
7273 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7274 nm_file_list_spec='@'
7275 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7276 nm_file_list_spec='@'
7277 fi
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7306 $as_echo_n "checking for sysroot... " >&6; }
7307
7308 # Check whether --with-sysroot was given.
7309 if test "${with_sysroot+set}" = set; then :
7310 withval=$with_sysroot;
7311 else
7312 with_sysroot=no
7313 fi
7314
7315
7316 lt_sysroot=
7317 case ${with_sysroot} in #(
7318 yes)
7319 if test "$GCC" = yes; then
7320 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7321 fi
7322 ;; #(
7323 /*)
7324 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7325 ;; #(
7326 no|'')
7327 ;; #(
7328 *)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7330 $as_echo "${with_sysroot}" >&6; }
7331 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7332 ;;
7333 esac
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7336 $as_echo "${lt_sysroot:-no}" >&6; }
7337
7338
7339
7340
7341
7342 # Check whether --enable-libtool-lock was given.
7343 if test "${enable_libtool_lock+set}" = set; then :
7344 enableval=$enable_libtool_lock;
7345 fi
7346
7347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7348
7349 # Some flags need to be propagated to the compiler or linker for good
7350 # libtool support.
7351 case $host in
7352 ia64-*-hpux*)
7353 # Find out which ABI we are using.
7354 echo 'int i;' > conftest.$ac_ext
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7356 (eval $ac_compile) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; }; then
7360 case `/usr/bin/file conftest.$ac_objext` in
7361 *ELF-32*)
7362 HPUX_IA64_MODE="32"
7363 ;;
7364 *ELF-64*)
7365 HPUX_IA64_MODE="64"
7366 ;;
7367 esac
7368 fi
7369 rm -rf conftest*
7370 ;;
7371 *-*-irix6*)
7372 # Find out which ABI we are using.
7373 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7375 (eval $ac_compile) 2>&5
7376 ac_status=$?
7377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7378 test $ac_status = 0; }; then
7379 if test "$lt_cv_prog_gnu_ld" = yes; then
7380 case `/usr/bin/file conftest.$ac_objext` in
7381 *32-bit*)
7382 LD="${LD-ld} -melf32bsmip"
7383 ;;
7384 *N32*)
7385 LD="${LD-ld} -melf32bmipn32"
7386 ;;
7387 *64-bit*)
7388 LD="${LD-ld} -melf64bmip"
7389 ;;
7390 esac
7391 else
7392 case `/usr/bin/file conftest.$ac_objext` in
7393 *32-bit*)
7394 LD="${LD-ld} -32"
7395 ;;
7396 *N32*)
7397 LD="${LD-ld} -n32"
7398 ;;
7399 *64-bit*)
7400 LD="${LD-ld} -64"
7401 ;;
7402 esac
7403 fi
7404 fi
7405 rm -rf conftest*
7406 ;;
7407
7408 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7409 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7410 # Find out which ABI we are using.
7411 echo 'int i;' > conftest.$ac_ext
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413 (eval $ac_compile) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }; then
7417 case `/usr/bin/file conftest.o` in
7418 *32-bit*)
7419 case $host in
7420 x86_64-*kfreebsd*-gnu)
7421 LD="${LD-ld} -m elf_i386_fbsd"
7422 ;;
7423 x86_64-*linux*)
7424 LD="${LD-ld} -m elf_i386"
7425 ;;
7426 ppc64-*linux*|powerpc64-*linux*)
7427 LD="${LD-ld} -m elf32ppclinux"
7428 ;;
7429 s390x-*linux*)
7430 LD="${LD-ld} -m elf_s390"
7431 ;;
7432 sparc64-*linux*)
7433 LD="${LD-ld} -m elf32_sparc"
7434 ;;
7435 esac
7436 ;;
7437 *64-bit*)
7438 case $host in
7439 x86_64-*kfreebsd*-gnu)
7440 LD="${LD-ld} -m elf_x86_64_fbsd"
7441 ;;
7442 x86_64-*linux*)
7443 LD="${LD-ld} -m elf_x86_64"
7444 ;;
7445 ppc*-*linux*|powerpc*-*linux*)
7446 LD="${LD-ld} -m elf64ppc"
7447 ;;
7448 s390*-*linux*|s390*-*tpf*)
7449 LD="${LD-ld} -m elf64_s390"
7450 ;;
7451 sparc*-*linux*)
7452 LD="${LD-ld} -m elf64_sparc"
7453 ;;
7454 esac
7455 ;;
7456 esac
7457 fi
7458 rm -rf conftest*
7459 ;;
7460
7461 *-*-sco3.2v5*)
7462 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7463 SAVE_CFLAGS="$CFLAGS"
7464 CFLAGS="$CFLAGS -belf"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7466 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7467 if ${lt_cv_cc_needs_belf+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 ac_ext=c
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478
7479 int
7480 main ()
7481 {
7482
7483 ;
7484 return 0;
7485 }
7486 _ACEOF
7487 if ac_fn_c_try_link "$LINENO"; then :
7488 lt_cv_cc_needs_belf=yes
7489 else
7490 lt_cv_cc_needs_belf=no
7491 fi
7492 rm -f core conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 ac_ext=c
7495 ac_cpp='$CPP $CPPFLAGS'
7496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7502 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7503 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7504 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7505 CFLAGS="$SAVE_CFLAGS"
7506 fi
7507 ;;
7508 *-*solaris*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.o` in
7517 *64-bit*)
7518 case $lt_cv_prog_gnu_ld in
7519 yes*)
7520 case $host in
7521 i?86-*-solaris*)
7522 LD="${LD-ld} -m elf_x86_64"
7523 ;;
7524 sparc*-*-solaris*)
7525 LD="${LD-ld} -m elf64_sparc"
7526 ;;
7527 esac
7528 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7529 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7530 LD="${LD-ld}_sol2"
7531 fi
7532 ;;
7533 *)
7534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7535 LD="${LD-ld} -64"
7536 fi
7537 ;;
7538 esac
7539 ;;
7540 esac
7541 fi
7542 rm -rf conftest*
7543 ;;
7544 esac
7545
7546 need_locks="$enable_libtool_lock"
7547
7548 if test -n "$ac_tool_prefix"; then
7549 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7550 set dummy ${ac_tool_prefix}mt; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 if test -n "$MANIFEST_TOOL"; then
7557 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570 done
7571 done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7577 if test -n "$MANIFEST_TOOL"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7579 $as_echo "$MANIFEST_TOOL" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585
7586 fi
7587 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7588 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7589 # Extract the first word of "mt", so it can be a program name with args.
7590 set dummy mt; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 if test -n "$ac_ct_MANIFEST_TOOL"; then
7597 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610 done
7611 done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7617 if test -n "$ac_ct_MANIFEST_TOOL"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7619 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7620 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7626 MANIFEST_TOOL=":"
7627 else
7628 case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7635 fi
7636 else
7637 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7638 fi
7639
7640 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7642 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7643 if ${lt_cv_path_mainfest_tool+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 lt_cv_path_mainfest_tool=no
7647 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7648 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7649 cat conftest.err >&5
7650 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7651 lt_cv_path_mainfest_tool=yes
7652 fi
7653 rm -rf conftest*
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7656 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7657 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7658 MANIFEST_TOOL=:
7659 fi
7660
7661
7662
7663
7664
7665
7666 case $host_os in
7667 rhapsody* | darwin*)
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$DSYMUTIL"; then
7677 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7697 if test -n "$DSYMUTIL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7699 $as_echo "$DSYMUTIL" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706 fi
7707 if test -z "$ac_cv_prog_DSYMUTIL"; then
7708 ac_ct_DSYMUTIL=$DSYMUTIL
7709 # Extract the first word of "dsymutil", so it can be a program name with args.
7710 set dummy dsymutil; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$ac_ct_DSYMUTIL"; then
7717 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7737 if test -n "$ac_ct_DSYMUTIL"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7739 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745 if test "x$ac_ct_DSYMUTIL" = x; then
7746 DSYMUTIL=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749 yes:)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7753 esac
7754 DSYMUTIL=$ac_ct_DSYMUTIL
7755 fi
7756 else
7757 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7758 fi
7759
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_NMEDIT+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$NMEDIT"; then
7769 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 NMEDIT=$ac_cv_prog_NMEDIT
7789 if test -n "$NMEDIT"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7791 $as_echo "$NMEDIT" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 fi
7799 if test -z "$ac_cv_prog_NMEDIT"; then
7800 ac_ct_NMEDIT=$NMEDIT
7801 # Extract the first word of "nmedit", so it can be a program name with args.
7802 set dummy nmedit; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_NMEDIT"; then
7809 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7829 if test -n "$ac_ct_NMEDIT"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7831 $as_echo "$ac_ct_NMEDIT" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837 if test "x$ac_ct_NMEDIT" = x; then
7838 NMEDIT=":"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841 yes:)
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844 ac_tool_warned=yes ;;
7845 esac
7846 NMEDIT=$ac_ct_NMEDIT
7847 fi
7848 else
7849 NMEDIT="$ac_cv_prog_NMEDIT"
7850 fi
7851
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_LIPO+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$LIPO"; then
7861 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 LIPO=$ac_cv_prog_LIPO
7881 if test -n "$LIPO"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7883 $as_echo "$LIPO" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890 fi
7891 if test -z "$ac_cv_prog_LIPO"; then
7892 ac_ct_LIPO=$LIPO
7893 # Extract the first word of "lipo", so it can be a program name with args.
7894 set dummy lipo; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$ac_ct_LIPO"; then
7901 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_ac_ct_LIPO="lipo"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7921 if test -n "$ac_ct_LIPO"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7923 $as_echo "$ac_ct_LIPO" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929 if test "x$ac_ct_LIPO" = x; then
7930 LIPO=":"
7931 else
7932 case $cross_compiling:$ac_tool_warned in
7933 yes:)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7936 ac_tool_warned=yes ;;
7937 esac
7938 LIPO=$ac_ct_LIPO
7939 fi
7940 else
7941 LIPO="$ac_cv_prog_LIPO"
7942 fi
7943
7944 if test -n "$ac_tool_prefix"; then
7945 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}otool; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_OTOOL+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$OTOOL"; then
7953 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 OTOOL=$ac_cv_prog_OTOOL
7973 if test -n "$OTOOL"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7975 $as_echo "$OTOOL" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 fi
7983 if test -z "$ac_cv_prog_OTOOL"; then
7984 ac_ct_OTOOL=$OTOOL
7985 # Extract the first word of "otool", so it can be a program name with args.
7986 set dummy otool; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$ac_ct_OTOOL"; then
7993 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_ac_ct_OTOOL="otool"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8013 if test -n "$ac_ct_OTOOL"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8015 $as_echo "$ac_ct_OTOOL" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021 if test "x$ac_ct_OTOOL" = x; then
8022 OTOOL=":"
8023 else
8024 case $cross_compiling:$ac_tool_warned in
8025 yes:)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8029 esac
8030 OTOOL=$ac_ct_OTOOL
8031 fi
8032 else
8033 OTOOL="$ac_cv_prog_OTOOL"
8034 fi
8035
8036 if test -n "$ac_tool_prefix"; then
8037 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8038 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_prog_OTOOL64+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$OTOOL64"; then
8045 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 OTOOL64=$ac_cv_prog_OTOOL64
8065 if test -n "$OTOOL64"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8067 $as_echo "$OTOOL64" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073
8074 fi
8075 if test -z "$ac_cv_prog_OTOOL64"; then
8076 ac_ct_OTOOL64=$OTOOL64
8077 # Extract the first word of "otool64", so it can be a program name with args.
8078 set dummy otool64; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 if test -n "$ac_ct_OTOOL64"; then
8085 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_ac_ct_OTOOL64="otool64"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi
8103 fi
8104 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8105 if test -n "$ac_ct_OTOOL64"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8107 $as_echo "$ac_ct_OTOOL64" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113 if test "x$ac_ct_OTOOL64" = x; then
8114 OTOOL64=":"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122 OTOOL64=$ac_ct_OTOOL64
8123 fi
8124 else
8125 OTOOL64="$ac_cv_prog_OTOOL64"
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8155 $as_echo_n "checking for -single_module linker flag... " >&6; }
8156 if ${lt_cv_apple_cc_single_mod+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 lt_cv_apple_cc_single_mod=no
8160 if test -z "${LT_MULTI_MODULE}"; then
8161 # By default we will add the -single_module flag. You can override
8162 # by either setting the environment variable LT_MULTI_MODULE
8163 # non-empty at configure time, or by adding -multi_module to the
8164 # link flags.
8165 rm -rf libconftest.dylib*
8166 echo "int foo(void){return 1;}" > conftest.c
8167 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c" >&5
8169 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8170 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8171 _lt_result=$?
8172 # If there is a non-empty error log, and "single_module"
8173 # appears in it, assume the flag caused a linker warning
8174 if test -s conftest.err && $GREP single_module conftest.err; then
8175 cat conftest.err >&5
8176 # Otherwise, if the output was created with a 0 exit code from
8177 # the compiler, it worked.
8178 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8179 lt_cv_apple_cc_single_mod=yes
8180 else
8181 cat conftest.err >&5
8182 fi
8183 rm -rf libconftest.dylib*
8184 rm -f conftest.*
8185 fi
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8188 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8191 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8192 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 lt_cv_ld_exported_symbols_list=no
8196 save_LDFLAGS=$LDFLAGS
8197 echo "_main" > conftest.sym
8198 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201
8202 int
8203 main ()
8204 {
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211 lt_cv_ld_exported_symbols_list=yes
8212 else
8213 lt_cv_ld_exported_symbols_list=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LDFLAGS="$save_LDFLAGS"
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8221 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8222
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8224 $as_echo_n "checking for -force_load linker flag... " >&6; }
8225 if ${lt_cv_ld_force_load+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 lt_cv_ld_force_load=no
8229 cat > conftest.c << _LT_EOF
8230 int forced_loaded() { return 2;}
8231 _LT_EOF
8232 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8233 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8234 echo "$AR cru libconftest.a conftest.o" >&5
8235 $AR cru libconftest.a conftest.o 2>&5
8236 echo "$RANLIB libconftest.a" >&5
8237 $RANLIB libconftest.a 2>&5
8238 cat > conftest.c << _LT_EOF
8239 int main() { return 0;}
8240 _LT_EOF
8241 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8242 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8243 _lt_result=$?
8244 if test -s conftest.err && $GREP force_load conftest.err; then
8245 cat conftest.err >&5
8246 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8247 lt_cv_ld_force_load=yes
8248 else
8249 cat conftest.err >&5
8250 fi
8251 rm -f conftest.err libconftest.a conftest conftest.c
8252 rm -rf conftest.dSYM
8253
8254 fi
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8256 $as_echo "$lt_cv_ld_force_load" >&6; }
8257 case $host_os in
8258 rhapsody* | darwin1.[012])
8259 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8260 darwin1.*)
8261 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8262 darwin*) # darwin 5.x on
8263 # if running on 10.5 or later, the deployment target defaults
8264 # to the OS version, if on x86, and 10.4, the deployment
8265 # target defaults to 10.4. Don't you love it?
8266 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8267 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269 10.[012]*)
8270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8271 10.*)
8272 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8273 esac
8274 ;;
8275 esac
8276 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8277 _lt_dar_single_mod='$single_module'
8278 fi
8279 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8280 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8281 else
8282 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8283 fi
8284 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8285 _lt_dsymutil='~$DSYMUTIL $lib || :'
8286 else
8287 _lt_dsymutil=
8288 fi
8289 ;;
8290 esac
8291
8292 ac_ext=c
8293 ac_cpp='$CPP $CPPFLAGS'
8294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8298 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8299 # On Suns, sometimes $CPP names a directory.
8300 if test -n "$CPP" && test -d "$CPP"; then
8301 CPP=
8302 fi
8303 if test -z "$CPP"; then
8304 if ${ac_cv_prog_CPP+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 # Double quotes because CPP needs to be expanded
8308 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8309 do
8310 ac_preproc_ok=false
8311 for ac_c_preproc_warn_flag in '' yes
8312 do
8313 # Use a header file that comes with gcc, so configuring glibc
8314 # with a fresh cross-compiler works.
8315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8316 # <limits.h> exists even on freestanding compilers.
8317 # On the NeXT, cc -E runs the code through the compiler's parser,
8318 # not just through cpp. "Syntax error" is here to catch this case.
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 #ifdef __STDC__
8322 # include <limits.h>
8323 #else
8324 # include <assert.h>
8325 #endif
8326 Syntax error
8327 _ACEOF
8328 if ac_fn_c_try_cpp "$LINENO"; then :
8329
8330 else
8331 # Broken: fails on valid input.
8332 continue
8333 fi
8334 rm -f conftest.err conftest.i conftest.$ac_ext
8335
8336 # OK, works on sane cases. Now check whether nonexistent headers
8337 # can be detected and how.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <ac_nonexistent.h>
8341 _ACEOF
8342 if ac_fn_c_try_cpp "$LINENO"; then :
8343 # Broken: success on invalid input.
8344 continue
8345 else
8346 # Passes both tests.
8347 ac_preproc_ok=:
8348 break
8349 fi
8350 rm -f conftest.err conftest.i conftest.$ac_ext
8351
8352 done
8353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8354 rm -f conftest.i conftest.err conftest.$ac_ext
8355 if $ac_preproc_ok; then :
8356 break
8357 fi
8358
8359 done
8360 ac_cv_prog_CPP=$CPP
8361
8362 fi
8363 CPP=$ac_cv_prog_CPP
8364 else
8365 ac_cv_prog_CPP=$CPP
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8368 $as_echo "$CPP" >&6; }
8369 ac_preproc_ok=false
8370 for ac_c_preproc_warn_flag in '' yes
8371 do
8372 # Use a header file that comes with gcc, so configuring glibc
8373 # with a fresh cross-compiler works.
8374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8375 # <limits.h> exists even on freestanding compilers.
8376 # On the NeXT, cc -E runs the code through the compiler's parser,
8377 # not just through cpp. "Syntax error" is here to catch this case.
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 #ifdef __STDC__
8381 # include <limits.h>
8382 #else
8383 # include <assert.h>
8384 #endif
8385 Syntax error
8386 _ACEOF
8387 if ac_fn_c_try_cpp "$LINENO"; then :
8388
8389 else
8390 # Broken: fails on valid input.
8391 continue
8392 fi
8393 rm -f conftest.err conftest.i conftest.$ac_ext
8394
8395 # OK, works on sane cases. Now check whether nonexistent headers
8396 # can be detected and how.
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <ac_nonexistent.h>
8400 _ACEOF
8401 if ac_fn_c_try_cpp "$LINENO"; then :
8402 # Broken: success on invalid input.
8403 continue
8404 else
8405 # Passes both tests.
8406 ac_preproc_ok=:
8407 break
8408 fi
8409 rm -f conftest.err conftest.i conftest.$ac_ext
8410
8411 done
8412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8413 rm -f conftest.i conftest.err conftest.$ac_ext
8414 if $ac_preproc_ok; then :
8415
8416 else
8417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8419 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8420 See \`config.log' for more details" "$LINENO" 5; }
8421 fi
8422
8423 ac_ext=c
8424 ac_cpp='$CPP $CPPFLAGS'
8425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8428
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8431 $as_echo_n "checking for ANSI C header files... " >&6; }
8432 if ${ac_cv_header_stdc+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <stdlib.h>
8438 #include <stdarg.h>
8439 #include <string.h>
8440 #include <float.h>
8441
8442 int
8443 main ()
8444 {
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 ac_cv_header_stdc=yes
8452 else
8453 ac_cv_header_stdc=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456
8457 if test $ac_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <string.h>
8462
8463 _ACEOF
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "memchr" >/dev/null 2>&1; then :
8466
8467 else
8468 ac_cv_header_stdc=no
8469 fi
8470 rm -f conftest*
8471
8472 fi
8473
8474 if test $ac_cv_header_stdc = yes; then
8475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <stdlib.h>
8479
8480 _ACEOF
8481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 $EGREP "free" >/dev/null 2>&1; then :
8483
8484 else
8485 ac_cv_header_stdc=no
8486 fi
8487 rm -f conftest*
8488
8489 fi
8490
8491 if test $ac_cv_header_stdc = yes; then
8492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8493 if test "$cross_compiling" = yes; then :
8494 :
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <ctype.h>
8499 #include <stdlib.h>
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503 #else
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509 #endif
8510
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8512 int
8513 main ()
8514 {
8515 int i;
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8519 return 2;
8520 return 0;
8521 }
8522 _ACEOF
8523 if ac_fn_c_try_run "$LINENO"; then :
8524
8525 else
8526 ac_cv_header_stdc=no
8527 fi
8528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8530 fi
8531
8532 fi
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8535 $as_echo "$ac_cv_header_stdc" >&6; }
8536 if test $ac_cv_header_stdc = yes; then
8537
8538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8539
8540 fi
8541
8542 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8544 inttypes.h stdint.h unistd.h
8545 do :
8546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8547 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8548 "
8549 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552 _ACEOF
8553
8554 fi
8555
8556 done
8557
8558
8559 for ac_header in dlfcn.h
8560 do :
8561 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8562 "
8563 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_DLFCN_H 1
8566 _ACEOF
8567
8568 fi
8569
8570 done
8571
8572
8573
8574
8575 func_stripname_cnf ()
8576 {
8577 case ${2} in
8578 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8579 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8580 esac
8581 } # func_stripname_cnf
8582
8583
8584
8585
8586
8587 # Set options
8588 # Check whether --enable-static was given.
8589 if test "${enable_static+set}" = set; then :
8590 enableval=$enable_static; p=${PACKAGE-default}
8591 case $enableval in
8592 yes) enable_static=yes ;;
8593 no) enable_static=no ;;
8594 *)
8595 enable_static=no
8596 # Look at the argument we got. We use all the common list separators.
8597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8598 for pkg in $enableval; do
8599 IFS="$lt_save_ifs"
8600 if test "X$pkg" = "X$p"; then
8601 enable_static=yes
8602 fi
8603 done
8604 IFS="$lt_save_ifs"
8605 ;;
8606 esac
8607 else
8608 enable_static=no
8609 fi
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620 enable_dlopen=no
8621
8622
8623 enable_win32_dll=no
8624
8625
8626 # Check whether --enable-shared was given.
8627 if test "${enable_shared+set}" = set; then :
8628 enableval=$enable_shared; p=${PACKAGE-default}
8629 case $enableval in
8630 yes) enable_shared=yes ;;
8631 no) enable_shared=no ;;
8632 *)
8633 enable_shared=no
8634 # Look at the argument we got. We use all the common list separators.
8635 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8636 for pkg in $enableval; do
8637 IFS="$lt_save_ifs"
8638 if test "X$pkg" = "X$p"; then
8639 enable_shared=yes
8640 fi
8641 done
8642 IFS="$lt_save_ifs"
8643 ;;
8644 esac
8645 else
8646 enable_shared=yes
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659 # Check whether --with-pic was given.
8660 if test "${with_pic+set}" = set; then :
8661 withval=$with_pic; lt_p=${PACKAGE-default}
8662 case $withval in
8663 yes|no) pic_mode=$withval ;;
8664 *)
8665 pic_mode=default
8666 # Look at the argument we got. We use all the common list separators.
8667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8668 for lt_pkg in $withval; do
8669 IFS="$lt_save_ifs"
8670 if test "X$lt_pkg" = "X$lt_p"; then
8671 pic_mode=yes
8672 fi
8673 done
8674 IFS="$lt_save_ifs"
8675 ;;
8676 esac
8677 else
8678 pic_mode=default
8679 fi
8680
8681
8682 test -z "$pic_mode" && pic_mode=default
8683
8684
8685
8686
8687
8688
8689
8690 # Check whether --enable-fast-install was given.
8691 if test "${enable_fast_install+set}" = set; then :
8692 enableval=$enable_fast_install; p=${PACKAGE-default}
8693 case $enableval in
8694 yes) enable_fast_install=yes ;;
8695 no) enable_fast_install=no ;;
8696 *)
8697 enable_fast_install=no
8698 # Look at the argument we got. We use all the common list separators.
8699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8700 for pkg in $enableval; do
8701 IFS="$lt_save_ifs"
8702 if test "X$pkg" = "X$p"; then
8703 enable_fast_install=yes
8704 fi
8705 done
8706 IFS="$lt_save_ifs"
8707 ;;
8708 esac
8709 else
8710 enable_fast_install=yes
8711 fi
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723 # This can be used to rebuild libtool when needed
8724 LIBTOOL_DEPS="$ltmain"
8725
8726 # Always use our own libtool.
8727 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 test -z "$LN_S" && LN_S="ln -s"
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773 if test -n "${ZSH_VERSION+set}" ; then
8774 setopt NO_GLOB_SUBST
8775 fi
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8778 $as_echo_n "checking for objdir... " >&6; }
8779 if ${lt_cv_objdir+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 rm -f .libs 2>/dev/null
8783 mkdir .libs 2>/dev/null
8784 if test -d .libs; then
8785 lt_cv_objdir=.libs
8786 else
8787 # MS-DOS does not allow filenames that begin with a dot.
8788 lt_cv_objdir=_libs
8789 fi
8790 rmdir .libs 2>/dev/null
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8793 $as_echo "$lt_cv_objdir" >&6; }
8794 objdir=$lt_cv_objdir
8795
8796
8797
8798
8799
8800 cat >>confdefs.h <<_ACEOF
8801 #define LT_OBJDIR "$lt_cv_objdir/"
8802 _ACEOF
8803
8804
8805
8806
8807 case $host_os in
8808 aix3*)
8809 # AIX sometimes has problems with the GCC collect2 program. For some
8810 # reason, if we set the COLLECT_NAMES environment variable, the problems
8811 # vanish in a puff of smoke.
8812 if test "X${COLLECT_NAMES+set}" != Xset; then
8813 COLLECT_NAMES=
8814 export COLLECT_NAMES
8815 fi
8816 ;;
8817 esac
8818
8819 # Global variables:
8820 ofile=libtool
8821 can_build_shared=yes
8822
8823 # All known linkers require a `.a' archive for static linking (except MSVC,
8824 # which needs '.lib').
8825 libext=a
8826
8827 with_gnu_ld="$lt_cv_prog_gnu_ld"
8828
8829 old_CC="$CC"
8830 old_CFLAGS="$CFLAGS"
8831
8832 # Set sane defaults for various variables
8833 test -z "$CC" && CC=cc
8834 test -z "$LTCC" && LTCC=$CC
8835 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8836 test -z "$LD" && LD=ld
8837 test -z "$ac_objext" && ac_objext=o
8838
8839 for cc_temp in $compiler""; do
8840 case $cc_temp in
8841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8843 \-*) ;;
8844 *) break;;
8845 esac
8846 done
8847 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8848
8849
8850 # Only perform the check for file, if the check method requires it
8851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8852 case $deplibs_check_method in
8853 file_magic*)
8854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8856 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8857 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $MAGIC_CMD in
8861 [\\/*] | ?:[\\/]*)
8862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8863 ;;
8864 *)
8865 lt_save_MAGIC_CMD="$MAGIC_CMD"
8866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8868 for ac_dir in $ac_dummy; do
8869 IFS="$lt_save_ifs"
8870 test -z "$ac_dir" && ac_dir=.
8871 if test -f $ac_dir/${ac_tool_prefix}file; then
8872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8873 if test -n "$file_magic_test_file"; then
8874 case $deplibs_check_method in
8875 "file_magic "*)
8876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8879 $EGREP "$file_magic_regex" > /dev/null; then
8880 :
8881 else
8882 cat <<_LT_EOF 1>&2
8883
8884 *** Warning: the command libtool uses to detect shared libraries,
8885 *** $file_magic_cmd, produces output that libtool cannot recognize.
8886 *** The result is that libtool may fail to recognize shared libraries
8887 *** as such. This will affect the creation of libtool libraries that
8888 *** depend on shared libraries, but programs linked with such libtool
8889 *** libraries will work regardless of this problem. Nevertheless, you
8890 *** may want to report the problem to your system manager and/or to
8891 *** bug-libtool@gnu.org
8892
8893 _LT_EOF
8894 fi ;;
8895 esac
8896 fi
8897 break
8898 fi
8899 done
8900 IFS="$lt_save_ifs"
8901 MAGIC_CMD="$lt_save_MAGIC_CMD"
8902 ;;
8903 esac
8904 fi
8905
8906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8907 if test -n "$MAGIC_CMD"; then
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8909 $as_echo "$MAGIC_CMD" >&6; }
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914
8915
8916
8917
8918
8919 if test -z "$lt_cv_path_MAGIC_CMD"; then
8920 if test -n "$ac_tool_prefix"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8922 $as_echo_n "checking for file... " >&6; }
8923 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 case $MAGIC_CMD in
8927 [\\/*] | ?:[\\/]*)
8928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8929 ;;
8930 *)
8931 lt_save_MAGIC_CMD="$MAGIC_CMD"
8932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8934 for ac_dir in $ac_dummy; do
8935 IFS="$lt_save_ifs"
8936 test -z "$ac_dir" && ac_dir=.
8937 if test -f $ac_dir/file; then
8938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8939 if test -n "$file_magic_test_file"; then
8940 case $deplibs_check_method in
8941 "file_magic "*)
8942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8945 $EGREP "$file_magic_regex" > /dev/null; then
8946 :
8947 else
8948 cat <<_LT_EOF 1>&2
8949
8950 *** Warning: the command libtool uses to detect shared libraries,
8951 *** $file_magic_cmd, produces output that libtool cannot recognize.
8952 *** The result is that libtool may fail to recognize shared libraries
8953 *** as such. This will affect the creation of libtool libraries that
8954 *** depend on shared libraries, but programs linked with such libtool
8955 *** libraries will work regardless of this problem. Nevertheless, you
8956 *** may want to report the problem to your system manager and/or to
8957 *** bug-libtool@gnu.org
8958
8959 _LT_EOF
8960 fi ;;
8961 esac
8962 fi
8963 break
8964 fi
8965 done
8966 IFS="$lt_save_ifs"
8967 MAGIC_CMD="$lt_save_MAGIC_CMD"
8968 ;;
8969 esac
8970 fi
8971
8972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8973 if test -n "$MAGIC_CMD"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8975 $as_echo "$MAGIC_CMD" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 fi
8980
8981
8982 else
8983 MAGIC_CMD=:
8984 fi
8985 fi
8986
8987 fi
8988 ;;
8989 esac
8990
8991 # Use C for the default configuration in the libtool script
8992
8993 lt_save_CC="$CC"
8994 ac_ext=c
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8999
9000
9001 # Source file extension for C test sources.
9002 ac_ext=c
9003
9004 # Object file extension for compiled C test sources.
9005 objext=o
9006 objext=$objext
9007
9008 # Code to be used in simple compile tests
9009 lt_simple_compile_test_code="int some_variable = 0;"
9010
9011 # Code to be used in simple link tests
9012 lt_simple_link_test_code='int main(){return(0);}'
9013
9014
9015
9016
9017
9018
9019
9020 # If no C compiler was specified, use CC.
9021 LTCC=${LTCC-"$CC"}
9022
9023 # If no C compiler flags were specified, use CFLAGS.
9024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9025
9026 # Allow CC to be a program name with arguments.
9027 compiler=$CC
9028
9029 # Save the default compiler, since it gets overwritten when the other
9030 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9031 compiler_DEFAULT=$CC
9032
9033 # save warnings/boilerplate of simple test code
9034 ac_outfile=conftest.$ac_objext
9035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9037 _lt_compiler_boilerplate=`cat conftest.err`
9038 $RM -r conftest*
9039
9040 ac_outfile=conftest.$ac_objext
9041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9043 _lt_linker_boilerplate=`cat conftest.err`
9044 $RM -r conftest*
9045
9046
9047 ## CAVEAT EMPTOR:
9048 ## There is no encapsulation within the following macros, do not change
9049 ## the running order or otherwise move them around unless you know exactly
9050 ## what you are doing...
9051 if test -n "$compiler"; then
9052
9053 lt_prog_compiler_no_builtin_flag=
9054
9055 if test "$GCC" = yes; then
9056 case $cc_basename in
9057 nvcc*)
9058 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9059 *)
9060 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9061 esac
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9065 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 lt_cv_prog_compiler_rtti_exceptions=no
9069 ac_outfile=conftest.$ac_objext
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="-fno-rtti -fno-exceptions"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 # The option is referenced via a variable to avoid confusing sed.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9082 (eval "$lt_compile" 2>conftest.err)
9083 ac_status=$?
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 if (exit $ac_status) && test -s "$ac_outfile"; then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings other than the usual output.
9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_rtti_exceptions=yes
9093 fi
9094 fi
9095 $RM -r conftest*
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9100
9101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9103 else
9104 :
9105 fi
9106
9107 fi
9108
9109
9110
9111
9112
9113
9114 lt_prog_compiler_wl=
9115 lt_prog_compiler_pic=
9116 lt_prog_compiler_static=
9117
9118
9119 if test "$GCC" = yes; then
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_static='-static'
9122
9123 case $host_os in
9124 aix*)
9125 # All AIX code is PIC.
9126 if test "$host_cpu" = ia64; then
9127 # AIX 5 now supports IA64 processor
9128 lt_prog_compiler_static='-Bstatic'
9129 fi
9130 ;;
9131
9132 amigaos*)
9133 case $host_cpu in
9134 powerpc)
9135 # see comment about AmigaOS4 .so support
9136 lt_prog_compiler_pic='-fPIC'
9137 ;;
9138 m68k)
9139 # FIXME: we need at least 68020 code to build shared libraries, but
9140 # adding the `-m68020' flag to GCC prevents building anything better,
9141 # like `-m68040'.
9142 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143 ;;
9144 esac
9145 ;;
9146
9147 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9148 # PIC is the default for these OSes.
9149 ;;
9150
9151 mingw* | cygwin* | pw32* | os2* | cegcc*)
9152 # This hack is so that the source file can tell whether it is being
9153 # built for inclusion in a dll (and should export symbols for example).
9154 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9155 # (--disable-auto-import) libraries
9156 lt_prog_compiler_pic='-DDLL_EXPORT'
9157 ;;
9158
9159 darwin* | rhapsody*)
9160 # PIC is the default on this platform
9161 # Common symbols not allowed in MH_DYLIB files
9162 lt_prog_compiler_pic='-fno-common'
9163 ;;
9164
9165 haiku*)
9166 # PIC is the default for Haiku.
9167 # The "-static" flag exists, but is broken.
9168 lt_prog_compiler_static=
9169 ;;
9170
9171 hpux*)
9172 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9173 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9174 # sets the default TLS model and affects inlining.
9175 case $host_cpu in
9176 hppa*64*)
9177 # +Z the default
9178 ;;
9179 *)
9180 lt_prog_compiler_pic='-fPIC'
9181 ;;
9182 esac
9183 ;;
9184
9185 interix[3-9]*)
9186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9187 # Instead, we relocate shared libraries at runtime.
9188 ;;
9189
9190 msdosdjgpp*)
9191 # Just because we use GCC doesn't mean we suddenly get shared libraries
9192 # on systems that don't support them.
9193 lt_prog_compiler_can_build_shared=no
9194 enable_shared=no
9195 ;;
9196
9197 *nto* | *qnx*)
9198 # QNX uses GNU C++, but need to define -shared option too, otherwise
9199 # it will coredump.
9200 lt_prog_compiler_pic='-fPIC -shared'
9201 ;;
9202
9203 sysv4*MP*)
9204 if test -d /usr/nec; then
9205 lt_prog_compiler_pic=-Kconform_pic
9206 fi
9207 ;;
9208
9209 *)
9210 lt_prog_compiler_pic='-fPIC'
9211 ;;
9212 esac
9213
9214 case $cc_basename in
9215 nvcc*) # Cuda Compiler Driver 2.2
9216 lt_prog_compiler_wl='-Xlinker '
9217 if test -n "$lt_prog_compiler_pic"; then
9218 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9219 fi
9220 ;;
9221 esac
9222 else
9223 # PORTME Check for flag to pass linker flags through the system compiler.
9224 case $host_os in
9225 aix*)
9226 lt_prog_compiler_wl='-Wl,'
9227 if test "$host_cpu" = ia64; then
9228 # AIX 5 now supports IA64 processor
9229 lt_prog_compiler_static='-Bstatic'
9230 else
9231 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9232 fi
9233 ;;
9234
9235 mingw* | cygwin* | pw32* | os2* | cegcc*)
9236 # This hack is so that the source file can tell whether it is being
9237 # built for inclusion in a dll (and should export symbols for example).
9238 lt_prog_compiler_pic='-DDLL_EXPORT'
9239 ;;
9240
9241 hpux9* | hpux10* | hpux11*)
9242 lt_prog_compiler_wl='-Wl,'
9243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9244 # not for PA HP-UX.
9245 case $host_cpu in
9246 hppa*64*|ia64*)
9247 # +Z the default
9248 ;;
9249 *)
9250 lt_prog_compiler_pic='+Z'
9251 ;;
9252 esac
9253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9254 lt_prog_compiler_static='${wl}-a ${wl}archive'
9255 ;;
9256
9257 irix5* | irix6* | nonstopux*)
9258 lt_prog_compiler_wl='-Wl,'
9259 # PIC (with -KPIC) is the default.
9260 lt_prog_compiler_static='-non_shared'
9261 ;;
9262
9263 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9264 case $cc_basename in
9265 # old Intel for x86_64 which still supported -KPIC.
9266 ecc*)
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='-KPIC'
9269 lt_prog_compiler_static='-static'
9270 ;;
9271 # icc used to be incompatible with GCC.
9272 # ICC 10 doesn't accept -KPIC any more.
9273 icc* | ifort*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-fPIC'
9276 lt_prog_compiler_static='-static'
9277 ;;
9278 # Lahey Fortran 8.1.
9279 lf95*)
9280 lt_prog_compiler_wl='-Wl,'
9281 lt_prog_compiler_pic='--shared'
9282 lt_prog_compiler_static='--static'
9283 ;;
9284 nagfor*)
9285 # NAG Fortran compiler
9286 lt_prog_compiler_wl='-Wl,-Wl,,'
9287 lt_prog_compiler_pic='-PIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 ;;
9290 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9291 # Portland Group compilers (*not* the Pentium gcc compiler,
9292 # which looks to be a dead project)
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-fpic'
9295 lt_prog_compiler_static='-Bstatic'
9296 ;;
9297 ccc*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # All Alpha code is PIC.
9300 lt_prog_compiler_static='-non_shared'
9301 ;;
9302 xl* | bgxl* | bgf* | mpixl*)
9303 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-qpic'
9306 lt_prog_compiler_static='-qstaticlink'
9307 ;;
9308 *)
9309 case `$CC -V 2>&1 | sed 5q` in
9310 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl=''
9315 ;;
9316 *Sun\ F* | *Sun*Fortran*)
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 lt_prog_compiler_wl='-Qoption ld '
9320 ;;
9321 *Sun\ C*)
9322 # Sun C 5.9
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl='-Wl,'
9326 ;;
9327 *Intel*\ [CF]*Compiler*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fPIC'
9330 lt_prog_compiler_static='-static'
9331 ;;
9332 *Portland\ Group*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fpic'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337 esac
9338 ;;
9339 esac
9340 ;;
9341
9342 newsos6)
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 ;;
9346
9347 *nto* | *qnx*)
9348 # QNX uses GNU C++, but need to define -shared option too, otherwise
9349 # it will coredump.
9350 lt_prog_compiler_pic='-fPIC -shared'
9351 ;;
9352
9353 osf3* | osf4* | osf5*)
9354 lt_prog_compiler_wl='-Wl,'
9355 # All OSF/1 code is PIC.
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9358
9359 rdos*)
9360 lt_prog_compiler_static='-non_shared'
9361 ;;
9362
9363 solaris*)
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 case $cc_basename in
9367 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9368 lt_prog_compiler_wl='-Qoption ld ';;
9369 *)
9370 lt_prog_compiler_wl='-Wl,';;
9371 esac
9372 ;;
9373
9374 sunos4*)
9375 lt_prog_compiler_wl='-Qoption ld '
9376 lt_prog_compiler_pic='-PIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379
9380 sysv4 | sysv4.2uw2* | sysv4.3*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9385
9386 sysv4*MP*)
9387 if test -d /usr/nec ;then
9388 lt_prog_compiler_pic='-Kconform_pic'
9389 lt_prog_compiler_static='-Bstatic'
9390 fi
9391 ;;
9392
9393 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9398
9399 unicos*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_can_build_shared=no
9402 ;;
9403
9404 uts4*)
9405 lt_prog_compiler_pic='-pic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408
9409 *)
9410 lt_prog_compiler_can_build_shared=no
9411 ;;
9412 esac
9413 fi
9414
9415 case $host_os in
9416 # For platforms which do not support PIC, -DPIC is meaningless:
9417 *djgpp*)
9418 lt_prog_compiler_pic=
9419 ;;
9420 *)
9421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9422 ;;
9423 esac
9424
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9426 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9427 if ${lt_cv_prog_compiler_pic+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9433 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9434 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9435
9436 #
9437 # Check to make sure the PIC flag actually works.
9438 #
9439 if test -n "$lt_prog_compiler_pic"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9442 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 lt_cv_prog_compiler_pic_works=no
9446 ac_outfile=conftest.$ac_objext
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9449 # Insert the option either (1) after the last *FLAGS variable, or
9450 # (2) before a word containing "conftest.", or (3) at the end.
9451 # Note that $ac_compile itself does not contain backslashes and begins
9452 # with a dollar sign (not a hyphen), so the echo should work correctly.
9453 # The option is referenced via a variable to avoid confusing sed.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>conftest.err)
9460 ac_status=$?
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s "$ac_outfile"; then
9464 # The compiler can only warn and ignore the option if not recognized
9465 # So say no if there are warnings other than the usual output.
9466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_cv_prog_compiler_pic_works=yes
9470 fi
9471 fi
9472 $RM -r conftest*
9473
9474 fi
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9477
9478 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9479 case $lt_prog_compiler_pic in
9480 "" | " "*) ;;
9481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9482 esac
9483 else
9484 lt_prog_compiler_pic=
9485 lt_prog_compiler_can_build_shared=no
9486 fi
9487
9488 fi
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500 #
9501 # Check to make sure the static flag actually works.
9502 #
9503 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9505 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9506 if ${lt_cv_prog_compiler_static_works+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 lt_cv_prog_compiler_static_works=no
9510 save_LDFLAGS="$LDFLAGS"
9511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9514 # The linker can only warn and ignore the option if not recognized
9515 # So say no if there are warnings
9516 if test -s conftest.err; then
9517 # Append any errors to the config.log.
9518 cat conftest.err 1>&5
9519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9521 if diff conftest.exp conftest.er2 >/dev/null; then
9522 lt_cv_prog_compiler_static_works=yes
9523 fi
9524 else
9525 lt_cv_prog_compiler_static_works=yes
9526 fi
9527 fi
9528 $RM -r conftest*
9529 LDFLAGS="$save_LDFLAGS"
9530
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9533 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9534
9535 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9536 :
9537 else
9538 lt_prog_compiler_static=
9539 fi
9540
9541
9542
9543
9544
9545
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9548 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9549 if ${lt_cv_prog_compiler_c_o+:} false; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 lt_cv_prog_compiler_c_o=no
9553 $RM -r conftest 2>/dev/null
9554 mkdir conftest
9555 cd conftest
9556 mkdir out
9557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9558
9559 lt_compiler_flag="-o out/conftest2.$ac_objext"
9560 # Insert the option either (1) after the last *FLAGS variable, or
9561 # (2) before a word containing "conftest.", or (3) at the end.
9562 # Note that $ac_compile itself does not contain backslashes and begins
9563 # with a dollar sign (not a hyphen), so the echo should work correctly.
9564 lt_compile=`echo "$ac_compile" | $SED \
9565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9567 -e 's:$: $lt_compiler_flag:'`
9568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9569 (eval "$lt_compile" 2>out/conftest.err)
9570 ac_status=$?
9571 cat out/conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9574 then
9575 # The compiler can only warn and ignore the option if not recognized
9576 # So say no if there are warnings
9577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9580 lt_cv_prog_compiler_c_o=yes
9581 fi
9582 fi
9583 chmod u+w . 2>&5
9584 $RM -r conftest*
9585 # SGI C++ compiler will create directory out/ii_files/ for
9586 # template instantiation
9587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9588 $RM out/* && rmdir out
9589 cd ..
9590 $RM -r conftest
9591 $RM -r conftest*
9592
9593 fi
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9595 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9596
9597
9598
9599
9600
9601
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9603 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9604 if ${lt_cv_prog_compiler_c_o+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 lt_cv_prog_compiler_c_o=no
9608 $RM -r conftest 2>/dev/null
9609 mkdir conftest
9610 cd conftest
9611 mkdir out
9612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9613
9614 lt_compiler_flag="-o out/conftest2.$ac_objext"
9615 # Insert the option either (1) after the last *FLAGS variable, or
9616 # (2) before a word containing "conftest.", or (3) at the end.
9617 # Note that $ac_compile itself does not contain backslashes and begins
9618 # with a dollar sign (not a hyphen), so the echo should work correctly.
9619 lt_compile=`echo "$ac_compile" | $SED \
9620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9622 -e 's:$: $lt_compiler_flag:'`
9623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9624 (eval "$lt_compile" 2>out/conftest.err)
9625 ac_status=$?
9626 cat out/conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9629 then
9630 # The compiler can only warn and ignore the option if not recognized
9631 # So say no if there are warnings
9632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9635 lt_cv_prog_compiler_c_o=yes
9636 fi
9637 fi
9638 chmod u+w . 2>&5
9639 $RM -r conftest*
9640 # SGI C++ compiler will create directory out/ii_files/ for
9641 # template instantiation
9642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9643 $RM out/* && rmdir out
9644 cd ..
9645 $RM -r conftest
9646 $RM -r conftest*
9647
9648 fi
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9650 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9651
9652
9653
9654
9655 hard_links="nottested"
9656 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9657 # do not overwrite the value of need_locks provided by the user
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9659 $as_echo_n "checking if we can lock with hard links... " >&6; }
9660 hard_links=yes
9661 $RM -r conftest*
9662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9663 touch conftest.a
9664 ln conftest.a conftest.b 2>&5 || hard_links=no
9665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9667 $as_echo "$hard_links" >&6; }
9668 if test "$hard_links" = no; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9670 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9671 need_locks=warn
9672 fi
9673 else
9674 need_locks=no
9675 fi
9676
9677
9678
9679
9680
9681
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9683 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9684
9685 runpath_var=
9686 allow_undefined_flag=
9687 always_export_symbols=no
9688 archive_cmds=
9689 archive_expsym_cmds=
9690 compiler_needs_object=no
9691 enable_shared_with_static_runtimes=no
9692 export_dynamic_flag_spec=
9693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9694 hardcode_automatic=no
9695 hardcode_direct=no
9696 hardcode_direct_absolute=no
9697 hardcode_libdir_flag_spec=
9698 hardcode_libdir_separator=
9699 hardcode_minus_L=no
9700 hardcode_shlibpath_var=unsupported
9701 inherit_rpath=no
9702 link_all_deplibs=unknown
9703 module_cmds=
9704 module_expsym_cmds=
9705 old_archive_from_new_cmds=
9706 old_archive_from_expsyms_cmds=
9707 thread_safe_flag_spec=
9708 whole_archive_flag_spec=
9709 # include_expsyms should be a list of space-separated symbols to be *always*
9710 # included in the symbol list
9711 include_expsyms=
9712 # exclude_expsyms can be an extended regexp of symbols to exclude
9713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9715 # as well as any symbol that contains `d'.
9716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9718 # platforms (ab)use it in PIC code, but their linkers get confused if
9719 # the symbol is explicitly referenced. Since portable code cannot
9720 # rely on this symbol name, it's probably fine to never include it in
9721 # preloaded symbol tables.
9722 # Exclude shared library initialization/finalization symbols.
9723 extract_expsyms_cmds=
9724
9725 case $host_os in
9726 cygwin* | mingw* | pw32* | cegcc*)
9727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9728 # When not using gcc, we currently assume that we are using
9729 # Microsoft Visual C++.
9730 if test "$GCC" != yes; then
9731 with_gnu_ld=no
9732 fi
9733 ;;
9734 interix*)
9735 # we just hope/assume this is gcc and not c89 (= MSVC++)
9736 with_gnu_ld=yes
9737 ;;
9738 openbsd*)
9739 with_gnu_ld=no
9740 ;;
9741 esac
9742
9743 ld_shlibs=yes
9744
9745 # On some targets, GNU ld is compatible enough with the native linker
9746 # that we're better off using the native interface for both.
9747 lt_use_gnu_ld_interface=no
9748 if test "$with_gnu_ld" = yes; then
9749 case $host_os in
9750 aix*)
9751 # The AIX port of GNU ld has always aspired to compatibility
9752 # with the native linker. However, as the warning in the GNU ld
9753 # block says, versions before 2.19.5* couldn't really create working
9754 # shared libraries, regardless of the interface used.
9755 case `$LD -v 2>&1` in
9756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9759 *)
9760 lt_use_gnu_ld_interface=yes
9761 ;;
9762 esac
9763 ;;
9764 *)
9765 lt_use_gnu_ld_interface=yes
9766 ;;
9767 esac
9768 fi
9769
9770 if test "$lt_use_gnu_ld_interface" = yes; then
9771 # If archive_cmds runs LD, not CC, wlarc should be empty
9772 wlarc='${wl}'
9773
9774 # Set some defaults for GNU ld with shared library support. These
9775 # are reset later if shared libraries are not supported. Putting them
9776 # here allows them to be overridden if necessary.
9777 runpath_var=LD_RUN_PATH
9778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9779 export_dynamic_flag_spec='${wl}--export-dynamic'
9780 # ancient GNU ld didn't support --whole-archive et. al.
9781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9783 else
9784 whole_archive_flag_spec=
9785 fi
9786 supports_anon_versioning=no
9787 case `$LD -v 2>&1` in
9788 *GNU\ gold*) supports_anon_versioning=yes ;;
9789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9792 *\ 2.11.*) ;; # other 2.11 versions
9793 *) supports_anon_versioning=yes ;;
9794 esac
9795
9796 # See if GNU ld supports shared libraries.
9797 case $host_os in
9798 aix[3-9]*)
9799 # On AIX/PPC, the GNU linker is very broken
9800 if test "$host_cpu" != ia64; then
9801 ld_shlibs=no
9802 cat <<_LT_EOF 1>&2
9803
9804 *** Warning: the GNU linker, at least up to release 2.19, is reported
9805 *** to be unable to reliably create shared libraries on AIX.
9806 *** Therefore, libtool is disabling shared libraries support. If you
9807 *** really care for shared libraries, you may want to install binutils
9808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9809 *** You will then need to restart the configuration process.
9810
9811 _LT_EOF
9812 fi
9813 ;;
9814
9815 amigaos*)
9816 case $host_cpu in
9817 powerpc)
9818 # see comment about AmigaOS4 .so support
9819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9820 archive_expsym_cmds=''
9821 ;;
9822 m68k)
9823 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)'
9824 hardcode_libdir_flag_spec='-L$libdir'
9825 hardcode_minus_L=yes
9826 ;;
9827 esac
9828 ;;
9829
9830 beos*)
9831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9832 allow_undefined_flag=unsupported
9833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9834 # support --undefined. This deserves some investigation. FIXME
9835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 else
9837 ld_shlibs=no
9838 fi
9839 ;;
9840
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9843 # as there is no search path for DLLs.
9844 hardcode_libdir_flag_spec='-L$libdir'
9845 export_dynamic_flag_spec='${wl}--export-all-symbols'
9846 allow_undefined_flag=unsupported
9847 always_export_symbols=no
9848 enable_shared_with_static_runtimes=yes
9849 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'
9850 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9851
9852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9854 # If the export-symbols file already is a .def file (1st line
9855 # is EXPORTS), use it as is; otherwise, prepend...
9856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857 cp $export_symbols $output_objdir/$soname.def;
9858 else
9859 echo EXPORTS > $output_objdir/$soname.def;
9860 cat $export_symbols >> $output_objdir/$soname.def;
9861 fi~
9862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9867
9868 haiku*)
9869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 link_all_deplibs=yes
9871 ;;
9872
9873 interix[3-9]*)
9874 hardcode_direct=no
9875 hardcode_shlibpath_var=no
9876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9877 export_dynamic_flag_spec='${wl}-E'
9878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9879 # Instead, shared libraries are loaded at an image base (0x10000000 by
9880 # default) and relocated if they conflict, which is a slow very memory
9881 # consuming and fragmenting process. To avoid this, we pick a random,
9882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9885 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'
9886 ;;
9887
9888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9889 tmp_diet=no
9890 if test "$host_os" = linux-dietlibc; then
9891 case $cc_basename in
9892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9893 esac
9894 fi
9895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9896 && test "$tmp_diet" = no
9897 then
9898 tmp_addflag=' $pic_flag'
9899 tmp_sharedflag='-shared'
9900 case $cc_basename,$host_cpu in
9901 pgcc*) # Portland Group C compiler
9902 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'
9903 tmp_addflag=' $pic_flag'
9904 ;;
9905 pgf77* | pgf90* | pgf95* | pgfortran*)
9906 # Portland Group f77 and f90 compilers
9907 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'
9908 tmp_addflag=' $pic_flag -Mnomain' ;;
9909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9910 tmp_addflag=' -i_dynamic' ;;
9911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9912 tmp_addflag=' -i_dynamic -nofor_main' ;;
9913 ifc* | ifort*) # Intel Fortran compiler
9914 tmp_addflag=' -nofor_main' ;;
9915 lf95*) # Lahey Fortran 8.1
9916 whole_archive_flag_spec=
9917 tmp_sharedflag='--shared' ;;
9918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9919 tmp_sharedflag='-qmkshrobj'
9920 tmp_addflag= ;;
9921 nvcc*) # Cuda Compiler Driver 2.2
9922 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'
9923 compiler_needs_object=yes
9924 ;;
9925 esac
9926 case `$CC -V 2>&1 | sed 5q` in
9927 *Sun\ C*) # Sun C 5.9
9928 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'
9929 compiler_needs_object=yes
9930 tmp_sharedflag='-G' ;;
9931 *Sun\ F*) # Sun Fortran 8.3
9932 tmp_sharedflag='-G' ;;
9933 esac
9934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9935
9936 if test "x$supports_anon_versioning" = xyes; then
9937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9939 echo "local: *; };" >> $output_objdir/$libname.ver~
9940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9941 fi
9942
9943 case $cc_basename in
9944 xlf* | bgf* | bgxlf* | mpixlf*)
9945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9948 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9949 if test "x$supports_anon_versioning" = xyes; then
9950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9952 echo "local: *; };" >> $output_objdir/$libname.ver~
9953 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9954 fi
9955 ;;
9956 esac
9957 else
9958 ld_shlibs=no
9959 fi
9960 ;;
9961
9962 netbsd*)
9963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9965 wlarc=
9966 else
9967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9968 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9969 fi
9970 ;;
9971
9972 solaris*)
9973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9974 ld_shlibs=no
9975 cat <<_LT_EOF 1>&2
9976
9977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9978 *** create shared libraries on Solaris systems. Therefore, libtool
9979 *** is disabling shared libraries support. We urge you to upgrade GNU
9980 *** binutils to release 2.9.1 or newer. Another option is to modify
9981 *** your PATH or compiler configuration so that the native linker is
9982 *** used, and then restart.
9983
9984 _LT_EOF
9985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9988 else
9989 ld_shlibs=no
9990 fi
9991 ;;
9992
9993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9994 case `$LD -v 2>&1` in
9995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9996 ld_shlibs=no
9997 cat <<_LT_EOF 1>&2
9998
9999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10000 *** reliably create shared libraries on SCO systems. Therefore, libtool
10001 *** is disabling shared libraries support. We urge you to upgrade GNU
10002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10003 *** your PATH or compiler configuration so that the native linker is
10004 *** used, and then restart.
10005
10006 _LT_EOF
10007 ;;
10008 *)
10009 # For security reasons, it is highly recommended that you always
10010 # use absolute paths for naming shared libraries, and exclude the
10011 # DT_RUNPATH tag from executables and libraries. But doing so
10012 # requires that you compile everything twice, which is a pain.
10013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017 else
10018 ld_shlibs=no
10019 fi
10020 ;;
10021 esac
10022 ;;
10023
10024 sunos4*)
10025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026 wlarc=
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 *)
10032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10033 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10034 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10035 else
10036 ld_shlibs=no
10037 fi
10038 ;;
10039 esac
10040
10041 if test "$ld_shlibs" = no; then
10042 runpath_var=
10043 hardcode_libdir_flag_spec=
10044 export_dynamic_flag_spec=
10045 whole_archive_flag_spec=
10046 fi
10047 else
10048 # PORTME fill in a description of your system's linker (not GNU ld)
10049 case $host_os in
10050 aix3*)
10051 allow_undefined_flag=unsupported
10052 always_export_symbols=yes
10053 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'
10054 # Note: this linker hardcodes the directories in LIBPATH if there
10055 # are no directories specified by -L.
10056 hardcode_minus_L=yes
10057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10058 # Neither direct hardcoding nor static linking is supported with a
10059 # broken collect2.
10060 hardcode_direct=unsupported
10061 fi
10062 ;;
10063
10064 aix[4-9]*)
10065 if test "$host_cpu" = ia64; then
10066 # On IA64, the linker does run time linking by default, so we don't
10067 # have to do anything special.
10068 aix_use_runtimelinking=no
10069 exp_sym_flag='-Bexport'
10070 no_entry_flag=""
10071 else
10072 # If we're using GNU nm, then we don't want the "-C" option.
10073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10074 # Also, AIX nm treats weak defined symbols like other global
10075 # defined symbols, whereas GNU nm marks them as "W".
10076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10077 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'
10078 else
10079 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'
10080 fi
10081 aix_use_runtimelinking=no
10082
10083 # Test if we are trying to use run time linking or normal
10084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10085 # need to do runtime linking.
10086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10087 for ld_flag in $LDFLAGS; do
10088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10089 aix_use_runtimelinking=yes
10090 break
10091 fi
10092 done
10093 ;;
10094 esac
10095
10096 exp_sym_flag='-bexport'
10097 no_entry_flag='-bnoentry'
10098 fi
10099
10100 # When large executables or shared objects are built, AIX ld can
10101 # have problems creating the table of contents. If linking a library
10102 # or program results in "error TOC overflow" add -mminimal-toc to
10103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10105
10106 archive_cmds=''
10107 hardcode_direct=yes
10108 hardcode_direct_absolute=yes
10109 hardcode_libdir_separator=':'
10110 link_all_deplibs=yes
10111 file_list_spec='${wl}-f,'
10112
10113 if test "$GCC" = yes; then
10114 case $host_os in aix4.[012]|aix4.[012].*)
10115 # We only want to do this on AIX 4.2 and lower, the check
10116 # below for broken collect2 doesn't work under 4.3+
10117 collect2name=`${CC} -print-prog-name=collect2`
10118 if test -f "$collect2name" &&
10119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10120 then
10121 # We have reworked collect2
10122 :
10123 else
10124 # We have old collect2
10125 hardcode_direct=unsupported
10126 # It fails to find uninstalled libraries when the uninstalled
10127 # path is not listed in the libpath. Setting hardcode_minus_L
10128 # to unsupported forces relinking
10129 hardcode_minus_L=yes
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 hardcode_libdir_separator=
10132 fi
10133 ;;
10134 esac
10135 shared_flag='-shared'
10136 if test "$aix_use_runtimelinking" = yes; then
10137 shared_flag="$shared_flag "'${wl}-G'
10138 fi
10139 else
10140 # not using gcc
10141 if test "$host_cpu" = ia64; then
10142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10143 # chokes on -Wl,-G. The following line is correct:
10144 shared_flag='-G'
10145 else
10146 if test "$aix_use_runtimelinking" = yes; then
10147 shared_flag='${wl}-G'
10148 else
10149 shared_flag='${wl}-bM:SRE'
10150 fi
10151 fi
10152 fi
10153
10154 export_dynamic_flag_spec='${wl}-bexpall'
10155 # It seems that -bexpall does not export symbols beginning with
10156 # underscore (_), so it is better to generate a list of symbols to export.
10157 always_export_symbols=yes
10158 if test "$aix_use_runtimelinking" = yes; then
10159 # Warning - without using the other runtime loading flags (-brtl),
10160 # -berok will link without error, but may produce a broken library.
10161 allow_undefined_flag='-berok'
10162 # Determine the default libpath from the value encoded in an
10163 # empty executable.
10164 if test "${lt_cv_aix_libpath+set}" = set; then
10165 aix_libpath=$lt_cv_aix_libpath
10166 else
10167 if ${lt_cv_aix_libpath_+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172
10173 int
10174 main ()
10175 {
10176
10177 ;
10178 return 0;
10179 }
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182
10183 lt_aix_libpath_sed='
10184 /Import File Strings/,/^$/ {
10185 /^0/ {
10186 s/^0 *\([^ ]*\) *$/\1/
10187 p
10188 }
10189 }'
10190 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10191 # Check for a 64-bit object if we didn't find anything.
10192 if test -z "$lt_cv_aix_libpath_"; then
10193 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10194 fi
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$lt_cv_aix_libpath_"; then
10199 lt_cv_aix_libpath_="/usr/lib:/lib"
10200 fi
10201
10202 fi
10203
10204 aix_libpath=$lt_cv_aix_libpath_
10205 fi
10206
10207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10208 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"
10209 else
10210 if test "$host_cpu" = ia64; then
10211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10212 allow_undefined_flag="-z nodefs"
10213 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"
10214 else
10215 # Determine the default libpath from the value encoded in an
10216 # empty executable.
10217 if test "${lt_cv_aix_libpath+set}" = set; then
10218 aix_libpath=$lt_cv_aix_libpath
10219 else
10220 if ${lt_cv_aix_libpath_+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225
10226 int
10227 main ()
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235
10236 lt_aix_libpath_sed='
10237 /Import File Strings/,/^$/ {
10238 /^0/ {
10239 s/^0 *\([^ ]*\) *$/\1/
10240 p
10241 }
10242 }'
10243 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10244 # Check for a 64-bit object if we didn't find anything.
10245 if test -z "$lt_cv_aix_libpath_"; then
10246 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10247 fi
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 if test -z "$lt_cv_aix_libpath_"; then
10252 lt_cv_aix_libpath_="/usr/lib:/lib"
10253 fi
10254
10255 fi
10256
10257 aix_libpath=$lt_cv_aix_libpath_
10258 fi
10259
10260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag=' ${wl}-bernotok'
10264 allow_undefined_flag=' ${wl}-berok'
10265 if test "$with_gnu_ld" = yes; then
10266 # We only use this code for GNU lds that support --whole-archive.
10267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10268 else
10269 # Exported symbols can be pulled into shared objects from archives
10270 whole_archive_flag_spec='$convenience'
10271 fi
10272 archive_cmds_need_lc=yes
10273 # This is similar to how AIX traditionally builds its shared libraries.
10274 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'
10275 fi
10276 fi
10277 ;;
10278
10279 amigaos*)
10280 case $host_cpu in
10281 powerpc)
10282 # see comment about AmigaOS4 .so support
10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10284 archive_expsym_cmds=''
10285 ;;
10286 m68k)
10287 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)'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_minus_L=yes
10290 ;;
10291 esac
10292 ;;
10293
10294 bsdi[45]*)
10295 export_dynamic_flag_spec=-rdynamic
10296 ;;
10297
10298 cygwin* | mingw* | pw32* | cegcc*)
10299 # When not using gcc, we currently assume that we are using
10300 # Microsoft Visual C++.
10301 # hardcode_libdir_flag_spec is actually meaningless, as there is
10302 # no search path for DLLs.
10303 case $cc_basename in
10304 cl*)
10305 # Native MSVC
10306 hardcode_libdir_flag_spec=' '
10307 allow_undefined_flag=unsupported
10308 always_export_symbols=yes
10309 file_list_spec='@'
10310 # Tell ltmain to make .lib files, not .a files.
10311 libext=lib
10312 # Tell ltmain to make .dll files, not .so files.
10313 shrext_cmds=".dll"
10314 # FIXME: Setting linknames here is a bad hack.
10315 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10316 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10317 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10318 else
10319 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10320 fi~
10321 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10322 linknames='
10323 # The linker will not automatically build a static lib if we build a DLL.
10324 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10325 enable_shared_with_static_runtimes=yes
10326 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10327 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10328 # Don't use ranlib
10329 old_postinstall_cmds='chmod 644 $oldlib'
10330 postlink_cmds='lt_outputfile="@OUTPUT@"~
10331 lt_tool_outputfile="@TOOL_OUTPUT@"~
10332 case $lt_outputfile in
10333 *.exe|*.EXE) ;;
10334 *)
10335 lt_outputfile="$lt_outputfile.exe"
10336 lt_tool_outputfile="$lt_tool_outputfile.exe"
10337 ;;
10338 esac~
10339 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10340 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10341 $RM "$lt_outputfile.manifest";
10342 fi'
10343 ;;
10344 *)
10345 # Assume MSVC wrapper
10346 hardcode_libdir_flag_spec=' '
10347 allow_undefined_flag=unsupported
10348 # Tell ltmain to make .lib files, not .a files.
10349 libext=lib
10350 # Tell ltmain to make .dll files, not .so files.
10351 shrext_cmds=".dll"
10352 # FIXME: Setting linknames here is a bad hack.
10353 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10354 # The linker will automatically build a .lib file if we build a DLL.
10355 old_archive_from_new_cmds='true'
10356 # FIXME: Should let the user specify the lib program.
10357 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10358 enable_shared_with_static_runtimes=yes
10359 ;;
10360 esac
10361 ;;
10362
10363 darwin* | rhapsody*)
10364
10365
10366 archive_cmds_need_lc=no
10367 hardcode_direct=no
10368 hardcode_automatic=yes
10369 hardcode_shlibpath_var=unsupported
10370 if test "$lt_cv_ld_force_load" = "yes"; then
10371 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\"`'
10372
10373 else
10374 whole_archive_flag_spec=''
10375 fi
10376 link_all_deplibs=yes
10377 allow_undefined_flag="$_lt_dar_allow_undefined"
10378 case $cc_basename in
10379 ifort*) _lt_dar_can_shared=yes ;;
10380 *) _lt_dar_can_shared=$GCC ;;
10381 esac
10382 if test "$_lt_dar_can_shared" = "yes"; then
10383 output_verbose_link_cmd=func_echo_all
10384 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10385 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10386 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}"
10387 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}"
10388
10389 else
10390 ld_shlibs=no
10391 fi
10392
10393 ;;
10394
10395 dgux*)
10396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 hardcode_shlibpath_var=no
10399 ;;
10400
10401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10402 # support. Future versions do this automatically, but an explicit c++rt0.o
10403 # does not break anything, and helps significantly (at the cost of a little
10404 # extra space).
10405 freebsd2.2*)
10406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10407 hardcode_libdir_flag_spec='-R$libdir'
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10413 freebsd2.*)
10414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_direct=yes
10416 hardcode_minus_L=yes
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10421 freebsd* | dragonfly*)
10422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10423 hardcode_libdir_flag_spec='-R$libdir'
10424 hardcode_direct=yes
10425 hardcode_shlibpath_var=no
10426 ;;
10427
10428 hpux9*)
10429 if test "$GCC" = yes; then
10430 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'
10431 else
10432 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'
10433 fi
10434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_direct=yes
10437
10438 # hardcode_minus_L: Not really in the search PATH,
10439 # but as the default location of the library.
10440 hardcode_minus_L=yes
10441 export_dynamic_flag_spec='${wl}-E'
10442 ;;
10443
10444 hpux10*)
10445 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10446 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10447 else
10448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10449 fi
10450 if test "$with_gnu_ld" = no; then
10451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
10454 hardcode_direct_absolute=yes
10455 export_dynamic_flag_spec='${wl}-E'
10456 # hardcode_minus_L: Not really in the search PATH,
10457 # but as the default location of the library.
10458 hardcode_minus_L=yes
10459 fi
10460 ;;
10461
10462 hpux11*)
10463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10464 case $host_cpu in
10465 hppa*64*)
10466 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10467 ;;
10468 ia64*)
10469 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10470 ;;
10471 *)
10472 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10473 ;;
10474 esac
10475 else
10476 case $host_cpu in
10477 hppa*64*)
10478 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10479 ;;
10480 ia64*)
10481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10482 ;;
10483 *)
10484
10485 # Older versions of the 11.00 compiler do not understand -b yet
10486 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10488 $as_echo_n "checking if $CC understands -b... " >&6; }
10489 if ${lt_cv_prog_compiler__b+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 lt_cv_prog_compiler__b=no
10493 save_LDFLAGS="$LDFLAGS"
10494 LDFLAGS="$LDFLAGS -b"
10495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10497 # The linker can only warn and ignore the option if not recognized
10498 # So say no if there are warnings
10499 if test -s conftest.err; then
10500 # Append any errors to the config.log.
10501 cat conftest.err 1>&5
10502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10504 if diff conftest.exp conftest.er2 >/dev/null; then
10505 lt_cv_prog_compiler__b=yes
10506 fi
10507 else
10508 lt_cv_prog_compiler__b=yes
10509 fi
10510 fi
10511 $RM -r conftest*
10512 LDFLAGS="$save_LDFLAGS"
10513
10514 fi
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10516 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10517
10518 if test x"$lt_cv_prog_compiler__b" = xyes; then
10519 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10520 else
10521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10522 fi
10523
10524 ;;
10525 esac
10526 fi
10527 if test "$with_gnu_ld" = no; then
10528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10529 hardcode_libdir_separator=:
10530
10531 case $host_cpu in
10532 hppa*64*|ia64*)
10533 hardcode_direct=no
10534 hardcode_shlibpath_var=no
10535 ;;
10536 *)
10537 hardcode_direct=yes
10538 hardcode_direct_absolute=yes
10539 export_dynamic_flag_spec='${wl}-E'
10540
10541 # hardcode_minus_L: Not really in the search PATH,
10542 # but as the default location of the library.
10543 hardcode_minus_L=yes
10544 ;;
10545 esac
10546 fi
10547 ;;
10548
10549 irix5* | irix6* | nonstopux*)
10550 if test "$GCC" = yes; then
10551 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'
10552 # Try to use the -exported_symbol ld option, if it does not
10553 # work, assume that -exports_file does not work either and
10554 # implicitly export all symbols.
10555 # This should be the same for all languages, so no per-tag cache variable.
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10557 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10558 if ${lt_cv_irix_exported_symbol+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 save_LDFLAGS="$LDFLAGS"
10562 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 int foo (void) { return 0; }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 lt_cv_irix_exported_symbol=yes
10569 else
10570 lt_cv_irix_exported_symbol=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LDFLAGS="$save_LDFLAGS"
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10577 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10578 if test "$lt_cv_irix_exported_symbol" = yes; then
10579 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'
10580 fi
10581 else
10582 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'
10583 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'
10584 fi
10585 archive_cmds_need_lc='no'
10586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10587 hardcode_libdir_separator=:
10588 inherit_rpath=yes
10589 link_all_deplibs=yes
10590 ;;
10591
10592 netbsd*)
10593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10595 else
10596 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10597 fi
10598 hardcode_libdir_flag_spec='-R$libdir'
10599 hardcode_direct=yes
10600 hardcode_shlibpath_var=no
10601 ;;
10602
10603 newsos6)
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes
10606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10607 hardcode_libdir_separator=:
10608 hardcode_shlibpath_var=no
10609 ;;
10610
10611 *nto* | *qnx*)
10612 ;;
10613
10614 openbsd*)
10615 if test -f /usr/libexec/ld.so; then
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10618 hardcode_direct_absolute=yes
10619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10623 export_dynamic_flag_spec='${wl}-E'
10624 else
10625 case $host_os in
10626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10627 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10628 hardcode_libdir_flag_spec='-R$libdir'
10629 ;;
10630 *)
10631 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10633 ;;
10634 esac
10635 fi
10636 else
10637 ld_shlibs=no
10638 fi
10639 ;;
10640
10641 os2*)
10642 hardcode_libdir_flag_spec='-L$libdir'
10643 hardcode_minus_L=yes
10644 allow_undefined_flag=unsupported
10645 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'
10646 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10647 ;;
10648
10649 osf3*)
10650 if test "$GCC" = yes; then
10651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10652 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'
10653 else
10654 allow_undefined_flag=' -expect_unresolved \*'
10655 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'
10656 fi
10657 archive_cmds_need_lc='no'
10658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10659 hardcode_libdir_separator=:
10660 ;;
10661
10662 osf4* | osf5*) # as osf3* with the addition of -msym flag
10663 if test "$GCC" = yes; then
10664 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10665 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'
10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667 else
10668 allow_undefined_flag=' -expect_unresolved \*'
10669 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'
10670 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~
10671 $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'
10672
10673 # Both c and cxx compiler support -rpath directly
10674 hardcode_libdir_flag_spec='-rpath $libdir'
10675 fi
10676 archive_cmds_need_lc='no'
10677 hardcode_libdir_separator=:
10678 ;;
10679
10680 solaris*)
10681 no_undefined_flag=' -z defs'
10682 if test "$GCC" = yes; then
10683 wlarc='${wl}'
10684 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10686 $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'
10687 else
10688 case `$CC -V 2>&1` in
10689 *"Compilers 5.0"*)
10690 wlarc=''
10691 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10694 ;;
10695 *)
10696 wlarc='${wl}'
10697 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10699 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10700 ;;
10701 esac
10702 fi
10703 hardcode_libdir_flag_spec='-R$libdir'
10704 hardcode_shlibpath_var=no
10705 case $host_os in
10706 solaris2.[0-5] | solaris2.[0-5].*) ;;
10707 *)
10708 # The compiler driver will combine and reorder linker options,
10709 # but understands `-z linker_flag'. GCC discards it without `$wl',
10710 # but is careful enough not to reorder.
10711 # Supported since Solaris 2.6 (maybe 2.5.1?)
10712 if test "$GCC" = yes; then
10713 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10714 else
10715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10716 fi
10717 ;;
10718 esac
10719 link_all_deplibs=yes
10720 ;;
10721
10722 sunos4*)
10723 if test "x$host_vendor" = xsequent; then
10724 # Use $CC to link under sequent, because it throws in some extra .o
10725 # files that make .init and .fini sections work.
10726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10727 else
10728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10729 fi
10730 hardcode_libdir_flag_spec='-L$libdir'
10731 hardcode_direct=yes
10732 hardcode_minus_L=yes
10733 hardcode_shlibpath_var=no
10734 ;;
10735
10736 sysv4)
10737 case $host_vendor in
10738 sni)
10739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740 hardcode_direct=yes # is this really true???
10741 ;;
10742 siemens)
10743 ## LD is ld it makes a PLAMLIB
10744 ## CC just makes a GrossModule.
10745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10746 reload_cmds='$CC -r -o $output$reload_objs'
10747 hardcode_direct=no
10748 ;;
10749 motorola)
10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10752 ;;
10753 esac
10754 runpath_var='LD_RUN_PATH'
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 sysv4.3*)
10759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760 hardcode_shlibpath_var=no
10761 export_dynamic_flag_spec='-Bexport'
10762 ;;
10763
10764 sysv4*MP*)
10765 if test -d /usr/nec; then
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_shlibpath_var=no
10768 runpath_var=LD_RUN_PATH
10769 hardcode_runpath_var=yes
10770 ld_shlibs=yes
10771 fi
10772 ;;
10773
10774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10775 no_undefined_flag='${wl}-z,text'
10776 archive_cmds_need_lc=no
10777 hardcode_shlibpath_var=no
10778 runpath_var='LD_RUN_PATH'
10779
10780 if test "$GCC" = yes; then
10781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 else
10784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 fi
10787 ;;
10788
10789 sysv5* | sco3.2v5* | sco5v6*)
10790 # Note: We can NOT use -z defs as we might desire, because we do not
10791 # link with -lc, and that would cause any symbols used from libc to
10792 # always be unresolved, which means just about no library would
10793 # ever link correctly. If we're not using GNU ld we use -z text
10794 # though, which does catch some bad symbols but isn't as heavy-handed
10795 # as -z defs.
10796 no_undefined_flag='${wl}-z,text'
10797 allow_undefined_flag='${wl}-z,nodefs'
10798 archive_cmds_need_lc=no
10799 hardcode_shlibpath_var=no
10800 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10801 hardcode_libdir_separator=':'
10802 link_all_deplibs=yes
10803 export_dynamic_flag_spec='${wl}-Bexport'
10804 runpath_var='LD_RUN_PATH'
10805
10806 if test "$GCC" = yes; then
10807 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 else
10810 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 fi
10813 ;;
10814
10815 uts4*)
10816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817 hardcode_libdir_flag_spec='-L$libdir'
10818 hardcode_shlibpath_var=no
10819 ;;
10820
10821 *)
10822 ld_shlibs=no
10823 ;;
10824 esac
10825
10826 if test x$host_vendor = xsni; then
10827 case $host in
10828 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10829 export_dynamic_flag_spec='${wl}-Blargedynsym'
10830 ;;
10831 esac
10832 fi
10833 fi
10834
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10836 $as_echo "$ld_shlibs" >&6; }
10837 test "$ld_shlibs" = no && can_build_shared=no
10838
10839 with_gnu_ld=$with_gnu_ld
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855 #
10856 # Do we need to explicitly link libc?
10857 #
10858 case "x$archive_cmds_need_lc" in
10859 x|xyes)
10860 # Assume -lc should be added
10861 archive_cmds_need_lc=yes
10862
10863 if test "$enable_shared" = yes && test "$GCC" = yes; then
10864 case $archive_cmds in
10865 *'~'*)
10866 # FIXME: we may have to deal with multi-command sequences.
10867 ;;
10868 '$CC '*)
10869 # Test whether the compiler implicitly links with -lc since on some
10870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10871 # to ld, don't add -lc before -lgcc.
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10874 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 $RM -r conftest*
10878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10879
10880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10881 (eval $ac_compile) 2>&5
10882 ac_status=$?
10883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884 test $ac_status = 0; } 2>conftest.err; then
10885 soname=conftest
10886 lib=conftest
10887 libobjs=conftest.$ac_objext
10888 deplibs=
10889 wl=$lt_prog_compiler_wl
10890 pic_flag=$lt_prog_compiler_pic
10891 compiler_flags=-v
10892 linker_flags=-v
10893 verstring=
10894 output_objdir=.
10895 libname=conftest
10896 lt_save_allow_undefined_flag=$allow_undefined_flag
10897 allow_undefined_flag=
10898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10899 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10900 ac_status=$?
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; }
10903 then
10904 lt_cv_archive_cmds_need_lc=no
10905 else
10906 lt_cv_archive_cmds_need_lc=yes
10907 fi
10908 allow_undefined_flag=$lt_save_allow_undefined_flag
10909 else
10910 cat conftest.err 1>&5
10911 fi
10912 $RM -r conftest*
10913
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10916 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10917 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10918 ;;
10919 esac
10920 fi
10921 ;;
10922 esac
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11076 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11077
11078 if test "$GCC" = yes; then
11079 case $host_os in
11080 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11081 *) lt_awk_arg="/^libraries:/" ;;
11082 esac
11083 case $host_os in
11084 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11085 *) lt_sed_strip_eq="s,=/,/,g" ;;
11086 esac
11087 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11088 case $lt_search_path_spec in
11089 *\;*)
11090 # if the path contains ";" then we assume it to be the separator
11091 # otherwise default to the standard path separator (i.e. ":") - it is
11092 # assumed that no part of a normal pathname contains ";" but that should
11093 # okay in the real world where ";" in dirpaths is itself problematic.
11094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11095 ;;
11096 *)
11097 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11098 ;;
11099 esac
11100 # Ok, now we have the path, separated by spaces, we can step through it
11101 # and add multilib dir if necessary.
11102 lt_tmp_lt_search_path_spec=
11103 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11104 for lt_sys_path in $lt_search_path_spec; do
11105 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11106 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11107 else
11108 test -d "$lt_sys_path" && \
11109 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11110 fi
11111 done
11112 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11113 BEGIN {RS=" "; FS="/|\n";} {
11114 lt_foo="";
11115 lt_count=0;
11116 for (lt_i = NF; lt_i > 0; lt_i--) {
11117 if ($lt_i != "" && $lt_i != ".") {
11118 if ($lt_i == "..") {
11119 lt_count++;
11120 } else {
11121 if (lt_count == 0) {
11122 lt_foo="/" $lt_i lt_foo;
11123 } else {
11124 lt_count--;
11125 }
11126 }
11127 }
11128 }
11129 if (lt_foo != "") { lt_freq[lt_foo]++; }
11130 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11131 }'`
11132 # AWK program above erroneously prepends '/' to C:/dos/paths
11133 # for these hosts.
11134 case $host_os in
11135 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11136 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11137 esac
11138 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11139 else
11140 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11141 fi
11142 library_names_spec=
11143 libname_spec='lib$name'
11144 soname_spec=
11145 shrext_cmds=".so"
11146 postinstall_cmds=
11147 postuninstall_cmds=
11148 finish_cmds=
11149 finish_eval=
11150 shlibpath_var=
11151 shlibpath_overrides_runpath=unknown
11152 version_type=none
11153 dynamic_linker="$host_os ld.so"
11154 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11155 need_lib_prefix=unknown
11156 hardcode_into_libs=no
11157
11158 # when you set need_version to no, make sure it does not cause -set_version
11159 # flags to be left without arguments
11160 need_version=unknown
11161
11162 case $host_os in
11163 aix3*)
11164 version_type=linux # correct to gnu/linux during the next big refactor
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11166 shlibpath_var=LIBPATH
11167
11168 # AIX 3 has no versioning support, so we append a major version to the name.
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 ;;
11171
11172 aix[4-9]*)
11173 version_type=linux # correct to gnu/linux during the next big refactor
11174 need_lib_prefix=no
11175 need_version=no
11176 hardcode_into_libs=yes
11177 if test "$host_cpu" = ia64; then
11178 # AIX 5 supports IA64
11179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 else
11182 # With GCC up to 2.95.x, collect2 would create an import file
11183 # for dependence libraries. The import file would start with
11184 # the line `#! .'. This would cause the generated library to
11185 # depend on `.', always an invalid library. This was fixed in
11186 # development snapshots of GCC prior to 3.0.
11187 case $host_os in
11188 aix4 | aix4.[01] | aix4.[01].*)
11189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11190 echo ' yes '
11191 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11192 :
11193 else
11194 can_build_shared=no
11195 fi
11196 ;;
11197 esac
11198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11199 # soname into executable. Probably we can add versioning support to
11200 # collect2, so additional links can be useful in future.
11201 if test "$aix_use_runtimelinking" = yes; then
11202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203 # instead of lib<name>.a to let people know that these are not
11204 # typical AIX shared libraries.
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 else
11207 # We preserve .a as extension for shared libraries through AIX4.2
11208 # and later when we are not doing run time linking.
11209 library_names_spec='${libname}${release}.a $libname.a'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 fi
11212 shlibpath_var=LIBPATH
11213 fi
11214 ;;
11215
11216 amigaos*)
11217 case $host_cpu in
11218 powerpc)
11219 # Since July 2007 AmigaOS4 officially supports .so libraries.
11220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 ;;
11223 m68k)
11224 library_names_spec='$libname.ixlibrary $libname.a'
11225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11226 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'
11227 ;;
11228 esac
11229 ;;
11230
11231 beos*)
11232 library_names_spec='${libname}${shared_ext}'
11233 dynamic_linker="$host_os ld.so"
11234 shlibpath_var=LIBRARY_PATH
11235 ;;
11236
11237 bsdi[45]*)
11238 version_type=linux # correct to gnu/linux during the next big refactor
11239 need_version=no
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11246 # the default ld.so.conf also contains /usr/contrib/lib and
11247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11248 # libtool to hard-code these into programs
11249 ;;
11250
11251 cygwin* | mingw* | pw32* | cegcc*)
11252 version_type=windows
11253 shrext_cmds=".dll"
11254 need_version=no
11255 need_lib_prefix=no
11256
11257 case $GCC,$cc_basename in
11258 yes,*)
11259 # gcc
11260 library_names_spec='$libname.dll.a'
11261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11262 postinstall_cmds='base_file=`basename \${file}`~
11263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11264 dldir=$destdir/`dirname \$dlpath`~
11265 test -d \$dldir || mkdir -p \$dldir~
11266 $install_prog $dir/$dlname \$dldir/$dlname~
11267 chmod a+x \$dldir/$dlname~
11268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11270 fi'
11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11272 dlpath=$dir/\$dldll~
11273 $RM \$dlpath'
11274 shlibpath_overrides_runpath=yes
11275
11276 case $host_os in
11277 cygwin*)
11278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11280
11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11282 ;;
11283 mingw* | cegcc*)
11284 # MinGW DLLs use traditional 'lib' prefix
11285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 ;;
11287 pw32*)
11288 # pw32 DLLs use 'pw' prefix rather than 'lib'
11289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11290 ;;
11291 esac
11292 dynamic_linker='Win32 ld.exe'
11293 ;;
11294
11295 *,cl*)
11296 # Native MSVC
11297 libname_spec='$name'
11298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11299 library_names_spec='${libname}.dll.lib'
11300
11301 case $build_os in
11302 mingw*)
11303 sys_lib_search_path_spec=
11304 lt_save_ifs=$IFS
11305 IFS=';'
11306 for lt_path in $LIB
11307 do
11308 IFS=$lt_save_ifs
11309 # Let DOS variable expansion print the short 8.3 style file name.
11310 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11311 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11312 done
11313 IFS=$lt_save_ifs
11314 # Convert to MSYS style.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11316 ;;
11317 cygwin*)
11318 # Convert to unix form, then to dos form, then back to unix form
11319 # but this time dos style (no spaces!) so that the unix form looks
11320 # like /cygdrive/c/PROGRA~1:/cygdr...
11321 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11322 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11323 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11324 ;;
11325 *)
11326 sys_lib_search_path_spec="$LIB"
11327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11328 # It is most probably a Windows format PATH.
11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11330 else
11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11332 fi
11333 # FIXME: find the short name or the path components, as spaces are
11334 # common. (e.g. "Program Files" -> "PROGRA~1")
11335 ;;
11336 esac
11337
11338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11339 postinstall_cmds='base_file=`basename \${file}`~
11340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11341 dldir=$destdir/`dirname \$dlpath`~
11342 test -d \$dldir || mkdir -p \$dldir~
11343 $install_prog $dir/$dlname \$dldir/$dlname'
11344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11345 dlpath=$dir/\$dldll~
11346 $RM \$dlpath'
11347 shlibpath_overrides_runpath=yes
11348 dynamic_linker='Win32 link.exe'
11349 ;;
11350
11351 *)
11352 # Assume MSVC wrapper
11353 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11354 dynamic_linker='Win32 ld.exe'
11355 ;;
11356 esac
11357 # FIXME: first we should search . and the directory the executable is in
11358 shlibpath_var=PATH
11359 ;;
11360
11361 darwin* | rhapsody*)
11362 dynamic_linker="$host_os dyld"
11363 version_type=darwin
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11367 soname_spec='${libname}${release}${major}$shared_ext'
11368 shlibpath_overrides_runpath=yes
11369 shlibpath_var=DYLD_LIBRARY_PATH
11370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11371
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11374 ;;
11375
11376 dgux*)
11377 version_type=linux # correct to gnu/linux during the next big refactor
11378 need_lib_prefix=no
11379 need_version=no
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 ;;
11384
11385 freebsd* | dragonfly*)
11386 # DragonFly does not have aout. When/if they implement a new
11387 # versioning mechanism, adjust this.
11388 if test -x /usr/bin/objformat; then
11389 objformat=`/usr/bin/objformat`
11390 else
11391 case $host_os in
11392 freebsd[23].*) objformat=aout ;;
11393 *) objformat=elf ;;
11394 esac
11395 fi
11396 version_type=freebsd-$objformat
11397 case $version_type in
11398 freebsd-elf*)
11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11400 need_version=no
11401 need_lib_prefix=no
11402 ;;
11403 freebsd-*)
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11405 need_version=yes
11406 ;;
11407 esac
11408 shlibpath_var=LD_LIBRARY_PATH
11409 case $host_os in
11410 freebsd2.*)
11411 shlibpath_overrides_runpath=yes
11412 ;;
11413 freebsd3.[01]* | freebsdelf3.[01]*)
11414 shlibpath_overrides_runpath=yes
11415 hardcode_into_libs=yes
11416 ;;
11417 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11418 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11421 ;;
11422 *) # from 4.6 on, and DragonFly
11423 shlibpath_overrides_runpath=yes
11424 hardcode_into_libs=yes
11425 ;;
11426 esac
11427 ;;
11428
11429 gnu*)
11430 version_type=linux # correct to gnu/linux during the next big refactor
11431 need_lib_prefix=no
11432 need_version=no
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11434 soname_spec='${libname}${release}${shared_ext}$major'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11437 hardcode_into_libs=yes
11438 ;;
11439
11440 haiku*)
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 need_lib_prefix=no
11443 need_version=no
11444 dynamic_linker="$host_os runtime_loader"
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11450 hardcode_into_libs=yes
11451 ;;
11452
11453 hpux9* | hpux10* | hpux11*)
11454 # Give a soname corresponding to the major version so that dld.sl refuses to
11455 # link against other versions.
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 case $host_cpu in
11460 ia64*)
11461 shrext_cmds='.so'
11462 hardcode_into_libs=yes
11463 dynamic_linker="$host_os dld.so"
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 if test "X$HPUX_IA64_MODE" = X32; then
11469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11470 else
11471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11472 fi
11473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11474 ;;
11475 hppa*64*)
11476 shrext_cmds='.sl'
11477 hardcode_into_libs=yes
11478 dynamic_linker="$host_os dld.sl"
11479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11485 ;;
11486 *)
11487 shrext_cmds='.sl'
11488 dynamic_linker="$host_os dld.sl"
11489 shlibpath_var=SHLIB_PATH
11490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 ;;
11494 esac
11495 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11496 postinstall_cmds='chmod 555 $lib'
11497 # or fails outright, so override atomically:
11498 install_override_mode=555
11499 ;;
11500
11501 interix[3-9]*)
11502 version_type=linux # correct to gnu/linux during the next big refactor
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11511 ;;
11512
11513 irix5* | irix6* | nonstopux*)
11514 case $host_os in
11515 nonstopux*) version_type=nonstopux ;;
11516 *)
11517 if test "$lt_cv_prog_gnu_ld" = yes; then
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 else
11520 version_type=irix
11521 fi ;;
11522 esac
11523 need_lib_prefix=no
11524 need_version=no
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11527 case $host_os in
11528 irix5* | nonstopux*)
11529 libsuff= shlibsuff=
11530 ;;
11531 *)
11532 case $LD in # libtool.m4 will add one of these switches to LD
11533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11534 libsuff= shlibsuff= libmagic=32-bit;;
11535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11536 libsuff=32 shlibsuff=N32 libmagic=N32;;
11537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11539 *) libsuff= shlibsuff= libmagic=never-match;;
11540 esac
11541 ;;
11542 esac
11543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11544 shlibpath_overrides_runpath=no
11545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11547 hardcode_into_libs=yes
11548 ;;
11549
11550 # No shared lib support for Linux oldld, aout, or coff.
11551 linux*oldld* | linux*aout* | linux*coff*)
11552 dynamic_linker=no
11553 ;;
11554
11555 # This must be glibc/ELF.
11556 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11557 version_type=linux # correct to gnu/linux during the next big refactor
11558 need_lib_prefix=no
11559 need_version=no
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 shlibpath_overrides_runpath=no
11565
11566 # Some binutils ld are patched to set DT_RUNPATH
11567 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 lt_cv_shlibpath_overrides_runpath=no
11571 save_LDFLAGS=$LDFLAGS
11572 save_libdir=$libdir
11573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577
11578 int
11579 main ()
11580 {
11581
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11588 lt_cv_shlibpath_overrides_runpath=yes
11589 fi
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LDFLAGS=$save_LDFLAGS
11594 libdir=$save_libdir
11595
11596 fi
11597
11598 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11599
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs=yes
11604
11605 # Append ld.so.conf contents to the search path
11606 if test -f /etc/ld.so.conf; then
11607 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' ' '`
11608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11609 fi
11610
11611 # We used to test for /lib/ld.so.1 and disable shared libraries on
11612 # powerpc, because MkLinux only supported shared libraries with the
11613 # GNU dynamic linker. Since this was broken with cross compilers,
11614 # most powerpc-linux boxes support dynamic linking these days and
11615 # people can always --disable-shared, the test was removed, and we
11616 # assume the GNU/Linux dynamic linker is in use.
11617 dynamic_linker='GNU/Linux ld.so'
11618 ;;
11619
11620 netbsd*)
11621 version_type=sunos
11622 need_lib_prefix=no
11623 need_version=no
11624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11627 dynamic_linker='NetBSD (a.out) ld.so'
11628 else
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 dynamic_linker='NetBSD ld.elf_so'
11632 fi
11633 shlibpath_var=LD_LIBRARY_PATH
11634 shlibpath_overrides_runpath=yes
11635 hardcode_into_libs=yes
11636 ;;
11637
11638 newsos6)
11639 version_type=linux # correct to gnu/linux during the next big refactor
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 ;;
11644
11645 *nto* | *qnx*)
11646 version_type=qnx
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=no
11653 hardcode_into_libs=yes
11654 dynamic_linker='ldqnx.so'
11655 ;;
11656
11657 openbsd*)
11658 version_type=sunos
11659 sys_lib_dlsearch_path_spec="/usr/lib"
11660 need_lib_prefix=no
11661 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11662 case $host_os in
11663 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11664 *) need_version=no ;;
11665 esac
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11670 case $host_os in
11671 openbsd2.[89] | openbsd2.[89].*)
11672 shlibpath_overrides_runpath=no
11673 ;;
11674 *)
11675 shlibpath_overrides_runpath=yes
11676 ;;
11677 esac
11678 else
11679 shlibpath_overrides_runpath=yes
11680 fi
11681 ;;
11682
11683 os2*)
11684 libname_spec='$name'
11685 shrext_cmds=".dll"
11686 need_lib_prefix=no
11687 library_names_spec='$libname${shared_ext} $libname.a'
11688 dynamic_linker='OS/2 ld.exe'
11689 shlibpath_var=LIBPATH
11690 ;;
11691
11692 osf3* | osf4* | osf5*)
11693 version_type=osf
11694 need_lib_prefix=no
11695 need_version=no
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11701 ;;
11702
11703 rdos*)
11704 dynamic_linker=no
11705 ;;
11706
11707 solaris*)
11708 version_type=linux # correct to gnu/linux during the next big refactor
11709 need_lib_prefix=no
11710 need_version=no
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11715 hardcode_into_libs=yes
11716 # ldd complains unless libraries are executable
11717 postinstall_cmds='chmod +x $lib'
11718 ;;
11719
11720 sunos4*)
11721 version_type=sunos
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11723 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11726 if test "$with_gnu_ld" = yes; then
11727 need_lib_prefix=no
11728 fi
11729 need_version=yes
11730 ;;
11731
11732 sysv4 | sysv4.3*)
11733 version_type=linux # correct to gnu/linux during the next big refactor
11734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 case $host_vendor in
11738 sni)
11739 shlibpath_overrides_runpath=no
11740 need_lib_prefix=no
11741 runpath_var=LD_RUN_PATH
11742 ;;
11743 siemens)
11744 need_lib_prefix=no
11745 ;;
11746 motorola)
11747 need_lib_prefix=no
11748 need_version=no
11749 shlibpath_overrides_runpath=no
11750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11751 ;;
11752 esac
11753 ;;
11754
11755 sysv4*MP*)
11756 if test -d /usr/nec ;then
11757 version_type=linux # correct to gnu/linux during the next big refactor
11758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11759 soname_spec='$libname${shared_ext}.$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 fi
11762 ;;
11763
11764 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11765 version_type=freebsd-elf
11766 need_lib_prefix=no
11767 need_version=no
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11769 soname_spec='${libname}${release}${shared_ext}$major'
11770 shlibpath_var=LD_LIBRARY_PATH
11771 shlibpath_overrides_runpath=yes
11772 hardcode_into_libs=yes
11773 if test "$with_gnu_ld" = yes; then
11774 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11775 else
11776 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11777 case $host_os in
11778 sco3.2v5*)
11779 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11780 ;;
11781 esac
11782 fi
11783 sys_lib_dlsearch_path_spec='/usr/lib'
11784 ;;
11785
11786 tpf*)
11787 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11788 version_type=linux # correct to gnu/linux during the next big refactor
11789 need_lib_prefix=no
11790 need_version=no
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=no
11794 hardcode_into_libs=yes
11795 ;;
11796
11797 uts4*)
11798 version_type=linux # correct to gnu/linux during the next big refactor
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 shlibpath_var=LD_LIBRARY_PATH
11802 ;;
11803
11804 *)
11805 dynamic_linker=no
11806 ;;
11807 esac
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11809 $as_echo "$dynamic_linker" >&6; }
11810 test "$dynamic_linker" = no && can_build_shared=no
11811
11812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11813 if test "$GCC" = yes; then
11814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11815 fi
11816
11817 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11818 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11819 fi
11820 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11821 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11822 fi
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11916 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11917 hardcode_action=
11918 if test -n "$hardcode_libdir_flag_spec" ||
11919 test -n "$runpath_var" ||
11920 test "X$hardcode_automatic" = "Xyes" ; then
11921
11922 # We can hardcode non-existent directories.
11923 if test "$hardcode_direct" != no &&
11924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11925 # have to relink, otherwise we might link with an installed library
11926 # when we should be linking with a yet-to-be-installed one
11927 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11928 test "$hardcode_minus_L" != no; then
11929 # Linking always hardcodes the temporary library directory.
11930 hardcode_action=relink
11931 else
11932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11933 hardcode_action=immediate
11934 fi
11935 else
11936 # We cannot hardcode anything, or else we can only hardcode existing
11937 # directories.
11938 hardcode_action=unsupported
11939 fi
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11941 $as_echo "$hardcode_action" >&6; }
11942
11943 if test "$hardcode_action" = relink ||
11944 test "$inherit_rpath" = yes; then
11945 # Fast installation is not supported
11946 enable_fast_install=no
11947 elif test "$shlibpath_overrides_runpath" = yes ||
11948 test "$enable_shared" = no; then
11949 # Fast installation is not necessary
11950 enable_fast_install=needless
11951 fi
11952
11953
11954
11955
11956
11957
11958 if test "x$enable_dlopen" != xyes; then
11959 enable_dlopen=unknown
11960 enable_dlopen_self=unknown
11961 enable_dlopen_self_static=unknown
11962 else
11963 lt_cv_dlopen=no
11964 lt_cv_dlopen_libs=
11965
11966 case $host_os in
11967 beos*)
11968 lt_cv_dlopen="load_add_on"
11969 lt_cv_dlopen_libs=
11970 lt_cv_dlopen_self=yes
11971 ;;
11972
11973 mingw* | pw32* | cegcc*)
11974 lt_cv_dlopen="LoadLibrary"
11975 lt_cv_dlopen_libs=
11976 ;;
11977
11978 cygwin*)
11979 lt_cv_dlopen="dlopen"
11980 lt_cv_dlopen_libs=
11981 ;;
11982
11983 darwin*)
11984 # if libdl is installed we need to link against it
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11987 if ${ac_cv_lib_dl_dlopen+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldl $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char dlopen ();
12002 int
12003 main ()
12004 {
12005 return dlopen ();
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dl_dlopen=yes
12012 else
12013 ac_cv_lib_dl_dlopen=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12021 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12023 else
12024
12025 lt_cv_dlopen="dyld"
12026 lt_cv_dlopen_libs=
12027 lt_cv_dlopen_self=yes
12028
12029 fi
12030
12031 ;;
12032
12033 *)
12034 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12035 if test "x$ac_cv_func_shl_load" = xyes; then :
12036 lt_cv_dlopen="shl_load"
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12039 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12040 if ${ac_cv_lib_dld_shl_load+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-ldld $LIBS"
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char shl_load ();
12055 int
12056 main ()
12057 {
12058 return shl_load ();
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_dld_shl_load=yes
12065 else
12066 ac_cv_lib_dld_shl_load=no
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12073 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12074 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12075 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12076 else
12077 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12078 if test "x$ac_cv_func_dlopen" = xyes; then :
12079 lt_cv_dlopen="dlopen"
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12082 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12083 if ${ac_cv_lib_dl_dlopen+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-ldl $LIBS"
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090
12091 /* Override any GCC internal prototype to avoid an error.
12092 Use char because int might match the return type of a GCC
12093 builtin and then its argument prototype would still apply. */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 char dlopen ();
12098 int
12099 main ()
12100 {
12101 return dlopen ();
12102 ;
12103 return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_lib_dl_dlopen=yes
12108 else
12109 ac_cv_lib_dl_dlopen=no
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LIBS=$ac_check_lib_save_LIBS
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12116 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12117 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12121 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12122 if ${ac_cv_lib_svld_dlopen+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-lsvld $LIBS"
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char dlopen ();
12137 int
12138 main ()
12139 {
12140 return dlopen ();
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146 ac_cv_lib_svld_dlopen=yes
12147 else
12148 ac_cv_lib_svld_dlopen=no
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12155 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12156 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12160 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12161 if ${ac_cv_lib_dld_dld_link+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 ac_check_lib_save_LIBS=$LIBS
12165 LIBS="-ldld $LIBS"
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char dld_link ();
12176 int
12177 main ()
12178 {
12179 return dld_link ();
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 ac_cv_lib_dld_dld_link=yes
12186 else
12187 ac_cv_lib_dld_dld_link=no
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12194 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12195 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12196 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12197 fi
12198
12199
12200 fi
12201
12202
12203 fi
12204
12205
12206 fi
12207
12208
12209 fi
12210
12211
12212 fi
12213
12214 ;;
12215 esac
12216
12217 if test "x$lt_cv_dlopen" != xno; then
12218 enable_dlopen=yes
12219 else
12220 enable_dlopen=no
12221 fi
12222
12223 case $lt_cv_dlopen in
12224 dlopen)
12225 save_CPPFLAGS="$CPPFLAGS"
12226 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12227
12228 save_LDFLAGS="$LDFLAGS"
12229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12230
12231 save_LIBS="$LIBS"
12232 LIBS="$lt_cv_dlopen_libs $LIBS"
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12235 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12236 if ${lt_cv_dlopen_self+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self=cross
12241 else
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245 #line $LINENO "configure"
12246 #include "confdefs.h"
12247
12248 #if HAVE_DLFCN_H
12249 #include <dlfcn.h>
12250 #endif
12251
12252 #include <stdio.h>
12253
12254 #ifdef RTLD_GLOBAL
12255 # define LT_DLGLOBAL RTLD_GLOBAL
12256 #else
12257 # ifdef DL_GLOBAL
12258 # define LT_DLGLOBAL DL_GLOBAL
12259 # else
12260 # define LT_DLGLOBAL 0
12261 # endif
12262 #endif
12263
12264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266 #ifndef LT_DLLAZY_OR_NOW
12267 # ifdef RTLD_LAZY
12268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12269 # else
12270 # ifdef DL_LAZY
12271 # define LT_DLLAZY_OR_NOW DL_LAZY
12272 # else
12273 # ifdef RTLD_NOW
12274 # define LT_DLLAZY_OR_NOW RTLD_NOW
12275 # else
12276 # ifdef DL_NOW
12277 # define LT_DLLAZY_OR_NOW DL_NOW
12278 # else
12279 # define LT_DLLAZY_OR_NOW 0
12280 # endif
12281 # endif
12282 # endif
12283 # endif
12284 #endif
12285
12286 /* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289 int fnord () __attribute__((visibility("default")));
12290 #endif
12291
12292 int fnord () { return 42; }
12293 int main ()
12294 {
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12297
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else
12302 {
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12305 }
12306 /* dlclose (self); */
12307 }
12308 else
12309 puts (dlerror ());
12310
12311 return status;
12312 }
12313 _LT_EOF
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12320 lt_status=$?
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12325 esac
12326 else :
12327 # compilation failed
12328 lt_cv_dlopen_self=no
12329 fi
12330 fi
12331 rm -fr conftest*
12332
12333
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12336 $as_echo "$lt_cv_dlopen_self" >&6; }
12337
12338 if test "x$lt_cv_dlopen_self" = xyes; then
12339 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12341 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12342 if ${lt_cv_dlopen_self_static+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 if test "$cross_compiling" = yes; then :
12346 lt_cv_dlopen_self_static=cross
12347 else
12348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12349 lt_status=$lt_dlunknown
12350 cat > conftest.$ac_ext <<_LT_EOF
12351 #line $LINENO "configure"
12352 #include "confdefs.h"
12353
12354 #if HAVE_DLFCN_H
12355 #include <dlfcn.h>
12356 #endif
12357
12358 #include <stdio.h>
12359
12360 #ifdef RTLD_GLOBAL
12361 # define LT_DLGLOBAL RTLD_GLOBAL
12362 #else
12363 # ifdef DL_GLOBAL
12364 # define LT_DLGLOBAL DL_GLOBAL
12365 # else
12366 # define LT_DLGLOBAL 0
12367 # endif
12368 #endif
12369
12370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12371 find out it does not work in some platform. */
12372 #ifndef LT_DLLAZY_OR_NOW
12373 # ifdef RTLD_LAZY
12374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12375 # else
12376 # ifdef DL_LAZY
12377 # define LT_DLLAZY_OR_NOW DL_LAZY
12378 # else
12379 # ifdef RTLD_NOW
12380 # define LT_DLLAZY_OR_NOW RTLD_NOW
12381 # else
12382 # ifdef DL_NOW
12383 # define LT_DLLAZY_OR_NOW DL_NOW
12384 # else
12385 # define LT_DLLAZY_OR_NOW 0
12386 # endif
12387 # endif
12388 # endif
12389 # endif
12390 #endif
12391
12392 /* When -fvisbility=hidden is used, assume the code has been annotated
12393 correspondingly for the symbols needed. */
12394 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12395 int fnord () __attribute__((visibility("default")));
12396 #endif
12397
12398 int fnord () { return 42; }
12399 int main ()
12400 {
12401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12402 int status = $lt_dlunknown;
12403
12404 if (self)
12405 {
12406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12407 else
12408 {
12409 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12410 else puts (dlerror ());
12411 }
12412 /* dlclose (self); */
12413 }
12414 else
12415 puts (dlerror ());
12416
12417 return status;
12418 }
12419 _LT_EOF
12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12421 (eval $ac_link) 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12425 (./conftest; exit; ) >&5 2>/dev/null
12426 lt_status=$?
12427 case x$lt_status in
12428 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12429 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12430 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12431 esac
12432 else :
12433 # compilation failed
12434 lt_cv_dlopen_self_static=no
12435 fi
12436 fi
12437 rm -fr conftest*
12438
12439
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12442 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12443 fi
12444
12445 CPPFLAGS="$save_CPPFLAGS"
12446 LDFLAGS="$save_LDFLAGS"
12447 LIBS="$save_LIBS"
12448 ;;
12449 esac
12450
12451 case $lt_cv_dlopen_self in
12452 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12453 *) enable_dlopen_self=unknown ;;
12454 esac
12455
12456 case $lt_cv_dlopen_self_static in
12457 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12458 *) enable_dlopen_self_static=unknown ;;
12459 esac
12460 fi
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478 striplib=
12479 old_striplib=
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12481 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12482 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12483 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12484 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12486 $as_echo "yes" >&6; }
12487 else
12488 # FIXME - insert some real tests, host_os isn't really good enough
12489 case $host_os in
12490 darwin*)
12491 if test -n "$STRIP" ; then
12492 striplib="$STRIP -x"
12493 old_striplib="$STRIP -S"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12495 $as_echo "yes" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12499 fi
12500 ;;
12501 *)
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12504 ;;
12505 esac
12506 fi
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519 # Report which library types will actually be built
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12521 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12523 $as_echo "$can_build_shared" >&6; }
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12526 $as_echo_n "checking whether to build shared libraries... " >&6; }
12527 test "$can_build_shared" = "no" && enable_shared=no
12528
12529 # On AIX, shared libraries and static libraries use the same namespace, and
12530 # are all built from PIC.
12531 case $host_os in
12532 aix3*)
12533 test "$enable_shared" = yes && enable_static=no
12534 if test -n "$RANLIB"; then
12535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12536 postinstall_cmds='$RANLIB $lib'
12537 fi
12538 ;;
12539
12540 aix[4-9]*)
12541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12542 test "$enable_shared" = yes && enable_static=no
12543 fi
12544 ;;
12545 esac
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12547 $as_echo "$enable_shared" >&6; }
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12550 $as_echo_n "checking whether to build static libraries... " >&6; }
12551 # Make sure either enable_shared or enable_static is yes.
12552 test "$enable_shared" = yes || enable_static=yes
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12554 $as_echo "$enable_static" >&6; }
12555
12556
12557
12558
12559 fi
12560 ac_ext=c
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12565
12566 CC="$lt_save_CC"
12567
12568 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12569 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12570 (test "X$CXX" != "Xg++"))) ; then
12571 ac_ext=cpp
12572 ac_cpp='$CXXCPP $CPPFLAGS'
12573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12577 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12578 if test -z "$CXXCPP"; then
12579 if ${ac_cv_prog_CXXCPP+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 # Double quotes because CXXCPP needs to be expanded
12583 for CXXCPP in "$CXX -E" "/lib/cpp"
12584 do
12585 ac_preproc_ok=false
12586 for ac_cxx_preproc_warn_flag in '' yes
12587 do
12588 # Use a header file that comes with gcc, so configuring glibc
12589 # with a fresh cross-compiler works.
12590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 # <limits.h> exists even on freestanding compilers.
12592 # On the NeXT, cc -E runs the code through the compiler's parser,
12593 # not just through cpp. "Syntax error" is here to catch this case.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #ifdef __STDC__
12597 # include <limits.h>
12598 #else
12599 # include <assert.h>
12600 #endif
12601 Syntax error
12602 _ACEOF
12603 if ac_fn_cxx_try_cpp "$LINENO"; then :
12604
12605 else
12606 # Broken: fails on valid input.
12607 continue
12608 fi
12609 rm -f conftest.err conftest.i conftest.$ac_ext
12610
12611 # OK, works on sane cases. Now check whether nonexistent headers
12612 # can be detected and how.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 #include <ac_nonexistent.h>
12616 _ACEOF
12617 if ac_fn_cxx_try_cpp "$LINENO"; then :
12618 # Broken: success on invalid input.
12619 continue
12620 else
12621 # Passes both tests.
12622 ac_preproc_ok=:
12623 break
12624 fi
12625 rm -f conftest.err conftest.i conftest.$ac_ext
12626
12627 done
12628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12629 rm -f conftest.i conftest.err conftest.$ac_ext
12630 if $ac_preproc_ok; then :
12631 break
12632 fi
12633
12634 done
12635 ac_cv_prog_CXXCPP=$CXXCPP
12636
12637 fi
12638 CXXCPP=$ac_cv_prog_CXXCPP
12639 else
12640 ac_cv_prog_CXXCPP=$CXXCPP
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12643 $as_echo "$CXXCPP" >&6; }
12644 ac_preproc_ok=false
12645 for ac_cxx_preproc_warn_flag in '' yes
12646 do
12647 # Use a header file that comes with gcc, so configuring glibc
12648 # with a fresh cross-compiler works.
12649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650 # <limits.h> exists even on freestanding compilers.
12651 # On the NeXT, cc -E runs the code through the compiler's parser,
12652 # not just through cpp. "Syntax error" is here to catch this case.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655 #ifdef __STDC__
12656 # include <limits.h>
12657 #else
12658 # include <assert.h>
12659 #endif
12660 Syntax error
12661 _ACEOF
12662 if ac_fn_cxx_try_cpp "$LINENO"; then :
12663
12664 else
12665 # Broken: fails on valid input.
12666 continue
12667 fi
12668 rm -f conftest.err conftest.i conftest.$ac_ext
12669
12670 # OK, works on sane cases. Now check whether nonexistent headers
12671 # can be detected and how.
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 #include <ac_nonexistent.h>
12675 _ACEOF
12676 if ac_fn_cxx_try_cpp "$LINENO"; then :
12677 # Broken: success on invalid input.
12678 continue
12679 else
12680 # Passes both tests.
12681 ac_preproc_ok=:
12682 break
12683 fi
12684 rm -f conftest.err conftest.i conftest.$ac_ext
12685
12686 done
12687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12688 rm -f conftest.i conftest.err conftest.$ac_ext
12689 if $ac_preproc_ok; then :
12690
12691 else
12692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12694 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12695 See \`config.log' for more details" "$LINENO" 5; }
12696 fi
12697
12698 ac_ext=c
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704 else
12705 _lt_caught_CXX_error=yes
12706 fi
12707
12708 ac_ext=cpp
12709 ac_cpp='$CXXCPP $CPPFLAGS'
12710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12713
12714 archive_cmds_need_lc_CXX=no
12715 allow_undefined_flag_CXX=
12716 always_export_symbols_CXX=no
12717 archive_expsym_cmds_CXX=
12718 compiler_needs_object_CXX=no
12719 export_dynamic_flag_spec_CXX=
12720 hardcode_direct_CXX=no
12721 hardcode_direct_absolute_CXX=no
12722 hardcode_libdir_flag_spec_CXX=
12723 hardcode_libdir_separator_CXX=
12724 hardcode_minus_L_CXX=no
12725 hardcode_shlibpath_var_CXX=unsupported
12726 hardcode_automatic_CXX=no
12727 inherit_rpath_CXX=no
12728 module_cmds_CXX=
12729 module_expsym_cmds_CXX=
12730 link_all_deplibs_CXX=unknown
12731 old_archive_cmds_CXX=$old_archive_cmds
12732 reload_flag_CXX=$reload_flag
12733 reload_cmds_CXX=$reload_cmds
12734 no_undefined_flag_CXX=
12735 whole_archive_flag_spec_CXX=
12736 enable_shared_with_static_runtimes_CXX=no
12737
12738 # Source file extension for C++ test sources.
12739 ac_ext=cpp
12740
12741 # Object file extension for compiled C++ test sources.
12742 objext=o
12743 objext_CXX=$objext
12744
12745 # No sense in running all these tests if we already determined that
12746 # the CXX compiler isn't working. Some variables (like enable_shared)
12747 # are currently assumed to apply to all compilers on this platform,
12748 # and will be corrupted by setting them based on a non-working compiler.
12749 if test "$_lt_caught_CXX_error" != yes; then
12750 # Code to be used in simple compile tests
12751 lt_simple_compile_test_code="int some_variable = 0;"
12752
12753 # Code to be used in simple link tests
12754 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12755
12756 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12757
12758
12759
12760
12761
12762
12763 # If no C compiler was specified, use CC.
12764 LTCC=${LTCC-"$CC"}
12765
12766 # If no C compiler flags were specified, use CFLAGS.
12767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12768
12769 # Allow CC to be a program name with arguments.
12770 compiler=$CC
12771
12772
12773 # save warnings/boilerplate of simple test code
12774 ac_outfile=conftest.$ac_objext
12775 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12777 _lt_compiler_boilerplate=`cat conftest.err`
12778 $RM -r conftest*
12779
12780 ac_outfile=conftest.$ac_objext
12781 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12783 _lt_linker_boilerplate=`cat conftest.err`
12784 $RM -r conftest*
12785
12786
12787 # Allow CC to be a program name with arguments.
12788 lt_save_CC=$CC
12789 lt_save_CFLAGS=$CFLAGS
12790 lt_save_LD=$LD
12791 lt_save_GCC=$GCC
12792 GCC=$GXX
12793 lt_save_with_gnu_ld=$with_gnu_ld
12794 lt_save_path_LD=$lt_cv_path_LD
12795 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12797 else
12798 $as_unset lt_cv_prog_gnu_ld
12799 fi
12800 if test -n "${lt_cv_path_LDCXX+set}"; then
12801 lt_cv_path_LD=$lt_cv_path_LDCXX
12802 else
12803 $as_unset lt_cv_path_LD
12804 fi
12805 test -z "${LDCXX+set}" || LD=$LDCXX
12806 CC=${CXX-"c++"}
12807 CFLAGS=$CXXFLAGS
12808 compiler=$CC
12809 compiler_CXX=$CC
12810 for cc_temp in $compiler""; do
12811 case $cc_temp in
12812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12814 \-*) ;;
12815 *) break;;
12816 esac
12817 done
12818 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12819
12820
12821 if test -n "$compiler"; then
12822 # We don't want -fno-exception when compiling C++ code, so set the
12823 # no_builtin_flag separately
12824 if test "$GXX" = yes; then
12825 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12826 else
12827 lt_prog_compiler_no_builtin_flag_CXX=
12828 fi
12829
12830 if test "$GXX" = yes; then
12831 # Set up default GNU C++ configuration
12832
12833
12834
12835 # Check whether --with-gnu-ld was given.
12836 if test "${with_gnu_ld+set}" = set; then :
12837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12838 else
12839 with_gnu_ld=no
12840 fi
12841
12842 ac_prog=ld
12843 if test "$GCC" = yes; then
12844 # Check if gcc -print-prog-name=ld gives a path.
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12846 $as_echo_n "checking for ld used by $CC... " >&6; }
12847 case $host in
12848 *-*-mingw*)
12849 # gcc leaves a trailing carriage return which upsets mingw
12850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12851 *)
12852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12853 esac
12854 case $ac_prog in
12855 # Accept absolute paths.
12856 [\\/]* | ?:[\\/]*)
12857 re_direlt='/[^/][^/]*/\.\./'
12858 # Canonicalize the pathname of ld
12859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12862 done
12863 test -z "$LD" && LD="$ac_prog"
12864 ;;
12865 "")
12866 # If it fails, then pretend we aren't using GCC.
12867 ac_prog=ld
12868 ;;
12869 *)
12870 # If it is relative, then search for the first ld in PATH.
12871 with_gnu_ld=unknown
12872 ;;
12873 esac
12874 elif test "$with_gnu_ld" = yes; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12876 $as_echo_n "checking for GNU ld... " >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12879 $as_echo_n "checking for non-GNU ld... " >&6; }
12880 fi
12881 if ${lt_cv_path_LD+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 if test -z "$LD"; then
12885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12886 for ac_dir in $PATH; do
12887 IFS="$lt_save_ifs"
12888 test -z "$ac_dir" && ac_dir=.
12889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12890 lt_cv_path_LD="$ac_dir/$ac_prog"
12891 # Check to see if the program is GNU ld. I'd rather use --version,
12892 # but apparently some variants of GNU ld only accept -v.
12893 # Break only if it was the GNU/non-GNU ld that we prefer.
12894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12895 *GNU* | *'with BFD'*)
12896 test "$with_gnu_ld" != no && break
12897 ;;
12898 *)
12899 test "$with_gnu_ld" != yes && break
12900 ;;
12901 esac
12902 fi
12903 done
12904 IFS="$lt_save_ifs"
12905 else
12906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12907 fi
12908 fi
12909
12910 LD="$lt_cv_path_LD"
12911 if test -n "$LD"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12913 $as_echo "$LD" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12917 fi
12918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12921 if ${lt_cv_prog_gnu_ld+:} false; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12925 case `$LD -v 2>&1 </dev/null` in
12926 *GNU* | *'with BFD'*)
12927 lt_cv_prog_gnu_ld=yes
12928 ;;
12929 *)
12930 lt_cv_prog_gnu_ld=no
12931 ;;
12932 esac
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12936 with_gnu_ld=$lt_cv_prog_gnu_ld
12937
12938
12939
12940
12941
12942
12943
12944 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12945 # archiving commands below assume that GNU ld is being used.
12946 if test "$with_gnu_ld" = yes; then
12947 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948 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'
12949
12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12952
12953 # If archive_cmds runs LD, not CC, wlarc should be empty
12954 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12955 # investigate it a little bit more. (MM)
12956 wlarc='${wl}'
12957
12958 # ancient GNU ld didn't support --whole-archive et. al.
12959 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12960 $GREP 'no-whole-archive' > /dev/null; then
12961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12962 else
12963 whole_archive_flag_spec_CXX=
12964 fi
12965 else
12966 with_gnu_ld=no
12967 wlarc=
12968
12969 # A generic and very simple default shared library creation
12970 # command for GNU C++ for the case where it uses the native
12971 # linker, instead of GNU ld. If possible, this setting should
12972 # overridden to take advantage of the native linker features on
12973 # the platform it is being used on.
12974 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12975 fi
12976
12977 # Commands to make compiler produce verbose output that lists
12978 # what "hidden" libraries, object files and flags are used when
12979 # linking a shared library.
12980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12981
12982 else
12983 GXX=no
12984 with_gnu_ld=no
12985 wlarc=
12986 fi
12987
12988 # PORTME: fill in a description of your system's C++ link characteristics
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12990 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12991 ld_shlibs_CXX=yes
12992 case $host_os in
12993 aix3*)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 aix[4-9]*)
12998 if test "$host_cpu" = ia64; then
12999 # On IA64, the linker does run time linking by default, so we don't
13000 # have to do anything special.
13001 aix_use_runtimelinking=no
13002 exp_sym_flag='-Bexport'
13003 no_entry_flag=""
13004 else
13005 aix_use_runtimelinking=no
13006
13007 # Test if we are trying to use run time linking or normal
13008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13009 # need to do runtime linking.
13010 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13011 for ld_flag in $LDFLAGS; do
13012 case $ld_flag in
13013 *-brtl*)
13014 aix_use_runtimelinking=yes
13015 break
13016 ;;
13017 esac
13018 done
13019 ;;
13020 esac
13021
13022 exp_sym_flag='-bexport'
13023 no_entry_flag='-bnoentry'
13024 fi
13025
13026 # When large executables or shared objects are built, AIX ld can
13027 # have problems creating the table of contents. If linking a library
13028 # or program results in "error TOC overflow" add -mminimal-toc to
13029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13031
13032 archive_cmds_CXX=''
13033 hardcode_direct_CXX=yes
13034 hardcode_direct_absolute_CXX=yes
13035 hardcode_libdir_separator_CXX=':'
13036 link_all_deplibs_CXX=yes
13037 file_list_spec_CXX='${wl}-f,'
13038
13039 if test "$GXX" = yes; then
13040 case $host_os in aix4.[012]|aix4.[012].*)
13041 # We only want to do this on AIX 4.2 and lower, the check
13042 # below for broken collect2 doesn't work under 4.3+
13043 collect2name=`${CC} -print-prog-name=collect2`
13044 if test -f "$collect2name" &&
13045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13046 then
13047 # We have reworked collect2
13048 :
13049 else
13050 # We have old collect2
13051 hardcode_direct_CXX=unsupported
13052 # It fails to find uninstalled libraries when the uninstalled
13053 # path is not listed in the libpath. Setting hardcode_minus_L
13054 # to unsupported forces relinking
13055 hardcode_minus_L_CXX=yes
13056 hardcode_libdir_flag_spec_CXX='-L$libdir'
13057 hardcode_libdir_separator_CXX=
13058 fi
13059 esac
13060 shared_flag='-shared'
13061 if test "$aix_use_runtimelinking" = yes; then
13062 shared_flag="$shared_flag "'${wl}-G'
13063 fi
13064 else
13065 # not using gcc
13066 if test "$host_cpu" = ia64; then
13067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13068 # chokes on -Wl,-G. The following line is correct:
13069 shared_flag='-G'
13070 else
13071 if test "$aix_use_runtimelinking" = yes; then
13072 shared_flag='${wl}-G'
13073 else
13074 shared_flag='${wl}-bM:SRE'
13075 fi
13076 fi
13077 fi
13078
13079 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13080 # It seems that -bexpall does not export symbols beginning with
13081 # underscore (_), so it is better to generate a list of symbols to
13082 # export.
13083 always_export_symbols_CXX=yes
13084 if test "$aix_use_runtimelinking" = yes; then
13085 # Warning - without using the other runtime loading flags (-brtl),
13086 # -berok will link without error, but may produce a broken library.
13087 allow_undefined_flag_CXX='-berok'
13088 # Determine the default libpath from the value encoded in an empty
13089 # executable.
13090 if test "${lt_cv_aix_libpath+set}" = set; then
13091 aix_libpath=$lt_cv_aix_libpath
13092 else
13093 if ${lt_cv_aix_libpath__CXX+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098
13099 int
13100 main ()
13101 {
13102
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_cxx_try_link "$LINENO"; then :
13108
13109 lt_aix_libpath_sed='
13110 /Import File Strings/,/^$/ {
13111 /^0/ {
13112 s/^0 *\([^ ]*\) *$/\1/
13113 p
13114 }
13115 }'
13116 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13117 # Check for a 64-bit object if we didn't find anything.
13118 if test -z "$lt_cv_aix_libpath__CXX"; then
13119 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13120 fi
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 if test -z "$lt_cv_aix_libpath__CXX"; then
13125 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13126 fi
13127
13128 fi
13129
13130 aix_libpath=$lt_cv_aix_libpath__CXX
13131 fi
13132
13133 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13134
13135 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"
13136 else
13137 if test "$host_cpu" = ia64; then
13138 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13139 allow_undefined_flag_CXX="-z nodefs"
13140 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"
13141 else
13142 # Determine the default libpath from the value encoded in an
13143 # empty executable.
13144 if test "${lt_cv_aix_libpath+set}" = set; then
13145 aix_libpath=$lt_cv_aix_libpath
13146 else
13147 if ${lt_cv_aix_libpath__CXX+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152
13153 int
13154 main ()
13155 {
13156
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_cxx_try_link "$LINENO"; then :
13162
13163 lt_aix_libpath_sed='
13164 /Import File Strings/,/^$/ {
13165 /^0/ {
13166 s/^0 *\([^ ]*\) *$/\1/
13167 p
13168 }
13169 }'
13170 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13171 # Check for a 64-bit object if we didn't find anything.
13172 if test -z "$lt_cv_aix_libpath__CXX"; then
13173 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13174 fi
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
13178 if test -z "$lt_cv_aix_libpath__CXX"; then
13179 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13180 fi
13181
13182 fi
13183
13184 aix_libpath=$lt_cv_aix_libpath__CXX
13185 fi
13186
13187 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13188 # Warning - without using the other run time loading flags,
13189 # -berok will link without error, but may produce a broken library.
13190 no_undefined_flag_CXX=' ${wl}-bernotok'
13191 allow_undefined_flag_CXX=' ${wl}-berok'
13192 if test "$with_gnu_ld" = yes; then
13193 # We only use this code for GNU lds that support --whole-archive.
13194 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13195 else
13196 # Exported symbols can be pulled into shared objects from archives
13197 whole_archive_flag_spec_CXX='$convenience'
13198 fi
13199 archive_cmds_need_lc_CXX=yes
13200 # This is similar to how AIX traditionally builds its shared
13201 # libraries.
13202 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'
13203 fi
13204 fi
13205 ;;
13206
13207 beos*)
13208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13209 allow_undefined_flag_CXX=unsupported
13210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13211 # support --undefined. This deserves some investigation. FIXME
13212 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13213 else
13214 ld_shlibs_CXX=no
13215 fi
13216 ;;
13217
13218 chorus*)
13219 case $cc_basename in
13220 *)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13223 ;;
13224 esac
13225 ;;
13226
13227 cygwin* | mingw* | pw32* | cegcc*)
13228 case $GXX,$cc_basename in
13229 ,cl* | no,cl*)
13230 # Native MSVC
13231 # hardcode_libdir_flag_spec is actually meaningless, as there is
13232 # no search path for DLLs.
13233 hardcode_libdir_flag_spec_CXX=' '
13234 allow_undefined_flag_CXX=unsupported
13235 always_export_symbols_CXX=yes
13236 file_list_spec_CXX='@'
13237 # Tell ltmain to make .lib files, not .a files.
13238 libext=lib
13239 # Tell ltmain to make .dll files, not .so files.
13240 shrext_cmds=".dll"
13241 # FIXME: Setting linknames here is a bad hack.
13242 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13243 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13244 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13245 else
13246 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13247 fi~
13248 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13249 linknames='
13250 # The linker will not automatically build a static lib if we build a DLL.
13251 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13252 enable_shared_with_static_runtimes_CXX=yes
13253 # Don't use ranlib
13254 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13255 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13256 lt_tool_outputfile="@TOOL_OUTPUT@"~
13257 case $lt_outputfile in
13258 *.exe|*.EXE) ;;
13259 *)
13260 lt_outputfile="$lt_outputfile.exe"
13261 lt_tool_outputfile="$lt_tool_outputfile.exe"
13262 ;;
13263 esac~
13264 func_to_tool_file "$lt_outputfile"~
13265 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13266 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13267 $RM "$lt_outputfile.manifest";
13268 fi'
13269 ;;
13270 *)
13271 # g++
13272 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13273 # as there is no search path for DLLs.
13274 hardcode_libdir_flag_spec_CXX='-L$libdir'
13275 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13276 allow_undefined_flag_CXX=unsupported
13277 always_export_symbols_CXX=no
13278 enable_shared_with_static_runtimes_CXX=yes
13279
13280 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13281 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'
13282 # If the export-symbols file already is a .def file (1st line
13283 # is EXPORTS), use it as is; otherwise, prepend...
13284 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13285 cp $export_symbols $output_objdir/$soname.def;
13286 else
13287 echo EXPORTS > $output_objdir/$soname.def;
13288 cat $export_symbols >> $output_objdir/$soname.def;
13289 fi~
13290 $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'
13291 else
13292 ld_shlibs_CXX=no
13293 fi
13294 ;;
13295 esac
13296 ;;
13297 darwin* | rhapsody*)
13298
13299
13300 archive_cmds_need_lc_CXX=no
13301 hardcode_direct_CXX=no
13302 hardcode_automatic_CXX=yes
13303 hardcode_shlibpath_var_CXX=unsupported
13304 if test "$lt_cv_ld_force_load" = "yes"; then
13305 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\"`'
13306
13307 else
13308 whole_archive_flag_spec_CXX=''
13309 fi
13310 link_all_deplibs_CXX=yes
13311 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13312 case $cc_basename in
13313 ifort*) _lt_dar_can_shared=yes ;;
13314 *) _lt_dar_can_shared=$GCC ;;
13315 esac
13316 if test "$_lt_dar_can_shared" = "yes"; then
13317 output_verbose_link_cmd=func_echo_all
13318 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}"
13319 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13320 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}"
13321 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}"
13322 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13323 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}"
13324 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}"
13325 fi
13326
13327 else
13328 ld_shlibs_CXX=no
13329 fi
13330
13331 ;;
13332
13333 dgux*)
13334 case $cc_basename in
13335 ec++*)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339 ghcx*)
13340 # Green Hills C++ Compiler
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13343 ;;
13344 *)
13345 # FIXME: insert proper C++ library support
13346 ld_shlibs_CXX=no
13347 ;;
13348 esac
13349 ;;
13350
13351 freebsd2.*)
13352 # C++ shared libraries reported to be fairly broken before
13353 # switch to ELF
13354 ld_shlibs_CXX=no
13355 ;;
13356
13357 freebsd-elf*)
13358 archive_cmds_need_lc_CXX=no
13359 ;;
13360
13361 freebsd* | dragonfly*)
13362 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13363 # conventions
13364 ld_shlibs_CXX=yes
13365 ;;
13366
13367 gnu*)
13368 ;;
13369
13370 haiku*)
13371 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13372 link_all_deplibs_CXX=yes
13373 ;;
13374
13375 hpux9*)
13376 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13377 hardcode_libdir_separator_CXX=:
13378 export_dynamic_flag_spec_CXX='${wl}-E'
13379 hardcode_direct_CXX=yes
13380 hardcode_minus_L_CXX=yes # Not in the search PATH,
13381 # but as the default
13382 # location of the library.
13383
13384 case $cc_basename in
13385 CC*)
13386 # FIXME: insert proper C++ library support
13387 ld_shlibs_CXX=no
13388 ;;
13389 aCC*)
13390 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'
13391 # Commands to make compiler produce verbose output that lists
13392 # what "hidden" libraries, object files and flags are used when
13393 # linking a shared library.
13394 #
13395 # There doesn't appear to be a way to prevent this compiler from
13396 # explicitly linking system object files so we need to strip them
13397 # from the output so that they don't get included in the library
13398 # dependencies.
13399 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"'
13400 ;;
13401 *)
13402 if test "$GXX" = yes; then
13403 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'
13404 else
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13407 fi
13408 ;;
13409 esac
13410 ;;
13411
13412 hpux10*|hpux11*)
13413 if test $with_gnu_ld = no; then
13414 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13415 hardcode_libdir_separator_CXX=:
13416
13417 case $host_cpu in
13418 hppa*64*|ia64*)
13419 ;;
13420 *)
13421 export_dynamic_flag_spec_CXX='${wl}-E'
13422 ;;
13423 esac
13424 fi
13425 case $host_cpu in
13426 hppa*64*|ia64*)
13427 hardcode_direct_CXX=no
13428 hardcode_shlibpath_var_CXX=no
13429 ;;
13430 *)
13431 hardcode_direct_CXX=yes
13432 hardcode_direct_absolute_CXX=yes
13433 hardcode_minus_L_CXX=yes # Not in the search PATH,
13434 # but as the default
13435 # location of the library.
13436 ;;
13437 esac
13438
13439 case $cc_basename in
13440 CC*)
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13443 ;;
13444 aCC*)
13445 case $host_cpu in
13446 hppa*64*)
13447 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448 ;;
13449 ia64*)
13450 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451 ;;
13452 *)
13453 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13454 ;;
13455 esac
13456 # Commands to make compiler produce verbose output that lists
13457 # what "hidden" libraries, object files and flags are used when
13458 # linking a shared library.
13459 #
13460 # There doesn't appear to be a way to prevent this compiler from
13461 # explicitly linking system object files so we need to strip them
13462 # from the output so that they don't get included in the library
13463 # dependencies.
13464 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"'
13465 ;;
13466 *)
13467 if test "$GXX" = yes; then
13468 if test $with_gnu_ld = no; then
13469 case $host_cpu in
13470 hppa*64*)
13471 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 ;;
13473 ia64*)
13474 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13475 ;;
13476 *)
13477 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'
13478 ;;
13479 esac
13480 fi
13481 else
13482 # FIXME: insert proper C++ library support
13483 ld_shlibs_CXX=no
13484 fi
13485 ;;
13486 esac
13487 ;;
13488
13489 interix[3-9]*)
13490 hardcode_direct_CXX=no
13491 hardcode_shlibpath_var_CXX=no
13492 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13493 export_dynamic_flag_spec_CXX='${wl}-E'
13494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13495 # Instead, shared libraries are loaded at an image base (0x10000000 by
13496 # default) and relocated if they conflict, which is a slow very memory
13497 # consuming and fragmenting process. To avoid this, we pick a random,
13498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13500 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'
13501 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'
13502 ;;
13503 irix5* | irix6*)
13504 case $cc_basename in
13505 CC*)
13506 # SGI C++
13507 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'
13508
13509 # Archives containing C++ object files must be created using
13510 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13511 # necessary to make sure instantiated templates are included
13512 # in the archive.
13513 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13514 ;;
13515 *)
13516 if test "$GXX" = yes; then
13517 if test "$with_gnu_ld" = no; then
13518 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'
13519 else
13520 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'
13521 fi
13522 fi
13523 link_all_deplibs_CXX=yes
13524 ;;
13525 esac
13526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527 hardcode_libdir_separator_CXX=:
13528 inherit_rpath_CXX=yes
13529 ;;
13530
13531 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13532 case $cc_basename in
13533 KCC*)
13534 # Kuck and Associates, Inc. (KAI) C++ Compiler
13535
13536 # KCC will only create a shared library if the output file
13537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538 # to its proper name (with version) after linking.
13539 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'
13540 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'
13541 # Commands to make compiler produce verbose output that lists
13542 # what "hidden" libraries, object files and flags are used when
13543 # linking a shared library.
13544 #
13545 # There doesn't appear to be a way to prevent this compiler from
13546 # explicitly linking system object files so we need to strip them
13547 # from the output so that they don't get included in the library
13548 # dependencies.
13549 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"'
13550
13551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13552 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13553
13554 # Archives containing C++ object files must be created using
13555 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13556 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13557 ;;
13558 icpc* | ecpc* )
13559 # Intel C++
13560 with_gnu_ld=yes
13561 # version 8.0 and above of icpc choke on multiply defined symbols
13562 # if we add $predep_objects and $postdep_objects, however 7.1 and
13563 # earlier do not add the objects themselves.
13564 case `$CC -V 2>&1` in
13565 *"Version 7."*)
13566 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567 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'
13568 ;;
13569 *) # Version 8.0 or newer
13570 tmp_idyn=
13571 case $host_cpu in
13572 ia64*) tmp_idyn=' -i_dynamic';;
13573 esac
13574 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575 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'
13576 ;;
13577 esac
13578 archive_cmds_need_lc_CXX=no
13579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13581 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13582 ;;
13583 pgCC* | pgcpp*)
13584 # Portland Group C++ compiler
13585 case `$CC -V` in
13586 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13587 prelink_cmds_CXX='tpldir=Template.dir~
13588 rm -rf $tpldir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13590 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13591 old_archive_cmds_CXX='tpldir=Template.dir~
13592 rm -rf $tpldir~
13593 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13594 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13595 $RANLIB $oldlib'
13596 archive_cmds_CXX='tpldir=Template.dir~
13597 rm -rf $tpldir~
13598 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13599 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13600 archive_expsym_cmds_CXX='tpldir=Template.dir~
13601 rm -rf $tpldir~
13602 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13603 $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'
13604 ;;
13605 *) # Version 6 and above use weak symbols
13606 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13607 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'
13608 ;;
13609 esac
13610
13611 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13613 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'
13614 ;;
13615 cxx*)
13616 # Compaq C++
13617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618 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'
13619
13620 runpath_var=LD_RUN_PATH
13621 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13622 hardcode_libdir_separator_CXX=:
13623
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 #
13628 # There doesn't appear to be a way to prevent this compiler from
13629 # explicitly linking system object files so we need to strip them
13630 # from the output so that they don't get included in the library
13631 # dependencies.
13632 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'
13633 ;;
13634 xl* | mpixl* | bgxl*)
13635 # IBM XL 8.0 on PPC, with GNU ld
13636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13638 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 if test "x$supports_anon_versioning" = xyes; then
13640 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13642 echo "local: *; };" >> $output_objdir/$libname.ver~
13643 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13644 fi
13645 ;;
13646 *)
13647 case `$CC -V 2>&1 | sed 5q` in
13648 *Sun\ C*)
13649 # Sun C++ 5.9
13650 no_undefined_flag_CXX=' -zdefs'
13651 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 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'
13653 hardcode_libdir_flag_spec_CXX='-R$libdir'
13654 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'
13655 compiler_needs_object_CXX=yes
13656
13657 # Not sure whether something based on
13658 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13659 # would be better.
13660 output_verbose_link_cmd='func_echo_all'
13661
13662 # Archives containing C++ object files must be created using
13663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13664 # necessary to make sure instantiated templates are included
13665 # in the archive.
13666 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13667 ;;
13668 esac
13669 ;;
13670 esac
13671 ;;
13672
13673 lynxos*)
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
13677
13678 m88k*)
13679 # FIXME: insert proper C++ library support
13680 ld_shlibs_CXX=no
13681 ;;
13682
13683 mvs*)
13684 case $cc_basename in
13685 cxx*)
13686 # FIXME: insert proper C++ library support
13687 ld_shlibs_CXX=no
13688 ;;
13689 *)
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13692 ;;
13693 esac
13694 ;;
13695
13696 netbsd*)
13697 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13698 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13699 wlarc=
13700 hardcode_libdir_flag_spec_CXX='-R$libdir'
13701 hardcode_direct_CXX=yes
13702 hardcode_shlibpath_var_CXX=no
13703 fi
13704 # Workaround some broken pre-1.5 toolchains
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13706 ;;
13707
13708 *nto* | *qnx*)
13709 ld_shlibs_CXX=yes
13710 ;;
13711
13712 openbsd2*)
13713 # C++ shared libraries are fairly broken
13714 ld_shlibs_CXX=no
13715 ;;
13716
13717 openbsd*)
13718 if test -f /usr/libexec/ld.so; then
13719 hardcode_direct_CXX=yes
13720 hardcode_shlibpath_var_CXX=no
13721 hardcode_direct_absolute_CXX=yes
13722 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13726 export_dynamic_flag_spec_CXX='${wl}-E'
13727 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728 fi
13729 output_verbose_link_cmd=func_echo_all
13730 else
13731 ld_shlibs_CXX=no
13732 fi
13733 ;;
13734
13735 osf3* | osf4* | osf5*)
13736 case $cc_basename in
13737 KCC*)
13738 # Kuck and Associates, Inc. (KAI) C++ Compiler
13739
13740 # KCC will only create a shared library if the output file
13741 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13742 # to its proper name (with version) after linking.
13743 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'
13744
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 hardcode_libdir_separator_CXX=:
13747
13748 # Archives containing C++ object files must be created using
13749 # the KAI C++ compiler.
13750 case $host in
13751 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13752 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13753 esac
13754 ;;
13755 RCC*)
13756 # Rational C++ 2.4.1
13757 # FIXME: insert proper C++ library support
13758 ld_shlibs_CXX=no
13759 ;;
13760 cxx*)
13761 case $host in
13762 osf3*)
13763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13764 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'
13765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13766 ;;
13767 *)
13768 allow_undefined_flag_CXX=' -expect_unresolved \*'
13769 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'
13770 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13771 echo "-hidden">> $lib.exp~
13772 $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~
13773 $RM $lib.exp'
13774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13775 ;;
13776 esac
13777
13778 hardcode_libdir_separator_CXX=:
13779
13780 # Commands to make compiler produce verbose output that lists
13781 # what "hidden" libraries, object files and flags are used when
13782 # linking a shared library.
13783 #
13784 # There doesn't appear to be a way to prevent this compiler from
13785 # explicitly linking system object files so we need to strip them
13786 # from the output so that they don't get included in the library
13787 # dependencies.
13788 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"'
13789 ;;
13790 *)
13791 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13793 case $host in
13794 osf3*)
13795 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'
13796 ;;
13797 *)
13798 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'
13799 ;;
13800 esac
13801
13802 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_CXX=:
13804
13805 # Commands to make compiler produce verbose output that lists
13806 # what "hidden" libraries, object files and flags are used when
13807 # linking a shared library.
13808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13809
13810 else
13811 # FIXME: insert proper C++ library support
13812 ld_shlibs_CXX=no
13813 fi
13814 ;;
13815 esac
13816 ;;
13817
13818 psos*)
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13821 ;;
13822
13823 sunos4*)
13824 case $cc_basename in
13825 CC*)
13826 # Sun C++ 4.x
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 lcc*)
13831 # Lucid
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835 *)
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13838 ;;
13839 esac
13840 ;;
13841
13842 solaris*)
13843 case $cc_basename in
13844 CC* | sunCC*)
13845 # Sun C++ 4.2, 5.x and Centerline C++
13846 archive_cmds_need_lc_CXX=yes
13847 no_undefined_flag_CXX=' -zdefs'
13848 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13850 $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'
13851
13852 hardcode_libdir_flag_spec_CXX='-R$libdir'
13853 hardcode_shlibpath_var_CXX=no
13854 case $host_os in
13855 solaris2.[0-5] | solaris2.[0-5].*) ;;
13856 *)
13857 # The compiler driver will combine and reorder linker options,
13858 # but understands `-z linker_flag'.
13859 # Supported since Solaris 2.6 (maybe 2.5.1?)
13860 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13861 ;;
13862 esac
13863 link_all_deplibs_CXX=yes
13864
13865 output_verbose_link_cmd='func_echo_all'
13866
13867 # Archives containing C++ object files must be created using
13868 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13869 # necessary to make sure instantiated templates are included
13870 # in the archive.
13871 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13872 ;;
13873 gcx*)
13874 # Green Hills C++ Compiler
13875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13876
13877 # The C++ compiler must be used to create the archive.
13878 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13879 ;;
13880 *)
13881 # GNU C++ compiler with Solaris linker
13882 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13883 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13884 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13885 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13886 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13887 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13888
13889 # Commands to make compiler produce verbose output that lists
13890 # what "hidden" libraries, object files and flags are used when
13891 # linking a shared library.
13892 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13893 else
13894 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13895 # platform.
13896 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13898 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13899
13900 # Commands to make compiler produce verbose output that lists
13901 # what "hidden" libraries, object files and flags are used when
13902 # linking a shared library.
13903 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13904 fi
13905
13906 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13907 case $host_os in
13908 solaris2.[0-5] | solaris2.[0-5].*) ;;
13909 *)
13910 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13911 ;;
13912 esac
13913 fi
13914 ;;
13915 esac
13916 ;;
13917
13918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13919 no_undefined_flag_CXX='${wl}-z,text'
13920 archive_cmds_need_lc_CXX=no
13921 hardcode_shlibpath_var_CXX=no
13922 runpath_var='LD_RUN_PATH'
13923
13924 case $cc_basename in
13925 CC*)
13926 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 ;;
13929 *)
13930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932 ;;
13933 esac
13934 ;;
13935
13936 sysv5* | sco3.2v5* | sco5v6*)
13937 # Note: We can NOT use -z defs as we might desire, because we do not
13938 # link with -lc, and that would cause any symbols used from libc to
13939 # always be unresolved, which means just about no library would
13940 # ever link correctly. If we're not using GNU ld we use -z text
13941 # though, which does catch some bad symbols but isn't as heavy-handed
13942 # as -z defs.
13943 no_undefined_flag_CXX='${wl}-z,text'
13944 allow_undefined_flag_CXX='${wl}-z,nodefs'
13945 archive_cmds_need_lc_CXX=no
13946 hardcode_shlibpath_var_CXX=no
13947 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13948 hardcode_libdir_separator_CXX=':'
13949 link_all_deplibs_CXX=yes
13950 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13951 runpath_var='LD_RUN_PATH'
13952
13953 case $cc_basename in
13954 CC*)
13955 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13957 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13958 '"$old_archive_cmds_CXX"
13959 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13960 '"$reload_cmds_CXX"
13961 ;;
13962 *)
13963 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13965 ;;
13966 esac
13967 ;;
13968
13969 tandem*)
13970 case $cc_basename in
13971 NCC*)
13972 # NonStop-UX NCC 3.20
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
13976 *)
13977 # FIXME: insert proper C++ library support
13978 ld_shlibs_CXX=no
13979 ;;
13980 esac
13981 ;;
13982
13983 vxworks*)
13984 # FIXME: insert proper C++ library support
13985 ld_shlibs_CXX=no
13986 ;;
13987
13988 *)
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
13991 ;;
13992 esac
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13995 $as_echo "$ld_shlibs_CXX" >&6; }
13996 test "$ld_shlibs_CXX" = no && can_build_shared=no
13997
13998 GCC_CXX="$GXX"
13999 LD_CXX="$LD"
14000
14001 ## CAVEAT EMPTOR:
14002 ## There is no encapsulation within the following macros, do not change
14003 ## the running order or otherwise move them around unless you know exactly
14004 ## what you are doing...
14005 # Dependencies to place before and after the object being linked:
14006 predep_objects_CXX=
14007 postdep_objects_CXX=
14008 predeps_CXX=
14009 postdeps_CXX=
14010 compiler_lib_search_path_CXX=
14011
14012 cat > conftest.$ac_ext <<_LT_EOF
14013 class Foo
14014 {
14015 public:
14016 Foo (void) { a = 0; }
14017 private:
14018 int a;
14019 };
14020 _LT_EOF
14021
14022
14023 _lt_libdeps_save_CFLAGS=$CFLAGS
14024 case "$CC $CFLAGS " in #(
14025 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14026 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14027 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14028 esac
14029
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14031 (eval $ac_compile) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; then
14035 # Parse the compiler output and extract the necessary
14036 # objects, libraries and library flags.
14037
14038 # Sentinel used to keep track of whether or not we are before
14039 # the conftest object file.
14040 pre_test_object_deps_done=no
14041
14042 for p in `eval "$output_verbose_link_cmd"`; do
14043 case ${prev}${p} in
14044
14045 -L* | -R* | -l*)
14046 # Some compilers place space between "-{L,R}" and the path.
14047 # Remove the space.
14048 if test $p = "-L" ||
14049 test $p = "-R"; then
14050 prev=$p
14051 continue
14052 fi
14053
14054 # Expand the sysroot to ease extracting the directories later.
14055 if test -z "$prev"; then
14056 case $p in
14057 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14058 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14059 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14060 esac
14061 fi
14062 case $p in
14063 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14064 esac
14065 if test "$pre_test_object_deps_done" = no; then
14066 case ${prev} in
14067 -L | -R)
14068 # Internal compiler library paths should come after those
14069 # provided the user. The postdeps already come after the
14070 # user supplied libs so there is no need to process them.
14071 if test -z "$compiler_lib_search_path_CXX"; then
14072 compiler_lib_search_path_CXX="${prev}${p}"
14073 else
14074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14075 fi
14076 ;;
14077 # The "-l" case would never come before the object being
14078 # linked, so don't bother handling this case.
14079 esac
14080 else
14081 if test -z "$postdeps_CXX"; then
14082 postdeps_CXX="${prev}${p}"
14083 else
14084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14085 fi
14086 fi
14087 prev=
14088 ;;
14089
14090 *.lto.$objext) ;; # Ignore GCC LTO objects
14091 *.$objext)
14092 # This assumes that the test object file only shows up
14093 # once in the compiler output.
14094 if test "$p" = "conftest.$objext"; then
14095 pre_test_object_deps_done=yes
14096 continue
14097 fi
14098
14099 if test "$pre_test_object_deps_done" = no; then
14100 if test -z "$predep_objects_CXX"; then
14101 predep_objects_CXX="$p"
14102 else
14103 predep_objects_CXX="$predep_objects_CXX $p"
14104 fi
14105 else
14106 if test -z "$postdep_objects_CXX"; then
14107 postdep_objects_CXX="$p"
14108 else
14109 postdep_objects_CXX="$postdep_objects_CXX $p"
14110 fi
14111 fi
14112 ;;
14113
14114 *) ;; # Ignore the rest.
14115
14116 esac
14117 done
14118
14119 # Clean up.
14120 rm -f a.out a.exe
14121 else
14122 echo "libtool.m4: error: problem compiling CXX test program"
14123 fi
14124
14125 $RM -f confest.$objext
14126 CFLAGS=$_lt_libdeps_save_CFLAGS
14127
14128 # PORTME: override above test on systems where it is broken
14129 case $host_os in
14130 interix[3-9]*)
14131 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14132 # hack all around it, let's just trust "g++" to DTRT.
14133 predep_objects_CXX=
14134 postdep_objects_CXX=
14135 postdeps_CXX=
14136 ;;
14137
14138 linux*)
14139 case `$CC -V 2>&1 | sed 5q` in
14140 *Sun\ C*)
14141 # Sun C++ 5.9
14142
14143 # The more standards-conforming stlport4 library is
14144 # incompatible with the Cstd library. Avoid specifying
14145 # it if it's in CXXFLAGS. Ignore libCrun as
14146 # -library=stlport4 depends on it.
14147 case " $CXX $CXXFLAGS " in
14148 *" -library=stlport4 "*)
14149 solaris_use_stlport4=yes
14150 ;;
14151 esac
14152
14153 if test "$solaris_use_stlport4" != yes; then
14154 postdeps_CXX='-library=Cstd -library=Crun'
14155 fi
14156 ;;
14157 esac
14158 ;;
14159
14160 solaris*)
14161 case $cc_basename in
14162 CC* | sunCC*)
14163 # The more standards-conforming stlport4 library is
14164 # incompatible with the Cstd library. Avoid specifying
14165 # it if it's in CXXFLAGS. Ignore libCrun as
14166 # -library=stlport4 depends on it.
14167 case " $CXX $CXXFLAGS " in
14168 *" -library=stlport4 "*)
14169 solaris_use_stlport4=yes
14170 ;;
14171 esac
14172
14173 # Adding this requires a known-good setup of shared libraries for
14174 # Sun compiler versions before 5.6, else PIC objects from an old
14175 # archive will be linked into the output, leading to subtle bugs.
14176 if test "$solaris_use_stlport4" != yes; then
14177 postdeps_CXX='-library=Cstd -library=Crun'
14178 fi
14179 ;;
14180 esac
14181 ;;
14182 esac
14183
14184
14185 case " $postdeps_CXX " in
14186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14187 esac
14188 compiler_lib_search_dirs_CXX=
14189 if test -n "${compiler_lib_search_path_CXX}"; then
14190 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14191 fi
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223 lt_prog_compiler_wl_CXX=
14224 lt_prog_compiler_pic_CXX=
14225 lt_prog_compiler_static_CXX=
14226
14227
14228 # C++ specific cases for pic, static, wl, etc.
14229 if test "$GXX" = yes; then
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='-static'
14232
14233 case $host_os in
14234 aix*)
14235 # All AIX code is PIC.
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_CXX='-Bstatic'
14239 fi
14240 ;;
14241
14242 amigaos*)
14243 case $host_cpu in
14244 powerpc)
14245 # see comment about AmigaOS4 .so support
14246 lt_prog_compiler_pic_CXX='-fPIC'
14247 ;;
14248 m68k)
14249 # FIXME: we need at least 68020 code to build shared libraries, but
14250 # adding the `-m68020' flag to GCC prevents building anything better,
14251 # like `-m68040'.
14252 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14253 ;;
14254 esac
14255 ;;
14256
14257 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14258 # PIC is the default for these OSes.
14259 ;;
14260 mingw* | cygwin* | os2* | pw32* | cegcc*)
14261 # This hack is so that the source file can tell whether it is being
14262 # built for inclusion in a dll (and should export symbols for example).
14263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14264 # (--disable-auto-import) libraries
14265 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14266 ;;
14267 darwin* | rhapsody*)
14268 # PIC is the default on this platform
14269 # Common symbols not allowed in MH_DYLIB files
14270 lt_prog_compiler_pic_CXX='-fno-common'
14271 ;;
14272 *djgpp*)
14273 # DJGPP does not support shared libraries at all
14274 lt_prog_compiler_pic_CXX=
14275 ;;
14276 haiku*)
14277 # PIC is the default for Haiku.
14278 # The "-static" flag exists, but is broken.
14279 lt_prog_compiler_static_CXX=
14280 ;;
14281 interix[3-9]*)
14282 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14283 # Instead, we relocate shared libraries at runtime.
14284 ;;
14285 sysv4*MP*)
14286 if test -d /usr/nec; then
14287 lt_prog_compiler_pic_CXX=-Kconform_pic
14288 fi
14289 ;;
14290 hpux*)
14291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14293 # sets the default TLS model and affects inlining.
14294 case $host_cpu in
14295 hppa*64*)
14296 ;;
14297 *)
14298 lt_prog_compiler_pic_CXX='-fPIC'
14299 ;;
14300 esac
14301 ;;
14302 *qnx* | *nto*)
14303 # QNX uses GNU C++, but need to define -shared option too, otherwise
14304 # it will coredump.
14305 lt_prog_compiler_pic_CXX='-fPIC -shared'
14306 ;;
14307 *)
14308 lt_prog_compiler_pic_CXX='-fPIC'
14309 ;;
14310 esac
14311 else
14312 case $host_os in
14313 aix[4-9]*)
14314 # All AIX code is PIC.
14315 if test "$host_cpu" = ia64; then
14316 # AIX 5 now supports IA64 processor
14317 lt_prog_compiler_static_CXX='-Bstatic'
14318 else
14319 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14320 fi
14321 ;;
14322 chorus*)
14323 case $cc_basename in
14324 cxch68*)
14325 # Green Hills C++ Compiler
14326 # _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"
14327 ;;
14328 esac
14329 ;;
14330 mingw* | cygwin* | os2* | pw32* | cegcc*)
14331 # This hack is so that the source file can tell whether it is being
14332 # built for inclusion in a dll (and should export symbols for example).
14333 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14334 ;;
14335 dgux*)
14336 case $cc_basename in
14337 ec++*)
14338 lt_prog_compiler_pic_CXX='-KPIC'
14339 ;;
14340 ghcx*)
14341 # Green Hills C++ Compiler
14342 lt_prog_compiler_pic_CXX='-pic'
14343 ;;
14344 *)
14345 ;;
14346 esac
14347 ;;
14348 freebsd* | dragonfly*)
14349 # FreeBSD uses GNU C++
14350 ;;
14351 hpux9* | hpux10* | hpux11*)
14352 case $cc_basename in
14353 CC*)
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14356 if test "$host_cpu" != ia64; then
14357 lt_prog_compiler_pic_CXX='+Z'
14358 fi
14359 ;;
14360 aCC*)
14361 lt_prog_compiler_wl_CXX='-Wl,'
14362 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14363 case $host_cpu in
14364 hppa*64*|ia64*)
14365 # +Z the default
14366 ;;
14367 *)
14368 lt_prog_compiler_pic_CXX='+Z'
14369 ;;
14370 esac
14371 ;;
14372 *)
14373 ;;
14374 esac
14375 ;;
14376 interix*)
14377 # This is c89, which is MS Visual C++ (no shared libs)
14378 # Anyone wants to do a port?
14379 ;;
14380 irix5* | irix6* | nonstopux*)
14381 case $cc_basename in
14382 CC*)
14383 lt_prog_compiler_wl_CXX='-Wl,'
14384 lt_prog_compiler_static_CXX='-non_shared'
14385 # CC pic flag -KPIC is the default.
14386 ;;
14387 *)
14388 ;;
14389 esac
14390 ;;
14391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14392 case $cc_basename in
14393 KCC*)
14394 # KAI C++ Compiler
14395 lt_prog_compiler_wl_CXX='--backend -Wl,'
14396 lt_prog_compiler_pic_CXX='-fPIC'
14397 ;;
14398 ecpc* )
14399 # old Intel C++ for x86_64 which still supported -KPIC.
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_pic_CXX='-KPIC'
14402 lt_prog_compiler_static_CXX='-static'
14403 ;;
14404 icpc* )
14405 # Intel C++, used to be incompatible with GCC.
14406 # ICC 10 doesn't accept -KPIC any more.
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-fPIC'
14409 lt_prog_compiler_static_CXX='-static'
14410 ;;
14411 pgCC* | pgcpp*)
14412 # Portland Group C++ compiler
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-fpic'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14416 ;;
14417 cxx*)
14418 # Compaq C++
14419 # Make sure the PIC flag is empty. It appears that all Alpha
14420 # Linux and Compaq Tru64 Unix objects are PIC.
14421 lt_prog_compiler_pic_CXX=
14422 lt_prog_compiler_static_CXX='-non_shared'
14423 ;;
14424 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14425 # IBM XL 8.0, 9.0 on PPC and BlueGene
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 lt_prog_compiler_pic_CXX='-qpic'
14428 lt_prog_compiler_static_CXX='-qstaticlink'
14429 ;;
14430 *)
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*)
14433 # Sun C++ 5.9
14434 lt_prog_compiler_pic_CXX='-KPIC'
14435 lt_prog_compiler_static_CXX='-Bstatic'
14436 lt_prog_compiler_wl_CXX='-Qoption ld '
14437 ;;
14438 esac
14439 ;;
14440 esac
14441 ;;
14442 lynxos*)
14443 ;;
14444 m88k*)
14445 ;;
14446 mvs*)
14447 case $cc_basename in
14448 cxx*)
14449 lt_prog_compiler_pic_CXX='-W c,exportall'
14450 ;;
14451 *)
14452 ;;
14453 esac
14454 ;;
14455 netbsd*)
14456 ;;
14457 *qnx* | *nto*)
14458 # QNX uses GNU C++, but need to define -shared option too, otherwise
14459 # it will coredump.
14460 lt_prog_compiler_pic_CXX='-fPIC -shared'
14461 ;;
14462 osf3* | osf4* | osf5*)
14463 case $cc_basename in
14464 KCC*)
14465 lt_prog_compiler_wl_CXX='--backend -Wl,'
14466 ;;
14467 RCC*)
14468 # Rational C++ 2.4.1
14469 lt_prog_compiler_pic_CXX='-pic'
14470 ;;
14471 cxx*)
14472 # Digital/Compaq C++
14473 lt_prog_compiler_wl_CXX='-Wl,'
14474 # Make sure the PIC flag is empty. It appears that all Alpha
14475 # Linux and Compaq Tru64 Unix objects are PIC.
14476 lt_prog_compiler_pic_CXX=
14477 lt_prog_compiler_static_CXX='-non_shared'
14478 ;;
14479 *)
14480 ;;
14481 esac
14482 ;;
14483 psos*)
14484 ;;
14485 solaris*)
14486 case $cc_basename in
14487 CC* | sunCC*)
14488 # Sun C++ 4.2, 5.x and Centerline C++
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14491 lt_prog_compiler_wl_CXX='-Qoption ld '
14492 ;;
14493 gcx*)
14494 # Green Hills C++ Compiler
14495 lt_prog_compiler_pic_CXX='-PIC'
14496 ;;
14497 *)
14498 ;;
14499 esac
14500 ;;
14501 sunos4*)
14502 case $cc_basename in
14503 CC*)
14504 # Sun C++ 4.x
14505 lt_prog_compiler_pic_CXX='-pic'
14506 lt_prog_compiler_static_CXX='-Bstatic'
14507 ;;
14508 lcc*)
14509 # Lucid
14510 lt_prog_compiler_pic_CXX='-pic'
14511 ;;
14512 *)
14513 ;;
14514 esac
14515 ;;
14516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_pic_CXX='-KPIC'
14521 lt_prog_compiler_static_CXX='-Bstatic'
14522 ;;
14523 esac
14524 ;;
14525 tandem*)
14526 case $cc_basename in
14527 NCC*)
14528 # NonStop-UX NCC 3.20
14529 lt_prog_compiler_pic_CXX='-KPIC'
14530 ;;
14531 *)
14532 ;;
14533 esac
14534 ;;
14535 vxworks*)
14536 ;;
14537 *)
14538 lt_prog_compiler_can_build_shared_CXX=no
14539 ;;
14540 esac
14541 fi
14542
14543 case $host_os in
14544 # For platforms which do not support PIC, -DPIC is meaningless:
14545 *djgpp*)
14546 lt_prog_compiler_pic_CXX=
14547 ;;
14548 *)
14549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14550 ;;
14551 esac
14552
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14554 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14555 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14561 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14562 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14563
14564 #
14565 # Check to make sure the PIC flag actually works.
14566 #
14567 if test -n "$lt_prog_compiler_pic_CXX"; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14569 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14570 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 lt_cv_prog_compiler_pic_works_CXX=no
14574 ac_outfile=conftest.$ac_objext
14575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14576 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14577 # Insert the option either (1) after the last *FLAGS variable, or
14578 # (2) before a word containing "conftest.", or (3) at the end.
14579 # Note that $ac_compile itself does not contain backslashes and begins
14580 # with a dollar sign (not a hyphen), so the echo should work correctly.
14581 # The option is referenced via a variable to avoid confusing sed.
14582 lt_compile=`echo "$ac_compile" | $SED \
14583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14585 -e 's:$: $lt_compiler_flag:'`
14586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14587 (eval "$lt_compile" 2>conftest.err)
14588 ac_status=$?
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 if (exit $ac_status) && test -s "$ac_outfile"; then
14592 # The compiler can only warn and ignore the option if not recognized
14593 # So say no if there are warnings other than the usual output.
14594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14596 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14597 lt_cv_prog_compiler_pic_works_CXX=yes
14598 fi
14599 fi
14600 $RM -r conftest*
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14604 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14605
14606 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14607 case $lt_prog_compiler_pic_CXX in
14608 "" | " "*) ;;
14609 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14610 esac
14611 else
14612 lt_prog_compiler_pic_CXX=
14613 lt_prog_compiler_can_build_shared_CXX=no
14614 fi
14615
14616 fi
14617
14618
14619
14620
14621
14622 #
14623 # Check to make sure the static flag actually works.
14624 #
14625 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14628 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 lt_cv_prog_compiler_static_works_CXX=no
14632 save_LDFLAGS="$LDFLAGS"
14633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14636 # The linker can only warn and ignore the option if not recognized
14637 # So say no if there are warnings
14638 if test -s conftest.err; then
14639 # Append any errors to the config.log.
14640 cat conftest.err 1>&5
14641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14643 if diff conftest.exp conftest.er2 >/dev/null; then
14644 lt_cv_prog_compiler_static_works_CXX=yes
14645 fi
14646 else
14647 lt_cv_prog_compiler_static_works_CXX=yes
14648 fi
14649 fi
14650 $RM -r conftest*
14651 LDFLAGS="$save_LDFLAGS"
14652
14653 fi
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14655 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14656
14657 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14658 :
14659 else
14660 lt_prog_compiler_static_CXX=
14661 fi
14662
14663
14664
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14667 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14668 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 lt_cv_prog_compiler_c_o_CXX=no
14672 $RM -r conftest 2>/dev/null
14673 mkdir conftest
14674 cd conftest
14675 mkdir out
14676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14677
14678 lt_compiler_flag="-o out/conftest2.$ac_objext"
14679 # Insert the option either (1) after the last *FLAGS variable, or
14680 # (2) before a word containing "conftest.", or (3) at the end.
14681 # Note that $ac_compile itself does not contain backslashes and begins
14682 # with a dollar sign (not a hyphen), so the echo should work correctly.
14683 lt_compile=`echo "$ac_compile" | $SED \
14684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14686 -e 's:$: $lt_compiler_flag:'`
14687 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14688 (eval "$lt_compile" 2>out/conftest.err)
14689 ac_status=$?
14690 cat out/conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14693 then
14694 # The compiler can only warn and ignore the option if not recognized
14695 # So say no if there are warnings
14696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14699 lt_cv_prog_compiler_c_o_CXX=yes
14700 fi
14701 fi
14702 chmod u+w . 2>&5
14703 $RM -r conftest*
14704 # SGI C++ compiler will create directory out/ii_files/ for
14705 # template instantiation
14706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14707 $RM out/* && rmdir out
14708 cd ..
14709 $RM -r conftest
14710 $RM -r conftest*
14711
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14714 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14715
14716
14717
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14720 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 lt_cv_prog_compiler_c_o_CXX=no
14724 $RM -r conftest 2>/dev/null
14725 mkdir conftest
14726 cd conftest
14727 mkdir out
14728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14729
14730 lt_compiler_flag="-o out/conftest2.$ac_objext"
14731 # Insert the option either (1) after the last *FLAGS variable, or
14732 # (2) before a word containing "conftest.", or (3) at the end.
14733 # Note that $ac_compile itself does not contain backslashes and begins
14734 # with a dollar sign (not a hyphen), so the echo should work correctly.
14735 lt_compile=`echo "$ac_compile" | $SED \
14736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14738 -e 's:$: $lt_compiler_flag:'`
14739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14740 (eval "$lt_compile" 2>out/conftest.err)
14741 ac_status=$?
14742 cat out/conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14745 then
14746 # The compiler can only warn and ignore the option if not recognized
14747 # So say no if there are warnings
14748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14751 lt_cv_prog_compiler_c_o_CXX=yes
14752 fi
14753 fi
14754 chmod u+w . 2>&5
14755 $RM -r conftest*
14756 # SGI C++ compiler will create directory out/ii_files/ for
14757 # template instantiation
14758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14759 $RM out/* && rmdir out
14760 cd ..
14761 $RM -r conftest
14762 $RM -r conftest*
14763
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14766 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14767
14768
14769
14770
14771 hard_links="nottested"
14772 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14773 # do not overwrite the value of need_locks provided by the user
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14775 $as_echo_n "checking if we can lock with hard links... " >&6; }
14776 hard_links=yes
14777 $RM -r conftest*
14778 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14779 touch conftest.a
14780 ln conftest.a conftest.b 2>&5 || hard_links=no
14781 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14783 $as_echo "$hard_links" >&6; }
14784 if test "$hard_links" = no; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14786 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14787 need_locks=warn
14788 fi
14789 else
14790 need_locks=no
14791 fi
14792
14793
14794
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14796 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14797
14798 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14799 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14800 case $host_os in
14801 aix[4-9]*)
14802 # If we're using GNU nm, then we don't want the "-C" option.
14803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14804 # Also, AIX nm treats weak defined symbols like other global defined
14805 # symbols, whereas GNU nm marks them as "W".
14806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14807 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'
14808 else
14809 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'
14810 fi
14811 ;;
14812 pw32*)
14813 export_symbols_cmds_CXX="$ltdll_cmds"
14814 ;;
14815 cygwin* | mingw* | cegcc*)
14816 case $cc_basename in
14817 cl*)
14818 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14819 ;;
14820 *)
14821 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'
14822 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14823 ;;
14824 esac
14825 ;;
14826 *)
14827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14828 ;;
14829 esac
14830
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14832 $as_echo "$ld_shlibs_CXX" >&6; }
14833 test "$ld_shlibs_CXX" = no && can_build_shared=no
14834
14835 with_gnu_ld_CXX=$with_gnu_ld
14836
14837
14838
14839
14840
14841
14842 #
14843 # Do we need to explicitly link libc?
14844 #
14845 case "x$archive_cmds_need_lc_CXX" in
14846 x|xyes)
14847 # Assume -lc should be added
14848 archive_cmds_need_lc_CXX=yes
14849
14850 if test "$enable_shared" = yes && test "$GCC" = yes; then
14851 case $archive_cmds_CXX in
14852 *'~'*)
14853 # FIXME: we may have to deal with multi-command sequences.
14854 ;;
14855 '$CC '*)
14856 # Test whether the compiler implicitly links with -lc since on some
14857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14858 # to ld, don't add -lc before -lgcc.
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14861 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 $RM -r conftest*
14865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14866
14867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14868 (eval $ac_compile) 2>&5
14869 ac_status=$?
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; } 2>conftest.err; then
14872 soname=conftest
14873 lib=conftest
14874 libobjs=conftest.$ac_objext
14875 deplibs=
14876 wl=$lt_prog_compiler_wl_CXX
14877 pic_flag=$lt_prog_compiler_pic_CXX
14878 compiler_flags=-v
14879 linker_flags=-v
14880 verstring=
14881 output_objdir=.
14882 libname=conftest
14883 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14884 allow_undefined_flag_CXX=
14885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14886 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14887 ac_status=$?
14888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14889 test $ac_status = 0; }
14890 then
14891 lt_cv_archive_cmds_need_lc_CXX=no
14892 else
14893 lt_cv_archive_cmds_need_lc_CXX=yes
14894 fi
14895 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14896 else
14897 cat conftest.err 1>&5
14898 fi
14899 $RM -r conftest*
14900
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14903 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14904 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14905 ;;
14906 esac
14907 fi
14908 ;;
14909 esac
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14974
14975 library_names_spec=
14976 libname_spec='lib$name'
14977 soname_spec=
14978 shrext_cmds=".so"
14979 postinstall_cmds=
14980 postuninstall_cmds=
14981 finish_cmds=
14982 finish_eval=
14983 shlibpath_var=
14984 shlibpath_overrides_runpath=unknown
14985 version_type=none
14986 dynamic_linker="$host_os ld.so"
14987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14988 need_lib_prefix=unknown
14989 hardcode_into_libs=no
14990
14991 # when you set need_version to no, make sure it does not cause -set_version
14992 # flags to be left without arguments
14993 need_version=unknown
14994
14995 case $host_os in
14996 aix3*)
14997 version_type=linux # correct to gnu/linux during the next big refactor
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14999 shlibpath_var=LIBPATH
15000
15001 # AIX 3 has no versioning support, so we append a major version to the name.
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 ;;
15004
15005 aix[4-9]*)
15006 version_type=linux # correct to gnu/linux during the next big refactor
15007 need_lib_prefix=no
15008 need_version=no
15009 hardcode_into_libs=yes
15010 if test "$host_cpu" = ia64; then
15011 # AIX 5 supports IA64
15012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 else
15015 # With GCC up to 2.95.x, collect2 would create an import file
15016 # for dependence libraries. The import file would start with
15017 # the line `#! .'. This would cause the generated library to
15018 # depend on `.', always an invalid library. This was fixed in
15019 # development snapshots of GCC prior to 3.0.
15020 case $host_os in
15021 aix4 | aix4.[01] | aix4.[01].*)
15022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15023 echo ' yes '
15024 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15025 :
15026 else
15027 can_build_shared=no
15028 fi
15029 ;;
15030 esac
15031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15032 # soname into executable. Probably we can add versioning support to
15033 # collect2, so additional links can be useful in future.
15034 if test "$aix_use_runtimelinking" = yes; then
15035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15036 # instead of lib<name>.a to let people know that these are not
15037 # typical AIX shared libraries.
15038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 else
15040 # We preserve .a as extension for shared libraries through AIX4.2
15041 # and later when we are not doing run time linking.
15042 library_names_spec='${libname}${release}.a $libname.a'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 fi
15045 shlibpath_var=LIBPATH
15046 fi
15047 ;;
15048
15049 amigaos*)
15050 case $host_cpu in
15051 powerpc)
15052 # Since July 2007 AmigaOS4 officially supports .so libraries.
15053 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 ;;
15056 m68k)
15057 library_names_spec='$libname.ixlibrary $libname.a'
15058 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15059 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'
15060 ;;
15061 esac
15062 ;;
15063
15064 beos*)
15065 library_names_spec='${libname}${shared_ext}'
15066 dynamic_linker="$host_os ld.so"
15067 shlibpath_var=LIBRARY_PATH
15068 ;;
15069
15070 bsdi[45]*)
15071 version_type=linux # correct to gnu/linux during the next big refactor
15072 need_version=no
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15078 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15079 # the default ld.so.conf also contains /usr/contrib/lib and
15080 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15081 # libtool to hard-code these into programs
15082 ;;
15083
15084 cygwin* | mingw* | pw32* | cegcc*)
15085 version_type=windows
15086 shrext_cmds=".dll"
15087 need_version=no
15088 need_lib_prefix=no
15089
15090 case $GCC,$cc_basename in
15091 yes,*)
15092 # gcc
15093 library_names_spec='$libname.dll.a'
15094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15095 postinstall_cmds='base_file=`basename \${file}`~
15096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15097 dldir=$destdir/`dirname \$dlpath`~
15098 test -d \$dldir || mkdir -p \$dldir~
15099 $install_prog $dir/$dlname \$dldir/$dlname~
15100 chmod a+x \$dldir/$dlname~
15101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15103 fi'
15104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15105 dlpath=$dir/\$dldll~
15106 $RM \$dlpath'
15107 shlibpath_overrides_runpath=yes
15108
15109 case $host_os in
15110 cygwin*)
15111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15113
15114 ;;
15115 mingw* | cegcc*)
15116 # MinGW DLLs use traditional 'lib' prefix
15117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 ;;
15119 pw32*)
15120 # pw32 DLLs use 'pw' prefix rather than 'lib'
15121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15122 ;;
15123 esac
15124 dynamic_linker='Win32 ld.exe'
15125 ;;
15126
15127 *,cl*)
15128 # Native MSVC
15129 libname_spec='$name'
15130 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15131 library_names_spec='${libname}.dll.lib'
15132
15133 case $build_os in
15134 mingw*)
15135 sys_lib_search_path_spec=
15136 lt_save_ifs=$IFS
15137 IFS=';'
15138 for lt_path in $LIB
15139 do
15140 IFS=$lt_save_ifs
15141 # Let DOS variable expansion print the short 8.3 style file name.
15142 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15143 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15144 done
15145 IFS=$lt_save_ifs
15146 # Convert to MSYS style.
15147 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15148 ;;
15149 cygwin*)
15150 # Convert to unix form, then to dos form, then back to unix form
15151 # but this time dos style (no spaces!) so that the unix form looks
15152 # like /cygdrive/c/PROGRA~1:/cygdr...
15153 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15154 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15155 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15156 ;;
15157 *)
15158 sys_lib_search_path_spec="$LIB"
15159 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15160 # It is most probably a Windows format PATH.
15161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15162 else
15163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15164 fi
15165 # FIXME: find the short name or the path components, as spaces are
15166 # common. (e.g. "Program Files" -> "PROGRA~1")
15167 ;;
15168 esac
15169
15170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15171 postinstall_cmds='base_file=`basename \${file}`~
15172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15173 dldir=$destdir/`dirname \$dlpath`~
15174 test -d \$dldir || mkdir -p \$dldir~
15175 $install_prog $dir/$dlname \$dldir/$dlname'
15176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15177 dlpath=$dir/\$dldll~
15178 $RM \$dlpath'
15179 shlibpath_overrides_runpath=yes
15180 dynamic_linker='Win32 link.exe'
15181 ;;
15182
15183 *)
15184 # Assume MSVC wrapper
15185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15186 dynamic_linker='Win32 ld.exe'
15187 ;;
15188 esac
15189 # FIXME: first we should search . and the directory the executable is in
15190 shlibpath_var=PATH
15191 ;;
15192
15193 darwin* | rhapsody*)
15194 dynamic_linker="$host_os dyld"
15195 version_type=darwin
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15199 soname_spec='${libname}${release}${major}$shared_ext'
15200 shlibpath_overrides_runpath=yes
15201 shlibpath_var=DYLD_LIBRARY_PATH
15202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15203
15204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15205 ;;
15206
15207 dgux*)
15208 version_type=linux # correct to gnu/linux during the next big refactor
15209 need_lib_prefix=no
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 ;;
15215
15216 freebsd* | dragonfly*)
15217 # DragonFly does not have aout. When/if they implement a new
15218 # versioning mechanism, adjust this.
15219 if test -x /usr/bin/objformat; then
15220 objformat=`/usr/bin/objformat`
15221 else
15222 case $host_os in
15223 freebsd[23].*) objformat=aout ;;
15224 *) objformat=elf ;;
15225 esac
15226 fi
15227 version_type=freebsd-$objformat
15228 case $version_type in
15229 freebsd-elf*)
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15231 need_version=no
15232 need_lib_prefix=no
15233 ;;
15234 freebsd-*)
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15236 need_version=yes
15237 ;;
15238 esac
15239 shlibpath_var=LD_LIBRARY_PATH
15240 case $host_os in
15241 freebsd2.*)
15242 shlibpath_overrides_runpath=yes
15243 ;;
15244 freebsd3.[01]* | freebsdelf3.[01]*)
15245 shlibpath_overrides_runpath=yes
15246 hardcode_into_libs=yes
15247 ;;
15248 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15249 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15250 shlibpath_overrides_runpath=no
15251 hardcode_into_libs=yes
15252 ;;
15253 *) # from 4.6 on, and DragonFly
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257 esac
15258 ;;
15259
15260 gnu*)
15261 version_type=linux # correct to gnu/linux during the next big refactor
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=no
15268 hardcode_into_libs=yes
15269 ;;
15270
15271 haiku*)
15272 version_type=linux # correct to gnu/linux during the next big refactor
15273 need_lib_prefix=no
15274 need_version=no
15275 dynamic_linker="$host_os runtime_loader"
15276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15277 soname_spec='${libname}${release}${shared_ext}$major'
15278 shlibpath_var=LIBRARY_PATH
15279 shlibpath_overrides_runpath=yes
15280 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15281 hardcode_into_libs=yes
15282 ;;
15283
15284 hpux9* | hpux10* | hpux11*)
15285 # Give a soname corresponding to the major version so that dld.sl refuses to
15286 # link against other versions.
15287 version_type=sunos
15288 need_lib_prefix=no
15289 need_version=no
15290 case $host_cpu in
15291 ia64*)
15292 shrext_cmds='.so'
15293 hardcode_into_libs=yes
15294 dynamic_linker="$host_os dld.so"
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 if test "X$HPUX_IA64_MODE" = X32; then
15300 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15301 else
15302 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15303 fi
15304 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15305 ;;
15306 hppa*64*)
15307 shrext_cmds='.sl'
15308 hardcode_into_libs=yes
15309 dynamic_linker="$host_os dld.sl"
15310 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15315 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15316 ;;
15317 *)
15318 shrext_cmds='.sl'
15319 dynamic_linker="$host_os dld.sl"
15320 shlibpath_var=SHLIB_PATH
15321 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 ;;
15325 esac
15326 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15327 postinstall_cmds='chmod 555 $lib'
15328 # or fails outright, so override atomically:
15329 install_override_mode=555
15330 ;;
15331
15332 interix[3-9]*)
15333 version_type=linux # correct to gnu/linux during the next big refactor
15334 need_lib_prefix=no
15335 need_version=no
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15337 soname_spec='${libname}${release}${shared_ext}$major'
15338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15339 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=no
15341 hardcode_into_libs=yes
15342 ;;
15343
15344 irix5* | irix6* | nonstopux*)
15345 case $host_os in
15346 nonstopux*) version_type=nonstopux ;;
15347 *)
15348 if test "$lt_cv_prog_gnu_ld" = yes; then
15349 version_type=linux # correct to gnu/linux during the next big refactor
15350 else
15351 version_type=irix
15352 fi ;;
15353 esac
15354 need_lib_prefix=no
15355 need_version=no
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15358 case $host_os in
15359 irix5* | nonstopux*)
15360 libsuff= shlibsuff=
15361 ;;
15362 *)
15363 case $LD in # libtool.m4 will add one of these switches to LD
15364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15365 libsuff= shlibsuff= libmagic=32-bit;;
15366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15367 libsuff=32 shlibsuff=N32 libmagic=N32;;
15368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15370 *) libsuff= shlibsuff= libmagic=never-match;;
15371 esac
15372 ;;
15373 esac
15374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15375 shlibpath_overrides_runpath=no
15376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15378 hardcode_into_libs=yes
15379 ;;
15380
15381 # No shared lib support for Linux oldld, aout, or coff.
15382 linux*oldld* | linux*aout* | linux*coff*)
15383 dynamic_linker=no
15384 ;;
15385
15386 # This must be glibc/ELF.
15387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15388 version_type=linux # correct to gnu/linux during the next big refactor
15389 need_lib_prefix=no
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 shlibpath_overrides_runpath=no
15396
15397 # Some binutils ld are patched to set DT_RUNPATH
15398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15399 $as_echo_n "(cached) " >&6
15400 else
15401 lt_cv_shlibpath_overrides_runpath=no
15402 save_LDFLAGS=$LDFLAGS
15403 save_libdir=$libdir
15404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408
15409 int
15410 main ()
15411 {
15412
15413 ;
15414 return 0;
15415 }
15416 _ACEOF
15417 if ac_fn_cxx_try_link "$LINENO"; then :
15418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15419 lt_cv_shlibpath_overrides_runpath=yes
15420 fi
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LDFLAGS=$save_LDFLAGS
15425 libdir=$save_libdir
15426
15427 fi
15428
15429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15430
15431 # This implies no fast_install, which is unacceptable.
15432 # Some rework will be needed to allow for fast_install
15433 # before this can be enabled.
15434 hardcode_into_libs=yes
15435
15436 # Append ld.so.conf contents to the search path
15437 if test -f /etc/ld.so.conf; then
15438 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' ' '`
15439 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15440 fi
15441
15442 # We used to test for /lib/ld.so.1 and disable shared libraries on
15443 # powerpc, because MkLinux only supported shared libraries with the
15444 # GNU dynamic linker. Since this was broken with cross compilers,
15445 # most powerpc-linux boxes support dynamic linking these days and
15446 # people can always --disable-shared, the test was removed, and we
15447 # assume the GNU/Linux dynamic linker is in use.
15448 dynamic_linker='GNU/Linux ld.so'
15449 ;;
15450
15451 netbsd*)
15452 version_type=sunos
15453 need_lib_prefix=no
15454 need_version=no
15455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15458 dynamic_linker='NetBSD (a.out) ld.so'
15459 else
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 dynamic_linker='NetBSD ld.elf_so'
15463 fi
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15466 hardcode_into_libs=yes
15467 ;;
15468
15469 newsos6)
15470 version_type=linux # correct to gnu/linux during the next big refactor
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=yes
15474 ;;
15475
15476 *nto* | *qnx*)
15477 version_type=qnx
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 shlibpath_var=LD_LIBRARY_PATH
15483 shlibpath_overrides_runpath=no
15484 hardcode_into_libs=yes
15485 dynamic_linker='ldqnx.so'
15486 ;;
15487
15488 openbsd*)
15489 version_type=sunos
15490 sys_lib_dlsearch_path_spec="/usr/lib"
15491 need_lib_prefix=no
15492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15493 case $host_os in
15494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15495 *) need_version=no ;;
15496 esac
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15501 case $host_os in
15502 openbsd2.[89] | openbsd2.[89].*)
15503 shlibpath_overrides_runpath=no
15504 ;;
15505 *)
15506 shlibpath_overrides_runpath=yes
15507 ;;
15508 esac
15509 else
15510 shlibpath_overrides_runpath=yes
15511 fi
15512 ;;
15513
15514 os2*)
15515 libname_spec='$name'
15516 shrext_cmds=".dll"
15517 need_lib_prefix=no
15518 library_names_spec='$libname${shared_ext} $libname.a'
15519 dynamic_linker='OS/2 ld.exe'
15520 shlibpath_var=LIBPATH
15521 ;;
15522
15523 osf3* | osf4* | osf5*)
15524 version_type=osf
15525 need_lib_prefix=no
15526 need_version=no
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15532 ;;
15533
15534 rdos*)
15535 dynamic_linker=no
15536 ;;
15537
15538 solaris*)
15539 version_type=linux # correct to gnu/linux during the next big refactor
15540 need_lib_prefix=no
15541 need_version=no
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=yes
15546 hardcode_into_libs=yes
15547 # ldd complains unless libraries are executable
15548 postinstall_cmds='chmod +x $lib'
15549 ;;
15550
15551 sunos4*)
15552 version_type=sunos
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes
15557 if test "$with_gnu_ld" = yes; then
15558 need_lib_prefix=no
15559 fi
15560 need_version=yes
15561 ;;
15562
15563 sysv4 | sysv4.3*)
15564 version_type=linux # correct to gnu/linux during the next big refactor
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 case $host_vendor in
15569 sni)
15570 shlibpath_overrides_runpath=no
15571 need_lib_prefix=no
15572 runpath_var=LD_RUN_PATH
15573 ;;
15574 siemens)
15575 need_lib_prefix=no
15576 ;;
15577 motorola)
15578 need_lib_prefix=no
15579 need_version=no
15580 shlibpath_overrides_runpath=no
15581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15582 ;;
15583 esac
15584 ;;
15585
15586 sysv4*MP*)
15587 if test -d /usr/nec ;then
15588 version_type=linux # correct to gnu/linux during the next big refactor
15589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15590 soname_spec='$libname${shared_ext}.$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 fi
15593 ;;
15594
15595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15596 version_type=freebsd-elf
15597 need_lib_prefix=no
15598 need_version=no
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=yes
15603 hardcode_into_libs=yes
15604 if test "$with_gnu_ld" = yes; then
15605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15606 else
15607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15608 case $host_os in
15609 sco3.2v5*)
15610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15611 ;;
15612 esac
15613 fi
15614 sys_lib_dlsearch_path_spec='/usr/lib'
15615 ;;
15616
15617 tpf*)
15618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15619 version_type=linux # correct to gnu/linux during the next big refactor
15620 need_lib_prefix=no
15621 need_version=no
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15626 ;;
15627
15628 uts4*)
15629 version_type=linux # correct to gnu/linux during the next big refactor
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 ;;
15634
15635 *)
15636 dynamic_linker=no
15637 ;;
15638 esac
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15640 $as_echo "$dynamic_linker" >&6; }
15641 test "$dynamic_linker" = no && can_build_shared=no
15642
15643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15644 if test "$GCC" = yes; then
15645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15646 fi
15647
15648 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15650 fi
15651 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15653 fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15693 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15694 hardcode_action_CXX=
15695 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15696 test -n "$runpath_var_CXX" ||
15697 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15698
15699 # We can hardcode non-existent directories.
15700 if test "$hardcode_direct_CXX" != no &&
15701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15702 # have to relink, otherwise we might link with an installed library
15703 # when we should be linking with a yet-to-be-installed one
15704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15705 test "$hardcode_minus_L_CXX" != no; then
15706 # Linking always hardcodes the temporary library directory.
15707 hardcode_action_CXX=relink
15708 else
15709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15710 hardcode_action_CXX=immediate
15711 fi
15712 else
15713 # We cannot hardcode anything, or else we can only hardcode existing
15714 # directories.
15715 hardcode_action_CXX=unsupported
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15718 $as_echo "$hardcode_action_CXX" >&6; }
15719
15720 if test "$hardcode_action_CXX" = relink ||
15721 test "$inherit_rpath_CXX" = yes; then
15722 # Fast installation is not supported
15723 enable_fast_install=no
15724 elif test "$shlibpath_overrides_runpath" = yes ||
15725 test "$enable_shared" = no; then
15726 # Fast installation is not necessary
15727 enable_fast_install=needless
15728 fi
15729
15730
15731
15732
15733
15734
15735
15736 fi # test -n "$compiler"
15737
15738 CC=$lt_save_CC
15739 CFLAGS=$lt_save_CFLAGS
15740 LDCXX=$LD
15741 LD=$lt_save_LD
15742 GCC=$lt_save_GCC
15743 with_gnu_ld=$lt_save_with_gnu_ld
15744 lt_cv_path_LDCXX=$lt_cv_path_LD
15745 lt_cv_path_LD=$lt_save_path_LD
15746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15748 fi # test "$_lt_caught_CXX_error" != yes
15749
15750 ac_ext=c
15751 ac_cpp='$CPP $CPPFLAGS'
15752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770 ac_config_commands="$ac_config_commands libtool"
15771
15772
15773
15774
15775 # Only expand once:
15776
15777
15778
15779 ac_ext=cpp
15780 ac_cpp='$CXXCPP $CPPFLAGS'
15781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15784
15785
15786
15787
15788
15789
15790
15791
15792 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15793 if test -n "$ac_tool_prefix"; then
15794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15797 $as_echo_n "checking for $ac_word... " >&6; }
15798 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800 else
15801 case $PKG_CONFIG in
15802 [\\/]* | ?:[\\/]*)
15803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15804 ;;
15805 *)
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15808 do
15809 IFS=$as_save_IFS
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15815 break 2
15816 fi
15817 done
15818 done
15819 IFS=$as_save_IFS
15820
15821 ;;
15822 esac
15823 fi
15824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15825 if test -n "$PKG_CONFIG"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15827 $as_echo "$PKG_CONFIG" >&6; }
15828 else
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830 $as_echo "no" >&6; }
15831 fi
15832
15833
15834 fi
15835 if test -z "$ac_cv_path_PKG_CONFIG"; then
15836 ac_pt_PKG_CONFIG=$PKG_CONFIG
15837 # Extract the first word of "pkg-config", so it can be a program name with args.
15838 set dummy pkg-config; ac_word=$2
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15840 $as_echo_n "checking for $ac_word... " >&6; }
15841 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 case $ac_pt_PKG_CONFIG in
15845 [\\/]* | ?:[\\/]*)
15846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15847 ;;
15848 *)
15849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15851 do
15852 IFS=$as_save_IFS
15853 test -z "$as_dir" && as_dir=.
15854 for ac_exec_ext in '' $ac_executable_extensions; do
15855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 break 2
15859 fi
15860 done
15861 done
15862 IFS=$as_save_IFS
15863
15864 ;;
15865 esac
15866 fi
15867 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15868 if test -n "$ac_pt_PKG_CONFIG"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15870 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15871 else
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15873 $as_echo "no" >&6; }
15874 fi
15875
15876 if test "x$ac_pt_PKG_CONFIG" = x; then
15877 PKG_CONFIG=""
15878 else
15879 case $cross_compiling:$ac_tool_warned in
15880 yes:)
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15883 ac_tool_warned=yes ;;
15884 esac
15885 PKG_CONFIG=$ac_pt_PKG_CONFIG
15886 fi
15887 else
15888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15889 fi
15890
15891 fi
15892 if test -n "$PKG_CONFIG"; then
15893 _pkg_min_version=0.22
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15895 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15898 $as_echo "yes" >&6; }
15899 else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15902 PKG_CONFIG=""
15903 fi
15904 fi
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
15907 $as_echo_n "checking for GNU make... " >&6; }
15908 if ${_cv_gnu_make_command+:} false; then :
15909 $as_echo_n "(cached) " >&6
15910 else
15911 _cv_gnu_make_command='' ;
15912 for a in "$MAKE" make gmake gnumake ; do
15913 if test -z "$a" ; then continue ; fi ;
15914 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
15915 _cv_gnu_make_command=$a ;
15916 break;
15917 fi
15918 done ;
15919
15920 fi
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
15922 $as_echo "$_cv_gnu_make_command" >&6; } ;
15923 if test "x$_cv_gnu_make_command" != "x" ; then
15924 ifGNUmake='' ;
15925 else
15926 ifGNUmake='#' ;
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
15928 $as_echo "\"Not found\"" >&6; };
15929 fi
15930
15931
15932 GMAKE=$_cv_gnu_make_command
15933
15934 if test "x$GMAKE" = x; then :
15935 as_fn_error $? "You need GNU make" "$LINENO" 5
15936 fi
15937
15938 # Extract the first word of "bash", so it can be a program name with args.
15939 set dummy bash; ac_word=$2
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941 $as_echo_n "checking for $ac_word... " >&6; }
15942 if ${ac_cv_path__BASH+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 case $_BASH in
15946 [\\/]* | ?:[\\/]*)
15947 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15948 ;;
15949 *)
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15952 do
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15960 fi
15961 done
15962 done
15963 IFS=$as_save_IFS
15964
15965 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15966 ;;
15967 esac
15968 fi
15969 _BASH=$ac_cv_path__BASH
15970 if test -n "$_BASH"; then
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15972 $as_echo "$_BASH" >&6; }
15973 else
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15975 $as_echo "no" >&6; }
15976 fi
15977
15978
15979 # Extract the first word of "git", so it can be a program name with args.
15980 set dummy git; ac_word=$2
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15982 $as_echo_n "checking for $ac_word... " >&6; }
15983 if ${ac_cv_path_GIT+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 case $GIT in
15987 [\\/]* | ?:[\\/]*)
15988 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15989 ;;
15990 *)
15991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15992 for as_dir in $PATH
15993 do
15994 IFS=$as_save_IFS
15995 test -z "$as_dir" && as_dir=.
15996 for ac_exec_ext in '' $ac_executable_extensions; do
15997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15998 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16000 break 2
16001 fi
16002 done
16003 done
16004 IFS=$as_save_IFS
16005
16006 ;;
16007 esac
16008 fi
16009 GIT=$ac_cv_path_GIT
16010 if test -n "$GIT"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16012 $as_echo "$GIT" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017
16018
16019 # Extract the first word of "time", so it can be a program name with args.
16020 set dummy time; ac_word=$2
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022 $as_echo_n "checking for $ac_word... " >&6; }
16023 if ${ac_cv_path_TIME+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 case $TIME in
16027 [\\/]* | ?:[\\/]*)
16028 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16029 ;;
16030 *)
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16033 do
16034 IFS=$as_save_IFS
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16040 break 2
16041 fi
16042 done
16043 done
16044 IFS=$as_save_IFS
16045
16046 ;;
16047 esac
16048 fi
16049 TIME=$ac_cv_path_TIME
16050 if test -n "$TIME"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16052 $as_echo "$TIME" >&6; }
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055 $as_echo "no" >&6; }
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16065 $as_echo_n "checking for bison >= 2.3... " >&6; }
16066 if test -z "$BISON"; then
16067 ac_path_BISON_found=false
16068 # Loop through the user's path and test for each of PROGNAME-LIST
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $PATH
16071 do
16072 IFS=$as_save_IFS
16073 test -z "$as_dir" && as_dir=.
16074 for ac_prog in bison; do
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16077 as_fn_executable_p "$ac_path_BISON" || continue
16078 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16079 if ${version:+false} :; then :
16080
16081 else
16082 as_awk_strverscmp='
16083 # Use only awk features that work with 7th edition Unix awk (1978).
16084 # My, what an old awk you have, Mr. Solaris!
16085 END {
16086 while (length(v1) && length(v2)) {
16087 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16088 # Normally this is a single character, but if v1 and v2 contain digits,
16089 # compare them as integers and fractions as strverscmp does.
16090 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16091 # Split v1 and v2 into their leading digit string components d1 and d2,
16092 # and advance v1 and v2 past the leading digit strings.
16093 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16094 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16095 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16096 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16097 if (d1 ~ /^0/) {
16098 if (d2 ~ /^0/) {
16099 # Compare two fractions.
16100 while (d1 ~ /^0/ && d2 ~ /^0/) {
16101 d1 = substr(d1, 2); len1--
16102 d2 = substr(d2, 2); len2--
16103 }
16104 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16105 # The two components differ in length, and the common prefix
16106 # contains only leading zeros. Consider the longer to be less.
16107 d1 = -len1
16108 d2 = -len2
16109 } else {
16110 # Otherwise, compare as strings.
16111 d1 = "x" d1
16112 d2 = "x" d2
16113 }
16114 } else {
16115 # A fraction is less than an integer.
16116 exit 1
16117 }
16118 } else {
16119 if (d2 ~ /^0/) {
16120 # An integer is greater than a fraction.
16121 exit 2
16122 } else {
16123 # Compare two integers.
16124 d1 += 0
16125 d2 += 0
16126 }
16127 }
16128 } else {
16129 # The normal case, without worrying about digits.
16130 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16131 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16132 }
16133 if (d1 < d2) exit 1
16134 if (d1 > d2) exit 2
16135 }
16136 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16137 # which mishandles some comparisons of empty strings to integers.
16138 if (length(v2)) exit 1
16139 if (length(v1)) exit 2
16140 }
16141 '
16142 as_arg_v1=$version
16143 as_arg_v2=2.3
16144 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16145 case $? in #(
16146 1) :
16147 ;; #(
16148 0) :
16149 ac_cv_path_BISON=$ac_path_BISON ;; #(
16150 2) :
16151 ac_cv_path_BISON=$ac_path_BISON ;; #(
16152 *) :
16153 ;;
16154 esac
16155 fi
16156
16157 $ac_path_BISON_found && break 3
16158 done
16159 done
16160 done
16161 IFS=$as_save_IFS
16162 if test -z "$ac_cv_path_BISON"; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164 $as_echo "no" >&6; }
16165 fi
16166 else
16167 ac_cv_path_BISON=$BISON
16168 fi
16169
16170
16171 if true; then :
16172
16173 BISON=$ac_cv_path_BISON
16174
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16176 $as_echo "$BISON" >&6; }
16177
16178 else
16179 if true; then :
16180
16181 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16182
16183 else
16184
16185 BISON=:
16186
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16188 $as_echo "no" >&6; }
16189
16190 fi
16191 fi
16192
16193
16194
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16197 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16198 if test -z "$FLEX"; then
16199 ac_path_FLEX_found=false
16200 # Loop through the user's path and test for each of PROGNAME-LIST
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $PATH
16203 do
16204 IFS=$as_save_IFS
16205 test -z "$as_dir" && as_dir=.
16206 for ac_prog in flex; do
16207 for ac_exec_ext in '' $ac_executable_extensions; do
16208 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16209 as_fn_executable_p "$ac_path_FLEX" || continue
16210 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16211 if ${version:+false} :; then :
16212
16213 else
16214 as_arg_v1=$version
16215 as_arg_v2=2.5.33
16216 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16217 case $? in #(
16218 1) :
16219 ;; #(
16220 0) :
16221 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16222 2) :
16223 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16224 *) :
16225 ;;
16226 esac
16227 fi
16228
16229 $ac_path_FLEX_found && break 3
16230 done
16231 done
16232 done
16233 IFS=$as_save_IFS
16234 if test -z "$ac_cv_path_FLEX"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16236 $as_echo "no" >&6; }
16237 fi
16238 else
16239 ac_cv_path_FLEX=$FLEX
16240 fi
16241
16242
16243 if true; then :
16244
16245 FLEX=$ac_cv_path_FLEX
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16248 $as_echo "$FLEX" >&6; }
16249
16250 else
16251 if true; then :
16252
16253 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16254
16255 else
16256
16257 FLEX=:
16258
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16260 $as_echo "no" >&6; }
16261
16262 fi
16263 fi
16264
16265
16266
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16269 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16270 if test -z "$GPERF"; then
16271 ac_path_GPERF_found=false
16272 # Loop through the user's path and test for each of PROGNAME-LIST
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16275 do
16276 IFS=$as_save_IFS
16277 test -z "$as_dir" && as_dir=.
16278 for ac_prog in gperf; do
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16281 as_fn_executable_p "$ac_path_GPERF" || continue
16282 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16283 if ${version:+false} :; then :
16284
16285 else
16286 as_arg_v1=$version
16287 as_arg_v2=3.0.3
16288 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16289 case $? in #(
16290 1) :
16291 ;; #(
16292 0) :
16293 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16294 2) :
16295 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16296 *) :
16297 ;;
16298 esac
16299 fi
16300
16301 $ac_path_GPERF_found && break 3
16302 done
16303 done
16304 done
16305 IFS=$as_save_IFS
16306 if test -z "$ac_cv_path_GPERF"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16309 fi
16310 else
16311 ac_cv_path_GPERF=$GPERF
16312 fi
16313
16314
16315 if true; then :
16316
16317 GPERF=$ac_cv_path_GPERF
16318
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16320 $as_echo "$GPERF" >&6; }
16321
16322 else
16323 if true; then :
16324
16325 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16326
16327 else
16328
16329 GPERF=:
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332 $as_echo "no" >&6; }
16333
16334 fi
16335 fi
16336
16337
16338
16339
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16341 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16342 if test -z "$GNUTAR"; then
16343 ac_path_GNUTAR_found=false
16344 # Loop through the user's path and test for each of PROGNAME-LIST
16345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $PATH
16347 do
16348 IFS=$as_save_IFS
16349 test -z "$as_dir" && as_dir=.
16350 for ac_prog in tar gtar gnutar; do
16351 for ac_exec_ext in '' $ac_executable_extensions; do
16352 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16353 as_fn_executable_p "$ac_path_GNUTAR" || continue
16354 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16355 if ${version:+false} :; then :
16356
16357 else
16358 as_arg_v1=$version
16359 as_arg_v2=1.19
16360 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16361 case $? in #(
16362 1) :
16363 ;; #(
16364 0) :
16365 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16366 2) :
16367 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16368 *) :
16369 ;;
16370 esac
16371 fi
16372
16373 $ac_path_GNUTAR_found && break 3
16374 done
16375 done
16376 done
16377 IFS=$as_save_IFS
16378 if test -z "$ac_cv_path_GNUTAR"; then
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16381 fi
16382 else
16383 ac_cv_path_GNUTAR=$GNUTAR
16384 fi
16385
16386
16387 if true; then :
16388
16389 GNUTAR=$ac_cv_path_GNUTAR
16390
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16392 $as_echo "$GNUTAR" >&6; }
16393
16394 else
16395 if true; then :
16396
16397 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16398
16399 else
16400
16401 GNUTAR=:
16402
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404 $as_echo "no" >&6; }
16405
16406 fi
16407 fi
16408
16409
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16411 $as_echo_n "checking bison for %code{}... " >&6; }
16412 echo '%code{}%%_:' >conftest.y
16413 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16414
16415 for element in Bison24; do
16416 haveit=
16417 for x in $CY_FILTERS; do
16418
16419 acl_save_prefix="$prefix"
16420 prefix="$acl_final_prefix"
16421 acl_save_exec_prefix="$exec_prefix"
16422 exec_prefix="$acl_final_exec_prefix"
16423 eval x=\"$x\"
16424 exec_prefix="$acl_save_exec_prefix"
16425 prefix="$acl_save_prefix"
16426
16427 if test "X$x" = "X$element"; then
16428 haveit=yes
16429 break
16430 fi
16431 done
16432 if test -z "$haveit"; then
16433 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16434 fi
16435 done
16436
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16438 $as_echo "yes" >&6; }
16439 else
16440
16441 for element in Bison23; do
16442 haveit=
16443 for x in $CY_FILTERS; do
16444
16445 acl_save_prefix="$prefix"
16446 prefix="$acl_final_prefix"
16447 acl_save_exec_prefix="$exec_prefix"
16448 exec_prefix="$acl_final_exec_prefix"
16449 eval x=\"$x\"
16450 exec_prefix="$acl_save_exec_prefix"
16451 prefix="$acl_save_prefix"
16452
16453 if test "X$x" = "X$element"; then
16454 haveit=yes
16455 break
16456 fi
16457 done
16458 if test -z "$haveit"; then
16459 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16460 fi
16461 done
16462
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 $as_echo "no" >&6; }
16465 fi
16466
16467 rm -f conftest.y
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478 if ${CFLAGS+:} false; then :
16479 case " $CFLAGS " in
16480 *" "*)
16481 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16482 (: CFLAGS already contains ) 2>&5
16483 ac_status=$?
16484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16485 test $ac_status = 0; }
16486 ;;
16487 *)
16488 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16489 (: CFLAGS="$CFLAGS ") 2>&5
16490 ac_status=$?
16491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16492 test $ac_status = 0; }
16493 CFLAGS="$CFLAGS "
16494 ;;
16495 esac
16496 else
16497 CFLAGS=""
16498 fi
16499
16500 ac_ext=c
16501 ac_cpp='$CPP $CPPFLAGS'
16502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16505
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16507 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16508 if ${ac_cv_cflags_warn_all+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 ac_cv_cflags_warn_all="no, unknown"
16512 ac_save_CFLAGS="$CFLAGS"
16513 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16514 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517
16518 int
16519 main ()
16520 {
16521
16522 ;
16523 return 0;
16524 }
16525 _ACEOF
16526 if ac_fn_c_try_compile "$LINENO"; then :
16527 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 done
16531 CFLAGS="$ac_save_CFLAGS"
16532
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16535 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16536
16537 case ".$ac_cv_cflags_warn_all" in
16538 .ok|.ok,*) ;;
16539 .|.no|.no,*) ;;
16540 *) if ${CFLAGS+:} false; then :
16541 case " $CFLAGS " in
16542 *" $ac_cv_cflags_warn_all "*)
16543 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16544 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16545 ac_status=$?
16546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16547 test $ac_status = 0; }
16548 ;;
16549 *)
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16551 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16552 ac_status=$?
16553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554 test $ac_status = 0; }
16555 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16556 ;;
16557 esac
16558 else
16559 CFLAGS="$ac_cv_cflags_warn_all"
16560 fi
16561 ;;
16562 esac
16563
16564 ac_ext=cpp
16565 ac_cpp='$CXXCPP $CPPFLAGS'
16566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16569
16570
16571 ac_ext=cpp
16572 ac_cpp='$CXXCPP $CPPFLAGS'
16573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16576
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16578 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16579 if ${ac_cv_cxxflags_warn_all+:} false; then :
16580 $as_echo_n "(cached) " >&6
16581 else
16582 ac_cv_cxxflags_warn_all="no, unknown"
16583 ac_save_CXXFLAGS="$CXXFLAGS"
16584 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
16585 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588
16589 int
16590 main ()
16591 {
16592
16593 ;
16594 return 0;
16595 }
16596 _ACEOF
16597 if ac_fn_cxx_try_compile "$LINENO"; then :
16598 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601 done
16602 CXXFLAGS="$ac_save_CXXFLAGS"
16603
16604 fi
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16606 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16607
16608 case ".$ac_cv_cxxflags_warn_all" in
16609 .ok|.ok,*) ;;
16610 .|.no|.no,*) ;;
16611 *) if ${CXXFLAGS+:} false; then :
16612 case " $CXXFLAGS " in
16613 *" $ac_cv_cxxflags_warn_all "*)
16614 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16615 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16616 ac_status=$?
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; }
16619 ;;
16620 *)
16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16622 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16623 ac_status=$?
16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16625 test $ac_status = 0; }
16626 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16627 ;;
16628 esac
16629 else
16630 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16631 fi
16632 ;;
16633 esac
16634
16635 ac_ext=cpp
16636 ac_cpp='$CXXCPP $CPPFLAGS'
16637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16640
16641
16642
16643
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16645 $as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16646
16647 cy_save=$CXXFLAGS
16648
16649 for element in -Wno-overloaded-virtual; do
16650 haveit=
16651 for x in $CXXFLAGS; do
16652
16653 acl_save_prefix="$prefix"
16654 prefix="$acl_final_prefix"
16655 acl_save_exec_prefix="$exec_prefix"
16656 exec_prefix="$acl_final_exec_prefix"
16657 eval x=\"$x\"
16658 exec_prefix="$acl_save_exec_prefix"
16659 prefix="$acl_save_prefix"
16660
16661 if test "X$x" = "X$element"; then
16662 haveit=yes
16663 break
16664 fi
16665 done
16666 if test -z "$haveit"; then
16667 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16668 fi
16669 done
16670
16671
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674
16675 _ACEOF
16676 if ac_fn_cxx_try_compile "$LINENO"; then :
16677 cy_good=1
16678 else
16679 cy_good=0
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682
16683 CXXFLAGS=$cy_save
16684 if test "x$cy_good" = x1; then :
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16686 $as_echo "yes" >&6; }
16687
16688
16689 for element in -Wno-overloaded-virtual; do
16690 haveit=
16691 for x in $CFLAGS; do
16692
16693 acl_save_prefix="$prefix"
16694 prefix="$acl_final_prefix"
16695 acl_save_exec_prefix="$exec_prefix"
16696 exec_prefix="$acl_final_exec_prefix"
16697 eval x=\"$x\"
16698 exec_prefix="$acl_save_exec_prefix"
16699 prefix="$acl_save_prefix"
16700
16701 if test "X$x" = "X$element"; then
16702 haveit=yes
16703 break
16704 fi
16705 done
16706 if test -z "$haveit"; then
16707 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16708 fi
16709 done
16710
16711
16712 for element in -Wno-overloaded-virtual; do
16713 haveit=
16714 for x in $CXXFLAGS; do
16715
16716 acl_save_prefix="$prefix"
16717 prefix="$acl_final_prefix"
16718 acl_save_exec_prefix="$exec_prefix"
16719 exec_prefix="$acl_final_exec_prefix"
16720 eval x=\"$x\"
16721 exec_prefix="$acl_save_exec_prefix"
16722 prefix="$acl_save_prefix"
16723
16724 if test "X$x" = "X$element"; then
16725 haveit=yes
16726 break
16727 fi
16728 done
16729 if test -z "$haveit"; then
16730 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16731 fi
16732 done
16733
16734
16735 for element in -Wno-overloaded-virtual; do
16736 haveit=
16737 for x in $OBJCCXXFLAGS; do
16738
16739 acl_save_prefix="$prefix"
16740 prefix="$acl_final_prefix"
16741 acl_save_exec_prefix="$exec_prefix"
16742 exec_prefix="$acl_final_exec_prefix"
16743 eval x=\"$x\"
16744 exec_prefix="$acl_save_exec_prefix"
16745 prefix="$acl_save_prefix"
16746
16747 if test "X$x" = "X$element"; then
16748 haveit=yes
16749 break
16750 fi
16751 done
16752 if test -z "$haveit"; then
16753 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16754 fi
16755 done
16756
16757
16758
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16762 fi
16763
16764
16765
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16767 $as_echo_n "checking for -Wno-parentheses... " >&6; }
16768
16769 cy_save=$CXXFLAGS
16770
16771 for element in -Wno-parentheses; do
16772 haveit=
16773 for x in $CXXFLAGS; do
16774
16775 acl_save_prefix="$prefix"
16776 prefix="$acl_final_prefix"
16777 acl_save_exec_prefix="$exec_prefix"
16778 exec_prefix="$acl_final_exec_prefix"
16779 eval x=\"$x\"
16780 exec_prefix="$acl_save_exec_prefix"
16781 prefix="$acl_save_prefix"
16782
16783 if test "X$x" = "X$element"; then
16784 haveit=yes
16785 break
16786 fi
16787 done
16788 if test -z "$haveit"; then
16789 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16790 fi
16791 done
16792
16793
16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16796
16797 _ACEOF
16798 if ac_fn_cxx_try_compile "$LINENO"; then :
16799 cy_good=1
16800 else
16801 cy_good=0
16802 fi
16803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16804
16805 CXXFLAGS=$cy_save
16806 if test "x$cy_good" = x1; then :
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16808 $as_echo "yes" >&6; }
16809
16810
16811 for element in -Wno-parentheses; do
16812 haveit=
16813 for x in $CFLAGS; do
16814
16815 acl_save_prefix="$prefix"
16816 prefix="$acl_final_prefix"
16817 acl_save_exec_prefix="$exec_prefix"
16818 exec_prefix="$acl_final_exec_prefix"
16819 eval x=\"$x\"
16820 exec_prefix="$acl_save_exec_prefix"
16821 prefix="$acl_save_prefix"
16822
16823 if test "X$x" = "X$element"; then
16824 haveit=yes
16825 break
16826 fi
16827 done
16828 if test -z "$haveit"; then
16829 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16830 fi
16831 done
16832
16833
16834 for element in -Wno-parentheses; do
16835 haveit=
16836 for x in $CXXFLAGS; do
16837
16838 acl_save_prefix="$prefix"
16839 prefix="$acl_final_prefix"
16840 acl_save_exec_prefix="$exec_prefix"
16841 exec_prefix="$acl_final_exec_prefix"
16842 eval x=\"$x\"
16843 exec_prefix="$acl_save_exec_prefix"
16844 prefix="$acl_save_prefix"
16845
16846 if test "X$x" = "X$element"; then
16847 haveit=yes
16848 break
16849 fi
16850 done
16851 if test -z "$haveit"; then
16852 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16853 fi
16854 done
16855
16856
16857 for element in -Wno-parentheses; do
16858 haveit=
16859 for x in $OBJCCXXFLAGS; do
16860
16861 acl_save_prefix="$prefix"
16862 prefix="$acl_final_prefix"
16863 acl_save_exec_prefix="$exec_prefix"
16864 exec_prefix="$acl_final_exec_prefix"
16865 eval x=\"$x\"
16866 exec_prefix="$acl_save_exec_prefix"
16867 prefix="$acl_save_prefix"
16868
16869 if test "X$x" = "X$element"; then
16870 haveit=yes
16871 break
16872 fi
16873 done
16874 if test -z "$haveit"; then
16875 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16876 fi
16877 done
16878
16879
16880
16881 else
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16883 $as_echo "no" >&6; }
16884 fi
16885
16886
16887
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16889 $as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16890
16891 cy_save=$CXXFLAGS
16892
16893 for element in -Wno-unneeded-internal-declaration; do
16894 haveit=
16895 for x in $CXXFLAGS; do
16896
16897 acl_save_prefix="$prefix"
16898 prefix="$acl_final_prefix"
16899 acl_save_exec_prefix="$exec_prefix"
16900 exec_prefix="$acl_final_exec_prefix"
16901 eval x=\"$x\"
16902 exec_prefix="$acl_save_exec_prefix"
16903 prefix="$acl_save_prefix"
16904
16905 if test "X$x" = "X$element"; then
16906 haveit=yes
16907 break
16908 fi
16909 done
16910 if test -z "$haveit"; then
16911 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16912 fi
16913 done
16914
16915
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918
16919 _ACEOF
16920 if ac_fn_cxx_try_compile "$LINENO"; then :
16921 cy_good=1
16922 else
16923 cy_good=0
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
16927 CXXFLAGS=$cy_save
16928 if test "x$cy_good" = x1; then :
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16930 $as_echo "yes" >&6; }
16931
16932
16933 for element in -Wno-unneeded-internal-declaration; do
16934 haveit=
16935 for x in $CFLAGS; do
16936
16937 acl_save_prefix="$prefix"
16938 prefix="$acl_final_prefix"
16939 acl_save_exec_prefix="$exec_prefix"
16940 exec_prefix="$acl_final_exec_prefix"
16941 eval x=\"$x\"
16942 exec_prefix="$acl_save_exec_prefix"
16943 prefix="$acl_save_prefix"
16944
16945 if test "X$x" = "X$element"; then
16946 haveit=yes
16947 break
16948 fi
16949 done
16950 if test -z "$haveit"; then
16951 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16952 fi
16953 done
16954
16955
16956 for element in -Wno-unneeded-internal-declaration; do
16957 haveit=
16958 for x in $CXXFLAGS; do
16959
16960 acl_save_prefix="$prefix"
16961 prefix="$acl_final_prefix"
16962 acl_save_exec_prefix="$exec_prefix"
16963 exec_prefix="$acl_final_exec_prefix"
16964 eval x=\"$x\"
16965 exec_prefix="$acl_save_exec_prefix"
16966 prefix="$acl_save_prefix"
16967
16968 if test "X$x" = "X$element"; then
16969 haveit=yes
16970 break
16971 fi
16972 done
16973 if test -z "$haveit"; then
16974 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16975 fi
16976 done
16977
16978
16979 for element in -Wno-unneeded-internal-declaration; do
16980 haveit=
16981 for x in $OBJCCXXFLAGS; do
16982
16983 acl_save_prefix="$prefix"
16984 prefix="$acl_final_prefix"
16985 acl_save_exec_prefix="$exec_prefix"
16986 exec_prefix="$acl_final_exec_prefix"
16987 eval x=\"$x\"
16988 exec_prefix="$acl_save_exec_prefix"
16989 prefix="$acl_save_prefix"
16990
16991 if test "X$x" = "X$element"; then
16992 haveit=yes
16993 break
16994 fi
16995 done
16996 if test -z "$haveit"; then
16997 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16998 fi
16999 done
17000
17001
17002
17003 else
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006 fi
17007
17008
17009
17010 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
17012 $as_echo_n "checking for -arch $cy_arch... " >&6; }
17013
17014 cy_save=$CXXFLAGS
17015
17016 for element in "-arch $cy_arch"; do
17017 haveit=
17018 for x in $CXXFLAGS; do
17019
17020 acl_save_prefix="$prefix"
17021 prefix="$acl_final_prefix"
17022 acl_save_exec_prefix="$exec_prefix"
17023 exec_prefix="$acl_final_exec_prefix"
17024 eval x=\"$x\"
17025 exec_prefix="$acl_save_exec_prefix"
17026 prefix="$acl_save_prefix"
17027
17028 if test "X$x" = "X$element"; then
17029 haveit=yes
17030 break
17031 fi
17032 done
17033 if test -z "$haveit"; then
17034 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17035 fi
17036 done
17037
17038
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041
17042 int
17043 main ()
17044 {
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 if ac_fn_cxx_try_link "$LINENO"; then :
17051 cy_good=1
17052 else
17053 cy_good=0
17054 fi
17055 rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057
17058 CXXFLAGS=$cy_save
17059 if test "x$cy_good" = x1; then :
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061 $as_echo "yes" >&6; }
17062
17063 for element in "-arch $cy_arch"; do
17064 haveit=
17065 for x in $CY_ARCH; do
17066
17067 acl_save_prefix="$prefix"
17068 prefix="$acl_final_prefix"
17069 acl_save_exec_prefix="$exec_prefix"
17070 exec_prefix="$acl_final_exec_prefix"
17071 eval x=\"$x\"
17072 exec_prefix="$acl_save_exec_prefix"
17073 prefix="$acl_save_prefix"
17074
17075 if test "X$x" = "X$element"; then
17076 haveit=yes
17077 break
17078 fi
17079 done
17080 if test -z "$haveit"; then
17081 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
17082 fi
17083 done
17084
17085
17086 else
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17088 $as_echo "no" >&6; }
17089 fi
17090
17091 done
17092
17093
17094
17095 # Check whether --with-frameworks was given.
17096 if test "${with_frameworks+set}" = set; then :
17097 withval=$with_frameworks;
17098 for cy_framework in $withval; do
17099
17100
17101 for element in -F$cy_framework; do
17102 haveit=
17103 for x in $CFLAGS; do
17104
17105 acl_save_prefix="$prefix"
17106 prefix="$acl_final_prefix"
17107 acl_save_exec_prefix="$exec_prefix"
17108 exec_prefix="$acl_final_exec_prefix"
17109 eval x=\"$x\"
17110 exec_prefix="$acl_save_exec_prefix"
17111 prefix="$acl_save_prefix"
17112
17113 if test "X$x" = "X$element"; then
17114 haveit=yes
17115 break
17116 fi
17117 done
17118 if test -z "$haveit"; then
17119 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17120 fi
17121 done
17122
17123
17124 for element in -F$cy_framework; do
17125 haveit=
17126 for x in $CXXFLAGS; do
17127
17128 acl_save_prefix="$prefix"
17129 prefix="$acl_final_prefix"
17130 acl_save_exec_prefix="$exec_prefix"
17131 exec_prefix="$acl_final_exec_prefix"
17132 eval x=\"$x\"
17133 exec_prefix="$acl_save_exec_prefix"
17134 prefix="$acl_save_prefix"
17135
17136 if test "X$x" = "X$element"; then
17137 haveit=yes
17138 break
17139 fi
17140 done
17141 if test -z "$haveit"; then
17142 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17143 fi
17144 done
17145
17146
17147 for element in -F$cy_framework; do
17148 haveit=
17149 for x in $OBJCCXXFLAGS; do
17150
17151 acl_save_prefix="$prefix"
17152 prefix="$acl_final_prefix"
17153 acl_save_exec_prefix="$exec_prefix"
17154 exec_prefix="$acl_final_exec_prefix"
17155 eval x=\"$x\"
17156 exec_prefix="$acl_save_exec_prefix"
17157 prefix="$acl_save_prefix"
17158
17159 if test "X$x" = "X$element"; then
17160 haveit=yes
17161 break
17162 fi
17163 done
17164 if test -z "$haveit"; then
17165 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17166 fi
17167 done
17168
17169
17170 done
17171
17172 fi
17173
17174
17175
17176
17177 # Check whether --enable-javascript was given.
17178 if test "${enable_javascript+set}" = set; then :
17179 enableval=$enable_javascript;
17180 case $enableval in #(
17181 yes) :
17182
17183
17184
17185
17186 pkg_failed=no
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17188 $as_echo_n "checking for WEBKIT... " >&6; }
17189
17190 if test -n "$WEBKIT_CFLAGS"; then
17191 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17192 elif test -n "$PKG_CONFIG"; then
17193 if test -n "$PKG_CONFIG" && \
17194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17195 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17196 ac_status=$?
17197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17198 test $ac_status = 0; }; then
17199 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17200 else
17201 pkg_failed=yes
17202 fi
17203 else
17204 pkg_failed=untried
17205 fi
17206 if test -n "$WEBKIT_LIBS"; then
17207 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17208 elif test -n "$PKG_CONFIG"; then
17209 if test -n "$PKG_CONFIG" && \
17210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17211 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17212 ac_status=$?
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; }; then
17215 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17216 else
17217 pkg_failed=yes
17218 fi
17219 else
17220 pkg_failed=untried
17221 fi
17222
17223
17224
17225 if test $pkg_failed = yes; then
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228
17229 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17230 _pkg_short_errors_supported=yes
17231 else
17232 _pkg_short_errors_supported=no
17233 fi
17234 if test $_pkg_short_errors_supported = yes; then
17235 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17236 else
17237 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17238 fi
17239 # Put the nasty error message in config.log where it belongs
17240 echo "$WEBKIT_PKG_ERRORS" >&5
17241
17242
17243
17244 pkg_failed=no
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17246 $as_echo_n "checking for WEBKIT... " >&6; }
17247
17248 if test -n "$WEBKIT_CFLAGS"; then
17249 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17250 elif test -n "$PKG_CONFIG"; then
17251 if test -n "$PKG_CONFIG" && \
17252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17253 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17254 ac_status=$?
17255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17256 test $ac_status = 0; }; then
17257 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17258 else
17259 pkg_failed=yes
17260 fi
17261 else
17262 pkg_failed=untried
17263 fi
17264 if test -n "$WEBKIT_LIBS"; then
17265 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17266 elif test -n "$PKG_CONFIG"; then
17267 if test -n "$PKG_CONFIG" && \
17268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17269 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17270 ac_status=$?
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272 test $ac_status = 0; }; then
17273 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17274 else
17275 pkg_failed=yes
17276 fi
17277 else
17278 pkg_failed=untried
17279 fi
17280
17281
17282
17283 if test $pkg_failed = yes; then
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17286
17287 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17288 _pkg_short_errors_supported=yes
17289 else
17290 _pkg_short_errors_supported=no
17291 fi
17292 if test $_pkg_short_errors_supported = yes; then
17293 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17294 else
17295 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17296 fi
17297 # Put the nasty error message in config.log where it belongs
17298 echo "$WEBKIT_PKG_ERRORS" >&5
17299
17300
17301
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17303 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17304 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17305 $as_echo_n "(cached) " >&6
17306 else
17307
17308 ac_check_framework_save_LIBS=$LIBS
17309 LIBS="-framework JavaScriptCore $LIBS"
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312
17313 #include <JavaScriptCore/JSBase.h>
17314
17315 int
17316 main ()
17317 {
17318
17319 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17320
17321 ;
17322 return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_cxx_try_link "$LINENO"; then :
17326
17327 ac_cv_framework_JavaScriptCore=yes
17328
17329 else
17330 ac_cv_framework_JavaScriptCore=no
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_framework_save_LIBS
17335
17336 fi
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17338 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17339 if test $ac_cv_framework_JavaScriptCore = yes; then :
17340
17341
17342 for element in "-framework JavaScriptCore $LIBS"; do
17343 haveit=
17344 for x in $LIBS; do
17345
17346 acl_save_prefix="$prefix"
17347 prefix="$acl_final_prefix"
17348 acl_save_exec_prefix="$exec_prefix"
17349 exec_prefix="$acl_final_exec_prefix"
17350 eval x=\"$x\"
17351 exec_prefix="$acl_save_exec_prefix"
17352 prefix="$acl_save_prefix"
17353
17354 if test "X$x" = "X$element"; then
17355 haveit=yes
17356 break
17357 fi
17358 done
17359 if test -z "$haveit"; then
17360 LIBS="${LIBS}${LIBS:+ }$element"
17361 fi
17362 done
17363
17364
17365 CY_EXECUTE=1
17366
17367
17368
17369 fi
17370
17371 elif test $pkg_failed = untried; then
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373 $as_echo "no" >&6; }
17374
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17377 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17378 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381
17382 ac_check_framework_save_LIBS=$LIBS
17383 LIBS="-framework JavaScriptCore $LIBS"
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386
17387 #include <JavaScriptCore/JSBase.h>
17388
17389 int
17390 main ()
17391 {
17392
17393 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_cxx_try_link "$LINENO"; then :
17400
17401 ac_cv_framework_JavaScriptCore=yes
17402
17403 else
17404 ac_cv_framework_JavaScriptCore=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_framework_save_LIBS
17409
17410 fi
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17412 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17413 if test $ac_cv_framework_JavaScriptCore = yes; then :
17414
17415
17416 for element in "-framework JavaScriptCore $LIBS"; do
17417 haveit=
17418 for x in $LIBS; do
17419
17420 acl_save_prefix="$prefix"
17421 prefix="$acl_final_prefix"
17422 acl_save_exec_prefix="$exec_prefix"
17423 exec_prefix="$acl_final_exec_prefix"
17424 eval x=\"$x\"
17425 exec_prefix="$acl_save_exec_prefix"
17426 prefix="$acl_save_prefix"
17427
17428 if test "X$x" = "X$element"; then
17429 haveit=yes
17430 break
17431 fi
17432 done
17433 if test -z "$haveit"; then
17434 LIBS="${LIBS}${LIBS:+ }$element"
17435 fi
17436 done
17437
17438
17439 CY_EXECUTE=1
17440
17441
17442
17443 fi
17444
17445 else
17446 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17447 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449 $as_echo "yes" >&6; }
17450
17451 CY_EXECUTE=1
17452
17453
17454 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17455 haveit=
17456 for x in $CXXFLAGS; do
17457
17458 acl_save_prefix="$prefix"
17459 prefix="$acl_final_prefix"
17460 acl_save_exec_prefix="$exec_prefix"
17461 exec_prefix="$acl_final_exec_prefix"
17462 eval x=\"$x\"
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17465
17466 if test "X$x" = "X$element"; then
17467 haveit=yes
17468 break
17469 fi
17470 done
17471 if test -z "$haveit"; then
17472 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17473 fi
17474 done
17475
17476
17477 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17478 haveit=
17479 for x in $LIBS; do
17480
17481 acl_save_prefix="$prefix"
17482 prefix="$acl_final_prefix"
17483 acl_save_exec_prefix="$exec_prefix"
17484 exec_prefix="$acl_final_exec_prefix"
17485 eval x=\"$x\"
17486 exec_prefix="$acl_save_exec_prefix"
17487 prefix="$acl_save_prefix"
17488
17489 if test "X$x" = "X$element"; then
17490 haveit=yes
17491 break
17492 fi
17493 done
17494 if test -z "$haveit"; then
17495 LIBS="${LIBS}${LIBS:+ }$element"
17496 fi
17497 done
17498
17499
17500 fi
17501
17502 elif test $pkg_failed = untried; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504 $as_echo "no" >&6; }
17505
17506
17507 pkg_failed=no
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17509 $as_echo_n "checking for WEBKIT... " >&6; }
17510
17511 if test -n "$WEBKIT_CFLAGS"; then
17512 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17513 elif test -n "$PKG_CONFIG"; then
17514 if test -n "$PKG_CONFIG" && \
17515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17516 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17517 ac_status=$?
17518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17519 test $ac_status = 0; }; then
17520 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17521 else
17522 pkg_failed=yes
17523 fi
17524 else
17525 pkg_failed=untried
17526 fi
17527 if test -n "$WEBKIT_LIBS"; then
17528 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17529 elif test -n "$PKG_CONFIG"; then
17530 if test -n "$PKG_CONFIG" && \
17531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17532 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17533 ac_status=$?
17534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17535 test $ac_status = 0; }; then
17536 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17537 else
17538 pkg_failed=yes
17539 fi
17540 else
17541 pkg_failed=untried
17542 fi
17543
17544
17545
17546 if test $pkg_failed = yes; then
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17548 $as_echo "no" >&6; }
17549
17550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17551 _pkg_short_errors_supported=yes
17552 else
17553 _pkg_short_errors_supported=no
17554 fi
17555 if test $_pkg_short_errors_supported = yes; then
17556 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17557 else
17558 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17559 fi
17560 # Put the nasty error message in config.log where it belongs
17561 echo "$WEBKIT_PKG_ERRORS" >&5
17562
17563
17564
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17566 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17567 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17568 $as_echo_n "(cached) " >&6
17569 else
17570
17571 ac_check_framework_save_LIBS=$LIBS
17572 LIBS="-framework JavaScriptCore $LIBS"
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575
17576 #include <JavaScriptCore/JSBase.h>
17577
17578 int
17579 main ()
17580 {
17581
17582 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17583
17584 ;
17585 return 0;
17586 }
17587 _ACEOF
17588 if ac_fn_cxx_try_link "$LINENO"; then :
17589
17590 ac_cv_framework_JavaScriptCore=yes
17591
17592 else
17593 ac_cv_framework_JavaScriptCore=no
17594 fi
17595 rm -f core conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 LIBS=$ac_check_framework_save_LIBS
17598
17599 fi
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17601 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17602 if test $ac_cv_framework_JavaScriptCore = yes; then :
17603
17604
17605 for element in "-framework JavaScriptCore $LIBS"; do
17606 haveit=
17607 for x in $LIBS; do
17608
17609 acl_save_prefix="$prefix"
17610 prefix="$acl_final_prefix"
17611 acl_save_exec_prefix="$exec_prefix"
17612 exec_prefix="$acl_final_exec_prefix"
17613 eval x=\"$x\"
17614 exec_prefix="$acl_save_exec_prefix"
17615 prefix="$acl_save_prefix"
17616
17617 if test "X$x" = "X$element"; then
17618 haveit=yes
17619 break
17620 fi
17621 done
17622 if test -z "$haveit"; then
17623 LIBS="${LIBS}${LIBS:+ }$element"
17624 fi
17625 done
17626
17627
17628 CY_EXECUTE=1
17629
17630
17631
17632 fi
17633
17634 elif test $pkg_failed = untried; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17636 $as_echo "no" >&6; }
17637
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17640 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17641 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17642 $as_echo_n "(cached) " >&6
17643 else
17644
17645 ac_check_framework_save_LIBS=$LIBS
17646 LIBS="-framework JavaScriptCore $LIBS"
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17649
17650 #include <JavaScriptCore/JSBase.h>
17651
17652 int
17653 main ()
17654 {
17655
17656 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17657
17658 ;
17659 return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_cxx_try_link "$LINENO"; then :
17663
17664 ac_cv_framework_JavaScriptCore=yes
17665
17666 else
17667 ac_cv_framework_JavaScriptCore=no
17668 fi
17669 rm -f core conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17671 LIBS=$ac_check_framework_save_LIBS
17672
17673 fi
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17675 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17676 if test $ac_cv_framework_JavaScriptCore = yes; then :
17677
17678
17679 for element in "-framework JavaScriptCore $LIBS"; do
17680 haveit=
17681 for x in $LIBS; do
17682
17683 acl_save_prefix="$prefix"
17684 prefix="$acl_final_prefix"
17685 acl_save_exec_prefix="$exec_prefix"
17686 exec_prefix="$acl_final_exec_prefix"
17687 eval x=\"$x\"
17688 exec_prefix="$acl_save_exec_prefix"
17689 prefix="$acl_save_prefix"
17690
17691 if test "X$x" = "X$element"; then
17692 haveit=yes
17693 break
17694 fi
17695 done
17696 if test -z "$haveit"; then
17697 LIBS="${LIBS}${LIBS:+ }$element"
17698 fi
17699 done
17700
17701
17702 CY_EXECUTE=1
17703
17704
17705
17706 fi
17707
17708 else
17709 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17710 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17712 $as_echo "yes" >&6; }
17713
17714 CY_EXECUTE=1
17715
17716
17717 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17718 haveit=
17719 for x in $CXXFLAGS; do
17720
17721 acl_save_prefix="$prefix"
17722 prefix="$acl_final_prefix"
17723 acl_save_exec_prefix="$exec_prefix"
17724 exec_prefix="$acl_final_exec_prefix"
17725 eval x=\"$x\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17728
17729 if test "X$x" = "X$element"; then
17730 haveit=yes
17731 break
17732 fi
17733 done
17734 if test -z "$haveit"; then
17735 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17736 fi
17737 done
17738
17739
17740 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17741 haveit=
17742 for x in $LIBS; do
17743
17744 acl_save_prefix="$prefix"
17745 prefix="$acl_final_prefix"
17746 acl_save_exec_prefix="$exec_prefix"
17747 exec_prefix="$acl_final_exec_prefix"
17748 eval x=\"$x\"
17749 exec_prefix="$acl_save_exec_prefix"
17750 prefix="$acl_save_prefix"
17751
17752 if test "X$x" = "X$element"; then
17753 haveit=yes
17754 break
17755 fi
17756 done
17757 if test -z "$haveit"; then
17758 LIBS="${LIBS}${LIBS:+ }$element"
17759 fi
17760 done
17761
17762
17763 fi
17764
17765 else
17766 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17767 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17769 $as_echo "yes" >&6; }
17770
17771 CY_EXECUTE=1
17772
17773
17774 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17775 haveit=
17776 for x in $CXXFLAGS; do
17777
17778 acl_save_prefix="$prefix"
17779 prefix="$acl_final_prefix"
17780 acl_save_exec_prefix="$exec_prefix"
17781 exec_prefix="$acl_final_exec_prefix"
17782 eval x=\"$x\"
17783 exec_prefix="$acl_save_exec_prefix"
17784 prefix="$acl_save_prefix"
17785
17786 if test "X$x" = "X$element"; then
17787 haveit=yes
17788 break
17789 fi
17790 done
17791 if test -z "$haveit"; then
17792 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17793 fi
17794 done
17795
17796
17797 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17798 haveit=
17799 for x in $LIBS; do
17800
17801 acl_save_prefix="$prefix"
17802 prefix="$acl_final_prefix"
17803 acl_save_exec_prefix="$exec_prefix"
17804 exec_prefix="$acl_final_exec_prefix"
17805 eval x=\"$x\"
17806 exec_prefix="$acl_save_exec_prefix"
17807 prefix="$acl_save_prefix"
17808
17809 if test "X$x" = "X$element"; then
17810 haveit=yes
17811 break
17812 fi
17813 done
17814 if test -z "$haveit"; then
17815 LIBS="${LIBS}${LIBS:+ }$element"
17816 fi
17817 done
17818
17819
17820 fi
17821 ;; #(
17822 no) :
17823
17824 CY_EXECUTE=0
17825 ;; #(
17826 JavaScriptCore) :
17827
17828
17829
17830 pkg_failed=no
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17832 $as_echo_n "checking for WEBKIT... " >&6; }
17833
17834 if test -n "$WEBKIT_CFLAGS"; then
17835 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17836 elif test -n "$PKG_CONFIG"; then
17837 if test -n "$PKG_CONFIG" && \
17838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17839 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17840 ac_status=$?
17841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17842 test $ac_status = 0; }; then
17843 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17844 else
17845 pkg_failed=yes
17846 fi
17847 else
17848 pkg_failed=untried
17849 fi
17850 if test -n "$WEBKIT_LIBS"; then
17851 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17852 elif test -n "$PKG_CONFIG"; then
17853 if test -n "$PKG_CONFIG" && \
17854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17855 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17858 test $ac_status = 0; }; then
17859 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17860 else
17861 pkg_failed=yes
17862 fi
17863 else
17864 pkg_failed=untried
17865 fi
17866
17867
17868
17869 if test $pkg_failed = yes; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17871 $as_echo "no" >&6; }
17872
17873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17874 _pkg_short_errors_supported=yes
17875 else
17876 _pkg_short_errors_supported=no
17877 fi
17878 if test $_pkg_short_errors_supported = yes; then
17879 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17880 else
17881 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17882 fi
17883 # Put the nasty error message in config.log where it belongs
17884 echo "$WEBKIT_PKG_ERRORS" >&5
17885
17886
17887
17888 pkg_failed=no
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17890 $as_echo_n "checking for WEBKIT... " >&6; }
17891
17892 if test -n "$WEBKIT_CFLAGS"; then
17893 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17894 elif test -n "$PKG_CONFIG"; then
17895 if test -n "$PKG_CONFIG" && \
17896 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17897 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17898 ac_status=$?
17899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17900 test $ac_status = 0; }; then
17901 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17902 else
17903 pkg_failed=yes
17904 fi
17905 else
17906 pkg_failed=untried
17907 fi
17908 if test -n "$WEBKIT_LIBS"; then
17909 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17910 elif test -n "$PKG_CONFIG"; then
17911 if test -n "$PKG_CONFIG" && \
17912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17913 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17914 ac_status=$?
17915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17916 test $ac_status = 0; }; then
17917 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17918 else
17919 pkg_failed=yes
17920 fi
17921 else
17922 pkg_failed=untried
17923 fi
17924
17925
17926
17927 if test $pkg_failed = yes; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17929 $as_echo "no" >&6; }
17930
17931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17932 _pkg_short_errors_supported=yes
17933 else
17934 _pkg_short_errors_supported=no
17935 fi
17936 if test $_pkg_short_errors_supported = yes; then
17937 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17938 else
17939 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17940 fi
17941 # Put the nasty error message in config.log where it belongs
17942 echo "$WEBKIT_PKG_ERRORS" >&5
17943
17944
17945
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17947 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17948 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17949 $as_echo_n "(cached) " >&6
17950 else
17951
17952 ac_check_framework_save_LIBS=$LIBS
17953 LIBS="-framework JavaScriptCore $LIBS"
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17956
17957 #include <JavaScriptCore/JSBase.h>
17958
17959 int
17960 main ()
17961 {
17962
17963 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17964
17965 ;
17966 return 0;
17967 }
17968 _ACEOF
17969 if ac_fn_cxx_try_link "$LINENO"; then :
17970
17971 ac_cv_framework_JavaScriptCore=yes
17972
17973 else
17974 ac_cv_framework_JavaScriptCore=no
17975 fi
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_framework_save_LIBS
17979
17980 fi
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17982 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17983 if test $ac_cv_framework_JavaScriptCore = yes; then :
17984
17985
17986 for element in "-framework JavaScriptCore $LIBS"; do
17987 haveit=
17988 for x in $LIBS; do
17989
17990 acl_save_prefix="$prefix"
17991 prefix="$acl_final_prefix"
17992 acl_save_exec_prefix="$exec_prefix"
17993 exec_prefix="$acl_final_exec_prefix"
17994 eval x=\"$x\"
17995 exec_prefix="$acl_save_exec_prefix"
17996 prefix="$acl_save_prefix"
17997
17998 if test "X$x" = "X$element"; then
17999 haveit=yes
18000 break
18001 fi
18002 done
18003 if test -z "$haveit"; then
18004 LIBS="${LIBS}${LIBS:+ }$element"
18005 fi
18006 done
18007
18008
18009 CY_EXECUTE=1
18010
18011
18012
18013 fi
18014
18015 elif test $pkg_failed = untried; then
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 $as_echo "no" >&6; }
18018
18019
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18021 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18022 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18023 $as_echo_n "(cached) " >&6
18024 else
18025
18026 ac_check_framework_save_LIBS=$LIBS
18027 LIBS="-framework JavaScriptCore $LIBS"
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18030
18031 #include <JavaScriptCore/JSBase.h>
18032
18033 int
18034 main ()
18035 {
18036
18037 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18038
18039 ;
18040 return 0;
18041 }
18042 _ACEOF
18043 if ac_fn_cxx_try_link "$LINENO"; then :
18044
18045 ac_cv_framework_JavaScriptCore=yes
18046
18047 else
18048 ac_cv_framework_JavaScriptCore=no
18049 fi
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18052 LIBS=$ac_check_framework_save_LIBS
18053
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18056 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18057 if test $ac_cv_framework_JavaScriptCore = yes; then :
18058
18059
18060 for element in "-framework JavaScriptCore $LIBS"; do
18061 haveit=
18062 for x in $LIBS; do
18063
18064 acl_save_prefix="$prefix"
18065 prefix="$acl_final_prefix"
18066 acl_save_exec_prefix="$exec_prefix"
18067 exec_prefix="$acl_final_exec_prefix"
18068 eval x=\"$x\"
18069 exec_prefix="$acl_save_exec_prefix"
18070 prefix="$acl_save_prefix"
18071
18072 if test "X$x" = "X$element"; then
18073 haveit=yes
18074 break
18075 fi
18076 done
18077 if test -z "$haveit"; then
18078 LIBS="${LIBS}${LIBS:+ }$element"
18079 fi
18080 done
18081
18082
18083 CY_EXECUTE=1
18084
18085
18086
18087 fi
18088
18089 else
18090 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18091 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18093 $as_echo "yes" >&6; }
18094
18095 CY_EXECUTE=1
18096
18097
18098 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18099 haveit=
18100 for x in $CXXFLAGS; do
18101
18102 acl_save_prefix="$prefix"
18103 prefix="$acl_final_prefix"
18104 acl_save_exec_prefix="$exec_prefix"
18105 exec_prefix="$acl_final_exec_prefix"
18106 eval x=\"$x\"
18107 exec_prefix="$acl_save_exec_prefix"
18108 prefix="$acl_save_prefix"
18109
18110 if test "X$x" = "X$element"; then
18111 haveit=yes
18112 break
18113 fi
18114 done
18115 if test -z "$haveit"; then
18116 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18117 fi
18118 done
18119
18120
18121 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18122 haveit=
18123 for x in $LIBS; do
18124
18125 acl_save_prefix="$prefix"
18126 prefix="$acl_final_prefix"
18127 acl_save_exec_prefix="$exec_prefix"
18128 exec_prefix="$acl_final_exec_prefix"
18129 eval x=\"$x\"
18130 exec_prefix="$acl_save_exec_prefix"
18131 prefix="$acl_save_prefix"
18132
18133 if test "X$x" = "X$element"; then
18134 haveit=yes
18135 break
18136 fi
18137 done
18138 if test -z "$haveit"; then
18139 LIBS="${LIBS}${LIBS:+ }$element"
18140 fi
18141 done
18142
18143
18144 fi
18145
18146 elif test $pkg_failed = untried; then
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148 $as_echo "no" >&6; }
18149
18150
18151 pkg_failed=no
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18153 $as_echo_n "checking for WEBKIT... " >&6; }
18154
18155 if test -n "$WEBKIT_CFLAGS"; then
18156 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18157 elif test -n "$PKG_CONFIG"; then
18158 if test -n "$PKG_CONFIG" && \
18159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18160 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163 test $ac_status = 0; }; then
18164 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18165 else
18166 pkg_failed=yes
18167 fi
18168 else
18169 pkg_failed=untried
18170 fi
18171 if test -n "$WEBKIT_LIBS"; then
18172 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18173 elif test -n "$PKG_CONFIG"; then
18174 if test -n "$PKG_CONFIG" && \
18175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18176 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18177 ac_status=$?
18178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18179 test $ac_status = 0; }; then
18180 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18181 else
18182 pkg_failed=yes
18183 fi
18184 else
18185 pkg_failed=untried
18186 fi
18187
18188
18189
18190 if test $pkg_failed = yes; then
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192 $as_echo "no" >&6; }
18193
18194 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18195 _pkg_short_errors_supported=yes
18196 else
18197 _pkg_short_errors_supported=no
18198 fi
18199 if test $_pkg_short_errors_supported = yes; then
18200 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18201 else
18202 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18203 fi
18204 # Put the nasty error message in config.log where it belongs
18205 echo "$WEBKIT_PKG_ERRORS" >&5
18206
18207
18208
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18210 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18211 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18212 $as_echo_n "(cached) " >&6
18213 else
18214
18215 ac_check_framework_save_LIBS=$LIBS
18216 LIBS="-framework JavaScriptCore $LIBS"
18217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18219
18220 #include <JavaScriptCore/JSBase.h>
18221
18222 int
18223 main ()
18224 {
18225
18226 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 if ac_fn_cxx_try_link "$LINENO"; then :
18233
18234 ac_cv_framework_JavaScriptCore=yes
18235
18236 else
18237 ac_cv_framework_JavaScriptCore=no
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241 LIBS=$ac_check_framework_save_LIBS
18242
18243 fi
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18245 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18246 if test $ac_cv_framework_JavaScriptCore = yes; then :
18247
18248
18249 for element in "-framework JavaScriptCore $LIBS"; do
18250 haveit=
18251 for x in $LIBS; do
18252
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18257 eval x=\"$x\"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18260
18261 if test "X$x" = "X$element"; then
18262 haveit=yes
18263 break
18264 fi
18265 done
18266 if test -z "$haveit"; then
18267 LIBS="${LIBS}${LIBS:+ }$element"
18268 fi
18269 done
18270
18271
18272 CY_EXECUTE=1
18273
18274
18275
18276 fi
18277
18278 elif test $pkg_failed = untried; then
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18280 $as_echo "no" >&6; }
18281
18282
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18284 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18285 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288
18289 ac_check_framework_save_LIBS=$LIBS
18290 LIBS="-framework JavaScriptCore $LIBS"
18291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292 /* end confdefs.h. */
18293
18294 #include <JavaScriptCore/JSBase.h>
18295
18296 int
18297 main ()
18298 {
18299
18300 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18301
18302 ;
18303 return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_cxx_try_link "$LINENO"; then :
18307
18308 ac_cv_framework_JavaScriptCore=yes
18309
18310 else
18311 ac_cv_framework_JavaScriptCore=no
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext \
18314 conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_framework_save_LIBS
18316
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18319 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18320 if test $ac_cv_framework_JavaScriptCore = yes; then :
18321
18322
18323 for element in "-framework JavaScriptCore $LIBS"; do
18324 haveit=
18325 for x in $LIBS; do
18326
18327 acl_save_prefix="$prefix"
18328 prefix="$acl_final_prefix"
18329 acl_save_exec_prefix="$exec_prefix"
18330 exec_prefix="$acl_final_exec_prefix"
18331 eval x=\"$x\"
18332 exec_prefix="$acl_save_exec_prefix"
18333 prefix="$acl_save_prefix"
18334
18335 if test "X$x" = "X$element"; then
18336 haveit=yes
18337 break
18338 fi
18339 done
18340 if test -z "$haveit"; then
18341 LIBS="${LIBS}${LIBS:+ }$element"
18342 fi
18343 done
18344
18345
18346 CY_EXECUTE=1
18347
18348
18349
18350 fi
18351
18352 else
18353 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18354 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356 $as_echo "yes" >&6; }
18357
18358 CY_EXECUTE=1
18359
18360
18361 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18362 haveit=
18363 for x in $CXXFLAGS; do
18364
18365 acl_save_prefix="$prefix"
18366 prefix="$acl_final_prefix"
18367 acl_save_exec_prefix="$exec_prefix"
18368 exec_prefix="$acl_final_exec_prefix"
18369 eval x=\"$x\"
18370 exec_prefix="$acl_save_exec_prefix"
18371 prefix="$acl_save_prefix"
18372
18373 if test "X$x" = "X$element"; then
18374 haveit=yes
18375 break
18376 fi
18377 done
18378 if test -z "$haveit"; then
18379 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18380 fi
18381 done
18382
18383
18384 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18385 haveit=
18386 for x in $LIBS; do
18387
18388 acl_save_prefix="$prefix"
18389 prefix="$acl_final_prefix"
18390 acl_save_exec_prefix="$exec_prefix"
18391 exec_prefix="$acl_final_exec_prefix"
18392 eval x=\"$x\"
18393 exec_prefix="$acl_save_exec_prefix"
18394 prefix="$acl_save_prefix"
18395
18396 if test "X$x" = "X$element"; then
18397 haveit=yes
18398 break
18399 fi
18400 done
18401 if test -z "$haveit"; then
18402 LIBS="${LIBS}${LIBS:+ }$element"
18403 fi
18404 done
18405
18406
18407 fi
18408
18409 else
18410 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18411 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18413 $as_echo "yes" >&6; }
18414
18415 CY_EXECUTE=1
18416
18417
18418 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18419 haveit=
18420 for x in $CXXFLAGS; do
18421
18422 acl_save_prefix="$prefix"
18423 prefix="$acl_final_prefix"
18424 acl_save_exec_prefix="$exec_prefix"
18425 exec_prefix="$acl_final_exec_prefix"
18426 eval x=\"$x\"
18427 exec_prefix="$acl_save_exec_prefix"
18428 prefix="$acl_save_prefix"
18429
18430 if test "X$x" = "X$element"; then
18431 haveit=yes
18432 break
18433 fi
18434 done
18435 if test -z "$haveit"; then
18436 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18437 fi
18438 done
18439
18440
18441 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18442 haveit=
18443 for x in $LIBS; do
18444
18445 acl_save_prefix="$prefix"
18446 prefix="$acl_final_prefix"
18447 acl_save_exec_prefix="$exec_prefix"
18448 exec_prefix="$acl_final_exec_prefix"
18449 eval x=\"$x\"
18450 exec_prefix="$acl_save_exec_prefix"
18451 prefix="$acl_save_prefix"
18452
18453 if test "X$x" = "X$element"; then
18454 haveit=yes
18455 break
18456 fi
18457 done
18458 if test -z "$haveit"; then
18459 LIBS="${LIBS}${LIBS:+ }$element"
18460 fi
18461 done
18462
18463
18464 fi
18465 ;; #(
18466 *) :
18467 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18468 esac
18469
18470 else
18471
18472
18473
18474 pkg_failed=no
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18476 $as_echo_n "checking for WEBKIT... " >&6; }
18477
18478 if test -n "$WEBKIT_CFLAGS"; then
18479 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18480 elif test -n "$PKG_CONFIG"; then
18481 if test -n "$PKG_CONFIG" && \
18482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18483 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18484 ac_status=$?
18485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18486 test $ac_status = 0; }; then
18487 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
18488 else
18489 pkg_failed=yes
18490 fi
18491 else
18492 pkg_failed=untried
18493 fi
18494 if test -n "$WEBKIT_LIBS"; then
18495 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18496 elif test -n "$PKG_CONFIG"; then
18497 if test -n "$PKG_CONFIG" && \
18498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18499 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18500 ac_status=$?
18501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18502 test $ac_status = 0; }; then
18503 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
18504 else
18505 pkg_failed=yes
18506 fi
18507 else
18508 pkg_failed=untried
18509 fi
18510
18511
18512
18513 if test $pkg_failed = yes; then
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18515 $as_echo "no" >&6; }
18516
18517 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18518 _pkg_short_errors_supported=yes
18519 else
18520 _pkg_short_errors_supported=no
18521 fi
18522 if test $_pkg_short_errors_supported = yes; then
18523 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
18524 else
18525 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
18526 fi
18527 # Put the nasty error message in config.log where it belongs
18528 echo "$WEBKIT_PKG_ERRORS" >&5
18529
18530
18531
18532 pkg_failed=no
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18534 $as_echo_n "checking for WEBKIT... " >&6; }
18535
18536 if test -n "$WEBKIT_CFLAGS"; then
18537 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18538 elif test -n "$PKG_CONFIG"; then
18539 if test -n "$PKG_CONFIG" && \
18540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18541 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18542 ac_status=$?
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; then
18545 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18546 else
18547 pkg_failed=yes
18548 fi
18549 else
18550 pkg_failed=untried
18551 fi
18552 if test -n "$WEBKIT_LIBS"; then
18553 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18554 elif test -n "$PKG_CONFIG"; then
18555 if test -n "$PKG_CONFIG" && \
18556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18557 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18558 ac_status=$?
18559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18560 test $ac_status = 0; }; then
18561 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18562 else
18563 pkg_failed=yes
18564 fi
18565 else
18566 pkg_failed=untried
18567 fi
18568
18569
18570
18571 if test $pkg_failed = yes; then
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18574
18575 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18576 _pkg_short_errors_supported=yes
18577 else
18578 _pkg_short_errors_supported=no
18579 fi
18580 if test $_pkg_short_errors_supported = yes; then
18581 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18582 else
18583 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18584 fi
18585 # Put the nasty error message in config.log where it belongs
18586 echo "$WEBKIT_PKG_ERRORS" >&5
18587
18588
18589
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18591 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18592 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18593 $as_echo_n "(cached) " >&6
18594 else
18595
18596 ac_check_framework_save_LIBS=$LIBS
18597 LIBS="-framework JavaScriptCore $LIBS"
18598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599 /* end confdefs.h. */
18600
18601 #include <JavaScriptCore/JSBase.h>
18602
18603 int
18604 main ()
18605 {
18606
18607 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18608
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 if ac_fn_cxx_try_link "$LINENO"; then :
18614
18615 ac_cv_framework_JavaScriptCore=yes
18616
18617 else
18618 ac_cv_framework_JavaScriptCore=no
18619 fi
18620 rm -f core conftest.err conftest.$ac_objext \
18621 conftest$ac_exeext conftest.$ac_ext
18622 LIBS=$ac_check_framework_save_LIBS
18623
18624 fi
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18626 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18627 if test $ac_cv_framework_JavaScriptCore = yes; then :
18628
18629
18630 for element in "-framework JavaScriptCore $LIBS"; do
18631 haveit=
18632 for x in $LIBS; do
18633
18634 acl_save_prefix="$prefix"
18635 prefix="$acl_final_prefix"
18636 acl_save_exec_prefix="$exec_prefix"
18637 exec_prefix="$acl_final_exec_prefix"
18638 eval x=\"$x\"
18639 exec_prefix="$acl_save_exec_prefix"
18640 prefix="$acl_save_prefix"
18641
18642 if test "X$x" = "X$element"; then
18643 haveit=yes
18644 break
18645 fi
18646 done
18647 if test -z "$haveit"; then
18648 LIBS="${LIBS}${LIBS:+ }$element"
18649 fi
18650 done
18651
18652
18653 CY_EXECUTE=1
18654
18655
18656
18657 fi
18658
18659 elif test $pkg_failed = untried; then
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18662
18663
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18665 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18666 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669
18670 ac_check_framework_save_LIBS=$LIBS
18671 LIBS="-framework JavaScriptCore $LIBS"
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674
18675 #include <JavaScriptCore/JSBase.h>
18676
18677 int
18678 main ()
18679 {
18680
18681 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18682
18683 ;
18684 return 0;
18685 }
18686 _ACEOF
18687 if ac_fn_cxx_try_link "$LINENO"; then :
18688
18689 ac_cv_framework_JavaScriptCore=yes
18690
18691 else
18692 ac_cv_framework_JavaScriptCore=no
18693 fi
18694 rm -f core conftest.err conftest.$ac_objext \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_framework_save_LIBS
18697
18698 fi
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18700 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18701 if test $ac_cv_framework_JavaScriptCore = yes; then :
18702
18703
18704 for element in "-framework JavaScriptCore $LIBS"; do
18705 haveit=
18706 for x in $LIBS; do
18707
18708 acl_save_prefix="$prefix"
18709 prefix="$acl_final_prefix"
18710 acl_save_exec_prefix="$exec_prefix"
18711 exec_prefix="$acl_final_exec_prefix"
18712 eval x=\"$x\"
18713 exec_prefix="$acl_save_exec_prefix"
18714 prefix="$acl_save_prefix"
18715
18716 if test "X$x" = "X$element"; then
18717 haveit=yes
18718 break
18719 fi
18720 done
18721 if test -z "$haveit"; then
18722 LIBS="${LIBS}${LIBS:+ }$element"
18723 fi
18724 done
18725
18726
18727 CY_EXECUTE=1
18728
18729
18730
18731 fi
18732
18733 else
18734 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18735 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18738
18739 CY_EXECUTE=1
18740
18741
18742 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18743 haveit=
18744 for x in $CXXFLAGS; do
18745
18746 acl_save_prefix="$prefix"
18747 prefix="$acl_final_prefix"
18748 acl_save_exec_prefix="$exec_prefix"
18749 exec_prefix="$acl_final_exec_prefix"
18750 eval x=\"$x\"
18751 exec_prefix="$acl_save_exec_prefix"
18752 prefix="$acl_save_prefix"
18753
18754 if test "X$x" = "X$element"; then
18755 haveit=yes
18756 break
18757 fi
18758 done
18759 if test -z "$haveit"; then
18760 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18761 fi
18762 done
18763
18764
18765 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18766 haveit=
18767 for x in $LIBS; do
18768
18769 acl_save_prefix="$prefix"
18770 prefix="$acl_final_prefix"
18771 acl_save_exec_prefix="$exec_prefix"
18772 exec_prefix="$acl_final_exec_prefix"
18773 eval x=\"$x\"
18774 exec_prefix="$acl_save_exec_prefix"
18775 prefix="$acl_save_prefix"
18776
18777 if test "X$x" = "X$element"; then
18778 haveit=yes
18779 break
18780 fi
18781 done
18782 if test -z "$haveit"; then
18783 LIBS="${LIBS}${LIBS:+ }$element"
18784 fi
18785 done
18786
18787
18788 fi
18789
18790 elif test $pkg_failed = untried; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18792 $as_echo "no" >&6; }
18793
18794
18795 pkg_failed=no
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18797 $as_echo_n "checking for WEBKIT... " >&6; }
18798
18799 if test -n "$WEBKIT_CFLAGS"; then
18800 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18801 elif test -n "$PKG_CONFIG"; then
18802 if test -n "$PKG_CONFIG" && \
18803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18804 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18805 ac_status=$?
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; then
18808 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18809 else
18810 pkg_failed=yes
18811 fi
18812 else
18813 pkg_failed=untried
18814 fi
18815 if test -n "$WEBKIT_LIBS"; then
18816 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18817 elif test -n "$PKG_CONFIG"; then
18818 if test -n "$PKG_CONFIG" && \
18819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18820 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18821 ac_status=$?
18822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18823 test $ac_status = 0; }; then
18824 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18825 else
18826 pkg_failed=yes
18827 fi
18828 else
18829 pkg_failed=untried
18830 fi
18831
18832
18833
18834 if test $pkg_failed = yes; then
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 $as_echo "no" >&6; }
18837
18838 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18839 _pkg_short_errors_supported=yes
18840 else
18841 _pkg_short_errors_supported=no
18842 fi
18843 if test $_pkg_short_errors_supported = yes; then
18844 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18845 else
18846 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18847 fi
18848 # Put the nasty error message in config.log where it belongs
18849 echo "$WEBKIT_PKG_ERRORS" >&5
18850
18851
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18854 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18855 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18856 $as_echo_n "(cached) " >&6
18857 else
18858
18859 ac_check_framework_save_LIBS=$LIBS
18860 LIBS="-framework JavaScriptCore $LIBS"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863
18864 #include <JavaScriptCore/JSBase.h>
18865
18866 int
18867 main ()
18868 {
18869
18870 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18871
18872 ;
18873 return 0;
18874 }
18875 _ACEOF
18876 if ac_fn_cxx_try_link "$LINENO"; then :
18877
18878 ac_cv_framework_JavaScriptCore=yes
18879
18880 else
18881 ac_cv_framework_JavaScriptCore=no
18882 fi
18883 rm -f core conftest.err conftest.$ac_objext \
18884 conftest$ac_exeext conftest.$ac_ext
18885 LIBS=$ac_check_framework_save_LIBS
18886
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18889 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18890 if test $ac_cv_framework_JavaScriptCore = yes; then :
18891
18892
18893 for element in "-framework JavaScriptCore $LIBS"; do
18894 haveit=
18895 for x in $LIBS; do
18896
18897 acl_save_prefix="$prefix"
18898 prefix="$acl_final_prefix"
18899 acl_save_exec_prefix="$exec_prefix"
18900 exec_prefix="$acl_final_exec_prefix"
18901 eval x=\"$x\"
18902 exec_prefix="$acl_save_exec_prefix"
18903 prefix="$acl_save_prefix"
18904
18905 if test "X$x" = "X$element"; then
18906 haveit=yes
18907 break
18908 fi
18909 done
18910 if test -z "$haveit"; then
18911 LIBS="${LIBS}${LIBS:+ }$element"
18912 fi
18913 done
18914
18915
18916 CY_EXECUTE=1
18917
18918
18919
18920 fi
18921
18922 elif test $pkg_failed = untried; then
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18924 $as_echo "no" >&6; }
18925
18926
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18928 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18929 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18930 $as_echo_n "(cached) " >&6
18931 else
18932
18933 ac_check_framework_save_LIBS=$LIBS
18934 LIBS="-framework JavaScriptCore $LIBS"
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18937
18938 #include <JavaScriptCore/JSBase.h>
18939
18940 int
18941 main ()
18942 {
18943
18944 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18945
18946 ;
18947 return 0;
18948 }
18949 _ACEOF
18950 if ac_fn_cxx_try_link "$LINENO"; then :
18951
18952 ac_cv_framework_JavaScriptCore=yes
18953
18954 else
18955 ac_cv_framework_JavaScriptCore=no
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext conftest.$ac_ext
18959 LIBS=$ac_check_framework_save_LIBS
18960
18961 fi
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18963 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18964 if test $ac_cv_framework_JavaScriptCore = yes; then :
18965
18966
18967 for element in "-framework JavaScriptCore $LIBS"; do
18968 haveit=
18969 for x in $LIBS; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X$element"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
18985 LIBS="${LIBS}${LIBS:+ }$element"
18986 fi
18987 done
18988
18989
18990 CY_EXECUTE=1
18991
18992
18993
18994 fi
18995
18996 else
18997 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18998 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19000 $as_echo "yes" >&6; }
19001
19002 CY_EXECUTE=1
19003
19004
19005 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
19006 haveit=
19007 for x in $CXXFLAGS; do
19008
19009 acl_save_prefix="$prefix"
19010 prefix="$acl_final_prefix"
19011 acl_save_exec_prefix="$exec_prefix"
19012 exec_prefix="$acl_final_exec_prefix"
19013 eval x=\"$x\"
19014 exec_prefix="$acl_save_exec_prefix"
19015 prefix="$acl_save_prefix"
19016
19017 if test "X$x" = "X$element"; then
19018 haveit=yes
19019 break
19020 fi
19021 done
19022 if test -z "$haveit"; then
19023 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19024 fi
19025 done
19026
19027
19028 for element in `$PKG_CONFIG --libs WebKitGtk`; do
19029 haveit=
19030 for x in $LIBS; do
19031
19032 acl_save_prefix="$prefix"
19033 prefix="$acl_final_prefix"
19034 acl_save_exec_prefix="$exec_prefix"
19035 exec_prefix="$acl_final_exec_prefix"
19036 eval x=\"$x\"
19037 exec_prefix="$acl_save_exec_prefix"
19038 prefix="$acl_save_prefix"
19039
19040 if test "X$x" = "X$element"; then
19041 haveit=yes
19042 break
19043 fi
19044 done
19045 if test -z "$haveit"; then
19046 LIBS="${LIBS}${LIBS:+ }$element"
19047 fi
19048 done
19049
19050
19051 fi
19052
19053 else
19054 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19055 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19057 $as_echo "yes" >&6; }
19058
19059 CY_EXECUTE=1
19060
19061
19062 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
19063 haveit=
19064 for x in $CXXFLAGS; do
19065
19066 acl_save_prefix="$prefix"
19067 prefix="$acl_final_prefix"
19068 acl_save_exec_prefix="$exec_prefix"
19069 exec_prefix="$acl_final_exec_prefix"
19070 eval x=\"$x\"
19071 exec_prefix="$acl_save_exec_prefix"
19072 prefix="$acl_save_prefix"
19073
19074 if test "X$x" = "X$element"; then
19075 haveit=yes
19076 break
19077 fi
19078 done
19079 if test -z "$haveit"; then
19080 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19081 fi
19082 done
19083
19084
19085 for element in `$PKG_CONFIG --libs webkit-1.0`; do
19086 haveit=
19087 for x in $LIBS; do
19088
19089 acl_save_prefix="$prefix"
19090 prefix="$acl_final_prefix"
19091 acl_save_exec_prefix="$exec_prefix"
19092 exec_prefix="$acl_final_exec_prefix"
19093 eval x=\"$x\"
19094 exec_prefix="$acl_save_exec_prefix"
19095 prefix="$acl_save_prefix"
19096
19097 if test "X$x" = "X$element"; then
19098 haveit=yes
19099 break
19100 fi
19101 done
19102 if test -z "$haveit"; then
19103 LIBS="${LIBS}${LIBS:+ }$element"
19104 fi
19105 done
19106
19107
19108 fi
19109
19110 fi
19111
19112
19113
19114 apr_found="no"
19115
19116 if test "$target_os" = "os2-emx"; then
19117 # Scripts don't pass test -x on OS/2
19118 TEST_X="test -f"
19119 else
19120 TEST_X="test -x"
19121 fi
19122
19123 acceptable_majors="1"
19124
19125 apr_temp_acceptable_apr_config=""
19126 for apr_temp_major in $acceptable_majors
19127 do
19128 case $apr_temp_major in
19129 0)
19130 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19131 ;;
19132 *)
19133 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19134 ;;
19135 esac
19136 done
19137
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19139 $as_echo_n "checking for APR... " >&6; }
19140
19141 # Check whether --with-apr was given.
19142 if test "${with_apr+set}" = set; then :
19143 withval=$with_apr;
19144 if test "$withval" = "no" || test "$withval" = "yes"; then
19145 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19146 fi
19147
19148 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19149 do
19150 for lookdir in "$withval/bin" "$withval"
19151 do
19152 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19153 apr_config="$lookdir/$apr_temp_apr_config_file"
19154
19155 apr_found="yes"
19156 break 2
19157 fi
19158 done
19159 done
19160
19161 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19162 apr_config="$withval"
19163 apr_found="yes"
19164 fi
19165
19166 if test "$apr_found" != "yes"; then
19167 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
19168 fi
19169
19170 else
19171
19172 if test -n "1" && test "1" = "1"; then
19173 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19174 do
19175 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19176 apr_config="$apr_temp_apr_config_file"
19177
19178 apr_found="yes"
19179 break
19180 else
19181 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19182 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19183 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19184
19185 apr_found="yes"
19186 break 2
19187 fi
19188 done
19189 fi
19190 done
19191 fi
19192 if test "$apr_found" = "no" && test -d ""; then
19193 apr_temp_abs_srcdir="`cd && pwd`"
19194 apr_found="reconfig"
19195 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19196 case $apr_bundled_major in
19197 "")
19198 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19199 ;;
19200 0)
19201 apr_temp_apr_config_file="apr-config"
19202 ;;
19203 *)
19204 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19205 ;;
19206 esac
19207 if test -n ""; then
19208 apr_config="/$apr_temp_apr_config_file"
19209 else
19210 apr_config="/$apr_temp_apr_config_file"
19211 fi
19212 fi
19213
19214 fi
19215
19216
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19218 $as_echo "$apr_found" >&6; }
19219
19220 case $apr_found in #(
19221 yes) :
19222
19223
19224 for element in `$apr_config --includes`; do
19225 haveit=
19226 for x in $CPPFLAGS; do
19227
19228 acl_save_prefix="$prefix"
19229 prefix="$acl_final_prefix"
19230 acl_save_exec_prefix="$exec_prefix"
19231 exec_prefix="$acl_final_exec_prefix"
19232 eval x=\"$x\"
19233 exec_prefix="$acl_save_exec_prefix"
19234 prefix="$acl_save_prefix"
19235
19236 if test "X$x" = "X$element"; then
19237 haveit=yes
19238 break
19239 fi
19240 done
19241 if test -z "$haveit"; then
19242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19243 fi
19244 done
19245
19246
19247 for element in `$apr_config --link-libtool`; do
19248 haveit=
19249 for x in $LTLIBAPR; do
19250
19251 acl_save_prefix="$prefix"
19252 prefix="$acl_final_prefix"
19253 acl_save_exec_prefix="$exec_prefix"
19254 exec_prefix="$acl_final_exec_prefix"
19255 eval x=\"$x\"
19256 exec_prefix="$acl_save_exec_prefix"
19257 prefix="$acl_save_prefix"
19258
19259 if test "X$x" = "X$element"; then
19260 haveit=yes
19261 break
19262 fi
19263 done
19264 if test -z "$haveit"; then
19265 LTLIBAPR="${LTLIBAPR}${LTLIBAPR:+ }$element"
19266 fi
19267 done
19268
19269
19270 ;; #(
19271 *) :
19272 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19273 esac
19274
19275
19276
19277 if test "x$CY_EXECUTE" = x1; then
19278 CY_EXECUTE_TRUE=
19279 CY_EXECUTE_FALSE='#'
19280 else
19281 CY_EXECUTE_TRUE='#'
19282 CY_EXECUTE_FALSE=
19283 fi
19284
19285
19286
19287
19288 case $CY_EXECUTE in #(
19289 1) :
19290
19291 for ac_header in ffi.h ffi/ffi.h
19292 do :
19293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19294 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19296 cat >>confdefs.h <<_ACEOF
19297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19298 _ACEOF
19299 break
19300 fi
19301
19302 done
19303
19304 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19305
19306
19307
19308 pkg_failed=no
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19310 $as_echo_n "checking for LIBFFI... " >&6; }
19311
19312 if test -n "$LIBFFI_CFLAGS"; then
19313 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19314 elif test -n "$PKG_CONFIG"; then
19315 if test -n "$PKG_CONFIG" && \
19316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19317 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19318 ac_status=$?
19319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19320 test $ac_status = 0; }; then
19321 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19322 else
19323 pkg_failed=yes
19324 fi
19325 else
19326 pkg_failed=untried
19327 fi
19328 if test -n "$LIBFFI_LIBS"; then
19329 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19330 elif test -n "$PKG_CONFIG"; then
19331 if test -n "$PKG_CONFIG" && \
19332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19333 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19334 ac_status=$?
19335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19336 test $ac_status = 0; }; then
19337 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19338 else
19339 pkg_failed=yes
19340 fi
19341 else
19342 pkg_failed=untried
19343 fi
19344
19345
19346
19347 if test $pkg_failed = yes; then
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19350
19351 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19352 _pkg_short_errors_supported=yes
19353 else
19354 _pkg_short_errors_supported=no
19355 fi
19356 if test $_pkg_short_errors_supported = yes; then
19357 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19358 else
19359 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19360 fi
19361 # Put the nasty error message in config.log where it belongs
19362 echo "$LIBFFI_PKG_ERRORS" >&5
19363
19364 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19365 elif test $pkg_failed = untried; then
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19368 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19369 else
19370 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19371 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19373 $as_echo "yes" >&6; }
19374
19375
19376 for element in `$PKG_CONFIG --cflags libffi`; do
19377 haveit=
19378 for x in $CXXFLAGS; do
19379
19380 acl_save_prefix="$prefix"
19381 prefix="$acl_final_prefix"
19382 acl_save_exec_prefix="$exec_prefix"
19383 exec_prefix="$acl_final_exec_prefix"
19384 eval x=\"$x\"
19385 exec_prefix="$acl_save_exec_prefix"
19386 prefix="$acl_save_prefix"
19387
19388 if test "X$x" = "X$element"; then
19389 haveit=yes
19390 break
19391 fi
19392 done
19393 if test -z "$haveit"; then
19394 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19395 fi
19396 done
19397
19398
19399 for element in `$PKG_CONFIG --libs libffi`; do
19400 haveit=
19401 for x in $LIBS; do
19402
19403 acl_save_prefix="$prefix"
19404 prefix="$acl_final_prefix"
19405 acl_save_exec_prefix="$exec_prefix"
19406 exec_prefix="$acl_final_exec_prefix"
19407 eval x=\"$x\"
19408 exec_prefix="$acl_save_exec_prefix"
19409 prefix="$acl_save_prefix"
19410
19411 if test "X$x" = "X$element"; then
19412 haveit=yes
19413 break
19414 fi
19415 done
19416 if test -z "$haveit"; then
19417 LIBS="${LIBS}${LIBS:+ }$element"
19418 fi
19419 done
19420
19421
19422 fi
19423
19424 else
19425
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19427 $as_echo_n "checking for library containing ffi_call... " >&6; }
19428 if ${ac_cv_search_ffi_call+:} false; then :
19429 $as_echo_n "(cached) " >&6
19430 else
19431 ac_func_search_save_LIBS=$LIBS
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434
19435 /* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19438 #ifdef __cplusplus
19439 extern "C"
19440 #endif
19441 char ffi_call ();
19442 int
19443 main ()
19444 {
19445 return ffi_call ();
19446 ;
19447 return 0;
19448 }
19449 _ACEOF
19450 for ac_lib in '' ffi; do
19451 if test -z "$ac_lib"; then
19452 ac_res="none required"
19453 else
19454 ac_res=-l$ac_lib
19455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19456 fi
19457 if ac_fn_cxx_try_link "$LINENO"; then :
19458 ac_cv_search_ffi_call=$ac_res
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext
19462 if ${ac_cv_search_ffi_call+:} false; then :
19463 break
19464 fi
19465 done
19466 if ${ac_cv_search_ffi_call+:} false; then :
19467
19468 else
19469 ac_cv_search_ffi_call=no
19470 fi
19471 rm conftest.$ac_ext
19472 LIBS=$ac_func_search_save_LIBS
19473 fi
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19475 $as_echo "$ac_cv_search_ffi_call" >&6; }
19476 ac_res=$ac_cv_search_ffi_call
19477 if test "$ac_res" != no; then :
19478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19479
19480 fi
19481
19482 case $ac_cv_search_ffi_call in #(
19483 no) :
19484
19485
19486 pkg_failed=no
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19488 $as_echo_n "checking for LIBFFI... " >&6; }
19489
19490 if test -n "$LIBFFI_CFLAGS"; then
19491 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19492 elif test -n "$PKG_CONFIG"; then
19493 if test -n "$PKG_CONFIG" && \
19494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19495 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19496 ac_status=$?
19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; then
19499 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19500 else
19501 pkg_failed=yes
19502 fi
19503 else
19504 pkg_failed=untried
19505 fi
19506 if test -n "$LIBFFI_LIBS"; then
19507 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19508 elif test -n "$PKG_CONFIG"; then
19509 if test -n "$PKG_CONFIG" && \
19510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19511 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19512 ac_status=$?
19513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19514 test $ac_status = 0; }; then
19515 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19516 else
19517 pkg_failed=yes
19518 fi
19519 else
19520 pkg_failed=untried
19521 fi
19522
19523
19524
19525 if test $pkg_failed = yes; then
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 $as_echo "no" >&6; }
19528
19529 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530 _pkg_short_errors_supported=yes
19531 else
19532 _pkg_short_errors_supported=no
19533 fi
19534 if test $_pkg_short_errors_supported = yes; then
19535 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19536 else
19537 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19538 fi
19539 # Put the nasty error message in config.log where it belongs
19540 echo "$LIBFFI_PKG_ERRORS" >&5
19541
19542 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19543 elif test $pkg_failed = untried; then
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19545 $as_echo "no" >&6; }
19546 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19547 else
19548 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19549 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19551 $as_echo "yes" >&6; }
19552
19553
19554 for element in `$PKG_CONFIG --cflags libffi`; do
19555 haveit=
19556 for x in $CXXFLAGS; do
19557
19558 acl_save_prefix="$prefix"
19559 prefix="$acl_final_prefix"
19560 acl_save_exec_prefix="$exec_prefix"
19561 exec_prefix="$acl_final_exec_prefix"
19562 eval x=\"$x\"
19563 exec_prefix="$acl_save_exec_prefix"
19564 prefix="$acl_save_prefix"
19565
19566 if test "X$x" = "X$element"; then
19567 haveit=yes
19568 break
19569 fi
19570 done
19571 if test -z "$haveit"; then
19572 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19573 fi
19574 done
19575
19576
19577 for element in `$PKG_CONFIG --libs libffi`; do
19578 haveit=
19579 for x in $LIBS; do
19580
19581 acl_save_prefix="$prefix"
19582 prefix="$acl_final_prefix"
19583 acl_save_exec_prefix="$exec_prefix"
19584 exec_prefix="$acl_final_exec_prefix"
19585 eval x=\"$x\"
19586 exec_prefix="$acl_save_exec_prefix"
19587 prefix="$acl_save_prefix"
19588
19589 if test "X$x" = "X$element"; then
19590 haveit=yes
19591 break
19592 fi
19593 done
19594 if test -z "$haveit"; then
19595 LIBS="${LIBS}${LIBS:+ }$element"
19596 fi
19597 done
19598
19599
19600 fi ;; #(
19601 *) :
19602 ;;
19603 esac
19604
19605 fi
19606
19607 ac_ext=mm
19608 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19609 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19610 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19611 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19612
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19615 $as_echo_n "checking if we really have Objective C++... " >&6; }
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618
19619 _ACEOF
19620 if ac_fn_objcxx_try_compile "$LINENO"; then :
19621
19622 CY_OBJECTIVEC=1
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624 $as_echo "yes" >&6; }
19625
19626 else
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19628 $as_echo "no" >&6; }
19629 fi
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631
19632 if test "x$CY_OBJECTIVEC" = x1; then :
19633
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19636 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19637 if ${ac_cv_framework_CoreFoundation+:} false; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640
19641 ac_check_framework_save_LIBS=$LIBS
19642 LIBS="-framework CoreFoundation $LIBS"
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645
19646 #include <CoreFoundation/CFBase.h>
19647
19648 int
19649 main ()
19650 {
19651 CFAllocatorGetDefault();
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_objcxx_try_link "$LINENO"; then :
19657
19658 ac_cv_framework_CoreFoundation=yes
19659
19660 else
19661 ac_cv_framework_CoreFoundation=no
19662 fi
19663 rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_framework_save_LIBS
19666
19667 fi
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19669 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19670 if test $ac_cv_framework_CoreFoundation = yes; then :
19671
19672
19673 for element in "-framework CoreFoundation $LIBS"; do
19674 haveit=
19675 for x in $LIBS; do
19676
19677 acl_save_prefix="$prefix"
19678 prefix="$acl_final_prefix"
19679 acl_save_exec_prefix="$exec_prefix"
19680 exec_prefix="$acl_final_exec_prefix"
19681 eval x=\"$x\"
19682 exec_prefix="$acl_save_exec_prefix"
19683 prefix="$acl_save_prefix"
19684
19685 if test "X$x" = "X$element"; then
19686 haveit=yes
19687 break
19688 fi
19689 done
19690 if test -z "$haveit"; then
19691 LIBS="${LIBS}${LIBS:+ }$element"
19692 fi
19693 done
19694
19695
19696
19697
19698
19699
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19701 $as_echo_n "checking for framework Foundation... " >&6; }
19702 if ${ac_cv_framework_Foundation+:} false; then :
19703 $as_echo_n "(cached) " >&6
19704 else
19705
19706 ac_check_framework_save_LIBS=$LIBS
19707 LIBS="-framework Foundation $LIBS"
19708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19709 /* end confdefs.h. */
19710
19711 #include <Foundation/NSObject.h>
19712
19713 int
19714 main ()
19715 {
19716 [[NSObject alloc] init];
19717 ;
19718 return 0;
19719 }
19720 _ACEOF
19721 if ac_fn_objcxx_try_link "$LINENO"; then :
19722
19723 ac_cv_framework_Foundation=yes
19724
19725 else
19726 ac_cv_framework_Foundation=no
19727 fi
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 LIBS=$ac_check_framework_save_LIBS
19731
19732 fi
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19734 $as_echo "$ac_cv_framework_Foundation" >&6; }
19735 if test $ac_cv_framework_Foundation = yes; then :
19736
19737
19738 for element in "-framework Foundation $LIBS"; do
19739 haveit=
19740 for x in $LIBS; do
19741
19742 acl_save_prefix="$prefix"
19743 prefix="$acl_final_prefix"
19744 acl_save_exec_prefix="$exec_prefix"
19745 exec_prefix="$acl_final_exec_prefix"
19746 eval x=\"$x\"
19747 exec_prefix="$acl_save_exec_prefix"
19748 prefix="$acl_save_prefix"
19749
19750 if test "X$x" = "X$element"; then
19751 haveit=yes
19752 break
19753 fi
19754 done
19755 if test -z "$haveit"; then
19756 LIBS="${LIBS}${LIBS:+ }$element"
19757 fi
19758 done
19759
19760 cat >>confdefs.h <<_ACEOF
19761 #define HAVE_FRAMEWORK_FOUNDATION 1
19762 _ACEOF
19763
19764
19765 fi
19766
19767
19768
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19770 $as_echo_n "checking for framework WebKit... " >&6; }
19771 if ${ac_cv_framework_WebKit+:} false; then :
19772 $as_echo_n "(cached) " >&6
19773 else
19774
19775 ac_check_framework_save_LIBS=$LIBS
19776 LIBS="-framework WebKit $LIBS"
19777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778 /* end confdefs.h. */
19779
19780 #include <WebKit/WebScriptObject.h>
19781
19782 int
19783 main ()
19784 {
19785 [[WebScriptObject alloc] init];
19786 ;
19787 return 0;
19788 }
19789 _ACEOF
19790 if ac_fn_objcxx_try_link "$LINENO"; then :
19791
19792 ac_cv_framework_WebKit=yes
19793
19794 else
19795 ac_cv_framework_WebKit=no
19796 fi
19797 rm -f core conftest.err conftest.$ac_objext \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_framework_save_LIBS
19800
19801 fi
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19803 $as_echo "$ac_cv_framework_WebKit" >&6; }
19804 if test $ac_cv_framework_WebKit = yes; then :
19805
19806
19807 for element in "-framework WebKit $LIBS"; do
19808 haveit=
19809 for x in $LIBS; do
19810
19811 acl_save_prefix="$prefix"
19812 prefix="$acl_final_prefix"
19813 acl_save_exec_prefix="$exec_prefix"
19814 exec_prefix="$acl_final_exec_prefix"
19815 eval x=\"$x\"
19816 exec_prefix="$acl_save_exec_prefix"
19817 prefix="$acl_save_prefix"
19818
19819 if test "X$x" = "X$element"; then
19820 haveit=yes
19821 break
19822 fi
19823 done
19824 if test -z "$haveit"; then
19825 LIBS="${LIBS}${LIBS:+ }$element"
19826 fi
19827 done
19828
19829 cat >>confdefs.h <<_ACEOF
19830 #define HAVE_FRAMEWORK_WEBKIT 1
19831 _ACEOF
19832
19833
19834 fi
19835
19836
19837 else
19838
19839
19840 for ac_prog in gnustep-config
19841 do
19842 # Extract the first word of "$ac_prog", so it can be a program name with args.
19843 set dummy $ac_prog; ac_word=$2
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19845 $as_echo_n "checking for $ac_word... " >&6; }
19846 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19847 $as_echo_n "(cached) " >&6
19848 else
19849 if test -n "$GNUSTEP_CONFIG"; then
19850 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19851 else
19852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19853 for as_dir in $PATH
19854 do
19855 IFS=$as_save_IFS
19856 test -z "$as_dir" && as_dir=.
19857 for ac_exec_ext in '' $ac_executable_extensions; do
19858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19859 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19861 break 2
19862 fi
19863 done
19864 done
19865 IFS=$as_save_IFS
19866
19867 fi
19868 fi
19869 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19870 if test -n "$GNUSTEP_CONFIG"; then
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19872 $as_echo "$GNUSTEP_CONFIG" >&6; }
19873 else
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875 $as_echo "no" >&6; }
19876 fi
19877
19878
19879 test -n "$GNUSTEP_CONFIG" && break
19880 done
19881
19882
19883 if test "x$GNUSTEP_CONFIG" != x; then :
19884
19885
19886
19887 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19888 haveit=
19889 for x in $OBJCXXFLAGS; do
19890
19891 acl_save_prefix="$prefix"
19892 prefix="$acl_final_prefix"
19893 acl_save_exec_prefix="$exec_prefix"
19894 exec_prefix="$acl_final_exec_prefix"
19895 eval x=\"$x\"
19896 exec_prefix="$acl_save_exec_prefix"
19897 prefix="$acl_save_prefix"
19898
19899 if test "X$x" = "X$element"; then
19900 haveit=yes
19901 break
19902 fi
19903 done
19904 if test -z "$haveit"; then
19905 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19906 fi
19907 done
19908
19909
19910 for element in `$GNUSTEP_CONFIG --base-libs`; do
19911 haveit=
19912 for x in $LIBS; do
19913
19914 acl_save_prefix="$prefix"
19915 prefix="$acl_final_prefix"
19916 acl_save_exec_prefix="$exec_prefix"
19917 exec_prefix="$acl_final_exec_prefix"
19918 eval x=\"$x\"
19919 exec_prefix="$acl_save_exec_prefix"
19920 prefix="$acl_save_prefix"
19921
19922 if test "X$x" = "X$element"; then
19923 haveit=yes
19924 break
19925 fi
19926 done
19927 if test -z "$haveit"; then
19928 LIBS="${LIBS}${LIBS:+ }$element"
19929 fi
19930 done
19931
19932
19933 else
19934 CY_OBJECTIVEC=0
19935
19936 fi
19937
19938 fi
19939
19940 fi
19941
19942 ac_ext=cpp
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19947
19948 ;; #(
19949 *) :
19950 ;;
19951 esac
19952
19953 if test "x$CY_OBJECTIVEC" = x1; then
19954 CY_OBJECTIVEC_TRUE=
19955 CY_OBJECTIVEC_FALSE='#'
19956 else
19957 CY_OBJECTIVEC_TRUE='#'
19958 CY_OBJECTIVEC_FALSE=
19959 fi
19960
19961
19962
19963
19964
19965 cy_save=$LIBS
19966 LIBS=
19967
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19969 $as_echo_n "checking for a readline compatible library... " >&6; }
19970 if ${ax_cv_lib_readline+:} false; then :
19971 $as_echo_n "(cached) " >&6
19972 else
19973
19974 ORIG_LIBS="$LIBS"
19975 for readline_lib in readline edit editline; do
19976 for termcap_lib in "" termcap curses ncurses; do
19977 if test -z "$termcap_lib"; then
19978 TRY_LIB="-l$readline_lib"
19979 else
19980 TRY_LIB="-l$readline_lib -l$termcap_lib"
19981 fi
19982 LIBS="$ORIG_LIBS $TRY_LIB"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19985
19986 /* Override any GCC internal prototype to avoid an error.
19987 Use char because int might match the return type of a GCC
19988 builtin and then its argument prototype would still apply. */
19989 #ifdef __cplusplus
19990 extern "C"
19991 #endif
19992 char readline ();
19993 int
19994 main ()
19995 {
19996 return readline ();
19997 ;
19998 return 0;
19999 }
20000 _ACEOF
20001 if ac_fn_cxx_try_link "$LINENO"; then :
20002 ax_cv_lib_readline="$TRY_LIB"
20003 fi
20004 rm -f core conftest.err conftest.$ac_objext \
20005 conftest$ac_exeext conftest.$ac_ext
20006 if test -n "$ax_cv_lib_readline"; then
20007 break
20008 fi
20009 done
20010 if test -n "$ax_cv_lib_readline"; then
20011 break
20012 fi
20013 done
20014 if test -z "$ax_cv_lib_readline"; then
20015 ax_cv_lib_readline="no"
20016 fi
20017 LIBS="$ORIG_LIBS"
20018
20019 fi
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20021 $as_echo "$ax_cv_lib_readline" >&6; }
20022
20023 if test "$ax_cv_lib_readline" != "no"; then
20024 LIBS="$LIBS $ax_cv_lib_readline"
20025
20026 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20027
20028 for ac_header in readline.h readline/readline.h
20029 do :
20030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20031 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20033 cat >>confdefs.h <<_ACEOF
20034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20035 _ACEOF
20036
20037 fi
20038
20039 done
20040
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20042 $as_echo_n "checking whether readline supports history... " >&6; }
20043 if ${ax_cv_lib_readline_history+:} false; then :
20044 $as_echo_n "(cached) " >&6
20045 else
20046
20047 ax_cv_lib_readline_history="no"
20048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h. */
20050
20051 /* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20054 #ifdef __cplusplus
20055 extern "C"
20056 #endif
20057 char add_history ();
20058 int
20059 main ()
20060 {
20061 return add_history ();
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 if ac_fn_cxx_try_link "$LINENO"; then :
20067 ax_cv_lib_readline_history="yes"
20068 fi
20069 rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20071
20072 fi
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20074 $as_echo "$ax_cv_lib_readline_history" >&6; }
20075 if test "$ax_cv_lib_readline_history" = "yes"; then
20076
20077 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20078
20079 for ac_header in history.h readline/history.h
20080 do :
20081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20084 cat >>confdefs.h <<_ACEOF
20085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20086 _ACEOF
20087
20088 fi
20089
20090 done
20091
20092 fi
20093 fi
20094
20095 LTLIBREADLINE=$LIBS
20096 LIBS=$cy_save
20097
20098 case $ax_cv_lib_readline in #(
20099 no) :
20100 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20101 *) :
20102 ;;
20103 esac
20104
20105
20106 cy_save=$LIBS
20107 LIBS=
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20109 $as_echo_n "checking for library containing cur_term... " >&6; }
20110 if ${ac_cv_search_cur_term+:} false; then :
20111 $as_echo_n "(cached) " >&6
20112 else
20113 ac_func_search_save_LIBS=$LIBS
20114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20116
20117 /* Override any GCC internal prototype to avoid an error.
20118 Use char because int might match the return type of a GCC
20119 builtin and then its argument prototype would still apply. */
20120 #ifdef __cplusplus
20121 extern "C"
20122 #endif
20123 char cur_term ();
20124 int
20125 main ()
20126 {
20127 return cur_term ();
20128 ;
20129 return 0;
20130 }
20131 _ACEOF
20132 for ac_lib in '' termcap; do
20133 if test -z "$ac_lib"; then
20134 ac_res="none required"
20135 else
20136 ac_res=-l$ac_lib
20137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20138 fi
20139 if ac_fn_cxx_try_link "$LINENO"; then :
20140 ac_cv_search_cur_term=$ac_res
20141 fi
20142 rm -f core conftest.err conftest.$ac_objext \
20143 conftest$ac_exeext
20144 if ${ac_cv_search_cur_term+:} false; then :
20145 break
20146 fi
20147 done
20148 if ${ac_cv_search_cur_term+:} false; then :
20149
20150 else
20151 ac_cv_search_cur_term=no
20152 fi
20153 rm conftest.$ac_ext
20154 LIBS=$ac_func_search_save_LIBS
20155 fi
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20157 $as_echo "$ac_cv_search_cur_term" >&6; }
20158 ac_res=$ac_cv_search_cur_term
20159 if test "$ac_res" != no; then :
20160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20161
20162 fi
20163
20164 LTLIBTERMCAP=$LIBS
20165 LIBS=$cy_save
20166
20167
20168 ac_ext=c
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173
20174
20175 if test "X$prefix" = "XNONE"; then
20176 acl_final_prefix="$ac_default_prefix"
20177 else
20178 acl_final_prefix="$prefix"
20179 fi
20180 if test "X$exec_prefix" = "XNONE"; then
20181 acl_final_exec_prefix='${prefix}'
20182 else
20183 acl_final_exec_prefix="$exec_prefix"
20184 fi
20185 acl_save_prefix="$prefix"
20186 prefix="$acl_final_prefix"
20187 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20188 prefix="$acl_save_prefix"
20189
20190
20191
20192 # Check whether --with-gnu-ld was given.
20193 if test "${with_gnu_ld+set}" = set; then :
20194 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20195 else
20196 with_gnu_ld=no
20197 fi
20198
20199 # Prepare PATH_SEPARATOR.
20200 # The user is always right.
20201 if test "${PATH_SEPARATOR+set}" != set; then
20202 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20203 # contains only /bin. Note that ksh looks also at the FPATH variable,
20204 # so we have to set that as well for the test.
20205 PATH_SEPARATOR=:
20206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20207 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20208 || PATH_SEPARATOR=';'
20209 }
20210 fi
20211
20212 ac_prog=ld
20213 if test "$GCC" = yes; then
20214 # Check if gcc -print-prog-name=ld gives a path.
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20216 $as_echo_n "checking for ld used by $CC... " >&6; }
20217 case $host in
20218 *-*-mingw*)
20219 # gcc leaves a trailing carriage return which upsets mingw
20220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20221 *)
20222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20223 esac
20224 case $ac_prog in
20225 # Accept absolute paths.
20226 [\\/]* | ?:[\\/]*)
20227 re_direlt='/[^/][^/]*/\.\./'
20228 # Canonicalize the pathname of ld
20229 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
20230 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
20231 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20232 done
20233 test -z "$LD" && LD="$ac_prog"
20234 ;;
20235 "")
20236 # If it fails, then pretend we aren't using GCC.
20237 ac_prog=ld
20238 ;;
20239 *)
20240 # If it is relative, then search for the first ld in PATH.
20241 with_gnu_ld=unknown
20242 ;;
20243 esac
20244 elif test "$with_gnu_ld" = yes; then
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20246 $as_echo_n "checking for GNU ld... " >&6; }
20247 else
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20249 $as_echo_n "checking for non-GNU ld... " >&6; }
20250 fi
20251 if ${acl_cv_path_LD+:} false; then :
20252 $as_echo_n "(cached) " >&6
20253 else
20254 if test -z "$LD"; then
20255 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20256 for ac_dir in $PATH; do
20257 IFS="$acl_save_ifs"
20258 test -z "$ac_dir" && ac_dir=.
20259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20260 acl_cv_path_LD="$ac_dir/$ac_prog"
20261 # Check to see if the program is GNU ld. I'd rather use --version,
20262 # but apparently some variants of GNU ld only accept -v.
20263 # Break only if it was the GNU/non-GNU ld that we prefer.
20264 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
20265 *GNU* | *'with BFD'*)
20266 test "$with_gnu_ld" != no && break
20267 ;;
20268 *)
20269 test "$with_gnu_ld" != yes && break
20270 ;;
20271 esac
20272 fi
20273 done
20274 IFS="$acl_save_ifs"
20275 else
20276 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20277 fi
20278 fi
20279
20280 LD="$acl_cv_path_LD"
20281 if test -n "$LD"; then
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20283 $as_echo "$LD" >&6; }
20284 else
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20286 $as_echo "no" >&6; }
20287 fi
20288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20291 if ${acl_cv_prog_gnu_ld+:} false; then :
20292 $as_echo_n "(cached) " >&6
20293 else
20294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20295 case `$LD -v 2>&1 </dev/null` in
20296 *GNU* | *'with BFD'*)
20297 acl_cv_prog_gnu_ld=yes
20298 ;;
20299 *)
20300 acl_cv_prog_gnu_ld=no
20301 ;;
20302 esac
20303 fi
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20305 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20306 with_gnu_ld=$acl_cv_prog_gnu_ld
20307
20308
20309
20310
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20312 $as_echo_n "checking for shared library run path origin... " >&6; }
20313 if ${acl_cv_rpath+:} false; then :
20314 $as_echo_n "(cached) " >&6
20315 else
20316
20317 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20318 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20319 . ./conftest.sh
20320 rm -f ./conftest.sh
20321 acl_cv_rpath=done
20322
20323 fi
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20325 $as_echo "$acl_cv_rpath" >&6; }
20326 wl="$acl_cv_wl"
20327 acl_libext="$acl_cv_libext"
20328 acl_shlibext="$acl_cv_shlibext"
20329 acl_libname_spec="$acl_cv_libname_spec"
20330 acl_library_names_spec="$acl_cv_library_names_spec"
20331 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20332 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20333 acl_hardcode_direct="$acl_cv_hardcode_direct"
20334 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20335 # Check whether --enable-rpath was given.
20336 if test "${enable_rpath+set}" = set; then :
20337 enableval=$enable_rpath; :
20338 else
20339 enable_rpath=yes
20340 fi
20341
20342
20343
20344
20345 acl_libdirstem=lib
20346 acl_libdirstem2=
20347 case "$host_os" in
20348 solaris*)
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20350 $as_echo_n "checking for 64-bit host... " >&6; }
20351 if ${gl_cv_solaris_64bit+:} false; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20356
20357 #ifdef _LP64
20358 sixtyfour bits
20359 #endif
20360
20361 _ACEOF
20362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20363 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20364 gl_cv_solaris_64bit=yes
20365 else
20366 gl_cv_solaris_64bit=no
20367 fi
20368 rm -f conftest*
20369
20370
20371 fi
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20373 $as_echo "$gl_cv_solaris_64bit" >&6; }
20374 if test $gl_cv_solaris_64bit = yes; then
20375 acl_libdirstem=lib/64
20376 case "$host_cpu" in
20377 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20378 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20379 esac
20380 fi
20381 ;;
20382 *)
20383 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20384 if test -n "$searchpath"; then
20385 acl_save_IFS="${IFS= }"; IFS=":"
20386 for searchdir in $searchpath; do
20387 if test -d "$searchdir"; then
20388 case "$searchdir" in
20389 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20390 */../ | */.. )
20391 # Better ignore directories of this form. They are misleading.
20392 ;;
20393 *) searchdir=`cd "$searchdir" && pwd`
20394 case "$searchdir" in
20395 */lib64 ) acl_libdirstem=lib64 ;;
20396 esac ;;
20397 esac
20398 fi
20399 done
20400 IFS="$acl_save_IFS"
20401 fi
20402 ;;
20403 esac
20404 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417 use_additional=yes
20418
20419 acl_save_prefix="$prefix"
20420 prefix="$acl_final_prefix"
20421 acl_save_exec_prefix="$exec_prefix"
20422 exec_prefix="$acl_final_exec_prefix"
20423
20424 eval additional_includedir=\"$includedir\"
20425 eval additional_libdir=\"$libdir\"
20426
20427 exec_prefix="$acl_save_exec_prefix"
20428 prefix="$acl_save_prefix"
20429
20430
20431 # Check whether --with-libiconv-prefix was given.
20432 if test "${with_libiconv_prefix+set}" = set; then :
20433 withval=$with_libiconv_prefix;
20434 if test "X$withval" = "Xno"; then
20435 use_additional=no
20436 else
20437 if test "X$withval" = "X"; then
20438
20439 acl_save_prefix="$prefix"
20440 prefix="$acl_final_prefix"
20441 acl_save_exec_prefix="$exec_prefix"
20442 exec_prefix="$acl_final_exec_prefix"
20443
20444 eval additional_includedir=\"$includedir\"
20445 eval additional_libdir=\"$libdir\"
20446
20447 exec_prefix="$acl_save_exec_prefix"
20448 prefix="$acl_save_prefix"
20449
20450 else
20451 additional_includedir="$withval/include"
20452 additional_libdir="$withval/$acl_libdirstem"
20453 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20454 && ! test -d "$withval/$acl_libdirstem"; then
20455 additional_libdir="$withval/$acl_libdirstem2"
20456 fi
20457 fi
20458 fi
20459
20460 fi
20461
20462 LIBICONV=
20463 LTLIBICONV=
20464 INCICONV=
20465 LIBICONV_PREFIX=
20466 HAVE_LIBICONV=
20467 rpathdirs=
20468 ltrpathdirs=
20469 names_already_handled=
20470 names_next_round='iconv '
20471 while test -n "$names_next_round"; do
20472 names_this_round="$names_next_round"
20473 names_next_round=
20474 for name in $names_this_round; do
20475 already_handled=
20476 for n in $names_already_handled; do
20477 if test "$n" = "$name"; then
20478 already_handled=yes
20479 break
20480 fi
20481 done
20482 if test -z "$already_handled"; then
20483 names_already_handled="$names_already_handled $name"
20484 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20485 eval value=\"\$HAVE_LIB$uppername\"
20486 if test -n "$value"; then
20487 if test "$value" = yes; then
20488 eval value=\"\$LIB$uppername\"
20489 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20490 eval value=\"\$LTLIB$uppername\"
20491 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20492 else
20493 :
20494 fi
20495 else
20496 found_dir=
20497 found_la=
20498 found_so=
20499 found_a=
20500 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20501 if test -n "$acl_shlibext"; then
20502 shrext=".$acl_shlibext" # typically: shrext=.so
20503 else
20504 shrext=
20505 fi
20506 if test $use_additional = yes; then
20507 dir="$additional_libdir"
20508 if test -n "$acl_shlibext"; then
20509 if test -f "$dir/$libname$shrext"; then
20510 found_dir="$dir"
20511 found_so="$dir/$libname$shrext"
20512 else
20513 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20514 ver=`(cd "$dir" && \
20515 for f in "$libname$shrext".*; do echo "$f"; done \
20516 | sed -e "s,^$libname$shrext\\\\.,," \
20517 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20518 | sed 1q ) 2>/dev/null`
20519 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20520 found_dir="$dir"
20521 found_so="$dir/$libname$shrext.$ver"
20522 fi
20523 else
20524 eval library_names=\"$acl_library_names_spec\"
20525 for f in $library_names; do
20526 if test -f "$dir/$f"; then
20527 found_dir="$dir"
20528 found_so="$dir/$f"
20529 break
20530 fi
20531 done
20532 fi
20533 fi
20534 fi
20535 if test "X$found_dir" = "X"; then
20536 if test -f "$dir/$libname.$acl_libext"; then
20537 found_dir="$dir"
20538 found_a="$dir/$libname.$acl_libext"
20539 fi
20540 fi
20541 if test "X$found_dir" != "X"; then
20542 if test -f "$dir/$libname.la"; then
20543 found_la="$dir/$libname.la"
20544 fi
20545 fi
20546 fi
20547 if test "X$found_dir" = "X"; then
20548 for x in $LDFLAGS $LTLIBICONV; do
20549
20550 acl_save_prefix="$prefix"
20551 prefix="$acl_final_prefix"
20552 acl_save_exec_prefix="$exec_prefix"
20553 exec_prefix="$acl_final_exec_prefix"
20554 eval x=\"$x\"
20555 exec_prefix="$acl_save_exec_prefix"
20556 prefix="$acl_save_prefix"
20557
20558 case "$x" in
20559 -L*)
20560 dir=`echo "X$x" | sed -e 's/^X-L//'`
20561 if test -n "$acl_shlibext"; then
20562 if test -f "$dir/$libname$shrext"; then
20563 found_dir="$dir"
20564 found_so="$dir/$libname$shrext"
20565 else
20566 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20567 ver=`(cd "$dir" && \
20568 for f in "$libname$shrext".*; do echo "$f"; done \
20569 | sed -e "s,^$libname$shrext\\\\.,," \
20570 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20571 | sed 1q ) 2>/dev/null`
20572 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20573 found_dir="$dir"
20574 found_so="$dir/$libname$shrext.$ver"
20575 fi
20576 else
20577 eval library_names=\"$acl_library_names_spec\"
20578 for f in $library_names; do
20579 if test -f "$dir/$f"; then
20580 found_dir="$dir"
20581 found_so="$dir/$f"
20582 break
20583 fi
20584 done
20585 fi
20586 fi
20587 fi
20588 if test "X$found_dir" = "X"; then
20589 if test -f "$dir/$libname.$acl_libext"; then
20590 found_dir="$dir"
20591 found_a="$dir/$libname.$acl_libext"
20592 fi
20593 fi
20594 if test "X$found_dir" != "X"; then
20595 if test -f "$dir/$libname.la"; then
20596 found_la="$dir/$libname.la"
20597 fi
20598 fi
20599 ;;
20600 esac
20601 if test "X$found_dir" != "X"; then
20602 break
20603 fi
20604 done
20605 fi
20606 if test "X$found_dir" != "X"; then
20607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20608 if test "X$found_so" != "X"; then
20609 if test "$enable_rpath" = no \
20610 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20611 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20612 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20613 else
20614 haveit=
20615 for x in $ltrpathdirs; do
20616 if test "X$x" = "X$found_dir"; then
20617 haveit=yes
20618 break
20619 fi
20620 done
20621 if test -z "$haveit"; then
20622 ltrpathdirs="$ltrpathdirs $found_dir"
20623 fi
20624 if test "$acl_hardcode_direct" = yes; then
20625 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20626 else
20627 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20628 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20629 haveit=
20630 for x in $rpathdirs; do
20631 if test "X$x" = "X$found_dir"; then
20632 haveit=yes
20633 break
20634 fi
20635 done
20636 if test -z "$haveit"; then
20637 rpathdirs="$rpathdirs $found_dir"
20638 fi
20639 else
20640 haveit=
20641 for x in $LDFLAGS $LIBICONV; do
20642
20643 acl_save_prefix="$prefix"
20644 prefix="$acl_final_prefix"
20645 acl_save_exec_prefix="$exec_prefix"
20646 exec_prefix="$acl_final_exec_prefix"
20647 eval x=\"$x\"
20648 exec_prefix="$acl_save_exec_prefix"
20649 prefix="$acl_save_prefix"
20650
20651 if test "X$x" = "X-L$found_dir"; then
20652 haveit=yes
20653 break
20654 fi
20655 done
20656 if test -z "$haveit"; then
20657 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20658 fi
20659 if test "$acl_hardcode_minus_L" != no; then
20660 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20661 else
20662 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20663 fi
20664 fi
20665 fi
20666 fi
20667 else
20668 if test "X$found_a" != "X"; then
20669 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20670 else
20671 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20672 fi
20673 fi
20674 additional_includedir=
20675 case "$found_dir" in
20676 */$acl_libdirstem | */$acl_libdirstem/)
20677 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20678 if test "$name" = 'iconv'; then
20679 LIBICONV_PREFIX="$basedir"
20680 fi
20681 additional_includedir="$basedir/include"
20682 ;;
20683 */$acl_libdirstem2 | */$acl_libdirstem2/)
20684 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20685 if test "$name" = 'iconv'; then
20686 LIBICONV_PREFIX="$basedir"
20687 fi
20688 additional_includedir="$basedir/include"
20689 ;;
20690 esac
20691 if test "X$additional_includedir" != "X"; then
20692 if test "X$additional_includedir" != "X/usr/include"; then
20693 haveit=
20694 if test "X$additional_includedir" = "X/usr/local/include"; then
20695 if test -n "$GCC"; then
20696 case $host_os in
20697 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20698 esac
20699 fi
20700 fi
20701 if test -z "$haveit"; then
20702 for x in $CPPFLAGS $INCICONV; do
20703
20704 acl_save_prefix="$prefix"
20705 prefix="$acl_final_prefix"
20706 acl_save_exec_prefix="$exec_prefix"
20707 exec_prefix="$acl_final_exec_prefix"
20708 eval x=\"$x\"
20709 exec_prefix="$acl_save_exec_prefix"
20710 prefix="$acl_save_prefix"
20711
20712 if test "X$x" = "X-I$additional_includedir"; then
20713 haveit=yes
20714 break
20715 fi
20716 done
20717 if test -z "$haveit"; then
20718 if test -d "$additional_includedir"; then
20719 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20720 fi
20721 fi
20722 fi
20723 fi
20724 fi
20725 if test -n "$found_la"; then
20726 save_libdir="$libdir"
20727 case "$found_la" in
20728 */* | *\\*) . "$found_la" ;;
20729 *) . "./$found_la" ;;
20730 esac
20731 libdir="$save_libdir"
20732 for dep in $dependency_libs; do
20733 case "$dep" in
20734 -L*)
20735 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20736 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20737 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20738 haveit=
20739 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20740 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20741 if test -n "$GCC"; then
20742 case $host_os in
20743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20744 esac
20745 fi
20746 fi
20747 if test -z "$haveit"; then
20748 haveit=
20749 for x in $LDFLAGS $LIBICONV; do
20750
20751 acl_save_prefix="$prefix"
20752 prefix="$acl_final_prefix"
20753 acl_save_exec_prefix="$exec_prefix"
20754 exec_prefix="$acl_final_exec_prefix"
20755 eval x=\"$x\"
20756 exec_prefix="$acl_save_exec_prefix"
20757 prefix="$acl_save_prefix"
20758
20759 if test "X$x" = "X-L$additional_libdir"; then
20760 haveit=yes
20761 break
20762 fi
20763 done
20764 if test -z "$haveit"; then
20765 if test -d "$additional_libdir"; then
20766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20767 fi
20768 fi
20769 haveit=
20770 for x in $LDFLAGS $LTLIBICONV; do
20771
20772 acl_save_prefix="$prefix"
20773 prefix="$acl_final_prefix"
20774 acl_save_exec_prefix="$exec_prefix"
20775 exec_prefix="$acl_final_exec_prefix"
20776 eval x=\"$x\"
20777 exec_prefix="$acl_save_exec_prefix"
20778 prefix="$acl_save_prefix"
20779
20780 if test "X$x" = "X-L$additional_libdir"; then
20781 haveit=yes
20782 break
20783 fi
20784 done
20785 if test -z "$haveit"; then
20786 if test -d "$additional_libdir"; then
20787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20788 fi
20789 fi
20790 fi
20791 fi
20792 ;;
20793 -R*)
20794 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20795 if test "$enable_rpath" != no; then
20796 haveit=
20797 for x in $rpathdirs; do
20798 if test "X$x" = "X$dir"; then
20799 haveit=yes
20800 break
20801 fi
20802 done
20803 if test -z "$haveit"; then
20804 rpathdirs="$rpathdirs $dir"
20805 fi
20806 haveit=
20807 for x in $ltrpathdirs; do
20808 if test "X$x" = "X$dir"; then
20809 haveit=yes
20810 break
20811 fi
20812 done
20813 if test -z "$haveit"; then
20814 ltrpathdirs="$ltrpathdirs $dir"
20815 fi
20816 fi
20817 ;;
20818 -l*)
20819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20820 ;;
20821 *.la)
20822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20823 ;;
20824 *)
20825 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20827 ;;
20828 esac
20829 done
20830 fi
20831 else
20832 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20834 fi
20835 fi
20836 fi
20837 done
20838 done
20839 if test "X$rpathdirs" != "X"; then
20840 if test -n "$acl_hardcode_libdir_separator"; then
20841 alldirs=
20842 for found_dir in $rpathdirs; do
20843 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20844 done
20845 acl_save_libdir="$libdir"
20846 libdir="$alldirs"
20847 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20848 libdir="$acl_save_libdir"
20849 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20850 else
20851 for found_dir in $rpathdirs; do
20852 acl_save_libdir="$libdir"
20853 libdir="$found_dir"
20854 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20855 libdir="$acl_save_libdir"
20856 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20857 done
20858 fi
20859 fi
20860 if test "X$ltrpathdirs" != "X"; then
20861 for found_dir in $ltrpathdirs; do
20862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20863 done
20864 fi
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877 am_save_CPPFLAGS="$CPPFLAGS"
20878
20879 for element in $INCICONV; do
20880 haveit=
20881 for x in $CPPFLAGS; do
20882
20883 acl_save_prefix="$prefix"
20884 prefix="$acl_final_prefix"
20885 acl_save_exec_prefix="$exec_prefix"
20886 exec_prefix="$acl_final_exec_prefix"
20887 eval x=\"$x\"
20888 exec_prefix="$acl_save_exec_prefix"
20889 prefix="$acl_save_prefix"
20890
20891 if test "X$x" = "X$element"; then
20892 haveit=yes
20893 break
20894 fi
20895 done
20896 if test -z "$haveit"; then
20897 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20898 fi
20899 done
20900
20901
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20903 $as_echo_n "checking for iconv... " >&6; }
20904 if ${am_cv_func_iconv+:} false; then :
20905 $as_echo_n "(cached) " >&6
20906 else
20907
20908 am_cv_func_iconv="no, consider installing GNU libiconv"
20909 am_cv_lib_iconv=no
20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911 /* end confdefs.h. */
20912
20913 #include <stdlib.h>
20914 #include <iconv.h>
20915
20916 int
20917 main ()
20918 {
20919 iconv_t cd = iconv_open("","");
20920 iconv(cd,NULL,NULL,NULL,NULL);
20921 iconv_close(cd);
20922 ;
20923 return 0;
20924 }
20925 _ACEOF
20926 if ac_fn_c_try_link "$LINENO"; then :
20927 am_cv_func_iconv=yes
20928 fi
20929 rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20931 if test "$am_cv_func_iconv" != yes; then
20932 am_save_LIBS="$LIBS"
20933 LIBS="$LIBS $LIBICONV"
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20936
20937 #include <stdlib.h>
20938 #include <iconv.h>
20939
20940 int
20941 main ()
20942 {
20943 iconv_t cd = iconv_open("","");
20944 iconv(cd,NULL,NULL,NULL,NULL);
20945 iconv_close(cd);
20946 ;
20947 return 0;
20948 }
20949 _ACEOF
20950 if ac_fn_c_try_link "$LINENO"; then :
20951 am_cv_lib_iconv=yes
20952 am_cv_func_iconv=yes
20953 fi
20954 rm -f core conftest.err conftest.$ac_objext \
20955 conftest$ac_exeext conftest.$ac_ext
20956 LIBS="$am_save_LIBS"
20957 fi
20958
20959 fi
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20961 $as_echo "$am_cv_func_iconv" >&6; }
20962 if test "$am_cv_func_iconv" = yes; then
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20964 $as_echo_n "checking for working iconv... " >&6; }
20965 if ${am_cv_func_iconv_works+:} false; then :
20966 $as_echo_n "(cached) " >&6
20967 else
20968
20969 am_save_LIBS="$LIBS"
20970 if test $am_cv_lib_iconv = yes; then
20971 LIBS="$LIBS $LIBICONV"
20972 fi
20973 if test "$cross_compiling" = yes; then :
20974
20975 case "$host_os" in
20976 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20977 *) am_cv_func_iconv_works="guessing yes" ;;
20978 esac
20979
20980 else
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20983
20984 #include <iconv.h>
20985 #include <string.h>
20986 int main ()
20987 {
20988 int result = 0;
20989 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20990 returns. */
20991 {
20992 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20993 if (cd_utf8_to_88591 != (iconv_t)(-1))
20994 {
20995 static const char input[] = "\342\202\254"; /* EURO SIGN */
20996 char buf[10];
20997 const char *inptr = input;
20998 size_t inbytesleft = strlen (input);
20999 char *outptr = buf;
21000 size_t outbytesleft = sizeof (buf);
21001 size_t res = iconv (cd_utf8_to_88591,
21002 (char **) &inptr, &inbytesleft,
21003 &outptr, &outbytesleft);
21004 if (res == 0)
21005 result |= 1;
21006 iconv_close (cd_utf8_to_88591);
21007 }
21008 }
21009 /* Test against Solaris 10 bug: Failures are not distinguishable from
21010 successful returns. */
21011 {
21012 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21013 if (cd_ascii_to_88591 != (iconv_t)(-1))
21014 {
21015 static const char input[] = "\263";
21016 char buf[10];
21017 const char *inptr = input;
21018 size_t inbytesleft = strlen (input);
21019 char *outptr = buf;
21020 size_t outbytesleft = sizeof (buf);
21021 size_t res = iconv (cd_ascii_to_88591,
21022 (char **) &inptr, &inbytesleft,
21023 &outptr, &outbytesleft);
21024 if (res == 0)
21025 result |= 2;
21026 iconv_close (cd_ascii_to_88591);
21027 }
21028 }
21029 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
21030 {
21031 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
21032 if (cd_88591_to_utf8 != (iconv_t)(-1))
21033 {
21034 static const char input[] = "\304";
21035 static char buf[2] = { (char)0xDE, (char)0xAD };
21036 const char *inptr = input;
21037 size_t inbytesleft = 1;
21038 char *outptr = buf;
21039 size_t outbytesleft = 1;
21040 size_t res = iconv (cd_88591_to_utf8,
21041 (char **) &inptr, &inbytesleft,
21042 &outptr, &outbytesleft);
21043 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
21044 result |= 4;
21045 iconv_close (cd_88591_to_utf8);
21046 }
21047 }
21048 #if 0 /* This bug could be worked around by the caller. */
21049 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21050 {
21051 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21052 if (cd_88591_to_utf8 != (iconv_t)(-1))
21053 {
21054 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21055 char buf[50];
21056 const char *inptr = input;
21057 size_t inbytesleft = strlen (input);
21058 char *outptr = buf;
21059 size_t outbytesleft = sizeof (buf);
21060 size_t res = iconv (cd_88591_to_utf8,
21061 (char **) &inptr, &inbytesleft,
21062 &outptr, &outbytesleft);
21063 if ((int)res > 0)
21064 result |= 8;
21065 iconv_close (cd_88591_to_utf8);
21066 }
21067 }
21068 #endif
21069 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21070 provided. */
21071 if (/* Try standardized names. */
21072 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21073 /* Try IRIX, OSF/1 names. */
21074 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21075 /* Try AIX names. */
21076 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21077 /* Try HP-UX names. */
21078 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21079 result |= 16;
21080 return result;
21081 }
21082 _ACEOF
21083 if ac_fn_c_try_run "$LINENO"; then :
21084 am_cv_func_iconv_works=yes
21085 else
21086 am_cv_func_iconv_works=no
21087 fi
21088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21089 conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 fi
21091
21092 LIBS="$am_save_LIBS"
21093
21094 fi
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21096 $as_echo "$am_cv_func_iconv_works" >&6; }
21097 case "$am_cv_func_iconv_works" in
21098 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21099 *) am_func_iconv=yes ;;
21100 esac
21101 else
21102 am_func_iconv=no am_cv_lib_iconv=no
21103 fi
21104 if test "$am_func_iconv" = yes; then
21105
21106 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21107
21108 fi
21109 if test "$am_cv_lib_iconv" = yes; then
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21111 $as_echo_n "checking how to link with libiconv... " >&6; }
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21113 $as_echo "$LIBICONV" >&6; }
21114 else
21115 CPPFLAGS="$am_save_CPPFLAGS"
21116 LIBICONV=
21117 LTLIBICONV=
21118 fi
21119
21120
21121
21122 if test "$am_cv_func_iconv" = yes; then
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21124 $as_echo_n "checking for iconv declaration... " >&6; }
21125 if ${am_cv_proto_iconv+:} false; then :
21126 $as_echo_n "(cached) " >&6
21127 else
21128
21129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21130 /* end confdefs.h. */
21131
21132 #include <stdlib.h>
21133 #include <iconv.h>
21134 extern
21135 #ifdef __cplusplus
21136 "C"
21137 #endif
21138 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
21139 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21140 #else
21141 size_t iconv();
21142 #endif
21143
21144 int
21145 main ()
21146 {
21147
21148 ;
21149 return 0;
21150 }
21151 _ACEOF
21152 if ac_fn_c_try_compile "$LINENO"; then :
21153 am_cv_proto_iconv_arg1=""
21154 else
21155 am_cv_proto_iconv_arg1="const"
21156 fi
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 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);"
21159 fi
21160
21161 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21163 $am_cv_proto_iconv" >&5
21164 $as_echo "
21165 $am_cv_proto_iconv" >&6; }
21166
21167 cat >>confdefs.h <<_ACEOF
21168 #define ICONV_CONST $am_cv_proto_iconv_arg1
21169 _ACEOF
21170
21171
21172 fi
21173
21174 case $am_cv_func_iconv in #(
21175 yes) :
21176 ;; #(
21177 *) :
21178
21179 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
21180 case $cy_iconv_prefix_arg in #(
21181 -I*) :
21182
21183
21184 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
21185 haveit=
21186 for x in $cy_iconv_prefixes; do
21187
21188 acl_save_prefix="$prefix"
21189 prefix="$acl_final_prefix"
21190 acl_save_exec_prefix="$exec_prefix"
21191 exec_prefix="$acl_final_exec_prefix"
21192 eval x=\"$x\"
21193 exec_prefix="$acl_save_exec_prefix"
21194 prefix="$acl_save_prefix"
21195
21196 if test "X$x" = "X$element"; then
21197 haveit=yes
21198 break
21199 fi
21200 done
21201 if test -z "$haveit"; then
21202 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21203 fi
21204 done
21205
21206 ;; #(
21207 -L*) :
21208
21209
21210 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
21211 haveit=
21212 for x in $cy_iconv_prefixes; do
21213
21214 acl_save_prefix="$prefix"
21215 prefix="$acl_final_prefix"
21216 acl_save_exec_prefix="$exec_prefix"
21217 exec_prefix="$acl_final_exec_prefix"
21218 eval x=\"$x\"
21219 exec_prefix="$acl_save_exec_prefix"
21220 prefix="$acl_save_prefix"
21221
21222 if test "X$x" = "X$element"; then
21223 haveit=yes
21224 break
21225 fi
21226 done
21227 if test -z "$haveit"; then
21228 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21229 fi
21230 done
21231
21232 ;; #(
21233 *) :
21234 ;;
21235 esac
21236 done
21237 for with_libiconv_prefix in $cy_iconv_prefixes; do
21238 { am_cv_func_iconv=; unset am_cv_func_iconv;}
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250 use_additional=yes
21251
21252 acl_save_prefix="$prefix"
21253 prefix="$acl_final_prefix"
21254 acl_save_exec_prefix="$exec_prefix"
21255 exec_prefix="$acl_final_exec_prefix"
21256
21257 eval additional_includedir=\"$includedir\"
21258 eval additional_libdir=\"$libdir\"
21259
21260 exec_prefix="$acl_save_exec_prefix"
21261 prefix="$acl_save_prefix"
21262
21263
21264 # Check whether --with-libiconv-prefix was given.
21265 if test "${with_libiconv_prefix+set}" = set; then :
21266 withval=$with_libiconv_prefix;
21267 if test "X$withval" = "Xno"; then
21268 use_additional=no
21269 else
21270 if test "X$withval" = "X"; then
21271
21272 acl_save_prefix="$prefix"
21273 prefix="$acl_final_prefix"
21274 acl_save_exec_prefix="$exec_prefix"
21275 exec_prefix="$acl_final_exec_prefix"
21276
21277 eval additional_includedir=\"$includedir\"
21278 eval additional_libdir=\"$libdir\"
21279
21280 exec_prefix="$acl_save_exec_prefix"
21281 prefix="$acl_save_prefix"
21282
21283 else
21284 additional_includedir="$withval/include"
21285 additional_libdir="$withval/$acl_libdirstem"
21286 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21287 && ! test -d "$withval/$acl_libdirstem"; then
21288 additional_libdir="$withval/$acl_libdirstem2"
21289 fi
21290 fi
21291 fi
21292
21293 fi
21294
21295 LIBICONV=
21296 LTLIBICONV=
21297 INCICONV=
21298 LIBICONV_PREFIX=
21299 HAVE_LIBICONV=
21300 rpathdirs=
21301 ltrpathdirs=
21302 names_already_handled=
21303 names_next_round='iconv '
21304 while test -n "$names_next_round"; do
21305 names_this_round="$names_next_round"
21306 names_next_round=
21307 for name in $names_this_round; do
21308 already_handled=
21309 for n in $names_already_handled; do
21310 if test "$n" = "$name"; then
21311 already_handled=yes
21312 break
21313 fi
21314 done
21315 if test -z "$already_handled"; then
21316 names_already_handled="$names_already_handled $name"
21317 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21318 eval value=\"\$HAVE_LIB$uppername\"
21319 if test -n "$value"; then
21320 if test "$value" = yes; then
21321 eval value=\"\$LIB$uppername\"
21322 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21323 eval value=\"\$LTLIB$uppername\"
21324 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21325 else
21326 :
21327 fi
21328 else
21329 found_dir=
21330 found_la=
21331 found_so=
21332 found_a=
21333 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21334 if test -n "$acl_shlibext"; then
21335 shrext=".$acl_shlibext" # typically: shrext=.so
21336 else
21337 shrext=
21338 fi
21339 if test $use_additional = yes; then
21340 dir="$additional_libdir"
21341 if test -n "$acl_shlibext"; then
21342 if test -f "$dir/$libname$shrext"; then
21343 found_dir="$dir"
21344 found_so="$dir/$libname$shrext"
21345 else
21346 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21347 ver=`(cd "$dir" && \
21348 for f in "$libname$shrext".*; do echo "$f"; done \
21349 | sed -e "s,^$libname$shrext\\\\.,," \
21350 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21351 | sed 1q ) 2>/dev/null`
21352 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21353 found_dir="$dir"
21354 found_so="$dir/$libname$shrext.$ver"
21355 fi
21356 else
21357 eval library_names=\"$acl_library_names_spec\"
21358 for f in $library_names; do
21359 if test -f "$dir/$f"; then
21360 found_dir="$dir"
21361 found_so="$dir/$f"
21362 break
21363 fi
21364 done
21365 fi
21366 fi
21367 fi
21368 if test "X$found_dir" = "X"; then
21369 if test -f "$dir/$libname.$acl_libext"; then
21370 found_dir="$dir"
21371 found_a="$dir/$libname.$acl_libext"
21372 fi
21373 fi
21374 if test "X$found_dir" != "X"; then
21375 if test -f "$dir/$libname.la"; then
21376 found_la="$dir/$libname.la"
21377 fi
21378 fi
21379 fi
21380 if test "X$found_dir" = "X"; then
21381 for x in $LDFLAGS $LTLIBICONV; do
21382
21383 acl_save_prefix="$prefix"
21384 prefix="$acl_final_prefix"
21385 acl_save_exec_prefix="$exec_prefix"
21386 exec_prefix="$acl_final_exec_prefix"
21387 eval x=\"$x\"
21388 exec_prefix="$acl_save_exec_prefix"
21389 prefix="$acl_save_prefix"
21390
21391 case "$x" in
21392 -L*)
21393 dir=`echo "X$x" | sed -e 's/^X-L//'`
21394 if test -n "$acl_shlibext"; then
21395 if test -f "$dir/$libname$shrext"; then
21396 found_dir="$dir"
21397 found_so="$dir/$libname$shrext"
21398 else
21399 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21400 ver=`(cd "$dir" && \
21401 for f in "$libname$shrext".*; do echo "$f"; done \
21402 | sed -e "s,^$libname$shrext\\\\.,," \
21403 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21404 | sed 1q ) 2>/dev/null`
21405 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21406 found_dir="$dir"
21407 found_so="$dir/$libname$shrext.$ver"
21408 fi
21409 else
21410 eval library_names=\"$acl_library_names_spec\"
21411 for f in $library_names; do
21412 if test -f "$dir/$f"; then
21413 found_dir="$dir"
21414 found_so="$dir/$f"
21415 break
21416 fi
21417 done
21418 fi
21419 fi
21420 fi
21421 if test "X$found_dir" = "X"; then
21422 if test -f "$dir/$libname.$acl_libext"; then
21423 found_dir="$dir"
21424 found_a="$dir/$libname.$acl_libext"
21425 fi
21426 fi
21427 if test "X$found_dir" != "X"; then
21428 if test -f "$dir/$libname.la"; then
21429 found_la="$dir/$libname.la"
21430 fi
21431 fi
21432 ;;
21433 esac
21434 if test "X$found_dir" != "X"; then
21435 break
21436 fi
21437 done
21438 fi
21439 if test "X$found_dir" != "X"; then
21440 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21441 if test "X$found_so" != "X"; then
21442 if test "$enable_rpath" = no \
21443 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21444 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21446 else
21447 haveit=
21448 for x in $ltrpathdirs; do
21449 if test "X$x" = "X$found_dir"; then
21450 haveit=yes
21451 break
21452 fi
21453 done
21454 if test -z "$haveit"; then
21455 ltrpathdirs="$ltrpathdirs $found_dir"
21456 fi
21457 if test "$acl_hardcode_direct" = yes; then
21458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21459 else
21460 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21462 haveit=
21463 for x in $rpathdirs; do
21464 if test "X$x" = "X$found_dir"; then
21465 haveit=yes
21466 break
21467 fi
21468 done
21469 if test -z "$haveit"; then
21470 rpathdirs="$rpathdirs $found_dir"
21471 fi
21472 else
21473 haveit=
21474 for x in $LDFLAGS $LIBICONV; do
21475
21476 acl_save_prefix="$prefix"
21477 prefix="$acl_final_prefix"
21478 acl_save_exec_prefix="$exec_prefix"
21479 exec_prefix="$acl_final_exec_prefix"
21480 eval x=\"$x\"
21481 exec_prefix="$acl_save_exec_prefix"
21482 prefix="$acl_save_prefix"
21483
21484 if test "X$x" = "X-L$found_dir"; then
21485 haveit=yes
21486 break
21487 fi
21488 done
21489 if test -z "$haveit"; then
21490 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21491 fi
21492 if test "$acl_hardcode_minus_L" != no; then
21493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21494 else
21495 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21496 fi
21497 fi
21498 fi
21499 fi
21500 else
21501 if test "X$found_a" != "X"; then
21502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21503 else
21504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21505 fi
21506 fi
21507 additional_includedir=
21508 case "$found_dir" in
21509 */$acl_libdirstem | */$acl_libdirstem/)
21510 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21511 if test "$name" = 'iconv'; then
21512 LIBICONV_PREFIX="$basedir"
21513 fi
21514 additional_includedir="$basedir/include"
21515 ;;
21516 */$acl_libdirstem2 | */$acl_libdirstem2/)
21517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21518 if test "$name" = 'iconv'; then
21519 LIBICONV_PREFIX="$basedir"
21520 fi
21521 additional_includedir="$basedir/include"
21522 ;;
21523 esac
21524 if test "X$additional_includedir" != "X"; then
21525 if test "X$additional_includedir" != "X/usr/include"; then
21526 haveit=
21527 if test "X$additional_includedir" = "X/usr/local/include"; then
21528 if test -n "$GCC"; then
21529 case $host_os in
21530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21531 esac
21532 fi
21533 fi
21534 if test -z "$haveit"; then
21535 for x in $CPPFLAGS $INCICONV; do
21536
21537 acl_save_prefix="$prefix"
21538 prefix="$acl_final_prefix"
21539 acl_save_exec_prefix="$exec_prefix"
21540 exec_prefix="$acl_final_exec_prefix"
21541 eval x=\"$x\"
21542 exec_prefix="$acl_save_exec_prefix"
21543 prefix="$acl_save_prefix"
21544
21545 if test "X$x" = "X-I$additional_includedir"; then
21546 haveit=yes
21547 break
21548 fi
21549 done
21550 if test -z "$haveit"; then
21551 if test -d "$additional_includedir"; then
21552 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21553 fi
21554 fi
21555 fi
21556 fi
21557 fi
21558 if test -n "$found_la"; then
21559 save_libdir="$libdir"
21560 case "$found_la" in
21561 */* | *\\*) . "$found_la" ;;
21562 *) . "./$found_la" ;;
21563 esac
21564 libdir="$save_libdir"
21565 for dep in $dependency_libs; do
21566 case "$dep" in
21567 -L*)
21568 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21569 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21570 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21571 haveit=
21572 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21573 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21574 if test -n "$GCC"; then
21575 case $host_os in
21576 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21577 esac
21578 fi
21579 fi
21580 if test -z "$haveit"; then
21581 haveit=
21582 for x in $LDFLAGS $LIBICONV; do
21583
21584 acl_save_prefix="$prefix"
21585 prefix="$acl_final_prefix"
21586 acl_save_exec_prefix="$exec_prefix"
21587 exec_prefix="$acl_final_exec_prefix"
21588 eval x=\"$x\"
21589 exec_prefix="$acl_save_exec_prefix"
21590 prefix="$acl_save_prefix"
21591
21592 if test "X$x" = "X-L$additional_libdir"; then
21593 haveit=yes
21594 break
21595 fi
21596 done
21597 if test -z "$haveit"; then
21598 if test -d "$additional_libdir"; then
21599 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21600 fi
21601 fi
21602 haveit=
21603 for x in $LDFLAGS $LTLIBICONV; do
21604
21605 acl_save_prefix="$prefix"
21606 prefix="$acl_final_prefix"
21607 acl_save_exec_prefix="$exec_prefix"
21608 exec_prefix="$acl_final_exec_prefix"
21609 eval x=\"$x\"
21610 exec_prefix="$acl_save_exec_prefix"
21611 prefix="$acl_save_prefix"
21612
21613 if test "X$x" = "X-L$additional_libdir"; then
21614 haveit=yes
21615 break
21616 fi
21617 done
21618 if test -z "$haveit"; then
21619 if test -d "$additional_libdir"; then
21620 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21621 fi
21622 fi
21623 fi
21624 fi
21625 ;;
21626 -R*)
21627 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21628 if test "$enable_rpath" != no; then
21629 haveit=
21630 for x in $rpathdirs; do
21631 if test "X$x" = "X$dir"; then
21632 haveit=yes
21633 break
21634 fi
21635 done
21636 if test -z "$haveit"; then
21637 rpathdirs="$rpathdirs $dir"
21638 fi
21639 haveit=
21640 for x in $ltrpathdirs; do
21641 if test "X$x" = "X$dir"; then
21642 haveit=yes
21643 break
21644 fi
21645 done
21646 if test -z "$haveit"; then
21647 ltrpathdirs="$ltrpathdirs $dir"
21648 fi
21649 fi
21650 ;;
21651 -l*)
21652 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21653 ;;
21654 *.la)
21655 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21656 ;;
21657 *)
21658 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21660 ;;
21661 esac
21662 done
21663 fi
21664 else
21665 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21667 fi
21668 fi
21669 fi
21670 done
21671 done
21672 if test "X$rpathdirs" != "X"; then
21673 if test -n "$acl_hardcode_libdir_separator"; then
21674 alldirs=
21675 for found_dir in $rpathdirs; do
21676 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21677 done
21678 acl_save_libdir="$libdir"
21679 libdir="$alldirs"
21680 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21681 libdir="$acl_save_libdir"
21682 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21683 else
21684 for found_dir in $rpathdirs; do
21685 acl_save_libdir="$libdir"
21686 libdir="$found_dir"
21687 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21688 libdir="$acl_save_libdir"
21689 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21690 done
21691 fi
21692 fi
21693 if test "X$ltrpathdirs" != "X"; then
21694 for found_dir in $ltrpathdirs; do
21695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21696 done
21697 fi
21698
21699
21700
21701
21702
21703
21704
21705
21706 done
21707 ;;
21708 esac
21709 case $am_cv_func_iconv in #(
21710 yes) :
21711 ;; #(
21712 *) :
21713 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
21714 esac
21715 ac_ext=cpp
21716 ac_cpp='$CXXCPP $CPPFLAGS'
21717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21720
21721
21722
21723 SO=$acl_shlibext
21724
21725
21726 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21727 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
21728
21729 if test -n "$ac_tool_prefix"; then
21730 for ac_prog in lipo
21731 do
21732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21735 $as_echo_n "checking for $ac_word... " >&6; }
21736 if ${ac_cv_prog__LIPO+:} false; then :
21737 $as_echo_n "(cached) " >&6
21738 else
21739 if test -n "$_LIPO"; then
21740 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
21741 else
21742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21743 for as_dir in $PATH
21744 do
21745 IFS=$as_save_IFS
21746 test -z "$as_dir" && as_dir=.
21747 for ac_exec_ext in '' $ac_executable_extensions; do
21748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21749 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
21750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21751 break 2
21752 fi
21753 done
21754 done
21755 IFS=$as_save_IFS
21756
21757 fi
21758 fi
21759 _LIPO=$ac_cv_prog__LIPO
21760 if test -n "$_LIPO"; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21762 $as_echo "$_LIPO" >&6; }
21763 else
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21765 $as_echo "no" >&6; }
21766 fi
21767
21768
21769 test -n "$_LIPO" && break
21770 done
21771 fi
21772 if test -z "$_LIPO"; then
21773 ac_ct__LIPO=$_LIPO
21774 for ac_prog in lipo
21775 do
21776 # Extract the first word of "$ac_prog", so it can be a program name with args.
21777 set dummy $ac_prog; ac_word=$2
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21779 $as_echo_n "checking for $ac_word... " >&6; }
21780 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
21781 $as_echo_n "(cached) " >&6
21782 else
21783 if test -n "$ac_ct__LIPO"; then
21784 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
21785 else
21786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21787 for as_dir in $PATH
21788 do
21789 IFS=$as_save_IFS
21790 test -z "$as_dir" && as_dir=.
21791 for ac_exec_ext in '' $ac_executable_extensions; do
21792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21793 ac_cv_prog_ac_ct__LIPO="$ac_prog"
21794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21795 break 2
21796 fi
21797 done
21798 done
21799 IFS=$as_save_IFS
21800
21801 fi
21802 fi
21803 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21804 if test -n "$ac_ct__LIPO"; then
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21806 $as_echo "$ac_ct__LIPO" >&6; }
21807 else
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21809 $as_echo "no" >&6; }
21810 fi
21811
21812
21813 test -n "$ac_ct__LIPO" && break
21814 done
21815
21816 if test "x$ac_ct__LIPO" = x; then
21817 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21818 else
21819 case $cross_compiling:$ac_tool_warned in
21820 yes:)
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21823 ac_tool_warned=yes ;;
21824 esac
21825 _LIPO=$ac_ct__LIPO
21826 fi
21827 fi
21828
21829 if test -n "$ac_tool_prefix"; then
21830 for ac_prog in nm
21831 do
21832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if ${ac_cv_prog__NM+:} false; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 if test -n "$_NM"; then
21840 ac_cv_prog__NM="$_NM" # Let the user override the test.
21841 else
21842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21843 for as_dir in $PATH
21844 do
21845 IFS=$as_save_IFS
21846 test -z "$as_dir" && as_dir=.
21847 for ac_exec_ext in '' $ac_executable_extensions; do
21848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21849 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21851 break 2
21852 fi
21853 done
21854 done
21855 IFS=$as_save_IFS
21856
21857 fi
21858 fi
21859 _NM=$ac_cv_prog__NM
21860 if test -n "$_NM"; then
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21862 $as_echo "$_NM" >&6; }
21863 else
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21865 $as_echo "no" >&6; }
21866 fi
21867
21868
21869 test -n "$_NM" && break
21870 done
21871 fi
21872 if test -z "$_NM"; then
21873 ac_ct__NM=$_NM
21874 for ac_prog in nm
21875 do
21876 # Extract the first word of "$ac_prog", so it can be a program name with args.
21877 set dummy $ac_prog; ac_word=$2
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21879 $as_echo_n "checking for $ac_word... " >&6; }
21880 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21881 $as_echo_n "(cached) " >&6
21882 else
21883 if test -n "$ac_ct__NM"; then
21884 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21885 else
21886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21887 for as_dir in $PATH
21888 do
21889 IFS=$as_save_IFS
21890 test -z "$as_dir" && as_dir=.
21891 for ac_exec_ext in '' $ac_executable_extensions; do
21892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21893 ac_cv_prog_ac_ct__NM="$ac_prog"
21894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21895 break 2
21896 fi
21897 done
21898 done
21899 IFS=$as_save_IFS
21900
21901 fi
21902 fi
21903 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21904 if test -n "$ac_ct__NM"; then
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21906 $as_echo "$ac_ct__NM" >&6; }
21907 else
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21909 $as_echo "no" >&6; }
21910 fi
21911
21912
21913 test -n "$ac_ct__NM" && break
21914 done
21915
21916 if test "x$ac_ct__NM" = x; then
21917 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21918 else
21919 case $cross_compiling:$ac_tool_warned in
21920 yes:)
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21923 ac_tool_warned=yes ;;
21924 esac
21925 _NM=$ac_ct__NM
21926 fi
21927 fi
21928
21929 if test -n "$ac_tool_prefix"; then
21930 for ac_prog in otool
21931 do
21932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21935 $as_echo_n "checking for $ac_word... " >&6; }
21936 if ${ac_cv_prog__OTOOL+:} false; then :
21937 $as_echo_n "(cached) " >&6
21938 else
21939 if test -n "$_OTOOL"; then
21940 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21941 else
21942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21943 for as_dir in $PATH
21944 do
21945 IFS=$as_save_IFS
21946 test -z "$as_dir" && as_dir=.
21947 for ac_exec_ext in '' $ac_executable_extensions; do
21948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21949 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21951 break 2
21952 fi
21953 done
21954 done
21955 IFS=$as_save_IFS
21956
21957 fi
21958 fi
21959 _OTOOL=$ac_cv_prog__OTOOL
21960 if test -n "$_OTOOL"; then
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21962 $as_echo "$_OTOOL" >&6; }
21963 else
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21965 $as_echo "no" >&6; }
21966 fi
21967
21968
21969 test -n "$_OTOOL" && break
21970 done
21971 fi
21972 if test -z "$_OTOOL"; then
21973 ac_ct__OTOOL=$_OTOOL
21974 for ac_prog in otool
21975 do
21976 # Extract the first word of "$ac_prog", so it can be a program name with args.
21977 set dummy $ac_prog; ac_word=$2
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21979 $as_echo_n "checking for $ac_word... " >&6; }
21980 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 if test -n "$ac_ct__OTOOL"; then
21984 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21985 else
21986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21987 for as_dir in $PATH
21988 do
21989 IFS=$as_save_IFS
21990 test -z "$as_dir" && as_dir=.
21991 for ac_exec_ext in '' $ac_executable_extensions; do
21992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21993 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21995 break 2
21996 fi
21997 done
21998 done
21999 IFS=$as_save_IFS
22000
22001 fi
22002 fi
22003 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
22004 if test -n "$ac_ct__OTOOL"; then
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
22006 $as_echo "$ac_ct__OTOOL" >&6; }
22007 else
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22010 fi
22011
22012
22013 test -n "$ac_ct__OTOOL" && break
22014 done
22015
22016 if test "x$ac_ct__OTOOL" = x; then
22017 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
22018 else
22019 case $cross_compiling:$ac_tool_warned in
22020 yes:)
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22023 ac_tool_warned=yes ;;
22024 esac
22025 _OTOOL=$ac_ct__OTOOL
22026 fi
22027 fi
22028
22029 CY_MACH=1
22030
22031 CY_ATTACH_GROUP=procmod
22032
22033
22034 fi
22035
22036
22037
22038 if test "x$CY_MACH" = x1; then
22039 CY_MACH_TRUE=
22040 CY_MACH_FALSE='#'
22041 else
22042 CY_MACH_TRUE='#'
22043 CY_MACH_FALSE=
22044 fi
22045
22046
22047 ac_config_files="$ac_config_files Makefile"
22048
22049 cat >confcache <<\_ACEOF
22050 # This file is a shell script that caches the results of configure
22051 # tests run on this system so they can be shared between configure
22052 # scripts and configure runs, see configure's option --config-cache.
22053 # It is not useful on other systems. If it contains results you don't
22054 # want to keep, you may remove or edit it.
22055 #
22056 # config.status only pays attention to the cache file if you give it
22057 # the --recheck option to rerun configure.
22058 #
22059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22061 # following values.
22062
22063 _ACEOF
22064
22065 # The following way of writing the cache mishandles newlines in values,
22066 # but we know of no workaround that is simple, portable, and efficient.
22067 # So, we kill variables containing newlines.
22068 # Ultrix sh set writes to stderr and can't be redirected directly,
22069 # and sets the high bit in the cache file unless we assign to the vars.
22070 (
22071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22072 eval ac_val=\$$ac_var
22073 case $ac_val in #(
22074 *${as_nl}*)
22075 case $ac_var in #(
22076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22078 esac
22079 case $ac_var in #(
22080 _ | IFS | as_nl) ;; #(
22081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22082 *) { eval $ac_var=; unset $ac_var;} ;;
22083 esac ;;
22084 esac
22085 done
22086
22087 (set) 2>&1 |
22088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22089 *${as_nl}ac_space=\ *)
22090 # `set' does not quote correctly, so add quotes: double-quote
22091 # substitution turns \\\\ into \\, and sed turns \\ into \.
22092 sed -n \
22093 "s/'/'\\\\''/g;
22094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22095 ;; #(
22096 *)
22097 # `set' quotes correctly as required by POSIX, so do not add quotes.
22098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22099 ;;
22100 esac |
22101 sort
22102 ) |
22103 sed '
22104 /^ac_cv_env_/b end
22105 t clear
22106 :clear
22107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22108 t end
22109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22110 :end' >>confcache
22111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22112 if test -w "$cache_file"; then
22113 if test "x$cache_file" != "x/dev/null"; then
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22115 $as_echo "$as_me: updating cache $cache_file" >&6;}
22116 if test ! -f "$cache_file" || test -h "$cache_file"; then
22117 cat confcache >"$cache_file"
22118 else
22119 case $cache_file in #(
22120 */* | ?:*)
22121 mv -f confcache "$cache_file"$$ &&
22122 mv -f "$cache_file"$$ "$cache_file" ;; #(
22123 *)
22124 mv -f confcache "$cache_file" ;;
22125 esac
22126 fi
22127 fi
22128 else
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22130 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22131 fi
22132 fi
22133 rm -f confcache
22134
22135 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22136 # Let make expand exec_prefix.
22137 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22138
22139 # Transform confdefs.h into DEFS.
22140 # Protect against shell expansion while executing Makefile rules.
22141 # Protect against Makefile macro expansion.
22142 #
22143 # If the first sed substitution is executed (which looks for macros that
22144 # take arguments), then branch to the quote section. Otherwise,
22145 # look for a macro that doesn't take arguments.
22146 ac_script='
22147 :mline
22148 /\\$/{
22149 N
22150 s,\\\n,,
22151 b mline
22152 }
22153 t clear
22154 :clear
22155 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22156 t quote
22157 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22158 t quote
22159 b any
22160 :quote
22161 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22162 s/\[/\\&/g
22163 s/\]/\\&/g
22164 s/\$/$$/g
22165 H
22166 :any
22167 ${
22168 g
22169 s/^\n//
22170 s/\n/ /g
22171 p
22172 }
22173 '
22174 DEFS=`sed -n "$ac_script" confdefs.h`
22175
22176
22177 ac_libobjs=
22178 ac_ltlibobjs=
22179 U=
22180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22181 # 1. Remove the extension, and $U if already installed.
22182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22185 # will be set to the directory where LIBOBJS objects are built.
22186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22188 done
22189 LIBOBJS=$ac_libobjs
22190
22191 LTLIBOBJS=$ac_ltlibobjs
22192
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22195 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22196 if test -n "$am_sleep_pid"; then
22197 # Hide warnings about reused PIDs.
22198 wait $am_sleep_pid 2>/dev/null
22199 fi
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22201 $as_echo "done" >&6; }
22202 if test -n "$EXEEXT"; then
22203 am__EXEEXT_TRUE=
22204 am__EXEEXT_FALSE='#'
22205 else
22206 am__EXEEXT_TRUE='#'
22207 am__EXEEXT_FALSE=
22208 fi
22209
22210 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22211 as_fn_error $? "conditional \"AMDEP\" was never defined.
22212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22213 fi
22214 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22215 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22217 fi
22218 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22219 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22221 fi
22222 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22223 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22225 fi
22226 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22227 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22229 fi
22230 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22231 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22233 fi
22234 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
22235 as_fn_error $? "conditional \"CY_MACH\" was never defined.
22236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22237 fi
22238
22239 : "${CONFIG_STATUS=./config.status}"
22240 ac_write_fail=0
22241 ac_clean_files_save=$ac_clean_files
22242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22244 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22245 as_write_fail=0
22246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22247 #! $SHELL
22248 # Generated by $as_me.
22249 # Run this file to recreate the current configuration.
22250 # Compiler output produced by configure, useful for debugging
22251 # configure, is in config.log if it exists.
22252
22253 debug=false
22254 ac_cs_recheck=false
22255 ac_cs_silent=false
22256
22257 SHELL=\${CONFIG_SHELL-$SHELL}
22258 export SHELL
22259 _ASEOF
22260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22261 ## -------------------- ##
22262 ## M4sh Initialization. ##
22263 ## -------------------- ##
22264
22265 # Be more Bourne compatible
22266 DUALCASE=1; export DUALCASE # for MKS sh
22267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22268 emulate sh
22269 NULLCMD=:
22270 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22271 # is contrary to our usage. Disable this feature.
22272 alias -g '${1+"$@"}'='"$@"'
22273 setopt NO_GLOB_SUBST
22274 else
22275 case `(set -o) 2>/dev/null` in #(
22276 *posix*) :
22277 set -o posix ;; #(
22278 *) :
22279 ;;
22280 esac
22281 fi
22282
22283
22284 as_nl='
22285 '
22286 export as_nl
22287 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22288 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22291 # Prefer a ksh shell builtin over an external printf program on Solaris,
22292 # but without wasting forks for bash or zsh.
22293 if test -z "$BASH_VERSION$ZSH_VERSION" \
22294 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22295 as_echo='print -r --'
22296 as_echo_n='print -rn --'
22297 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22298 as_echo='printf %s\n'
22299 as_echo_n='printf %s'
22300 else
22301 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22302 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22303 as_echo_n='/usr/ucb/echo -n'
22304 else
22305 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22306 as_echo_n_body='eval
22307 arg=$1;
22308 case $arg in #(
22309 *"$as_nl"*)
22310 expr "X$arg" : "X\\(.*\\)$as_nl";
22311 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22312 esac;
22313 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22314 '
22315 export as_echo_n_body
22316 as_echo_n='sh -c $as_echo_n_body as_echo'
22317 fi
22318 export as_echo_body
22319 as_echo='sh -c $as_echo_body as_echo'
22320 fi
22321
22322 # The user is always right.
22323 if test "${PATH_SEPARATOR+set}" != set; then
22324 PATH_SEPARATOR=:
22325 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22326 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22327 PATH_SEPARATOR=';'
22328 }
22329 fi
22330
22331
22332 # IFS
22333 # We need space, tab and new line, in precisely that order. Quoting is
22334 # there to prevent editors from complaining about space-tab.
22335 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22336 # splitting by setting IFS to empty value.)
22337 IFS=" "" $as_nl"
22338
22339 # Find who we are. Look in the path if we contain no directory separator.
22340 as_myself=
22341 case $0 in #((
22342 *[\\/]* ) as_myself=$0 ;;
22343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22344 for as_dir in $PATH
22345 do
22346 IFS=$as_save_IFS
22347 test -z "$as_dir" && as_dir=.
22348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22349 done
22350 IFS=$as_save_IFS
22351
22352 ;;
22353 esac
22354 # We did not find ourselves, most probably we were run as `sh COMMAND'
22355 # in which case we are not to be found in the path.
22356 if test "x$as_myself" = x; then
22357 as_myself=$0
22358 fi
22359 if test ! -f "$as_myself"; then
22360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22361 exit 1
22362 fi
22363
22364 # Unset variables that we do not need and which cause bugs (e.g. in
22365 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22366 # suppresses any "Segmentation fault" message there. '((' could
22367 # trigger a bug in pdksh 5.2.14.
22368 for as_var in BASH_ENV ENV MAIL MAILPATH
22369 do eval test x\${$as_var+set} = xset \
22370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22371 done
22372 PS1='$ '
22373 PS2='> '
22374 PS4='+ '
22375
22376 # NLS nuisances.
22377 LC_ALL=C
22378 export LC_ALL
22379 LANGUAGE=C
22380 export LANGUAGE
22381
22382 # CDPATH.
22383 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22384
22385
22386 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22387 # ----------------------------------------
22388 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22389 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22390 # script with STATUS, using 1 if that was 0.
22391 as_fn_error ()
22392 {
22393 as_status=$1; test $as_status -eq 0 && as_status=1
22394 if test "$4"; then
22395 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22397 fi
22398 $as_echo "$as_me: error: $2" >&2
22399 as_fn_exit $as_status
22400 } # as_fn_error
22401
22402
22403 # as_fn_set_status STATUS
22404 # -----------------------
22405 # Set $? to STATUS, without forking.
22406 as_fn_set_status ()
22407 {
22408 return $1
22409 } # as_fn_set_status
22410
22411 # as_fn_exit STATUS
22412 # -----------------
22413 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22414 as_fn_exit ()
22415 {
22416 set +e
22417 as_fn_set_status $1
22418 exit $1
22419 } # as_fn_exit
22420
22421 # as_fn_unset VAR
22422 # ---------------
22423 # Portably unset VAR.
22424 as_fn_unset ()
22425 {
22426 { eval $1=; unset $1;}
22427 }
22428 as_unset=as_fn_unset
22429 # as_fn_append VAR VALUE
22430 # ----------------------
22431 # Append the text in VALUE to the end of the definition contained in VAR. Take
22432 # advantage of any shell optimizations that allow amortized linear growth over
22433 # repeated appends, instead of the typical quadratic growth present in naive
22434 # implementations.
22435 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22436 eval 'as_fn_append ()
22437 {
22438 eval $1+=\$2
22439 }'
22440 else
22441 as_fn_append ()
22442 {
22443 eval $1=\$$1\$2
22444 }
22445 fi # as_fn_append
22446
22447 # as_fn_arith ARG...
22448 # ------------------
22449 # Perform arithmetic evaluation on the ARGs, and store the result in the
22450 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22451 # must be portable across $(()) and expr.
22452 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22453 eval 'as_fn_arith ()
22454 {
22455 as_val=$(( $* ))
22456 }'
22457 else
22458 as_fn_arith ()
22459 {
22460 as_val=`expr "$@" || test $? -eq 1`
22461 }
22462 fi # as_fn_arith
22463
22464
22465 if expr a : '\(a\)' >/dev/null 2>&1 &&
22466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22467 as_expr=expr
22468 else
22469 as_expr=false
22470 fi
22471
22472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22473 as_basename=basename
22474 else
22475 as_basename=false
22476 fi
22477
22478 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22479 as_dirname=dirname
22480 else
22481 as_dirname=false
22482 fi
22483
22484 as_me=`$as_basename -- "$0" ||
22485 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22486 X"$0" : 'X\(//\)$' \| \
22487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22488 $as_echo X/"$0" |
22489 sed '/^.*\/\([^/][^/]*\)\/*$/{
22490 s//\1/
22491 q
22492 }
22493 /^X\/\(\/\/\)$/{
22494 s//\1/
22495 q
22496 }
22497 /^X\/\(\/\).*/{
22498 s//\1/
22499 q
22500 }
22501 s/.*/./; q'`
22502
22503 # Avoid depending upon Character Ranges.
22504 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22505 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22506 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22507 as_cr_digits='0123456789'
22508 as_cr_alnum=$as_cr_Letters$as_cr_digits
22509
22510 ECHO_C= ECHO_N= ECHO_T=
22511 case `echo -n x` in #(((((
22512 -n*)
22513 case `echo 'xy\c'` in
22514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22515 xy) ECHO_C='\c';;
22516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22517 ECHO_T=' ';;
22518 esac;;
22519 *)
22520 ECHO_N='-n';;
22521 esac
22522
22523 rm -f conf$$ conf$$.exe conf$$.file
22524 if test -d conf$$.dir; then
22525 rm -f conf$$.dir/conf$$.file
22526 else
22527 rm -f conf$$.dir
22528 mkdir conf$$.dir 2>/dev/null
22529 fi
22530 if (echo >conf$$.file) 2>/dev/null; then
22531 if ln -s conf$$.file conf$$ 2>/dev/null; then
22532 as_ln_s='ln -s'
22533 # ... but there are two gotchas:
22534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22536 # In both cases, we have to default to `cp -pR'.
22537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22538 as_ln_s='cp -pR'
22539 elif ln conf$$.file conf$$ 2>/dev/null; then
22540 as_ln_s=ln
22541 else
22542 as_ln_s='cp -pR'
22543 fi
22544 else
22545 as_ln_s='cp -pR'
22546 fi
22547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22548 rmdir conf$$.dir 2>/dev/null
22549
22550
22551 # as_fn_mkdir_p
22552 # -------------
22553 # Create "$as_dir" as a directory, including parents if necessary.
22554 as_fn_mkdir_p ()
22555 {
22556
22557 case $as_dir in #(
22558 -*) as_dir=./$as_dir;;
22559 esac
22560 test -d "$as_dir" || eval $as_mkdir_p || {
22561 as_dirs=
22562 while :; do
22563 case $as_dir in #(
22564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22565 *) as_qdir=$as_dir;;
22566 esac
22567 as_dirs="'$as_qdir' $as_dirs"
22568 as_dir=`$as_dirname -- "$as_dir" ||
22569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570 X"$as_dir" : 'X\(//\)[^/]' \| \
22571 X"$as_dir" : 'X\(//\)$' \| \
22572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22573 $as_echo X"$as_dir" |
22574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22575 s//\1/
22576 q
22577 }
22578 /^X\(\/\/\)[^/].*/{
22579 s//\1/
22580 q
22581 }
22582 /^X\(\/\/\)$/{
22583 s//\1/
22584 q
22585 }
22586 /^X\(\/\).*/{
22587 s//\1/
22588 q
22589 }
22590 s/.*/./; q'`
22591 test -d "$as_dir" && break
22592 done
22593 test -z "$as_dirs" || eval "mkdir $as_dirs"
22594 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22595
22596
22597 } # as_fn_mkdir_p
22598 if mkdir -p . 2>/dev/null; then
22599 as_mkdir_p='mkdir -p "$as_dir"'
22600 else
22601 test -d ./-p && rmdir ./-p
22602 as_mkdir_p=false
22603 fi
22604
22605
22606 # as_fn_executable_p FILE
22607 # -----------------------
22608 # Test if FILE is an executable regular file.
22609 as_fn_executable_p ()
22610 {
22611 test -f "$1" && test -x "$1"
22612 } # as_fn_executable_p
22613 as_test_x='test -x'
22614 as_executable_p=as_fn_executable_p
22615
22616 # Sed expression to map a string onto a valid CPP name.
22617 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22618
22619 # Sed expression to map a string onto a valid variable name.
22620 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22621
22622
22623 exec 6>&1
22624 ## ----------------------------------- ##
22625 ## Main body of $CONFIG_STATUS script. ##
22626 ## ----------------------------------- ##
22627 _ASEOF
22628 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22629
22630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22631 # Save the log message, to keep $0 and so on meaningful, and to
22632 # report actual input values of CONFIG_FILES etc. instead of their
22633 # values after options handling.
22634 ac_log="
22635 This file was extended by Cycript $as_me 0.9, which was
22636 generated by GNU Autoconf 2.69. Invocation command line was
22637
22638 CONFIG_FILES = $CONFIG_FILES
22639 CONFIG_HEADERS = $CONFIG_HEADERS
22640 CONFIG_LINKS = $CONFIG_LINKS
22641 CONFIG_COMMANDS = $CONFIG_COMMANDS
22642 $ $0 $@
22643
22644 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22645 "
22646
22647 _ACEOF
22648
22649 case $ac_config_files in *"
22650 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22651 esac
22652
22653
22654
22655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22656 # Files that config.status was made for.
22657 config_files="$ac_config_files"
22658 config_commands="$ac_config_commands"
22659
22660 _ACEOF
22661
22662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22663 ac_cs_usage="\
22664 \`$as_me' instantiates files and other configuration actions
22665 from templates according to the current configuration. Unless the files
22666 and actions are specified as TAGs, all are instantiated by default.
22667
22668 Usage: $0 [OPTION]... [TAG]...
22669
22670 -h, --help print this help, then exit
22671 -V, --version print version number and configuration settings, then exit
22672 --config print configuration, then exit
22673 -q, --quiet, --silent
22674 do not print progress messages
22675 -d, --debug don't remove temporary files
22676 --recheck update $as_me by reconfiguring in the same conditions
22677 --file=FILE[:TEMPLATE]
22678 instantiate the configuration file FILE
22679
22680 Configuration files:
22681 $config_files
22682
22683 Configuration commands:
22684 $config_commands
22685
22686 Report bugs to <saurik@saurik.com>.
22687 Cycript home page: <http://www.cycript.org/>."
22688
22689 _ACEOF
22690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22691 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22692 ac_cs_version="\\
22693 Cycript config.status 0.9
22694 configured by $0, generated by GNU Autoconf 2.69,
22695 with options \\"\$ac_cs_config\\"
22696
22697 Copyright (C) 2012 Free Software Foundation, Inc.
22698 This config.status script is free software; the Free Software Foundation
22699 gives unlimited permission to copy, distribute and modify it."
22700
22701 ac_pwd='$ac_pwd'
22702 srcdir='$srcdir'
22703 INSTALL='$INSTALL'
22704 MKDIR_P='$MKDIR_P'
22705 AWK='$AWK'
22706 test -n "\$AWK" || AWK=awk
22707 _ACEOF
22708
22709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22710 # The default lists apply if the user does not specify any file.
22711 ac_need_defaults=:
22712 while test $# != 0
22713 do
22714 case $1 in
22715 --*=?*)
22716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22718 ac_shift=:
22719 ;;
22720 --*=)
22721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22722 ac_optarg=
22723 ac_shift=:
22724 ;;
22725 *)
22726 ac_option=$1
22727 ac_optarg=$2
22728 ac_shift=shift
22729 ;;
22730 esac
22731
22732 case $ac_option in
22733 # Handling of the options.
22734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22735 ac_cs_recheck=: ;;
22736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22737 $as_echo "$ac_cs_version"; exit ;;
22738 --config | --confi | --conf | --con | --co | --c )
22739 $as_echo "$ac_cs_config"; exit ;;
22740 --debug | --debu | --deb | --de | --d | -d )
22741 debug=: ;;
22742 --file | --fil | --fi | --f )
22743 $ac_shift
22744 case $ac_optarg in
22745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22746 '') as_fn_error $? "missing file argument" ;;
22747 esac
22748 as_fn_append CONFIG_FILES " '$ac_optarg'"
22749 ac_need_defaults=false;;
22750 --he | --h | --help | --hel | -h )
22751 $as_echo "$ac_cs_usage"; exit ;;
22752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22753 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22754 ac_cs_silent=: ;;
22755
22756 # This is an error.
22757 -*) as_fn_error $? "unrecognized option: \`$1'
22758 Try \`$0 --help' for more information." ;;
22759
22760 *) as_fn_append ac_config_targets " $1"
22761 ac_need_defaults=false ;;
22762
22763 esac
22764 shift
22765 done
22766
22767 ac_configure_extra_args=
22768
22769 if $ac_cs_silent; then
22770 exec 6>/dev/null
22771 ac_configure_extra_args="$ac_configure_extra_args --silent"
22772 fi
22773
22774 _ACEOF
22775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22776 if \$ac_cs_recheck; then
22777 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22778 shift
22779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22780 CONFIG_SHELL='$SHELL'
22781 export CONFIG_SHELL
22782 exec "\$@"
22783 fi
22784
22785 _ACEOF
22786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22787 exec 5>>config.log
22788 {
22789 echo
22790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22791 ## Running $as_me. ##
22792 _ASBOX
22793 $as_echo "$ac_log"
22794 } >&5
22795
22796 _ACEOF
22797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22798 #
22799 # INIT-COMMANDS
22800 #
22801 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22802
22803
22804 # The HP-UX ksh and POSIX shell print the target directory to stdout
22805 # if CDPATH is set.
22806 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22807
22808 sed_quote_subst='$sed_quote_subst'
22809 double_quote_subst='$double_quote_subst'
22810 delay_variable_subst='$delay_variable_subst'
22811 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22812 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22814 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22815 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22816 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22817 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22818 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22819 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22820 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22821 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22822 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22823 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22824 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22825 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22826 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22827 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22828 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22829 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22830 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22831 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22832 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22833 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22834 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22835 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22836 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22837 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22838 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22839 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22840 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22841 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22842 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22843 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22844 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22845 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22846 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22847 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22848 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22849 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22850 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22851 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22852 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22853 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22854 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22855 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22856 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22857 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22858 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22859 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22860 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22861 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22862 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22863 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22864 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22865 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22866 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22867 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"`'
22868 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22869 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22870 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22871 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22872 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22873 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22874 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22875 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22876 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22877 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22878 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22879 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22880 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22881 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22882 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22883 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22884 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22885 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22886 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22887 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22888 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22889 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22890 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22891 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22892 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22893 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22894 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22895 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22896 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22897 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22898 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22899 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22900 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22901 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22902 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22903 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22904 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22905 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22906 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22907 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22908 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22909 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22910 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22911 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22912 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22913 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22914 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22915 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22916 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22917 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22918 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22919 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22920 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22921 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22922 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22923 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22924 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22925 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22926 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22927 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22928 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22929 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22930 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22931 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22932 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22933 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22934 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22935 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22936 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22937 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22938 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22939 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22940 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22941 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22942 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22943 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22944 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22945 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22946 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22947 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22948 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22949 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22950 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22951 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22952 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22953 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22954 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22955 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22956 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22957 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22958 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22959 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22960 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22961 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22962 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22963 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22964 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22965 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22966 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22967 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22968 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22969 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22970 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22971 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22972 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22973 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22974 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22975 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22976 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22977 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22978 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22979 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22980 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22981 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22982 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22983 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22984 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22985 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22986 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22987 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22988 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22989 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22990 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22991 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22992 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22993 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22994 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22995
22996 LTCC='$LTCC'
22997 LTCFLAGS='$LTCFLAGS'
22998 compiler='$compiler_DEFAULT'
22999
23000 # A function that is used when there is no print builtin or printf.
23001 func_fallback_echo ()
23002 {
23003 eval 'cat <<_LTECHO_EOF
23004 \$1
23005 _LTECHO_EOF'
23006 }
23007
23008 # Quote evaled strings.
23009 for var in SHELL \
23010 ECHO \
23011 PATH_SEPARATOR \
23012 SED \
23013 GREP \
23014 EGREP \
23015 FGREP \
23016 LD \
23017 NM \
23018 LN_S \
23019 lt_SP2NL \
23020 lt_NL2SP \
23021 reload_flag \
23022 OBJDUMP \
23023 deplibs_check_method \
23024 file_magic_cmd \
23025 file_magic_glob \
23026 want_nocaseglob \
23027 DLLTOOL \
23028 sharedlib_from_linklib_cmd \
23029 AR \
23030 AR_FLAGS \
23031 archiver_list_spec \
23032 STRIP \
23033 RANLIB \
23034 CC \
23035 CFLAGS \
23036 compiler \
23037 lt_cv_sys_global_symbol_pipe \
23038 lt_cv_sys_global_symbol_to_cdecl \
23039 lt_cv_sys_global_symbol_to_c_name_address \
23040 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23041 nm_file_list_spec \
23042 lt_prog_compiler_no_builtin_flag \
23043 lt_prog_compiler_pic \
23044 lt_prog_compiler_wl \
23045 lt_prog_compiler_static \
23046 lt_cv_prog_compiler_c_o \
23047 need_locks \
23048 MANIFEST_TOOL \
23049 DSYMUTIL \
23050 NMEDIT \
23051 LIPO \
23052 OTOOL \
23053 OTOOL64 \
23054 shrext_cmds \
23055 export_dynamic_flag_spec \
23056 whole_archive_flag_spec \
23057 compiler_needs_object \
23058 with_gnu_ld \
23059 allow_undefined_flag \
23060 no_undefined_flag \
23061 hardcode_libdir_flag_spec \
23062 hardcode_libdir_separator \
23063 exclude_expsyms \
23064 include_expsyms \
23065 file_list_spec \
23066 variables_saved_for_relink \
23067 libname_spec \
23068 library_names_spec \
23069 soname_spec \
23070 install_override_mode \
23071 finish_eval \
23072 old_striplib \
23073 striplib \
23074 compiler_lib_search_dirs \
23075 predep_objects \
23076 postdep_objects \
23077 predeps \
23078 postdeps \
23079 compiler_lib_search_path \
23080 LD_CXX \
23081 reload_flag_CXX \
23082 compiler_CXX \
23083 lt_prog_compiler_no_builtin_flag_CXX \
23084 lt_prog_compiler_pic_CXX \
23085 lt_prog_compiler_wl_CXX \
23086 lt_prog_compiler_static_CXX \
23087 lt_cv_prog_compiler_c_o_CXX \
23088 export_dynamic_flag_spec_CXX \
23089 whole_archive_flag_spec_CXX \
23090 compiler_needs_object_CXX \
23091 with_gnu_ld_CXX \
23092 allow_undefined_flag_CXX \
23093 no_undefined_flag_CXX \
23094 hardcode_libdir_flag_spec_CXX \
23095 hardcode_libdir_separator_CXX \
23096 exclude_expsyms_CXX \
23097 include_expsyms_CXX \
23098 file_list_spec_CXX \
23099 compiler_lib_search_dirs_CXX \
23100 predep_objects_CXX \
23101 postdep_objects_CXX \
23102 predeps_CXX \
23103 postdeps_CXX \
23104 compiler_lib_search_path_CXX; do
23105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23106 *[\\\\\\\`\\"\\\$]*)
23107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23108 ;;
23109 *)
23110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23111 ;;
23112 esac
23113 done
23114
23115 # Double-quote double-evaled strings.
23116 for var in reload_cmds \
23117 old_postinstall_cmds \
23118 old_postuninstall_cmds \
23119 old_archive_cmds \
23120 extract_expsyms_cmds \
23121 old_archive_from_new_cmds \
23122 old_archive_from_expsyms_cmds \
23123 archive_cmds \
23124 archive_expsym_cmds \
23125 module_cmds \
23126 module_expsym_cmds \
23127 export_symbols_cmds \
23128 prelink_cmds \
23129 postlink_cmds \
23130 postinstall_cmds \
23131 postuninstall_cmds \
23132 finish_cmds \
23133 sys_lib_search_path_spec \
23134 sys_lib_dlsearch_path_spec \
23135 reload_cmds_CXX \
23136 old_archive_cmds_CXX \
23137 old_archive_from_new_cmds_CXX \
23138 old_archive_from_expsyms_cmds_CXX \
23139 archive_cmds_CXX \
23140 archive_expsym_cmds_CXX \
23141 module_cmds_CXX \
23142 module_expsym_cmds_CXX \
23143 export_symbols_cmds_CXX \
23144 prelink_cmds_CXX \
23145 postlink_cmds_CXX; do
23146 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23147 *[\\\\\\\`\\"\\\$]*)
23148 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23149 ;;
23150 *)
23151 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23152 ;;
23153 esac
23154 done
23155
23156 ac_aux_dir='$ac_aux_dir'
23157 xsi_shell='$xsi_shell'
23158 lt_shell_append='$lt_shell_append'
23159
23160 # See if we are running on zsh, and set the options which allow our
23161 # commands through without removal of \ escapes INIT.
23162 if test -n "\${ZSH_VERSION+set}" ; then
23163 setopt NO_GLOB_SUBST
23164 fi
23165
23166
23167 PACKAGE='$PACKAGE'
23168 VERSION='$VERSION'
23169 TIMESTAMP='$TIMESTAMP'
23170 RM='$RM'
23171 ofile='$ofile'
23172
23173
23174
23175
23176
23177
23178 _ACEOF
23179
23180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23181
23182 # Handling of arguments.
23183 for ac_config_target in $ac_config_targets
23184 do
23185 case $ac_config_target in
23186 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23187 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23189
23190 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23191 esac
23192 done
23193
23194
23195 # If the user did not use the arguments to specify the items to instantiate,
23196 # then the envvar interface is used. Set only those that are not.
23197 # We use the long form for the default assignment because of an extremely
23198 # bizarre bug on SunOS 4.1.3.
23199 if $ac_need_defaults; then
23200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23201 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23202 fi
23203
23204 # Have a temporary directory for convenience. Make it in the build tree
23205 # simply because there is no reason against having it here, and in addition,
23206 # creating and moving files from /tmp can sometimes cause problems.
23207 # Hook for its removal unless debugging.
23208 # Note that there is a small window in which the directory will not be cleaned:
23209 # after its creation but before its name has been assigned to `$tmp'.
23210 $debug ||
23211 {
23212 tmp= ac_tmp=
23213 trap 'exit_status=$?
23214 : "${ac_tmp:=$tmp}"
23215 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23216 ' 0
23217 trap 'as_fn_exit 1' 1 2 13 15
23218 }
23219 # Create a (secure) tmp directory for tmp files.
23220
23221 {
23222 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23223 test -d "$tmp"
23224 } ||
23225 {
23226 tmp=./conf$$-$RANDOM
23227 (umask 077 && mkdir "$tmp")
23228 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23229 ac_tmp=$tmp
23230
23231 # Set up the scripts for CONFIG_FILES section.
23232 # No need to generate them if there are no CONFIG_FILES.
23233 # This happens for instance with `./config.status config.h'.
23234 if test -n "$CONFIG_FILES"; then
23235
23236
23237 ac_cr=`echo X | tr X '\015'`
23238 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23239 # But we know of no other shell where ac_cr would be empty at this
23240 # point, so we can use a bashism as a fallback.
23241 if test "x$ac_cr" = x; then
23242 eval ac_cr=\$\'\\r\'
23243 fi
23244 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23245 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23246 ac_cs_awk_cr='\\r'
23247 else
23248 ac_cs_awk_cr=$ac_cr
23249 fi
23250
23251 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23252 _ACEOF
23253
23254
23255 {
23256 echo "cat >conf$$subs.awk <<_ACEOF" &&
23257 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23258 echo "_ACEOF"
23259 } >conf$$subs.sh ||
23260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23261 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23262 ac_delim='%!_!# '
23263 for ac_last_try in false false false false false :; do
23264 . ./conf$$subs.sh ||
23265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23266
23267 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23268 if test $ac_delim_n = $ac_delim_num; then
23269 break
23270 elif $ac_last_try; then
23271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23272 else
23273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23274 fi
23275 done
23276 rm -f conf$$subs.sh
23277
23278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23279 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23280 _ACEOF
23281 sed -n '
23282 h
23283 s/^/S["/; s/!.*/"]=/
23284 p
23285 g
23286 s/^[^!]*!//
23287 :repl
23288 t repl
23289 s/'"$ac_delim"'$//
23290 t delim
23291 :nl
23292 h
23293 s/\(.\{148\}\)..*/\1/
23294 t more1
23295 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23296 p
23297 n
23298 b repl
23299 :more1
23300 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23301 p
23302 g
23303 s/.\{148\}//
23304 t nl
23305 :delim
23306 h
23307 s/\(.\{148\}\)..*/\1/
23308 t more2
23309 s/["\\]/\\&/g; s/^/"/; s/$/"/
23310 p
23311 b
23312 :more2
23313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23314 p
23315 g
23316 s/.\{148\}//
23317 t delim
23318 ' <conf$$subs.awk | sed '
23319 /^[^""]/{
23320 N
23321 s/\n//
23322 }
23323 ' >>$CONFIG_STATUS || ac_write_fail=1
23324 rm -f conf$$subs.awk
23325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23326 _ACAWK
23327 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23328 for (key in S) S_is_set[key] = 1
23329 FS = "\a"
23330
23331 }
23332 {
23333 line = $ 0
23334 nfields = split(line, field, "@")
23335 substed = 0
23336 len = length(field[1])
23337 for (i = 2; i < nfields; i++) {
23338 key = field[i]
23339 keylen = length(key)
23340 if (S_is_set[key]) {
23341 value = S[key]
23342 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23343 len += length(value) + length(field[++i])
23344 substed = 1
23345 } else
23346 len += 1 + keylen
23347 }
23348
23349 print line
23350 }
23351
23352 _ACAWK
23353 _ACEOF
23354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23355 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23356 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23357 else
23358 cat
23359 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23360 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23361 _ACEOF
23362
23363 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23364 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23365 # trailing colons and then remove the whole line if VPATH becomes empty
23366 # (actually we leave an empty line to preserve line numbers).
23367 if test "x$srcdir" = x.; then
23368 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23369 h
23370 s///
23371 s/^/:/
23372 s/[ ]*$/:/
23373 s/:\$(srcdir):/:/g
23374 s/:\${srcdir}:/:/g
23375 s/:@srcdir@:/:/g
23376 s/^:*//
23377 s/:*$//
23378 x
23379 s/\(=[ ]*\).*/\1/
23380 G
23381 s/\n//
23382 s/^[^=]*=[ ]*$//
23383 }'
23384 fi
23385
23386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23387 fi # test -n "$CONFIG_FILES"
23388
23389
23390 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
23391 shift
23392 for ac_tag
23393 do
23394 case $ac_tag in
23395 :[FHLC]) ac_mode=$ac_tag; continue;;
23396 esac
23397 case $ac_mode$ac_tag in
23398 :[FHL]*:*);;
23399 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23400 :[FH]-) ac_tag=-:-;;
23401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23402 esac
23403 ac_save_IFS=$IFS
23404 IFS=:
23405 set x $ac_tag
23406 IFS=$ac_save_IFS
23407 shift
23408 ac_file=$1
23409 shift
23410
23411 case $ac_mode in
23412 :L) ac_source=$1;;
23413 :[FH])
23414 ac_file_inputs=
23415 for ac_f
23416 do
23417 case $ac_f in
23418 -) ac_f="$ac_tmp/stdin";;
23419 *) # Look for the file first in the build tree, then in the source tree
23420 # (if the path is not absolute). The absolute path cannot be DOS-style,
23421 # because $ac_f cannot contain `:'.
23422 test -f "$ac_f" ||
23423 case $ac_f in
23424 [\\/$]*) false;;
23425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23426 esac ||
23427 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23428 esac
23429 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23430 as_fn_append ac_file_inputs " '$ac_f'"
23431 done
23432
23433 # Let's still pretend it is `configure' which instantiates (i.e., don't
23434 # use $as_me), people would be surprised to read:
23435 # /* config.h. Generated by config.status. */
23436 configure_input='Generated from '`
23437 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23438 `' by configure.'
23439 if test x"$ac_file" != x-; then
23440 configure_input="$ac_file. $configure_input"
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23442 $as_echo "$as_me: creating $ac_file" >&6;}
23443 fi
23444 # Neutralize special characters interpreted by sed in replacement strings.
23445 case $configure_input in #(
23446 *\&* | *\|* | *\\* )
23447 ac_sed_conf_input=`$as_echo "$configure_input" |
23448 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23449 *) ac_sed_conf_input=$configure_input;;
23450 esac
23451
23452 case $ac_tag in
23453 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23455 esac
23456 ;;
23457 esac
23458
23459 ac_dir=`$as_dirname -- "$ac_file" ||
23460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23461 X"$ac_file" : 'X\(//\)[^/]' \| \
23462 X"$ac_file" : 'X\(//\)$' \| \
23463 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23464 $as_echo X"$ac_file" |
23465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23466 s//\1/
23467 q
23468 }
23469 /^X\(\/\/\)[^/].*/{
23470 s//\1/
23471 q
23472 }
23473 /^X\(\/\/\)$/{
23474 s//\1/
23475 q
23476 }
23477 /^X\(\/\).*/{
23478 s//\1/
23479 q
23480 }
23481 s/.*/./; q'`
23482 as_dir="$ac_dir"; as_fn_mkdir_p
23483 ac_builddir=.
23484
23485 case "$ac_dir" in
23486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23487 *)
23488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23489 # A ".." for each directory in $ac_dir_suffix.
23490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23491 case $ac_top_builddir_sub in
23492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23494 esac ;;
23495 esac
23496 ac_abs_top_builddir=$ac_pwd
23497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23498 # for backward compatibility:
23499 ac_top_builddir=$ac_top_build_prefix
23500
23501 case $srcdir in
23502 .) # We are building in place.
23503 ac_srcdir=.
23504 ac_top_srcdir=$ac_top_builddir_sub
23505 ac_abs_top_srcdir=$ac_pwd ;;
23506 [\\/]* | ?:[\\/]* ) # Absolute name.
23507 ac_srcdir=$srcdir$ac_dir_suffix;
23508 ac_top_srcdir=$srcdir
23509 ac_abs_top_srcdir=$srcdir ;;
23510 *) # Relative name.
23511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23512 ac_top_srcdir=$ac_top_build_prefix$srcdir
23513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23514 esac
23515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23516
23517
23518 case $ac_mode in
23519 :F)
23520 #
23521 # CONFIG_FILE
23522 #
23523
23524 case $INSTALL in
23525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23526 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23527 esac
23528 ac_MKDIR_P=$MKDIR_P
23529 case $MKDIR_P in
23530 [\\/$]* | ?:[\\/]* ) ;;
23531 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23532 esac
23533 _ACEOF
23534
23535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23536 # If the template does not know about datarootdir, expand it.
23537 # FIXME: This hack should be removed a few years after 2.60.
23538 ac_datarootdir_hack=; ac_datarootdir_seen=
23539 ac_sed_dataroot='
23540 /datarootdir/ {
23541 p
23542 q
23543 }
23544 /@datadir@/p
23545 /@docdir@/p
23546 /@infodir@/p
23547 /@localedir@/p
23548 /@mandir@/p'
23549 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23550 *datarootdir*) ac_datarootdir_seen=yes;;
23551 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23553 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23554 _ACEOF
23555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23556 ac_datarootdir_hack='
23557 s&@datadir@&$datadir&g
23558 s&@docdir@&$docdir&g
23559 s&@infodir@&$infodir&g
23560 s&@localedir@&$localedir&g
23561 s&@mandir@&$mandir&g
23562 s&\\\${datarootdir}&$datarootdir&g' ;;
23563 esac
23564 _ACEOF
23565
23566 # Neutralize VPATH when `$srcdir' = `.'.
23567 # Shell code in configure.ac might set extrasub.
23568 # FIXME: do we really want to maintain this feature?
23569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23570 ac_sed_extra="$ac_vpsub
23571 $extrasub
23572 _ACEOF
23573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23574 :t
23575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23576 s|@configure_input@|$ac_sed_conf_input|;t t
23577 s&@top_builddir@&$ac_top_builddir_sub&;t t
23578 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23579 s&@srcdir@&$ac_srcdir&;t t
23580 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23581 s&@top_srcdir@&$ac_top_srcdir&;t t
23582 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23583 s&@builddir@&$ac_builddir&;t t
23584 s&@abs_builddir@&$ac_abs_builddir&;t t
23585 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23586 s&@INSTALL@&$ac_INSTALL&;t t
23587 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23588 $ac_datarootdir_hack
23589 "
23590 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23591 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23592
23593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23594 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23596 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23598 which seems to be undefined. Please make sure it is defined" >&5
23599 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23600 which seems to be undefined. Please make sure it is defined" >&2;}
23601
23602 rm -f "$ac_tmp/stdin"
23603 case $ac_file in
23604 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23605 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23606 esac \
23607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23608 ;;
23609
23610
23611 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23612 $as_echo "$as_me: executing $ac_file commands" >&6;}
23613 ;;
23614 esac
23615
23616
23617 case $ac_file$ac_mode in
23618 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23619 # Older Autoconf quotes --file arguments for eval, but not when files
23620 # are listed without --file. Let's play safe and only enable the eval
23621 # if we detect the quoting.
23622 case $CONFIG_FILES in
23623 *\'*) eval set x "$CONFIG_FILES" ;;
23624 *) set x $CONFIG_FILES ;;
23625 esac
23626 shift
23627 for mf
23628 do
23629 # Strip MF so we end up with the name of the file.
23630 mf=`echo "$mf" | sed -e 's/:.*$//'`
23631 # Check whether this is an Automake generated Makefile or not.
23632 # We used to match only the files named 'Makefile.in', but
23633 # some people rename them; so instead we look at the file content.
23634 # Grep'ing the first line is not enough: some people post-process
23635 # each Makefile.in and add a new line on top of each file to say so.
23636 # Grep'ing the whole file is not good either: AIX grep has a line
23637 # limit of 2048, but all sed's we know have understand at least 4000.
23638 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23639 dirpart=`$as_dirname -- "$mf" ||
23640 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23641 X"$mf" : 'X\(//\)[^/]' \| \
23642 X"$mf" : 'X\(//\)$' \| \
23643 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23644 $as_echo X"$mf" |
23645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23646 s//\1/
23647 q
23648 }
23649 /^X\(\/\/\)[^/].*/{
23650 s//\1/
23651 q
23652 }
23653 /^X\(\/\/\)$/{
23654 s//\1/
23655 q
23656 }
23657 /^X\(\/\).*/{
23658 s//\1/
23659 q
23660 }
23661 s/.*/./; q'`
23662 else
23663 continue
23664 fi
23665 # Extract the definition of DEPDIR, am__include, and am__quote
23666 # from the Makefile without running 'make'.
23667 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23668 test -z "$DEPDIR" && continue
23669 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23670 test -z "am__include" && continue
23671 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23672 # Find all dependency output files, they are included files with
23673 # $(DEPDIR) in their names. We invoke sed twice because it is the
23674 # simplest approach to changing $(DEPDIR) to its actual value in the
23675 # expansion.
23676 for file in `sed -n "
23677 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23678 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23679 # Make sure the directory exists.
23680 test -f "$dirpart/$file" && continue
23681 fdir=`$as_dirname -- "$file" ||
23682 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23683 X"$file" : 'X\(//\)[^/]' \| \
23684 X"$file" : 'X\(//\)$' \| \
23685 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23686 $as_echo X"$file" |
23687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23688 s//\1/
23689 q
23690 }
23691 /^X\(\/\/\)[^/].*/{
23692 s//\1/
23693 q
23694 }
23695 /^X\(\/\/\)$/{
23696 s//\1/
23697 q
23698 }
23699 /^X\(\/\).*/{
23700 s//\1/
23701 q
23702 }
23703 s/.*/./; q'`
23704 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23705 # echo "creating $dirpart/$file"
23706 echo '# dummy' > "$dirpart/$file"
23707 done
23708 done
23709 }
23710 ;;
23711 "libtool":C)
23712
23713 # See if we are running on zsh, and set the options which allow our
23714 # commands through without removal of \ escapes.
23715 if test -n "${ZSH_VERSION+set}" ; then
23716 setopt NO_GLOB_SUBST
23717 fi
23718
23719 cfgfile="${ofile}T"
23720 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23721 $RM "$cfgfile"
23722
23723 cat <<_LT_EOF >> "$cfgfile"
23724 #! $SHELL
23725
23726 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23727 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23729 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23730 #
23731 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23732 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23733 # Foundation, Inc.
23734 # Written by Gordon Matzigkeit, 1996
23735 #
23736 # This file is part of GNU Libtool.
23737 #
23738 # GNU Libtool is free software; you can redistribute it and/or
23739 # modify it under the terms of the GNU General Public License as
23740 # published by the Free Software Foundation; either version 2 of
23741 # the License, or (at your option) any later version.
23742 #
23743 # As a special exception to the GNU General Public License,
23744 # if you distribute this file as part of a program or library that
23745 # is built using GNU Libtool, you may include this file under the
23746 # same distribution terms that you use for the rest of that program.
23747 #
23748 # GNU Libtool is distributed in the hope that it will be useful,
23749 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23750 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23751 # GNU General Public License for more details.
23752 #
23753 # You should have received a copy of the GNU General Public License
23754 # along with GNU Libtool; see the file COPYING. If not, a copy
23755 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23756 # obtained by writing to the Free Software Foundation, Inc.,
23757 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23758
23759
23760 # The names of the tagged configurations supported by this script.
23761 available_tags="CXX "
23762
23763 # ### BEGIN LIBTOOL CONFIG
23764
23765 # Which release of libtool.m4 was used?
23766 macro_version=$macro_version
23767 macro_revision=$macro_revision
23768
23769 # Whether or not to build static libraries.
23770 build_old_libs=$enable_static
23771
23772 # Whether or not to build shared libraries.
23773 build_libtool_libs=$enable_shared
23774
23775 # What type of objects to build.
23776 pic_mode=$pic_mode
23777
23778 # Whether or not to optimize for fast installation.
23779 fast_install=$enable_fast_install
23780
23781 # Shell to use when invoking shell scripts.
23782 SHELL=$lt_SHELL
23783
23784 # An echo program that protects backslashes.
23785 ECHO=$lt_ECHO
23786
23787 # The PATH separator for the build system.
23788 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23789
23790 # The host system.
23791 host_alias=$host_alias
23792 host=$host
23793 host_os=$host_os
23794
23795 # The build system.
23796 build_alias=$build_alias
23797 build=$build
23798 build_os=$build_os
23799
23800 # A sed program that does not truncate output.
23801 SED=$lt_SED
23802
23803 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23804 Xsed="\$SED -e 1s/^X//"
23805
23806 # A grep program that handles long lines.
23807 GREP=$lt_GREP
23808
23809 # An ERE matcher.
23810 EGREP=$lt_EGREP
23811
23812 # A literal string matcher.
23813 FGREP=$lt_FGREP
23814
23815 # A BSD- or MS-compatible name lister.
23816 NM=$lt_NM
23817
23818 # Whether we need soft or hard links.
23819 LN_S=$lt_LN_S
23820
23821 # What is the maximum length of a command?
23822 max_cmd_len=$max_cmd_len
23823
23824 # Object file suffix (normally "o").
23825 objext=$ac_objext
23826
23827 # Executable file suffix (normally "").
23828 exeext=$exeext
23829
23830 # whether the shell understands "unset".
23831 lt_unset=$lt_unset
23832
23833 # turn spaces into newlines.
23834 SP2NL=$lt_lt_SP2NL
23835
23836 # turn newlines into spaces.
23837 NL2SP=$lt_lt_NL2SP
23838
23839 # convert \$build file names to \$host format.
23840 to_host_file_cmd=$lt_cv_to_host_file_cmd
23841
23842 # convert \$build files to toolchain format.
23843 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23844
23845 # An object symbol dumper.
23846 OBJDUMP=$lt_OBJDUMP
23847
23848 # Method to check whether dependent libraries are shared objects.
23849 deplibs_check_method=$lt_deplibs_check_method
23850
23851 # Command to use when deplibs_check_method = "file_magic".
23852 file_magic_cmd=$lt_file_magic_cmd
23853
23854 # How to find potential files when deplibs_check_method = "file_magic".
23855 file_magic_glob=$lt_file_magic_glob
23856
23857 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23858 want_nocaseglob=$lt_want_nocaseglob
23859
23860 # DLL creation program.
23861 DLLTOOL=$lt_DLLTOOL
23862
23863 # Command to associate shared and link libraries.
23864 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23865
23866 # The archiver.
23867 AR=$lt_AR
23868
23869 # Flags to create an archive.
23870 AR_FLAGS=$lt_AR_FLAGS
23871
23872 # How to feed a file listing to the archiver.
23873 archiver_list_spec=$lt_archiver_list_spec
23874
23875 # A symbol stripping program.
23876 STRIP=$lt_STRIP
23877
23878 # Commands used to install an old-style archive.
23879 RANLIB=$lt_RANLIB
23880 old_postinstall_cmds=$lt_old_postinstall_cmds
23881 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23882
23883 # Whether to use a lock for old archive extraction.
23884 lock_old_archive_extraction=$lock_old_archive_extraction
23885
23886 # A C compiler.
23887 LTCC=$lt_CC
23888
23889 # LTCC compiler flags.
23890 LTCFLAGS=$lt_CFLAGS
23891
23892 # Take the output of nm and produce a listing of raw symbols and C names.
23893 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23894
23895 # Transform the output of nm in a proper C declaration.
23896 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23897
23898 # Transform the output of nm in a C name address pair.
23899 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23900
23901 # Transform the output of nm in a C name address pair when lib prefix is needed.
23902 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23903
23904 # Specify filename containing input files for \$NM.
23905 nm_file_list_spec=$lt_nm_file_list_spec
23906
23907 # The root where to search for dependent libraries,and in which our libraries should be installed.
23908 lt_sysroot=$lt_sysroot
23909
23910 # The name of the directory that contains temporary libtool files.
23911 objdir=$objdir
23912
23913 # Used to examine libraries when file_magic_cmd begins with "file".
23914 MAGIC_CMD=$MAGIC_CMD
23915
23916 # Must we lock files when doing compilation?
23917 need_locks=$lt_need_locks
23918
23919 # Manifest tool.
23920 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23921
23922 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23923 DSYMUTIL=$lt_DSYMUTIL
23924
23925 # Tool to change global to local symbols on Mac OS X.
23926 NMEDIT=$lt_NMEDIT
23927
23928 # Tool to manipulate fat objects and archives on Mac OS X.
23929 LIPO=$lt_LIPO
23930
23931 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23932 OTOOL=$lt_OTOOL
23933
23934 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23935 OTOOL64=$lt_OTOOL64
23936
23937 # Old archive suffix (normally "a").
23938 libext=$libext
23939
23940 # Shared library suffix (normally ".so").
23941 shrext_cmds=$lt_shrext_cmds
23942
23943 # The commands to extract the exported symbol list from a shared archive.
23944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23945
23946 # Variables whose values should be saved in libtool wrapper scripts and
23947 # restored at link time.
23948 variables_saved_for_relink=$lt_variables_saved_for_relink
23949
23950 # Do we need the "lib" prefix for modules?
23951 need_lib_prefix=$need_lib_prefix
23952
23953 # Do we need a version for libraries?
23954 need_version=$need_version
23955
23956 # Library versioning type.
23957 version_type=$version_type
23958
23959 # Shared library runtime path variable.
23960 runpath_var=$runpath_var
23961
23962 # Shared library path variable.
23963 shlibpath_var=$shlibpath_var
23964
23965 # Is shlibpath searched before the hard-coded library search path?
23966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23967
23968 # Format of library name prefix.
23969 libname_spec=$lt_libname_spec
23970
23971 # List of archive names. First name is the real one, the rest are links.
23972 # The last name is the one that the linker finds with -lNAME
23973 library_names_spec=$lt_library_names_spec
23974
23975 # The coded name of the library, if different from the real name.
23976 soname_spec=$lt_soname_spec
23977
23978 # Permission mode override for installation of shared libraries.
23979 install_override_mode=$lt_install_override_mode
23980
23981 # Command to use after installation of a shared archive.
23982 postinstall_cmds=$lt_postinstall_cmds
23983
23984 # Command to use after uninstallation of a shared archive.
23985 postuninstall_cmds=$lt_postuninstall_cmds
23986
23987 # Commands used to finish a libtool library installation in a directory.
23988 finish_cmds=$lt_finish_cmds
23989
23990 # As "finish_cmds", except a single script fragment to be evaled but
23991 # not shown.
23992 finish_eval=$lt_finish_eval
23993
23994 # Whether we should hardcode library paths into libraries.
23995 hardcode_into_libs=$hardcode_into_libs
23996
23997 # Compile-time system search path for libraries.
23998 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23999
24000 # Run-time system search path for libraries.
24001 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24002
24003 # Whether dlopen is supported.
24004 dlopen_support=$enable_dlopen
24005
24006 # Whether dlopen of programs is supported.
24007 dlopen_self=$enable_dlopen_self
24008
24009 # Whether dlopen of statically linked programs is supported.
24010 dlopen_self_static=$enable_dlopen_self_static
24011
24012 # Commands to strip libraries.
24013 old_striplib=$lt_old_striplib
24014 striplib=$lt_striplib
24015
24016
24017 # The linker used to build libraries.
24018 LD=$lt_LD
24019
24020 # How to create reloadable object files.
24021 reload_flag=$lt_reload_flag
24022 reload_cmds=$lt_reload_cmds
24023
24024 # Commands used to build an old-style archive.
24025 old_archive_cmds=$lt_old_archive_cmds
24026
24027 # A language specific compiler.
24028 CC=$lt_compiler
24029
24030 # Is the compiler the GNU compiler?
24031 with_gcc=$GCC
24032
24033 # Compiler flag to turn off builtin functions.
24034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24035
24036 # Additional compiler flags for building library objects.
24037 pic_flag=$lt_lt_prog_compiler_pic
24038
24039 # How to pass a linker flag through the compiler.
24040 wl=$lt_lt_prog_compiler_wl
24041
24042 # Compiler flag to prevent dynamic linking.
24043 link_static_flag=$lt_lt_prog_compiler_static
24044
24045 # Does compiler simultaneously support -c and -o options?
24046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24047
24048 # Whether or not to add -lc for building shared libraries.
24049 build_libtool_need_lc=$archive_cmds_need_lc
24050
24051 # Whether or not to disallow shared libs when runtime libs are static.
24052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24053
24054 # Compiler flag to allow reflexive dlopens.
24055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24056
24057 # Compiler flag to generate shared objects directly from archives.
24058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24059
24060 # Whether the compiler copes with passing no objects directly.
24061 compiler_needs_object=$lt_compiler_needs_object
24062
24063 # Create an old-style archive from a shared archive.
24064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24065
24066 # Create a temporary old-style archive to link instead of a shared archive.
24067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24068
24069 # Commands used to build a shared archive.
24070 archive_cmds=$lt_archive_cmds
24071 archive_expsym_cmds=$lt_archive_expsym_cmds
24072
24073 # Commands used to build a loadable module if different from building
24074 # a shared archive.
24075 module_cmds=$lt_module_cmds
24076 module_expsym_cmds=$lt_module_expsym_cmds
24077
24078 # Whether we are building with GNU ld or not.
24079 with_gnu_ld=$lt_with_gnu_ld
24080
24081 # Flag that allows shared libraries with undefined symbols to be built.
24082 allow_undefined_flag=$lt_allow_undefined_flag
24083
24084 # Flag that enforces no undefined symbols.
24085 no_undefined_flag=$lt_no_undefined_flag
24086
24087 # Flag to hardcode \$libdir into a binary during linking.
24088 # This must work even if \$libdir does not exist
24089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24090
24091 # Whether we need a single "-rpath" flag with a separated argument.
24092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24093
24094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24095 # DIR into the resulting binary.
24096 hardcode_direct=$hardcode_direct
24097
24098 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24099 # DIR into the resulting binary and the resulting library dependency is
24100 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24101 # library is relocated.
24102 hardcode_direct_absolute=$hardcode_direct_absolute
24103
24104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24105 # into the resulting binary.
24106 hardcode_minus_L=$hardcode_minus_L
24107
24108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24109 # into the resulting binary.
24110 hardcode_shlibpath_var=$hardcode_shlibpath_var
24111
24112 # Set to "yes" if building a shared library automatically hardcodes DIR
24113 # into the library and all subsequent libraries and executables linked
24114 # against it.
24115 hardcode_automatic=$hardcode_automatic
24116
24117 # Set to yes if linker adds runtime paths of dependent libraries
24118 # to runtime path list.
24119 inherit_rpath=$inherit_rpath
24120
24121 # Whether libtool must link a program against all its dependency libraries.
24122 link_all_deplibs=$link_all_deplibs
24123
24124 # Set to "yes" if exported symbols are required.
24125 always_export_symbols=$always_export_symbols
24126
24127 # The commands to list exported symbols.
24128 export_symbols_cmds=$lt_export_symbols_cmds
24129
24130 # Symbols that should not be listed in the preloaded symbols.
24131 exclude_expsyms=$lt_exclude_expsyms
24132
24133 # Symbols that must always be exported.
24134 include_expsyms=$lt_include_expsyms
24135
24136 # Commands necessary for linking programs (against libraries) with templates.
24137 prelink_cmds=$lt_prelink_cmds
24138
24139 # Commands necessary for finishing linking programs.
24140 postlink_cmds=$lt_postlink_cmds
24141
24142 # Specify filename containing input files.
24143 file_list_spec=$lt_file_list_spec
24144
24145 # How to hardcode a shared library path into an executable.
24146 hardcode_action=$hardcode_action
24147
24148 # The directories searched by this compiler when creating a shared library.
24149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24150
24151 # Dependencies to place before and after the objects being linked to
24152 # create a shared library.
24153 predep_objects=$lt_predep_objects
24154 postdep_objects=$lt_postdep_objects
24155 predeps=$lt_predeps
24156 postdeps=$lt_postdeps
24157
24158 # The library search path used internally by the compiler when linking
24159 # a shared library.
24160 compiler_lib_search_path=$lt_compiler_lib_search_path
24161
24162 # ### END LIBTOOL CONFIG
24163
24164 _LT_EOF
24165
24166 case $host_os in
24167 aix3*)
24168 cat <<\_LT_EOF >> "$cfgfile"
24169 # AIX sometimes has problems with the GCC collect2 program. For some
24170 # reason, if we set the COLLECT_NAMES environment variable, the problems
24171 # vanish in a puff of smoke.
24172 if test "X${COLLECT_NAMES+set}" != Xset; then
24173 COLLECT_NAMES=
24174 export COLLECT_NAMES
24175 fi
24176 _LT_EOF
24177 ;;
24178 esac
24179
24180
24181 ltmain="$ac_aux_dir/ltmain.sh"
24182
24183
24184 # We use sed instead of cat because bash on DJGPP gets confused if
24185 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24186 # text mode, it properly converts lines to CR/LF. This bash problem
24187 # is reportedly fixed, but why not run on old versions too?
24188 sed '$q' "$ltmain" >> "$cfgfile" \
24189 || (rm -f "$cfgfile"; exit 1)
24190
24191 if test x"$xsi_shell" = xyes; then
24192 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24193 func_dirname ()\
24194 {\
24195 \ case ${1} in\
24196 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24197 \ * ) func_dirname_result="${3}" ;;\
24198 \ esac\
24199 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24200 && mv -f "$cfgfile.tmp" "$cfgfile" \
24201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24202 test 0 -eq $? || _lt_function_replace_fail=:
24203
24204
24205 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24206 func_basename ()\
24207 {\
24208 \ func_basename_result="${1##*/}"\
24209 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24210 && mv -f "$cfgfile.tmp" "$cfgfile" \
24211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24212 test 0 -eq $? || _lt_function_replace_fail=:
24213
24214
24215 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24216 func_dirname_and_basename ()\
24217 {\
24218 \ case ${1} in\
24219 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24220 \ * ) func_dirname_result="${3}" ;;\
24221 \ esac\
24222 \ func_basename_result="${1##*/}"\
24223 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24224 && mv -f "$cfgfile.tmp" "$cfgfile" \
24225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24226 test 0 -eq $? || _lt_function_replace_fail=:
24227
24228
24229 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24230 func_stripname ()\
24231 {\
24232 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24233 \ # positional parameters, so assign one to ordinary parameter first.\
24234 \ func_stripname_result=${3}\
24235 \ func_stripname_result=${func_stripname_result#"${1}"}\
24236 \ func_stripname_result=${func_stripname_result%"${2}"}\
24237 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24238 && mv -f "$cfgfile.tmp" "$cfgfile" \
24239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24240 test 0 -eq $? || _lt_function_replace_fail=:
24241
24242
24243 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24244 func_split_long_opt ()\
24245 {\
24246 \ func_split_long_opt_name=${1%%=*}\
24247 \ func_split_long_opt_arg=${1#*=}\
24248 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24249 && mv -f "$cfgfile.tmp" "$cfgfile" \
24250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24251 test 0 -eq $? || _lt_function_replace_fail=:
24252
24253
24254 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24255 func_split_short_opt ()\
24256 {\
24257 \ func_split_short_opt_arg=${1#??}\
24258 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24259 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24260 && mv -f "$cfgfile.tmp" "$cfgfile" \
24261 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24262 test 0 -eq $? || _lt_function_replace_fail=:
24263
24264
24265 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24266 func_lo2o ()\
24267 {\
24268 \ case ${1} in\
24269 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24270 \ *) func_lo2o_result=${1} ;;\
24271 \ esac\
24272 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24273 && mv -f "$cfgfile.tmp" "$cfgfile" \
24274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24275 test 0 -eq $? || _lt_function_replace_fail=:
24276
24277
24278 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24279 func_xform ()\
24280 {\
24281 func_xform_result=${1%.*}.lo\
24282 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24283 && mv -f "$cfgfile.tmp" "$cfgfile" \
24284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24285 test 0 -eq $? || _lt_function_replace_fail=:
24286
24287
24288 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24289 func_arith ()\
24290 {\
24291 func_arith_result=$(( $* ))\
24292 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24293 && mv -f "$cfgfile.tmp" "$cfgfile" \
24294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24295 test 0 -eq $? || _lt_function_replace_fail=:
24296
24297
24298 sed -e '/^func_len ()$/,/^} # func_len /c\
24299 func_len ()\
24300 {\
24301 func_len_result=${#1}\
24302 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24303 && mv -f "$cfgfile.tmp" "$cfgfile" \
24304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24305 test 0 -eq $? || _lt_function_replace_fail=:
24306
24307 fi
24308
24309 if test x"$lt_shell_append" = xyes; then
24310 sed -e '/^func_append ()$/,/^} # func_append /c\
24311 func_append ()\
24312 {\
24313 eval "${1}+=\\${2}"\
24314 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24315 && mv -f "$cfgfile.tmp" "$cfgfile" \
24316 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24317 test 0 -eq $? || _lt_function_replace_fail=:
24318
24319
24320 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24321 func_append_quoted ()\
24322 {\
24323 \ func_quote_for_eval "${2}"\
24324 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24325 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24326 && mv -f "$cfgfile.tmp" "$cfgfile" \
24327 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24328 test 0 -eq $? || _lt_function_replace_fail=:
24329
24330
24331 # Save a `func_append' function call where possible by direct use of '+='
24332 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24333 && mv -f "$cfgfile.tmp" "$cfgfile" \
24334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24335 test 0 -eq $? || _lt_function_replace_fail=:
24336 else
24337 # Save a `func_append' function call even when '+=' is not available
24338 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24339 && mv -f "$cfgfile.tmp" "$cfgfile" \
24340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24341 test 0 -eq $? || _lt_function_replace_fail=:
24342 fi
24343
24344 if test x"$_lt_function_replace_fail" = x":"; then
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24346 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24347 fi
24348
24349
24350 mv -f "$cfgfile" "$ofile" ||
24351 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24352 chmod +x "$ofile"
24353
24354
24355 cat <<_LT_EOF >> "$ofile"
24356
24357 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24358
24359 # The linker used to build libraries.
24360 LD=$lt_LD_CXX
24361
24362 # How to create reloadable object files.
24363 reload_flag=$lt_reload_flag_CXX
24364 reload_cmds=$lt_reload_cmds_CXX
24365
24366 # Commands used to build an old-style archive.
24367 old_archive_cmds=$lt_old_archive_cmds_CXX
24368
24369 # A language specific compiler.
24370 CC=$lt_compiler_CXX
24371
24372 # Is the compiler the GNU compiler?
24373 with_gcc=$GCC_CXX
24374
24375 # Compiler flag to turn off builtin functions.
24376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24377
24378 # Additional compiler flags for building library objects.
24379 pic_flag=$lt_lt_prog_compiler_pic_CXX
24380
24381 # How to pass a linker flag through the compiler.
24382 wl=$lt_lt_prog_compiler_wl_CXX
24383
24384 # Compiler flag to prevent dynamic linking.
24385 link_static_flag=$lt_lt_prog_compiler_static_CXX
24386
24387 # Does compiler simultaneously support -c and -o options?
24388 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24389
24390 # Whether or not to add -lc for building shared libraries.
24391 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24392
24393 # Whether or not to disallow shared libs when runtime libs are static.
24394 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24395
24396 # Compiler flag to allow reflexive dlopens.
24397 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24398
24399 # Compiler flag to generate shared objects directly from archives.
24400 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24401
24402 # Whether the compiler copes with passing no objects directly.
24403 compiler_needs_object=$lt_compiler_needs_object_CXX
24404
24405 # Create an old-style archive from a shared archive.
24406 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24407
24408 # Create a temporary old-style archive to link instead of a shared archive.
24409 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24410
24411 # Commands used to build a shared archive.
24412 archive_cmds=$lt_archive_cmds_CXX
24413 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24414
24415 # Commands used to build a loadable module if different from building
24416 # a shared archive.
24417 module_cmds=$lt_module_cmds_CXX
24418 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24419
24420 # Whether we are building with GNU ld or not.
24421 with_gnu_ld=$lt_with_gnu_ld_CXX
24422
24423 # Flag that allows shared libraries with undefined symbols to be built.
24424 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24425
24426 # Flag that enforces no undefined symbols.
24427 no_undefined_flag=$lt_no_undefined_flag_CXX
24428
24429 # Flag to hardcode \$libdir into a binary during linking.
24430 # This must work even if \$libdir does not exist
24431 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24432
24433 # Whether we need a single "-rpath" flag with a separated argument.
24434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24435
24436 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24437 # DIR into the resulting binary.
24438 hardcode_direct=$hardcode_direct_CXX
24439
24440 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24441 # DIR into the resulting binary and the resulting library dependency is
24442 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24443 # library is relocated.
24444 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24445
24446 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24447 # into the resulting binary.
24448 hardcode_minus_L=$hardcode_minus_L_CXX
24449
24450 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24451 # into the resulting binary.
24452 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24453
24454 # Set to "yes" if building a shared library automatically hardcodes DIR
24455 # into the library and all subsequent libraries and executables linked
24456 # against it.
24457 hardcode_automatic=$hardcode_automatic_CXX
24458
24459 # Set to yes if linker adds runtime paths of dependent libraries
24460 # to runtime path list.
24461 inherit_rpath=$inherit_rpath_CXX
24462
24463 # Whether libtool must link a program against all its dependency libraries.
24464 link_all_deplibs=$link_all_deplibs_CXX
24465
24466 # Set to "yes" if exported symbols are required.
24467 always_export_symbols=$always_export_symbols_CXX
24468
24469 # The commands to list exported symbols.
24470 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24471
24472 # Symbols that should not be listed in the preloaded symbols.
24473 exclude_expsyms=$lt_exclude_expsyms_CXX
24474
24475 # Symbols that must always be exported.
24476 include_expsyms=$lt_include_expsyms_CXX
24477
24478 # Commands necessary for linking programs (against libraries) with templates.
24479 prelink_cmds=$lt_prelink_cmds_CXX
24480
24481 # Commands necessary for finishing linking programs.
24482 postlink_cmds=$lt_postlink_cmds_CXX
24483
24484 # Specify filename containing input files.
24485 file_list_spec=$lt_file_list_spec_CXX
24486
24487 # How to hardcode a shared library path into an executable.
24488 hardcode_action=$hardcode_action_CXX
24489
24490 # The directories searched by this compiler when creating a shared library.
24491 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24492
24493 # Dependencies to place before and after the objects being linked to
24494 # create a shared library.
24495 predep_objects=$lt_predep_objects_CXX
24496 postdep_objects=$lt_postdep_objects_CXX
24497 predeps=$lt_predeps_CXX
24498 postdeps=$lt_postdeps_CXX
24499
24500 # The library search path used internally by the compiler when linking
24501 # a shared library.
24502 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24503
24504 # ### END LIBTOOL TAG CONFIG: CXX
24505 _LT_EOF
24506
24507 ;;
24508
24509 esac
24510 done # for ac_tag
24511
24512
24513 as_fn_exit 0
24514 _ACEOF
24515 ac_clean_files=$ac_clean_files_save
24516
24517 test $ac_write_fail = 0 ||
24518 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24519
24520
24521 # configure is writing to config.log, and then calls config.status.
24522 # config.status does its own redirection, appending to config.log.
24523 # Unfortunately, on DOS this fails, as config.log is still kept open
24524 # by configure, so config.status won't be able to write to it; its
24525 # output is simply discarded. So we exec the FD to /dev/null,
24526 # effectively closing config.log, so it can be properly (re)opened and
24527 # appended to by config.status. When coming back to configure, we
24528 # need to make the FD available again.
24529 if test "$no_create" != yes; then
24530 ac_cs_success=:
24531 ac_config_status_args=
24532 test "$silent" = yes &&
24533 ac_config_status_args="$ac_config_status_args --quiet"
24534 exec 5>/dev/null
24535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24536 exec 5>>config.log
24537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24538 # would make configure fail if this is the last instruction.
24539 $ac_cs_success || as_fn_exit 1
24540 fi
24541 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24543 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24544 fi
24545