]> git.saurik.com Git - cycript.git/blob - configure
Port build environment to automake (break -arch).
[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 CY_OBJECTIVEC_FALSE
656 CY_OBJECTIVEC_TRUE
657 GNUSTEP_CONFIG
658 CY_OBJECTIVEC
659 LIBFFI_LIBS
660 LIBFFI_CFLAGS
661 CY_EXECUTE_FALSE
662 CY_EXECUTE_TRUE
663 CY_EXECUTE
664 WEBKIT_LIBS
665 WEBKIT_CFLAGS
666 CY_ARCH
667 GNUTAR
668 GPERF
669 FLEX
670 BISON
671 TIME
672 GIT
673 _BASH
674 GMAKE
675 ifGNUmake
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 CXXCPP
680 CPP
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 DLLTOOL
689 OBJDUMP
690 LN_S
691 NM
692 ac_ct_DUMPBIN
693 DUMPBIN
694 LD
695 FGREP
696 EGREP
697 GREP
698 SED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 LIBTOOL
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 ac_ct_CC
712 CFLAGS
713 CC
714 ac_ct_AR
715 AR
716 am__fastdepOBJCXX_FALSE
717 am__fastdepOBJCXX_TRUE
718 OBJCXXDEPMODE
719 ac_ct_OBJCXX
720 OBJCXXFLAGS
721 OBJCXX
722 am__fastdepCXX_FALSE
723 am__fastdepCXX_TRUE
724 CXXDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CXX
735 CPPFLAGS
736 LDFLAGS
737 CXXFLAGS
738 CXX
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 enable_silent_rules
808 enable_dependency_tracking
809 enable_static
810 enable_shared
811 with_pic
812 enable_fast_install
813 with_gnu_ld
814 with_sysroot
815 enable_libtool_lock
816 with_frameworks
817 enable_javascript
818 with_apr
819 enable_rpath
820 with_libiconv_prefix
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CXX
826 CXXFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CCC
831 OBJCXX
832 OBJCXXFLAGS
833 CC
834 CFLAGS
835 CPP
836 CXXCPP
837 PKG_CONFIG
838 PKG_CONFIG_PATH
839 PKG_CONFIG_LIBDIR
840 BISON
841 FLEX
842 GPERF
843 GNUTAR
844 WEBKIT_CFLAGS
845 WEBKIT_LIBS
846 LIBFFI_CFLAGS
847 LIBFFI_LIBS
848 GNUSTEP_CONFIG'
849
850
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
872
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
898
899 ac_prev=
900 ac_dashdash=
901 for ac_option
902 do
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
908 fi
909
910 case $ac_option in
911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *=) ac_optarg= ;;
913 *) ac_optarg=yes ;;
914 esac
915
916 # Accept the important Cygnus configure options, so we can diagnose typos.
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1144
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1155
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1160
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1165
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1172
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1177
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1180
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1183
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1199
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1215
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1219
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1226
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1233
1234 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information"
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1247
1248 *)
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 ;;
1255
1256 esac
1257 done
1258
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error $? "missing argument to $ac_option"
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1270 fi
1271
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1277 do
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1292
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1299
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 elif test "x$build_alias" != "x$host_alias"; then
1305 cross_compiling=yes
1306 fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error $? "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\/\)$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\).*/{
1346 s//\1/
1347 q
1348 }
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1353 fi
1354 else
1355 ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364 pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367 srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking ...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of Cycript 0.9:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --enable-static[=PKGS] build static libraries [default=no]
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --enable-javascript[=ENGINE]
1479 use a JavaScript runtime (currently the only
1480 available option for ENGINE is JavaScriptCore)
1481 [default=yes]
1482 --disable-rpath do not hardcode runtime library paths
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-sysroot=DIR Search for dependent libraries within DIR
1491 (or the compiler's sysroot if not specified).
1492 --with-frameworks=DIRS add to DIRS (space separated) to the Darwin include
1493 path for frameworks with -F
1494 --with-apr=PATH prefix for installed APR or the full path to
1495 apr-config
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1497 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1498 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1499
1500 Some influential environment variables:
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 OBJCXX Objective C++ compiler command
1509 OBJCXXFLAGS Objective C++ compiler flags
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 CPP C preprocessor
1513 CXXCPP C++ preprocessor
1514 PKG_CONFIG path to pkg-config utility
1515 PKG_CONFIG_PATH
1516 directories to add to pkg-config's search path
1517 PKG_CONFIG_LIBDIR
1518 path overriding pkg-config's built-in search path
1519 BISON GNU Project parser generator (yacc replacement)
1520 FLEX the fast lexical analyser generator
1521 GPERF perfect hash function generator
1522 GNUTAR a very sticky lump of files
1523 WEBKIT_CFLAGS
1524 C compiler flags for WEBKIT, overriding pkg-config
1525 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1526 LIBFFI_CFLAGS
1527 C compiler flags for LIBFFI, overriding pkg-config
1528 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1529 GNUSTEP_CONFIG
1530 prints information about the current gnustep installation
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <saurik@saurik.com>.
1536 Cycript home page: <http://www.cycript.org/>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 Cycript configure 0.9
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605
1606 Copyright (C) 2009-2012 Jay Freeman (saurik)
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_cxx_try_compile LINENO
1616 # ----------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_cxx_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_cxx_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_cxx_try_compile
1652
1653 # ac_fn_objcxx_try_compile LINENO
1654 # -------------------------------
1655 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_objcxx_try_compile ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_objcxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_objcxx_try_compile
1690
1691 # ac_fn_c_try_compile LINENO
1692 # --------------------------
1693 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_compile ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 test -x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_link
1774
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_header_compile
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } > conftest.i && {
1828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_cpp
1842
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1847 ac_fn_c_try_run ()
1848 {
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1858 ac_status=$?
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=$ac_status
1878 fi
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_run
1884
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900 #define $2 innocuous_$2
1901
1902 /* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907 #ifdef __STDC__
1908 # include <limits.h>
1909 #else
1910 # include <assert.h>
1911 #endif
1912
1913 #undef $2
1914
1915 /* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918 #ifdef __cplusplus
1919 extern "C"
1920 #endif
1921 char $2 ();
1922 /* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925 #if defined __stub_$2 || defined __stub___$2
1926 choke me
1927 #endif
1928
1929 int
1930 main ()
1931 {
1932 return $2 ();
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_func
1951
1952 # ac_fn_cxx_try_cpp LINENO
1953 # ------------------------
1954 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_cpp ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } > conftest.i && {
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983 fi
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1986
1987 } # ac_fn_cxx_try_cpp
1988
1989 # ac_fn_cxx_try_link LINENO
1990 # -------------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded.
1992 ac_fn_cxx_try_link ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997 case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 test -x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024 fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2032
2033 } # ac_fn_cxx_try_link
2034
2035 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2036 # ---------------------------------------------------------
2037 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2038 # the include files in INCLUDES and setting the cache variable VAR
2039 # accordingly.
2040 ac_fn_cxx_check_header_mongrel ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if eval \${$3+:} false; then :
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2048 fi
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 else
2053 # Is the header compilable?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2055 $as_echo_n "checking $2 usability... " >&6; }
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_cxx_try_compile "$LINENO"; then :
2062 ac_header_compiler=yes
2063 else
2064 ac_header_compiler=no
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2068 $as_echo "$ac_header_compiler" >&6; }
2069
2070 # Is the header present?
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2072 $as_echo_n "checking $2 presence... " >&6; }
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 #include <$2>
2076 _ACEOF
2077 if ac_fn_cxx_try_cpp "$LINENO"; then :
2078 ac_header_preproc=yes
2079 else
2080 ac_header_preproc=no
2081 fi
2082 rm -f conftest.err conftest.i conftest.$ac_ext
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2084 $as_echo "$ac_header_preproc" >&6; }
2085
2086 # So? What about this header?
2087 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2088 yes:no: )
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2090 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2092 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 ;;
2094 no:yes:* )
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2096 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2098 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2100 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2102 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2104 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 ( $as_echo "## -------------------------------- ##
2106 ## Report this to saurik@saurik.com ##
2107 ## -------------------------------- ##"
2108 ) | sed "s/^/$as_me: WARNING: /" >&2
2109 ;;
2110 esac
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 eval "$3=\$ac_header_compiler"
2117 fi
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 fi
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_cxx_check_header_mongrel
2125
2126 # ac_fn_objcxx_try_link LINENO
2127 # ----------------------------
2128 # Try to link conftest.$ac_ext, and return whether this succeeded.
2129 ac_fn_objcxx_try_link ()
2130 {
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext conftest$ac_exeext
2133 if { { ac_try="$ac_link"
2134 case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_link") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2146 fi
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_objcxx_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest$ac_exeext && {
2152 test "$cross_compiling" = yes ||
2153 test -x conftest$ac_exeext
2154 }; then :
2155 ac_retval=0
2156 else
2157 $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 ac_retval=1
2161 fi
2162 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164 # interfere with the next link command; also delete a directory that is
2165 # left behind by Apple's compiler. We do this before executing the actions.
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2169
2170 } # ac_fn_objcxx_try_link
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2174
2175 It was created by Cycript $as_me 0.9, which was
2176 generated by GNU Autoconf 2.69. Invocation command line was
2177
2178 $ $0 $@
2179
2180 _ACEOF
2181 exec 5>>config.log
2182 {
2183 cat <<_ASUNAME
2184 ## --------- ##
2185 ## Platform. ##
2186 ## --------- ##
2187
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205 _ASUNAME
2206
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208 for as_dir in $PATH
2209 do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214 IFS=$as_save_IFS
2215
2216 } >&5
2217
2218 cat >&5 <<_ACEOF
2219
2220
2221 ## ----------- ##
2222 ## Core tests. ##
2223 ## ----------- ##
2224
2225 _ACEOF
2226
2227
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2233 ac_configure_args=
2234 ac_configure_args0=
2235 ac_configure_args1=
2236 ac_must_keep_next=false
2237 for ac_pass in 1 2
2238 do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272 done
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2275
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291 (
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319 )
2320 echo
2321
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2325 echo
2326 for ac_var in $ac_subst_vars
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2340 echo
2341 for ac_var in $ac_subst_files
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350 fi
2351
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2354 ## confdefs.h. ##
2355 ## ----------- ##"
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367 ' 0
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370 done
2371 ac_signal=0
2372
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2375
2376 $as_echo "/* confdefs.h */" > confdefs.h
2377
2378 # Predefined preprocessor variables.
2379
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2382 _ACEOF
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386 _ACEOF
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2402 _ACEOF
2403
2404
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2407 ac_site_file1=NONE
2408 ac_site_file2=NONE
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
2416 elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419 else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2422 fi
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424 do
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2435 fi
2436 done
2437
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453 fi
2454
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504 done
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511 fi
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2515
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524
2525
2526 ac_aux_dir=
2527 for ac_dir in . "$srcdir"/.; do
2528 if test -f "$ac_dir/install-sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install-sh -c"
2531 break
2532 elif 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/shtool"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/shtool install -c"
2539 break
2540 fi
2541 done
2542 if test -z "$ac_aux_dir"; then
2543 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2544 fi
2545
2546 # These three variables are undocumented and unsupported,
2547 # and are intended to be withdrawn in a future Autoconf release.
2548 # They can cause serious problems if a builder's source tree is in a directory
2549 # whose full name contains unusual characters.
2550 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553
2554
2555
2556
2557 am__api_version='1.13'
2558
2559 # Find a good install program. We prefer a C program (faster),
2560 # so one script is as good as another. But avoid the broken or
2561 # incompatible versions:
2562 # SysV /etc/install, /usr/sbin/install
2563 # SunOS /usr/etc/install
2564 # IRIX /sbin/install
2565 # AIX /bin/install
2566 # AmigaOS /C/install, which installs bootblocks on floppy discs
2567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570 # OS/2's system install, which has a completely different semantic
2571 # ./install, which can be erroneously created by make from ./install.sh.
2572 # Reject install programs that cannot install multiple files.
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2575 if test -z "$INSTALL"; then
2576 if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585 case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2590 *)
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2600 :
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2604 :
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2617 fi
2618 fi
2619 fi
2620 done
2621 done
2622 ;;
2623 esac
2624
2625 done
2626 IFS=$as_save_IFS
2627
2628 rm -rf conftest.one conftest.two conftest.dir
2629
2630 fi
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2639 fi
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642 $as_echo "$INSTALL" >&6; }
2643
2644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645 # It thinks the first close brace ends the variable substitution.
2646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2647
2648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2649
2650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653 $as_echo_n "checking whether build environment is sane... " >&6; }
2654 # Reject unsafe characters in $srcdir or the absolute working directory
2655 # name. Accept space and tab only in the latter.
2656 am_lf='
2657 '
2658 case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661 esac
2662 case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665 esac
2666
2667 # Do 'set' in a subshell so we don't clobber the current shell's
2668 # arguments. Must try -L first in case configure is actually a
2669 # symlink; some systems play weird games with the mod time of symlinks
2670 # (eg FreeBSD returns the mod time of the symlink's containing
2671 # directory).
2672 if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2680 fi
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2683
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2690 fi
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2693 fi
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2699 )
2700 then
2701 # Ok.
2702 :
2703 else
2704 as_fn_error $? "newly created file is older than distributed files!
2705 Check your system clock" "$LINENO" 5
2706 fi
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 # If we didn't sleep, we still need to ensure time stamps of config.status and
2710 # generated files are strictly newer.
2711 am_sleep_pid=
2712 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2715 fi
2716
2717 rm -f conftest.file
2718
2719 test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721 # Use a double $ so make ignores it.
2722 test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724 # Double any \ or $.
2725 # By default was `s,x,x', remove it if useless.
2726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2728
2729 # expand $ac_aux_dir to an absolute path
2730 am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732 if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2736 *)
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2739 fi
2740 # Use eval to expand $SHELL
2741 if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743 else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2747 fi
2748
2749 if test x"${install_sh}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2753 *)
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2756 fi
2757
2758 # Installed binaries are usually stripped using 'strip' when the user
2759 # run "make install-strip". However 'strip' might not be the right
2760 # tool to use in cross-compilation environments, therefore Automake
2761 # will honor the 'STRIP' environment variable to overrule this program.
2762 if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 STRIP=$ac_cv_prog_STRIP
2792 if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794 $as_echo "$STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805 set dummy strip; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832 if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834 $as_echo "$ac_ct_STRIP" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 STRIP=$ac_ct_STRIP
2850 fi
2851 else
2852 STRIP="$ac_cv_prog_STRIP"
2853 fi
2854
2855 fi
2856 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2895 fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2899
2900 for ac_prog in gawk mawk nawk awk
2901 do
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 $as_echo "$AWK" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938
2939 test -n "$AWK" && break
2940 done
2941
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat >conftest.make <<\_ACEOF
2950 SHELL = /bin/sh
2951 all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953 _ACEOF
2954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2958 *)
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960 esac
2961 rm -f conftest.make
2962 fi
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966 SET_MAKE=
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971 fi
2972
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976 am__leading_dot=.
2977 else
2978 am__leading_dot=_
2979 fi
2980 rmdir .tst 2>/dev/null
2981
2982 # Check whether --enable-silent-rules was given.
2983 if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985 fi
2986
2987 case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991 esac
2992 am_make=${MAKE-make}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995 if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999 BAR0=false
3000 BAR1=true
3001 V=1
3002 am__doit:
3003 @$(TRUE)
3004 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006 else
3007 am_cv_make_support_nested_variables=no
3008 fi
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3012 if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015 else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018 fi
3019 AM_BACKSLASH='\'
3020
3021 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3028 fi
3029 fi
3030
3031 # test whether we have cygpath
3032 if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3037 fi
3038 fi
3039
3040
3041 # Define the identity of the package.
3042 PACKAGE='cycript'
3043 VERSION='0.9'
3044
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE "$PACKAGE"
3048 _ACEOF
3049
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define VERSION "$VERSION"
3053 _ACEOF
3054
3055 # Some tools Automake needs.
3056
3057 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3058
3059
3060 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3061
3062
3063 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3064
3065
3066 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3067
3068
3069 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3070
3071 # For better backward compatibility. To be removed once Automake 1.9.x
3072 # dies out for good. For more background, see:
3073 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075 mkdir_p='$(MKDIR_P)'
3076
3077 # We need awk for the "check" target. The system "awk" is bad on
3078 # some platforms.
3079 # Always define AMTAR for backward compatibility. Yes, it's still used
3080 # in the wild :-( We should find a proper way to deprecate it ...
3081 AMTAR='$${TAR-tar}'
3082
3083 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3084
3085
3086
3087
3088
3089
3090 ac_ext=cpp
3091 ac_cpp='$CXXCPP $CPPFLAGS'
3092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3095 if test -z "$CXX"; then
3096 if test -n "$CCC"; then
3097 CXX=$CCC
3098 else
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3101 do
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CXX+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CXX"; then
3110 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CXX=$ac_cv_prog_CXX
3130 if test -n "$CXX"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3132 $as_echo "$CXX" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139 test -n "$CXX" && break
3140 done
3141 fi
3142 if test -z "$CXX"; then
3143 ac_ct_CXX=$CXX
3144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3145 do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$ac_ct_CXX"; then
3154 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_ac_ct_CXX="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3174 if test -n "$ac_ct_CXX"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3176 $as_echo "$ac_ct_CXX" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 test -n "$ac_ct_CXX" && break
3184 done
3185
3186 if test "x$ac_ct_CXX" = x; then
3187 CXX="g++"
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 CXX=$ac_ct_CXX
3196 fi
3197 fi
3198
3199 fi
3200 fi
3201 # Provide some information about the compiler.
3202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3203 set X $ac_compile
3204 ac_compiler=$2
3205 for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
3207 case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3214 ac_status=$?
3215 if test -s conftest.err; then
3216 sed '10a\
3217 ... rest of stderr output deleted ...
3218 10q' conftest.err >conftest.er1
3219 cat conftest.er1 >&5
3220 fi
3221 rm -f conftest.er1 conftest.err
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 done
3225
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232
3233 ;
3234 return 0;
3235 }
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3243 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246 # The possible output files:
3247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
3249 ac_rmfiles=
3250 for ac_file in $ac_files
3251 do
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256 done
3257 rm -f $ac_rmfiles
3258
3259 if { { ac_try="$ac_link_default"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_link_default") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3276 do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 ;;
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 fi
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3296 * )
3297 break;;
3298 esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302 else
3303 ac_file=''
3304 fi
3305 if test -z "$ac_file"; then :
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error 77 "C++ compiler cannot create executables
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3320 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322 $as_echo "$ac_file" >&6; }
3323 ac_exeext=$ac_cv_exeext
3324
3325 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3328 $as_echo_n "checking for suffix of executables... " >&6; }
3329 if { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
3340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342 # work properly (i.e., refer to `conftest.exe'), while it won't with
3343 # `rm'.
3344 for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 break;;
3350 * ) break;;
3351 esac
3352 done
3353 else
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 rm -f conftest conftest$ac_cv_exeext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361 $as_echo "$ac_cv_exeext" >&6; }
3362
3363 rm -f conftest.$ac_ext
3364 EXEEXT=$ac_cv_exeext
3365 ac_exeext=$EXEEXT
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368 #include <stdio.h>
3369 int
3370 main ()
3371 {
3372 FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 ac_clean_files="$ac_clean_files conftest.out"
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383 $as_echo_n "checking whether we are cross compiling... " >&6; }
3384 if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot run C++ compiled programs.
3415 If you meant to cross compile, use \`--host'.
3416 See \`config.log' for more details" "$LINENO" 5; }
3417 fi
3418 fi
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3422
3423 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426 $as_echo_n "checking for suffix of object files... " >&6; }
3427 if ${ac_cv_objext+:} false; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432
3433 int
3434 main ()
3435 {
3436
3437 ;
3438 return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { { ac_try="$ac_compile"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compile") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 break;;
3459 esac
3460 done
3461 else
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details" "$LINENO" 5; }
3469 fi
3470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3473 $as_echo "$ac_cv_objext" >&6; }
3474 OBJEXT=$ac_cv_objext
3475 ac_objext=$OBJEXT
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3477 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3478 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487 #ifndef __GNUC__
3488 choke me
3489 #endif
3490
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_cxx_try_compile "$LINENO"; then :
3496 ac_compiler_gnu=yes
3497 else
3498 ac_compiler_gnu=no
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3502
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3505 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3506 if test $ac_compiler_gnu = yes; then
3507 GXX=yes
3508 else
3509 GXX=
3510 fi
3511 ac_test_CXXFLAGS=${CXXFLAGS+set}
3512 ac_save_CXXFLAGS=$CXXFLAGS
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3514 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3515 if ${ac_cv_prog_cxx_g+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3519 ac_cxx_werror_flag=yes
3520 ac_cv_prog_cxx_g=no
3521 CXXFLAGS="-g"
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528
3529 ;
3530 return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_cxx_try_compile "$LINENO"; then :
3534 ac_cv_prog_cxx_g=yes
3535 else
3536 CXXFLAGS=""
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_cxx_try_compile "$LINENO"; then :
3549
3550 else
3551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3552 CXXFLAGS="-g"
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_cxx_try_compile "$LINENO"; then :
3565 ac_cv_prog_cxx_g=yes
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 fi
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3575 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3576 if test "$ac_test_CXXFLAGS" = set; then
3577 CXXFLAGS=$ac_save_CXXFLAGS
3578 elif test $ac_cv_prog_cxx_g = yes; then
3579 if test "$GXX" = yes; then
3580 CXXFLAGS="-g -O2"
3581 else
3582 CXXFLAGS="-g"
3583 fi
3584 else
3585 if test "$GXX" = yes; then
3586 CXXFLAGS="-O2"
3587 else
3588 CXXFLAGS=
3589 fi
3590 fi
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 DEPDIR="${am__leading_dot}deps"
3597
3598 ac_config_commands="$ac_config_commands depfiles"
3599
3600
3601 am_make=${MAKE-make}
3602 cat > confinc << 'END'
3603 am__doit:
3604 @echo this is the am__doit target
3605 .PHONY: am__doit
3606 END
3607 # If we don't find an include directive, just comment out the code.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3609 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3610 am__include="#"
3611 am__quote=
3612 _am_result=none
3613 # First try GNU make style include.
3614 echo "include confinc" > confmf
3615 # Ignore all kinds of additional output from 'make'.
3616 case `$am_make -s -f confmf 2> /dev/null` in #(
3617 *the\ am__doit\ target*)
3618 am__include=include
3619 am__quote=
3620 _am_result=GNU
3621 ;;
3622 esac
3623 # Now try BSD make style include.
3624 if test "$am__include" = "#"; then
3625 echo '.include "confinc"' > confmf
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3628 am__include=.include
3629 am__quote="\""
3630 _am_result=BSD
3631 ;;
3632 esac
3633 fi
3634
3635
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3637 $as_echo "$_am_result" >&6; }
3638 rm -f confinc confmf
3639
3640 # Check whether --enable-dependency-tracking was given.
3641 if test "${enable_dependency_tracking+set}" = set; then :
3642 enableval=$enable_dependency_tracking;
3643 fi
3644
3645 if test "x$enable_dependency_tracking" != xno; then
3646 am_depcomp="$ac_aux_dir/depcomp"
3647 AMDEPBACKSLASH='\'
3648 am__nodep='_no'
3649 fi
3650 if test "x$enable_dependency_tracking" != xno; then
3651 AMDEP_TRUE=
3652 AMDEP_FALSE='#'
3653 else
3654 AMDEP_TRUE='#'
3655 AMDEP_FALSE=
3656 fi
3657
3658
3659
3660 depcc="$CXX" am_compiler_list=
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3663 $as_echo_n "checking dependency style of $depcc... " >&6; }
3664 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3668 # We make a subdir and do the tests there. Otherwise we can end up
3669 # making bogus files that we don't know about and never remove. For
3670 # instance it was reported that on HP-UX the gcc test will end up
3671 # making a dummy file named 'D' -- because '-MD' means "put the output
3672 # in D".
3673 rm -rf conftest.dir
3674 mkdir conftest.dir
3675 # Copy depcomp to subdir because otherwise we won't find it if we're
3676 # using a relative directory.
3677 cp "$am_depcomp" conftest.dir
3678 cd conftest.dir
3679 # We will build objects and dependencies in a subdirectory because
3680 # it helps to detect inapplicable dependency modes. For instance
3681 # both Tru64's cc and ICC support -MD to output dependencies as a
3682 # side effect of compilation, but ICC will put the dependencies in
3683 # the current directory while Tru64 will put them in the object
3684 # directory.
3685 mkdir sub
3686
3687 am_cv_CXX_dependencies_compiler_type=none
3688 if test "$am_compiler_list" = ""; then
3689 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3690 fi
3691 am__universal=false
3692 case " $depcc " in #(
3693 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3694 esac
3695
3696 for depmode in $am_compiler_list; do
3697 # Setup a source with many dependencies, because some compilers
3698 # like to wrap large dependency lists on column 80 (with \), and
3699 # we should not choose a depcomp mode which is confused by this.
3700 #
3701 # We need to recreate these files for each test, as the compiler may
3702 # overwrite some of them when testing with obscure command lines.
3703 # This happens at least with the AIX C compiler.
3704 : > sub/conftest.c
3705 for i in 1 2 3 4 5 6; do
3706 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3707 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3708 # Solaris 10 /bin/sh.
3709 echo '/* dummy */' > sub/conftst$i.h
3710 done
3711 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3712
3713 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3714 # mode. It turns out that the SunPro C++ compiler does not properly
3715 # handle '-M -o', and we need to detect this. Also, some Intel
3716 # versions had trouble with output in subdirs.
3717 am__obj=sub/conftest.${OBJEXT-o}
3718 am__minus_obj="-o $am__obj"
3719 case $depmode in
3720 gcc)
3721 # This depmode causes a compiler race in universal mode.
3722 test "$am__universal" = false || continue
3723 ;;
3724 nosideeffect)
3725 # After this tag, mechanisms are not by side-effect, so they'll
3726 # only be used when explicitly requested.
3727 if test "x$enable_dependency_tracking" = xyes; then
3728 continue
3729 else
3730 break
3731 fi
3732 ;;
3733 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3734 # This compiler won't grok '-c -o', but also, the minuso test has
3735 # not run yet. These depmodes are late enough in the game, and
3736 # so weak that their functioning should not be impacted.
3737 am__obj=conftest.${OBJEXT-o}
3738 am__minus_obj=
3739 ;;
3740 none) break ;;
3741 esac
3742 if depmode=$depmode \
3743 source=sub/conftest.c object=$am__obj \
3744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3745 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3746 >/dev/null 2>conftest.err &&
3747 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3748 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3749 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3750 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3751 # icc doesn't choke on unknown options, it will just issue warnings
3752 # or remarks (even with -Werror). So we grep stderr for any message
3753 # that says an option was ignored or not supported.
3754 # When given -MP, icc 7.0 and 7.1 complain thusly:
3755 # icc: Command line warning: ignoring option '-M'; no argument required
3756 # The diagnosis changed in icc 8.0:
3757 # icc: Command line remark: option '-MP' not supported
3758 if (grep 'ignoring option' conftest.err ||
3759 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3760 am_cv_CXX_dependencies_compiler_type=$depmode
3761 break
3762 fi
3763 fi
3764 done
3765
3766 cd ..
3767 rm -rf conftest.dir
3768 else
3769 am_cv_CXX_dependencies_compiler_type=none
3770 fi
3771
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3774 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3775 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3776
3777 if
3778 test "x$enable_dependency_tracking" != xno \
3779 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3780 am__fastdepCXX_TRUE=
3781 am__fastdepCXX_FALSE='#'
3782 else
3783 am__fastdepCXX_TRUE='#'
3784 am__fastdepCXX_FALSE=
3785 fi
3786
3787
3788 ac_ext=mm
3789 ac_cpp='$OBJCXXCPP $CPPFLAGS'
3790 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
3793 if test -n "$ac_tool_prefix"; then
3794 for ac_prog in g++ objc++ objcxx c++ CXX
3795 do
3796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_OBJCXX+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 if test -n "$OBJCXX"; then
3804 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817 done
3818 done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 OBJCXX=$ac_cv_prog_OBJCXX
3824 if test -n "$OBJCXX"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
3826 $as_echo "$OBJCXX" >&6; }
3827 else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832
3833 test -n "$OBJCXX" && break
3834 done
3835 fi
3836 if test -z "$OBJCXX"; then
3837 ac_ct_OBJCXX=$OBJCXX
3838 for ac_prog in g++ objc++ objcxx c++ CXX
3839 do
3840 # Extract the first word of "$ac_prog", so it can be a program name with args.
3841 set dummy $ac_prog; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$ac_ct_OBJCXX"; then
3848 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861 done
3862 done
3863 IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
3868 if test -n "$ac_ct_OBJCXX"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
3870 $as_echo "$ac_ct_OBJCXX" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 test -n "$ac_ct_OBJCXX" && break
3878 done
3879
3880 if test "x$ac_ct_OBJCXX" = x; then
3881 OBJCXX="g++"
3882 else
3883 case $cross_compiling:$ac_tool_warned in
3884 yes:)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3887 ac_tool_warned=yes ;;
3888 esac
3889 OBJCXX=$ac_ct_OBJCXX
3890 fi
3891 fi
3892
3893 # Provide some information about the compiler.
3894 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
3895 set X $ac_compile
3896 ac_compiler=$2
3897 for ac_option in --version -v -V -qversion; do
3898 { { ac_try="$ac_compiler $ac_option >&5"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3906 ac_status=$?
3907 if test -s conftest.err; then
3908 sed '10a\
3909 ... rest of stderr output deleted ...
3910 10q' conftest.err >conftest.er1
3911 cat conftest.er1 >&5
3912 fi
3913 rm -f conftest.er1 conftest.err
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }
3916 done
3917
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
3920 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925
3926 int
3927 main ()
3928 {
3929 #ifndef __GNUC__
3930 choke me
3931 #endif
3932
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_objcxx_try_compile "$LINENO"; then :
3938 ac_compiler_gnu=yes
3939 else
3940 ac_compiler_gnu=no
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
3944
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
3947 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3949 GOBJCXX=yes
3950 else
3951 GOBJCXX=
3952 fi
3953 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
3954 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
3956 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
3957 if ${ac_cv_prog_objcxx_g+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
3961 ac_objcxx_werror_flag=yes
3962 ac_cv_prog_objcxx_g=no
3963 OBJCXXFLAGS="-g"
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966
3967 int
3968 main ()
3969 {
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_objcxx_try_compile "$LINENO"; then :
3976 ac_cv_prog_objcxx_g=yes
3977 else
3978 OBJCXXFLAGS=""
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3981
3982 int
3983 main ()
3984 {
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_objcxx_try_compile "$LINENO"; then :
3991
3992 else
3993 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
3994 OBJCXXFLAGS="-g"
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_objcxx_try_compile "$LINENO"; then :
4007 ac_cv_prog_objcxx_g=yes
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4017 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4018 if test "$ac_test_OBJCXXFLAGS" = set; then
4019 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4020 elif test $ac_cv_prog_objcxx_g = yes; then
4021 if test "$GOBJCXX" = yes; then
4022 OBJCXXFLAGS="-g -O2"
4023 else
4024 OBJCXXFLAGS="-g"
4025 fi
4026 else
4027 if test "$GOBJCXX" = yes; then
4028 OBJCXXFLAGS="-O2"
4029 else
4030 OBJCXXFLAGS=
4031 fi
4032 fi
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4042 $as_echo_n "checking dependency style of $depcc... " >&6; }
4043 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4047 # We make a subdir and do the tests there. Otherwise we can end up
4048 # making bogus files that we don't know about and never remove. For
4049 # instance it was reported that on HP-UX the gcc test will end up
4050 # making a dummy file named 'D' -- because '-MD' means "put the output
4051 # in D".
4052 rm -rf conftest.dir
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_OBJCXX_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
4071
4072
4073 for depmode in $am_compiler_list; do
4074 # Setup a source with many dependencies, because some compilers
4075 # like to wrap large dependency lists on column 80 (with \), and
4076 # we should not choose a depcomp mode which is confused by this.
4077 #
4078 # We need to recreate these files for each test, as the compiler may
4079 # overwrite some of them when testing with obscure command lines.
4080 # This happens at least with the AIX C compiler.
4081 : > sub/conftest.c
4082 for i in 1 2 3 4 5 6; do
4083 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4084 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4085 # Solaris 10 /bin/sh.
4086 echo '/* dummy */' > sub/conftst$i.h
4087 done
4088 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089
4090 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4091 # mode. It turns out that the SunPro C++ compiler does not properly
4092 # handle '-M -o', and we need to detect this. Also, some Intel
4093 # versions had trouble with output in subdirs.
4094 am__obj=sub/conftest.${OBJEXT-o}
4095 am__minus_obj="-o $am__obj"
4096 case $depmode in
4097 gcc)
4098 # This depmode causes a compiler race in universal mode.
4099 test "$am__universal" = false || continue
4100 ;;
4101 nosideeffect)
4102 # After this tag, mechanisms are not by side-effect, so they'll
4103 # only be used when explicitly requested.
4104 if test "x$enable_dependency_tracking" = xyes; then
4105 continue
4106 else
4107 break
4108 fi
4109 ;;
4110 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4111 # This compiler won't grok '-c -o', but also, the minuso test has
4112 # not run yet. These depmodes are late enough in the game, and
4113 # so weak that their functioning should not be impacted.
4114 am__obj=conftest.${OBJEXT-o}
4115 am__minus_obj=
4116 ;;
4117 none) break ;;
4118 esac
4119 if depmode=$depmode \
4120 source=sub/conftest.c object=$am__obj \
4121 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4122 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4123 >/dev/null 2>conftest.err &&
4124 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4127 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4128 # icc doesn't choke on unknown options, it will just issue warnings
4129 # or remarks (even with -Werror). So we grep stderr for any message
4130 # that says an option was ignored or not supported.
4131 # When given -MP, icc 7.0 and 7.1 complain thusly:
4132 # icc: Command line warning: ignoring option '-M'; no argument required
4133 # The diagnosis changed in icc 8.0:
4134 # icc: Command line remark: option '-MP' not supported
4135 if (grep 'ignoring option' conftest.err ||
4136 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4137 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4138 break
4139 fi
4140 fi
4141 done
4142
4143 cd ..
4144 rm -rf conftest.dir
4145 else
4146 am_cv_OBJCXX_dependencies_compiler_type=none
4147 fi
4148
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4151 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4152 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4153
4154 if
4155 test "x$enable_dependency_tracking" != xno \
4156 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4157 am__fastdepOBJCXX_TRUE=
4158 am__fastdepOBJCXX_FALSE='#'
4159 else
4160 am__fastdepOBJCXX_TRUE='#'
4161 am__fastdepOBJCXX_FALSE=
4162 fi
4163
4164
4165 ac_ext=c
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_CC+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 CC=$ac_cv_prog_CC
4199 if test -n "$CC"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201 $as_echo "$CC" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208 fi
4209 if test -z "$ac_cv_prog_CC"; then
4210 ac_ct_CC=$CC
4211 # Extract the first word of "gcc", so it can be a program name with args.
4212 set dummy gcc; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_CC="gcc"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 $as_echo "$ac_ct_CC" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247 if test "x$ac_ct_CC" = x; then
4248 CC=""
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 CC=$ac_ct_CC
4257 fi
4258 else
4259 CC="$ac_cv_prog_CC"
4260 fi
4261
4262 if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}cc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if ${ac_cv_prog_CC+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281 ac_cv_prog_CC="${ac_tool_prefix}cc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285 done
4286 done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 CC=$ac_cv_prog_CC
4292 if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294 $as_echo "$CC" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301 fi
4302 fi
4303 if test -z "$CC"; then
4304 # Extract the first word of "cc", so it can be a program name with args.
4305 set dummy cc; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_CC+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$CC"; then
4312 ac_cv_prog_CC="$CC" # Let the user override the test.
4313 else
4314 ac_prog_rejected=no
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4324 continue
4325 fi
4326 ac_cv_prog_CC="cc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_CC
4337 shift
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set CC to just the basename; use the full file name.
4342 shift
4343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4344 fi
4345 fi
4346 fi
4347 fi
4348 CC=$ac_cv_prog_CC
4349 if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 $as_echo "$CC" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358 fi
4359 if test -z "$CC"; then
4360 if test -n "$ac_tool_prefix"; then
4361 for ac_prog in cl.exe
4362 do
4363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_CC+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$CC"; then
4371 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 CC=$ac_cv_prog_CC
4391 if test -n "$CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4393 $as_echo "$CC" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400 test -n "$CC" && break
4401 done
4402 fi
4403 if test -z "$CC"; then
4404 ac_ct_CC=$CC
4405 for ac_prog in cl.exe
4406 do
4407 # Extract the first word of "$ac_prog", so it can be a program name with args.
4408 set dummy $ac_prog; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -n "$ac_ct_CC"; then
4415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_prog_ac_ct_CC="$ac_prog"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 fi
4433 fi
4434 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4435 if test -n "$ac_ct_CC"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4437 $as_echo "$ac_ct_CC" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4441 fi
4442
4443
4444 test -n "$ac_ct_CC" && break
4445 done
4446
4447 if test "x$ac_ct_CC" = x; then
4448 CC=""
4449 else
4450 case $cross_compiling:$ac_tool_warned in
4451 yes:)
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454 ac_tool_warned=yes ;;
4455 esac
4456 CC=$ac_ct_CC
4457 fi
4458 fi
4459
4460 fi
4461
4462
4463 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "no acceptable C compiler found in \$PATH
4466 See \`config.log' for more details" "$LINENO" 5; }
4467
4468 # Provide some information about the compiler.
4469 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4470 set X $ac_compile
4471 ac_compiler=$2
4472 for ac_option in --version -v -V -qversion; do
4473 { { ac_try="$ac_compiler $ac_option >&5"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 $as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4481 ac_status=$?
4482 if test -s conftest.err; then
4483 sed '10a\
4484 ... rest of stderr output deleted ...
4485 10q' conftest.err >conftest.er1
4486 cat conftest.er1 >&5
4487 fi
4488 rm -f conftest.er1 conftest.err
4489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490 test $ac_status = 0; }
4491 done
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4495 if ${ac_cv_c_compiler_gnu+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main ()
4503 {
4504 #ifndef __GNUC__
4505 choke me
4506 #endif
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_compiler_gnu=yes
4514 else
4515 ac_compiler_gnu=no
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4523 if test $ac_compiler_gnu = yes; then
4524 GCC=yes
4525 else
4526 GCC=
4527 fi
4528 ac_test_CFLAGS=${CFLAGS+set}
4529 ac_save_CFLAGS=$CFLAGS
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4532 if ${ac_cv_prog_cc_g+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 ac_save_c_werror_flag=$ac_c_werror_flag
4536 ac_c_werror_flag=yes
4537 ac_cv_prog_cc_g=no
4538 CFLAGS="-g"
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_prog_cc_g=yes
4552 else
4553 CFLAGS=""
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556
4557 int
4558 main ()
4559 {
4560
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566
4567 else
4568 ac_c_werror_flag=$ac_save_c_werror_flag
4569 CFLAGS="-g"
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572
4573 int
4574 main ()
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_prog_cc_g=yes
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4587 fi
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag
4590 fi
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4592 $as_echo "$ac_cv_prog_cc_g" >&6; }
4593 if test "$ac_test_CFLAGS" = set; then
4594 CFLAGS=$ac_save_CFLAGS
4595 elif test $ac_cv_prog_cc_g = yes; then
4596 if test "$GCC" = yes; then
4597 CFLAGS="-g -O2"
4598 else
4599 CFLAGS="-g"
4600 fi
4601 else
4602 if test "$GCC" = yes; then
4603 CFLAGS="-O2"
4604 else
4605 CFLAGS=
4606 fi
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4610 if ${ac_cv_prog_cc_c89+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 ac_cv_prog_cc_c89=no
4614 ac_save_CC=$CC
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <stdarg.h>
4618 #include <stdio.h>
4619 struct stat;
4620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4621 struct buf { int x; };
4622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4623 static char *e (p, i)
4624 char **p;
4625 int i;
4626 {
4627 return p[i];
4628 }
4629 static char *f (char * (*g) (char **, int), char **p, ...)
4630 {
4631 char *s;
4632 va_list v;
4633 va_start (v,p);
4634 s = g (p, va_arg (v,int));
4635 va_end (v);
4636 return s;
4637 }
4638
4639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4640 function prototypes and stuff, but not '\xHH' hex character constants.
4641 These don't provoke an error unfortunately, instead are silently treated
4642 as 'x'. The following induces an error, until -std is added to get
4643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4644 array size at least. It's necessary to write '\x00'==0 to get something
4645 that's true only with -std. */
4646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4647
4648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4649 inside strings and character constants. */
4650 #define FOO(x) 'x'
4651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4652
4653 int test (int i, double x);
4654 struct s1 {int (*f) (int a);};
4655 struct s2 {int (*f) (double a);};
4656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4657 int argc;
4658 char **argv;
4659 int
4660 main ()
4661 {
4662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4669 do
4670 CC="$ac_save_CC $ac_arg"
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_cv_prog_cc_c89=$ac_arg
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext
4675 test "x$ac_cv_prog_cc_c89" != "xno" && break
4676 done
4677 rm -f conftest.$ac_ext
4678 CC=$ac_save_CC
4679
4680 fi
4681 # AC_CACHE_VAL
4682 case "x$ac_cv_prog_cc_c89" in
4683 x)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4685 $as_echo "none needed" >&6; } ;;
4686 xno)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4688 $as_echo "unsupported" >&6; } ;;
4689 *)
4690 CC="$CC $ac_cv_prog_cc_c89"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4693 esac
4694 if test "x$ac_cv_prog_cc_c89" != xno; then :
4695
4696 fi
4697
4698 ac_ext=c
4699 ac_cpp='$CPP $CPPFLAGS'
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703
4704 depcc="$CC" am_compiler_list=
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4707 $as_echo_n "checking dependency style of $depcc... " >&6; }
4708 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4712 # We make a subdir and do the tests there. Otherwise we can end up
4713 # making bogus files that we don't know about and never remove. For
4714 # instance it was reported that on HP-UX the gcc test will end up
4715 # making a dummy file named 'D' -- because '-MD' means "put the output
4716 # in D".
4717 rm -rf conftest.dir
4718 mkdir conftest.dir
4719 # Copy depcomp to subdir because otherwise we won't find it if we're
4720 # using a relative directory.
4721 cp "$am_depcomp" conftest.dir
4722 cd conftest.dir
4723 # We will build objects and dependencies in a subdirectory because
4724 # it helps to detect inapplicable dependency modes. For instance
4725 # both Tru64's cc and ICC support -MD to output dependencies as a
4726 # side effect of compilation, but ICC will put the dependencies in
4727 # the current directory while Tru64 will put them in the object
4728 # directory.
4729 mkdir sub
4730
4731 am_cv_CC_dependencies_compiler_type=none
4732 if test "$am_compiler_list" = ""; then
4733 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4734 fi
4735 am__universal=false
4736 case " $depcc " in #(
4737 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4738 esac
4739
4740 for depmode in $am_compiler_list; do
4741 # Setup a source with many dependencies, because some compilers
4742 # like to wrap large dependency lists on column 80 (with \), and
4743 # we should not choose a depcomp mode which is confused by this.
4744 #
4745 # We need to recreate these files for each test, as the compiler may
4746 # overwrite some of them when testing with obscure command lines.
4747 # This happens at least with the AIX C compiler.
4748 : > sub/conftest.c
4749 for i in 1 2 3 4 5 6; do
4750 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4751 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4752 # Solaris 10 /bin/sh.
4753 echo '/* dummy */' > sub/conftst$i.h
4754 done
4755 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4756
4757 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4758 # mode. It turns out that the SunPro C++ compiler does not properly
4759 # handle '-M -o', and we need to detect this. Also, some Intel
4760 # versions had trouble with output in subdirs.
4761 am__obj=sub/conftest.${OBJEXT-o}
4762 am__minus_obj="-o $am__obj"
4763 case $depmode in
4764 gcc)
4765 # This depmode causes a compiler race in universal mode.
4766 test "$am__universal" = false || continue
4767 ;;
4768 nosideeffect)
4769 # After this tag, mechanisms are not by side-effect, so they'll
4770 # only be used when explicitly requested.
4771 if test "x$enable_dependency_tracking" = xyes; then
4772 continue
4773 else
4774 break
4775 fi
4776 ;;
4777 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4778 # This compiler won't grok '-c -o', but also, the minuso test has
4779 # not run yet. These depmodes are late enough in the game, and
4780 # so weak that their functioning should not be impacted.
4781 am__obj=conftest.${OBJEXT-o}
4782 am__minus_obj=
4783 ;;
4784 none) break ;;
4785 esac
4786 if depmode=$depmode \
4787 source=sub/conftest.c object=$am__obj \
4788 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4789 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4790 >/dev/null 2>conftest.err &&
4791 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4792 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4793 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4794 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4795 # icc doesn't choke on unknown options, it will just issue warnings
4796 # or remarks (even with -Werror). So we grep stderr for any message
4797 # that says an option was ignored or not supported.
4798 # When given -MP, icc 7.0 and 7.1 complain thusly:
4799 # icc: Command line warning: ignoring option '-M'; no argument required
4800 # The diagnosis changed in icc 8.0:
4801 # icc: Command line remark: option '-MP' not supported
4802 if (grep 'ignoring option' conftest.err ||
4803 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4804 am_cv_CC_dependencies_compiler_type=$depmode
4805 break
4806 fi
4807 fi
4808 done
4809
4810 cd ..
4811 rm -rf conftest.dir
4812 else
4813 am_cv_CC_dependencies_compiler_type=none
4814 fi
4815
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4818 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4819 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4820
4821 if
4822 test "x$enable_dependency_tracking" != xno \
4823 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4824 am__fastdepCC_TRUE=
4825 am__fastdepCC_FALSE='#'
4826 else
4827 am__fastdepCC_TRUE='#'
4828 am__fastdepCC_FALSE=
4829 fi
4830
4831
4832
4833 if test -n "$ac_tool_prefix"; then
4834 for ac_prog in ar lib "link -lib"
4835 do
4836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 $as_echo_n "checking for $ac_word... " >&6; }
4840 if ${ac_cv_prog_AR+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 if test -n "$AR"; then
4844 ac_cv_prog_AR="$AR" # Let the user override the test.
4845 else
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 break 2
4856 fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861 fi
4862 fi
4863 AR=$ac_cv_prog_AR
4864 if test -n "$AR"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4866 $as_echo "$AR" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4870 fi
4871
4872
4873 test -n "$AR" && break
4874 done
4875 fi
4876 if test -z "$AR"; then
4877 ac_ct_AR=$AR
4878 for ac_prog in ar lib "link -lib"
4879 do
4880 # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy $ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$ac_ct_AR"; then
4888 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4897 ac_cv_prog_ac_ct_AR="$ac_prog"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 fi
4906 fi
4907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4908 if test -n "$ac_ct_AR"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4910 $as_echo "$ac_ct_AR" >&6; }
4911 else
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916
4917 test -n "$ac_ct_AR" && break
4918 done
4919
4920 if test "x$ac_ct_AR" = x; then
4921 AR="false"
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924 yes:)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4927 ac_tool_warned=yes ;;
4928 esac
4929 AR=$ac_ct_AR
4930 fi
4931 fi
4932
4933 : ${AR=ar}
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4936 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4937 if ${am_cv_ar_interface+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 am_cv_ar_interface=ar
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 int some_variable = 0;
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4948 (eval $am_ar_try) 2>&5
4949 ac_status=$?
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 if test "$ac_status" -eq 0; then
4953 am_cv_ar_interface=ar
4954 else
4955 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4957 (eval $am_ar_try) 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }
4961 if test "$ac_status" -eq 0; then
4962 am_cv_ar_interface=lib
4963 else
4964 am_cv_ar_interface=unknown
4965 fi
4966 fi
4967 rm -f conftest.lib libconftest.a
4968
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4974 $as_echo "$am_cv_ar_interface" >&6; }
4975
4976 case $am_cv_ar_interface in
4977 ar)
4978 ;;
4979 lib)
4980 # Microsoft lib, so override with the ar-lib wrapper script.
4981 # FIXME: It is wrong to rewrite AR.
4982 # But if we don't then we get into trouble of one sort or another.
4983 # A longer-term fix would be to have automake use am__AR in this case,
4984 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4985 # similar.
4986 AR="$am_aux_dir/ar-lib $AR"
4987 ;;
4988 unknown)
4989 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4990 ;;
4991 esac
4992
4993
4994
4995 case `pwd` in
4996 *\ * | *\ *)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4999 esac
5000
5001
5002
5003 macro_version='2.4.2'
5004 macro_revision='1.3337'
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 ltmain="$ac_aux_dir/ltmain.sh"
5019
5020 # Make sure we can run config.sub.
5021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5022 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5025 $as_echo_n "checking build system type... " >&6; }
5026 if ${ac_cv_build+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 ac_build_alias=$build_alias
5030 test "x$ac_build_alias" = x &&
5031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5032 test "x$ac_build_alias" = x &&
5033 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5036
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5039 $as_echo "$ac_cv_build" >&6; }
5040 case $ac_cv_build in
5041 *-*-*) ;;
5042 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5043 esac
5044 build=$ac_cv_build
5045 ac_save_IFS=$IFS; IFS='-'
5046 set x $ac_cv_build
5047 shift
5048 build_cpu=$1
5049 build_vendor=$2
5050 shift; shift
5051 # Remember, the first character of IFS is used to create $*,
5052 # except with old shells:
5053 build_os=$*
5054 IFS=$ac_save_IFS
5055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5056
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5059 $as_echo_n "checking host system type... " >&6; }
5060 if ${ac_cv_host+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test "x$host_alias" = x; then
5064 ac_cv_host=$ac_cv_build
5065 else
5066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5068 fi
5069
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5072 $as_echo "$ac_cv_host" >&6; }
5073 case $ac_cv_host in
5074 *-*-*) ;;
5075 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5076 esac
5077 host=$ac_cv_host
5078 ac_save_IFS=$IFS; IFS='-'
5079 set x $ac_cv_host
5080 shift
5081 host_cpu=$1
5082 host_vendor=$2
5083 shift; shift
5084 # Remember, the first character of IFS is used to create $*,
5085 # except with old shells:
5086 host_os=$*
5087 IFS=$ac_save_IFS
5088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5089
5090
5091 # Backslashify metacharacters that are still active within
5092 # double-quoted strings.
5093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5094
5095 # Same as above, but do not quote variable references.
5096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5097
5098 # Sed substitution to delay expansion of an escaped shell variable in a
5099 # double_quote_subst'ed string.
5100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5101
5102 # Sed substitution to delay expansion of an escaped single quote.
5103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5104
5105 # Sed substitution to avoid accidental globbing in evaled expressions
5106 no_glob_subst='s/\*/\\\*/g'
5107
5108 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5113 $as_echo_n "checking how to print strings... " >&6; }
5114 # Test print first, because it will be a builtin if present.
5115 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5116 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5117 ECHO='print -r --'
5118 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5119 ECHO='printf %s\n'
5120 else
5121 # Use this function as a fallback that always works.
5122 func_fallback_echo ()
5123 {
5124 eval 'cat <<_LTECHO_EOF
5125 $1
5126 _LTECHO_EOF'
5127 }
5128 ECHO='func_fallback_echo'
5129 fi
5130
5131 # func_echo_all arg...
5132 # Invoke $ECHO with all args, space-separated.
5133 func_echo_all ()
5134 {
5135 $ECHO ""
5136 }
5137
5138 case "$ECHO" in
5139 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5140 $as_echo "printf" >&6; } ;;
5141 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5142 $as_echo "print -r" >&6; } ;;
5143 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5144 $as_echo "cat" >&6; } ;;
5145 esac
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5162 if ${ac_cv_path_SED+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5166 for ac_i in 1 2 3 4 5 6 7; do
5167 ac_script="$ac_script$as_nl$ac_script"
5168 done
5169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5170 { ac_script=; unset ac_script;}
5171 if test -z "$SED"; then
5172 ac_path_SED_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in sed gsed; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_SED" || continue
5183 # Check for GNU ac_path_SED and select it if it is found.
5184 # Check for GNU $ac_path_SED
5185 case `"$ac_path_SED" --version 2>&1` in
5186 *GNU*)
5187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5188 *)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo '' >> "conftest.nl"
5197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_SED_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_SED="$ac_path_SED"
5203 ac_path_SED_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211 $ac_path_SED_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_SED"; then
5217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5218 fi
5219 else
5220 ac_cv_path_SED=$SED
5221 fi
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5225 $as_echo "$ac_cv_path_SED" >&6; }
5226 SED="$ac_cv_path_SED"
5227 rm -f conftest.sed
5228
5229 test -z "$SED" && SED=sed
5230 Xsed="$SED -e 1s/^X//"
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5244 if ${ac_cv_path_GREP+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -z "$GREP"; then
5248 ac_path_GREP_found=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5252 do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_prog in grep ggrep; do
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5258 as_fn_executable_p "$ac_path_GREP" || continue
5259 # Check for GNU ac_path_GREP and select it if it is found.
5260 # Check for GNU $ac_path_GREP
5261 case `"$ac_path_GREP" --version 2>&1` in
5262 *GNU*)
5263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5264 *)
5265 ac_count=0
5266 $as_echo_n 0123456789 >"conftest.in"
5267 while :
5268 do
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo 'GREP' >> "conftest.nl"
5273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275 as_fn_arith $ac_count + 1 && ac_count=$as_val
5276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_GREP="$ac_path_GREP"
5279 ac_path_GREP_max=$ac_count
5280 fi
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5283 done
5284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5285 esac
5286
5287 $ac_path_GREP_found && break 3
5288 done
5289 done
5290 done
5291 IFS=$as_save_IFS
5292 if test -z "$ac_cv_path_GREP"; then
5293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5294 fi
5295 else
5296 ac_cv_path_GREP=$GREP
5297 fi
5298
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5301 $as_echo "$ac_cv_path_GREP" >&6; }
5302 GREP="$ac_cv_path_GREP"
5303
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5306 $as_echo_n "checking for egrep... " >&6; }
5307 if ${ac_cv_path_EGREP+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5311 then ac_cv_path_EGREP="$GREP -E"
5312 else
5313 if test -z "$EGREP"; then
5314 ac_path_EGREP_found=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5318 do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_prog in egrep; do
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5324 as_fn_executable_p "$ac_path_EGREP" || continue
5325 # Check for GNU ac_path_EGREP and select it if it is found.
5326 # Check for GNU $ac_path_EGREP
5327 case `"$ac_path_EGREP" --version 2>&1` in
5328 *GNU*)
5329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5330 *)
5331 ac_count=0
5332 $as_echo_n 0123456789 >"conftest.in"
5333 while :
5334 do
5335 cat "conftest.in" "conftest.in" >"conftest.tmp"
5336 mv "conftest.tmp" "conftest.in"
5337 cp "conftest.in" "conftest.nl"
5338 $as_echo 'EGREP' >> "conftest.nl"
5339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5341 as_fn_arith $ac_count + 1 && ac_count=$as_val
5342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5343 # Best one so far, save it but keep looking for a better one
5344 ac_cv_path_EGREP="$ac_path_EGREP"
5345 ac_path_EGREP_max=$ac_count
5346 fi
5347 # 10*(2^10) chars as input seems more than enough
5348 test $ac_count -gt 10 && break
5349 done
5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5351 esac
5352
5353 $ac_path_EGREP_found && break 3
5354 done
5355 done
5356 done
5357 IFS=$as_save_IFS
5358 if test -z "$ac_cv_path_EGREP"; then
5359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5360 fi
5361 else
5362 ac_cv_path_EGREP=$EGREP
5363 fi
5364
5365 fi
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5368 $as_echo "$ac_cv_path_EGREP" >&6; }
5369 EGREP="$ac_cv_path_EGREP"
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5373 $as_echo_n "checking for fgrep... " >&6; }
5374 if ${ac_cv_path_FGREP+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378 then ac_cv_path_FGREP="$GREP -F"
5379 else
5380 if test -z "$FGREP"; then
5381 ac_path_FGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in fgrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_FGREP" || continue
5392 # Check for GNU ac_path_FGREP and select it if it is found.
5393 # Check for GNU $ac_path_FGREP
5394 case `"$ac_path_FGREP" --version 2>&1` in
5395 *GNU*)
5396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5397 *)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'FGREP' >> "conftest.nl"
5406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_FGREP="$ac_path_FGREP"
5412 ac_path_FGREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418 esac
5419
5420 $ac_path_FGREP_found && break 3
5421 done
5422 done
5423 done
5424 IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_FGREP"; then
5426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5427 fi
5428 else
5429 ac_cv_path_FGREP=$FGREP
5430 fi
5431
5432 fi
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5435 $as_echo "$ac_cv_path_FGREP" >&6; }
5436 FGREP="$ac_cv_path_FGREP"
5437
5438
5439 test -z "$GREP" && GREP=grep
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 # Check whether --with-gnu-ld was given.
5460 if test "${with_gnu_ld+set}" = set; then :
5461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5462 else
5463 with_gnu_ld=no
5464 fi
5465
5466 ac_prog=ld
5467 if test "$GCC" = yes; then
5468 # Check if gcc -print-prog-name=ld gives a path.
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5470 $as_echo_n "checking for ld used by $CC... " >&6; }
5471 case $host in
5472 *-*-mingw*)
5473 # gcc leaves a trailing carriage return which upsets mingw
5474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5475 *)
5476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5477 esac
5478 case $ac_prog in
5479 # Accept absolute paths.
5480 [\\/]* | ?:[\\/]*)
5481 re_direlt='/[^/][^/]*/\.\./'
5482 # Canonicalize the pathname of ld
5483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5486 done
5487 test -z "$LD" && LD="$ac_prog"
5488 ;;
5489 "")
5490 # If it fails, then pretend we aren't using GCC.
5491 ac_prog=ld
5492 ;;
5493 *)
5494 # If it is relative, then search for the first ld in PATH.
5495 with_gnu_ld=unknown
5496 ;;
5497 esac
5498 elif test "$with_gnu_ld" = yes; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5500 $as_echo_n "checking for GNU ld... " >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5503 $as_echo_n "checking for non-GNU ld... " >&6; }
5504 fi
5505 if ${lt_cv_path_LD+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -z "$LD"; then
5509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5510 for ac_dir in $PATH; do
5511 IFS="$lt_save_ifs"
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514 lt_cv_path_LD="$ac_dir/$ac_prog"
5515 # Check to see if the program is GNU ld. I'd rather use --version,
5516 # but apparently some variants of GNU ld only accept -v.
5517 # Break only if it was the GNU/non-GNU ld that we prefer.
5518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519 *GNU* | *'with BFD'*)
5520 test "$with_gnu_ld" != no && break
5521 ;;
5522 *)
5523 test "$with_gnu_ld" != yes && break
5524 ;;
5525 esac
5526 fi
5527 done
5528 IFS="$lt_save_ifs"
5529 else
5530 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5531 fi
5532 fi
5533
5534 LD="$lt_cv_path_LD"
5535 if test -n "$LD"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5537 $as_echo "$LD" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5544 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5545 if ${lt_cv_prog_gnu_ld+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549 case `$LD -v 2>&1 </dev/null` in
5550 *GNU* | *'with BFD'*)
5551 lt_cv_prog_gnu_ld=yes
5552 ;;
5553 *)
5554 lt_cv_prog_gnu_ld=no
5555 ;;
5556 esac
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5560 with_gnu_ld=$lt_cv_prog_gnu_ld
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5571 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5572 if ${lt_cv_path_NM+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$NM"; then
5576 # Let the user override the test.
5577 lt_cv_path_NM="$NM"
5578 else
5579 lt_nm_to_check="${ac_tool_prefix}nm"
5580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581 lt_nm_to_check="$lt_nm_to_check nm"
5582 fi
5583 for lt_tmp_nm in $lt_nm_to_check; do
5584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5586 IFS="$lt_save_ifs"
5587 test -z "$ac_dir" && ac_dir=.
5588 tmp_nm="$ac_dir/$lt_tmp_nm"
5589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5590 # Check to see if the nm accepts a BSD-compat flag.
5591 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5592 # nm: unknown option "B" ignored
5593 # Tru64's nm complains that /dev/null is an invalid object file
5594 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5595 */dev/null* | *'Invalid file or object type'*)
5596 lt_cv_path_NM="$tmp_nm -B"
5597 break
5598 ;;
5599 *)
5600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5601 */dev/null*)
5602 lt_cv_path_NM="$tmp_nm -p"
5603 break
5604 ;;
5605 *)
5606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5607 continue # so that we can try to find one that supports BSD flags
5608 ;;
5609 esac
5610 ;;
5611 esac
5612 fi
5613 done
5614 IFS="$lt_save_ifs"
5615 done
5616 : ${lt_cv_path_NM=no}
5617 fi
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5620 $as_echo "$lt_cv_path_NM" >&6; }
5621 if test "$lt_cv_path_NM" != "no"; then
5622 NM="$lt_cv_path_NM"
5623 else
5624 # Didn't find any BSD compatible name lister, look for dumpbin.
5625 if test -n "$DUMPBIN"; then :
5626 # Let the user override the test.
5627 else
5628 if test -n "$ac_tool_prefix"; then
5629 for ac_prog in dumpbin "link -dump"
5630 do
5631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_DUMPBIN+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$DUMPBIN"; then
5639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 DUMPBIN=$ac_cv_prog_DUMPBIN
5659 if test -n "$DUMPBIN"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5661 $as_echo "$DUMPBIN" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 test -n "$DUMPBIN" && break
5669 done
5670 fi
5671 if test -z "$DUMPBIN"; then
5672 ac_ct_DUMPBIN=$DUMPBIN
5673 for ac_prog in dumpbin "link -dump"
5674 do
5675 # Extract the first word of "$ac_prog", so it can be a program name with args.
5676 set dummy $ac_prog; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 if test -n "$ac_ct_DUMPBIN"; then
5683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 break 2
5695 fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5703 if test -n "$ac_ct_DUMPBIN"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5705 $as_echo "$ac_ct_DUMPBIN" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5709 fi
5710
5711
5712 test -n "$ac_ct_DUMPBIN" && break
5713 done
5714
5715 if test "x$ac_ct_DUMPBIN" = x; then
5716 DUMPBIN=":"
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719 yes:)
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5723 esac
5724 DUMPBIN=$ac_ct_DUMPBIN
5725 fi
5726 fi
5727
5728 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5729 *COFF*)
5730 DUMPBIN="$DUMPBIN -symbols"
5731 ;;
5732 *)
5733 DUMPBIN=:
5734 ;;
5735 esac
5736 fi
5737
5738 if test "$DUMPBIN" != ":"; then
5739 NM="$DUMPBIN"
5740 fi
5741 fi
5742 test -z "$NM" && NM=nm
5743
5744
5745
5746
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5751 if ${lt_cv_nm_interface+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 lt_cv_nm_interface="BSD nm"
5755 echo "int some_variable = 0;" > conftest.$ac_ext
5756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5757 (eval "$ac_compile" 2>conftest.err)
5758 cat conftest.err >&5
5759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5761 cat conftest.err >&5
5762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5763 cat conftest.out >&5
5764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5765 lt_cv_nm_interface="MS dumpbin"
5766 fi
5767 rm -rf conftest*
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5770 $as_echo "$lt_cv_nm_interface" >&6; }
5771
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5773 $as_echo_n "checking whether ln -s works... " >&6; }
5774 LN_S=$as_ln_s
5775 if test "$LN_S" = "ln -s"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777 $as_echo "yes" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5780 $as_echo "no, using $LN_S" >&6; }
5781 fi
5782
5783 # find the maximum length of command line arguments
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5785 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5786 if ${lt_cv_sys_max_cmd_len+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 i=0
5790 teststring="ABCD"
5791
5792 case $build_os in
5793 msdosdjgpp*)
5794 # On DJGPP, this test can blow up pretty badly due to problems in libc
5795 # (any single argument exceeding 2000 bytes causes a buffer overrun
5796 # during glob expansion). Even if it were fixed, the result of this
5797 # check would be larger than it should be.
5798 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5799 ;;
5800
5801 gnu*)
5802 # Under GNU Hurd, this test is not required because there is
5803 # no limit to the length of command line arguments.
5804 # Libtool will interpret -1 as no limit whatsoever
5805 lt_cv_sys_max_cmd_len=-1;
5806 ;;
5807
5808 cygwin* | mingw* | cegcc*)
5809 # On Win9x/ME, this test blows up -- it succeeds, but takes
5810 # about 5 minutes as the teststring grows exponentially.
5811 # Worse, since 9x/ME are not pre-emptively multitasking,
5812 # you end up with a "frozen" computer, even though with patience
5813 # the test eventually succeeds (with a max line length of 256k).
5814 # Instead, let's just punt: use the minimum linelength reported by
5815 # all of the supported platforms: 8192 (on NT/2K/XP).
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
5818
5819 mint*)
5820 # On MiNT this can take a long time and run out of memory.
5821 lt_cv_sys_max_cmd_len=8192;
5822 ;;
5823
5824 amigaos*)
5825 # On AmigaOS with pdksh, this test takes hours, literally.
5826 # So we just punt and use a minimum line length of 8192.
5827 lt_cv_sys_max_cmd_len=8192;
5828 ;;
5829
5830 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5831 # This has been around since 386BSD, at least. Likely further.
5832 if test -x /sbin/sysctl; then
5833 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5834 elif test -x /usr/sbin/sysctl; then
5835 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836 else
5837 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838 fi
5839 # And add a safety zone
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5842 ;;
5843
5844 interix*)
5845 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5846 lt_cv_sys_max_cmd_len=196608
5847 ;;
5848
5849 os2*)
5850 # The test takes a long time on OS/2.
5851 lt_cv_sys_max_cmd_len=8192
5852 ;;
5853
5854 osf*)
5855 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5856 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5857 # nice to cause kernel panics so lets avoid the loop below.
5858 # First set a reasonable default.
5859 lt_cv_sys_max_cmd_len=16384
5860 #
5861 if test -x /sbin/sysconfig; then
5862 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5863 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5864 esac
5865 fi
5866 ;;
5867 sco3.2v5*)
5868 lt_cv_sys_max_cmd_len=102400
5869 ;;
5870 sysv5* | sco5v6* | sysv4.2uw2*)
5871 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5872 if test -n "$kargmax"; then
5873 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5874 else
5875 lt_cv_sys_max_cmd_len=32768
5876 fi
5877 ;;
5878 *)
5879 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5880 if test -n "$lt_cv_sys_max_cmd_len"; then
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5883 else
5884 # Make teststring a little bigger before we do anything with it.
5885 # a 1K string should be a reasonable start.
5886 for i in 1 2 3 4 5 6 7 8 ; do
5887 teststring=$teststring$teststring
5888 done
5889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5890 # If test is not a shell built-in, we'll probably end up computing a
5891 # maximum length that is only half of the actual maximum length, but
5892 # we can't tell.
5893 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5894 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5895 test $i != 17 # 1/2 MB should be enough
5896 do
5897 i=`expr $i + 1`
5898 teststring=$teststring$teststring
5899 done
5900 # Only check the string length outside the loop.
5901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5902 teststring=
5903 # Add a significant safety factor because C++ compilers can tack on
5904 # massive amounts of additional arguments before passing them to the
5905 # linker. It appears as though 1/2 is a usable value.
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5907 fi
5908 ;;
5909 esac
5910
5911 fi
5912
5913 if test -n $lt_cv_sys_max_cmd_len ; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5915 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5918 $as_echo "none" >&6; }
5919 fi
5920 max_cmd_len=$lt_cv_sys_max_cmd_len
5921
5922
5923
5924
5925
5926
5927 : ${CP="cp -f"}
5928 : ${MV="mv -f"}
5929 : ${RM="rm -f"}
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5932 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5933 # Try some XSI features
5934 xsi_shell=no
5935 ( _lt_dummy="a/b/c"
5936 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5937 = c,a/b,b/c, \
5938 && eval 'test $(( 1 + 1 )) -eq 2 \
5939 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5940 && xsi_shell=yes
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5942 $as_echo "$xsi_shell" >&6; }
5943
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5946 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5947 lt_shell_append=no
5948 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5949 >/dev/null 2>&1 \
5950 && lt_shell_append=yes
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5952 $as_echo "$lt_shell_append" >&6; }
5953
5954
5955 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5956 lt_unset=unset
5957 else
5958 lt_unset=false
5959 fi
5960
5961
5962
5963
5964
5965 # test EBCDIC or ASCII
5966 case `echo X|tr X '\101'` in
5967 A) # ASCII based system
5968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5969 lt_SP2NL='tr \040 \012'
5970 lt_NL2SP='tr \015\012 \040\040'
5971 ;;
5972 *) # EBCDIC based system
5973 lt_SP2NL='tr \100 \n'
5974 lt_NL2SP='tr \r\n \100\100'
5975 ;;
5976 esac
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5987 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5988 if ${lt_cv_to_host_file_cmd+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 case $host in
5992 *-*-mingw* )
5993 case $build in
5994 *-*-mingw* ) # actually msys
5995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5996 ;;
5997 *-*-cygwin* )
5998 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5999 ;;
6000 * ) # otherwise, assume *nix
6001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6002 ;;
6003 esac
6004 ;;
6005 *-*-cygwin* )
6006 case $build in
6007 *-*-mingw* ) # actually msys
6008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6009 ;;
6010 *-*-cygwin* )
6011 lt_cv_to_host_file_cmd=func_convert_file_noop
6012 ;;
6013 * ) # otherwise, assume *nix
6014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6015 ;;
6016 esac
6017 ;;
6018 * ) # unhandled hosts (and "normal" native builds)
6019 lt_cv_to_host_file_cmd=func_convert_file_noop
6020 ;;
6021 esac
6022
6023 fi
6024
6025 to_host_file_cmd=$lt_cv_to_host_file_cmd
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6027 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6028
6029
6030
6031
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6034 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6035 if ${lt_cv_to_tool_file_cmd+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 #assume ordinary cross tools, or native build.
6039 lt_cv_to_tool_file_cmd=func_convert_file_noop
6040 case $host in
6041 *-*-mingw* )
6042 case $build in
6043 *-*-mingw* ) # actually msys
6044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6045 ;;
6046 esac
6047 ;;
6048 esac
6049
6050 fi
6051
6052 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6054 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6055
6056
6057
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6061 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6062 if ${lt_cv_ld_reload_flag+:} false; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 lt_cv_ld_reload_flag='-r'
6066 fi
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6068 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6069 reload_flag=$lt_cv_ld_reload_flag
6070 case $reload_flag in
6071 "" | " "*) ;;
6072 *) reload_flag=" $reload_flag" ;;
6073 esac
6074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075 case $host_os in
6076 cygwin* | mingw* | pw32* | cegcc*)
6077 if test "$GCC" != yes; then
6078 reload_cmds=false
6079 fi
6080 ;;
6081 darwin*)
6082 if test "$GCC" = yes; then
6083 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6084 else
6085 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6086 fi
6087 ;;
6088 esac
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_OBJDUMP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$OBJDUMP"; then
6107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 OBJDUMP=$ac_cv_prog_OBJDUMP
6127 if test -n "$OBJDUMP"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6129 $as_echo "$OBJDUMP" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_OBJDUMP"; then
6138 ac_ct_OBJDUMP=$OBJDUMP
6139 # Extract the first word of "objdump", so it can be a program name with args.
6140 set dummy objdump; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$ac_ct_OBJDUMP"; then
6147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6167 if test -n "$ac_ct_OBJDUMP"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6169 $as_echo "$ac_ct_OBJDUMP" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175 if test "x$ac_ct_OBJDUMP" = x; then
6176 OBJDUMP="false"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184 OBJDUMP=$ac_ct_OBJDUMP
6185 fi
6186 else
6187 OBJDUMP="$ac_cv_prog_OBJDUMP"
6188 fi
6189
6190 test -z "$OBJDUMP" && OBJDUMP=objdump
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6202 if ${lt_cv_deplibs_check_method+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 lt_cv_file_magic_cmd='$MAGIC_CMD'
6206 lt_cv_file_magic_test_file=
6207 lt_cv_deplibs_check_method='unknown'
6208 # Need to set the preceding variable on all platforms that support
6209 # interlibrary dependencies.
6210 # 'none' -- dependencies not supported.
6211 # `unknown' -- same as none, but documents that we really don't know.
6212 # 'pass_all' -- all dependencies passed with no checks.
6213 # 'test_compile' -- check by making test program.
6214 # 'file_magic [[regex]]' -- check by looking for files in library path
6215 # which responds to the $file_magic_cmd with a given extended regex.
6216 # If you have `file' or equivalent on your system and you're not sure
6217 # whether `pass_all' will *always* work, you probably want this one.
6218
6219 case $host_os in
6220 aix[4-9]*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 beos*)
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
6227
6228 bsdi[45]*)
6229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6230 lt_cv_file_magic_cmd='/usr/bin/file -L'
6231 lt_cv_file_magic_test_file=/shlib/libc.so
6232 ;;
6233
6234 cygwin*)
6235 # func_win32_libid is a shell function defined in ltmain.sh
6236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6237 lt_cv_file_magic_cmd='func_win32_libid'
6238 ;;
6239
6240 mingw* | pw32*)
6241 # Base MSYS/MinGW do not provide the 'file' command needed by
6242 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6243 # unless we find 'file', for example because we are cross-compiling.
6244 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6245 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6247 lt_cv_file_magic_cmd='func_win32_libid'
6248 else
6249 # Keep this pattern in sync with the one in func_win32_libid.
6250 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6251 lt_cv_file_magic_cmd='$OBJDUMP -f'
6252 fi
6253 ;;
6254
6255 cegcc*)
6256 # use the weaker test based on 'objdump'. See mingw*.
6257 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6258 lt_cv_file_magic_cmd='$OBJDUMP -f'
6259 ;;
6260
6261 darwin* | rhapsody*)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264
6265 freebsd* | dragonfly*)
6266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6267 case $host_cpu in
6268 i*86 )
6269 # Not sure whether the presence of OpenBSD here was a mistake.
6270 # Let's accept both of them until this is cleared up.
6271 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6274 ;;
6275 esac
6276 else
6277 lt_cv_deplibs_check_method=pass_all
6278 fi
6279 ;;
6280
6281 gnu*)
6282 lt_cv_deplibs_check_method=pass_all
6283 ;;
6284
6285 haiku*)
6286 lt_cv_deplibs_check_method=pass_all
6287 ;;
6288
6289 hpux10.20* | hpux11*)
6290 lt_cv_file_magic_cmd=/usr/bin/file
6291 case $host_cpu in
6292 ia64*)
6293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6294 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6295 ;;
6296 hppa*64*)
6297 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]'
6298 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6299 ;;
6300 *)
6301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6302 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303 ;;
6304 esac
6305 ;;
6306
6307 interix[3-9]*)
6308 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6310 ;;
6311
6312 irix5* | irix6* | nonstopux*)
6313 case $LD in
6314 *-32|*"-32 ") libmagic=32-bit;;
6315 *-n32|*"-n32 ") libmagic=N32;;
6316 *-64|*"-64 ") libmagic=64-bit;;
6317 *) libmagic=never-match;;
6318 esac
6319 lt_cv_deplibs_check_method=pass_all
6320 ;;
6321
6322 # This must be glibc/ELF.
6323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6324 lt_cv_deplibs_check_method=pass_all
6325 ;;
6326
6327 netbsd*)
6328 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330 else
6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6332 fi
6333 ;;
6334
6335 newos6*)
6336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339 ;;
6340
6341 *nto* | *qnx*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 openbsd*)
6346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6348 else
6349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350 fi
6351 ;;
6352
6353 osf3* | osf4* | osf5*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357 rdos*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360
6361 solaris*)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364
6365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 sysv4 | sysv4.3*)
6370 case $host_vendor in
6371 motorola)
6372 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]'
6373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6374 ;;
6375 ncr)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378 sequent)
6379 lt_cv_file_magic_cmd='/bin/file'
6380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6381 ;;
6382 sni)
6383 lt_cv_file_magic_cmd='/bin/file'
6384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6385 lt_cv_file_magic_test_file=/lib/libc.so
6386 ;;
6387 siemens)
6388 lt_cv_deplibs_check_method=pass_all
6389 ;;
6390 pc)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393 esac
6394 ;;
6395
6396 tpf*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399 esac
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6403 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6404
6405 file_magic_glob=
6406 want_nocaseglob=no
6407 if test "$build" = "$host"; then
6408 case $host_os in
6409 mingw* | pw32*)
6410 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6411 want_nocaseglob=yes
6412 else
6413 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6414 fi
6415 ;;
6416 esac
6417 fi
6418
6419 file_magic_cmd=$lt_cv_file_magic_cmd
6420 deplibs_check_method=$lt_cv_deplibs_check_method
6421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if ${ac_cv_prog_DLLTOOL+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$DLLTOOL"; then
6453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466 done
6467 done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 DLLTOOL=$ac_cv_prog_DLLTOOL
6473 if test -n "$DLLTOOL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6475 $as_echo "$DLLTOOL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482 fi
6483 if test -z "$ac_cv_prog_DLLTOOL"; then
6484 ac_ct_DLLTOOL=$DLLTOOL
6485 # Extract the first word of "dlltool", so it can be a program name with args.
6486 set dummy dlltool; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_DLLTOOL"; then
6493 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6513 if test -n "$ac_ct_DLLTOOL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6515 $as_echo "$ac_ct_DLLTOOL" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521 if test "x$ac_ct_DLLTOOL" = x; then
6522 DLLTOOL="false"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 DLLTOOL=$ac_ct_DLLTOOL
6531 fi
6532 else
6533 DLLTOOL="$ac_cv_prog_DLLTOOL"
6534 fi
6535
6536 test -z "$DLLTOOL" && DLLTOOL=dlltool
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6548 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6549 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 lt_cv_sharedlib_from_linklib_cmd='unknown'
6553
6554 case $host_os in
6555 cygwin* | mingw* | pw32* | cegcc*)
6556 # two different shell functions defined in ltmain.sh
6557 # decide which to use based on capabilities of $DLLTOOL
6558 case `$DLLTOOL --help 2>&1` in
6559 *--identify-strict*)
6560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6561 ;;
6562 *)
6563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6564 ;;
6565 esac
6566 ;;
6567 *)
6568 # fallback: assume linklib IS sharedlib
6569 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6570 ;;
6571 esac
6572
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6575 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6576 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6577 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6578
6579
6580
6581
6582
6583
6584
6585 if test -n "$ac_tool_prefix"; then
6586 for ac_prog in ar
6587 do
6588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_AR+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$AR"; then
6596 ac_cv_prog_AR="$AR" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609 done
6610 done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 AR=$ac_cv_prog_AR
6616 if test -n "$AR"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6618 $as_echo "$AR" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624
6625 test -n "$AR" && break
6626 done
6627 fi
6628 if test -z "$AR"; then
6629 ac_ct_AR=$AR
6630 for ac_prog in ar
6631 do
6632 # Extract the first word of "$ac_prog", so it can be a program name with args.
6633 set dummy $ac_prog; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 if test -n "$ac_ct_AR"; then
6640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_ac_ct_AR="$ac_prog"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6660 if test -n "$ac_ct_AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6662 $as_echo "$ac_ct_AR" >&6; }
6663 else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6666 fi
6667
6668
6669 test -n "$ac_ct_AR" && break
6670 done
6671
6672 if test "x$ac_ct_AR" = x; then
6673 AR="false"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676 yes:)
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 AR=$ac_ct_AR
6682 fi
6683 fi
6684
6685 : ${AR=ar}
6686 : ${AR_FLAGS=cru}
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6699 $as_echo_n "checking for archiver @FILE support... " >&6; }
6700 if ${lt_cv_ar_at_file+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 lt_cv_ar_at_file=no
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706
6707 int
6708 main ()
6709 {
6710
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 echo conftest.$ac_objext > conftest.lst
6717 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6719 (eval $lt_ar_try) 2>&5
6720 ac_status=$?
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }
6723 if test "$ac_status" -eq 0; then
6724 # Ensure the archiver fails upon bogus file names.
6725 rm -f conftest.$ac_objext libconftest.a
6726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6727 (eval $lt_ar_try) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; }
6731 if test "$ac_status" -ne 0; then
6732 lt_cv_ar_at_file=@
6733 fi
6734 fi
6735 rm -f conftest.* libconftest.a
6736
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739
6740 fi
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6742 $as_echo "$lt_cv_ar_at_file" >&6; }
6743
6744 if test "x$lt_cv_ar_at_file" = xno; then
6745 archiver_list_spec=
6746 else
6747 archiver_list_spec=$lt_cv_ar_at_file
6748 fi
6749
6750
6751
6752
6753
6754
6755
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}strip; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if ${ac_cv_prog_STRIP+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$STRIP"; then
6765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 STRIP=$ac_cv_prog_STRIP
6785 if test -n "$STRIP"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6787 $as_echo "$STRIP" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793
6794 fi
6795 if test -z "$ac_cv_prog_STRIP"; then
6796 ac_ct_STRIP=$STRIP
6797 # Extract the first word of "strip", so it can be a program name with args.
6798 set dummy strip; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$ac_ct_STRIP"; then
6805 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_ac_ct_STRIP="strip"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6825 if test -n "$ac_ct_STRIP"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6827 $as_echo "$ac_ct_STRIP" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833 if test "x$ac_ct_STRIP" = x; then
6834 STRIP=":"
6835 else
6836 case $cross_compiling:$ac_tool_warned in
6837 yes:)
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6840 ac_tool_warned=yes ;;
6841 esac
6842 STRIP=$ac_ct_STRIP
6843 fi
6844 else
6845 STRIP="$ac_cv_prog_STRIP"
6846 fi
6847
6848 test -z "$STRIP" && STRIP=:
6849
6850
6851
6852
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_RANLIB+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$RANLIB"; then
6864 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 RANLIB=$ac_cv_prog_RANLIB
6884 if test -n "$RANLIB"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6886 $as_echo "$RANLIB" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892
6893 fi
6894 if test -z "$ac_cv_prog_RANLIB"; then
6895 ac_ct_RANLIB=$RANLIB
6896 # Extract the first word of "ranlib", so it can be a program name with args.
6897 set dummy ranlib; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 if test -n "$ac_ct_RANLIB"; then
6904 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_ac_ct_RANLIB="ranlib"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6924 if test -n "$ac_ct_RANLIB"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6926 $as_echo "$ac_ct_RANLIB" >&6; }
6927 else
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932 if test "x$ac_ct_RANLIB" = x; then
6933 RANLIB=":"
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941 RANLIB=$ac_ct_RANLIB
6942 fi
6943 else
6944 RANLIB="$ac_cv_prog_RANLIB"
6945 fi
6946
6947 test -z "$RANLIB" && RANLIB=:
6948
6949
6950
6951
6952
6953
6954 # Determine commands to create old-style static archives.
6955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956 old_postinstall_cmds='chmod 644 $oldlib'
6957 old_postuninstall_cmds=
6958
6959 if test -n "$RANLIB"; then
6960 case $host_os in
6961 openbsd*)
6962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6963 ;;
6964 *)
6965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6966 ;;
6967 esac
6968 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6969 fi
6970
6971 case $host_os in
6972 darwin*)
6973 lock_old_archive_extraction=yes ;;
6974 *)
6975 lock_old_archive_extraction=no ;;
6976 esac
6977
6978
6979
6980
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 # If no C compiler was specified, use CC.
7017 LTCC=${LTCC-"$CC"}
7018
7019 # If no C compiler flags were specified, use CFLAGS.
7020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7021
7022 # Allow CC to be a program name with arguments.
7023 compiler=$CC
7024
7025
7026 # Check for command to grab the raw symbol name followed by C symbol from nm.
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7028 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7029 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032
7033 # These are sane defaults that work on at least a few old systems.
7034 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7035
7036 # Character class describing NM global symbol codes.
7037 symcode='[BCDEGRST]'
7038
7039 # Regexp to match symbols that can be accessed directly from C.
7040 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7041
7042 # Define system-specific variables.
7043 case $host_os in
7044 aix*)
7045 symcode='[BCDT]'
7046 ;;
7047 cygwin* | mingw* | pw32* | cegcc*)
7048 symcode='[ABCDGISTW]'
7049 ;;
7050 hpux*)
7051 if test "$host_cpu" = ia64; then
7052 symcode='[ABCDEGRST]'
7053 fi
7054 ;;
7055 irix* | nonstopux*)
7056 symcode='[BCDEGRST]'
7057 ;;
7058 osf*)
7059 symcode='[BCDEGQRST]'
7060 ;;
7061 solaris*)
7062 symcode='[BDRT]'
7063 ;;
7064 sco3.2v5*)
7065 symcode='[DT]'
7066 ;;
7067 sysv4.2uw2*)
7068 symcode='[DT]'
7069 ;;
7070 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7071 symcode='[ABDT]'
7072 ;;
7073 sysv4)
7074 symcode='[DFNSTU]'
7075 ;;
7076 esac
7077
7078 # If we're using GNU nm, then use its standard symbol codes.
7079 case `$NM -V 2>&1` in
7080 *GNU* | *'with BFD'*)
7081 symcode='[ABCDGIRSTW]' ;;
7082 esac
7083
7084 # Transform an extracted symbol line into a proper C declaration.
7085 # Some systems (esp. on ia64) link data and code symbols differently,
7086 # so use this general approach.
7087 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7088
7089 # Transform an extracted symbol line into symbol name and symbol address
7090 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7091 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'"
7092
7093 # Handle CRLF in mingw tool chain
7094 opt_cr=
7095 case $build_os in
7096 mingw*)
7097 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7098 ;;
7099 esac
7100
7101 # Try without a prefix underscore, then with it.
7102 for ac_symprfx in "" "_"; do
7103
7104 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7105 symxfrm="\\1 $ac_symprfx\\2 \\2"
7106
7107 # Write the raw and C identifiers.
7108 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7109 # Fake it for dumpbin and say T for any non-static function
7110 # and D for any global variable.
7111 # Also find C++ and __fastcall symbols from MSVC++,
7112 # which start with @ or ?.
7113 lt_cv_sys_global_symbol_pipe="$AWK '"\
7114 " {last_section=section; section=\$ 3};"\
7115 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7116 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7117 " \$ 0!~/External *\|/{next};"\
7118 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7119 " {if(hide[section]) next};"\
7120 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7121 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7122 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7123 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7124 " ' prfx=^$ac_symprfx"
7125 else
7126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7127 fi
7128 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7129
7130 # Check to see that the pipe works correctly.
7131 pipe_works=no
7132
7133 rm -rf conftest*
7134 cat > conftest.$ac_ext <<_LT_EOF
7135 #ifdef __cplusplus
7136 extern "C" {
7137 #endif
7138 char nm_test_var;
7139 void nm_test_func(void);
7140 void nm_test_func(void){}
7141 #ifdef __cplusplus
7142 }
7143 #endif
7144 int main(){nm_test_var='a';nm_test_func();return(0);}
7145 _LT_EOF
7146
7147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7148 (eval $ac_compile) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; then
7152 # Now try to grab the symbols.
7153 nlist=conftest.nm
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7155 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; } && test -s "$nlist"; then
7159 # Try sorting and uniquifying the output.
7160 if sort "$nlist" | uniq > "$nlist"T; then
7161 mv -f "$nlist"T "$nlist"
7162 else
7163 rm -f "$nlist"T
7164 fi
7165
7166 # Make sure that we snagged all the symbols we need.
7167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7169 cat <<_LT_EOF > conftest.$ac_ext
7170 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7171 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7172 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7173 relocations are performed -- see ld's documentation on pseudo-relocs. */
7174 # define LT_DLSYM_CONST
7175 #elif defined(__osf__)
7176 /* This system does not cope well with relocations in const data. */
7177 # define LT_DLSYM_CONST
7178 #else
7179 # define LT_DLSYM_CONST const
7180 #endif
7181
7182 #ifdef __cplusplus
7183 extern "C" {
7184 #endif
7185
7186 _LT_EOF
7187 # Now generate the symbol file.
7188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7189
7190 cat <<_LT_EOF >> conftest.$ac_ext
7191
7192 /* The mapping between symbol names and symbols. */
7193 LT_DLSYM_CONST struct {
7194 const char *name;
7195 void *address;
7196 }
7197 lt__PROGRAM__LTX_preloaded_symbols[] =
7198 {
7199 { "@PROGRAM@", (void *) 0 },
7200 _LT_EOF
7201 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7202 cat <<\_LT_EOF >> conftest.$ac_ext
7203 {0, (void *) 0}
7204 };
7205
7206 /* This works around a problem in FreeBSD linker */
7207 #ifdef FREEBSD_WORKAROUND
7208 static const void *lt_preloaded_setup() {
7209 return lt__PROGRAM__LTX_preloaded_symbols;
7210 }
7211 #endif
7212
7213 #ifdef __cplusplus
7214 }
7215 #endif
7216 _LT_EOF
7217 # Now try linking the two files.
7218 mv conftest.$ac_objext conftstm.$ac_objext
7219 lt_globsym_save_LIBS=$LIBS
7220 lt_globsym_save_CFLAGS=$CFLAGS
7221 LIBS="conftstm.$ac_objext"
7222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7224 (eval $ac_link) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7228 pipe_works=yes
7229 fi
7230 LIBS=$lt_globsym_save_LIBS
7231 CFLAGS=$lt_globsym_save_CFLAGS
7232 else
7233 echo "cannot find nm_test_func in $nlist" >&5
7234 fi
7235 else
7236 echo "cannot find nm_test_var in $nlist" >&5
7237 fi
7238 else
7239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7240 fi
7241 else
7242 echo "$progname: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 fi
7245 rm -rf conftest* conftst*
7246
7247 # Do not use the global_symbol_pipe unless it works.
7248 if test "$pipe_works" = yes; then
7249 break
7250 else
7251 lt_cv_sys_global_symbol_pipe=
7252 fi
7253 done
7254
7255 fi
7256
7257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7258 lt_cv_sys_global_symbol_to_cdecl=
7259 fi
7260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7262 $as_echo "failed" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7265 $as_echo "ok" >&6; }
7266 fi
7267
7268 # Response file support.
7269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7270 nm_file_list_spec='@'
7271 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7272 nm_file_list_spec='@'
7273 fi
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7302 $as_echo_n "checking for sysroot... " >&6; }
7303
7304 # Check whether --with-sysroot was given.
7305 if test "${with_sysroot+set}" = set; then :
7306 withval=$with_sysroot;
7307 else
7308 with_sysroot=no
7309 fi
7310
7311
7312 lt_sysroot=
7313 case ${with_sysroot} in #(
7314 yes)
7315 if test "$GCC" = yes; then
7316 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7317 fi
7318 ;; #(
7319 /*)
7320 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7321 ;; #(
7322 no|'')
7323 ;; #(
7324 *)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7326 $as_echo "${with_sysroot}" >&6; }
7327 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7328 ;;
7329 esac
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7332 $as_echo "${lt_sysroot:-no}" >&6; }
7333
7334
7335
7336
7337
7338 # Check whether --enable-libtool-lock was given.
7339 if test "${enable_libtool_lock+set}" = set; then :
7340 enableval=$enable_libtool_lock;
7341 fi
7342
7343 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7344
7345 # Some flags need to be propagated to the compiler or linker for good
7346 # libtool support.
7347 case $host in
7348 ia64-*-hpux*)
7349 # Find out which ABI we are using.
7350 echo 'int i;' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 case `/usr/bin/file conftest.$ac_objext` in
7357 *ELF-32*)
7358 HPUX_IA64_MODE="32"
7359 ;;
7360 *ELF-64*)
7361 HPUX_IA64_MODE="64"
7362 ;;
7363 esac
7364 fi
7365 rm -rf conftest*
7366 ;;
7367 *-*-irix6*)
7368 # Find out which ABI we are using.
7369 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371 (eval $ac_compile) 2>&5
7372 ac_status=$?
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }; then
7375 if test "$lt_cv_prog_gnu_ld" = yes; then
7376 case `/usr/bin/file conftest.$ac_objext` in
7377 *32-bit*)
7378 LD="${LD-ld} -melf32bsmip"
7379 ;;
7380 *N32*)
7381 LD="${LD-ld} -melf32bmipn32"
7382 ;;
7383 *64-bit*)
7384 LD="${LD-ld} -melf64bmip"
7385 ;;
7386 esac
7387 else
7388 case `/usr/bin/file conftest.$ac_objext` in
7389 *32-bit*)
7390 LD="${LD-ld} -32"
7391 ;;
7392 *N32*)
7393 LD="${LD-ld} -n32"
7394 ;;
7395 *64-bit*)
7396 LD="${LD-ld} -64"
7397 ;;
7398 esac
7399 fi
7400 fi
7401 rm -rf conftest*
7402 ;;
7403
7404 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7405 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.o` in
7414 *32-bit*)
7415 case $host in
7416 x86_64-*kfreebsd*-gnu)
7417 LD="${LD-ld} -m elf_i386_fbsd"
7418 ;;
7419 x86_64-*linux*)
7420 LD="${LD-ld} -m elf_i386"
7421 ;;
7422 ppc64-*linux*|powerpc64-*linux*)
7423 LD="${LD-ld} -m elf32ppclinux"
7424 ;;
7425 s390x-*linux*)
7426 LD="${LD-ld} -m elf_s390"
7427 ;;
7428 sparc64-*linux*)
7429 LD="${LD-ld} -m elf32_sparc"
7430 ;;
7431 esac
7432 ;;
7433 *64-bit*)
7434 case $host in
7435 x86_64-*kfreebsd*-gnu)
7436 LD="${LD-ld} -m elf_x86_64_fbsd"
7437 ;;
7438 x86_64-*linux*)
7439 LD="${LD-ld} -m elf_x86_64"
7440 ;;
7441 ppc*-*linux*|powerpc*-*linux*)
7442 LD="${LD-ld} -m elf64ppc"
7443 ;;
7444 s390*-*linux*|s390*-*tpf*)
7445 LD="${LD-ld} -m elf64_s390"
7446 ;;
7447 sparc*-*linux*)
7448 LD="${LD-ld} -m elf64_sparc"
7449 ;;
7450 esac
7451 ;;
7452 esac
7453 fi
7454 rm -rf conftest*
7455 ;;
7456
7457 *-*-sco3.2v5*)
7458 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7459 SAVE_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS -belf"
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7462 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7463 if ${lt_cv_cc_needs_belf+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474
7475 int
7476 main ()
7477 {
7478
7479 ;
7480 return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 lt_cv_cc_needs_belf=yes
7485 else
7486 lt_cv_cc_needs_belf=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 ac_ext=c
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7495
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7498 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7499 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7500 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7501 CFLAGS="$SAVE_CFLAGS"
7502 fi
7503 ;;
7504 *-*solaris*)
7505 # Find out which ABI we are using.
7506 echo 'int i;' > conftest.$ac_ext
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 case `/usr/bin/file conftest.o` in
7513 *64-bit*)
7514 case $lt_cv_prog_gnu_ld in
7515 yes*)
7516 case $host in
7517 i?86-*-solaris*)
7518 LD="${LD-ld} -m elf_x86_64"
7519 ;;
7520 sparc*-*-solaris*)
7521 LD="${LD-ld} -m elf64_sparc"
7522 ;;
7523 esac
7524 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7525 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7526 LD="${LD-ld}_sol2"
7527 fi
7528 ;;
7529 *)
7530 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7531 LD="${LD-ld} -64"
7532 fi
7533 ;;
7534 esac
7535 ;;
7536 esac
7537 fi
7538 rm -rf conftest*
7539 ;;
7540 esac
7541
7542 need_locks="$enable_libtool_lock"
7543
7544 if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}mt; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 if test -n "$MANIFEST_TOOL"; then
7553 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7573 if test -n "$MANIFEST_TOOL"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7575 $as_echo "$MANIFEST_TOOL" >&6; }
7576 else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7584 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7585 # Extract the first word of "mt", so it can be a program name with args.
7586 set dummy mt; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$ac_ct_MANIFEST_TOOL"; then
7593 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7613 if test -n "$ac_ct_MANIFEST_TOOL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7615 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7622 MANIFEST_TOOL=":"
7623 else
7624 case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7631 fi
7632 else
7633 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7634 fi
7635
7636 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7638 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7639 if ${lt_cv_path_mainfest_tool+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 lt_cv_path_mainfest_tool=no
7643 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7644 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7645 cat conftest.err >&5
7646 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7647 lt_cv_path_mainfest_tool=yes
7648 fi
7649 rm -rf conftest*
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7652 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7653 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7654 MANIFEST_TOOL=:
7655 fi
7656
7657
7658
7659
7660
7661
7662 case $host_os in
7663 rhapsody* | darwin*)
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$DSYMUTIL"; then
7673 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7693 if test -n "$DSYMUTIL"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7695 $as_echo "$DSYMUTIL" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_DSYMUTIL"; then
7704 ac_ct_DSYMUTIL=$DSYMUTIL
7705 # Extract the first word of "dsymutil", so it can be a program name with args.
7706 set dummy dsymutil; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$ac_ct_DSYMUTIL"; then
7713 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7733 if test -n "$ac_ct_DSYMUTIL"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7735 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741 if test "x$ac_ct_DSYMUTIL" = x; then
7742 DSYMUTIL=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745 yes:)
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748 ac_tool_warned=yes ;;
7749 esac
7750 DSYMUTIL=$ac_ct_DSYMUTIL
7751 fi
7752 else
7753 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7754 fi
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_NMEDIT+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$NMEDIT"; then
7765 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 NMEDIT=$ac_cv_prog_NMEDIT
7785 if test -n "$NMEDIT"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7787 $as_echo "$NMEDIT" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_NMEDIT"; then
7796 ac_ct_NMEDIT=$NMEDIT
7797 # Extract the first word of "nmedit", so it can be a program name with args.
7798 set dummy nmedit; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_NMEDIT"; then
7805 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7825 if test -n "$ac_ct_NMEDIT"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7827 $as_echo "$ac_ct_NMEDIT" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833 if test "x$ac_ct_NMEDIT" = x; then
7834 NMEDIT=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 NMEDIT=$ac_ct_NMEDIT
7843 fi
7844 else
7845 NMEDIT="$ac_cv_prog_NMEDIT"
7846 fi
7847
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_LIPO+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$LIPO"; then
7857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 LIPO=$ac_cv_prog_LIPO
7877 if test -n "$LIPO"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7879 $as_echo "$LIPO" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_LIPO"; then
7888 ac_ct_LIPO=$LIPO
7889 # Extract the first word of "lipo", so it can be a program name with args.
7890 set dummy lipo; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$ac_ct_LIPO"; then
7897 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_LIPO="lipo"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7917 if test -n "$ac_ct_LIPO"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7919 $as_echo "$ac_ct_LIPO" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925 if test "x$ac_ct_LIPO" = x; then
7926 LIPO=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934 LIPO=$ac_ct_LIPO
7935 fi
7936 else
7937 LIPO="$ac_cv_prog_LIPO"
7938 fi
7939
7940 if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}otool; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_OTOOL+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$OTOOL"; then
7949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 OTOOL=$ac_cv_prog_OTOOL
7969 if test -n "$OTOOL"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7971 $as_echo "$OTOOL" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_OTOOL"; then
7980 ac_ct_OTOOL=$OTOOL
7981 # Extract the first word of "otool", so it can be a program name with args.
7982 set dummy otool; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$ac_ct_OTOOL"; then
7989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_ac_ct_OTOOL="otool"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8009 if test -n "$ac_ct_OTOOL"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8011 $as_echo "$ac_ct_OTOOL" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017 if test "x$ac_ct_OTOOL" = x; then
8018 OTOOL=":"
8019 else
8020 case $cross_compiling:$ac_tool_warned in
8021 yes:)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8025 esac
8026 OTOOL=$ac_ct_OTOOL
8027 fi
8028 else
8029 OTOOL="$ac_cv_prog_OTOOL"
8030 fi
8031
8032 if test -n "$ac_tool_prefix"; then
8033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_OTOOL64+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 if test -n "$OTOOL64"; then
8041 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 OTOOL64=$ac_cv_prog_OTOOL64
8061 if test -n "$OTOOL64"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8063 $as_echo "$OTOOL64" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069
8070 fi
8071 if test -z "$ac_cv_prog_OTOOL64"; then
8072 ac_ct_OTOOL64=$OTOOL64
8073 # Extract the first word of "otool64", so it can be a program name with args.
8074 set dummy otool64; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$ac_ct_OTOOL64"; then
8081 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_ac_ct_OTOOL64="otool64"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8093 fi
8094 done
8095 done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8101 if test -n "$ac_ct_OTOOL64"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8103 $as_echo "$ac_ct_OTOOL64" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109 if test "x$ac_ct_OTOOL64" = x; then
8110 OTOOL64=":"
8111 else
8112 case $cross_compiling:$ac_tool_warned in
8113 yes:)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8117 esac
8118 OTOOL64=$ac_ct_OTOOL64
8119 fi
8120 else
8121 OTOOL64="$ac_cv_prog_OTOOL64"
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8151 $as_echo_n "checking for -single_module linker flag... " >&6; }
8152 if ${lt_cv_apple_cc_single_mod+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 lt_cv_apple_cc_single_mod=no
8156 if test -z "${LT_MULTI_MODULE}"; then
8157 # By default we will add the -single_module flag. You can override
8158 # by either setting the environment variable LT_MULTI_MODULE
8159 # non-empty at configure time, or by adding -multi_module to the
8160 # link flags.
8161 rm -rf libconftest.dylib*
8162 echo "int foo(void){return 1;}" > conftest.c
8163 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8164 -dynamiclib -Wl,-single_module conftest.c" >&5
8165 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8167 _lt_result=$?
8168 # If there is a non-empty error log, and "single_module"
8169 # appears in it, assume the flag caused a linker warning
8170 if test -s conftest.err && $GREP single_module conftest.err; then
8171 cat conftest.err >&5
8172 # Otherwise, if the output was created with a 0 exit code from
8173 # the compiler, it worked.
8174 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8175 lt_cv_apple_cc_single_mod=yes
8176 else
8177 cat conftest.err >&5
8178 fi
8179 rm -rf libconftest.dylib*
8180 rm -f conftest.*
8181 fi
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8184 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8187 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8188 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 lt_cv_ld_exported_symbols_list=no
8192 save_LDFLAGS=$LDFLAGS
8193 echo "_main" > conftest.sym
8194 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197
8198 int
8199 main ()
8200 {
8201
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 lt_cv_ld_exported_symbols_list=yes
8208 else
8209 lt_cv_ld_exported_symbols_list=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 LDFLAGS="$save_LDFLAGS"
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8217 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8220 $as_echo_n "checking for -force_load linker flag... " >&6; }
8221 if ${lt_cv_ld_force_load+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 lt_cv_ld_force_load=no
8225 cat > conftest.c << _LT_EOF
8226 int forced_loaded() { return 2;}
8227 _LT_EOF
8228 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8229 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8230 echo "$AR cru libconftest.a conftest.o" >&5
8231 $AR cru libconftest.a conftest.o 2>&5
8232 echo "$RANLIB libconftest.a" >&5
8233 $RANLIB libconftest.a 2>&5
8234 cat > conftest.c << _LT_EOF
8235 int main() { return 0;}
8236 _LT_EOF
8237 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8238 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8239 _lt_result=$?
8240 if test -s conftest.err && $GREP force_load conftest.err; then
8241 cat conftest.err >&5
8242 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8243 lt_cv_ld_force_load=yes
8244 else
8245 cat conftest.err >&5
8246 fi
8247 rm -f conftest.err libconftest.a conftest conftest.c
8248 rm -rf conftest.dSYM
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8252 $as_echo "$lt_cv_ld_force_load" >&6; }
8253 case $host_os in
8254 rhapsody* | darwin1.[012])
8255 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8256 darwin1.*)
8257 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8258 darwin*) # darwin 5.x on
8259 # if running on 10.5 or later, the deployment target defaults
8260 # to the OS version, if on x86, and 10.4, the deployment
8261 # target defaults to 10.4. Don't you love it?
8262 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8263 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8264 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265 10.[012]*)
8266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8267 10.*)
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269 esac
8270 ;;
8271 esac
8272 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8273 _lt_dar_single_mod='$single_module'
8274 fi
8275 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8276 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8277 else
8278 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279 fi
8280 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8281 _lt_dsymutil='~$DSYMUTIL $lib || :'
8282 else
8283 _lt_dsymutil=
8284 fi
8285 ;;
8286 esac
8287
8288 ac_ext=c
8289 ac_cpp='$CPP $CPPFLAGS'
8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8295 # On Suns, sometimes $CPP names a directory.
8296 if test -n "$CPP" && test -d "$CPP"; then
8297 CPP=
8298 fi
8299 if test -z "$CPP"; then
8300 if ${ac_cv_prog_CPP+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 # Double quotes because CPP needs to be expanded
8304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8305 do
8306 ac_preproc_ok=false
8307 for ac_c_preproc_warn_flag in '' yes
8308 do
8309 # Use a header file that comes with gcc, so configuring glibc
8310 # with a fresh cross-compiler works.
8311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312 # <limits.h> exists even on freestanding compilers.
8313 # On the NeXT, cc -E runs the code through the compiler's parser,
8314 # not just through cpp. "Syntax error" is here to catch this case.
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8317 #ifdef __STDC__
8318 # include <limits.h>
8319 #else
8320 # include <assert.h>
8321 #endif
8322 Syntax error
8323 _ACEOF
8324 if ac_fn_c_try_cpp "$LINENO"; then :
8325
8326 else
8327 # Broken: fails on valid input.
8328 continue
8329 fi
8330 rm -f conftest.err conftest.i conftest.$ac_ext
8331
8332 # OK, works on sane cases. Now check whether nonexistent headers
8333 # can be detected and how.
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <ac_nonexistent.h>
8337 _ACEOF
8338 if ac_fn_c_try_cpp "$LINENO"; then :
8339 # Broken: success on invalid input.
8340 continue
8341 else
8342 # Passes both tests.
8343 ac_preproc_ok=:
8344 break
8345 fi
8346 rm -f conftest.err conftest.i conftest.$ac_ext
8347
8348 done
8349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8350 rm -f conftest.i conftest.err conftest.$ac_ext
8351 if $ac_preproc_ok; then :
8352 break
8353 fi
8354
8355 done
8356 ac_cv_prog_CPP=$CPP
8357
8358 fi
8359 CPP=$ac_cv_prog_CPP
8360 else
8361 ac_cv_prog_CPP=$CPP
8362 fi
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8364 $as_echo "$CPP" >&6; }
8365 ac_preproc_ok=false
8366 for ac_c_preproc_warn_flag in '' yes
8367 do
8368 # Use a header file that comes with gcc, so configuring glibc
8369 # with a fresh cross-compiler works.
8370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8371 # <limits.h> exists even on freestanding compilers.
8372 # On the NeXT, cc -E runs the code through the compiler's parser,
8373 # not just through cpp. "Syntax error" is here to catch this case.
8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 #ifdef __STDC__
8377 # include <limits.h>
8378 #else
8379 # include <assert.h>
8380 #endif
8381 Syntax error
8382 _ACEOF
8383 if ac_fn_c_try_cpp "$LINENO"; then :
8384
8385 else
8386 # Broken: fails on valid input.
8387 continue
8388 fi
8389 rm -f conftest.err conftest.i conftest.$ac_ext
8390
8391 # OK, works on sane cases. Now check whether nonexistent headers
8392 # can be detected and how.
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <ac_nonexistent.h>
8396 _ACEOF
8397 if ac_fn_c_try_cpp "$LINENO"; then :
8398 # Broken: success on invalid input.
8399 continue
8400 else
8401 # Passes both tests.
8402 ac_preproc_ok=:
8403 break
8404 fi
8405 rm -f conftest.err conftest.i conftest.$ac_ext
8406
8407 done
8408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8409 rm -f conftest.i conftest.err conftest.$ac_ext
8410 if $ac_preproc_ok; then :
8411
8412 else
8413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8415 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8416 See \`config.log' for more details" "$LINENO" 5; }
8417 fi
8418
8419 ac_ext=c
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424
8425
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8427 $as_echo_n "checking for ANSI C header files... " >&6; }
8428 if ${ac_cv_header_stdc+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <stdlib.h>
8434 #include <stdarg.h>
8435 #include <string.h>
8436 #include <float.h>
8437
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_header_stdc=yes
8448 else
8449 ac_cv_header_stdc=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452
8453 if test $ac_cv_header_stdc = yes; then
8454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <string.h>
8458
8459 _ACEOF
8460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8461 $EGREP "memchr" >/dev/null 2>&1; then :
8462
8463 else
8464 ac_cv_header_stdc=no
8465 fi
8466 rm -f conftest*
8467
8468 fi
8469
8470 if test $ac_cv_header_stdc = yes; then
8471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8474 #include <stdlib.h>
8475
8476 _ACEOF
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478 $EGREP "free" >/dev/null 2>&1; then :
8479
8480 else
8481 ac_cv_header_stdc=no
8482 fi
8483 rm -f conftest*
8484
8485 fi
8486
8487 if test $ac_cv_header_stdc = yes; then
8488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8489 if test "$cross_compiling" = yes; then :
8490 :
8491 else
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 #include <ctype.h>
8495 #include <stdlib.h>
8496 #if ((' ' & 0x0FF) == 0x020)
8497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8499 #else
8500 # define ISLOWER(c) \
8501 (('a' <= (c) && (c) <= 'i') \
8502 || ('j' <= (c) && (c) <= 'r') \
8503 || ('s' <= (c) && (c) <= 'z'))
8504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8505 #endif
8506
8507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8508 int
8509 main ()
8510 {
8511 int i;
8512 for (i = 0; i < 256; i++)
8513 if (XOR (islower (i), ISLOWER (i))
8514 || toupper (i) != TOUPPER (i))
8515 return 2;
8516 return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_run "$LINENO"; then :
8520
8521 else
8522 ac_cv_header_stdc=no
8523 fi
8524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8525 conftest.$ac_objext conftest.beam conftest.$ac_ext
8526 fi
8527
8528 fi
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8531 $as_echo "$ac_cv_header_stdc" >&6; }
8532 if test $ac_cv_header_stdc = yes; then
8533
8534 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8535
8536 fi
8537
8538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8540 inttypes.h stdint.h unistd.h
8541 do :
8542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8544 "
8545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8546 cat >>confdefs.h <<_ACEOF
8547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8548 _ACEOF
8549
8550 fi
8551
8552 done
8553
8554
8555 for ac_header in dlfcn.h
8556 do :
8557 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8558 "
8559 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8560 cat >>confdefs.h <<_ACEOF
8561 #define HAVE_DLFCN_H 1
8562 _ACEOF
8563
8564 fi
8565
8566 done
8567
8568
8569
8570
8571 func_stripname_cnf ()
8572 {
8573 case ${2} in
8574 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8575 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8576 esac
8577 } # func_stripname_cnf
8578
8579
8580
8581
8582
8583 # Set options
8584 # Check whether --enable-static was given.
8585 if test "${enable_static+set}" = set; then :
8586 enableval=$enable_static; p=${PACKAGE-default}
8587 case $enableval in
8588 yes) enable_static=yes ;;
8589 no) enable_static=no ;;
8590 *)
8591 enable_static=no
8592 # Look at the argument we got. We use all the common list separators.
8593 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8594 for pkg in $enableval; do
8595 IFS="$lt_save_ifs"
8596 if test "X$pkg" = "X$p"; then
8597 enable_static=yes
8598 fi
8599 done
8600 IFS="$lt_save_ifs"
8601 ;;
8602 esac
8603 else
8604 enable_static=no
8605 fi
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 enable_dlopen=no
8617
8618
8619 enable_win32_dll=no
8620
8621
8622 # Check whether --enable-shared was given.
8623 if test "${enable_shared+set}" = set; then :
8624 enableval=$enable_shared; p=${PACKAGE-default}
8625 case $enableval in
8626 yes) enable_shared=yes ;;
8627 no) enable_shared=no ;;
8628 *)
8629 enable_shared=no
8630 # Look at the argument we got. We use all the common list separators.
8631 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8632 for pkg in $enableval; do
8633 IFS="$lt_save_ifs"
8634 if test "X$pkg" = "X$p"; then
8635 enable_shared=yes
8636 fi
8637 done
8638 IFS="$lt_save_ifs"
8639 ;;
8640 esac
8641 else
8642 enable_shared=yes
8643 fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655 # Check whether --with-pic was given.
8656 if test "${with_pic+set}" = set; then :
8657 withval=$with_pic; lt_p=${PACKAGE-default}
8658 case $withval in
8659 yes|no) pic_mode=$withval ;;
8660 *)
8661 pic_mode=default
8662 # Look at the argument we got. We use all the common list separators.
8663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8664 for lt_pkg in $withval; do
8665 IFS="$lt_save_ifs"
8666 if test "X$lt_pkg" = "X$lt_p"; then
8667 pic_mode=yes
8668 fi
8669 done
8670 IFS="$lt_save_ifs"
8671 ;;
8672 esac
8673 else
8674 pic_mode=default
8675 fi
8676
8677
8678 test -z "$pic_mode" && pic_mode=default
8679
8680
8681
8682
8683
8684
8685
8686 # Check whether --enable-fast-install was given.
8687 if test "${enable_fast_install+set}" = set; then :
8688 enableval=$enable_fast_install; p=${PACKAGE-default}
8689 case $enableval in
8690 yes) enable_fast_install=yes ;;
8691 no) enable_fast_install=no ;;
8692 *)
8693 enable_fast_install=no
8694 # Look at the argument we got. We use all the common list separators.
8695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8696 for pkg in $enableval; do
8697 IFS="$lt_save_ifs"
8698 if test "X$pkg" = "X$p"; then
8699 enable_fast_install=yes
8700 fi
8701 done
8702 IFS="$lt_save_ifs"
8703 ;;
8704 esac
8705 else
8706 enable_fast_install=yes
8707 fi
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719 # This can be used to rebuild libtool when needed
8720 LIBTOOL_DEPS="$ltmain"
8721
8722 # Always use our own libtool.
8723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8724
8725
8726
8727
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 test -z "$LN_S" && LN_S="ln -s"
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769 if test -n "${ZSH_VERSION+set}" ; then
8770 setopt NO_GLOB_SUBST
8771 fi
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8774 $as_echo_n "checking for objdir... " >&6; }
8775 if ${lt_cv_objdir+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 rm -f .libs 2>/dev/null
8779 mkdir .libs 2>/dev/null
8780 if test -d .libs; then
8781 lt_cv_objdir=.libs
8782 else
8783 # MS-DOS does not allow filenames that begin with a dot.
8784 lt_cv_objdir=_libs
8785 fi
8786 rmdir .libs 2>/dev/null
8787 fi
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8789 $as_echo "$lt_cv_objdir" >&6; }
8790 objdir=$lt_cv_objdir
8791
8792
8793
8794
8795
8796 cat >>confdefs.h <<_ACEOF
8797 #define LT_OBJDIR "$lt_cv_objdir/"
8798 _ACEOF
8799
8800
8801
8802
8803 case $host_os in
8804 aix3*)
8805 # AIX sometimes has problems with the GCC collect2 program. For some
8806 # reason, if we set the COLLECT_NAMES environment variable, the problems
8807 # vanish in a puff of smoke.
8808 if test "X${COLLECT_NAMES+set}" != Xset; then
8809 COLLECT_NAMES=
8810 export COLLECT_NAMES
8811 fi
8812 ;;
8813 esac
8814
8815 # Global variables:
8816 ofile=libtool
8817 can_build_shared=yes
8818
8819 # All known linkers require a `.a' archive for static linking (except MSVC,
8820 # which needs '.lib').
8821 libext=a
8822
8823 with_gnu_ld="$lt_cv_prog_gnu_ld"
8824
8825 old_CC="$CC"
8826 old_CFLAGS="$CFLAGS"
8827
8828 # Set sane defaults for various variables
8829 test -z "$CC" && CC=cc
8830 test -z "$LTCC" && LTCC=$CC
8831 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8832 test -z "$LD" && LD=ld
8833 test -z "$ac_objext" && ac_objext=o
8834
8835 for cc_temp in $compiler""; do
8836 case $cc_temp in
8837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8839 \-*) ;;
8840 *) break;;
8841 esac
8842 done
8843 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8844
8845
8846 # Only perform the check for file, if the check method requires it
8847 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8848 case $deplibs_check_method in
8849 file_magic*)
8850 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8852 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8853 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 case $MAGIC_CMD in
8857 [\\/*] | ?:[\\/]*)
8858 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8859 ;;
8860 *)
8861 lt_save_MAGIC_CMD="$MAGIC_CMD"
8862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8863 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8864 for ac_dir in $ac_dummy; do
8865 IFS="$lt_save_ifs"
8866 test -z "$ac_dir" && ac_dir=.
8867 if test -f $ac_dir/${ac_tool_prefix}file; then
8868 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8869 if test -n "$file_magic_test_file"; then
8870 case $deplibs_check_method in
8871 "file_magic "*)
8872 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8874 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8875 $EGREP "$file_magic_regex" > /dev/null; then
8876 :
8877 else
8878 cat <<_LT_EOF 1>&2
8879
8880 *** Warning: the command libtool uses to detect shared libraries,
8881 *** $file_magic_cmd, produces output that libtool cannot recognize.
8882 *** The result is that libtool may fail to recognize shared libraries
8883 *** as such. This will affect the creation of libtool libraries that
8884 *** depend on shared libraries, but programs linked with such libtool
8885 *** libraries will work regardless of this problem. Nevertheless, you
8886 *** may want to report the problem to your system manager and/or to
8887 *** bug-libtool@gnu.org
8888
8889 _LT_EOF
8890 fi ;;
8891 esac
8892 fi
8893 break
8894 fi
8895 done
8896 IFS="$lt_save_ifs"
8897 MAGIC_CMD="$lt_save_MAGIC_CMD"
8898 ;;
8899 esac
8900 fi
8901
8902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8903 if test -n "$MAGIC_CMD"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8905 $as_echo "$MAGIC_CMD" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909 fi
8910
8911
8912
8913
8914
8915 if test -z "$lt_cv_path_MAGIC_CMD"; then
8916 if test -n "$ac_tool_prefix"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8918 $as_echo_n "checking for file... " >&6; }
8919 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 case $MAGIC_CMD in
8923 [\\/*] | ?:[\\/]*)
8924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8925 ;;
8926 *)
8927 lt_save_MAGIC_CMD="$MAGIC_CMD"
8928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8930 for ac_dir in $ac_dummy; do
8931 IFS="$lt_save_ifs"
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/file; then
8934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8935 if test -n "$file_magic_test_file"; then
8936 case $deplibs_check_method in
8937 "file_magic "*)
8938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8941 $EGREP "$file_magic_regex" > /dev/null; then
8942 :
8943 else
8944 cat <<_LT_EOF 1>&2
8945
8946 *** Warning: the command libtool uses to detect shared libraries,
8947 *** $file_magic_cmd, produces output that libtool cannot recognize.
8948 *** The result is that libtool may fail to recognize shared libraries
8949 *** as such. This will affect the creation of libtool libraries that
8950 *** depend on shared libraries, but programs linked with such libtool
8951 *** libraries will work regardless of this problem. Nevertheless, you
8952 *** may want to report the problem to your system manager and/or to
8953 *** bug-libtool@gnu.org
8954
8955 _LT_EOF
8956 fi ;;
8957 esac
8958 fi
8959 break
8960 fi
8961 done
8962 IFS="$lt_save_ifs"
8963 MAGIC_CMD="$lt_save_MAGIC_CMD"
8964 ;;
8965 esac
8966 fi
8967
8968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969 if test -n "$MAGIC_CMD"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8971 $as_echo "$MAGIC_CMD" >&6; }
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977
8978 else
8979 MAGIC_CMD=:
8980 fi
8981 fi
8982
8983 fi
8984 ;;
8985 esac
8986
8987 # Use C for the default configuration in the libtool script
8988
8989 lt_save_CC="$CC"
8990 ac_ext=c
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8995
8996
8997 # Source file extension for C test sources.
8998 ac_ext=c
8999
9000 # Object file extension for compiled C test sources.
9001 objext=o
9002 objext=$objext
9003
9004 # Code to be used in simple compile tests
9005 lt_simple_compile_test_code="int some_variable = 0;"
9006
9007 # Code to be used in simple link tests
9008 lt_simple_link_test_code='int main(){return(0);}'
9009
9010
9011
9012
9013
9014
9015
9016 # If no C compiler was specified, use CC.
9017 LTCC=${LTCC-"$CC"}
9018
9019 # If no C compiler flags were specified, use CFLAGS.
9020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9021
9022 # Allow CC to be a program name with arguments.
9023 compiler=$CC
9024
9025 # Save the default compiler, since it gets overwritten when the other
9026 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9027 compiler_DEFAULT=$CC
9028
9029 # save warnings/boilerplate of simple test code
9030 ac_outfile=conftest.$ac_objext
9031 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9032 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9033 _lt_compiler_boilerplate=`cat conftest.err`
9034 $RM -r conftest*
9035
9036 ac_outfile=conftest.$ac_objext
9037 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9038 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9039 _lt_linker_boilerplate=`cat conftest.err`
9040 $RM -r conftest*
9041
9042
9043 ## CAVEAT EMPTOR:
9044 ## There is no encapsulation within the following macros, do not change
9045 ## the running order or otherwise move them around unless you know exactly
9046 ## what you are doing...
9047 if test -n "$compiler"; then
9048
9049 lt_prog_compiler_no_builtin_flag=
9050
9051 if test "$GCC" = yes; then
9052 case $cc_basename in
9053 nvcc*)
9054 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9055 *)
9056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9057 esac
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9060 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9061 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 lt_cv_prog_compiler_rtti_exceptions=no
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067 lt_compiler_flag="-fno-rtti -fno-exceptions"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 # The option is referenced via a variable to avoid confusing sed.
9073 lt_compile=`echo "$ac_compile" | $SED \
9074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9076 -e 's:$: $lt_compiler_flag:'`
9077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9078 (eval "$lt_compile" 2>conftest.err)
9079 ac_status=$?
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 if (exit $ac_status) && test -s "$ac_outfile"; then
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings other than the usual output.
9085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9088 lt_cv_prog_compiler_rtti_exceptions=yes
9089 fi
9090 fi
9091 $RM -r conftest*
9092
9093 fi
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9095 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9096
9097 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9099 else
9100 :
9101 fi
9102
9103 fi
9104
9105
9106
9107
9108
9109
9110 lt_prog_compiler_wl=
9111 lt_prog_compiler_pic=
9112 lt_prog_compiler_static=
9113
9114
9115 if test "$GCC" = yes; then
9116 lt_prog_compiler_wl='-Wl,'
9117 lt_prog_compiler_static='-static'
9118
9119 case $host_os in
9120 aix*)
9121 # All AIX code is PIC.
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 now supports IA64 processor
9124 lt_prog_compiler_static='-Bstatic'
9125 fi
9126 ;;
9127
9128 amigaos*)
9129 case $host_cpu in
9130 powerpc)
9131 # see comment about AmigaOS4 .so support
9132 lt_prog_compiler_pic='-fPIC'
9133 ;;
9134 m68k)
9135 # FIXME: we need at least 68020 code to build shared libraries, but
9136 # adding the `-m68020' flag to GCC prevents building anything better,
9137 # like `-m68040'.
9138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9139 ;;
9140 esac
9141 ;;
9142
9143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9144 # PIC is the default for these OSes.
9145 ;;
9146
9147 mingw* | cygwin* | pw32* | os2* | cegcc*)
9148 # This hack is so that the source file can tell whether it is being
9149 # built for inclusion in a dll (and should export symbols for example).
9150 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9151 # (--disable-auto-import) libraries
9152 lt_prog_compiler_pic='-DDLL_EXPORT'
9153 ;;
9154
9155 darwin* | rhapsody*)
9156 # PIC is the default on this platform
9157 # Common symbols not allowed in MH_DYLIB files
9158 lt_prog_compiler_pic='-fno-common'
9159 ;;
9160
9161 haiku*)
9162 # PIC is the default for Haiku.
9163 # The "-static" flag exists, but is broken.
9164 lt_prog_compiler_static=
9165 ;;
9166
9167 hpux*)
9168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9170 # sets the default TLS model and affects inlining.
9171 case $host_cpu in
9172 hppa*64*)
9173 # +Z the default
9174 ;;
9175 *)
9176 lt_prog_compiler_pic='-fPIC'
9177 ;;
9178 esac
9179 ;;
9180
9181 interix[3-9]*)
9182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9183 # Instead, we relocate shared libraries at runtime.
9184 ;;
9185
9186 msdosdjgpp*)
9187 # Just because we use GCC doesn't mean we suddenly get shared libraries
9188 # on systems that don't support them.
9189 lt_prog_compiler_can_build_shared=no
9190 enable_shared=no
9191 ;;
9192
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9197 ;;
9198
9199 sysv4*MP*)
9200 if test -d /usr/nec; then
9201 lt_prog_compiler_pic=-Kconform_pic
9202 fi
9203 ;;
9204
9205 *)
9206 lt_prog_compiler_pic='-fPIC'
9207 ;;
9208 esac
9209
9210 case $cc_basename in
9211 nvcc*) # Cuda Compiler Driver 2.2
9212 lt_prog_compiler_wl='-Xlinker '
9213 if test -n "$lt_prog_compiler_pic"; then
9214 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9215 fi
9216 ;;
9217 esac
9218 else
9219 # PORTME Check for flag to pass linker flags through the system compiler.
9220 case $host_os in
9221 aix*)
9222 lt_prog_compiler_wl='-Wl,'
9223 if test "$host_cpu" = ia64; then
9224 # AIX 5 now supports IA64 processor
9225 lt_prog_compiler_static='-Bstatic'
9226 else
9227 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9228 fi
9229 ;;
9230
9231 mingw* | cygwin* | pw32* | os2* | cegcc*)
9232 # This hack is so that the source file can tell whether it is being
9233 # built for inclusion in a dll (and should export symbols for example).
9234 lt_prog_compiler_pic='-DDLL_EXPORT'
9235 ;;
9236
9237 hpux9* | hpux10* | hpux11*)
9238 lt_prog_compiler_wl='-Wl,'
9239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9240 # not for PA HP-UX.
9241 case $host_cpu in
9242 hppa*64*|ia64*)
9243 # +Z the default
9244 ;;
9245 *)
9246 lt_prog_compiler_pic='+Z'
9247 ;;
9248 esac
9249 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9250 lt_prog_compiler_static='${wl}-a ${wl}archive'
9251 ;;
9252
9253 irix5* | irix6* | nonstopux*)
9254 lt_prog_compiler_wl='-Wl,'
9255 # PIC (with -KPIC) is the default.
9256 lt_prog_compiler_static='-non_shared'
9257 ;;
9258
9259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9260 case $cc_basename in
9261 # old Intel for x86_64 which still supported -KPIC.
9262 ecc*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-KPIC'
9265 lt_prog_compiler_static='-static'
9266 ;;
9267 # icc used to be incompatible with GCC.
9268 # ICC 10 doesn't accept -KPIC any more.
9269 icc* | ifort*)
9270 lt_prog_compiler_wl='-Wl,'
9271 lt_prog_compiler_pic='-fPIC'
9272 lt_prog_compiler_static='-static'
9273 ;;
9274 # Lahey Fortran 8.1.
9275 lf95*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='--shared'
9278 lt_prog_compiler_static='--static'
9279 ;;
9280 nagfor*)
9281 # NAG Fortran compiler
9282 lt_prog_compiler_wl='-Wl,-Wl,,'
9283 lt_prog_compiler_pic='-PIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 ;;
9286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group compilers (*not* the Pentium gcc compiler,
9288 # which looks to be a dead project)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-fpic'
9291 lt_prog_compiler_static='-Bstatic'
9292 ;;
9293 ccc*)
9294 lt_prog_compiler_wl='-Wl,'
9295 # All Alpha code is PIC.
9296 lt_prog_compiler_static='-non_shared'
9297 ;;
9298 xl* | bgxl* | bgf* | mpixl*)
9299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9300 lt_prog_compiler_wl='-Wl,'
9301 lt_prog_compiler_pic='-qpic'
9302 lt_prog_compiler_static='-qstaticlink'
9303 ;;
9304 *)
9305 case `$CC -V 2>&1 | sed 5q` in
9306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-Bstatic'
9310 lt_prog_compiler_wl=''
9311 ;;
9312 *Sun\ F* | *Sun*Fortran*)
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-Bstatic'
9315 lt_prog_compiler_wl='-Qoption ld '
9316 ;;
9317 *Sun\ C*)
9318 # Sun C 5.9
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 lt_prog_compiler_wl='-Wl,'
9322 ;;
9323 *Intel*\ [CF]*Compiler*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-fPIC'
9326 lt_prog_compiler_static='-static'
9327 ;;
9328 *Portland\ Group*)
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_pic='-fpic'
9331 lt_prog_compiler_static='-Bstatic'
9332 ;;
9333 esac
9334 ;;
9335 esac
9336 ;;
9337
9338 newsos6)
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-Bstatic'
9341 ;;
9342
9343 *nto* | *qnx*)
9344 # QNX uses GNU C++, but need to define -shared option too, otherwise
9345 # it will coredump.
9346 lt_prog_compiler_pic='-fPIC -shared'
9347 ;;
9348
9349 osf3* | osf4* | osf5*)
9350 lt_prog_compiler_wl='-Wl,'
9351 # All OSF/1 code is PIC.
9352 lt_prog_compiler_static='-non_shared'
9353 ;;
9354
9355 rdos*)
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9358
9359 solaris*)
9360 lt_prog_compiler_pic='-KPIC'
9361 lt_prog_compiler_static='-Bstatic'
9362 case $cc_basename in
9363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9364 lt_prog_compiler_wl='-Qoption ld ';;
9365 *)
9366 lt_prog_compiler_wl='-Wl,';;
9367 esac
9368 ;;
9369
9370 sunos4*)
9371 lt_prog_compiler_wl='-Qoption ld '
9372 lt_prog_compiler_pic='-PIC'
9373 lt_prog_compiler_static='-Bstatic'
9374 ;;
9375
9376 sysv4 | sysv4.2uw2* | sysv4.3*)
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_pic='-KPIC'
9379 lt_prog_compiler_static='-Bstatic'
9380 ;;
9381
9382 sysv4*MP*)
9383 if test -d /usr/nec ;then
9384 lt_prog_compiler_pic='-Kconform_pic'
9385 lt_prog_compiler_static='-Bstatic'
9386 fi
9387 ;;
9388
9389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='-KPIC'
9392 lt_prog_compiler_static='-Bstatic'
9393 ;;
9394
9395 unicos*)
9396 lt_prog_compiler_wl='-Wl,'
9397 lt_prog_compiler_can_build_shared=no
9398 ;;
9399
9400 uts4*)
9401 lt_prog_compiler_pic='-pic'
9402 lt_prog_compiler_static='-Bstatic'
9403 ;;
9404
9405 *)
9406 lt_prog_compiler_can_build_shared=no
9407 ;;
9408 esac
9409 fi
9410
9411 case $host_os in
9412 # For platforms which do not support PIC, -DPIC is meaningless:
9413 *djgpp*)
9414 lt_prog_compiler_pic=
9415 ;;
9416 *)
9417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9418 ;;
9419 esac
9420
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9423 if ${lt_cv_prog_compiler_pic+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9427 fi
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9429 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9430 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9431
9432 #
9433 # Check to make sure the PIC flag actually works.
9434 #
9435 if test -n "$lt_prog_compiler_pic"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9437 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9438 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_prog_compiler_pic_works=no
9442 ac_outfile=conftest.$ac_objext
9443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9445 # Insert the option either (1) after the last *FLAGS variable, or
9446 # (2) before a word containing "conftest.", or (3) at the end.
9447 # Note that $ac_compile itself does not contain backslashes and begins
9448 # with a dollar sign (not a hyphen), so the echo should work correctly.
9449 # The option is referenced via a variable to avoid confusing sed.
9450 lt_compile=`echo "$ac_compile" | $SED \
9451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9453 -e 's:$: $lt_compiler_flag:'`
9454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9455 (eval "$lt_compile" 2>conftest.err)
9456 ac_status=$?
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 if (exit $ac_status) && test -s "$ac_outfile"; then
9460 # The compiler can only warn and ignore the option if not recognized
9461 # So say no if there are warnings other than the usual output.
9462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9465 lt_cv_prog_compiler_pic_works=yes
9466 fi
9467 fi
9468 $RM -r conftest*
9469
9470 fi
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9472 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9473
9474 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9475 case $lt_prog_compiler_pic in
9476 "" | " "*) ;;
9477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9478 esac
9479 else
9480 lt_prog_compiler_pic=
9481 lt_prog_compiler_can_build_shared=no
9482 fi
9483
9484 fi
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496 #
9497 # Check to make sure the static flag actually works.
9498 #
9499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9502 if ${lt_cv_prog_compiler_static_works+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 lt_cv_prog_compiler_static_works=no
9506 save_LDFLAGS="$LDFLAGS"
9507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9510 # The linker can only warn and ignore the option if not recognized
9511 # So say no if there are warnings
9512 if test -s conftest.err; then
9513 # Append any errors to the config.log.
9514 cat conftest.err 1>&5
9515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9517 if diff conftest.exp conftest.er2 >/dev/null; then
9518 lt_cv_prog_compiler_static_works=yes
9519 fi
9520 else
9521 lt_cv_prog_compiler_static_works=yes
9522 fi
9523 fi
9524 $RM -r conftest*
9525 LDFLAGS="$save_LDFLAGS"
9526
9527 fi
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9530
9531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9532 :
9533 else
9534 lt_prog_compiler_static=
9535 fi
9536
9537
9538
9539
9540
9541
9542
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9545 if ${lt_cv_prog_compiler_c_o+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 lt_cv_prog_compiler_c_o=no
9549 $RM -r conftest 2>/dev/null
9550 mkdir conftest
9551 cd conftest
9552 mkdir out
9553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554
9555 lt_compiler_flag="-o out/conftest2.$ac_objext"
9556 # Insert the option either (1) after the last *FLAGS variable, or
9557 # (2) before a word containing "conftest.", or (3) at the end.
9558 # Note that $ac_compile itself does not contain backslashes and begins
9559 # with a dollar sign (not a hyphen), so the echo should work correctly.
9560 lt_compile=`echo "$ac_compile" | $SED \
9561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9563 -e 's:$: $lt_compiler_flag:'`
9564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9565 (eval "$lt_compile" 2>out/conftest.err)
9566 ac_status=$?
9567 cat out/conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9570 then
9571 # The compiler can only warn and ignore the option if not recognized
9572 # So say no if there are warnings
9573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9576 lt_cv_prog_compiler_c_o=yes
9577 fi
9578 fi
9579 chmod u+w . 2>&5
9580 $RM -r conftest*
9581 # SGI C++ compiler will create directory out/ii_files/ for
9582 # template instantiation
9583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9584 $RM out/* && rmdir out
9585 cd ..
9586 $RM -r conftest
9587 $RM -r conftest*
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9592
9593
9594
9595
9596
9597
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9600 if ${lt_cv_prog_compiler_c_o+:} false; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 lt_cv_prog_compiler_c_o=no
9604 $RM -r conftest 2>/dev/null
9605 mkdir conftest
9606 cd conftest
9607 mkdir out
9608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9609
9610 lt_compiler_flag="-o out/conftest2.$ac_objext"
9611 # Insert the option either (1) after the last *FLAGS variable, or
9612 # (2) before a word containing "conftest.", or (3) at the end.
9613 # Note that $ac_compile itself does not contain backslashes and begins
9614 # with a dollar sign (not a hyphen), so the echo should work correctly.
9615 lt_compile=`echo "$ac_compile" | $SED \
9616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9618 -e 's:$: $lt_compiler_flag:'`
9619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9620 (eval "$lt_compile" 2>out/conftest.err)
9621 ac_status=$?
9622 cat out/conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9625 then
9626 # The compiler can only warn and ignore the option if not recognized
9627 # So say no if there are warnings
9628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9631 lt_cv_prog_compiler_c_o=yes
9632 fi
9633 fi
9634 chmod u+w . 2>&5
9635 $RM -r conftest*
9636 # SGI C++ compiler will create directory out/ii_files/ for
9637 # template instantiation
9638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9639 $RM out/* && rmdir out
9640 cd ..
9641 $RM -r conftest
9642 $RM -r conftest*
9643
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9647
9648
9649
9650
9651 hard_links="nottested"
9652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9653 # do not overwrite the value of need_locks provided by the user
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9655 $as_echo_n "checking if we can lock with hard links... " >&6; }
9656 hard_links=yes
9657 $RM -r conftest*
9658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9659 touch conftest.a
9660 ln conftest.a conftest.b 2>&5 || hard_links=no
9661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9663 $as_echo "$hard_links" >&6; }
9664 if test "$hard_links" = no; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9667 need_locks=warn
9668 fi
9669 else
9670 need_locks=no
9671 fi
9672
9673
9674
9675
9676
9677
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9680
9681 runpath_var=
9682 allow_undefined_flag=
9683 always_export_symbols=no
9684 archive_cmds=
9685 archive_expsym_cmds=
9686 compiler_needs_object=no
9687 enable_shared_with_static_runtimes=no
9688 export_dynamic_flag_spec=
9689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9690 hardcode_automatic=no
9691 hardcode_direct=no
9692 hardcode_direct_absolute=no
9693 hardcode_libdir_flag_spec=
9694 hardcode_libdir_separator=
9695 hardcode_minus_L=no
9696 hardcode_shlibpath_var=unsupported
9697 inherit_rpath=no
9698 link_all_deplibs=unknown
9699 module_cmds=
9700 module_expsym_cmds=
9701 old_archive_from_new_cmds=
9702 old_archive_from_expsyms_cmds=
9703 thread_safe_flag_spec=
9704 whole_archive_flag_spec=
9705 # include_expsyms should be a list of space-separated symbols to be *always*
9706 # included in the symbol list
9707 include_expsyms=
9708 # exclude_expsyms can be an extended regexp of symbols to exclude
9709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9711 # as well as any symbol that contains `d'.
9712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9714 # platforms (ab)use it in PIC code, but their linkers get confused if
9715 # the symbol is explicitly referenced. Since portable code cannot
9716 # rely on this symbol name, it's probably fine to never include it in
9717 # preloaded symbol tables.
9718 # Exclude shared library initialization/finalization symbols.
9719 extract_expsyms_cmds=
9720
9721 case $host_os in
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9724 # When not using gcc, we currently assume that we are using
9725 # Microsoft Visual C++.
9726 if test "$GCC" != yes; then
9727 with_gnu_ld=no
9728 fi
9729 ;;
9730 interix*)
9731 # we just hope/assume this is gcc and not c89 (= MSVC++)
9732 with_gnu_ld=yes
9733 ;;
9734 openbsd*)
9735 with_gnu_ld=no
9736 ;;
9737 esac
9738
9739 ld_shlibs=yes
9740
9741 # On some targets, GNU ld is compatible enough with the native linker
9742 # that we're better off using the native interface for both.
9743 lt_use_gnu_ld_interface=no
9744 if test "$with_gnu_ld" = yes; then
9745 case $host_os in
9746 aix*)
9747 # The AIX port of GNU ld has always aspired to compatibility
9748 # with the native linker. However, as the warning in the GNU ld
9749 # block says, versions before 2.19.5* couldn't really create working
9750 # shared libraries, regardless of the interface used.
9751 case `$LD -v 2>&1` in
9752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9755 *)
9756 lt_use_gnu_ld_interface=yes
9757 ;;
9758 esac
9759 ;;
9760 *)
9761 lt_use_gnu_ld_interface=yes
9762 ;;
9763 esac
9764 fi
9765
9766 if test "$lt_use_gnu_ld_interface" = yes; then
9767 # If archive_cmds runs LD, not CC, wlarc should be empty
9768 wlarc='${wl}'
9769
9770 # Set some defaults for GNU ld with shared library support. These
9771 # are reset later if shared libraries are not supported. Putting them
9772 # here allows them to be overridden if necessary.
9773 runpath_var=LD_RUN_PATH
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 export_dynamic_flag_spec='${wl}--export-dynamic'
9776 # ancient GNU ld didn't support --whole-archive et. al.
9777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9779 else
9780 whole_archive_flag_spec=
9781 fi
9782 supports_anon_versioning=no
9783 case `$LD -v 2>&1` in
9784 *GNU\ gold*) supports_anon_versioning=yes ;;
9785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9788 *\ 2.11.*) ;; # other 2.11 versions
9789 *) supports_anon_versioning=yes ;;
9790 esac
9791
9792 # See if GNU ld supports shared libraries.
9793 case $host_os in
9794 aix[3-9]*)
9795 # On AIX/PPC, the GNU linker is very broken
9796 if test "$host_cpu" != ia64; then
9797 ld_shlibs=no
9798 cat <<_LT_EOF 1>&2
9799
9800 *** Warning: the GNU linker, at least up to release 2.19, is reported
9801 *** to be unable to reliably create shared libraries on AIX.
9802 *** Therefore, libtool is disabling shared libraries support. If you
9803 *** really care for shared libraries, you may want to install binutils
9804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9805 *** You will then need to restart the configuration process.
9806
9807 _LT_EOF
9808 fi
9809 ;;
9810
9811 amigaos*)
9812 case $host_cpu in
9813 powerpc)
9814 # see comment about AmigaOS4 .so support
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds=''
9817 ;;
9818 m68k)
9819 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)'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_minus_L=yes
9822 ;;
9823 esac
9824 ;;
9825
9826 beos*)
9827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9828 allow_undefined_flag=unsupported
9829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9830 # support --undefined. This deserves some investigation. FIXME
9831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832 else
9833 ld_shlibs=no
9834 fi
9835 ;;
9836
9837 cygwin* | mingw* | pw32* | cegcc*)
9838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9839 # as there is no search path for DLLs.
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 export_dynamic_flag_spec='${wl}--export-all-symbols'
9842 allow_undefined_flag=unsupported
9843 always_export_symbols=no
9844 enable_shared_with_static_runtimes=yes
9845 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'
9846 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9847
9848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9850 # If the export-symbols file already is a .def file (1st line
9851 # is EXPORTS), use it as is; otherwise, prepend...
9852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9853 cp $export_symbols $output_objdir/$soname.def;
9854 else
9855 echo EXPORTS > $output_objdir/$soname.def;
9856 cat $export_symbols >> $output_objdir/$soname.def;
9857 fi~
9858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9859 else
9860 ld_shlibs=no
9861 fi
9862 ;;
9863
9864 haiku*)
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 link_all_deplibs=yes
9867 ;;
9868
9869 interix[3-9]*)
9870 hardcode_direct=no
9871 hardcode_shlibpath_var=no
9872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873 export_dynamic_flag_spec='${wl}-E'
9874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9875 # Instead, shared libraries are loaded at an image base (0x10000000 by
9876 # default) and relocated if they conflict, which is a slow very memory
9877 # consuming and fragmenting process. To avoid this, we pick a random,
9878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9881 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'
9882 ;;
9883
9884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9885 tmp_diet=no
9886 if test "$host_os" = linux-dietlibc; then
9887 case $cc_basename in
9888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9889 esac
9890 fi
9891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9892 && test "$tmp_diet" = no
9893 then
9894 tmp_addflag=' $pic_flag'
9895 tmp_sharedflag='-shared'
9896 case $cc_basename,$host_cpu in
9897 pgcc*) # Portland Group C compiler
9898 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'
9899 tmp_addflag=' $pic_flag'
9900 ;;
9901 pgf77* | pgf90* | pgf95* | pgfortran*)
9902 # Portland Group f77 and f90 compilers
9903 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'
9904 tmp_addflag=' $pic_flag -Mnomain' ;;
9905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9906 tmp_addflag=' -i_dynamic' ;;
9907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9908 tmp_addflag=' -i_dynamic -nofor_main' ;;
9909 ifc* | ifort*) # Intel Fortran compiler
9910 tmp_addflag=' -nofor_main' ;;
9911 lf95*) # Lahey Fortran 8.1
9912 whole_archive_flag_spec=
9913 tmp_sharedflag='--shared' ;;
9914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9915 tmp_sharedflag='-qmkshrobj'
9916 tmp_addflag= ;;
9917 nvcc*) # Cuda Compiler Driver 2.2
9918 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'
9919 compiler_needs_object=yes
9920 ;;
9921 esac
9922 case `$CC -V 2>&1 | sed 5q` in
9923 *Sun\ C*) # Sun C 5.9
9924 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'
9925 compiler_needs_object=yes
9926 tmp_sharedflag='-G' ;;
9927 *Sun\ F*) # Sun Fortran 8.3
9928 tmp_sharedflag='-G' ;;
9929 esac
9930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931
9932 if test "x$supports_anon_versioning" = xyes; then
9933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9935 echo "local: *; };" >> $output_objdir/$libname.ver~
9936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9937 fi
9938
9939 case $cc_basename in
9940 xlf* | bgf* | bgxlf* | mpixlf*)
9941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9944 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9945 if test "x$supports_anon_versioning" = xyes; then
9946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9948 echo "local: *; };" >> $output_objdir/$libname.ver~
9949 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9950 fi
9951 ;;
9952 esac
9953 else
9954 ld_shlibs=no
9955 fi
9956 ;;
9957
9958 netbsd*)
9959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9961 wlarc=
9962 else
9963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9965 fi
9966 ;;
9967
9968 solaris*)
9969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9970 ld_shlibs=no
9971 cat <<_LT_EOF 1>&2
9972
9973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9974 *** create shared libraries on Solaris systems. Therefore, libtool
9975 *** is disabling shared libraries support. We urge you to upgrade GNU
9976 *** binutils to release 2.9.1 or newer. Another option is to modify
9977 *** your PATH or compiler configuration so that the native linker is
9978 *** used, and then restart.
9979
9980 _LT_EOF
9981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 else
9985 ld_shlibs=no
9986 fi
9987 ;;
9988
9989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9990 case `$LD -v 2>&1` in
9991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9992 ld_shlibs=no
9993 cat <<_LT_EOF 1>&2
9994
9995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9996 *** reliably create shared libraries on SCO systems. Therefore, libtool
9997 *** is disabling shared libraries support. We urge you to upgrade GNU
9998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9999 *** your PATH or compiler configuration so that the native linker is
10000 *** used, and then restart.
10001
10002 _LT_EOF
10003 ;;
10004 *)
10005 # For security reasons, it is highly recommended that you always
10006 # use absolute paths for naming shared libraries, and exclude the
10007 # DT_RUNPATH tag from executables and libraries. But doing so
10008 # requires that you compile everything twice, which is a pain.
10009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10013 else
10014 ld_shlibs=no
10015 fi
10016 ;;
10017 esac
10018 ;;
10019
10020 sunos4*)
10021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10022 wlarc=
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10025 ;;
10026
10027 *)
10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10031 else
10032 ld_shlibs=no
10033 fi
10034 ;;
10035 esac
10036
10037 if test "$ld_shlibs" = no; then
10038 runpath_var=
10039 hardcode_libdir_flag_spec=
10040 export_dynamic_flag_spec=
10041 whole_archive_flag_spec=
10042 fi
10043 else
10044 # PORTME fill in a description of your system's linker (not GNU ld)
10045 case $host_os in
10046 aix3*)
10047 allow_undefined_flag=unsupported
10048 always_export_symbols=yes
10049 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'
10050 # Note: this linker hardcodes the directories in LIBPATH if there
10051 # are no directories specified by -L.
10052 hardcode_minus_L=yes
10053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10054 # Neither direct hardcoding nor static linking is supported with a
10055 # broken collect2.
10056 hardcode_direct=unsupported
10057 fi
10058 ;;
10059
10060 aix[4-9]*)
10061 if test "$host_cpu" = ia64; then
10062 # On IA64, the linker does run time linking by default, so we don't
10063 # have to do anything special.
10064 aix_use_runtimelinking=no
10065 exp_sym_flag='-Bexport'
10066 no_entry_flag=""
10067 else
10068 # If we're using GNU nm, then we don't want the "-C" option.
10069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10070 # Also, AIX nm treats weak defined symbols like other global
10071 # defined symbols, whereas GNU nm marks them as "W".
10072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10073 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'
10074 else
10075 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'
10076 fi
10077 aix_use_runtimelinking=no
10078
10079 # Test if we are trying to use run time linking or normal
10080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10081 # need to do runtime linking.
10082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10083 for ld_flag in $LDFLAGS; do
10084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10085 aix_use_runtimelinking=yes
10086 break
10087 fi
10088 done
10089 ;;
10090 esac
10091
10092 exp_sym_flag='-bexport'
10093 no_entry_flag='-bnoentry'
10094 fi
10095
10096 # When large executables or shared objects are built, AIX ld can
10097 # have problems creating the table of contents. If linking a library
10098 # or program results in "error TOC overflow" add -mminimal-toc to
10099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10101
10102 archive_cmds=''
10103 hardcode_direct=yes
10104 hardcode_direct_absolute=yes
10105 hardcode_libdir_separator=':'
10106 link_all_deplibs=yes
10107 file_list_spec='${wl}-f,'
10108
10109 if test "$GCC" = yes; then
10110 case $host_os in aix4.[012]|aix4.[012].*)
10111 # We only want to do this on AIX 4.2 and lower, the check
10112 # below for broken collect2 doesn't work under 4.3+
10113 collect2name=`${CC} -print-prog-name=collect2`
10114 if test -f "$collect2name" &&
10115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10116 then
10117 # We have reworked collect2
10118 :
10119 else
10120 # We have old collect2
10121 hardcode_direct=unsupported
10122 # It fails to find uninstalled libraries when the uninstalled
10123 # path is not listed in the libpath. Setting hardcode_minus_L
10124 # to unsupported forces relinking
10125 hardcode_minus_L=yes
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_libdir_separator=
10128 fi
10129 ;;
10130 esac
10131 shared_flag='-shared'
10132 if test "$aix_use_runtimelinking" = yes; then
10133 shared_flag="$shared_flag "'${wl}-G'
10134 fi
10135 else
10136 # not using gcc
10137 if test "$host_cpu" = ia64; then
10138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10139 # chokes on -Wl,-G. The following line is correct:
10140 shared_flag='-G'
10141 else
10142 if test "$aix_use_runtimelinking" = yes; then
10143 shared_flag='${wl}-G'
10144 else
10145 shared_flag='${wl}-bM:SRE'
10146 fi
10147 fi
10148 fi
10149
10150 export_dynamic_flag_spec='${wl}-bexpall'
10151 # It seems that -bexpall does not export symbols beginning with
10152 # underscore (_), so it is better to generate a list of symbols to export.
10153 always_export_symbols=yes
10154 if test "$aix_use_runtimelinking" = yes; then
10155 # Warning - without using the other runtime loading flags (-brtl),
10156 # -berok will link without error, but may produce a broken library.
10157 allow_undefined_flag='-berok'
10158 # Determine the default libpath from the value encoded in an
10159 # empty executable.
10160 if test "${lt_cv_aix_libpath+set}" = set; then
10161 aix_libpath=$lt_cv_aix_libpath
10162 else
10163 if ${lt_cv_aix_libpath_+:} false; then :
10164 $as_echo_n "(cached) " >&6
10165 else
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168
10169 int
10170 main ()
10171 {
10172
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178
10179 lt_aix_libpath_sed='
10180 /Import File Strings/,/^$/ {
10181 /^0/ {
10182 s/^0 *\([^ ]*\) *$/\1/
10183 p
10184 }
10185 }'
10186 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10187 # Check for a 64-bit object if we didn't find anything.
10188 if test -z "$lt_cv_aix_libpath_"; then
10189 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10190 fi
10191 fi
10192 rm -f core conftest.err conftest.$ac_objext \
10193 conftest$ac_exeext conftest.$ac_ext
10194 if test -z "$lt_cv_aix_libpath_"; then
10195 lt_cv_aix_libpath_="/usr/lib:/lib"
10196 fi
10197
10198 fi
10199
10200 aix_libpath=$lt_cv_aix_libpath_
10201 fi
10202
10203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10204 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"
10205 else
10206 if test "$host_cpu" = ia64; then
10207 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10208 allow_undefined_flag="-z nodefs"
10209 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"
10210 else
10211 # Determine the default libpath from the value encoded in an
10212 # empty executable.
10213 if test "${lt_cv_aix_libpath+set}" = set; then
10214 aix_libpath=$lt_cv_aix_libpath
10215 else
10216 if ${lt_cv_aix_libpath_+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221
10222 int
10223 main ()
10224 {
10225
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then :
10231
10232 lt_aix_libpath_sed='
10233 /Import File Strings/,/^$/ {
10234 /^0/ {
10235 s/^0 *\([^ ]*\) *$/\1/
10236 p
10237 }
10238 }'
10239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10240 # Check for a 64-bit object if we didn't find anything.
10241 if test -z "$lt_cv_aix_libpath_"; then
10242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10243 fi
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 if test -z "$lt_cv_aix_libpath_"; then
10248 lt_cv_aix_libpath_="/usr/lib:/lib"
10249 fi
10250
10251 fi
10252
10253 aix_libpath=$lt_cv_aix_libpath_
10254 fi
10255
10256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10257 # Warning - without using the other run time loading flags,
10258 # -berok will link without error, but may produce a broken library.
10259 no_undefined_flag=' ${wl}-bernotok'
10260 allow_undefined_flag=' ${wl}-berok'
10261 if test "$with_gnu_ld" = yes; then
10262 # We only use this code for GNU lds that support --whole-archive.
10263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10264 else
10265 # Exported symbols can be pulled into shared objects from archives
10266 whole_archive_flag_spec='$convenience'
10267 fi
10268 archive_cmds_need_lc=yes
10269 # This is similar to how AIX traditionally builds its shared libraries.
10270 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'
10271 fi
10272 fi
10273 ;;
10274
10275 amigaos*)
10276 case $host_cpu in
10277 powerpc)
10278 # see comment about AmigaOS4 .so support
10279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10280 archive_expsym_cmds=''
10281 ;;
10282 m68k)
10283 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)'
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_minus_L=yes
10286 ;;
10287 esac
10288 ;;
10289
10290 bsdi[45]*)
10291 export_dynamic_flag_spec=-rdynamic
10292 ;;
10293
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 # When not using gcc, we currently assume that we are using
10296 # Microsoft Visual C++.
10297 # hardcode_libdir_flag_spec is actually meaningless, as there is
10298 # no search path for DLLs.
10299 case $cc_basename in
10300 cl*)
10301 # Native MSVC
10302 hardcode_libdir_flag_spec=' '
10303 allow_undefined_flag=unsupported
10304 always_export_symbols=yes
10305 file_list_spec='@'
10306 # Tell ltmain to make .lib files, not .a files.
10307 libext=lib
10308 # Tell ltmain to make .dll files, not .so files.
10309 shrext_cmds=".dll"
10310 # FIXME: Setting linknames here is a bad hack.
10311 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10313 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10314 else
10315 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10316 fi~
10317 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10318 linknames='
10319 # The linker will not automatically build a static lib if we build a DLL.
10320 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10321 enable_shared_with_static_runtimes=yes
10322 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10324 # Don't use ranlib
10325 old_postinstall_cmds='chmod 644 $oldlib'
10326 postlink_cmds='lt_outputfile="@OUTPUT@"~
10327 lt_tool_outputfile="@TOOL_OUTPUT@"~
10328 case $lt_outputfile in
10329 *.exe|*.EXE) ;;
10330 *)
10331 lt_outputfile="$lt_outputfile.exe"
10332 lt_tool_outputfile="$lt_tool_outputfile.exe"
10333 ;;
10334 esac~
10335 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10336 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10337 $RM "$lt_outputfile.manifest";
10338 fi'
10339 ;;
10340 *)
10341 # Assume MSVC wrapper
10342 hardcode_libdir_flag_spec=' '
10343 allow_undefined_flag=unsupported
10344 # Tell ltmain to make .lib files, not .a files.
10345 libext=lib
10346 # Tell ltmain to make .dll files, not .so files.
10347 shrext_cmds=".dll"
10348 # FIXME: Setting linknames here is a bad hack.
10349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10350 # The linker will automatically build a .lib file if we build a DLL.
10351 old_archive_from_new_cmds='true'
10352 # FIXME: Should let the user specify the lib program.
10353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10354 enable_shared_with_static_runtimes=yes
10355 ;;
10356 esac
10357 ;;
10358
10359 darwin* | rhapsody*)
10360
10361
10362 archive_cmds_need_lc=no
10363 hardcode_direct=no
10364 hardcode_automatic=yes
10365 hardcode_shlibpath_var=unsupported
10366 if test "$lt_cv_ld_force_load" = "yes"; then
10367 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\"`'
10368
10369 else
10370 whole_archive_flag_spec=''
10371 fi
10372 link_all_deplibs=yes
10373 allow_undefined_flag="$_lt_dar_allow_undefined"
10374 case $cc_basename in
10375 ifort*) _lt_dar_can_shared=yes ;;
10376 *) _lt_dar_can_shared=$GCC ;;
10377 esac
10378 if test "$_lt_dar_can_shared" = "yes"; then
10379 output_verbose_link_cmd=func_echo_all
10380 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10381 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10382 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}"
10383 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}"
10384
10385 else
10386 ld_shlibs=no
10387 fi
10388
10389 ;;
10390
10391 dgux*)
10392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_libdir_flag_spec='-L$libdir'
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10398 # support. Future versions do this automatically, but an explicit c++rt0.o
10399 # does not break anything, and helps significantly (at the cost of a little
10400 # extra space).
10401 freebsd2.2*)
10402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10403 hardcode_libdir_flag_spec='-R$libdir'
10404 hardcode_direct=yes
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10409 freebsd2.*)
10410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10411 hardcode_direct=yes
10412 hardcode_minus_L=yes
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10417 freebsd* | dragonfly*)
10418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10419 hardcode_libdir_flag_spec='-R$libdir'
10420 hardcode_direct=yes
10421 hardcode_shlibpath_var=no
10422 ;;
10423
10424 hpux9*)
10425 if test "$GCC" = yes; then
10426 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'
10427 else
10428 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'
10429 fi
10430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10431 hardcode_libdir_separator=:
10432 hardcode_direct=yes
10433
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L=yes
10437 export_dynamic_flag_spec='${wl}-E'
10438 ;;
10439
10440 hpux10*)
10441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10443 else
10444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10445 fi
10446 if test "$with_gnu_ld" = no; then
10447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_direct=yes
10450 hardcode_direct_absolute=yes
10451 export_dynamic_flag_spec='${wl}-E'
10452 # hardcode_minus_L: Not really in the search PATH,
10453 # but as the default location of the library.
10454 hardcode_minus_L=yes
10455 fi
10456 ;;
10457
10458 hpux11*)
10459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10460 case $host_cpu in
10461 hppa*64*)
10462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 ia64*)
10465 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 *)
10468 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 esac
10471 else
10472 case $host_cpu in
10473 hppa*64*)
10474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 ;;
10476 ia64*)
10477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10478 ;;
10479 *)
10480
10481 # Older versions of the 11.00 compiler do not understand -b yet
10482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10484 $as_echo_n "checking if $CC understands -b... " >&6; }
10485 if ${lt_cv_prog_compiler__b+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 lt_cv_prog_compiler__b=no
10489 save_LDFLAGS="$LDFLAGS"
10490 LDFLAGS="$LDFLAGS -b"
10491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10493 # The linker can only warn and ignore the option if not recognized
10494 # So say no if there are warnings
10495 if test -s conftest.err; then
10496 # Append any errors to the config.log.
10497 cat conftest.err 1>&5
10498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10500 if diff conftest.exp conftest.er2 >/dev/null; then
10501 lt_cv_prog_compiler__b=yes
10502 fi
10503 else
10504 lt_cv_prog_compiler__b=yes
10505 fi
10506 fi
10507 $RM -r conftest*
10508 LDFLAGS="$save_LDFLAGS"
10509
10510 fi
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10512 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10513
10514 if test x"$lt_cv_prog_compiler__b" = xyes; then
10515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10516 else
10517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10518 fi
10519
10520 ;;
10521 esac
10522 fi
10523 if test "$with_gnu_ld" = no; then
10524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10525 hardcode_libdir_separator=:
10526
10527 case $host_cpu in
10528 hppa*64*|ia64*)
10529 hardcode_direct=no
10530 hardcode_shlibpath_var=no
10531 ;;
10532 *)
10533 hardcode_direct=yes
10534 hardcode_direct_absolute=yes
10535 export_dynamic_flag_spec='${wl}-E'
10536
10537 # hardcode_minus_L: Not really in the search PATH,
10538 # but as the default location of the library.
10539 hardcode_minus_L=yes
10540 ;;
10541 esac
10542 fi
10543 ;;
10544
10545 irix5* | irix6* | nonstopux*)
10546 if test "$GCC" = yes; then
10547 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'
10548 # Try to use the -exported_symbol ld option, if it does not
10549 # work, assume that -exports_file does not work either and
10550 # implicitly export all symbols.
10551 # This should be the same for all languages, so no per-tag cache variable.
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10553 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10554 if ${lt_cv_irix_exported_symbol+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 save_LDFLAGS="$LDFLAGS"
10558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 int foo (void) { return 0; }
10562 _ACEOF
10563 if ac_fn_c_try_link "$LINENO"; then :
10564 lt_cv_irix_exported_symbol=yes
10565 else
10566 lt_cv_irix_exported_symbol=no
10567 fi
10568 rm -f core conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LDFLAGS="$save_LDFLAGS"
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10573 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10574 if test "$lt_cv_irix_exported_symbol" = yes; then
10575 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'
10576 fi
10577 else
10578 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'
10579 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'
10580 fi
10581 archive_cmds_need_lc='no'
10582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10583 hardcode_libdir_separator=:
10584 inherit_rpath=yes
10585 link_all_deplibs=yes
10586 ;;
10587
10588 netbsd*)
10589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10591 else
10592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10593 fi
10594 hardcode_libdir_flag_spec='-R$libdir'
10595 hardcode_direct=yes
10596 hardcode_shlibpath_var=no
10597 ;;
10598
10599 newsos6)
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_direct=yes
10602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10603 hardcode_libdir_separator=:
10604 hardcode_shlibpath_var=no
10605 ;;
10606
10607 *nto* | *qnx*)
10608 ;;
10609
10610 openbsd*)
10611 if test -f /usr/libexec/ld.so; then
10612 hardcode_direct=yes
10613 hardcode_shlibpath_var=no
10614 hardcode_direct_absolute=yes
10615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10619 export_dynamic_flag_spec='${wl}-E'
10620 else
10621 case $host_os in
10622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10624 hardcode_libdir_flag_spec='-R$libdir'
10625 ;;
10626 *)
10627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10629 ;;
10630 esac
10631 fi
10632 else
10633 ld_shlibs=no
10634 fi
10635 ;;
10636
10637 os2*)
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 hardcode_minus_L=yes
10640 allow_undefined_flag=unsupported
10641 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'
10642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10643 ;;
10644
10645 osf3*)
10646 if test "$GCC" = yes; then
10647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10648 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'
10649 else
10650 allow_undefined_flag=' -expect_unresolved \*'
10651 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'
10652 fi
10653 archive_cmds_need_lc='no'
10654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator=:
10656 ;;
10657
10658 osf4* | osf5*) # as osf3* with the addition of -msym flag
10659 if test "$GCC" = yes; then
10660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10661 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'
10662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10663 else
10664 allow_undefined_flag=' -expect_unresolved \*'
10665 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'
10666 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~
10667 $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'
10668
10669 # Both c and cxx compiler support -rpath directly
10670 hardcode_libdir_flag_spec='-rpath $libdir'
10671 fi
10672 archive_cmds_need_lc='no'
10673 hardcode_libdir_separator=:
10674 ;;
10675
10676 solaris*)
10677 no_undefined_flag=' -z defs'
10678 if test "$GCC" = yes; then
10679 wlarc='${wl}'
10680 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10682 $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'
10683 else
10684 case `$CC -V 2>&1` in
10685 *"Compilers 5.0"*)
10686 wlarc=''
10687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10690 ;;
10691 *)
10692 wlarc='${wl}'
10693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10696 ;;
10697 esac
10698 fi
10699 hardcode_libdir_flag_spec='-R$libdir'
10700 hardcode_shlibpath_var=no
10701 case $host_os in
10702 solaris2.[0-5] | solaris2.[0-5].*) ;;
10703 *)
10704 # The compiler driver will combine and reorder linker options,
10705 # but understands `-z linker_flag'. GCC discards it without `$wl',
10706 # but is careful enough not to reorder.
10707 # Supported since Solaris 2.6 (maybe 2.5.1?)
10708 if test "$GCC" = yes; then
10709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10710 else
10711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10712 fi
10713 ;;
10714 esac
10715 link_all_deplibs=yes
10716 ;;
10717
10718 sunos4*)
10719 if test "x$host_vendor" = xsequent; then
10720 # Use $CC to link under sequent, because it throws in some extra .o
10721 # files that make .init and .fini sections work.
10722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10723 else
10724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10725 fi
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 hardcode_direct=yes
10728 hardcode_minus_L=yes
10729 hardcode_shlibpath_var=no
10730 ;;
10731
10732 sysv4)
10733 case $host_vendor in
10734 sni)
10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736 hardcode_direct=yes # is this really true???
10737 ;;
10738 siemens)
10739 ## LD is ld it makes a PLAMLIB
10740 ## CC just makes a GrossModule.
10741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10742 reload_cmds='$CC -r -o $output$reload_objs'
10743 hardcode_direct=no
10744 ;;
10745 motorola)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10748 ;;
10749 esac
10750 runpath_var='LD_RUN_PATH'
10751 hardcode_shlibpath_var=no
10752 ;;
10753
10754 sysv4.3*)
10755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_shlibpath_var=no
10757 export_dynamic_flag_spec='-Bexport'
10758 ;;
10759
10760 sysv4*MP*)
10761 if test -d /usr/nec; then
10762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_shlibpath_var=no
10764 runpath_var=LD_RUN_PATH
10765 hardcode_runpath_var=yes
10766 ld_shlibs=yes
10767 fi
10768 ;;
10769
10770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10771 no_undefined_flag='${wl}-z,text'
10772 archive_cmds_need_lc=no
10773 hardcode_shlibpath_var=no
10774 runpath_var='LD_RUN_PATH'
10775
10776 if test "$GCC" = yes; then
10777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10779 else
10780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10782 fi
10783 ;;
10784
10785 sysv5* | sco3.2v5* | sco5v6*)
10786 # Note: We can NOT use -z defs as we might desire, because we do not
10787 # link with -lc, and that would cause any symbols used from libc to
10788 # always be unresolved, which means just about no library would
10789 # ever link correctly. If we're not using GNU ld we use -z text
10790 # though, which does catch some bad symbols but isn't as heavy-handed
10791 # as -z defs.
10792 no_undefined_flag='${wl}-z,text'
10793 allow_undefined_flag='${wl}-z,nodefs'
10794 archive_cmds_need_lc=no
10795 hardcode_shlibpath_var=no
10796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10797 hardcode_libdir_separator=':'
10798 link_all_deplibs=yes
10799 export_dynamic_flag_spec='${wl}-Bexport'
10800 runpath_var='LD_RUN_PATH'
10801
10802 if test "$GCC" = yes; then
10803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10805 else
10806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10808 fi
10809 ;;
10810
10811 uts4*)
10812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_libdir_flag_spec='-L$libdir'
10814 hardcode_shlibpath_var=no
10815 ;;
10816
10817 *)
10818 ld_shlibs=no
10819 ;;
10820 esac
10821
10822 if test x$host_vendor = xsni; then
10823 case $host in
10824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10825 export_dynamic_flag_spec='${wl}-Blargedynsym'
10826 ;;
10827 esac
10828 fi
10829 fi
10830
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10832 $as_echo "$ld_shlibs" >&6; }
10833 test "$ld_shlibs" = no && can_build_shared=no
10834
10835 with_gnu_ld=$with_gnu_ld
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851 #
10852 # Do we need to explicitly link libc?
10853 #
10854 case "x$archive_cmds_need_lc" in
10855 x|xyes)
10856 # Assume -lc should be added
10857 archive_cmds_need_lc=yes
10858
10859 if test "$enable_shared" = yes && test "$GCC" = yes; then
10860 case $archive_cmds in
10861 *'~'*)
10862 # FIXME: we may have to deal with multi-command sequences.
10863 ;;
10864 '$CC '*)
10865 # Test whether the compiler implicitly links with -lc since on some
10866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10867 # to ld, don't add -lc before -lgcc.
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10869 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10870 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 $RM -r conftest*
10874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10875
10876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10877 (eval $ac_compile) 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; } 2>conftest.err; then
10881 soname=conftest
10882 lib=conftest
10883 libobjs=conftest.$ac_objext
10884 deplibs=
10885 wl=$lt_prog_compiler_wl
10886 pic_flag=$lt_prog_compiler_pic
10887 compiler_flags=-v
10888 linker_flags=-v
10889 verstring=
10890 output_objdir=.
10891 libname=conftest
10892 lt_save_allow_undefined_flag=$allow_undefined_flag
10893 allow_undefined_flag=
10894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10896 ac_status=$?
10897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10898 test $ac_status = 0; }
10899 then
10900 lt_cv_archive_cmds_need_lc=no
10901 else
10902 lt_cv_archive_cmds_need_lc=yes
10903 fi
10904 allow_undefined_flag=$lt_save_allow_undefined_flag
10905 else
10906 cat conftest.err 1>&5
10907 fi
10908 $RM -r conftest*
10909
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10912 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10914 ;;
10915 esac
10916 fi
10917 ;;
10918 esac
10919
10920
10921
10922
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11072 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11073
11074 if test "$GCC" = yes; then
11075 case $host_os in
11076 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11077 *) lt_awk_arg="/^libraries:/" ;;
11078 esac
11079 case $host_os in
11080 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11081 *) lt_sed_strip_eq="s,=/,/,g" ;;
11082 esac
11083 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11084 case $lt_search_path_spec in
11085 *\;*)
11086 # if the path contains ";" then we assume it to be the separator
11087 # otherwise default to the standard path separator (i.e. ":") - it is
11088 # assumed that no part of a normal pathname contains ";" but that should
11089 # okay in the real world where ";" in dirpaths is itself problematic.
11090 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11091 ;;
11092 *)
11093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11094 ;;
11095 esac
11096 # Ok, now we have the path, separated by spaces, we can step through it
11097 # and add multilib dir if necessary.
11098 lt_tmp_lt_search_path_spec=
11099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11100 for lt_sys_path in $lt_search_path_spec; do
11101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11103 else
11104 test -d "$lt_sys_path" && \
11105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11106 fi
11107 done
11108 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11109 BEGIN {RS=" "; FS="/|\n";} {
11110 lt_foo="";
11111 lt_count=0;
11112 for (lt_i = NF; lt_i > 0; lt_i--) {
11113 if ($lt_i != "" && $lt_i != ".") {
11114 if ($lt_i == "..") {
11115 lt_count++;
11116 } else {
11117 if (lt_count == 0) {
11118 lt_foo="/" $lt_i lt_foo;
11119 } else {
11120 lt_count--;
11121 }
11122 }
11123 }
11124 }
11125 if (lt_foo != "") { lt_freq[lt_foo]++; }
11126 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11127 }'`
11128 # AWK program above erroneously prepends '/' to C:/dos/paths
11129 # for these hosts.
11130 case $host_os in
11131 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11132 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11133 esac
11134 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11135 else
11136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137 fi
11138 library_names_spec=
11139 libname_spec='lib$name'
11140 soname_spec=
11141 shrext_cmds=".so"
11142 postinstall_cmds=
11143 postuninstall_cmds=
11144 finish_cmds=
11145 finish_eval=
11146 shlibpath_var=
11147 shlibpath_overrides_runpath=unknown
11148 version_type=none
11149 dynamic_linker="$host_os ld.so"
11150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11151 need_lib_prefix=unknown
11152 hardcode_into_libs=no
11153
11154 # when you set need_version to no, make sure it does not cause -set_version
11155 # flags to be left without arguments
11156 need_version=unknown
11157
11158 case $host_os in
11159 aix3*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11162 shlibpath_var=LIBPATH
11163
11164 # AIX 3 has no versioning support, so we append a major version to the name.
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 ;;
11167
11168 aix[4-9]*)
11169 version_type=linux # correct to gnu/linux during the next big refactor
11170 need_lib_prefix=no
11171 need_version=no
11172 hardcode_into_libs=yes
11173 if test "$host_cpu" = ia64; then
11174 # AIX 5 supports IA64
11175 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 else
11178 # With GCC up to 2.95.x, collect2 would create an import file
11179 # for dependence libraries. The import file would start with
11180 # the line `#! .'. This would cause the generated library to
11181 # depend on `.', always an invalid library. This was fixed in
11182 # development snapshots of GCC prior to 3.0.
11183 case $host_os in
11184 aix4 | aix4.[01] | aix4.[01].*)
11185 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11186 echo ' yes '
11187 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11188 :
11189 else
11190 can_build_shared=no
11191 fi
11192 ;;
11193 esac
11194 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11195 # soname into executable. Probably we can add versioning support to
11196 # collect2, so additional links can be useful in future.
11197 if test "$aix_use_runtimelinking" = yes; then
11198 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11199 # instead of lib<name>.a to let people know that these are not
11200 # typical AIX shared libraries.
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 else
11203 # We preserve .a as extension for shared libraries through AIX4.2
11204 # and later when we are not doing run time linking.
11205 library_names_spec='${libname}${release}.a $libname.a'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 fi
11208 shlibpath_var=LIBPATH
11209 fi
11210 ;;
11211
11212 amigaos*)
11213 case $host_cpu in
11214 powerpc)
11215 # Since July 2007 AmigaOS4 officially supports .so libraries.
11216 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 ;;
11219 m68k)
11220 library_names_spec='$libname.ixlibrary $libname.a'
11221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11222 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'
11223 ;;
11224 esac
11225 ;;
11226
11227 beos*)
11228 library_names_spec='${libname}${shared_ext}'
11229 dynamic_linker="$host_os ld.so"
11230 shlibpath_var=LIBRARY_PATH
11231 ;;
11232
11233 bsdi[45]*)
11234 version_type=linux # correct to gnu/linux during the next big refactor
11235 need_version=no
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11242 # the default ld.so.conf also contains /usr/contrib/lib and
11243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11244 # libtool to hard-code these into programs
11245 ;;
11246
11247 cygwin* | mingw* | pw32* | cegcc*)
11248 version_type=windows
11249 shrext_cmds=".dll"
11250 need_version=no
11251 need_lib_prefix=no
11252
11253 case $GCC,$cc_basename in
11254 yes,*)
11255 # gcc
11256 library_names_spec='$libname.dll.a'
11257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11258 postinstall_cmds='base_file=`basename \${file}`~
11259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11260 dldir=$destdir/`dirname \$dlpath`~
11261 test -d \$dldir || mkdir -p \$dldir~
11262 $install_prog $dir/$dlname \$dldir/$dlname~
11263 chmod a+x \$dldir/$dlname~
11264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11266 fi'
11267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11268 dlpath=$dir/\$dldll~
11269 $RM \$dlpath'
11270 shlibpath_overrides_runpath=yes
11271
11272 case $host_os in
11273 cygwin*)
11274 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11275 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11276
11277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11278 ;;
11279 mingw* | cegcc*)
11280 # MinGW DLLs use traditional 'lib' prefix
11281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 ;;
11283 pw32*)
11284 # pw32 DLLs use 'pw' prefix rather than 'lib'
11285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 ;;
11287 esac
11288 dynamic_linker='Win32 ld.exe'
11289 ;;
11290
11291 *,cl*)
11292 # Native MSVC
11293 libname_spec='$name'
11294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11295 library_names_spec='${libname}.dll.lib'
11296
11297 case $build_os in
11298 mingw*)
11299 sys_lib_search_path_spec=
11300 lt_save_ifs=$IFS
11301 IFS=';'
11302 for lt_path in $LIB
11303 do
11304 IFS=$lt_save_ifs
11305 # Let DOS variable expansion print the short 8.3 style file name.
11306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11308 done
11309 IFS=$lt_save_ifs
11310 # Convert to MSYS style.
11311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11312 ;;
11313 cygwin*)
11314 # Convert to unix form, then to dos form, then back to unix form
11315 # but this time dos style (no spaces!) so that the unix form looks
11316 # like /cygdrive/c/PROGRA~1:/cygdr...
11317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11320 ;;
11321 *)
11322 sys_lib_search_path_spec="$LIB"
11323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11324 # It is most probably a Windows format PATH.
11325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11326 else
11327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11328 fi
11329 # FIXME: find the short name or the path components, as spaces are
11330 # common. (e.g. "Program Files" -> "PROGRA~1")
11331 ;;
11332 esac
11333
11334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11335 postinstall_cmds='base_file=`basename \${file}`~
11336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11337 dldir=$destdir/`dirname \$dlpath`~
11338 test -d \$dldir || mkdir -p \$dldir~
11339 $install_prog $dir/$dlname \$dldir/$dlname'
11340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11341 dlpath=$dir/\$dldll~
11342 $RM \$dlpath'
11343 shlibpath_overrides_runpath=yes
11344 dynamic_linker='Win32 link.exe'
11345 ;;
11346
11347 *)
11348 # Assume MSVC wrapper
11349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11350 dynamic_linker='Win32 ld.exe'
11351 ;;
11352 esac
11353 # FIXME: first we should search . and the directory the executable is in
11354 shlibpath_var=PATH
11355 ;;
11356
11357 darwin* | rhapsody*)
11358 dynamic_linker="$host_os dyld"
11359 version_type=darwin
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11363 soname_spec='${libname}${release}${major}$shared_ext'
11364 shlibpath_overrides_runpath=yes
11365 shlibpath_var=DYLD_LIBRARY_PATH
11366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11367
11368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11370 ;;
11371
11372 dgux*)
11373 version_type=linux # correct to gnu/linux during the next big refactor
11374 need_lib_prefix=no
11375 need_version=no
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11377 soname_spec='${libname}${release}${shared_ext}$major'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 ;;
11380
11381 freebsd* | dragonfly*)
11382 # DragonFly does not have aout. When/if they implement a new
11383 # versioning mechanism, adjust this.
11384 if test -x /usr/bin/objformat; then
11385 objformat=`/usr/bin/objformat`
11386 else
11387 case $host_os in
11388 freebsd[23].*) objformat=aout ;;
11389 *) objformat=elf ;;
11390 esac
11391 fi
11392 version_type=freebsd-$objformat
11393 case $version_type in
11394 freebsd-elf*)
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11396 need_version=no
11397 need_lib_prefix=no
11398 ;;
11399 freebsd-*)
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11401 need_version=yes
11402 ;;
11403 esac
11404 shlibpath_var=LD_LIBRARY_PATH
11405 case $host_os in
11406 freebsd2.*)
11407 shlibpath_overrides_runpath=yes
11408 ;;
11409 freebsd3.[01]* | freebsdelf3.[01]*)
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 ;;
11413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11415 shlibpath_overrides_runpath=no
11416 hardcode_into_libs=yes
11417 ;;
11418 *) # from 4.6 on, and DragonFly
11419 shlibpath_overrides_runpath=yes
11420 hardcode_into_libs=yes
11421 ;;
11422 esac
11423 ;;
11424
11425 gnu*)
11426 version_type=linux # correct to gnu/linux during the next big refactor
11427 need_lib_prefix=no
11428 need_version=no
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11433 hardcode_into_libs=yes
11434 ;;
11435
11436 haiku*)
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 need_lib_prefix=no
11439 need_version=no
11440 dynamic_linker="$host_os runtime_loader"
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11446 hardcode_into_libs=yes
11447 ;;
11448
11449 hpux9* | hpux10* | hpux11*)
11450 # Give a soname corresponding to the major version so that dld.sl refuses to
11451 # link against other versions.
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 case $host_cpu in
11456 ia64*)
11457 shrext_cmds='.so'
11458 hardcode_into_libs=yes
11459 dynamic_linker="$host_os dld.so"
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 if test "X$HPUX_IA64_MODE" = X32; then
11465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11466 else
11467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11468 fi
11469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11470 ;;
11471 hppa*64*)
11472 shrext_cmds='.sl'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 ;;
11482 *)
11483 shrext_cmds='.sl'
11484 dynamic_linker="$host_os dld.sl"
11485 shlibpath_var=SHLIB_PATH
11486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 ;;
11490 esac
11491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11492 postinstall_cmds='chmod 555 $lib'
11493 # or fails outright, so override atomically:
11494 install_override_mode=555
11495 ;;
11496
11497 interix[3-9]*)
11498 version_type=linux # correct to gnu/linux during the next big refactor
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506 hardcode_into_libs=yes
11507 ;;
11508
11509 irix5* | irix6* | nonstopux*)
11510 case $host_os in
11511 nonstopux*) version_type=nonstopux ;;
11512 *)
11513 if test "$lt_cv_prog_gnu_ld" = yes; then
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 else
11516 version_type=irix
11517 fi ;;
11518 esac
11519 need_lib_prefix=no
11520 need_version=no
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 case $host_os in
11524 irix5* | nonstopux*)
11525 libsuff= shlibsuff=
11526 ;;
11527 *)
11528 case $LD in # libtool.m4 will add one of these switches to LD
11529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11530 libsuff= shlibsuff= libmagic=32-bit;;
11531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11532 libsuff=32 shlibsuff=N32 libmagic=N32;;
11533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11535 *) libsuff= shlibsuff= libmagic=never-match;;
11536 esac
11537 ;;
11538 esac
11539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11540 shlibpath_overrides_runpath=no
11541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11543 hardcode_into_libs=yes
11544 ;;
11545
11546 # No shared lib support for Linux oldld, aout, or coff.
11547 linux*oldld* | linux*aout* | linux*coff*)
11548 dynamic_linker=no
11549 ;;
11550
11551 # This must be glibc/ELF.
11552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11553 version_type=linux # correct to gnu/linux during the next big refactor
11554 need_lib_prefix=no
11555 need_version=no
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=no
11561
11562 # Some binutils ld are patched to set DT_RUNPATH
11563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 lt_cv_shlibpath_overrides_runpath=no
11567 save_LDFLAGS=$LDFLAGS
11568 save_libdir=$libdir
11569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573
11574 int
11575 main ()
11576 {
11577
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11584 lt_cv_shlibpath_overrides_runpath=yes
11585 fi
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LDFLAGS=$save_LDFLAGS
11590 libdir=$save_libdir
11591
11592 fi
11593
11594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11595
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11600
11601 # Append ld.so.conf contents to the search path
11602 if test -f /etc/ld.so.conf; then
11603 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' ' '`
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11605 fi
11606
11607 # We used to test for /lib/ld.so.1 and disable shared libraries on
11608 # powerpc, because MkLinux only supported shared libraries with the
11609 # GNU dynamic linker. Since this was broken with cross compilers,
11610 # most powerpc-linux boxes support dynamic linking these days and
11611 # people can always --disable-shared, the test was removed, and we
11612 # assume the GNU/Linux dynamic linker is in use.
11613 dynamic_linker='GNU/Linux ld.so'
11614 ;;
11615
11616 netbsd*)
11617 version_type=sunos
11618 need_lib_prefix=no
11619 need_version=no
11620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11623 dynamic_linker='NetBSD (a.out) ld.so'
11624 else
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 dynamic_linker='NetBSD ld.elf_so'
11628 fi
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11631 hardcode_into_libs=yes
11632 ;;
11633
11634 newsos6)
11635 version_type=linux # correct to gnu/linux during the next big refactor
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11639 ;;
11640
11641 *nto* | *qnx*)
11642 version_type=qnx
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11646 soname_spec='${libname}${release}${shared_ext}$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 shlibpath_overrides_runpath=no
11649 hardcode_into_libs=yes
11650 dynamic_linker='ldqnx.so'
11651 ;;
11652
11653 openbsd*)
11654 version_type=sunos
11655 sys_lib_dlsearch_path_spec="/usr/lib"
11656 need_lib_prefix=no
11657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11658 case $host_os in
11659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11660 *) need_version=no ;;
11661 esac
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11666 case $host_os in
11667 openbsd2.[89] | openbsd2.[89].*)
11668 shlibpath_overrides_runpath=no
11669 ;;
11670 *)
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673 esac
11674 else
11675 shlibpath_overrides_runpath=yes
11676 fi
11677 ;;
11678
11679 os2*)
11680 libname_spec='$name'
11681 shrext_cmds=".dll"
11682 need_lib_prefix=no
11683 library_names_spec='$libname${shared_ext} $libname.a'
11684 dynamic_linker='OS/2 ld.exe'
11685 shlibpath_var=LIBPATH
11686 ;;
11687
11688 osf3* | osf4* | osf5*)
11689 version_type=osf
11690 need_lib_prefix=no
11691 need_version=no
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11697 ;;
11698
11699 rdos*)
11700 dynamic_linker=no
11701 ;;
11702
11703 solaris*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 need_lib_prefix=no
11706 need_version=no
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 shlibpath_var=LD_LIBRARY_PATH
11710 shlibpath_overrides_runpath=yes
11711 hardcode_into_libs=yes
11712 # ldd complains unless libraries are executable
11713 postinstall_cmds='chmod +x $lib'
11714 ;;
11715
11716 sunos4*)
11717 version_type=sunos
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 if test "$with_gnu_ld" = yes; then
11723 need_lib_prefix=no
11724 fi
11725 need_version=yes
11726 ;;
11727
11728 sysv4 | sysv4.3*)
11729 version_type=linux # correct to gnu/linux during the next big refactor
11730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731 soname_spec='${libname}${release}${shared_ext}$major'
11732 shlibpath_var=LD_LIBRARY_PATH
11733 case $host_vendor in
11734 sni)
11735 shlibpath_overrides_runpath=no
11736 need_lib_prefix=no
11737 runpath_var=LD_RUN_PATH
11738 ;;
11739 siemens)
11740 need_lib_prefix=no
11741 ;;
11742 motorola)
11743 need_lib_prefix=no
11744 need_version=no
11745 shlibpath_overrides_runpath=no
11746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11747 ;;
11748 esac
11749 ;;
11750
11751 sysv4*MP*)
11752 if test -d /usr/nec ;then
11753 version_type=linux # correct to gnu/linux during the next big refactor
11754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11755 soname_spec='$libname${shared_ext}.$major'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 fi
11758 ;;
11759
11760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11761 version_type=freebsd-elf
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11769 if test "$with_gnu_ld" = yes; then
11770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11771 else
11772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11773 case $host_os in
11774 sco3.2v5*)
11775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11776 ;;
11777 esac
11778 fi
11779 sys_lib_dlsearch_path_spec='/usr/lib'
11780 ;;
11781
11782 tpf*)
11783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11784 version_type=linux # correct to gnu/linux during the next big refactor
11785 need_lib_prefix=no
11786 need_version=no
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 shlibpath_var=LD_LIBRARY_PATH
11789 shlibpath_overrides_runpath=no
11790 hardcode_into_libs=yes
11791 ;;
11792
11793 uts4*)
11794 version_type=linux # correct to gnu/linux during the next big refactor
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 ;;
11799
11800 *)
11801 dynamic_linker=no
11802 ;;
11803 esac
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11805 $as_echo "$dynamic_linker" >&6; }
11806 test "$dynamic_linker" = no && can_build_shared=no
11807
11808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11809 if test "$GCC" = yes; then
11810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11811 fi
11812
11813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11815 fi
11816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11818 fi
11819
11820
11821
11822
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11912 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11913 hardcode_action=
11914 if test -n "$hardcode_libdir_flag_spec" ||
11915 test -n "$runpath_var" ||
11916 test "X$hardcode_automatic" = "Xyes" ; then
11917
11918 # We can hardcode non-existent directories.
11919 if test "$hardcode_direct" != no &&
11920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11921 # have to relink, otherwise we might link with an installed library
11922 # when we should be linking with a yet-to-be-installed one
11923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11924 test "$hardcode_minus_L" != no; then
11925 # Linking always hardcodes the temporary library directory.
11926 hardcode_action=relink
11927 else
11928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11929 hardcode_action=immediate
11930 fi
11931 else
11932 # We cannot hardcode anything, or else we can only hardcode existing
11933 # directories.
11934 hardcode_action=unsupported
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11937 $as_echo "$hardcode_action" >&6; }
11938
11939 if test "$hardcode_action" = relink ||
11940 test "$inherit_rpath" = yes; then
11941 # Fast installation is not supported
11942 enable_fast_install=no
11943 elif test "$shlibpath_overrides_runpath" = yes ||
11944 test "$enable_shared" = no; then
11945 # Fast installation is not necessary
11946 enable_fast_install=needless
11947 fi
11948
11949
11950
11951
11952
11953
11954 if test "x$enable_dlopen" != xyes; then
11955 enable_dlopen=unknown
11956 enable_dlopen_self=unknown
11957 enable_dlopen_self_static=unknown
11958 else
11959 lt_cv_dlopen=no
11960 lt_cv_dlopen_libs=
11961
11962 case $host_os in
11963 beos*)
11964 lt_cv_dlopen="load_add_on"
11965 lt_cv_dlopen_libs=
11966 lt_cv_dlopen_self=yes
11967 ;;
11968
11969 mingw* | pw32* | cegcc*)
11970 lt_cv_dlopen="LoadLibrary"
11971 lt_cv_dlopen_libs=
11972 ;;
11973
11974 cygwin*)
11975 lt_cv_dlopen="dlopen"
11976 lt_cv_dlopen_libs=
11977 ;;
11978
11979 darwin*)
11980 # if libdl is installed we need to link against it
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11983 if ${ac_cv_lib_dl_dlopen+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 ac_check_lib_save_LIBS=$LIBS
11987 LIBS="-ldl $LIBS"
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char dlopen ();
11998 int
11999 main ()
12000 {
12001 return dlopen ();
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 if ac_fn_c_try_link "$LINENO"; then :
12007 ac_cv_lib_dl_dlopen=yes
12008 else
12009 ac_cv_lib_dl_dlopen=no
12010 fi
12011 rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 LIBS=$ac_check_lib_save_LIBS
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12019 else
12020
12021 lt_cv_dlopen="dyld"
12022 lt_cv_dlopen_libs=
12023 lt_cv_dlopen_self=yes
12024
12025 fi
12026
12027 ;;
12028
12029 *)
12030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12031 if test "x$ac_cv_func_shl_load" = xyes; then :
12032 lt_cv_dlopen="shl_load"
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12036 if ${ac_cv_lib_dld_shl_load+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-ldld $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char shl_load ();
12051 int
12052 main ()
12053 {
12054 return shl_load ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_dld_shl_load=yes
12061 else
12062 ac_cv_lib_dld_shl_load=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12072 else
12073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12074 if test "x$ac_cv_func_dlopen" = xyes; then :
12075 lt_cv_dlopen="dlopen"
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12079 if ${ac_cv_lib_dl_dlopen+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-ldl $LIBS"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char dlopen ();
12094 int
12095 main ()
12096 {
12097 return dlopen ();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_dl_dlopen=yes
12104 else
12105 ac_cv_lib_dl_dlopen=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12117 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12118 if ${ac_cv_lib_svld_dlopen+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lsvld $LIBS"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char dlopen ();
12133 int
12134 main ()
12135 {
12136 return dlopen ();
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 ac_cv_lib_svld_dlopen=yes
12143 else
12144 ac_cv_lib_svld_dlopen=no
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12151 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12152 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12156 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12157 if ${ac_cv_lib_dld_dld_link+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-ldld $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char dld_link ();
12172 int
12173 main ()
12174 {
12175 return dld_link ();
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_dld_dld_link=yes
12182 else
12183 ac_cv_lib_dld_dld_link=no
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12191 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12193 fi
12194
12195
12196 fi
12197
12198
12199 fi
12200
12201
12202 fi
12203
12204
12205 fi
12206
12207
12208 fi
12209
12210 ;;
12211 esac
12212
12213 if test "x$lt_cv_dlopen" != xno; then
12214 enable_dlopen=yes
12215 else
12216 enable_dlopen=no
12217 fi
12218
12219 case $lt_cv_dlopen in
12220 dlopen)
12221 save_CPPFLAGS="$CPPFLAGS"
12222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12223
12224 save_LDFLAGS="$LDFLAGS"
12225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12226
12227 save_LIBS="$LIBS"
12228 LIBS="$lt_cv_dlopen_libs $LIBS"
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12232 if ${lt_cv_dlopen_self+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 if test "$cross_compiling" = yes; then :
12236 lt_cv_dlopen_self=cross
12237 else
12238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12239 lt_status=$lt_dlunknown
12240 cat > conftest.$ac_ext <<_LT_EOF
12241 #line $LINENO "configure"
12242 #include "confdefs.h"
12243
12244 #if HAVE_DLFCN_H
12245 #include <dlfcn.h>
12246 #endif
12247
12248 #include <stdio.h>
12249
12250 #ifdef RTLD_GLOBAL
12251 # define LT_DLGLOBAL RTLD_GLOBAL
12252 #else
12253 # ifdef DL_GLOBAL
12254 # define LT_DLGLOBAL DL_GLOBAL
12255 # else
12256 # define LT_DLGLOBAL 0
12257 # endif
12258 #endif
12259
12260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12261 find out it does not work in some platform. */
12262 #ifndef LT_DLLAZY_OR_NOW
12263 # ifdef RTLD_LAZY
12264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12265 # else
12266 # ifdef DL_LAZY
12267 # define LT_DLLAZY_OR_NOW DL_LAZY
12268 # else
12269 # ifdef RTLD_NOW
12270 # define LT_DLLAZY_OR_NOW RTLD_NOW
12271 # else
12272 # ifdef DL_NOW
12273 # define LT_DLLAZY_OR_NOW DL_NOW
12274 # else
12275 # define LT_DLLAZY_OR_NOW 0
12276 # endif
12277 # endif
12278 # endif
12279 # endif
12280 #endif
12281
12282 /* When -fvisbility=hidden is used, assume the code has been annotated
12283 correspondingly for the symbols needed. */
12284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12285 int fnord () __attribute__((visibility("default")));
12286 #endif
12287
12288 int fnord () { return 42; }
12289 int main ()
12290 {
12291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12292 int status = $lt_dlunknown;
12293
12294 if (self)
12295 {
12296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12297 else
12298 {
12299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12300 else puts (dlerror ());
12301 }
12302 /* dlclose (self); */
12303 }
12304 else
12305 puts (dlerror ());
12306
12307 return status;
12308 }
12309 _LT_EOF
12310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12311 (eval $ac_link) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12315 (./conftest; exit; ) >&5 2>/dev/null
12316 lt_status=$?
12317 case x$lt_status in
12318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12321 esac
12322 else :
12323 # compilation failed
12324 lt_cv_dlopen_self=no
12325 fi
12326 fi
12327 rm -fr conftest*
12328
12329
12330 fi
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12332 $as_echo "$lt_cv_dlopen_self" >&6; }
12333
12334 if test "x$lt_cv_dlopen_self" = xyes; then
12335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12338 if ${lt_cv_dlopen_self_static+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 if test "$cross_compiling" = yes; then :
12342 lt_cv_dlopen_self_static=cross
12343 else
12344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12345 lt_status=$lt_dlunknown
12346 cat > conftest.$ac_ext <<_LT_EOF
12347 #line $LINENO "configure"
12348 #include "confdefs.h"
12349
12350 #if HAVE_DLFCN_H
12351 #include <dlfcn.h>
12352 #endif
12353
12354 #include <stdio.h>
12355
12356 #ifdef RTLD_GLOBAL
12357 # define LT_DLGLOBAL RTLD_GLOBAL
12358 #else
12359 # ifdef DL_GLOBAL
12360 # define LT_DLGLOBAL DL_GLOBAL
12361 # else
12362 # define LT_DLGLOBAL 0
12363 # endif
12364 #endif
12365
12366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12367 find out it does not work in some platform. */
12368 #ifndef LT_DLLAZY_OR_NOW
12369 # ifdef RTLD_LAZY
12370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12371 # else
12372 # ifdef DL_LAZY
12373 # define LT_DLLAZY_OR_NOW DL_LAZY
12374 # else
12375 # ifdef RTLD_NOW
12376 # define LT_DLLAZY_OR_NOW RTLD_NOW
12377 # else
12378 # ifdef DL_NOW
12379 # define LT_DLLAZY_OR_NOW DL_NOW
12380 # else
12381 # define LT_DLLAZY_OR_NOW 0
12382 # endif
12383 # endif
12384 # endif
12385 # endif
12386 #endif
12387
12388 /* When -fvisbility=hidden is used, assume the code has been annotated
12389 correspondingly for the symbols needed. */
12390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12391 int fnord () __attribute__((visibility("default")));
12392 #endif
12393
12394 int fnord () { return 42; }
12395 int main ()
12396 {
12397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12398 int status = $lt_dlunknown;
12399
12400 if (self)
12401 {
12402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12403 else
12404 {
12405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12406 else puts (dlerror ());
12407 }
12408 /* dlclose (self); */
12409 }
12410 else
12411 puts (dlerror ());
12412
12413 return status;
12414 }
12415 _LT_EOF
12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12417 (eval $ac_link) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12421 (./conftest; exit; ) >&5 2>/dev/null
12422 lt_status=$?
12423 case x$lt_status in
12424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12427 esac
12428 else :
12429 # compilation failed
12430 lt_cv_dlopen_self_static=no
12431 fi
12432 fi
12433 rm -fr conftest*
12434
12435
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12439 fi
12440
12441 CPPFLAGS="$save_CPPFLAGS"
12442 LDFLAGS="$save_LDFLAGS"
12443 LIBS="$save_LIBS"
12444 ;;
12445 esac
12446
12447 case $lt_cv_dlopen_self in
12448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12449 *) enable_dlopen_self=unknown ;;
12450 esac
12451
12452 case $lt_cv_dlopen_self_static in
12453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12454 *) enable_dlopen_self_static=unknown ;;
12455 esac
12456 fi
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474 striplib=
12475 old_striplib=
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482 $as_echo "yes" >&6; }
12483 else
12484 # FIXME - insert some real tests, host_os isn't really good enough
12485 case $host_os in
12486 darwin*)
12487 if test -n "$STRIP" ; then
12488 striplib="$STRIP -x"
12489 old_striplib="$STRIP -S"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491 $as_echo "yes" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496 ;;
12497 *)
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12500 ;;
12501 esac
12502 fi
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515 # Report which library types will actually be built
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12519 $as_echo "$can_build_shared" >&6; }
12520
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12522 $as_echo_n "checking whether to build shared libraries... " >&6; }
12523 test "$can_build_shared" = "no" && enable_shared=no
12524
12525 # On AIX, shared libraries and static libraries use the same namespace, and
12526 # are all built from PIC.
12527 case $host_os in
12528 aix3*)
12529 test "$enable_shared" = yes && enable_static=no
12530 if test -n "$RANLIB"; then
12531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12532 postinstall_cmds='$RANLIB $lib'
12533 fi
12534 ;;
12535
12536 aix[4-9]*)
12537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12538 test "$enable_shared" = yes && enable_static=no
12539 fi
12540 ;;
12541 esac
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12543 $as_echo "$enable_shared" >&6; }
12544
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12546 $as_echo_n "checking whether to build static libraries... " >&6; }
12547 # Make sure either enable_shared or enable_static is yes.
12548 test "$enable_shared" = yes || enable_static=yes
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12550 $as_echo "$enable_static" >&6; }
12551
12552
12553
12554
12555 fi
12556 ac_ext=c
12557 ac_cpp='$CPP $CPPFLAGS'
12558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12561
12562 CC="$lt_save_CC"
12563
12564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12566 (test "X$CXX" != "Xg++"))) ; then
12567 ac_ext=cpp
12568 ac_cpp='$CXXCPP $CPPFLAGS'
12569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12573 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12574 if test -z "$CXXCPP"; then
12575 if ${ac_cv_prog_CXXCPP+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 # Double quotes because CXXCPP needs to be expanded
12579 for CXXCPP in "$CXX -E" "/lib/cpp"
12580 do
12581 ac_preproc_ok=false
12582 for ac_cxx_preproc_warn_flag in '' yes
12583 do
12584 # Use a header file that comes with gcc, so configuring glibc
12585 # with a fresh cross-compiler works.
12586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587 # <limits.h> exists even on freestanding compilers.
12588 # On the NeXT, cc -E runs the code through the compiler's parser,
12589 # not just through cpp. "Syntax error" is here to catch this case.
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597 Syntax error
12598 _ACEOF
12599 if ac_fn_cxx_try_cpp "$LINENO"; then :
12600
12601 else
12602 # Broken: fails on valid input.
12603 continue
12604 fi
12605 rm -f conftest.err conftest.i conftest.$ac_ext
12606
12607 # OK, works on sane cases. Now check whether nonexistent headers
12608 # can be detected and how.
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 #include <ac_nonexistent.h>
12612 _ACEOF
12613 if ac_fn_cxx_try_cpp "$LINENO"; then :
12614 # Broken: success on invalid input.
12615 continue
12616 else
12617 # Passes both tests.
12618 ac_preproc_ok=:
12619 break
12620 fi
12621 rm -f conftest.err conftest.i conftest.$ac_ext
12622
12623 done
12624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12625 rm -f conftest.i conftest.err conftest.$ac_ext
12626 if $ac_preproc_ok; then :
12627 break
12628 fi
12629
12630 done
12631 ac_cv_prog_CXXCPP=$CXXCPP
12632
12633 fi
12634 CXXCPP=$ac_cv_prog_CXXCPP
12635 else
12636 ac_cv_prog_CXXCPP=$CXXCPP
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12639 $as_echo "$CXXCPP" >&6; }
12640 ac_preproc_ok=false
12641 for ac_cxx_preproc_warn_flag in '' yes
12642 do
12643 # Use a header file that comes with gcc, so configuring glibc
12644 # with a fresh cross-compiler works.
12645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12646 # <limits.h> exists even on freestanding compilers.
12647 # On the NeXT, cc -E runs the code through the compiler's parser,
12648 # not just through cpp. "Syntax error" is here to catch this case.
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #ifdef __STDC__
12652 # include <limits.h>
12653 #else
12654 # include <assert.h>
12655 #endif
12656 Syntax error
12657 _ACEOF
12658 if ac_fn_cxx_try_cpp "$LINENO"; then :
12659
12660 else
12661 # Broken: fails on valid input.
12662 continue
12663 fi
12664 rm -f conftest.err conftest.i conftest.$ac_ext
12665
12666 # OK, works on sane cases. Now check whether nonexistent headers
12667 # can be detected and how.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 #include <ac_nonexistent.h>
12671 _ACEOF
12672 if ac_fn_cxx_try_cpp "$LINENO"; then :
12673 # Broken: success on invalid input.
12674 continue
12675 else
12676 # Passes both tests.
12677 ac_preproc_ok=:
12678 break
12679 fi
12680 rm -f conftest.err conftest.i conftest.$ac_ext
12681
12682 done
12683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12684 rm -f conftest.i conftest.err conftest.$ac_ext
12685 if $ac_preproc_ok; then :
12686
12687 else
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12690 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12691 See \`config.log' for more details" "$LINENO" 5; }
12692 fi
12693
12694 ac_ext=c
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12699
12700 else
12701 _lt_caught_CXX_error=yes
12702 fi
12703
12704 ac_ext=cpp
12705 ac_cpp='$CXXCPP $CPPFLAGS'
12706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12709
12710 archive_cmds_need_lc_CXX=no
12711 allow_undefined_flag_CXX=
12712 always_export_symbols_CXX=no
12713 archive_expsym_cmds_CXX=
12714 compiler_needs_object_CXX=no
12715 export_dynamic_flag_spec_CXX=
12716 hardcode_direct_CXX=no
12717 hardcode_direct_absolute_CXX=no
12718 hardcode_libdir_flag_spec_CXX=
12719 hardcode_libdir_separator_CXX=
12720 hardcode_minus_L_CXX=no
12721 hardcode_shlibpath_var_CXX=unsupported
12722 hardcode_automatic_CXX=no
12723 inherit_rpath_CXX=no
12724 module_cmds_CXX=
12725 module_expsym_cmds_CXX=
12726 link_all_deplibs_CXX=unknown
12727 old_archive_cmds_CXX=$old_archive_cmds
12728 reload_flag_CXX=$reload_flag
12729 reload_cmds_CXX=$reload_cmds
12730 no_undefined_flag_CXX=
12731 whole_archive_flag_spec_CXX=
12732 enable_shared_with_static_runtimes_CXX=no
12733
12734 # Source file extension for C++ test sources.
12735 ac_ext=cpp
12736
12737 # Object file extension for compiled C++ test sources.
12738 objext=o
12739 objext_CXX=$objext
12740
12741 # No sense in running all these tests if we already determined that
12742 # the CXX compiler isn't working. Some variables (like enable_shared)
12743 # are currently assumed to apply to all compilers on this platform,
12744 # and will be corrupted by setting them based on a non-working compiler.
12745 if test "$_lt_caught_CXX_error" != yes; then
12746 # Code to be used in simple compile tests
12747 lt_simple_compile_test_code="int some_variable = 0;"
12748
12749 # Code to be used in simple link tests
12750 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12751
12752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12753
12754
12755
12756
12757
12758
12759 # If no C compiler was specified, use CC.
12760 LTCC=${LTCC-"$CC"}
12761
12762 # If no C compiler flags were specified, use CFLAGS.
12763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12764
12765 # Allow CC to be a program name with arguments.
12766 compiler=$CC
12767
12768
12769 # save warnings/boilerplate of simple test code
12770 ac_outfile=conftest.$ac_objext
12771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12773 _lt_compiler_boilerplate=`cat conftest.err`
12774 $RM -r conftest*
12775
12776 ac_outfile=conftest.$ac_objext
12777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12779 _lt_linker_boilerplate=`cat conftest.err`
12780 $RM -r conftest*
12781
12782
12783 # Allow CC to be a program name with arguments.
12784 lt_save_CC=$CC
12785 lt_save_CFLAGS=$CFLAGS
12786 lt_save_LD=$LD
12787 lt_save_GCC=$GCC
12788 GCC=$GXX
12789 lt_save_with_gnu_ld=$with_gnu_ld
12790 lt_save_path_LD=$lt_cv_path_LD
12791 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12792 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12793 else
12794 $as_unset lt_cv_prog_gnu_ld
12795 fi
12796 if test -n "${lt_cv_path_LDCXX+set}"; then
12797 lt_cv_path_LD=$lt_cv_path_LDCXX
12798 else
12799 $as_unset lt_cv_path_LD
12800 fi
12801 test -z "${LDCXX+set}" || LD=$LDCXX
12802 CC=${CXX-"c++"}
12803 CFLAGS=$CXXFLAGS
12804 compiler=$CC
12805 compiler_CXX=$CC
12806 for cc_temp in $compiler""; do
12807 case $cc_temp in
12808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12810 \-*) ;;
12811 *) break;;
12812 esac
12813 done
12814 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12815
12816
12817 if test -n "$compiler"; then
12818 # We don't want -fno-exception when compiling C++ code, so set the
12819 # no_builtin_flag separately
12820 if test "$GXX" = yes; then
12821 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12822 else
12823 lt_prog_compiler_no_builtin_flag_CXX=
12824 fi
12825
12826 if test "$GXX" = yes; then
12827 # Set up default GNU C++ configuration
12828
12829
12830
12831 # Check whether --with-gnu-ld was given.
12832 if test "${with_gnu_ld+set}" = set; then :
12833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12834 else
12835 with_gnu_ld=no
12836 fi
12837
12838 ac_prog=ld
12839 if test "$GCC" = yes; then
12840 # Check if gcc -print-prog-name=ld gives a path.
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12842 $as_echo_n "checking for ld used by $CC... " >&6; }
12843 case $host in
12844 *-*-mingw*)
12845 # gcc leaves a trailing carriage return which upsets mingw
12846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12847 *)
12848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12849 esac
12850 case $ac_prog in
12851 # Accept absolute paths.
12852 [\\/]* | ?:[\\/]*)
12853 re_direlt='/[^/][^/]*/\.\./'
12854 # Canonicalize the pathname of ld
12855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12858 done
12859 test -z "$LD" && LD="$ac_prog"
12860 ;;
12861 "")
12862 # If it fails, then pretend we aren't using GCC.
12863 ac_prog=ld
12864 ;;
12865 *)
12866 # If it is relative, then search for the first ld in PATH.
12867 with_gnu_ld=unknown
12868 ;;
12869 esac
12870 elif test "$with_gnu_ld" = yes; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12872 $as_echo_n "checking for GNU ld... " >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12875 $as_echo_n "checking for non-GNU ld... " >&6; }
12876 fi
12877 if ${lt_cv_path_LD+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -z "$LD"; then
12881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12882 for ac_dir in $PATH; do
12883 IFS="$lt_save_ifs"
12884 test -z "$ac_dir" && ac_dir=.
12885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12886 lt_cv_path_LD="$ac_dir/$ac_prog"
12887 # Check to see if the program is GNU ld. I'd rather use --version,
12888 # but apparently some variants of GNU ld only accept -v.
12889 # Break only if it was the GNU/non-GNU ld that we prefer.
12890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12891 *GNU* | *'with BFD'*)
12892 test "$with_gnu_ld" != no && break
12893 ;;
12894 *)
12895 test "$with_gnu_ld" != yes && break
12896 ;;
12897 esac
12898 fi
12899 done
12900 IFS="$lt_save_ifs"
12901 else
12902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12903 fi
12904 fi
12905
12906 LD="$lt_cv_path_LD"
12907 if test -n "$LD"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12909 $as_echo "$LD" >&6; }
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12913 fi
12914 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12917 if ${lt_cv_prog_gnu_ld+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12921 case `$LD -v 2>&1 </dev/null` in
12922 *GNU* | *'with BFD'*)
12923 lt_cv_prog_gnu_ld=yes
12924 ;;
12925 *)
12926 lt_cv_prog_gnu_ld=no
12927 ;;
12928 esac
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12931 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12932 with_gnu_ld=$lt_cv_prog_gnu_ld
12933
12934
12935
12936
12937
12938
12939
12940 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12941 # archiving commands below assume that GNU ld is being used.
12942 if test "$with_gnu_ld" = yes; then
12943 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12944 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'
12945
12946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12948
12949 # If archive_cmds runs LD, not CC, wlarc should be empty
12950 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12951 # investigate it a little bit more. (MM)
12952 wlarc='${wl}'
12953
12954 # ancient GNU ld didn't support --whole-archive et. al.
12955 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12956 $GREP 'no-whole-archive' > /dev/null; then
12957 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12958 else
12959 whole_archive_flag_spec_CXX=
12960 fi
12961 else
12962 with_gnu_ld=no
12963 wlarc=
12964
12965 # A generic and very simple default shared library creation
12966 # command for GNU C++ for the case where it uses the native
12967 # linker, instead of GNU ld. If possible, this setting should
12968 # overridden to take advantage of the native linker features on
12969 # the platform it is being used on.
12970 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12971 fi
12972
12973 # Commands to make compiler produce verbose output that lists
12974 # what "hidden" libraries, object files and flags are used when
12975 # linking a shared library.
12976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12977
12978 else
12979 GXX=no
12980 with_gnu_ld=no
12981 wlarc=
12982 fi
12983
12984 # PORTME: fill in a description of your system's C++ link characteristics
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12987 ld_shlibs_CXX=yes
12988 case $host_os in
12989 aix3*)
12990 # FIXME: insert proper C++ library support
12991 ld_shlibs_CXX=no
12992 ;;
12993 aix[4-9]*)
12994 if test "$host_cpu" = ia64; then
12995 # On IA64, the linker does run time linking by default, so we don't
12996 # have to do anything special.
12997 aix_use_runtimelinking=no
12998 exp_sym_flag='-Bexport'
12999 no_entry_flag=""
13000 else
13001 aix_use_runtimelinking=no
13002
13003 # Test if we are trying to use run time linking or normal
13004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13005 # need to do runtime linking.
13006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13007 for ld_flag in $LDFLAGS; do
13008 case $ld_flag in
13009 *-brtl*)
13010 aix_use_runtimelinking=yes
13011 break
13012 ;;
13013 esac
13014 done
13015 ;;
13016 esac
13017
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13020 fi
13021
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028 archive_cmds_CXX=''
13029 hardcode_direct_CXX=yes
13030 hardcode_direct_absolute_CXX=yes
13031 hardcode_libdir_separator_CXX=':'
13032 link_all_deplibs_CXX=yes
13033 file_list_spec_CXX='${wl}-f,'
13034
13035 if test "$GXX" = yes; then
13036 case $host_os in aix4.[012]|aix4.[012].*)
13037 # We only want to do this on AIX 4.2 and lower, the check
13038 # below for broken collect2 doesn't work under 4.3+
13039 collect2name=`${CC} -print-prog-name=collect2`
13040 if test -f "$collect2name" &&
13041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13042 then
13043 # We have reworked collect2
13044 :
13045 else
13046 # We have old collect2
13047 hardcode_direct_CXX=unsupported
13048 # It fails to find uninstalled libraries when the uninstalled
13049 # path is not listed in the libpath. Setting hardcode_minus_L
13050 # to unsupported forces relinking
13051 hardcode_minus_L_CXX=yes
13052 hardcode_libdir_flag_spec_CXX='-L$libdir'
13053 hardcode_libdir_separator_CXX=
13054 fi
13055 esac
13056 shared_flag='-shared'
13057 if test "$aix_use_runtimelinking" = yes; then
13058 shared_flag="$shared_flag "'${wl}-G'
13059 fi
13060 else
13061 # not using gcc
13062 if test "$host_cpu" = ia64; then
13063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13064 # chokes on -Wl,-G. The following line is correct:
13065 shared_flag='-G'
13066 else
13067 if test "$aix_use_runtimelinking" = yes; then
13068 shared_flag='${wl}-G'
13069 else
13070 shared_flag='${wl}-bM:SRE'
13071 fi
13072 fi
13073 fi
13074
13075 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13076 # It seems that -bexpall does not export symbols beginning with
13077 # underscore (_), so it is better to generate a list of symbols to
13078 # export.
13079 always_export_symbols_CXX=yes
13080 if test "$aix_use_runtimelinking" = yes; then
13081 # Warning - without using the other runtime loading flags (-brtl),
13082 # -berok will link without error, but may produce a broken library.
13083 allow_undefined_flag_CXX='-berok'
13084 # Determine the default libpath from the value encoded in an empty
13085 # executable.
13086 if test "${lt_cv_aix_libpath+set}" = set; then
13087 aix_libpath=$lt_cv_aix_libpath
13088 else
13089 if ${lt_cv_aix_libpath__CXX+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094
13095 int
13096 main ()
13097 {
13098
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_cxx_try_link "$LINENO"; then :
13104
13105 lt_aix_libpath_sed='
13106 /Import File Strings/,/^$/ {
13107 /^0/ {
13108 s/^0 *\([^ ]*\) *$/\1/
13109 p
13110 }
13111 }'
13112 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13113 # Check for a 64-bit object if we didn't find anything.
13114 if test -z "$lt_cv_aix_libpath__CXX"; then
13115 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13116 fi
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 if test -z "$lt_cv_aix_libpath__CXX"; then
13121 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13122 fi
13123
13124 fi
13125
13126 aix_libpath=$lt_cv_aix_libpath__CXX
13127 fi
13128
13129 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13130
13131 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"
13132 else
13133 if test "$host_cpu" = ia64; then
13134 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13135 allow_undefined_flag_CXX="-z nodefs"
13136 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"
13137 else
13138 # Determine the default libpath from the value encoded in an
13139 # empty executable.
13140 if test "${lt_cv_aix_libpath+set}" = set; then
13141 aix_libpath=$lt_cv_aix_libpath
13142 else
13143 if ${lt_cv_aix_libpath__CXX+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 int
13150 main ()
13151 {
13152
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_cxx_try_link "$LINENO"; then :
13158
13159 lt_aix_libpath_sed='
13160 /Import File Strings/,/^$/ {
13161 /^0/ {
13162 s/^0 *\([^ ]*\) *$/\1/
13163 p
13164 }
13165 }'
13166 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 # Check for a 64-bit object if we didn't find anything.
13168 if test -z "$lt_cv_aix_libpath__CXX"; then
13169 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13170 fi
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174 if test -z "$lt_cv_aix_libpath__CXX"; then
13175 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13176 fi
13177
13178 fi
13179
13180 aix_libpath=$lt_cv_aix_libpath__CXX
13181 fi
13182
13183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13184 # Warning - without using the other run time loading flags,
13185 # -berok will link without error, but may produce a broken library.
13186 no_undefined_flag_CXX=' ${wl}-bernotok'
13187 allow_undefined_flag_CXX=' ${wl}-berok'
13188 if test "$with_gnu_ld" = yes; then
13189 # We only use this code for GNU lds that support --whole-archive.
13190 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13191 else
13192 # Exported symbols can be pulled into shared objects from archives
13193 whole_archive_flag_spec_CXX='$convenience'
13194 fi
13195 archive_cmds_need_lc_CXX=yes
13196 # This is similar to how AIX traditionally builds its shared
13197 # libraries.
13198 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'
13199 fi
13200 fi
13201 ;;
13202
13203 beos*)
13204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13205 allow_undefined_flag_CXX=unsupported
13206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13207 # support --undefined. This deserves some investigation. FIXME
13208 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 else
13210 ld_shlibs_CXX=no
13211 fi
13212 ;;
13213
13214 chorus*)
13215 case $cc_basename in
13216 *)
13217 # FIXME: insert proper C++ library support
13218 ld_shlibs_CXX=no
13219 ;;
13220 esac
13221 ;;
13222
13223 cygwin* | mingw* | pw32* | cegcc*)
13224 case $GXX,$cc_basename in
13225 ,cl* | no,cl*)
13226 # Native MSVC
13227 # hardcode_libdir_flag_spec is actually meaningless, as there is
13228 # no search path for DLLs.
13229 hardcode_libdir_flag_spec_CXX=' '
13230 allow_undefined_flag_CXX=unsupported
13231 always_export_symbols_CXX=yes
13232 file_list_spec_CXX='@'
13233 # Tell ltmain to make .lib files, not .a files.
13234 libext=lib
13235 # Tell ltmain to make .dll files, not .so files.
13236 shrext_cmds=".dll"
13237 # FIXME: Setting linknames here is a bad hack.
13238 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13239 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13240 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13241 else
13242 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13243 fi~
13244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13245 linknames='
13246 # The linker will not automatically build a static lib if we build a DLL.
13247 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13248 enable_shared_with_static_runtimes_CXX=yes
13249 # Don't use ranlib
13250 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13251 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13252 lt_tool_outputfile="@TOOL_OUTPUT@"~
13253 case $lt_outputfile in
13254 *.exe|*.EXE) ;;
13255 *)
13256 lt_outputfile="$lt_outputfile.exe"
13257 lt_tool_outputfile="$lt_tool_outputfile.exe"
13258 ;;
13259 esac~
13260 func_to_tool_file "$lt_outputfile"~
13261 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13263 $RM "$lt_outputfile.manifest";
13264 fi'
13265 ;;
13266 *)
13267 # g++
13268 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13269 # as there is no search path for DLLs.
13270 hardcode_libdir_flag_spec_CXX='-L$libdir'
13271 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13272 allow_undefined_flag_CXX=unsupported
13273 always_export_symbols_CXX=no
13274 enable_shared_with_static_runtimes_CXX=yes
13275
13276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13277 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'
13278 # If the export-symbols file already is a .def file (1st line
13279 # is EXPORTS), use it as is; otherwise, prepend...
13280 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13281 cp $export_symbols $output_objdir/$soname.def;
13282 else
13283 echo EXPORTS > $output_objdir/$soname.def;
13284 cat $export_symbols >> $output_objdir/$soname.def;
13285 fi~
13286 $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'
13287 else
13288 ld_shlibs_CXX=no
13289 fi
13290 ;;
13291 esac
13292 ;;
13293 darwin* | rhapsody*)
13294
13295
13296 archive_cmds_need_lc_CXX=no
13297 hardcode_direct_CXX=no
13298 hardcode_automatic_CXX=yes
13299 hardcode_shlibpath_var_CXX=unsupported
13300 if test "$lt_cv_ld_force_load" = "yes"; then
13301 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\"`'
13302
13303 else
13304 whole_archive_flag_spec_CXX=''
13305 fi
13306 link_all_deplibs_CXX=yes
13307 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13308 case $cc_basename in
13309 ifort*) _lt_dar_can_shared=yes ;;
13310 *) _lt_dar_can_shared=$GCC ;;
13311 esac
13312 if test "$_lt_dar_can_shared" = "yes"; then
13313 output_verbose_link_cmd=func_echo_all
13314 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}"
13315 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13316 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}"
13317 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}"
13318 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13319 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}"
13320 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}"
13321 fi
13322
13323 else
13324 ld_shlibs_CXX=no
13325 fi
13326
13327 ;;
13328
13329 dgux*)
13330 case $cc_basename in
13331 ec++*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335 ghcx*)
13336 # Green Hills C++ Compiler
13337 # FIXME: insert proper C++ library support
13338 ld_shlibs_CXX=no
13339 ;;
13340 *)
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13343 ;;
13344 esac
13345 ;;
13346
13347 freebsd2.*)
13348 # C++ shared libraries reported to be fairly broken before
13349 # switch to ELF
13350 ld_shlibs_CXX=no
13351 ;;
13352
13353 freebsd-elf*)
13354 archive_cmds_need_lc_CXX=no
13355 ;;
13356
13357 freebsd* | dragonfly*)
13358 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13359 # conventions
13360 ld_shlibs_CXX=yes
13361 ;;
13362
13363 gnu*)
13364 ;;
13365
13366 haiku*)
13367 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13368 link_all_deplibs_CXX=yes
13369 ;;
13370
13371 hpux9*)
13372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13373 hardcode_libdir_separator_CXX=:
13374 export_dynamic_flag_spec_CXX='${wl}-E'
13375 hardcode_direct_CXX=yes
13376 hardcode_minus_L_CXX=yes # Not in the search PATH,
13377 # but as the default
13378 # location of the library.
13379
13380 case $cc_basename in
13381 CC*)
13382 # FIXME: insert proper C++ library support
13383 ld_shlibs_CXX=no
13384 ;;
13385 aCC*)
13386 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'
13387 # Commands to make compiler produce verbose output that lists
13388 # what "hidden" libraries, object files and flags are used when
13389 # linking a shared library.
13390 #
13391 # There doesn't appear to be a way to prevent this compiler from
13392 # explicitly linking system object files so we need to strip them
13393 # from the output so that they don't get included in the library
13394 # dependencies.
13395 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"'
13396 ;;
13397 *)
13398 if test "$GXX" = yes; then
13399 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'
13400 else
13401 # FIXME: insert proper C++ library support
13402 ld_shlibs_CXX=no
13403 fi
13404 ;;
13405 esac
13406 ;;
13407
13408 hpux10*|hpux11*)
13409 if test $with_gnu_ld = no; then
13410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13411 hardcode_libdir_separator_CXX=:
13412
13413 case $host_cpu in
13414 hppa*64*|ia64*)
13415 ;;
13416 *)
13417 export_dynamic_flag_spec_CXX='${wl}-E'
13418 ;;
13419 esac
13420 fi
13421 case $host_cpu in
13422 hppa*64*|ia64*)
13423 hardcode_direct_CXX=no
13424 hardcode_shlibpath_var_CXX=no
13425 ;;
13426 *)
13427 hardcode_direct_CXX=yes
13428 hardcode_direct_absolute_CXX=yes
13429 hardcode_minus_L_CXX=yes # Not in the search PATH,
13430 # but as the default
13431 # location of the library.
13432 ;;
13433 esac
13434
13435 case $cc_basename in
13436 CC*)
13437 # FIXME: insert proper C++ library support
13438 ld_shlibs_CXX=no
13439 ;;
13440 aCC*)
13441 case $host_cpu in
13442 hppa*64*)
13443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444 ;;
13445 ia64*)
13446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13447 ;;
13448 *)
13449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13450 ;;
13451 esac
13452 # Commands to make compiler produce verbose output that lists
13453 # what "hidden" libraries, object files and flags are used when
13454 # linking a shared library.
13455 #
13456 # There doesn't appear to be a way to prevent this compiler from
13457 # explicitly linking system object files so we need to strip them
13458 # from the output so that they don't get included in the library
13459 # dependencies.
13460 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"'
13461 ;;
13462 *)
13463 if test "$GXX" = yes; then
13464 if test $with_gnu_ld = no; then
13465 case $host_cpu in
13466 hppa*64*)
13467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13468 ;;
13469 ia64*)
13470 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13471 ;;
13472 *)
13473 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'
13474 ;;
13475 esac
13476 fi
13477 else
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13480 fi
13481 ;;
13482 esac
13483 ;;
13484
13485 interix[3-9]*)
13486 hardcode_direct_CXX=no
13487 hardcode_shlibpath_var_CXX=no
13488 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13489 export_dynamic_flag_spec_CXX='${wl}-E'
13490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13491 # Instead, shared libraries are loaded at an image base (0x10000000 by
13492 # default) and relocated if they conflict, which is a slow very memory
13493 # consuming and fragmenting process. To avoid this, we pick a random,
13494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13496 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'
13497 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'
13498 ;;
13499 irix5* | irix6*)
13500 case $cc_basename in
13501 CC*)
13502 # SGI C++
13503 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'
13504
13505 # Archives containing C++ object files must be created using
13506 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13507 # necessary to make sure instantiated templates are included
13508 # in the archive.
13509 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13510 ;;
13511 *)
13512 if test "$GXX" = yes; then
13513 if test "$with_gnu_ld" = no; then
13514 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'
13515 else
13516 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'
13517 fi
13518 fi
13519 link_all_deplibs_CXX=yes
13520 ;;
13521 esac
13522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523 hardcode_libdir_separator_CXX=:
13524 inherit_rpath_CXX=yes
13525 ;;
13526
13527 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13528 case $cc_basename in
13529 KCC*)
13530 # Kuck and Associates, Inc. (KAI) C++ Compiler
13531
13532 # KCC will only create a shared library if the output file
13533 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13534 # to its proper name (with version) after linking.
13535 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'
13536 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'
13537 # Commands to make compiler produce verbose output that lists
13538 # what "hidden" libraries, object files and flags are used when
13539 # linking a shared library.
13540 #
13541 # There doesn't appear to be a way to prevent this compiler from
13542 # explicitly linking system object files so we need to strip them
13543 # from the output so that they don't get included in the library
13544 # dependencies.
13545 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"'
13546
13547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13548 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13549
13550 # Archives containing C++ object files must be created using
13551 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13552 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13553 ;;
13554 icpc* | ecpc* )
13555 # Intel C++
13556 with_gnu_ld=yes
13557 # version 8.0 and above of icpc choke on multiply defined symbols
13558 # if we add $predep_objects and $postdep_objects, however 7.1 and
13559 # earlier do not add the objects themselves.
13560 case `$CC -V 2>&1` in
13561 *"Version 7."*)
13562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563 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'
13564 ;;
13565 *) # Version 8.0 or newer
13566 tmp_idyn=
13567 case $host_cpu in
13568 ia64*) tmp_idyn=' -i_dynamic';;
13569 esac
13570 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13571 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'
13572 ;;
13573 esac
13574 archive_cmds_need_lc_CXX=no
13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13576 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13578 ;;
13579 pgCC* | pgcpp*)
13580 # Portland Group C++ compiler
13581 case `$CC -V` in
13582 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13583 prelink_cmds_CXX='tpldir=Template.dir~
13584 rm -rf $tpldir~
13585 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13586 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13587 old_archive_cmds_CXX='tpldir=Template.dir~
13588 rm -rf $tpldir~
13589 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13590 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13591 $RANLIB $oldlib'
13592 archive_cmds_CXX='tpldir=Template.dir~
13593 rm -rf $tpldir~
13594 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13595 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13596 archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13600 ;;
13601 *) # Version 6 and above use weak symbols
13602 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13603 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'
13604 ;;
13605 esac
13606
13607 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13609 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'
13610 ;;
13611 cxx*)
13612 # Compaq C++
13613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614 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'
13615
13616 runpath_var=LD_RUN_PATH
13617 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13618 hardcode_libdir_separator_CXX=:
13619
13620 # Commands to make compiler produce verbose output that lists
13621 # what "hidden" libraries, object files and flags are used when
13622 # linking a shared library.
13623 #
13624 # There doesn't appear to be a way to prevent this compiler from
13625 # explicitly linking system object files so we need to strip them
13626 # from the output so that they don't get included in the library
13627 # dependencies.
13628 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'
13629 ;;
13630 xl* | mpixl* | bgxl*)
13631 # IBM XL 8.0 on PPC, with GNU ld
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13634 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 if test "x$supports_anon_versioning" = xyes; then
13636 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13638 echo "local: *; };" >> $output_objdir/$libname.ver~
13639 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13640 fi
13641 ;;
13642 *)
13643 case `$CC -V 2>&1 | sed 5q` in
13644 *Sun\ C*)
13645 # Sun C++ 5.9
13646 no_undefined_flag_CXX=' -zdefs'
13647 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648 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'
13649 hardcode_libdir_flag_spec_CXX='-R$libdir'
13650 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'
13651 compiler_needs_object_CXX=yes
13652
13653 # Not sure whether something based on
13654 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13655 # would be better.
13656 output_verbose_link_cmd='func_echo_all'
13657
13658 # Archives containing C++ object files must be created using
13659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13660 # necessary to make sure instantiated templates are included
13661 # in the archive.
13662 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13663 ;;
13664 esac
13665 ;;
13666 esac
13667 ;;
13668
13669 lynxos*)
13670 # FIXME: insert proper C++ library support
13671 ld_shlibs_CXX=no
13672 ;;
13673
13674 m88k*)
13675 # FIXME: insert proper C++ library support
13676 ld_shlibs_CXX=no
13677 ;;
13678
13679 mvs*)
13680 case $cc_basename in
13681 cxx*)
13682 # FIXME: insert proper C++ library support
13683 ld_shlibs_CXX=no
13684 ;;
13685 *)
13686 # FIXME: insert proper C++ library support
13687 ld_shlibs_CXX=no
13688 ;;
13689 esac
13690 ;;
13691
13692 netbsd*)
13693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13694 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13695 wlarc=
13696 hardcode_libdir_flag_spec_CXX='-R$libdir'
13697 hardcode_direct_CXX=yes
13698 hardcode_shlibpath_var_CXX=no
13699 fi
13700 # Workaround some broken pre-1.5 toolchains
13701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13702 ;;
13703
13704 *nto* | *qnx*)
13705 ld_shlibs_CXX=yes
13706 ;;
13707
13708 openbsd2*)
13709 # C++ shared libraries are fairly broken
13710 ld_shlibs_CXX=no
13711 ;;
13712
13713 openbsd*)
13714 if test -f /usr/libexec/ld.so; then
13715 hardcode_direct_CXX=yes
13716 hardcode_shlibpath_var_CXX=no
13717 hardcode_direct_absolute_CXX=yes
13718 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13721 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13722 export_dynamic_flag_spec_CXX='${wl}-E'
13723 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13724 fi
13725 output_verbose_link_cmd=func_echo_all
13726 else
13727 ld_shlibs_CXX=no
13728 fi
13729 ;;
13730
13731 osf3* | osf4* | osf5*)
13732 case $cc_basename in
13733 KCC*)
13734 # Kuck and Associates, Inc. (KAI) C++ Compiler
13735
13736 # KCC will only create a shared library if the output file
13737 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13738 # to its proper name (with version) after linking.
13739 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'
13740
13741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13742 hardcode_libdir_separator_CXX=:
13743
13744 # Archives containing C++ object files must be created using
13745 # the KAI C++ compiler.
13746 case $host in
13747 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13748 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13749 esac
13750 ;;
13751 RCC*)
13752 # Rational C++ 2.4.1
13753 # FIXME: insert proper C++ library support
13754 ld_shlibs_CXX=no
13755 ;;
13756 cxx*)
13757 case $host in
13758 osf3*)
13759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13760 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'
13761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13762 ;;
13763 *)
13764 allow_undefined_flag_CXX=' -expect_unresolved \*'
13765 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'
13766 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13767 echo "-hidden">> $lib.exp~
13768 $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~
13769 $RM $lib.exp'
13770 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13771 ;;
13772 esac
13773
13774 hardcode_libdir_separator_CXX=:
13775
13776 # Commands to make compiler produce verbose output that lists
13777 # what "hidden" libraries, object files and flags are used when
13778 # linking a shared library.
13779 #
13780 # There doesn't appear to be a way to prevent this compiler from
13781 # explicitly linking system object files so we need to strip them
13782 # from the output so that they don't get included in the library
13783 # dependencies.
13784 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"'
13785 ;;
13786 *)
13787 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13789 case $host in
13790 osf3*)
13791 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'
13792 ;;
13793 *)
13794 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'
13795 ;;
13796 esac
13797
13798 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13799 hardcode_libdir_separator_CXX=:
13800
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13805
13806 else
13807 # FIXME: insert proper C++ library support
13808 ld_shlibs_CXX=no
13809 fi
13810 ;;
13811 esac
13812 ;;
13813
13814 psos*)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
13818
13819 sunos4*)
13820 case $cc_basename in
13821 CC*)
13822 # Sun C++ 4.x
13823 # FIXME: insert proper C++ library support
13824 ld_shlibs_CXX=no
13825 ;;
13826 lcc*)
13827 # Lucid
13828 # FIXME: insert proper C++ library support
13829 ld_shlibs_CXX=no
13830 ;;
13831 *)
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13834 ;;
13835 esac
13836 ;;
13837
13838 solaris*)
13839 case $cc_basename in
13840 CC* | sunCC*)
13841 # Sun C++ 4.2, 5.x and Centerline C++
13842 archive_cmds_need_lc_CXX=yes
13843 no_undefined_flag_CXX=' -zdefs'
13844 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13846 $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'
13847
13848 hardcode_libdir_flag_spec_CXX='-R$libdir'
13849 hardcode_shlibpath_var_CXX=no
13850 case $host_os in
13851 solaris2.[0-5] | solaris2.[0-5].*) ;;
13852 *)
13853 # The compiler driver will combine and reorder linker options,
13854 # but understands `-z linker_flag'.
13855 # Supported since Solaris 2.6 (maybe 2.5.1?)
13856 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13857 ;;
13858 esac
13859 link_all_deplibs_CXX=yes
13860
13861 output_verbose_link_cmd='func_echo_all'
13862
13863 # Archives containing C++ object files must be created using
13864 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13865 # necessary to make sure instantiated templates are included
13866 # in the archive.
13867 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13868 ;;
13869 gcx*)
13870 # Green Hills C++ Compiler
13871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13872
13873 # The C++ compiler must be used to create the archive.
13874 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13875 ;;
13876 *)
13877 # GNU C++ compiler with Solaris linker
13878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13879 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13880 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13881 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13882 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13884
13885 # Commands to make compiler produce verbose output that lists
13886 # what "hidden" libraries, object files and flags are used when
13887 # linking a shared library.
13888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13889 else
13890 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13891 # platform.
13892 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13893 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13894 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13895
13896 # Commands to make compiler produce verbose output that lists
13897 # what "hidden" libraries, object files and flags are used when
13898 # linking a shared library.
13899 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13900 fi
13901
13902 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13903 case $host_os in
13904 solaris2.[0-5] | solaris2.[0-5].*) ;;
13905 *)
13906 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13907 ;;
13908 esac
13909 fi
13910 ;;
13911 esac
13912 ;;
13913
13914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13915 no_undefined_flag_CXX='${wl}-z,text'
13916 archive_cmds_need_lc_CXX=no
13917 hardcode_shlibpath_var_CXX=no
13918 runpath_var='LD_RUN_PATH'
13919
13920 case $cc_basename in
13921 CC*)
13922 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 ;;
13925 *)
13926 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928 ;;
13929 esac
13930 ;;
13931
13932 sysv5* | sco3.2v5* | sco5v6*)
13933 # Note: We can NOT use -z defs as we might desire, because we do not
13934 # link with -lc, and that would cause any symbols used from libc to
13935 # always be unresolved, which means just about no library would
13936 # ever link correctly. If we're not using GNU ld we use -z text
13937 # though, which does catch some bad symbols but isn't as heavy-handed
13938 # as -z defs.
13939 no_undefined_flag_CXX='${wl}-z,text'
13940 allow_undefined_flag_CXX='${wl}-z,nodefs'
13941 archive_cmds_need_lc_CXX=no
13942 hardcode_shlibpath_var_CXX=no
13943 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13944 hardcode_libdir_separator_CXX=':'
13945 link_all_deplibs_CXX=yes
13946 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13947 runpath_var='LD_RUN_PATH'
13948
13949 case $cc_basename in
13950 CC*)
13951 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13953 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13954 '"$old_archive_cmds_CXX"
13955 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13956 '"$reload_cmds_CXX"
13957 ;;
13958 *)
13959 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13961 ;;
13962 esac
13963 ;;
13964
13965 tandem*)
13966 case $cc_basename in
13967 NCC*)
13968 # NonStop-UX NCC 3.20
13969 # FIXME: insert proper C++ library support
13970 ld_shlibs_CXX=no
13971 ;;
13972 *)
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
13976 esac
13977 ;;
13978
13979 vxworks*)
13980 # FIXME: insert proper C++ library support
13981 ld_shlibs_CXX=no
13982 ;;
13983
13984 *)
13985 # FIXME: insert proper C++ library support
13986 ld_shlibs_CXX=no
13987 ;;
13988 esac
13989
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13991 $as_echo "$ld_shlibs_CXX" >&6; }
13992 test "$ld_shlibs_CXX" = no && can_build_shared=no
13993
13994 GCC_CXX="$GXX"
13995 LD_CXX="$LD"
13996
13997 ## CAVEAT EMPTOR:
13998 ## There is no encapsulation within the following macros, do not change
13999 ## the running order or otherwise move them around unless you know exactly
14000 ## what you are doing...
14001 # Dependencies to place before and after the object being linked:
14002 predep_objects_CXX=
14003 postdep_objects_CXX=
14004 predeps_CXX=
14005 postdeps_CXX=
14006 compiler_lib_search_path_CXX=
14007
14008 cat > conftest.$ac_ext <<_LT_EOF
14009 class Foo
14010 {
14011 public:
14012 Foo (void) { a = 0; }
14013 private:
14014 int a;
14015 };
14016 _LT_EOF
14017
14018
14019 _lt_libdeps_save_CFLAGS=$CFLAGS
14020 case "$CC $CFLAGS " in #(
14021 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14022 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14023 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14024 esac
14025
14026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14027 (eval $ac_compile) 2>&5
14028 ac_status=$?
14029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030 test $ac_status = 0; }; then
14031 # Parse the compiler output and extract the necessary
14032 # objects, libraries and library flags.
14033
14034 # Sentinel used to keep track of whether or not we are before
14035 # the conftest object file.
14036 pre_test_object_deps_done=no
14037
14038 for p in `eval "$output_verbose_link_cmd"`; do
14039 case ${prev}${p} in
14040
14041 -L* | -R* | -l*)
14042 # Some compilers place space between "-{L,R}" and the path.
14043 # Remove the space.
14044 if test $p = "-L" ||
14045 test $p = "-R"; then
14046 prev=$p
14047 continue
14048 fi
14049
14050 # Expand the sysroot to ease extracting the directories later.
14051 if test -z "$prev"; then
14052 case $p in
14053 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14054 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14055 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14056 esac
14057 fi
14058 case $p in
14059 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14060 esac
14061 if test "$pre_test_object_deps_done" = no; then
14062 case ${prev} in
14063 -L | -R)
14064 # Internal compiler library paths should come after those
14065 # provided the user. The postdeps already come after the
14066 # user supplied libs so there is no need to process them.
14067 if test -z "$compiler_lib_search_path_CXX"; then
14068 compiler_lib_search_path_CXX="${prev}${p}"
14069 else
14070 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14071 fi
14072 ;;
14073 # The "-l" case would never come before the object being
14074 # linked, so don't bother handling this case.
14075 esac
14076 else
14077 if test -z "$postdeps_CXX"; then
14078 postdeps_CXX="${prev}${p}"
14079 else
14080 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14081 fi
14082 fi
14083 prev=
14084 ;;
14085
14086 *.lto.$objext) ;; # Ignore GCC LTO objects
14087 *.$objext)
14088 # This assumes that the test object file only shows up
14089 # once in the compiler output.
14090 if test "$p" = "conftest.$objext"; then
14091 pre_test_object_deps_done=yes
14092 continue
14093 fi
14094
14095 if test "$pre_test_object_deps_done" = no; then
14096 if test -z "$predep_objects_CXX"; then
14097 predep_objects_CXX="$p"
14098 else
14099 predep_objects_CXX="$predep_objects_CXX $p"
14100 fi
14101 else
14102 if test -z "$postdep_objects_CXX"; then
14103 postdep_objects_CXX="$p"
14104 else
14105 postdep_objects_CXX="$postdep_objects_CXX $p"
14106 fi
14107 fi
14108 ;;
14109
14110 *) ;; # Ignore the rest.
14111
14112 esac
14113 done
14114
14115 # Clean up.
14116 rm -f a.out a.exe
14117 else
14118 echo "libtool.m4: error: problem compiling CXX test program"
14119 fi
14120
14121 $RM -f confest.$objext
14122 CFLAGS=$_lt_libdeps_save_CFLAGS
14123
14124 # PORTME: override above test on systems where it is broken
14125 case $host_os in
14126 interix[3-9]*)
14127 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14128 # hack all around it, let's just trust "g++" to DTRT.
14129 predep_objects_CXX=
14130 postdep_objects_CXX=
14131 postdeps_CXX=
14132 ;;
14133
14134 linux*)
14135 case `$CC -V 2>&1 | sed 5q` in
14136 *Sun\ C*)
14137 # Sun C++ 5.9
14138
14139 # The more standards-conforming stlport4 library is
14140 # incompatible with the Cstd library. Avoid specifying
14141 # it if it's in CXXFLAGS. Ignore libCrun as
14142 # -library=stlport4 depends on it.
14143 case " $CXX $CXXFLAGS " in
14144 *" -library=stlport4 "*)
14145 solaris_use_stlport4=yes
14146 ;;
14147 esac
14148
14149 if test "$solaris_use_stlport4" != yes; then
14150 postdeps_CXX='-library=Cstd -library=Crun'
14151 fi
14152 ;;
14153 esac
14154 ;;
14155
14156 solaris*)
14157 case $cc_basename in
14158 CC* | sunCC*)
14159 # The more standards-conforming stlport4 library is
14160 # incompatible with the Cstd library. Avoid specifying
14161 # it if it's in CXXFLAGS. Ignore libCrun as
14162 # -library=stlport4 depends on it.
14163 case " $CXX $CXXFLAGS " in
14164 *" -library=stlport4 "*)
14165 solaris_use_stlport4=yes
14166 ;;
14167 esac
14168
14169 # Adding this requires a known-good setup of shared libraries for
14170 # Sun compiler versions before 5.6, else PIC objects from an old
14171 # archive will be linked into the output, leading to subtle bugs.
14172 if test "$solaris_use_stlport4" != yes; then
14173 postdeps_CXX='-library=Cstd -library=Crun'
14174 fi
14175 ;;
14176 esac
14177 ;;
14178 esac
14179
14180
14181 case " $postdeps_CXX " in
14182 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14183 esac
14184 compiler_lib_search_dirs_CXX=
14185 if test -n "${compiler_lib_search_path_CXX}"; then
14186 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14187 fi
14188
14189
14190
14191
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 lt_prog_compiler_wl_CXX=
14220 lt_prog_compiler_pic_CXX=
14221 lt_prog_compiler_static_CXX=
14222
14223
14224 # C++ specific cases for pic, static, wl, etc.
14225 if test "$GXX" = yes; then
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_static_CXX='-static'
14228
14229 case $host_os in
14230 aix*)
14231 # All AIX code is PIC.
14232 if test "$host_cpu" = ia64; then
14233 # AIX 5 now supports IA64 processor
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 fi
14236 ;;
14237
14238 amigaos*)
14239 case $host_cpu in
14240 powerpc)
14241 # see comment about AmigaOS4 .so support
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 ;;
14244 m68k)
14245 # FIXME: we need at least 68020 code to build shared libraries, but
14246 # adding the `-m68020' flag to GCC prevents building anything better,
14247 # like `-m68040'.
14248 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14249 ;;
14250 esac
14251 ;;
14252
14253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14254 # PIC is the default for these OSes.
14255 ;;
14256 mingw* | cygwin* | os2* | pw32* | cegcc*)
14257 # This hack is so that the source file can tell whether it is being
14258 # built for inclusion in a dll (and should export symbols for example).
14259 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14260 # (--disable-auto-import) libraries
14261 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14262 ;;
14263 darwin* | rhapsody*)
14264 # PIC is the default on this platform
14265 # Common symbols not allowed in MH_DYLIB files
14266 lt_prog_compiler_pic_CXX='-fno-common'
14267 ;;
14268 *djgpp*)
14269 # DJGPP does not support shared libraries at all
14270 lt_prog_compiler_pic_CXX=
14271 ;;
14272 haiku*)
14273 # PIC is the default for Haiku.
14274 # The "-static" flag exists, but is broken.
14275 lt_prog_compiler_static_CXX=
14276 ;;
14277 interix[3-9]*)
14278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14279 # Instead, we relocate shared libraries at runtime.
14280 ;;
14281 sysv4*MP*)
14282 if test -d /usr/nec; then
14283 lt_prog_compiler_pic_CXX=-Kconform_pic
14284 fi
14285 ;;
14286 hpux*)
14287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14289 # sets the default TLS model and affects inlining.
14290 case $host_cpu in
14291 hppa*64*)
14292 ;;
14293 *)
14294 lt_prog_compiler_pic_CXX='-fPIC'
14295 ;;
14296 esac
14297 ;;
14298 *qnx* | *nto*)
14299 # QNX uses GNU C++, but need to define -shared option too, otherwise
14300 # it will coredump.
14301 lt_prog_compiler_pic_CXX='-fPIC -shared'
14302 ;;
14303 *)
14304 lt_prog_compiler_pic_CXX='-fPIC'
14305 ;;
14306 esac
14307 else
14308 case $host_os in
14309 aix[4-9]*)
14310 # All AIX code is PIC.
14311 if test "$host_cpu" = ia64; then
14312 # AIX 5 now supports IA64 processor
14313 lt_prog_compiler_static_CXX='-Bstatic'
14314 else
14315 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14316 fi
14317 ;;
14318 chorus*)
14319 case $cc_basename in
14320 cxch68*)
14321 # Green Hills C++ Compiler
14322 # _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"
14323 ;;
14324 esac
14325 ;;
14326 mingw* | cygwin* | os2* | pw32* | cegcc*)
14327 # This hack is so that the source file can tell whether it is being
14328 # built for inclusion in a dll (and should export symbols for example).
14329 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14330 ;;
14331 dgux*)
14332 case $cc_basename in
14333 ec++*)
14334 lt_prog_compiler_pic_CXX='-KPIC'
14335 ;;
14336 ghcx*)
14337 # Green Hills C++ Compiler
14338 lt_prog_compiler_pic_CXX='-pic'
14339 ;;
14340 *)
14341 ;;
14342 esac
14343 ;;
14344 freebsd* | dragonfly*)
14345 # FreeBSD uses GNU C++
14346 ;;
14347 hpux9* | hpux10* | hpux11*)
14348 case $cc_basename in
14349 CC*)
14350 lt_prog_compiler_wl_CXX='-Wl,'
14351 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14352 if test "$host_cpu" != ia64; then
14353 lt_prog_compiler_pic_CXX='+Z'
14354 fi
14355 ;;
14356 aCC*)
14357 lt_prog_compiler_wl_CXX='-Wl,'
14358 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14359 case $host_cpu in
14360 hppa*64*|ia64*)
14361 # +Z the default
14362 ;;
14363 *)
14364 lt_prog_compiler_pic_CXX='+Z'
14365 ;;
14366 esac
14367 ;;
14368 *)
14369 ;;
14370 esac
14371 ;;
14372 interix*)
14373 # This is c89, which is MS Visual C++ (no shared libs)
14374 # Anyone wants to do a port?
14375 ;;
14376 irix5* | irix6* | nonstopux*)
14377 case $cc_basename in
14378 CC*)
14379 lt_prog_compiler_wl_CXX='-Wl,'
14380 lt_prog_compiler_static_CXX='-non_shared'
14381 # CC pic flag -KPIC is the default.
14382 ;;
14383 *)
14384 ;;
14385 esac
14386 ;;
14387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14388 case $cc_basename in
14389 KCC*)
14390 # KAI C++ Compiler
14391 lt_prog_compiler_wl_CXX='--backend -Wl,'
14392 lt_prog_compiler_pic_CXX='-fPIC'
14393 ;;
14394 ecpc* )
14395 # old Intel C++ for x86_64 which still supported -KPIC.
14396 lt_prog_compiler_wl_CXX='-Wl,'
14397 lt_prog_compiler_pic_CXX='-KPIC'
14398 lt_prog_compiler_static_CXX='-static'
14399 ;;
14400 icpc* )
14401 # Intel C++, used to be incompatible with GCC.
14402 # ICC 10 doesn't accept -KPIC any more.
14403 lt_prog_compiler_wl_CXX='-Wl,'
14404 lt_prog_compiler_pic_CXX='-fPIC'
14405 lt_prog_compiler_static_CXX='-static'
14406 ;;
14407 pgCC* | pgcpp*)
14408 # Portland Group C++ compiler
14409 lt_prog_compiler_wl_CXX='-Wl,'
14410 lt_prog_compiler_pic_CXX='-fpic'
14411 lt_prog_compiler_static_CXX='-Bstatic'
14412 ;;
14413 cxx*)
14414 # Compaq C++
14415 # Make sure the PIC flag is empty. It appears that all Alpha
14416 # Linux and Compaq Tru64 Unix objects are PIC.
14417 lt_prog_compiler_pic_CXX=
14418 lt_prog_compiler_static_CXX='-non_shared'
14419 ;;
14420 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14421 # IBM XL 8.0, 9.0 on PPC and BlueGene
14422 lt_prog_compiler_wl_CXX='-Wl,'
14423 lt_prog_compiler_pic_CXX='-qpic'
14424 lt_prog_compiler_static_CXX='-qstaticlink'
14425 ;;
14426 *)
14427 case `$CC -V 2>&1 | sed 5q` in
14428 *Sun\ C*)
14429 # Sun C++ 5.9
14430 lt_prog_compiler_pic_CXX='-KPIC'
14431 lt_prog_compiler_static_CXX='-Bstatic'
14432 lt_prog_compiler_wl_CXX='-Qoption ld '
14433 ;;
14434 esac
14435 ;;
14436 esac
14437 ;;
14438 lynxos*)
14439 ;;
14440 m88k*)
14441 ;;
14442 mvs*)
14443 case $cc_basename in
14444 cxx*)
14445 lt_prog_compiler_pic_CXX='-W c,exportall'
14446 ;;
14447 *)
14448 ;;
14449 esac
14450 ;;
14451 netbsd*)
14452 ;;
14453 *qnx* | *nto*)
14454 # QNX uses GNU C++, but need to define -shared option too, otherwise
14455 # it will coredump.
14456 lt_prog_compiler_pic_CXX='-fPIC -shared'
14457 ;;
14458 osf3* | osf4* | osf5*)
14459 case $cc_basename in
14460 KCC*)
14461 lt_prog_compiler_wl_CXX='--backend -Wl,'
14462 ;;
14463 RCC*)
14464 # Rational C++ 2.4.1
14465 lt_prog_compiler_pic_CXX='-pic'
14466 ;;
14467 cxx*)
14468 # Digital/Compaq C++
14469 lt_prog_compiler_wl_CXX='-Wl,'
14470 # Make sure the PIC flag is empty. It appears that all Alpha
14471 # Linux and Compaq Tru64 Unix objects are PIC.
14472 lt_prog_compiler_pic_CXX=
14473 lt_prog_compiler_static_CXX='-non_shared'
14474 ;;
14475 *)
14476 ;;
14477 esac
14478 ;;
14479 psos*)
14480 ;;
14481 solaris*)
14482 case $cc_basename in
14483 CC* | sunCC*)
14484 # Sun C++ 4.2, 5.x and Centerline C++
14485 lt_prog_compiler_pic_CXX='-KPIC'
14486 lt_prog_compiler_static_CXX='-Bstatic'
14487 lt_prog_compiler_wl_CXX='-Qoption ld '
14488 ;;
14489 gcx*)
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-PIC'
14492 ;;
14493 *)
14494 ;;
14495 esac
14496 ;;
14497 sunos4*)
14498 case $cc_basename in
14499 CC*)
14500 # Sun C++ 4.x
14501 lt_prog_compiler_pic_CXX='-pic'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14503 ;;
14504 lcc*)
14505 # Lucid
14506 lt_prog_compiler_pic_CXX='-pic'
14507 ;;
14508 *)
14509 ;;
14510 esac
14511 ;;
14512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14513 case $cc_basename in
14514 CC*)
14515 lt_prog_compiler_wl_CXX='-Wl,'
14516 lt_prog_compiler_pic_CXX='-KPIC'
14517 lt_prog_compiler_static_CXX='-Bstatic'
14518 ;;
14519 esac
14520 ;;
14521 tandem*)
14522 case $cc_basename in
14523 NCC*)
14524 # NonStop-UX NCC 3.20
14525 lt_prog_compiler_pic_CXX='-KPIC'
14526 ;;
14527 *)
14528 ;;
14529 esac
14530 ;;
14531 vxworks*)
14532 ;;
14533 *)
14534 lt_prog_compiler_can_build_shared_CXX=no
14535 ;;
14536 esac
14537 fi
14538
14539 case $host_os in
14540 # For platforms which do not support PIC, -DPIC is meaningless:
14541 *djgpp*)
14542 lt_prog_compiler_pic_CXX=
14543 ;;
14544 *)
14545 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14546 ;;
14547 esac
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14550 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14551 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14555 fi
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14557 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14558 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14559
14560 #
14561 # Check to make sure the PIC flag actually works.
14562 #
14563 if test -n "$lt_prog_compiler_pic_CXX"; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14565 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14566 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 lt_cv_prog_compiler_pic_works_CXX=no
14570 ac_outfile=conftest.$ac_objext
14571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 # The option is referenced via a variable to avoid confusing sed.
14578 lt_compile=`echo "$ac_compile" | $SED \
14579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14581 -e 's:$: $lt_compiler_flag:'`
14582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14583 (eval "$lt_compile" 2>conftest.err)
14584 ac_status=$?
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 if (exit $ac_status) && test -s "$ac_outfile"; then
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings other than the usual output.
14590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_pic_works_CXX=yes
14594 fi
14595 fi
14596 $RM -r conftest*
14597
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14600 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14601
14602 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14603 case $lt_prog_compiler_pic_CXX in
14604 "" | " "*) ;;
14605 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14606 esac
14607 else
14608 lt_prog_compiler_pic_CXX=
14609 lt_prog_compiler_can_build_shared_CXX=no
14610 fi
14611
14612 fi
14613
14614
14615
14616
14617
14618 #
14619 # Check to make sure the static flag actually works.
14620 #
14621 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14624 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 lt_cv_prog_compiler_static_works_CXX=no
14628 save_LDFLAGS="$LDFLAGS"
14629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14632 # The linker can only warn and ignore the option if not recognized
14633 # So say no if there are warnings
14634 if test -s conftest.err; then
14635 # Append any errors to the config.log.
14636 cat conftest.err 1>&5
14637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14639 if diff conftest.exp conftest.er2 >/dev/null; then
14640 lt_cv_prog_compiler_static_works_CXX=yes
14641 fi
14642 else
14643 lt_cv_prog_compiler_static_works_CXX=yes
14644 fi
14645 fi
14646 $RM -r conftest*
14647 LDFLAGS="$save_LDFLAGS"
14648
14649 fi
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14651 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14652
14653 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14654 :
14655 else
14656 lt_prog_compiler_static_CXX=
14657 fi
14658
14659
14660
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14664 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 lt_cv_prog_compiler_c_o_CXX=no
14668 $RM -r conftest 2>/dev/null
14669 mkdir conftest
14670 cd conftest
14671 mkdir out
14672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14673
14674 lt_compiler_flag="-o out/conftest2.$ac_objext"
14675 # Insert the option either (1) after the last *FLAGS variable, or
14676 # (2) before a word containing "conftest.", or (3) at the end.
14677 # Note that $ac_compile itself does not contain backslashes and begins
14678 # with a dollar sign (not a hyphen), so the echo should work correctly.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
14683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14684 (eval "$lt_compile" 2>out/conftest.err)
14685 ac_status=$?
14686 cat out/conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689 then
14690 # The compiler can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
14692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_c_o_CXX=yes
14696 fi
14697 fi
14698 chmod u+w . 2>&5
14699 $RM -r conftest*
14700 # SGI C++ compiler will create directory out/ii_files/ for
14701 # template instantiation
14702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14703 $RM out/* && rmdir out
14704 cd ..
14705 $RM -r conftest
14706 $RM -r conftest*
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14711
14712
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14716 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 lt_cv_prog_compiler_c_o_CXX=no
14720 $RM -r conftest 2>/dev/null
14721 mkdir conftest
14722 cd conftest
14723 mkdir out
14724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726 lt_compiler_flag="-o out/conftest2.$ac_objext"
14727 # Insert the option either (1) after the last *FLAGS variable, or
14728 # (2) before a word containing "conftest.", or (3) at the end.
14729 # Note that $ac_compile itself does not contain backslashes and begins
14730 # with a dollar sign (not a hyphen), so the echo should work correctly.
14731 lt_compile=`echo "$ac_compile" | $SED \
14732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734 -e 's:$: $lt_compiler_flag:'`
14735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736 (eval "$lt_compile" 2>out/conftest.err)
14737 ac_status=$?
14738 cat out/conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741 then
14742 # The compiler can only warn and ignore the option if not recognized
14743 # So say no if there are warnings
14744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747 lt_cv_prog_compiler_c_o_CXX=yes
14748 fi
14749 fi
14750 chmod u+w . 2>&5
14751 $RM -r conftest*
14752 # SGI C++ compiler will create directory out/ii_files/ for
14753 # template instantiation
14754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14755 $RM out/* && rmdir out
14756 cd ..
14757 $RM -r conftest
14758 $RM -r conftest*
14759
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14762 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14763
14764
14765
14766
14767 hard_links="nottested"
14768 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14769 # do not overwrite the value of need_locks provided by the user
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14771 $as_echo_n "checking if we can lock with hard links... " >&6; }
14772 hard_links=yes
14773 $RM -r conftest*
14774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775 touch conftest.a
14776 ln conftest.a conftest.b 2>&5 || hard_links=no
14777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14779 $as_echo "$hard_links" >&6; }
14780 if test "$hard_links" = no; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14783 need_locks=warn
14784 fi
14785 else
14786 need_locks=no
14787 fi
14788
14789
14790
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14793
14794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14795 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14796 case $host_os in
14797 aix[4-9]*)
14798 # If we're using GNU nm, then we don't want the "-C" option.
14799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14800 # Also, AIX nm treats weak defined symbols like other global defined
14801 # symbols, whereas GNU nm marks them as "W".
14802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14803 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'
14804 else
14805 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'
14806 fi
14807 ;;
14808 pw32*)
14809 export_symbols_cmds_CXX="$ltdll_cmds"
14810 ;;
14811 cygwin* | mingw* | cegcc*)
14812 case $cc_basename in
14813 cl*)
14814 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14815 ;;
14816 *)
14817 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'
14818 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14819 ;;
14820 esac
14821 ;;
14822 *)
14823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14824 ;;
14825 esac
14826
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14828 $as_echo "$ld_shlibs_CXX" >&6; }
14829 test "$ld_shlibs_CXX" = no && can_build_shared=no
14830
14831 with_gnu_ld_CXX=$with_gnu_ld
14832
14833
14834
14835
14836
14837
14838 #
14839 # Do we need to explicitly link libc?
14840 #
14841 case "x$archive_cmds_need_lc_CXX" in
14842 x|xyes)
14843 # Assume -lc should be added
14844 archive_cmds_need_lc_CXX=yes
14845
14846 if test "$enable_shared" = yes && test "$GCC" = yes; then
14847 case $archive_cmds_CXX in
14848 *'~'*)
14849 # FIXME: we may have to deal with multi-command sequences.
14850 ;;
14851 '$CC '*)
14852 # Test whether the compiler implicitly links with -lc since on some
14853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14854 # to ld, don't add -lc before -lgcc.
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14856 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14857 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14858 $as_echo_n "(cached) " >&6
14859 else
14860 $RM -r conftest*
14861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14862
14863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14864 (eval $ac_compile) 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; } 2>conftest.err; then
14868 soname=conftest
14869 lib=conftest
14870 libobjs=conftest.$ac_objext
14871 deplibs=
14872 wl=$lt_prog_compiler_wl_CXX
14873 pic_flag=$lt_prog_compiler_pic_CXX
14874 compiler_flags=-v
14875 linker_flags=-v
14876 verstring=
14877 output_objdir=.
14878 libname=conftest
14879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14880 allow_undefined_flag_CXX=
14881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14883 ac_status=$?
14884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14885 test $ac_status = 0; }
14886 then
14887 lt_cv_archive_cmds_need_lc_CXX=no
14888 else
14889 lt_cv_archive_cmds_need_lc_CXX=yes
14890 fi
14891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14892 else
14893 cat conftest.err 1>&5
14894 fi
14895 $RM -r conftest*
14896
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14899 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14900 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14901 ;;
14902 esac
14903 fi
14904 ;;
14905 esac
14906
14907
14908
14909
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14969 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14970
14971 library_names_spec=
14972 libname_spec='lib$name'
14973 soname_spec=
14974 shrext_cmds=".so"
14975 postinstall_cmds=
14976 postuninstall_cmds=
14977 finish_cmds=
14978 finish_eval=
14979 shlibpath_var=
14980 shlibpath_overrides_runpath=unknown
14981 version_type=none
14982 dynamic_linker="$host_os ld.so"
14983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14984 need_lib_prefix=unknown
14985 hardcode_into_libs=no
14986
14987 # when you set need_version to no, make sure it does not cause -set_version
14988 # flags to be left without arguments
14989 need_version=unknown
14990
14991 case $host_os in
14992 aix3*)
14993 version_type=linux # correct to gnu/linux during the next big refactor
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14995 shlibpath_var=LIBPATH
14996
14997 # AIX 3 has no versioning support, so we append a major version to the name.
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 ;;
15000
15001 aix[4-9]*)
15002 version_type=linux # correct to gnu/linux during the next big refactor
15003 need_lib_prefix=no
15004 need_version=no
15005 hardcode_into_libs=yes
15006 if test "$host_cpu" = ia64; then
15007 # AIX 5 supports IA64
15008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 else
15011 # With GCC up to 2.95.x, collect2 would create an import file
15012 # for dependence libraries. The import file would start with
15013 # the line `#! .'. This would cause the generated library to
15014 # depend on `.', always an invalid library. This was fixed in
15015 # development snapshots of GCC prior to 3.0.
15016 case $host_os in
15017 aix4 | aix4.[01] | aix4.[01].*)
15018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15019 echo ' yes '
15020 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15021 :
15022 else
15023 can_build_shared=no
15024 fi
15025 ;;
15026 esac
15027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15028 # soname into executable. Probably we can add versioning support to
15029 # collect2, so additional links can be useful in future.
15030 if test "$aix_use_runtimelinking" = yes; then
15031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15032 # instead of lib<name>.a to let people know that these are not
15033 # typical AIX shared libraries.
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 else
15036 # We preserve .a as extension for shared libraries through AIX4.2
15037 # and later when we are not doing run time linking.
15038 library_names_spec='${libname}${release}.a $libname.a'
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 fi
15041 shlibpath_var=LIBPATH
15042 fi
15043 ;;
15044
15045 amigaos*)
15046 case $host_cpu in
15047 powerpc)
15048 # Since July 2007 AmigaOS4 officially supports .so libraries.
15049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15051 ;;
15052 m68k)
15053 library_names_spec='$libname.ixlibrary $libname.a'
15054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15055 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'
15056 ;;
15057 esac
15058 ;;
15059
15060 beos*)
15061 library_names_spec='${libname}${shared_ext}'
15062 dynamic_linker="$host_os ld.so"
15063 shlibpath_var=LIBRARY_PATH
15064 ;;
15065
15066 bsdi[45]*)
15067 version_type=linux # correct to gnu/linux during the next big refactor
15068 need_version=no
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15075 # the default ld.so.conf also contains /usr/contrib/lib and
15076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15077 # libtool to hard-code these into programs
15078 ;;
15079
15080 cygwin* | mingw* | pw32* | cegcc*)
15081 version_type=windows
15082 shrext_cmds=".dll"
15083 need_version=no
15084 need_lib_prefix=no
15085
15086 case $GCC,$cc_basename in
15087 yes,*)
15088 # gcc
15089 library_names_spec='$libname.dll.a'
15090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15091 postinstall_cmds='base_file=`basename \${file}`~
15092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15093 dldir=$destdir/`dirname \$dlpath`~
15094 test -d \$dldir || mkdir -p \$dldir~
15095 $install_prog $dir/$dlname \$dldir/$dlname~
15096 chmod a+x \$dldir/$dlname~
15097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15099 fi'
15100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15101 dlpath=$dir/\$dldll~
15102 $RM \$dlpath'
15103 shlibpath_overrides_runpath=yes
15104
15105 case $host_os in
15106 cygwin*)
15107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15109
15110 ;;
15111 mingw* | cegcc*)
15112 # MinGW DLLs use traditional 'lib' prefix
15113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15114 ;;
15115 pw32*)
15116 # pw32 DLLs use 'pw' prefix rather than 'lib'
15117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15118 ;;
15119 esac
15120 dynamic_linker='Win32 ld.exe'
15121 ;;
15122
15123 *,cl*)
15124 # Native MSVC
15125 libname_spec='$name'
15126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15127 library_names_spec='${libname}.dll.lib'
15128
15129 case $build_os in
15130 mingw*)
15131 sys_lib_search_path_spec=
15132 lt_save_ifs=$IFS
15133 IFS=';'
15134 for lt_path in $LIB
15135 do
15136 IFS=$lt_save_ifs
15137 # Let DOS variable expansion print the short 8.3 style file name.
15138 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15139 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15140 done
15141 IFS=$lt_save_ifs
15142 # Convert to MSYS style.
15143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15144 ;;
15145 cygwin*)
15146 # Convert to unix form, then to dos form, then back to unix form
15147 # but this time dos style (no spaces!) so that the unix form looks
15148 # like /cygdrive/c/PROGRA~1:/cygdr...
15149 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15150 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15151 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15152 ;;
15153 *)
15154 sys_lib_search_path_spec="$LIB"
15155 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15156 # It is most probably a Windows format PATH.
15157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15158 else
15159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15160 fi
15161 # FIXME: find the short name or the path components, as spaces are
15162 # common. (e.g. "Program Files" -> "PROGRA~1")
15163 ;;
15164 esac
15165
15166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15167 postinstall_cmds='base_file=`basename \${file}`~
15168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15169 dldir=$destdir/`dirname \$dlpath`~
15170 test -d \$dldir || mkdir -p \$dldir~
15171 $install_prog $dir/$dlname \$dldir/$dlname'
15172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15173 dlpath=$dir/\$dldll~
15174 $RM \$dlpath'
15175 shlibpath_overrides_runpath=yes
15176 dynamic_linker='Win32 link.exe'
15177 ;;
15178
15179 *)
15180 # Assume MSVC wrapper
15181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15182 dynamic_linker='Win32 ld.exe'
15183 ;;
15184 esac
15185 # FIXME: first we should search . and the directory the executable is in
15186 shlibpath_var=PATH
15187 ;;
15188
15189 darwin* | rhapsody*)
15190 dynamic_linker="$host_os dyld"
15191 version_type=darwin
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15195 soname_spec='${libname}${release}${major}$shared_ext'
15196 shlibpath_overrides_runpath=yes
15197 shlibpath_var=DYLD_LIBRARY_PATH
15198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15199
15200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15201 ;;
15202
15203 dgux*)
15204 version_type=linux # correct to gnu/linux during the next big refactor
15205 need_lib_prefix=no
15206 need_version=no
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 ;;
15211
15212 freebsd* | dragonfly*)
15213 # DragonFly does not have aout. When/if they implement a new
15214 # versioning mechanism, adjust this.
15215 if test -x /usr/bin/objformat; then
15216 objformat=`/usr/bin/objformat`
15217 else
15218 case $host_os in
15219 freebsd[23].*) objformat=aout ;;
15220 *) objformat=elf ;;
15221 esac
15222 fi
15223 version_type=freebsd-$objformat
15224 case $version_type in
15225 freebsd-elf*)
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15227 need_version=no
15228 need_lib_prefix=no
15229 ;;
15230 freebsd-*)
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15232 need_version=yes
15233 ;;
15234 esac
15235 shlibpath_var=LD_LIBRARY_PATH
15236 case $host_os in
15237 freebsd2.*)
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240 freebsd3.[01]* | freebsdelf3.[01]*)
15241 shlibpath_overrides_runpath=yes
15242 hardcode_into_libs=yes
15243 ;;
15244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15248 ;;
15249 *) # from 4.6 on, and DragonFly
15250 shlibpath_overrides_runpath=yes
15251 hardcode_into_libs=yes
15252 ;;
15253 esac
15254 ;;
15255
15256 gnu*)
15257 version_type=linux # correct to gnu/linux during the next big refactor
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=no
15264 hardcode_into_libs=yes
15265 ;;
15266
15267 haiku*)
15268 version_type=linux # correct to gnu/linux during the next big refactor
15269 need_lib_prefix=no
15270 need_version=no
15271 dynamic_linker="$host_os runtime_loader"
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LIBRARY_PATH
15275 shlibpath_overrides_runpath=yes
15276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15277 hardcode_into_libs=yes
15278 ;;
15279
15280 hpux9* | hpux10* | hpux11*)
15281 # Give a soname corresponding to the major version so that dld.sl refuses to
15282 # link against other versions.
15283 version_type=sunos
15284 need_lib_prefix=no
15285 need_version=no
15286 case $host_cpu in
15287 ia64*)
15288 shrext_cmds='.so'
15289 hardcode_into_libs=yes
15290 dynamic_linker="$host_os dld.so"
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 if test "X$HPUX_IA64_MODE" = X32; then
15296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15297 else
15298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15299 fi
15300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15301 ;;
15302 hppa*64*)
15303 shrext_cmds='.sl'
15304 hardcode_into_libs=yes
15305 dynamic_linker="$host_os dld.sl"
15306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309 soname_spec='${libname}${release}${shared_ext}$major'
15310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15312 ;;
15313 *)
15314 shrext_cmds='.sl'
15315 dynamic_linker="$host_os dld.sl"
15316 shlibpath_var=SHLIB_PATH
15317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 ;;
15321 esac
15322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15323 postinstall_cmds='chmod 555 $lib'
15324 # or fails outright, so override atomically:
15325 install_override_mode=555
15326 ;;
15327
15328 interix[3-9]*)
15329 version_type=linux # correct to gnu/linux during the next big refactor
15330 need_lib_prefix=no
15331 need_version=no
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=no
15337 hardcode_into_libs=yes
15338 ;;
15339
15340 irix5* | irix6* | nonstopux*)
15341 case $host_os in
15342 nonstopux*) version_type=nonstopux ;;
15343 *)
15344 if test "$lt_cv_prog_gnu_ld" = yes; then
15345 version_type=linux # correct to gnu/linux during the next big refactor
15346 else
15347 version_type=irix
15348 fi ;;
15349 esac
15350 need_lib_prefix=no
15351 need_version=no
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15354 case $host_os in
15355 irix5* | nonstopux*)
15356 libsuff= shlibsuff=
15357 ;;
15358 *)
15359 case $LD in # libtool.m4 will add one of these switches to LD
15360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15361 libsuff= shlibsuff= libmagic=32-bit;;
15362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15363 libsuff=32 shlibsuff=N32 libmagic=N32;;
15364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15366 *) libsuff= shlibsuff= libmagic=never-match;;
15367 esac
15368 ;;
15369 esac
15370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15371 shlibpath_overrides_runpath=no
15372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15374 hardcode_into_libs=yes
15375 ;;
15376
15377 # No shared lib support for Linux oldld, aout, or coff.
15378 linux*oldld* | linux*aout* | linux*coff*)
15379 dynamic_linker=no
15380 ;;
15381
15382 # This must be glibc/ELF.
15383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15384 version_type=linux # correct to gnu/linux during the next big refactor
15385 need_lib_prefix=no
15386 need_version=no
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=no
15392
15393 # Some binutils ld are patched to set DT_RUNPATH
15394 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 lt_cv_shlibpath_overrides_runpath=no
15398 save_LDFLAGS=$LDFLAGS
15399 save_libdir=$libdir
15400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404
15405 int
15406 main ()
15407 {
15408
15409 ;
15410 return 0;
15411 }
15412 _ACEOF
15413 if ac_fn_cxx_try_link "$LINENO"; then :
15414 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15415 lt_cv_shlibpath_overrides_runpath=yes
15416 fi
15417 fi
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LDFLAGS=$save_LDFLAGS
15421 libdir=$save_libdir
15422
15423 fi
15424
15425 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15426
15427 # This implies no fast_install, which is unacceptable.
15428 # Some rework will be needed to allow for fast_install
15429 # before this can be enabled.
15430 hardcode_into_libs=yes
15431
15432 # Append ld.so.conf contents to the search path
15433 if test -f /etc/ld.so.conf; then
15434 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' ' '`
15435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15436 fi
15437
15438 # We used to test for /lib/ld.so.1 and disable shared libraries on
15439 # powerpc, because MkLinux only supported shared libraries with the
15440 # GNU dynamic linker. Since this was broken with cross compilers,
15441 # most powerpc-linux boxes support dynamic linking these days and
15442 # people can always --disable-shared, the test was removed, and we
15443 # assume the GNU/Linux dynamic linker is in use.
15444 dynamic_linker='GNU/Linux ld.so'
15445 ;;
15446
15447 netbsd*)
15448 version_type=sunos
15449 need_lib_prefix=no
15450 need_version=no
15451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15454 dynamic_linker='NetBSD (a.out) ld.so'
15455 else
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 dynamic_linker='NetBSD ld.elf_so'
15459 fi
15460 shlibpath_var=LD_LIBRARY_PATH
15461 shlibpath_overrides_runpath=yes
15462 hardcode_into_libs=yes
15463 ;;
15464
15465 newsos6)
15466 version_type=linux # correct to gnu/linux during the next big refactor
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=yes
15470 ;;
15471
15472 *nto* | *qnx*)
15473 version_type=qnx
15474 need_lib_prefix=no
15475 need_version=no
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=no
15480 hardcode_into_libs=yes
15481 dynamic_linker='ldqnx.so'
15482 ;;
15483
15484 openbsd*)
15485 version_type=sunos
15486 sys_lib_dlsearch_path_spec="/usr/lib"
15487 need_lib_prefix=no
15488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15489 case $host_os in
15490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15491 *) need_version=no ;;
15492 esac
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15497 case $host_os in
15498 openbsd2.[89] | openbsd2.[89].*)
15499 shlibpath_overrides_runpath=no
15500 ;;
15501 *)
15502 shlibpath_overrides_runpath=yes
15503 ;;
15504 esac
15505 else
15506 shlibpath_overrides_runpath=yes
15507 fi
15508 ;;
15509
15510 os2*)
15511 libname_spec='$name'
15512 shrext_cmds=".dll"
15513 need_lib_prefix=no
15514 library_names_spec='$libname${shared_ext} $libname.a'
15515 dynamic_linker='OS/2 ld.exe'
15516 shlibpath_var=LIBPATH
15517 ;;
15518
15519 osf3* | osf4* | osf5*)
15520 version_type=osf
15521 need_lib_prefix=no
15522 need_version=no
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15528 ;;
15529
15530 rdos*)
15531 dynamic_linker=no
15532 ;;
15533
15534 solaris*)
15535 version_type=linux # correct to gnu/linux during the next big refactor
15536 need_lib_prefix=no
15537 need_version=no
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15542 hardcode_into_libs=yes
15543 # ldd complains unless libraries are executable
15544 postinstall_cmds='chmod +x $lib'
15545 ;;
15546
15547 sunos4*)
15548 version_type=sunos
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=yes
15553 if test "$with_gnu_ld" = yes; then
15554 need_lib_prefix=no
15555 fi
15556 need_version=yes
15557 ;;
15558
15559 sysv4 | sysv4.3*)
15560 version_type=linux # correct to gnu/linux during the next big refactor
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 case $host_vendor in
15565 sni)
15566 shlibpath_overrides_runpath=no
15567 need_lib_prefix=no
15568 runpath_var=LD_RUN_PATH
15569 ;;
15570 siemens)
15571 need_lib_prefix=no
15572 ;;
15573 motorola)
15574 need_lib_prefix=no
15575 need_version=no
15576 shlibpath_overrides_runpath=no
15577 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15578 ;;
15579 esac
15580 ;;
15581
15582 sysv4*MP*)
15583 if test -d /usr/nec ;then
15584 version_type=linux # correct to gnu/linux during the next big refactor
15585 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15586 soname_spec='$libname${shared_ext}.$major'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 fi
15589 ;;
15590
15591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15592 version_type=freebsd-elf
15593 need_lib_prefix=no
15594 need_version=no
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15596 soname_spec='${libname}${release}${shared_ext}$major'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=yes
15599 hardcode_into_libs=yes
15600 if test "$with_gnu_ld" = yes; then
15601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15602 else
15603 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15604 case $host_os in
15605 sco3.2v5*)
15606 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15607 ;;
15608 esac
15609 fi
15610 sys_lib_dlsearch_path_spec='/usr/lib'
15611 ;;
15612
15613 tpf*)
15614 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15615 version_type=linux # correct to gnu/linux during the next big refactor
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=no
15621 hardcode_into_libs=yes
15622 ;;
15623
15624 uts4*)
15625 version_type=linux # correct to gnu/linux during the next big refactor
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 ;;
15630
15631 *)
15632 dynamic_linker=no
15633 ;;
15634 esac
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15636 $as_echo "$dynamic_linker" >&6; }
15637 test "$dynamic_linker" = no && can_build_shared=no
15638
15639 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15640 if test "$GCC" = yes; then
15641 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15642 fi
15643
15644 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15645 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15646 fi
15647 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15648 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15649 fi
15650
15651
15652
15653
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15689 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15690 hardcode_action_CXX=
15691 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15692 test -n "$runpath_var_CXX" ||
15693 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15694
15695 # We can hardcode non-existent directories.
15696 if test "$hardcode_direct_CXX" != no &&
15697 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15698 # have to relink, otherwise we might link with an installed library
15699 # when we should be linking with a yet-to-be-installed one
15700 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15701 test "$hardcode_minus_L_CXX" != no; then
15702 # Linking always hardcodes the temporary library directory.
15703 hardcode_action_CXX=relink
15704 else
15705 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15706 hardcode_action_CXX=immediate
15707 fi
15708 else
15709 # We cannot hardcode anything, or else we can only hardcode existing
15710 # directories.
15711 hardcode_action_CXX=unsupported
15712 fi
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15714 $as_echo "$hardcode_action_CXX" >&6; }
15715
15716 if test "$hardcode_action_CXX" = relink ||
15717 test "$inherit_rpath_CXX" = yes; then
15718 # Fast installation is not supported
15719 enable_fast_install=no
15720 elif test "$shlibpath_overrides_runpath" = yes ||
15721 test "$enable_shared" = no; then
15722 # Fast installation is not necessary
15723 enable_fast_install=needless
15724 fi
15725
15726
15727
15728
15729
15730
15731
15732 fi # test -n "$compiler"
15733
15734 CC=$lt_save_CC
15735 CFLAGS=$lt_save_CFLAGS
15736 LDCXX=$LD
15737 LD=$lt_save_LD
15738 GCC=$lt_save_GCC
15739 with_gnu_ld=$lt_save_with_gnu_ld
15740 lt_cv_path_LDCXX=$lt_cv_path_LD
15741 lt_cv_path_LD=$lt_save_path_LD
15742 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15743 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15744 fi # test "$_lt_caught_CXX_error" != yes
15745
15746 ac_ext=c
15747 ac_cpp='$CPP $CPPFLAGS'
15748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766 ac_config_commands="$ac_config_commands libtool"
15767
15768
15769
15770
15771 # Only expand once:
15772
15773
15774
15775 ac_ext=cpp
15776 ac_cpp='$CXXCPP $CPPFLAGS'
15777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15780
15781
15782
15783
15784
15785
15786
15787
15788 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15789 if test -n "$ac_tool_prefix"; then
15790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793 $as_echo_n "checking for $ac_word... " >&6; }
15794 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 case $PKG_CONFIG in
15798 [\\/]* | ?:[\\/]*)
15799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15800 ;;
15801 *)
15802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15803 for as_dir in $PATH
15804 do
15805 IFS=$as_save_IFS
15806 test -z "$as_dir" && as_dir=.
15807 for ac_exec_ext in '' $ac_executable_extensions; do
15808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15811 break 2
15812 fi
15813 done
15814 done
15815 IFS=$as_save_IFS
15816
15817 ;;
15818 esac
15819 fi
15820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15821 if test -n "$PKG_CONFIG"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15823 $as_echo "$PKG_CONFIG" >&6; }
15824 else
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15827 fi
15828
15829
15830 fi
15831 if test -z "$ac_cv_path_PKG_CONFIG"; then
15832 ac_pt_PKG_CONFIG=$PKG_CONFIG
15833 # Extract the first word of "pkg-config", so it can be a program name with args.
15834 set dummy pkg-config; ac_word=$2
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15836 $as_echo_n "checking for $ac_word... " >&6; }
15837 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 case $ac_pt_PKG_CONFIG in
15841 [\\/]* | ?:[\\/]*)
15842 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15843 ;;
15844 *)
15845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846 for as_dir in $PATH
15847 do
15848 IFS=$as_save_IFS
15849 test -z "$as_dir" && as_dir=.
15850 for ac_exec_ext in '' $ac_executable_extensions; do
15851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15854 break 2
15855 fi
15856 done
15857 done
15858 IFS=$as_save_IFS
15859
15860 ;;
15861 esac
15862 fi
15863 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15864 if test -n "$ac_pt_PKG_CONFIG"; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15866 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15867 else
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15869 $as_echo "no" >&6; }
15870 fi
15871
15872 if test "x$ac_pt_PKG_CONFIG" = x; then
15873 PKG_CONFIG=""
15874 else
15875 case $cross_compiling:$ac_tool_warned in
15876 yes:)
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15879 ac_tool_warned=yes ;;
15880 esac
15881 PKG_CONFIG=$ac_pt_PKG_CONFIG
15882 fi
15883 else
15884 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15885 fi
15886
15887 fi
15888 if test -n "$PKG_CONFIG"; then
15889 _pkg_min_version=0.22
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15891 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15892 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15894 $as_echo "yes" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15898 PKG_CONFIG=""
15899 fi
15900 fi
15901
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
15903 $as_echo_n "checking for GNU make... " >&6; }
15904 if ${_cv_gnu_make_command+:} false; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 _cv_gnu_make_command='' ;
15908 for a in "$MAKE" make gmake gnumake ; do
15909 if test -z "$a" ; then continue ; fi ;
15910 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
15911 _cv_gnu_make_command=$a ;
15912 break;
15913 fi
15914 done ;
15915
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
15918 $as_echo "$_cv_gnu_make_command" >&6; } ;
15919 if test "x$_cv_gnu_make_command" != "x" ; then
15920 ifGNUmake='' ;
15921 else
15922 ifGNUmake='#' ;
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
15924 $as_echo "\"Not found\"" >&6; };
15925 fi
15926
15927
15928 GMAKE=$_cv_gnu_make_command
15929
15930 if test "x$GMAKE" = x; then :
15931 as_fn_error $? "You need GNU make" "$LINENO" 5
15932 fi
15933
15934 # Extract the first word of "bash", so it can be a program name with args.
15935 set dummy bash; ac_word=$2
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15937 $as_echo_n "checking for $ac_word... " >&6; }
15938 if ${ac_cv_path__BASH+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 case $_BASH in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path__BASH="$_BASH" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947 for as_dir in $PATH
15948 do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path__BASH="$as_dir/$ac_word$ac_exec_ext"
15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957 done
15958 done
15959 IFS=$as_save_IFS
15960
15961 test -z "$ac_cv_path__BASH" && ac_cv_path__BASH="as_fn_error $? "missing \"bash\"" "$LINENO" 5"
15962 ;;
15963 esac
15964 fi
15965 _BASH=$ac_cv_path__BASH
15966 if test -n "$_BASH"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_BASH" >&5
15968 $as_echo "$_BASH" >&6; }
15969 else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15972 fi
15973
15974
15975 # Extract the first word of "git", so it can be a program name with args.
15976 set dummy git; ac_word=$2
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15978 $as_echo_n "checking for $ac_word... " >&6; }
15979 if ${ac_cv_path_GIT+:} false; then :
15980 $as_echo_n "(cached) " >&6
15981 else
15982 case $GIT in
15983 [\\/]* | ?:[\\/]*)
15984 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
15985 ;;
15986 *)
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988 for as_dir in $PATH
15989 do
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
15992 for ac_exec_ext in '' $ac_executable_extensions; do
15993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15994 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
15995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15996 break 2
15997 fi
15998 done
15999 done
16000 IFS=$as_save_IFS
16001
16002 ;;
16003 esac
16004 fi
16005 GIT=$ac_cv_path_GIT
16006 if test -n "$GIT"; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16008 $as_echo "$GIT" >&6; }
16009 else
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011 $as_echo "no" >&6; }
16012 fi
16013
16014
16015 # Extract the first word of "time", so it can be a program name with args.
16016 set dummy time; ac_word=$2
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16018 $as_echo_n "checking for $ac_word... " >&6; }
16019 if ${ac_cv_path_TIME+:} false; then :
16020 $as_echo_n "(cached) " >&6
16021 else
16022 case $TIME in
16023 [\\/]* | ?:[\\/]*)
16024 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16025 ;;
16026 *)
16027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028 for as_dir in $PATH
16029 do
16030 IFS=$as_save_IFS
16031 test -z "$as_dir" && as_dir=.
16032 for ac_exec_ext in '' $ac_executable_extensions; do
16033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16034 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16036 break 2
16037 fi
16038 done
16039 done
16040 IFS=$as_save_IFS
16041
16042 ;;
16043 esac
16044 fi
16045 TIME=$ac_cv_path_TIME
16046 if test -n "$TIME"; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16048 $as_echo "$TIME" >&6; }
16049 else
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16052 fi
16053
16054
16055
16056
16057
16058
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16061 $as_echo_n "checking for bison >= 2.3... " >&6; }
16062 if test -z "$BISON"; then
16063 ac_path_BISON_found=false
16064 # Loop through the user's path and test for each of PROGNAME-LIST
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066 for as_dir in $PATH
16067 do
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
16070 for ac_prog in bison; do
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16073 as_fn_executable_p "$ac_path_BISON" || continue
16074 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16075 if ${version:+false} :; then :
16076
16077 else
16078 as_awk_strverscmp='
16079 # Use only awk features that work with 7th edition Unix awk (1978).
16080 # My, what an old awk you have, Mr. Solaris!
16081 END {
16082 while (length(v1) && length(v2)) {
16083 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16084 # Normally this is a single character, but if v1 and v2 contain digits,
16085 # compare them as integers and fractions as strverscmp does.
16086 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16087 # Split v1 and v2 into their leading digit string components d1 and d2,
16088 # and advance v1 and v2 past the leading digit strings.
16089 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16090 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16091 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16092 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16093 if (d1 ~ /^0/) {
16094 if (d2 ~ /^0/) {
16095 # Compare two fractions.
16096 while (d1 ~ /^0/ && d2 ~ /^0/) {
16097 d1 = substr(d1, 2); len1--
16098 d2 = substr(d2, 2); len2--
16099 }
16100 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16101 # The two components differ in length, and the common prefix
16102 # contains only leading zeros. Consider the longer to be less.
16103 d1 = -len1
16104 d2 = -len2
16105 } else {
16106 # Otherwise, compare as strings.
16107 d1 = "x" d1
16108 d2 = "x" d2
16109 }
16110 } else {
16111 # A fraction is less than an integer.
16112 exit 1
16113 }
16114 } else {
16115 if (d2 ~ /^0/) {
16116 # An integer is greater than a fraction.
16117 exit 2
16118 } else {
16119 # Compare two integers.
16120 d1 += 0
16121 d2 += 0
16122 }
16123 }
16124 } else {
16125 # The normal case, without worrying about digits.
16126 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16127 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16128 }
16129 if (d1 < d2) exit 1
16130 if (d1 > d2) exit 2
16131 }
16132 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16133 # which mishandles some comparisons of empty strings to integers.
16134 if (length(v2)) exit 1
16135 if (length(v1)) exit 2
16136 }
16137 '
16138 as_arg_v1=$version
16139 as_arg_v2=2.3
16140 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16141 case $? in #(
16142 1) :
16143 ;; #(
16144 0) :
16145 ac_cv_path_BISON=$ac_path_BISON ;; #(
16146 2) :
16147 ac_cv_path_BISON=$ac_path_BISON ;; #(
16148 *) :
16149 ;;
16150 esac
16151 fi
16152
16153 $ac_path_BISON_found && break 3
16154 done
16155 done
16156 done
16157 IFS=$as_save_IFS
16158 if test -z "$ac_cv_path_BISON"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16160 $as_echo "no" >&6; }
16161 fi
16162 else
16163 ac_cv_path_BISON=$BISON
16164 fi
16165
16166
16167 if true; then :
16168
16169 BISON=$ac_cv_path_BISON
16170
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16172 $as_echo "$BISON" >&6; }
16173
16174 else
16175 if true; then :
16176
16177 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16178
16179 else
16180
16181 BISON=:
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16185
16186 fi
16187 fi
16188
16189
16190
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16193 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16194 if test -z "$FLEX"; then
16195 ac_path_FLEX_found=false
16196 # Loop through the user's path and test for each of PROGNAME-LIST
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16199 do
16200 IFS=$as_save_IFS
16201 test -z "$as_dir" && as_dir=.
16202 for ac_prog in flex; do
16203 for ac_exec_ext in '' $ac_executable_extensions; do
16204 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16205 as_fn_executable_p "$ac_path_FLEX" || continue
16206 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16207 if ${version:+false} :; then :
16208
16209 else
16210 as_arg_v1=$version
16211 as_arg_v2=2.5.33
16212 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16213 case $? in #(
16214 1) :
16215 ;; #(
16216 0) :
16217 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16218 2) :
16219 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16220 *) :
16221 ;;
16222 esac
16223 fi
16224
16225 $ac_path_FLEX_found && break 3
16226 done
16227 done
16228 done
16229 IFS=$as_save_IFS
16230 if test -z "$ac_cv_path_FLEX"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16232 $as_echo "no" >&6; }
16233 fi
16234 else
16235 ac_cv_path_FLEX=$FLEX
16236 fi
16237
16238
16239 if true; then :
16240
16241 FLEX=$ac_cv_path_FLEX
16242
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16244 $as_echo "$FLEX" >&6; }
16245
16246 else
16247 if true; then :
16248
16249 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16250
16251 else
16252
16253 FLEX=:
16254
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16256 $as_echo "no" >&6; }
16257
16258 fi
16259 fi
16260
16261
16262
16263
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16265 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16266 if test -z "$GPERF"; then
16267 ac_path_GPERF_found=false
16268 # Loop through the user's path and test for each of PROGNAME-LIST
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16271 do
16272 IFS=$as_save_IFS
16273 test -z "$as_dir" && as_dir=.
16274 for ac_prog in gperf; do
16275 for ac_exec_ext in '' $ac_executable_extensions; do
16276 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16277 as_fn_executable_p "$ac_path_GPERF" || continue
16278 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16279 if ${version:+false} :; then :
16280
16281 else
16282 as_arg_v1=$version
16283 as_arg_v2=3.0.3
16284 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16285 case $? in #(
16286 1) :
16287 ;; #(
16288 0) :
16289 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16290 2) :
16291 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16292 *) :
16293 ;;
16294 esac
16295 fi
16296
16297 $ac_path_GPERF_found && break 3
16298 done
16299 done
16300 done
16301 IFS=$as_save_IFS
16302 if test -z "$ac_cv_path_GPERF"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16305 fi
16306 else
16307 ac_cv_path_GPERF=$GPERF
16308 fi
16309
16310
16311 if true; then :
16312
16313 GPERF=$ac_cv_path_GPERF
16314
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16316 $as_echo "$GPERF" >&6; }
16317
16318 else
16319 if true; then :
16320
16321 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16322
16323 else
16324
16325 GPERF=:
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16329
16330 fi
16331 fi
16332
16333
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16337 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16338 if test -z "$GNUTAR"; then
16339 ac_path_GNUTAR_found=false
16340 # Loop through the user's path and test for each of PROGNAME-LIST
16341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16342 for as_dir in $PATH
16343 do
16344 IFS=$as_save_IFS
16345 test -z "$as_dir" && as_dir=.
16346 for ac_prog in tar gtar gnutar; do
16347 for ac_exec_ext in '' $ac_executable_extensions; do
16348 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16349 as_fn_executable_p "$ac_path_GNUTAR" || continue
16350 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16351 if ${version:+false} :; then :
16352
16353 else
16354 as_arg_v1=$version
16355 as_arg_v2=1.19
16356 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16357 case $? in #(
16358 1) :
16359 ;; #(
16360 0) :
16361 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16362 2) :
16363 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16364 *) :
16365 ;;
16366 esac
16367 fi
16368
16369 $ac_path_GNUTAR_found && break 3
16370 done
16371 done
16372 done
16373 IFS=$as_save_IFS
16374 if test -z "$ac_cv_path_GNUTAR"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16377 fi
16378 else
16379 ac_cv_path_GNUTAR=$GNUTAR
16380 fi
16381
16382
16383 if true; then :
16384
16385 GNUTAR=$ac_cv_path_GNUTAR
16386
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16388 $as_echo "$GNUTAR" >&6; }
16389
16390 else
16391 if true; then :
16392
16393 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16394
16395 else
16396
16397 GNUTAR=:
16398
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400 $as_echo "no" >&6; }
16401
16402 fi
16403 fi
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414 if ${CFLAGS+:} false; then :
16415 case " $CFLAGS " in
16416 *" "*)
16417 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
16418 (: CFLAGS already contains ) 2>&5
16419 ac_status=$?
16420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16421 test $ac_status = 0; }
16422 ;;
16423 *)
16424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
16425 (: CFLAGS="$CFLAGS ") 2>&5
16426 ac_status=$?
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }
16429 CFLAGS="$CFLAGS "
16430 ;;
16431 esac
16432 else
16433 CFLAGS=""
16434 fi
16435
16436 ac_ext=c
16437 ac_cpp='$CPP $CPPFLAGS'
16438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16443 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16444 if ${ac_cv_cflags_warn_all+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 ac_cv_cflags_warn_all="no, unknown"
16448 ac_save_CFLAGS="$CFLAGS"
16449 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" #
16450 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453
16454 int
16455 main ()
16456 {
16457
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16464 fi
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 done
16467 CFLAGS="$ac_save_CFLAGS"
16468
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16471 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16472
16473 case ".$ac_cv_cflags_warn_all" in
16474 .ok|.ok,*) ;;
16475 .|.no|.no,*) ;;
16476 *) if ${CFLAGS+:} false; then :
16477 case " $CFLAGS " in
16478 *" $ac_cv_cflags_warn_all "*)
16479 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16480 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16481 ac_status=$?
16482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16483 test $ac_status = 0; }
16484 ;;
16485 *)
16486 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16487 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16488 ac_status=$?
16489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16490 test $ac_status = 0; }
16491 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16492 ;;
16493 esac
16494 else
16495 CFLAGS="$ac_cv_cflags_warn_all"
16496 fi
16497 ;;
16498 esac
16499
16500 ac_ext=cpp
16501 ac_cpp='$CXXCPP $CPPFLAGS'
16502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16505
16506
16507 ac_ext=cpp
16508 ac_cpp='$CXXCPP $CPPFLAGS'
16509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16512
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16514 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16515 if ${ac_cv_cxxflags_warn_all+:} false; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 ac_cv_cxxflags_warn_all="no, unknown"
16519 ac_save_CXXFLAGS="$CXXFLAGS"
16520 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" #
16521 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524
16525 int
16526 main ()
16527 {
16528
16529 ;
16530 return 0;
16531 }
16532 _ACEOF
16533 if ac_fn_cxx_try_compile "$LINENO"; then :
16534 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16537 done
16538 CXXFLAGS="$ac_save_CXXFLAGS"
16539
16540 fi
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16542 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16543
16544 case ".$ac_cv_cxxflags_warn_all" in
16545 .ok|.ok,*) ;;
16546 .|.no|.no,*) ;;
16547 *) if ${CXXFLAGS+:} false; then :
16548 case " $CXXFLAGS " in
16549 *" $ac_cv_cxxflags_warn_all "*)
16550 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16551 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16552 ac_status=$?
16553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16554 test $ac_status = 0; }
16555 ;;
16556 *)
16557 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16558 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16559 ac_status=$?
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }
16562 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16563 ;;
16564 esac
16565 else
16566 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16567 fi
16568 ;;
16569 esac
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
16578
16579
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-overloaded-virtual" >&5
16581 $as_echo_n "checking for -Wno-overloaded-virtual... " >&6; }
16582
16583 cy_save=$CXXFLAGS
16584
16585 for element in -Wno-overloaded-virtual; do
16586 haveit=
16587 for x in $CXXFLAGS; do
16588
16589 acl_save_prefix="$prefix"
16590 prefix="$acl_final_prefix"
16591 acl_save_exec_prefix="$exec_prefix"
16592 exec_prefix="$acl_final_exec_prefix"
16593 eval x=\"$x\"
16594 exec_prefix="$acl_save_exec_prefix"
16595 prefix="$acl_save_prefix"
16596
16597 if test "X$x" = "X$element"; then
16598 haveit=yes
16599 break
16600 fi
16601 done
16602 if test -z "$haveit"; then
16603 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16604 fi
16605 done
16606
16607
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h. */
16610
16611 _ACEOF
16612 if ac_fn_cxx_try_compile "$LINENO"; then :
16613 cy_good=1
16614 else
16615 cy_good=0
16616 fi
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618
16619 CXXFLAGS=$cy_save
16620 if test "x$cy_good" = x1; then :
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622 $as_echo "yes" >&6; }
16623
16624
16625 for element in -Wno-overloaded-virtual; do
16626 haveit=
16627 for x in $CFLAGS; do
16628
16629 acl_save_prefix="$prefix"
16630 prefix="$acl_final_prefix"
16631 acl_save_exec_prefix="$exec_prefix"
16632 exec_prefix="$acl_final_exec_prefix"
16633 eval x=\"$x\"
16634 exec_prefix="$acl_save_exec_prefix"
16635 prefix="$acl_save_prefix"
16636
16637 if test "X$x" = "X$element"; then
16638 haveit=yes
16639 break
16640 fi
16641 done
16642 if test -z "$haveit"; then
16643 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16644 fi
16645 done
16646
16647
16648 for element in -Wno-overloaded-virtual; do
16649 haveit=
16650 for x in $CXXFLAGS; do
16651
16652 acl_save_prefix="$prefix"
16653 prefix="$acl_final_prefix"
16654 acl_save_exec_prefix="$exec_prefix"
16655 exec_prefix="$acl_final_exec_prefix"
16656 eval x=\"$x\"
16657 exec_prefix="$acl_save_exec_prefix"
16658 prefix="$acl_save_prefix"
16659
16660 if test "X$x" = "X$element"; then
16661 haveit=yes
16662 break
16663 fi
16664 done
16665 if test -z "$haveit"; then
16666 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16667 fi
16668 done
16669
16670
16671 for element in -Wno-overloaded-virtual; do
16672 haveit=
16673 for x in $OBJCCXXFLAGS; do
16674
16675 acl_save_prefix="$prefix"
16676 prefix="$acl_final_prefix"
16677 acl_save_exec_prefix="$exec_prefix"
16678 exec_prefix="$acl_final_exec_prefix"
16679 eval x=\"$x\"
16680 exec_prefix="$acl_save_exec_prefix"
16681 prefix="$acl_save_prefix"
16682
16683 if test "X$x" = "X$element"; then
16684 haveit=yes
16685 break
16686 fi
16687 done
16688 if test -z "$haveit"; then
16689 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16690 fi
16691 done
16692
16693
16694
16695 else
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16698 fi
16699
16700
16701
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-parentheses" >&5
16703 $as_echo_n "checking for -Wno-parentheses... " >&6; }
16704
16705 cy_save=$CXXFLAGS
16706
16707 for element in -Wno-parentheses; do
16708 haveit=
16709 for x in $CXXFLAGS; do
16710
16711 acl_save_prefix="$prefix"
16712 prefix="$acl_final_prefix"
16713 acl_save_exec_prefix="$exec_prefix"
16714 exec_prefix="$acl_final_exec_prefix"
16715 eval x=\"$x\"
16716 exec_prefix="$acl_save_exec_prefix"
16717 prefix="$acl_save_prefix"
16718
16719 if test "X$x" = "X$element"; then
16720 haveit=yes
16721 break
16722 fi
16723 done
16724 if test -z "$haveit"; then
16725 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16726 fi
16727 done
16728
16729
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16732
16733 _ACEOF
16734 if ac_fn_cxx_try_compile "$LINENO"; then :
16735 cy_good=1
16736 else
16737 cy_good=0
16738 fi
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740
16741 CXXFLAGS=$cy_save
16742 if test "x$cy_good" = x1; then :
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744 $as_echo "yes" >&6; }
16745
16746
16747 for element in -Wno-parentheses; do
16748 haveit=
16749 for x in $CFLAGS; do
16750
16751 acl_save_prefix="$prefix"
16752 prefix="$acl_final_prefix"
16753 acl_save_exec_prefix="$exec_prefix"
16754 exec_prefix="$acl_final_exec_prefix"
16755 eval x=\"$x\"
16756 exec_prefix="$acl_save_exec_prefix"
16757 prefix="$acl_save_prefix"
16758
16759 if test "X$x" = "X$element"; then
16760 haveit=yes
16761 break
16762 fi
16763 done
16764 if test -z "$haveit"; then
16765 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16766 fi
16767 done
16768
16769
16770 for element in -Wno-parentheses; do
16771 haveit=
16772 for x in $CXXFLAGS; do
16773
16774 acl_save_prefix="$prefix"
16775 prefix="$acl_final_prefix"
16776 acl_save_exec_prefix="$exec_prefix"
16777 exec_prefix="$acl_final_exec_prefix"
16778 eval x=\"$x\"
16779 exec_prefix="$acl_save_exec_prefix"
16780 prefix="$acl_save_prefix"
16781
16782 if test "X$x" = "X$element"; then
16783 haveit=yes
16784 break
16785 fi
16786 done
16787 if test -z "$haveit"; then
16788 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16789 fi
16790 done
16791
16792
16793 for element in -Wno-parentheses; do
16794 haveit=
16795 for x in $OBJCCXXFLAGS; do
16796
16797 acl_save_prefix="$prefix"
16798 prefix="$acl_final_prefix"
16799 acl_save_exec_prefix="$exec_prefix"
16800 exec_prefix="$acl_final_exec_prefix"
16801 eval x=\"$x\"
16802 exec_prefix="$acl_save_exec_prefix"
16803 prefix="$acl_save_prefix"
16804
16805 if test "X$x" = "X$element"; then
16806 haveit=yes
16807 break
16808 fi
16809 done
16810 if test -z "$haveit"; then
16811 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16812 fi
16813 done
16814
16815
16816
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16820 fi
16821
16822
16823
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unneeded-internal-declaration" >&5
16825 $as_echo_n "checking for -Wno-unneeded-internal-declaration... " >&6; }
16826
16827 cy_save=$CXXFLAGS
16828
16829 for element in -Wno-unneeded-internal-declaration; do
16830 haveit=
16831 for x in $CXXFLAGS; do
16832
16833 acl_save_prefix="$prefix"
16834 prefix="$acl_final_prefix"
16835 acl_save_exec_prefix="$exec_prefix"
16836 exec_prefix="$acl_final_exec_prefix"
16837 eval x=\"$x\"
16838 exec_prefix="$acl_save_exec_prefix"
16839 prefix="$acl_save_prefix"
16840
16841 if test "X$x" = "X$element"; then
16842 haveit=yes
16843 break
16844 fi
16845 done
16846 if test -z "$haveit"; then
16847 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16848 fi
16849 done
16850
16851
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16854
16855 _ACEOF
16856 if ac_fn_cxx_try_compile "$LINENO"; then :
16857 cy_good=1
16858 else
16859 cy_good=0
16860 fi
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862
16863 CXXFLAGS=$cy_save
16864 if test "x$cy_good" = x1; then :
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866 $as_echo "yes" >&6; }
16867
16868
16869 for element in -Wno-unneeded-internal-declaration; do
16870 haveit=
16871 for x in $CFLAGS; do
16872
16873 acl_save_prefix="$prefix"
16874 prefix="$acl_final_prefix"
16875 acl_save_exec_prefix="$exec_prefix"
16876 exec_prefix="$acl_final_exec_prefix"
16877 eval x=\"$x\"
16878 exec_prefix="$acl_save_exec_prefix"
16879 prefix="$acl_save_prefix"
16880
16881 if test "X$x" = "X$element"; then
16882 haveit=yes
16883 break
16884 fi
16885 done
16886 if test -z "$haveit"; then
16887 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16888 fi
16889 done
16890
16891
16892 for element in -Wno-unneeded-internal-declaration; do
16893 haveit=
16894 for x in $CXXFLAGS; do
16895
16896 acl_save_prefix="$prefix"
16897 prefix="$acl_final_prefix"
16898 acl_save_exec_prefix="$exec_prefix"
16899 exec_prefix="$acl_final_exec_prefix"
16900 eval x=\"$x\"
16901 exec_prefix="$acl_save_exec_prefix"
16902 prefix="$acl_save_prefix"
16903
16904 if test "X$x" = "X$element"; then
16905 haveit=yes
16906 break
16907 fi
16908 done
16909 if test -z "$haveit"; then
16910 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16911 fi
16912 done
16913
16914
16915 for element in -Wno-unneeded-internal-declaration; do
16916 haveit=
16917 for x in $OBJCCXXFLAGS; do
16918
16919 acl_save_prefix="$prefix"
16920 prefix="$acl_final_prefix"
16921 acl_save_exec_prefix="$exec_prefix"
16922 exec_prefix="$acl_final_exec_prefix"
16923 eval x=\"$x\"
16924 exec_prefix="$acl_save_exec_prefix"
16925 prefix="$acl_save_prefix"
16926
16927 if test "X$x" = "X$element"; then
16928 haveit=yes
16929 break
16930 fi
16931 done
16932 if test -z "$haveit"; then
16933 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
16934 fi
16935 done
16936
16937
16938
16939 else
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16941 $as_echo "no" >&6; }
16942 fi
16943
16944
16945
16946 for cy_arch in ppc ppc64 i386 x86_64 armv6; do
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
16948 $as_echo_n "checking for -arch $cy_arch... " >&6; }
16949
16950 cy_save=$CXXFLAGS
16951
16952 for element in "-arch $cy_arch"; do
16953 haveit=
16954 for x in $CXXFLAGS; do
16955
16956 acl_save_prefix="$prefix"
16957 prefix="$acl_final_prefix"
16958 acl_save_exec_prefix="$exec_prefix"
16959 exec_prefix="$acl_final_exec_prefix"
16960 eval x=\"$x\"
16961 exec_prefix="$acl_save_exec_prefix"
16962 prefix="$acl_save_prefix"
16963
16964 if test "X$x" = "X$element"; then
16965 haveit=yes
16966 break
16967 fi
16968 done
16969 if test -z "$haveit"; then
16970 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
16971 fi
16972 done
16973
16974
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977
16978 int
16979 main ()
16980 {
16981
16982 ;
16983 return 0;
16984 }
16985 _ACEOF
16986 if ac_fn_cxx_try_link "$LINENO"; then :
16987 cy_good=1
16988 else
16989 cy_good=0
16990 fi
16991 rm -f core conftest.err conftest.$ac_objext \
16992 conftest$ac_exeext conftest.$ac_ext
16993
16994 CXXFLAGS=$cy_save
16995 if test "x$cy_good" = x1; then :
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16997 $as_echo "yes" >&6; }
16998
16999 for element in "-arch $cy_arch"; do
17000 haveit=
17001 for x in $CY_ARCH; do
17002
17003 acl_save_prefix="$prefix"
17004 prefix="$acl_final_prefix"
17005 acl_save_exec_prefix="$exec_prefix"
17006 exec_prefix="$acl_final_exec_prefix"
17007 eval x=\"$x\"
17008 exec_prefix="$acl_save_exec_prefix"
17009 prefix="$acl_save_prefix"
17010
17011 if test "X$x" = "X$element"; then
17012 haveit=yes
17013 break
17014 fi
17015 done
17016 if test -z "$haveit"; then
17017 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
17018 fi
17019 done
17020
17021
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025 fi
17026
17027 done
17028
17029
17030
17031 # Check whether --with-frameworks was given.
17032 if test "${with_frameworks+set}" = set; then :
17033 withval=$with_frameworks;
17034 for cy_framework in $withval; do
17035
17036
17037 for element in -F$cy_framework; do
17038 haveit=
17039 for x in $CFLAGS; do
17040
17041 acl_save_prefix="$prefix"
17042 prefix="$acl_final_prefix"
17043 acl_save_exec_prefix="$exec_prefix"
17044 exec_prefix="$acl_final_exec_prefix"
17045 eval x=\"$x\"
17046 exec_prefix="$acl_save_exec_prefix"
17047 prefix="$acl_save_prefix"
17048
17049 if test "X$x" = "X$element"; then
17050 haveit=yes
17051 break
17052 fi
17053 done
17054 if test -z "$haveit"; then
17055 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17056 fi
17057 done
17058
17059
17060 for element in -F$cy_framework; do
17061 haveit=
17062 for x in $CXXFLAGS; do
17063
17064 acl_save_prefix="$prefix"
17065 prefix="$acl_final_prefix"
17066 acl_save_exec_prefix="$exec_prefix"
17067 exec_prefix="$acl_final_exec_prefix"
17068 eval x=\"$x\"
17069 exec_prefix="$acl_save_exec_prefix"
17070 prefix="$acl_save_prefix"
17071
17072 if test "X$x" = "X$element"; then
17073 haveit=yes
17074 break
17075 fi
17076 done
17077 if test -z "$haveit"; then
17078 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17079 fi
17080 done
17081
17082
17083 for element in -F$cy_framework; do
17084 haveit=
17085 for x in $OBJCCXXFLAGS; do
17086
17087 acl_save_prefix="$prefix"
17088 prefix="$acl_final_prefix"
17089 acl_save_exec_prefix="$exec_prefix"
17090 exec_prefix="$acl_final_exec_prefix"
17091 eval x=\"$x\"
17092 exec_prefix="$acl_save_exec_prefix"
17093 prefix="$acl_save_prefix"
17094
17095 if test "X$x" = "X$element"; then
17096 haveit=yes
17097 break
17098 fi
17099 done
17100 if test -z "$haveit"; then
17101 OBJCCXXFLAGS="${OBJCCXXFLAGS}${OBJCCXXFLAGS:+ }$element"
17102 fi
17103 done
17104
17105
17106 done
17107
17108 fi
17109
17110
17111
17112
17113 # Check whether --enable-javascript was given.
17114 if test "${enable_javascript+set}" = set; then :
17115 enableval=$enable_javascript;
17116 case $enableval in #(
17117 yes) :
17118
17119
17120
17121
17122 pkg_failed=no
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17124 $as_echo_n "checking for WEBKIT... " >&6; }
17125
17126 if test -n "$WEBKIT_CFLAGS"; then
17127 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17128 elif test -n "$PKG_CONFIG"; then
17129 if test -n "$PKG_CONFIG" && \
17130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17131 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134 test $ac_status = 0; }; then
17135 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17136 else
17137 pkg_failed=yes
17138 fi
17139 else
17140 pkg_failed=untried
17141 fi
17142 if test -n "$WEBKIT_LIBS"; then
17143 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17144 elif test -n "$PKG_CONFIG"; then
17145 if test -n "$PKG_CONFIG" && \
17146 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17147 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17148 ac_status=$?
17149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17150 test $ac_status = 0; }; then
17151 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17152 else
17153 pkg_failed=yes
17154 fi
17155 else
17156 pkg_failed=untried
17157 fi
17158
17159
17160
17161 if test $pkg_failed = yes; then
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17163 $as_echo "no" >&6; }
17164
17165 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17166 _pkg_short_errors_supported=yes
17167 else
17168 _pkg_short_errors_supported=no
17169 fi
17170 if test $_pkg_short_errors_supported = yes; then
17171 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17172 else
17173 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17174 fi
17175 # Put the nasty error message in config.log where it belongs
17176 echo "$WEBKIT_PKG_ERRORS" >&5
17177
17178
17179
17180 pkg_failed=no
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17182 $as_echo_n "checking for WEBKIT... " >&6; }
17183
17184 if test -n "$WEBKIT_CFLAGS"; then
17185 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17186 elif test -n "$PKG_CONFIG"; then
17187 if test -n "$PKG_CONFIG" && \
17188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17189 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17190 ac_status=$?
17191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17192 test $ac_status = 0; }; then
17193 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17194 else
17195 pkg_failed=yes
17196 fi
17197 else
17198 pkg_failed=untried
17199 fi
17200 if test -n "$WEBKIT_LIBS"; then
17201 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17202 elif test -n "$PKG_CONFIG"; then
17203 if test -n "$PKG_CONFIG" && \
17204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17205 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17206 ac_status=$?
17207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208 test $ac_status = 0; }; then
17209 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17210 else
17211 pkg_failed=yes
17212 fi
17213 else
17214 pkg_failed=untried
17215 fi
17216
17217
17218
17219 if test $pkg_failed = yes; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17222
17223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17224 _pkg_short_errors_supported=yes
17225 else
17226 _pkg_short_errors_supported=no
17227 fi
17228 if test $_pkg_short_errors_supported = yes; then
17229 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17230 else
17231 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17232 fi
17233 # Put the nasty error message in config.log where it belongs
17234 echo "$WEBKIT_PKG_ERRORS" >&5
17235
17236
17237
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17239 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17240 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243
17244 ac_check_framework_save_LIBS=$LIBS
17245 LIBS="-framework JavaScriptCore $LIBS"
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248
17249 #include <JavaScriptCore/JSBase.h>
17250
17251 int
17252 main ()
17253 {
17254
17255 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17256
17257 ;
17258 return 0;
17259 }
17260 _ACEOF
17261 if ac_fn_cxx_try_link "$LINENO"; then :
17262
17263 ac_cv_framework_JavaScriptCore=yes
17264
17265 else
17266 ac_cv_framework_JavaScriptCore=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_framework_save_LIBS
17271
17272 fi
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17274 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17275 if test $ac_cv_framework_JavaScriptCore = yes; then :
17276
17277
17278 for element in "-framework JavaScriptCore $LIBS"; do
17279 haveit=
17280 for x in $LIBS; do
17281
17282 acl_save_prefix="$prefix"
17283 prefix="$acl_final_prefix"
17284 acl_save_exec_prefix="$exec_prefix"
17285 exec_prefix="$acl_final_exec_prefix"
17286 eval x=\"$x\"
17287 exec_prefix="$acl_save_exec_prefix"
17288 prefix="$acl_save_prefix"
17289
17290 if test "X$x" = "X$element"; then
17291 haveit=yes
17292 break
17293 fi
17294 done
17295 if test -z "$haveit"; then
17296 LIBS="${LIBS}${LIBS:+ }$element"
17297 fi
17298 done
17299
17300
17301 CY_EXECUTE=1
17302
17303
17304
17305 fi
17306
17307 elif test $pkg_failed = untried; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309 $as_echo "no" >&6; }
17310
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17313 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17314 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317
17318 ac_check_framework_save_LIBS=$LIBS
17319 LIBS="-framework JavaScriptCore $LIBS"
17320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17322
17323 #include <JavaScriptCore/JSBase.h>
17324
17325 int
17326 main ()
17327 {
17328
17329 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17330
17331 ;
17332 return 0;
17333 }
17334 _ACEOF
17335 if ac_fn_cxx_try_link "$LINENO"; then :
17336
17337 ac_cv_framework_JavaScriptCore=yes
17338
17339 else
17340 ac_cv_framework_JavaScriptCore=no
17341 fi
17342 rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_framework_save_LIBS
17345
17346 fi
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17348 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17349 if test $ac_cv_framework_JavaScriptCore = yes; then :
17350
17351
17352 for element in "-framework JavaScriptCore $LIBS"; do
17353 haveit=
17354 for x in $LIBS; do
17355
17356 acl_save_prefix="$prefix"
17357 prefix="$acl_final_prefix"
17358 acl_save_exec_prefix="$exec_prefix"
17359 exec_prefix="$acl_final_exec_prefix"
17360 eval x=\"$x\"
17361 exec_prefix="$acl_save_exec_prefix"
17362 prefix="$acl_save_prefix"
17363
17364 if test "X$x" = "X$element"; then
17365 haveit=yes
17366 break
17367 fi
17368 done
17369 if test -z "$haveit"; then
17370 LIBS="${LIBS}${LIBS:+ }$element"
17371 fi
17372 done
17373
17374
17375 CY_EXECUTE=1
17376
17377
17378
17379 fi
17380
17381 else
17382 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17383 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 $as_echo "yes" >&6; }
17386
17387 CY_EXECUTE=1
17388
17389
17390 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17391 haveit=
17392 for x in $CXXFLAGS; do
17393
17394 acl_save_prefix="$prefix"
17395 prefix="$acl_final_prefix"
17396 acl_save_exec_prefix="$exec_prefix"
17397 exec_prefix="$acl_final_exec_prefix"
17398 eval x=\"$x\"
17399 exec_prefix="$acl_save_exec_prefix"
17400 prefix="$acl_save_prefix"
17401
17402 if test "X$x" = "X$element"; then
17403 haveit=yes
17404 break
17405 fi
17406 done
17407 if test -z "$haveit"; then
17408 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17409 fi
17410 done
17411
17412
17413 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17414 haveit=
17415 for x in $LIBS; do
17416
17417 acl_save_prefix="$prefix"
17418 prefix="$acl_final_prefix"
17419 acl_save_exec_prefix="$exec_prefix"
17420 exec_prefix="$acl_final_exec_prefix"
17421 eval x=\"$x\"
17422 exec_prefix="$acl_save_exec_prefix"
17423 prefix="$acl_save_prefix"
17424
17425 if test "X$x" = "X$element"; then
17426 haveit=yes
17427 break
17428 fi
17429 done
17430 if test -z "$haveit"; then
17431 LIBS="${LIBS}${LIBS:+ }$element"
17432 fi
17433 done
17434
17435
17436 fi
17437
17438 elif test $pkg_failed = untried; then
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17440 $as_echo "no" >&6; }
17441
17442
17443 pkg_failed=no
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17445 $as_echo_n "checking for WEBKIT... " >&6; }
17446
17447 if test -n "$WEBKIT_CFLAGS"; then
17448 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17449 elif test -n "$PKG_CONFIG"; then
17450 if test -n "$PKG_CONFIG" && \
17451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17452 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17453 ac_status=$?
17454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17455 test $ac_status = 0; }; then
17456 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17457 else
17458 pkg_failed=yes
17459 fi
17460 else
17461 pkg_failed=untried
17462 fi
17463 if test -n "$WEBKIT_LIBS"; then
17464 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17465 elif test -n "$PKG_CONFIG"; then
17466 if test -n "$PKG_CONFIG" && \
17467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17468 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; }; then
17472 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17473 else
17474 pkg_failed=yes
17475 fi
17476 else
17477 pkg_failed=untried
17478 fi
17479
17480
17481
17482 if test $pkg_failed = yes; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17485
17486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17487 _pkg_short_errors_supported=yes
17488 else
17489 _pkg_short_errors_supported=no
17490 fi
17491 if test $_pkg_short_errors_supported = yes; then
17492 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17493 else
17494 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17495 fi
17496 # Put the nasty error message in config.log where it belongs
17497 echo "$WEBKIT_PKG_ERRORS" >&5
17498
17499
17500
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17502 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17503 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506
17507 ac_check_framework_save_LIBS=$LIBS
17508 LIBS="-framework JavaScriptCore $LIBS"
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511
17512 #include <JavaScriptCore/JSBase.h>
17513
17514 int
17515 main ()
17516 {
17517
17518 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17519
17520 ;
17521 return 0;
17522 }
17523 _ACEOF
17524 if ac_fn_cxx_try_link "$LINENO"; then :
17525
17526 ac_cv_framework_JavaScriptCore=yes
17527
17528 else
17529 ac_cv_framework_JavaScriptCore=no
17530 fi
17531 rm -f core conftest.err conftest.$ac_objext \
17532 conftest$ac_exeext conftest.$ac_ext
17533 LIBS=$ac_check_framework_save_LIBS
17534
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17537 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17538 if test $ac_cv_framework_JavaScriptCore = yes; then :
17539
17540
17541 for element in "-framework JavaScriptCore $LIBS"; do
17542 haveit=
17543 for x in $LIBS; do
17544
17545 acl_save_prefix="$prefix"
17546 prefix="$acl_final_prefix"
17547 acl_save_exec_prefix="$exec_prefix"
17548 exec_prefix="$acl_final_exec_prefix"
17549 eval x=\"$x\"
17550 exec_prefix="$acl_save_exec_prefix"
17551 prefix="$acl_save_prefix"
17552
17553 if test "X$x" = "X$element"; then
17554 haveit=yes
17555 break
17556 fi
17557 done
17558 if test -z "$haveit"; then
17559 LIBS="${LIBS}${LIBS:+ }$element"
17560 fi
17561 done
17562
17563
17564 CY_EXECUTE=1
17565
17566
17567
17568 fi
17569
17570 elif test $pkg_failed = untried; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572 $as_echo "no" >&6; }
17573
17574
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17576 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17577 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580
17581 ac_check_framework_save_LIBS=$LIBS
17582 LIBS="-framework JavaScriptCore $LIBS"
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585
17586 #include <JavaScriptCore/JSBase.h>
17587
17588 int
17589 main ()
17590 {
17591
17592 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17593
17594 ;
17595 return 0;
17596 }
17597 _ACEOF
17598 if ac_fn_cxx_try_link "$LINENO"; then :
17599
17600 ac_cv_framework_JavaScriptCore=yes
17601
17602 else
17603 ac_cv_framework_JavaScriptCore=no
17604 fi
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_framework_save_LIBS
17608
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17611 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17612 if test $ac_cv_framework_JavaScriptCore = yes; then :
17613
17614
17615 for element in "-framework JavaScriptCore $LIBS"; do
17616 haveit=
17617 for x in $LIBS; do
17618
17619 acl_save_prefix="$prefix"
17620 prefix="$acl_final_prefix"
17621 acl_save_exec_prefix="$exec_prefix"
17622 exec_prefix="$acl_final_exec_prefix"
17623 eval x=\"$x\"
17624 exec_prefix="$acl_save_exec_prefix"
17625 prefix="$acl_save_prefix"
17626
17627 if test "X$x" = "X$element"; then
17628 haveit=yes
17629 break
17630 fi
17631 done
17632 if test -z "$haveit"; then
17633 LIBS="${LIBS}${LIBS:+ }$element"
17634 fi
17635 done
17636
17637
17638 CY_EXECUTE=1
17639
17640
17641
17642 fi
17643
17644 else
17645 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17646 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17648 $as_echo "yes" >&6; }
17649
17650 CY_EXECUTE=1
17651
17652
17653 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
17654 haveit=
17655 for x in $CXXFLAGS; do
17656
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17661 eval x=\"$x\"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17664
17665 if test "X$x" = "X$element"; then
17666 haveit=yes
17667 break
17668 fi
17669 done
17670 if test -z "$haveit"; then
17671 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17672 fi
17673 done
17674
17675
17676 for element in `$PKG_CONFIG --libs WebKitGtk`; do
17677 haveit=
17678 for x in $LIBS; do
17679
17680 acl_save_prefix="$prefix"
17681 prefix="$acl_final_prefix"
17682 acl_save_exec_prefix="$exec_prefix"
17683 exec_prefix="$acl_final_exec_prefix"
17684 eval x=\"$x\"
17685 exec_prefix="$acl_save_exec_prefix"
17686 prefix="$acl_save_prefix"
17687
17688 if test "X$x" = "X$element"; then
17689 haveit=yes
17690 break
17691 fi
17692 done
17693 if test -z "$haveit"; then
17694 LIBS="${LIBS}${LIBS:+ }$element"
17695 fi
17696 done
17697
17698
17699 fi
17700
17701 else
17702 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
17703 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17705 $as_echo "yes" >&6; }
17706
17707 CY_EXECUTE=1
17708
17709
17710 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
17711 haveit=
17712 for x in $CXXFLAGS; do
17713
17714 acl_save_prefix="$prefix"
17715 prefix="$acl_final_prefix"
17716 acl_save_exec_prefix="$exec_prefix"
17717 exec_prefix="$acl_final_exec_prefix"
17718 eval x=\"$x\"
17719 exec_prefix="$acl_save_exec_prefix"
17720 prefix="$acl_save_prefix"
17721
17722 if test "X$x" = "X$element"; then
17723 haveit=yes
17724 break
17725 fi
17726 done
17727 if test -z "$haveit"; then
17728 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17729 fi
17730 done
17731
17732
17733 for element in `$PKG_CONFIG --libs webkit-1.0`; do
17734 haveit=
17735 for x in $LIBS; do
17736
17737 acl_save_prefix="$prefix"
17738 prefix="$acl_final_prefix"
17739 acl_save_exec_prefix="$exec_prefix"
17740 exec_prefix="$acl_final_exec_prefix"
17741 eval x=\"$x\"
17742 exec_prefix="$acl_save_exec_prefix"
17743 prefix="$acl_save_prefix"
17744
17745 if test "X$x" = "X$element"; then
17746 haveit=yes
17747 break
17748 fi
17749 done
17750 if test -z "$haveit"; then
17751 LIBS="${LIBS}${LIBS:+ }$element"
17752 fi
17753 done
17754
17755
17756 fi
17757 ;; #(
17758 no) :
17759
17760 CY_EXECUTE=0
17761 ;; #(
17762 JavaScriptCore) :
17763
17764
17765
17766 pkg_failed=no
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17768 $as_echo_n "checking for WEBKIT... " >&6; }
17769
17770 if test -n "$WEBKIT_CFLAGS"; then
17771 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17772 elif test -n "$PKG_CONFIG"; then
17773 if test -n "$PKG_CONFIG" && \
17774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17775 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17776 ac_status=$?
17777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17778 test $ac_status = 0; }; then
17779 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
17780 else
17781 pkg_failed=yes
17782 fi
17783 else
17784 pkg_failed=untried
17785 fi
17786 if test -n "$WEBKIT_LIBS"; then
17787 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17788 elif test -n "$PKG_CONFIG"; then
17789 if test -n "$PKG_CONFIG" && \
17790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
17791 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
17792 ac_status=$?
17793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17794 test $ac_status = 0; }; then
17795 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
17796 else
17797 pkg_failed=yes
17798 fi
17799 else
17800 pkg_failed=untried
17801 fi
17802
17803
17804
17805 if test $pkg_failed = yes; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17807 $as_echo "no" >&6; }
17808
17809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17810 _pkg_short_errors_supported=yes
17811 else
17812 _pkg_short_errors_supported=no
17813 fi
17814 if test $_pkg_short_errors_supported = yes; then
17815 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
17816 else
17817 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
17818 fi
17819 # Put the nasty error message in config.log where it belongs
17820 echo "$WEBKIT_PKG_ERRORS" >&5
17821
17822
17823
17824 pkg_failed=no
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
17826 $as_echo_n "checking for WEBKIT... " >&6; }
17827
17828 if test -n "$WEBKIT_CFLAGS"; then
17829 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
17830 elif test -n "$PKG_CONFIG"; then
17831 if test -n "$PKG_CONFIG" && \
17832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17833 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17834 ac_status=$?
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; then
17837 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
17838 else
17839 pkg_failed=yes
17840 fi
17841 else
17842 pkg_failed=untried
17843 fi
17844 if test -n "$WEBKIT_LIBS"; then
17845 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
17846 elif test -n "$PKG_CONFIG"; then
17847 if test -n "$PKG_CONFIG" && \
17848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
17849 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
17850 ac_status=$?
17851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17852 test $ac_status = 0; }; then
17853 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
17854 else
17855 pkg_failed=yes
17856 fi
17857 else
17858 pkg_failed=untried
17859 fi
17860
17861
17862
17863 if test $pkg_failed = yes; then
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17866
17867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17868 _pkg_short_errors_supported=yes
17869 else
17870 _pkg_short_errors_supported=no
17871 fi
17872 if test $_pkg_short_errors_supported = yes; then
17873 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
17874 else
17875 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
17876 fi
17877 # Put the nasty error message in config.log where it belongs
17878 echo "$WEBKIT_PKG_ERRORS" >&5
17879
17880
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17883 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17884 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887
17888 ac_check_framework_save_LIBS=$LIBS
17889 LIBS="-framework JavaScriptCore $LIBS"
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892
17893 #include <JavaScriptCore/JSBase.h>
17894
17895 int
17896 main ()
17897 {
17898
17899 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17900
17901 ;
17902 return 0;
17903 }
17904 _ACEOF
17905 if ac_fn_cxx_try_link "$LINENO"; then :
17906
17907 ac_cv_framework_JavaScriptCore=yes
17908
17909 else
17910 ac_cv_framework_JavaScriptCore=no
17911 fi
17912 rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_framework_save_LIBS
17915
17916 fi
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17918 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17919 if test $ac_cv_framework_JavaScriptCore = yes; then :
17920
17921
17922 for element in "-framework JavaScriptCore $LIBS"; do
17923 haveit=
17924 for x in $LIBS; do
17925
17926 acl_save_prefix="$prefix"
17927 prefix="$acl_final_prefix"
17928 acl_save_exec_prefix="$exec_prefix"
17929 exec_prefix="$acl_final_exec_prefix"
17930 eval x=\"$x\"
17931 exec_prefix="$acl_save_exec_prefix"
17932 prefix="$acl_save_prefix"
17933
17934 if test "X$x" = "X$element"; then
17935 haveit=yes
17936 break
17937 fi
17938 done
17939 if test -z "$haveit"; then
17940 LIBS="${LIBS}${LIBS:+ }$element"
17941 fi
17942 done
17943
17944
17945 CY_EXECUTE=1
17946
17947
17948
17949 fi
17950
17951 elif test $pkg_failed = untried; then
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17954
17955
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
17957 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
17958 if ${ac_cv_framework_JavaScriptCore+:} false; then :
17959 $as_echo_n "(cached) " >&6
17960 else
17961
17962 ac_check_framework_save_LIBS=$LIBS
17963 LIBS="-framework JavaScriptCore $LIBS"
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17966
17967 #include <JavaScriptCore/JSBase.h>
17968
17969 int
17970 main ()
17971 {
17972
17973 JSEvaluateScript(0, 0, 0, 0, 0, 0);
17974
17975 ;
17976 return 0;
17977 }
17978 _ACEOF
17979 if ac_fn_cxx_try_link "$LINENO"; then :
17980
17981 ac_cv_framework_JavaScriptCore=yes
17982
17983 else
17984 ac_cv_framework_JavaScriptCore=no
17985 fi
17986 rm -f core conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988 LIBS=$ac_check_framework_save_LIBS
17989
17990 fi
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
17992 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
17993 if test $ac_cv_framework_JavaScriptCore = yes; then :
17994
17995
17996 for element in "-framework JavaScriptCore $LIBS"; do
17997 haveit=
17998 for x in $LIBS; do
17999
18000 acl_save_prefix="$prefix"
18001 prefix="$acl_final_prefix"
18002 acl_save_exec_prefix="$exec_prefix"
18003 exec_prefix="$acl_final_exec_prefix"
18004 eval x=\"$x\"
18005 exec_prefix="$acl_save_exec_prefix"
18006 prefix="$acl_save_prefix"
18007
18008 if test "X$x" = "X$element"; then
18009 haveit=yes
18010 break
18011 fi
18012 done
18013 if test -z "$haveit"; then
18014 LIBS="${LIBS}${LIBS:+ }$element"
18015 fi
18016 done
18017
18018
18019 CY_EXECUTE=1
18020
18021
18022
18023 fi
18024
18025 else
18026 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18027 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029 $as_echo "yes" >&6; }
18030
18031 CY_EXECUTE=1
18032
18033
18034 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18035 haveit=
18036 for x in $CXXFLAGS; do
18037
18038 acl_save_prefix="$prefix"
18039 prefix="$acl_final_prefix"
18040 acl_save_exec_prefix="$exec_prefix"
18041 exec_prefix="$acl_final_exec_prefix"
18042 eval x=\"$x\"
18043 exec_prefix="$acl_save_exec_prefix"
18044 prefix="$acl_save_prefix"
18045
18046 if test "X$x" = "X$element"; then
18047 haveit=yes
18048 break
18049 fi
18050 done
18051 if test -z "$haveit"; then
18052 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18053 fi
18054 done
18055
18056
18057 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18058 haveit=
18059 for x in $LIBS; do
18060
18061 acl_save_prefix="$prefix"
18062 prefix="$acl_final_prefix"
18063 acl_save_exec_prefix="$exec_prefix"
18064 exec_prefix="$acl_final_exec_prefix"
18065 eval x=\"$x\"
18066 exec_prefix="$acl_save_exec_prefix"
18067 prefix="$acl_save_prefix"
18068
18069 if test "X$x" = "X$element"; then
18070 haveit=yes
18071 break
18072 fi
18073 done
18074 if test -z "$haveit"; then
18075 LIBS="${LIBS}${LIBS:+ }$element"
18076 fi
18077 done
18078
18079
18080 fi
18081
18082 elif test $pkg_failed = untried; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18085
18086
18087 pkg_failed=no
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18089 $as_echo_n "checking for WEBKIT... " >&6; }
18090
18091 if test -n "$WEBKIT_CFLAGS"; then
18092 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18093 elif test -n "$PKG_CONFIG"; then
18094 if test -n "$PKG_CONFIG" && \
18095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18096 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18097 ac_status=$?
18098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18099 test $ac_status = 0; }; then
18100 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18101 else
18102 pkg_failed=yes
18103 fi
18104 else
18105 pkg_failed=untried
18106 fi
18107 if test -n "$WEBKIT_LIBS"; then
18108 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18109 elif test -n "$PKG_CONFIG"; then
18110 if test -n "$PKG_CONFIG" && \
18111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18112 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18113 ac_status=$?
18114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; }; then
18116 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18117 else
18118 pkg_failed=yes
18119 fi
18120 else
18121 pkg_failed=untried
18122 fi
18123
18124
18125
18126 if test $pkg_failed = yes; then
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128 $as_echo "no" >&6; }
18129
18130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18131 _pkg_short_errors_supported=yes
18132 else
18133 _pkg_short_errors_supported=no
18134 fi
18135 if test $_pkg_short_errors_supported = yes; then
18136 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18137 else
18138 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18139 fi
18140 # Put the nasty error message in config.log where it belongs
18141 echo "$WEBKIT_PKG_ERRORS" >&5
18142
18143
18144
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18146 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18147 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18150
18151 ac_check_framework_save_LIBS=$LIBS
18152 LIBS="-framework JavaScriptCore $LIBS"
18153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18154 /* end confdefs.h. */
18155
18156 #include <JavaScriptCore/JSBase.h>
18157
18158 int
18159 main ()
18160 {
18161
18162 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18163
18164 ;
18165 return 0;
18166 }
18167 _ACEOF
18168 if ac_fn_cxx_try_link "$LINENO"; then :
18169
18170 ac_cv_framework_JavaScriptCore=yes
18171
18172 else
18173 ac_cv_framework_JavaScriptCore=no
18174 fi
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_framework_save_LIBS
18178
18179 fi
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18181 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18182 if test $ac_cv_framework_JavaScriptCore = yes; then :
18183
18184
18185 for element in "-framework JavaScriptCore $LIBS"; do
18186 haveit=
18187 for x in $LIBS; do
18188
18189 acl_save_prefix="$prefix"
18190 prefix="$acl_final_prefix"
18191 acl_save_exec_prefix="$exec_prefix"
18192 exec_prefix="$acl_final_exec_prefix"
18193 eval x=\"$x\"
18194 exec_prefix="$acl_save_exec_prefix"
18195 prefix="$acl_save_prefix"
18196
18197 if test "X$x" = "X$element"; then
18198 haveit=yes
18199 break
18200 fi
18201 done
18202 if test -z "$haveit"; then
18203 LIBS="${LIBS}${LIBS:+ }$element"
18204 fi
18205 done
18206
18207
18208 CY_EXECUTE=1
18209
18210
18211
18212 fi
18213
18214 elif test $pkg_failed = untried; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 $as_echo "no" >&6; }
18217
18218
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18220 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18221 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224
18225 ac_check_framework_save_LIBS=$LIBS
18226 LIBS="-framework JavaScriptCore $LIBS"
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h. */
18229
18230 #include <JavaScriptCore/JSBase.h>
18231
18232 int
18233 main ()
18234 {
18235
18236 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18237
18238 ;
18239 return 0;
18240 }
18241 _ACEOF
18242 if ac_fn_cxx_try_link "$LINENO"; then :
18243
18244 ac_cv_framework_JavaScriptCore=yes
18245
18246 else
18247 ac_cv_framework_JavaScriptCore=no
18248 fi
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_framework_save_LIBS
18252
18253 fi
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18255 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18256 if test $ac_cv_framework_JavaScriptCore = yes; then :
18257
18258
18259 for element in "-framework JavaScriptCore $LIBS"; do
18260 haveit=
18261 for x in $LIBS; do
18262
18263 acl_save_prefix="$prefix"
18264 prefix="$acl_final_prefix"
18265 acl_save_exec_prefix="$exec_prefix"
18266 exec_prefix="$acl_final_exec_prefix"
18267 eval x=\"$x\"
18268 exec_prefix="$acl_save_exec_prefix"
18269 prefix="$acl_save_prefix"
18270
18271 if test "X$x" = "X$element"; then
18272 haveit=yes
18273 break
18274 fi
18275 done
18276 if test -z "$haveit"; then
18277 LIBS="${LIBS}${LIBS:+ }$element"
18278 fi
18279 done
18280
18281
18282 CY_EXECUTE=1
18283
18284
18285
18286 fi
18287
18288 else
18289 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18290 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18292 $as_echo "yes" >&6; }
18293
18294 CY_EXECUTE=1
18295
18296
18297 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18298 haveit=
18299 for x in $CXXFLAGS; do
18300
18301 acl_save_prefix="$prefix"
18302 prefix="$acl_final_prefix"
18303 acl_save_exec_prefix="$exec_prefix"
18304 exec_prefix="$acl_final_exec_prefix"
18305 eval x=\"$x\"
18306 exec_prefix="$acl_save_exec_prefix"
18307 prefix="$acl_save_prefix"
18308
18309 if test "X$x" = "X$element"; then
18310 haveit=yes
18311 break
18312 fi
18313 done
18314 if test -z "$haveit"; then
18315 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18316 fi
18317 done
18318
18319
18320 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18321 haveit=
18322 for x in $LIBS; do
18323
18324 acl_save_prefix="$prefix"
18325 prefix="$acl_final_prefix"
18326 acl_save_exec_prefix="$exec_prefix"
18327 exec_prefix="$acl_final_exec_prefix"
18328 eval x=\"$x\"
18329 exec_prefix="$acl_save_exec_prefix"
18330 prefix="$acl_save_prefix"
18331
18332 if test "X$x" = "X$element"; then
18333 haveit=yes
18334 break
18335 fi
18336 done
18337 if test -z "$haveit"; then
18338 LIBS="${LIBS}${LIBS:+ }$element"
18339 fi
18340 done
18341
18342
18343 fi
18344
18345 else
18346 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18347 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18349 $as_echo "yes" >&6; }
18350
18351 CY_EXECUTE=1
18352
18353
18354 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18355 haveit=
18356 for x in $CXXFLAGS; do
18357
18358 acl_save_prefix="$prefix"
18359 prefix="$acl_final_prefix"
18360 acl_save_exec_prefix="$exec_prefix"
18361 exec_prefix="$acl_final_exec_prefix"
18362 eval x=\"$x\"
18363 exec_prefix="$acl_save_exec_prefix"
18364 prefix="$acl_save_prefix"
18365
18366 if test "X$x" = "X$element"; then
18367 haveit=yes
18368 break
18369 fi
18370 done
18371 if test -z "$haveit"; then
18372 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18373 fi
18374 done
18375
18376
18377 for element in `$PKG_CONFIG --libs webkit-1.0`; do
18378 haveit=
18379 for x in $LIBS; do
18380
18381 acl_save_prefix="$prefix"
18382 prefix="$acl_final_prefix"
18383 acl_save_exec_prefix="$exec_prefix"
18384 exec_prefix="$acl_final_exec_prefix"
18385 eval x=\"$x\"
18386 exec_prefix="$acl_save_exec_prefix"
18387 prefix="$acl_save_prefix"
18388
18389 if test "X$x" = "X$element"; then
18390 haveit=yes
18391 break
18392 fi
18393 done
18394 if test -z "$haveit"; then
18395 LIBS="${LIBS}${LIBS:+ }$element"
18396 fi
18397 done
18398
18399
18400 fi
18401 ;; #(
18402 *) :
18403 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
18404 esac
18405
18406 else
18407
18408
18409
18410 pkg_failed=no
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18412 $as_echo_n "checking for WEBKIT... " >&6; }
18413
18414 if test -n "$WEBKIT_CFLAGS"; then
18415 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18416 elif test -n "$PKG_CONFIG"; then
18417 if test -n "$PKG_CONFIG" && \
18418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18419 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18420 ac_status=$?
18421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18422 test $ac_status = 0; }; then
18423 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
18424 else
18425 pkg_failed=yes
18426 fi
18427 else
18428 pkg_failed=untried
18429 fi
18430 if test -n "$WEBKIT_LIBS"; then
18431 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18432 elif test -n "$PKG_CONFIG"; then
18433 if test -n "$PKG_CONFIG" && \
18434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
18435 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
18436 ac_status=$?
18437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18438 test $ac_status = 0; }; then
18439 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
18440 else
18441 pkg_failed=yes
18442 fi
18443 else
18444 pkg_failed=untried
18445 fi
18446
18447
18448
18449 if test $pkg_failed = yes; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 $as_echo "no" >&6; }
18452
18453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18454 _pkg_short_errors_supported=yes
18455 else
18456 _pkg_short_errors_supported=no
18457 fi
18458 if test $_pkg_short_errors_supported = yes; then
18459 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "webkit-1.0" 2>&1`
18460 else
18461 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "webkit-1.0" 2>&1`
18462 fi
18463 # Put the nasty error message in config.log where it belongs
18464 echo "$WEBKIT_PKG_ERRORS" >&5
18465
18466
18467
18468 pkg_failed=no
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18470 $as_echo_n "checking for WEBKIT... " >&6; }
18471
18472 if test -n "$WEBKIT_CFLAGS"; then
18473 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18474 elif test -n "$PKG_CONFIG"; then
18475 if test -n "$PKG_CONFIG" && \
18476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18477 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18478 ac_status=$?
18479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18480 test $ac_status = 0; }; then
18481 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18482 else
18483 pkg_failed=yes
18484 fi
18485 else
18486 pkg_failed=untried
18487 fi
18488 if test -n "$WEBKIT_LIBS"; then
18489 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18490 elif test -n "$PKG_CONFIG"; then
18491 if test -n "$PKG_CONFIG" && \
18492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18493 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496 test $ac_status = 0; }; then
18497 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18498 else
18499 pkg_failed=yes
18500 fi
18501 else
18502 pkg_failed=untried
18503 fi
18504
18505
18506
18507 if test $pkg_failed = yes; then
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510
18511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18512 _pkg_short_errors_supported=yes
18513 else
18514 _pkg_short_errors_supported=no
18515 fi
18516 if test $_pkg_short_errors_supported = yes; then
18517 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18518 else
18519 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18520 fi
18521 # Put the nasty error message in config.log where it belongs
18522 echo "$WEBKIT_PKG_ERRORS" >&5
18523
18524
18525
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18527 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18528 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531
18532 ac_check_framework_save_LIBS=$LIBS
18533 LIBS="-framework JavaScriptCore $LIBS"
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536
18537 #include <JavaScriptCore/JSBase.h>
18538
18539 int
18540 main ()
18541 {
18542
18543 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18544
18545 ;
18546 return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_cxx_try_link "$LINENO"; then :
18550
18551 ac_cv_framework_JavaScriptCore=yes
18552
18553 else
18554 ac_cv_framework_JavaScriptCore=no
18555 fi
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_framework_save_LIBS
18559
18560 fi
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18562 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18563 if test $ac_cv_framework_JavaScriptCore = yes; then :
18564
18565
18566 for element in "-framework JavaScriptCore $LIBS"; do
18567 haveit=
18568 for x in $LIBS; do
18569
18570 acl_save_prefix="$prefix"
18571 prefix="$acl_final_prefix"
18572 acl_save_exec_prefix="$exec_prefix"
18573 exec_prefix="$acl_final_exec_prefix"
18574 eval x=\"$x\"
18575 exec_prefix="$acl_save_exec_prefix"
18576 prefix="$acl_save_prefix"
18577
18578 if test "X$x" = "X$element"; then
18579 haveit=yes
18580 break
18581 fi
18582 done
18583 if test -z "$haveit"; then
18584 LIBS="${LIBS}${LIBS:+ }$element"
18585 fi
18586 done
18587
18588
18589 CY_EXECUTE=1
18590
18591
18592
18593 fi
18594
18595 elif test $pkg_failed = untried; then
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597 $as_echo "no" >&6; }
18598
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18601 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18602 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18603 $as_echo_n "(cached) " >&6
18604 else
18605
18606 ac_check_framework_save_LIBS=$LIBS
18607 LIBS="-framework JavaScriptCore $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18610
18611 #include <JavaScriptCore/JSBase.h>
18612
18613 int
18614 main ()
18615 {
18616
18617 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18618
18619 ;
18620 return 0;
18621 }
18622 _ACEOF
18623 if ac_fn_cxx_try_link "$LINENO"; then :
18624
18625 ac_cv_framework_JavaScriptCore=yes
18626
18627 else
18628 ac_cv_framework_JavaScriptCore=no
18629 fi
18630 rm -f core conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_framework_save_LIBS
18633
18634 fi
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18636 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18637 if test $ac_cv_framework_JavaScriptCore = yes; then :
18638
18639
18640 for element in "-framework JavaScriptCore $LIBS"; do
18641 haveit=
18642 for x in $LIBS; do
18643
18644 acl_save_prefix="$prefix"
18645 prefix="$acl_final_prefix"
18646 acl_save_exec_prefix="$exec_prefix"
18647 exec_prefix="$acl_final_exec_prefix"
18648 eval x=\"$x\"
18649 exec_prefix="$acl_save_exec_prefix"
18650 prefix="$acl_save_prefix"
18651
18652 if test "X$x" = "X$element"; then
18653 haveit=yes
18654 break
18655 fi
18656 done
18657 if test -z "$haveit"; then
18658 LIBS="${LIBS}${LIBS:+ }$element"
18659 fi
18660 done
18661
18662
18663 CY_EXECUTE=1
18664
18665
18666
18667 fi
18668
18669 else
18670 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18671 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18673 $as_echo "yes" >&6; }
18674
18675 CY_EXECUTE=1
18676
18677
18678 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18679 haveit=
18680 for x in $CXXFLAGS; do
18681
18682 acl_save_prefix="$prefix"
18683 prefix="$acl_final_prefix"
18684 acl_save_exec_prefix="$exec_prefix"
18685 exec_prefix="$acl_final_exec_prefix"
18686 eval x=\"$x\"
18687 exec_prefix="$acl_save_exec_prefix"
18688 prefix="$acl_save_prefix"
18689
18690 if test "X$x" = "X$element"; then
18691 haveit=yes
18692 break
18693 fi
18694 done
18695 if test -z "$haveit"; then
18696 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18697 fi
18698 done
18699
18700
18701 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18702 haveit=
18703 for x in $LIBS; do
18704
18705 acl_save_prefix="$prefix"
18706 prefix="$acl_final_prefix"
18707 acl_save_exec_prefix="$exec_prefix"
18708 exec_prefix="$acl_final_exec_prefix"
18709 eval x=\"$x\"
18710 exec_prefix="$acl_save_exec_prefix"
18711 prefix="$acl_save_prefix"
18712
18713 if test "X$x" = "X$element"; then
18714 haveit=yes
18715 break
18716 fi
18717 done
18718 if test -z "$haveit"; then
18719 LIBS="${LIBS}${LIBS:+ }$element"
18720 fi
18721 done
18722
18723
18724 fi
18725
18726 elif test $pkg_failed = untried; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18728 $as_echo "no" >&6; }
18729
18730
18731 pkg_failed=no
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18733 $as_echo_n "checking for WEBKIT... " >&6; }
18734
18735 if test -n "$WEBKIT_CFLAGS"; then
18736 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18737 elif test -n "$PKG_CONFIG"; then
18738 if test -n "$PKG_CONFIG" && \
18739 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18740 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18741 ac_status=$?
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; then
18744 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
18745 else
18746 pkg_failed=yes
18747 fi
18748 else
18749 pkg_failed=untried
18750 fi
18751 if test -n "$WEBKIT_LIBS"; then
18752 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18753 elif test -n "$PKG_CONFIG"; then
18754 if test -n "$PKG_CONFIG" && \
18755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
18756 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
18757 ac_status=$?
18758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18759 test $ac_status = 0; }; then
18760 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
18761 else
18762 pkg_failed=yes
18763 fi
18764 else
18765 pkg_failed=untried
18766 fi
18767
18768
18769
18770 if test $pkg_failed = yes; then
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 $as_echo "no" >&6; }
18773
18774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18775 _pkg_short_errors_supported=yes
18776 else
18777 _pkg_short_errors_supported=no
18778 fi
18779 if test $_pkg_short_errors_supported = yes; then
18780 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "WebKitGtk" 2>&1`
18781 else
18782 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "WebKitGtk" 2>&1`
18783 fi
18784 # Put the nasty error message in config.log where it belongs
18785 echo "$WEBKIT_PKG_ERRORS" >&5
18786
18787
18788
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18790 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18791 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18792 $as_echo_n "(cached) " >&6
18793 else
18794
18795 ac_check_framework_save_LIBS=$LIBS
18796 LIBS="-framework JavaScriptCore $LIBS"
18797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18799
18800 #include <JavaScriptCore/JSBase.h>
18801
18802 int
18803 main ()
18804 {
18805
18806 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18807
18808 ;
18809 return 0;
18810 }
18811 _ACEOF
18812 if ac_fn_cxx_try_link "$LINENO"; then :
18813
18814 ac_cv_framework_JavaScriptCore=yes
18815
18816 else
18817 ac_cv_framework_JavaScriptCore=no
18818 fi
18819 rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_framework_save_LIBS
18822
18823 fi
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18825 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18826 if test $ac_cv_framework_JavaScriptCore = yes; then :
18827
18828
18829 for element in "-framework JavaScriptCore $LIBS"; do
18830 haveit=
18831 for x in $LIBS; do
18832
18833 acl_save_prefix="$prefix"
18834 prefix="$acl_final_prefix"
18835 acl_save_exec_prefix="$exec_prefix"
18836 exec_prefix="$acl_final_exec_prefix"
18837 eval x=\"$x\"
18838 exec_prefix="$acl_save_exec_prefix"
18839 prefix="$acl_save_prefix"
18840
18841 if test "X$x" = "X$element"; then
18842 haveit=yes
18843 break
18844 fi
18845 done
18846 if test -z "$haveit"; then
18847 LIBS="${LIBS}${LIBS:+ }$element"
18848 fi
18849 done
18850
18851
18852 CY_EXECUTE=1
18853
18854
18855
18856 fi
18857
18858 elif test $pkg_failed = untried; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18861
18862
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18864 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18865 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18866 $as_echo_n "(cached) " >&6
18867 else
18868
18869 ac_check_framework_save_LIBS=$LIBS
18870 LIBS="-framework JavaScriptCore $LIBS"
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18873
18874 #include <JavaScriptCore/JSBase.h>
18875
18876 int
18877 main ()
18878 {
18879
18880 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18881
18882 ;
18883 return 0;
18884 }
18885 _ACEOF
18886 if ac_fn_cxx_try_link "$LINENO"; then :
18887
18888 ac_cv_framework_JavaScriptCore=yes
18889
18890 else
18891 ac_cv_framework_JavaScriptCore=no
18892 fi
18893 rm -f core conftest.err conftest.$ac_objext \
18894 conftest$ac_exeext conftest.$ac_ext
18895 LIBS=$ac_check_framework_save_LIBS
18896
18897 fi
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18899 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18900 if test $ac_cv_framework_JavaScriptCore = yes; then :
18901
18902
18903 for element in "-framework JavaScriptCore $LIBS"; do
18904 haveit=
18905 for x in $LIBS; do
18906
18907 acl_save_prefix="$prefix"
18908 prefix="$acl_final_prefix"
18909 acl_save_exec_prefix="$exec_prefix"
18910 exec_prefix="$acl_final_exec_prefix"
18911 eval x=\"$x\"
18912 exec_prefix="$acl_save_exec_prefix"
18913 prefix="$acl_save_prefix"
18914
18915 if test "X$x" = "X$element"; then
18916 haveit=yes
18917 break
18918 fi
18919 done
18920 if test -z "$haveit"; then
18921 LIBS="${LIBS}${LIBS:+ }$element"
18922 fi
18923 done
18924
18925
18926 CY_EXECUTE=1
18927
18928
18929
18930 fi
18931
18932 else
18933 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18934 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18936 $as_echo "yes" >&6; }
18937
18938 CY_EXECUTE=1
18939
18940
18941 for element in `$PKG_CONFIG --cflags WebKitGtk`; do
18942 haveit=
18943 for x in $CXXFLAGS; do
18944
18945 acl_save_prefix="$prefix"
18946 prefix="$acl_final_prefix"
18947 acl_save_exec_prefix="$exec_prefix"
18948 exec_prefix="$acl_final_exec_prefix"
18949 eval x=\"$x\"
18950 exec_prefix="$acl_save_exec_prefix"
18951 prefix="$acl_save_prefix"
18952
18953 if test "X$x" = "X$element"; then
18954 haveit=yes
18955 break
18956 fi
18957 done
18958 if test -z "$haveit"; then
18959 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18960 fi
18961 done
18962
18963
18964 for element in `$PKG_CONFIG --libs WebKitGtk`; do
18965 haveit=
18966 for x in $LIBS; do
18967
18968 acl_save_prefix="$prefix"
18969 prefix="$acl_final_prefix"
18970 acl_save_exec_prefix="$exec_prefix"
18971 exec_prefix="$acl_final_exec_prefix"
18972 eval x=\"$x\"
18973 exec_prefix="$acl_save_exec_prefix"
18974 prefix="$acl_save_prefix"
18975
18976 if test "X$x" = "X$element"; then
18977 haveit=yes
18978 break
18979 fi
18980 done
18981 if test -z "$haveit"; then
18982 LIBS="${LIBS}${LIBS:+ }$element"
18983 fi
18984 done
18985
18986
18987 fi
18988
18989 else
18990 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18991 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18993 $as_echo "yes" >&6; }
18994
18995 CY_EXECUTE=1
18996
18997
18998 for element in `$PKG_CONFIG --cflags webkit-1.0`; do
18999 haveit=
19000 for x in $CXXFLAGS; do
19001
19002 acl_save_prefix="$prefix"
19003 prefix="$acl_final_prefix"
19004 acl_save_exec_prefix="$exec_prefix"
19005 exec_prefix="$acl_final_exec_prefix"
19006 eval x=\"$x\"
19007 exec_prefix="$acl_save_exec_prefix"
19008 prefix="$acl_save_prefix"
19009
19010 if test "X$x" = "X$element"; then
19011 haveit=yes
19012 break
19013 fi
19014 done
19015 if test -z "$haveit"; then
19016 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19017 fi
19018 done
19019
19020
19021 for element in `$PKG_CONFIG --libs webkit-1.0`; do
19022 haveit=
19023 for x in $LIBS; do
19024
19025 acl_save_prefix="$prefix"
19026 prefix="$acl_final_prefix"
19027 acl_save_exec_prefix="$exec_prefix"
19028 exec_prefix="$acl_final_exec_prefix"
19029 eval x=\"$x\"
19030 exec_prefix="$acl_save_exec_prefix"
19031 prefix="$acl_save_prefix"
19032
19033 if test "X$x" = "X$element"; then
19034 haveit=yes
19035 break
19036 fi
19037 done
19038 if test -z "$haveit"; then
19039 LIBS="${LIBS}${LIBS:+ }$element"
19040 fi
19041 done
19042
19043
19044 fi
19045
19046 fi
19047
19048
19049
19050 apr_found="no"
19051
19052 if test "$target_os" = "os2-emx"; then
19053 # Scripts don't pass test -x on OS/2
19054 TEST_X="test -f"
19055 else
19056 TEST_X="test -x"
19057 fi
19058
19059 acceptable_majors="1"
19060
19061 apr_temp_acceptable_apr_config=""
19062 for apr_temp_major in $acceptable_majors
19063 do
19064 case $apr_temp_major in
19065 0)
19066 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19067 ;;
19068 *)
19069 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19070 ;;
19071 esac
19072 done
19073
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19075 $as_echo_n "checking for APR... " >&6; }
19076
19077 # Check whether --with-apr was given.
19078 if test "${with_apr+set}" = set; then :
19079 withval=$with_apr;
19080 if test "$withval" = "no" || test "$withval" = "yes"; then
19081 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19082 fi
19083
19084 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19085 do
19086 for lookdir in "$withval/bin" "$withval"
19087 do
19088 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19089 apr_config="$lookdir/$apr_temp_apr_config_file"
19090
19091 apr_found="yes"
19092 break 2
19093 fi
19094 done
19095 done
19096
19097 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19098 apr_config="$withval"
19099 apr_found="yes"
19100 fi
19101
19102 if test "$apr_found" != "yes"; then
19103 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
19104 fi
19105
19106 else
19107
19108 if test -n "1" && test "1" = "1"; then
19109 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19110 do
19111 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19112 apr_config="$apr_temp_apr_config_file"
19113
19114 apr_found="yes"
19115 break
19116 else
19117 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19118 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19119 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19120
19121 apr_found="yes"
19122 break 2
19123 fi
19124 done
19125 fi
19126 done
19127 fi
19128 if test "$apr_found" = "no" && test -d ""; then
19129 apr_temp_abs_srcdir="`cd && pwd`"
19130 apr_found="reconfig"
19131 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19132 case $apr_bundled_major in
19133 "")
19134 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19135 ;;
19136 0)
19137 apr_temp_apr_config_file="apr-config"
19138 ;;
19139 *)
19140 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19141 ;;
19142 esac
19143 if test -n ""; then
19144 apr_config="/$apr_temp_apr_config_file"
19145 else
19146 apr_config="/$apr_temp_apr_config_file"
19147 fi
19148 fi
19149
19150 fi
19151
19152
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19154 $as_echo "$apr_found" >&6; }
19155
19156 case $apr_found in #(
19157 yes) :
19158
19159
19160 for element in `$apr_config --includes`; do
19161 haveit=
19162 for x in $CPPFLAGS; do
19163
19164 acl_save_prefix="$prefix"
19165 prefix="$acl_final_prefix"
19166 acl_save_exec_prefix="$exec_prefix"
19167 exec_prefix="$acl_final_exec_prefix"
19168 eval x=\"$x\"
19169 exec_prefix="$acl_save_exec_prefix"
19170 prefix="$acl_save_prefix"
19171
19172 if test "X$x" = "X$element"; then
19173 haveit=yes
19174 break
19175 fi
19176 done
19177 if test -z "$haveit"; then
19178 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19179 fi
19180 done
19181
19182
19183 for element in `$apr_config --link-libtool`; do
19184 haveit=
19185 for x in $LIBS; do
19186
19187 acl_save_prefix="$prefix"
19188 prefix="$acl_final_prefix"
19189 acl_save_exec_prefix="$exec_prefix"
19190 exec_prefix="$acl_final_exec_prefix"
19191 eval x=\"$x\"
19192 exec_prefix="$acl_save_exec_prefix"
19193 prefix="$acl_save_prefix"
19194
19195 if test "X$x" = "X$element"; then
19196 haveit=yes
19197 break
19198 fi
19199 done
19200 if test -z "$haveit"; then
19201 LIBS="${LIBS}${LIBS:+ }$element"
19202 fi
19203 done
19204
19205 ;; #(
19206 *) :
19207 as_fn_error $? "missing \"libapr\"" "$LINENO" 5 ;;
19208 esac
19209
19210
19211
19212 if test "x$CY_EXECUTE" = x1; then
19213 CY_EXECUTE_TRUE=
19214 CY_EXECUTE_FALSE='#'
19215 else
19216 CY_EXECUTE_TRUE='#'
19217 CY_EXECUTE_FALSE=
19218 fi
19219
19220
19221
19222
19223 case $CY_EXECUTE in #(
19224 1) :
19225
19226 for ac_header in ffi.h ffi/ffi.h
19227 do :
19228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19229 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19231 cat >>confdefs.h <<_ACEOF
19232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19233 _ACEOF
19234 break
19235 fi
19236
19237 done
19238
19239 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19240
19241
19242
19243 pkg_failed=no
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19245 $as_echo_n "checking for LIBFFI... " >&6; }
19246
19247 if test -n "$LIBFFI_CFLAGS"; then
19248 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19249 elif test -n "$PKG_CONFIG"; then
19250 if test -n "$PKG_CONFIG" && \
19251 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19252 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19253 ac_status=$?
19254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19255 test $ac_status = 0; }; then
19256 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19257 else
19258 pkg_failed=yes
19259 fi
19260 else
19261 pkg_failed=untried
19262 fi
19263 if test -n "$LIBFFI_LIBS"; then
19264 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19265 elif test -n "$PKG_CONFIG"; then
19266 if test -n "$PKG_CONFIG" && \
19267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19268 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19269 ac_status=$?
19270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19271 test $ac_status = 0; }; then
19272 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19273 else
19274 pkg_failed=yes
19275 fi
19276 else
19277 pkg_failed=untried
19278 fi
19279
19280
19281
19282 if test $pkg_failed = yes; then
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284 $as_echo "no" >&6; }
19285
19286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19287 _pkg_short_errors_supported=yes
19288 else
19289 _pkg_short_errors_supported=no
19290 fi
19291 if test $_pkg_short_errors_supported = yes; then
19292 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19293 else
19294 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19295 fi
19296 # Put the nasty error message in config.log where it belongs
19297 echo "$LIBFFI_PKG_ERRORS" >&5
19298
19299 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19300 elif test $pkg_failed = untried; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19302 $as_echo "no" >&6; }
19303 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19304 else
19305 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19306 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309
19310
19311 for element in `$PKG_CONFIG --cflags libffi`; do
19312 haveit=
19313 for x in $CXXFLAGS; do
19314
19315 acl_save_prefix="$prefix"
19316 prefix="$acl_final_prefix"
19317 acl_save_exec_prefix="$exec_prefix"
19318 exec_prefix="$acl_final_exec_prefix"
19319 eval x=\"$x\"
19320 exec_prefix="$acl_save_exec_prefix"
19321 prefix="$acl_save_prefix"
19322
19323 if test "X$x" = "X$element"; then
19324 haveit=yes
19325 break
19326 fi
19327 done
19328 if test -z "$haveit"; then
19329 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19330 fi
19331 done
19332
19333
19334 for element in `$PKG_CONFIG --libs libffi`; do
19335 haveit=
19336 for x in $LIBS; do
19337
19338 acl_save_prefix="$prefix"
19339 prefix="$acl_final_prefix"
19340 acl_save_exec_prefix="$exec_prefix"
19341 exec_prefix="$acl_final_exec_prefix"
19342 eval x=\"$x\"
19343 exec_prefix="$acl_save_exec_prefix"
19344 prefix="$acl_save_prefix"
19345
19346 if test "X$x" = "X$element"; then
19347 haveit=yes
19348 break
19349 fi
19350 done
19351 if test -z "$haveit"; then
19352 LIBS="${LIBS}${LIBS:+ }$element"
19353 fi
19354 done
19355
19356
19357 fi
19358
19359 else
19360
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19362 $as_echo_n "checking for library containing ffi_call... " >&6; }
19363 if ${ac_cv_search_ffi_call+:} false; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366 ac_func_search_save_LIBS=$LIBS
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char ffi_call ();
19377 int
19378 main ()
19379 {
19380 return ffi_call ();
19381 ;
19382 return 0;
19383 }
19384 _ACEOF
19385 for ac_lib in '' ffi; do
19386 if test -z "$ac_lib"; then
19387 ac_res="none required"
19388 else
19389 ac_res=-l$ac_lib
19390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19391 fi
19392 if ac_fn_cxx_try_link "$LINENO"; then :
19393 ac_cv_search_ffi_call=$ac_res
19394 fi
19395 rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext
19397 if ${ac_cv_search_ffi_call+:} false; then :
19398 break
19399 fi
19400 done
19401 if ${ac_cv_search_ffi_call+:} false; then :
19402
19403 else
19404 ac_cv_search_ffi_call=no
19405 fi
19406 rm conftest.$ac_ext
19407 LIBS=$ac_func_search_save_LIBS
19408 fi
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19410 $as_echo "$ac_cv_search_ffi_call" >&6; }
19411 ac_res=$ac_cv_search_ffi_call
19412 if test "$ac_res" != no; then :
19413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19414
19415 fi
19416
19417 case $ac_cv_search_ffi_call in #(
19418 no) :
19419
19420
19421 pkg_failed=no
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19423 $as_echo_n "checking for LIBFFI... " >&6; }
19424
19425 if test -n "$LIBFFI_CFLAGS"; then
19426 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19427 elif test -n "$PKG_CONFIG"; then
19428 if test -n "$PKG_CONFIG" && \
19429 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19430 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19431 ac_status=$?
19432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19433 test $ac_status = 0; }; then
19434 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19435 else
19436 pkg_failed=yes
19437 fi
19438 else
19439 pkg_failed=untried
19440 fi
19441 if test -n "$LIBFFI_LIBS"; then
19442 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19443 elif test -n "$PKG_CONFIG"; then
19444 if test -n "$PKG_CONFIG" && \
19445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19446 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19447 ac_status=$?
19448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19449 test $ac_status = 0; }; then
19450 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19451 else
19452 pkg_failed=yes
19453 fi
19454 else
19455 pkg_failed=untried
19456 fi
19457
19458
19459
19460 if test $pkg_failed = yes; then
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19462 $as_echo "no" >&6; }
19463
19464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19465 _pkg_short_errors_supported=yes
19466 else
19467 _pkg_short_errors_supported=no
19468 fi
19469 if test $_pkg_short_errors_supported = yes; then
19470 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
19471 else
19472 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
19473 fi
19474 # Put the nasty error message in config.log where it belongs
19475 echo "$LIBFFI_PKG_ERRORS" >&5
19476
19477 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19478 elif test $pkg_failed = untried; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19480 $as_echo "no" >&6; }
19481 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19482 else
19483 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19484 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19486 $as_echo "yes" >&6; }
19487
19488
19489 for element in `$PKG_CONFIG --cflags libffi`; do
19490 haveit=
19491 for x in $CXXFLAGS; do
19492
19493 acl_save_prefix="$prefix"
19494 prefix="$acl_final_prefix"
19495 acl_save_exec_prefix="$exec_prefix"
19496 exec_prefix="$acl_final_exec_prefix"
19497 eval x=\"$x\"
19498 exec_prefix="$acl_save_exec_prefix"
19499 prefix="$acl_save_prefix"
19500
19501 if test "X$x" = "X$element"; then
19502 haveit=yes
19503 break
19504 fi
19505 done
19506 if test -z "$haveit"; then
19507 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19508 fi
19509 done
19510
19511
19512 for element in `$PKG_CONFIG --libs libffi`; do
19513 haveit=
19514 for x in $LIBS; do
19515
19516 acl_save_prefix="$prefix"
19517 prefix="$acl_final_prefix"
19518 acl_save_exec_prefix="$exec_prefix"
19519 exec_prefix="$acl_final_exec_prefix"
19520 eval x=\"$x\"
19521 exec_prefix="$acl_save_exec_prefix"
19522 prefix="$acl_save_prefix"
19523
19524 if test "X$x" = "X$element"; then
19525 haveit=yes
19526 break
19527 fi
19528 done
19529 if test -z "$haveit"; then
19530 LIBS="${LIBS}${LIBS:+ }$element"
19531 fi
19532 done
19533
19534
19535 fi ;; #(
19536 *) :
19537 ;;
19538 esac
19539
19540 fi
19541
19542 ac_ext=mm
19543 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19544 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19547
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19550 $as_echo_n "checking if we really have Objective C++... " >&6; }
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553
19554 _ACEOF
19555 if ac_fn_objcxx_try_compile "$LINENO"; then :
19556
19557 CY_OBJECTIVEC=1
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19559 $as_echo "yes" >&6; }
19560
19561 else
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19563 $as_echo "no" >&6; }
19564 fi
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566
19567 if test "x$CY_OBJECTIVEC" = x1; then :
19568
19569
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19571 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19572 if ${ac_cv_framework_CoreFoundation+:} false; then :
19573 $as_echo_n "(cached) " >&6
19574 else
19575
19576 ac_check_framework_save_LIBS=$LIBS
19577 LIBS="-framework CoreFoundation $LIBS"
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19580
19581 #include <CoreFoundation/CFBase.h>
19582
19583 int
19584 main ()
19585 {
19586 CFAllocatorGetDefault();
19587 ;
19588 return 0;
19589 }
19590 _ACEOF
19591 if ac_fn_objcxx_try_link "$LINENO"; then :
19592
19593 ac_cv_framework_CoreFoundation=yes
19594
19595 else
19596 ac_cv_framework_CoreFoundation=no
19597 fi
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_framework_save_LIBS
19601
19602 fi
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19604 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19605 if test $ac_cv_framework_CoreFoundation = yes; then :
19606
19607
19608 for element in "-framework CoreFoundation $LIBS"; do
19609 haveit=
19610 for x in $LIBS; do
19611
19612 acl_save_prefix="$prefix"
19613 prefix="$acl_final_prefix"
19614 acl_save_exec_prefix="$exec_prefix"
19615 exec_prefix="$acl_final_exec_prefix"
19616 eval x=\"$x\"
19617 exec_prefix="$acl_save_exec_prefix"
19618 prefix="$acl_save_prefix"
19619
19620 if test "X$x" = "X$element"; then
19621 haveit=yes
19622 break
19623 fi
19624 done
19625 if test -z "$haveit"; then
19626 LIBS="${LIBS}${LIBS:+ }$element"
19627 fi
19628 done
19629
19630
19631
19632
19633
19634
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19636 $as_echo_n "checking for framework Foundation... " >&6; }
19637 if ${ac_cv_framework_Foundation+:} false; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640
19641 ac_check_framework_save_LIBS=$LIBS
19642 LIBS="-framework Foundation $LIBS"
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645
19646 #include <Foundation/NSObject.h>
19647
19648 int
19649 main ()
19650 {
19651 [[NSObject alloc] init];
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_objcxx_try_link "$LINENO"; then :
19657
19658 ac_cv_framework_Foundation=yes
19659
19660 else
19661 ac_cv_framework_Foundation=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_Foundation" >&5
19669 $as_echo "$ac_cv_framework_Foundation" >&6; }
19670 if test $ac_cv_framework_Foundation = yes; then :
19671
19672
19673 for element in "-framework Foundation $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 cat >>confdefs.h <<_ACEOF
19696 #define HAVE_FRAMEWORK_FOUNDATION 1
19697 _ACEOF
19698
19699
19700 fi
19701
19702
19703
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework WebKit" >&5
19705 $as_echo_n "checking for framework WebKit... " >&6; }
19706 if ${ac_cv_framework_WebKit+:} false; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19709
19710 ac_check_framework_save_LIBS=$LIBS
19711 LIBS="-framework WebKit $LIBS"
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714
19715 #include <WebKit/WebScriptObject.h>
19716
19717 int
19718 main ()
19719 {
19720 [[WebScriptObject alloc] init];
19721 ;
19722 return 0;
19723 }
19724 _ACEOF
19725 if ac_fn_objcxx_try_link "$LINENO"; then :
19726
19727 ac_cv_framework_WebKit=yes
19728
19729 else
19730 ac_cv_framework_WebKit=no
19731 fi
19732 rm -f core conftest.err conftest.$ac_objext \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_framework_save_LIBS
19735
19736 fi
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_WebKit" >&5
19738 $as_echo "$ac_cv_framework_WebKit" >&6; }
19739 if test $ac_cv_framework_WebKit = yes; then :
19740
19741
19742 for element in "-framework WebKit $LIBS"; do
19743 haveit=
19744 for x in $LIBS; do
19745
19746 acl_save_prefix="$prefix"
19747 prefix="$acl_final_prefix"
19748 acl_save_exec_prefix="$exec_prefix"
19749 exec_prefix="$acl_final_exec_prefix"
19750 eval x=\"$x\"
19751 exec_prefix="$acl_save_exec_prefix"
19752 prefix="$acl_save_prefix"
19753
19754 if test "X$x" = "X$element"; then
19755 haveit=yes
19756 break
19757 fi
19758 done
19759 if test -z "$haveit"; then
19760 LIBS="${LIBS}${LIBS:+ }$element"
19761 fi
19762 done
19763
19764 cat >>confdefs.h <<_ACEOF
19765 #define HAVE_FRAMEWORK_WEBKIT 1
19766 _ACEOF
19767
19768
19769 fi
19770
19771
19772 else
19773
19774
19775 for ac_prog in gnustep-config
19776 do
19777 # Extract the first word of "$ac_prog", so it can be a program name with args.
19778 set dummy $ac_prog; ac_word=$2
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19780 $as_echo_n "checking for $ac_word... " >&6; }
19781 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19782 $as_echo_n "(cached) " >&6
19783 else
19784 if test -n "$GNUSTEP_CONFIG"; then
19785 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19786 else
19787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788 for as_dir in $PATH
19789 do
19790 IFS=$as_save_IFS
19791 test -z "$as_dir" && as_dir=.
19792 for ac_exec_ext in '' $ac_executable_extensions; do
19793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19794 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19796 break 2
19797 fi
19798 done
19799 done
19800 IFS=$as_save_IFS
19801
19802 fi
19803 fi
19804 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19805 if test -n "$GNUSTEP_CONFIG"; then
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19807 $as_echo "$GNUSTEP_CONFIG" >&6; }
19808 else
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810 $as_echo "no" >&6; }
19811 fi
19812
19813
19814 test -n "$GNUSTEP_CONFIG" && break
19815 done
19816
19817
19818 if test "x$GNUSTEP_CONFIG" != x; then :
19819
19820
19821
19822 for element in `$GNUSTEP_CONFIG --objc-flags`; do
19823 haveit=
19824 for x in $OBJCXXFLAGS; do
19825
19826 acl_save_prefix="$prefix"
19827 prefix="$acl_final_prefix"
19828 acl_save_exec_prefix="$exec_prefix"
19829 exec_prefix="$acl_final_exec_prefix"
19830 eval x=\"$x\"
19831 exec_prefix="$acl_save_exec_prefix"
19832 prefix="$acl_save_prefix"
19833
19834 if test "X$x" = "X$element"; then
19835 haveit=yes
19836 break
19837 fi
19838 done
19839 if test -z "$haveit"; then
19840 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19841 fi
19842 done
19843
19844
19845 for element in `$GNUSTEP_CONFIG --base-libs`; do
19846 haveit=
19847 for x in $LIBS; do
19848
19849 acl_save_prefix="$prefix"
19850 prefix="$acl_final_prefix"
19851 acl_save_exec_prefix="$exec_prefix"
19852 exec_prefix="$acl_final_exec_prefix"
19853 eval x=\"$x\"
19854 exec_prefix="$acl_save_exec_prefix"
19855 prefix="$acl_save_prefix"
19856
19857 if test "X$x" = "X$element"; then
19858 haveit=yes
19859 break
19860 fi
19861 done
19862 if test -z "$haveit"; then
19863 LIBS="${LIBS}${LIBS:+ }$element"
19864 fi
19865 done
19866
19867
19868 else
19869 CY_OBJECTIVEC=0
19870
19871 fi
19872
19873 fi
19874
19875 fi
19876
19877 ac_ext=cpp
19878 ac_cpp='$CXXCPP $CPPFLAGS'
19879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19882
19883 ;; #(
19884 *) :
19885 ;;
19886 esac
19887
19888 if test "x$CY_OBJECTIVEC" = x1; then
19889 CY_OBJECTIVEC_TRUE=
19890 CY_OBJECTIVEC_FALSE='#'
19891 else
19892 CY_OBJECTIVEC_TRUE='#'
19893 CY_OBJECTIVEC_FALSE=
19894 fi
19895
19896
19897
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
19899 $as_echo_n "checking for a readline compatible library... " >&6; }
19900 if ${ax_cv_lib_readline+:} false; then :
19901 $as_echo_n "(cached) " >&6
19902 else
19903
19904 ORIG_LIBS="$LIBS"
19905 for readline_lib in readline edit editline; do
19906 for termcap_lib in "" termcap curses ncurses; do
19907 if test -z "$termcap_lib"; then
19908 TRY_LIB="-l$readline_lib"
19909 else
19910 TRY_LIB="-l$readline_lib -l$termcap_lib"
19911 fi
19912 LIBS="$ORIG_LIBS $TRY_LIB"
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19919 #ifdef __cplusplus
19920 extern "C"
19921 #endif
19922 char readline ();
19923 int
19924 main ()
19925 {
19926 return readline ();
19927 ;
19928 return 0;
19929 }
19930 _ACEOF
19931 if ac_fn_cxx_try_link "$LINENO"; then :
19932 ax_cv_lib_readline="$TRY_LIB"
19933 fi
19934 rm -f core conftest.err conftest.$ac_objext \
19935 conftest$ac_exeext conftest.$ac_ext
19936 if test -n "$ax_cv_lib_readline"; then
19937 break
19938 fi
19939 done
19940 if test -n "$ax_cv_lib_readline"; then
19941 break
19942 fi
19943 done
19944 if test -z "$ax_cv_lib_readline"; then
19945 ax_cv_lib_readline="no"
19946 fi
19947 LIBS="$ORIG_LIBS"
19948
19949 fi
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
19951 $as_echo "$ax_cv_lib_readline" >&6; }
19952
19953 if test "$ax_cv_lib_readline" != "no"; then
19954 LIBS="$LIBS $ax_cv_lib_readline"
19955
19956 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
19957
19958 for ac_header in readline.h readline/readline.h
19959 do :
19960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19961 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19963 cat >>confdefs.h <<_ACEOF
19964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19965 _ACEOF
19966
19967 fi
19968
19969 done
19970
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
19972 $as_echo_n "checking whether readline supports history... " >&6; }
19973 if ${ax_cv_lib_readline_history+:} false; then :
19974 $as_echo_n "(cached) " >&6
19975 else
19976
19977 ax_cv_lib_readline_history="no"
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h. */
19980
19981 /* Override any GCC internal prototype to avoid an error.
19982 Use char because int might match the return type of a GCC
19983 builtin and then its argument prototype would still apply. */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 char add_history ();
19988 int
19989 main ()
19990 {
19991 return add_history ();
19992 ;
19993 return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_cxx_try_link "$LINENO"; then :
19997 ax_cv_lib_readline_history="yes"
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001
20002 fi
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20004 $as_echo "$ax_cv_lib_readline_history" >&6; }
20005 if test "$ax_cv_lib_readline_history" = "yes"; then
20006
20007 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20008
20009 for ac_header in history.h readline/history.h
20010 do :
20011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20012 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20014 cat >>confdefs.h <<_ACEOF
20015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016 _ACEOF
20017
20018 fi
20019
20020 done
20021
20022 fi
20023 fi
20024
20025 case $vl_cv_lib_readline in #(
20026 no) :
20027 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20028 *) :
20029 ;;
20030 esac
20031
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20033 $as_echo_n "checking for library containing cur_term... " >&6; }
20034 if ${ac_cv_search_cur_term+:} false; then :
20035 $as_echo_n "(cached) " >&6
20036 else
20037 ac_func_search_save_LIBS=$LIBS
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040
20041 /* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 char cur_term ();
20048 int
20049 main ()
20050 {
20051 return cur_term ();
20052 ;
20053 return 0;
20054 }
20055 _ACEOF
20056 for ac_lib in '' termcap; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20059 else
20060 ac_res=-l$ac_lib
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20062 fi
20063 if ac_fn_cxx_try_link "$LINENO"; then :
20064 ac_cv_search_cur_term=$ac_res
20065 fi
20066 rm -f core conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext
20068 if ${ac_cv_search_cur_term+:} false; then :
20069 break
20070 fi
20071 done
20072 if ${ac_cv_search_cur_term+:} false; then :
20073
20074 else
20075 ac_cv_search_cur_term=no
20076 fi
20077 rm conftest.$ac_ext
20078 LIBS=$ac_func_search_save_LIBS
20079 fi
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20081 $as_echo "$ac_cv_search_cur_term" >&6; }
20082 ac_res=$ac_cv_search_cur_term
20083 if test "$ac_res" != no; then :
20084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20085
20086 fi
20087
20088
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094
20095
20096 if test "X$prefix" = "XNONE"; then
20097 acl_final_prefix="$ac_default_prefix"
20098 else
20099 acl_final_prefix="$prefix"
20100 fi
20101 if test "X$exec_prefix" = "XNONE"; then
20102 acl_final_exec_prefix='${prefix}'
20103 else
20104 acl_final_exec_prefix="$exec_prefix"
20105 fi
20106 acl_save_prefix="$prefix"
20107 prefix="$acl_final_prefix"
20108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20109 prefix="$acl_save_prefix"
20110
20111
20112
20113 # Check whether --with-gnu-ld was given.
20114 if test "${with_gnu_ld+set}" = set; then :
20115 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20116 else
20117 with_gnu_ld=no
20118 fi
20119
20120 # Prepare PATH_SEPARATOR.
20121 # The user is always right.
20122 if test "${PATH_SEPARATOR+set}" != set; then
20123 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20124 # contains only /bin. Note that ksh looks also at the FPATH variable,
20125 # so we have to set that as well for the test.
20126 PATH_SEPARATOR=:
20127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20128 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20129 || PATH_SEPARATOR=';'
20130 }
20131 fi
20132
20133 ac_prog=ld
20134 if test "$GCC" = yes; then
20135 # Check if gcc -print-prog-name=ld gives a path.
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20137 $as_echo_n "checking for ld used by $CC... " >&6; }
20138 case $host in
20139 *-*-mingw*)
20140 # gcc leaves a trailing carriage return which upsets mingw
20141 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20142 *)
20143 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20144 esac
20145 case $ac_prog in
20146 # Accept absolute paths.
20147 [\\/]* | ?:[\\/]*)
20148 re_direlt='/[^/][^/]*/\.\./'
20149 # Canonicalize the pathname of ld
20150 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
20151 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
20152 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20153 done
20154 test -z "$LD" && LD="$ac_prog"
20155 ;;
20156 "")
20157 # If it fails, then pretend we aren't using GCC.
20158 ac_prog=ld
20159 ;;
20160 *)
20161 # If it is relative, then search for the first ld in PATH.
20162 with_gnu_ld=unknown
20163 ;;
20164 esac
20165 elif test "$with_gnu_ld" = yes; then
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20167 $as_echo_n "checking for GNU ld... " >&6; }
20168 else
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20170 $as_echo_n "checking for non-GNU ld... " >&6; }
20171 fi
20172 if ${acl_cv_path_LD+:} false; then :
20173 $as_echo_n "(cached) " >&6
20174 else
20175 if test -z "$LD"; then
20176 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20177 for ac_dir in $PATH; do
20178 IFS="$acl_save_ifs"
20179 test -z "$ac_dir" && ac_dir=.
20180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20181 acl_cv_path_LD="$ac_dir/$ac_prog"
20182 # Check to see if the program is GNU ld. I'd rather use --version,
20183 # but apparently some variants of GNU ld only accept -v.
20184 # Break only if it was the GNU/non-GNU ld that we prefer.
20185 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
20186 *GNU* | *'with BFD'*)
20187 test "$with_gnu_ld" != no && break
20188 ;;
20189 *)
20190 test "$with_gnu_ld" != yes && break
20191 ;;
20192 esac
20193 fi
20194 done
20195 IFS="$acl_save_ifs"
20196 else
20197 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20198 fi
20199 fi
20200
20201 LD="$acl_cv_path_LD"
20202 if test -n "$LD"; then
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20204 $as_echo "$LD" >&6; }
20205 else
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20207 $as_echo "no" >&6; }
20208 fi
20209 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20211 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20212 if ${acl_cv_prog_gnu_ld+:} false; then :
20213 $as_echo_n "(cached) " >&6
20214 else
20215 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20216 case `$LD -v 2>&1 </dev/null` in
20217 *GNU* | *'with BFD'*)
20218 acl_cv_prog_gnu_ld=yes
20219 ;;
20220 *)
20221 acl_cv_prog_gnu_ld=no
20222 ;;
20223 esac
20224 fi
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20226 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20227 with_gnu_ld=$acl_cv_prog_gnu_ld
20228
20229
20230
20231
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20233 $as_echo_n "checking for shared library run path origin... " >&6; }
20234 if ${acl_cv_rpath+:} false; then :
20235 $as_echo_n "(cached) " >&6
20236 else
20237
20238 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20239 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20240 . ./conftest.sh
20241 rm -f ./conftest.sh
20242 acl_cv_rpath=done
20243
20244 fi
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20246 $as_echo "$acl_cv_rpath" >&6; }
20247 wl="$acl_cv_wl"
20248 acl_libext="$acl_cv_libext"
20249 acl_shlibext="$acl_cv_shlibext"
20250 acl_libname_spec="$acl_cv_libname_spec"
20251 acl_library_names_spec="$acl_cv_library_names_spec"
20252 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20253 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20254 acl_hardcode_direct="$acl_cv_hardcode_direct"
20255 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20256 # Check whether --enable-rpath was given.
20257 if test "${enable_rpath+set}" = set; then :
20258 enableval=$enable_rpath; :
20259 else
20260 enable_rpath=yes
20261 fi
20262
20263
20264
20265
20266 acl_libdirstem=lib
20267 acl_libdirstem2=
20268 case "$host_os" in
20269 solaris*)
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20271 $as_echo_n "checking for 64-bit host... " >&6; }
20272 if ${gl_cv_solaris_64bit+:} false; then :
20273 $as_echo_n "(cached) " >&6
20274 else
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20277
20278 #ifdef _LP64
20279 sixtyfour bits
20280 #endif
20281
20282 _ACEOF
20283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20284 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
20285 gl_cv_solaris_64bit=yes
20286 else
20287 gl_cv_solaris_64bit=no
20288 fi
20289 rm -f conftest*
20290
20291
20292 fi
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20294 $as_echo "$gl_cv_solaris_64bit" >&6; }
20295 if test $gl_cv_solaris_64bit = yes; then
20296 acl_libdirstem=lib/64
20297 case "$host_cpu" in
20298 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20299 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20300 esac
20301 fi
20302 ;;
20303 *)
20304 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20305 if test -n "$searchpath"; then
20306 acl_save_IFS="${IFS= }"; IFS=":"
20307 for searchdir in $searchpath; do
20308 if test -d "$searchdir"; then
20309 case "$searchdir" in
20310 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20311 */../ | */.. )
20312 # Better ignore directories of this form. They are misleading.
20313 ;;
20314 *) searchdir=`cd "$searchdir" && pwd`
20315 case "$searchdir" in
20316 */lib64 ) acl_libdirstem=lib64 ;;
20317 esac ;;
20318 esac
20319 fi
20320 done
20321 IFS="$acl_save_IFS"
20322 fi
20323 ;;
20324 esac
20325 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338 use_additional=yes
20339
20340 acl_save_prefix="$prefix"
20341 prefix="$acl_final_prefix"
20342 acl_save_exec_prefix="$exec_prefix"
20343 exec_prefix="$acl_final_exec_prefix"
20344
20345 eval additional_includedir=\"$includedir\"
20346 eval additional_libdir=\"$libdir\"
20347
20348 exec_prefix="$acl_save_exec_prefix"
20349 prefix="$acl_save_prefix"
20350
20351
20352 # Check whether --with-libiconv-prefix was given.
20353 if test "${with_libiconv_prefix+set}" = set; then :
20354 withval=$with_libiconv_prefix;
20355 if test "X$withval" = "Xno"; then
20356 use_additional=no
20357 else
20358 if test "X$withval" = "X"; then
20359
20360 acl_save_prefix="$prefix"
20361 prefix="$acl_final_prefix"
20362 acl_save_exec_prefix="$exec_prefix"
20363 exec_prefix="$acl_final_exec_prefix"
20364
20365 eval additional_includedir=\"$includedir\"
20366 eval additional_libdir=\"$libdir\"
20367
20368 exec_prefix="$acl_save_exec_prefix"
20369 prefix="$acl_save_prefix"
20370
20371 else
20372 additional_includedir="$withval/include"
20373 additional_libdir="$withval/$acl_libdirstem"
20374 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20375 && ! test -d "$withval/$acl_libdirstem"; then
20376 additional_libdir="$withval/$acl_libdirstem2"
20377 fi
20378 fi
20379 fi
20380
20381 fi
20382
20383 LIBICONV=
20384 LTLIBICONV=
20385 INCICONV=
20386 LIBICONV_PREFIX=
20387 HAVE_LIBICONV=
20388 rpathdirs=
20389 ltrpathdirs=
20390 names_already_handled=
20391 names_next_round='iconv '
20392 while test -n "$names_next_round"; do
20393 names_this_round="$names_next_round"
20394 names_next_round=
20395 for name in $names_this_round; do
20396 already_handled=
20397 for n in $names_already_handled; do
20398 if test "$n" = "$name"; then
20399 already_handled=yes
20400 break
20401 fi
20402 done
20403 if test -z "$already_handled"; then
20404 names_already_handled="$names_already_handled $name"
20405 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20406 eval value=\"\$HAVE_LIB$uppername\"
20407 if test -n "$value"; then
20408 if test "$value" = yes; then
20409 eval value=\"\$LIB$uppername\"
20410 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20411 eval value=\"\$LTLIB$uppername\"
20412 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20413 else
20414 :
20415 fi
20416 else
20417 found_dir=
20418 found_la=
20419 found_so=
20420 found_a=
20421 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20422 if test -n "$acl_shlibext"; then
20423 shrext=".$acl_shlibext" # typically: shrext=.so
20424 else
20425 shrext=
20426 fi
20427 if test $use_additional = yes; then
20428 dir="$additional_libdir"
20429 if test -n "$acl_shlibext"; then
20430 if test -f "$dir/$libname$shrext"; then
20431 found_dir="$dir"
20432 found_so="$dir/$libname$shrext"
20433 else
20434 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20435 ver=`(cd "$dir" && \
20436 for f in "$libname$shrext".*; do echo "$f"; done \
20437 | sed -e "s,^$libname$shrext\\\\.,," \
20438 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20439 | sed 1q ) 2>/dev/null`
20440 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20441 found_dir="$dir"
20442 found_so="$dir/$libname$shrext.$ver"
20443 fi
20444 else
20445 eval library_names=\"$acl_library_names_spec\"
20446 for f in $library_names; do
20447 if test -f "$dir/$f"; then
20448 found_dir="$dir"
20449 found_so="$dir/$f"
20450 break
20451 fi
20452 done
20453 fi
20454 fi
20455 fi
20456 if test "X$found_dir" = "X"; then
20457 if test -f "$dir/$libname.$acl_libext"; then
20458 found_dir="$dir"
20459 found_a="$dir/$libname.$acl_libext"
20460 fi
20461 fi
20462 if test "X$found_dir" != "X"; then
20463 if test -f "$dir/$libname.la"; then
20464 found_la="$dir/$libname.la"
20465 fi
20466 fi
20467 fi
20468 if test "X$found_dir" = "X"; then
20469 for x in $LDFLAGS $LTLIBICONV; do
20470
20471 acl_save_prefix="$prefix"
20472 prefix="$acl_final_prefix"
20473 acl_save_exec_prefix="$exec_prefix"
20474 exec_prefix="$acl_final_exec_prefix"
20475 eval x=\"$x\"
20476 exec_prefix="$acl_save_exec_prefix"
20477 prefix="$acl_save_prefix"
20478
20479 case "$x" in
20480 -L*)
20481 dir=`echo "X$x" | sed -e 's/^X-L//'`
20482 if test -n "$acl_shlibext"; then
20483 if test -f "$dir/$libname$shrext"; then
20484 found_dir="$dir"
20485 found_so="$dir/$libname$shrext"
20486 else
20487 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20488 ver=`(cd "$dir" && \
20489 for f in "$libname$shrext".*; do echo "$f"; done \
20490 | sed -e "s,^$libname$shrext\\\\.,," \
20491 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20492 | sed 1q ) 2>/dev/null`
20493 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20494 found_dir="$dir"
20495 found_so="$dir/$libname$shrext.$ver"
20496 fi
20497 else
20498 eval library_names=\"$acl_library_names_spec\"
20499 for f in $library_names; do
20500 if test -f "$dir/$f"; then
20501 found_dir="$dir"
20502 found_so="$dir/$f"
20503 break
20504 fi
20505 done
20506 fi
20507 fi
20508 fi
20509 if test "X$found_dir" = "X"; then
20510 if test -f "$dir/$libname.$acl_libext"; then
20511 found_dir="$dir"
20512 found_a="$dir/$libname.$acl_libext"
20513 fi
20514 fi
20515 if test "X$found_dir" != "X"; then
20516 if test -f "$dir/$libname.la"; then
20517 found_la="$dir/$libname.la"
20518 fi
20519 fi
20520 ;;
20521 esac
20522 if test "X$found_dir" != "X"; then
20523 break
20524 fi
20525 done
20526 fi
20527 if test "X$found_dir" != "X"; then
20528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20529 if test "X$found_so" != "X"; then
20530 if test "$enable_rpath" = no \
20531 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20532 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20534 else
20535 haveit=
20536 for x in $ltrpathdirs; do
20537 if test "X$x" = "X$found_dir"; then
20538 haveit=yes
20539 break
20540 fi
20541 done
20542 if test -z "$haveit"; then
20543 ltrpathdirs="$ltrpathdirs $found_dir"
20544 fi
20545 if test "$acl_hardcode_direct" = yes; then
20546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20547 else
20548 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20550 haveit=
20551 for x in $rpathdirs; do
20552 if test "X$x" = "X$found_dir"; then
20553 haveit=yes
20554 break
20555 fi
20556 done
20557 if test -z "$haveit"; then
20558 rpathdirs="$rpathdirs $found_dir"
20559 fi
20560 else
20561 haveit=
20562 for x in $LDFLAGS $LIBICONV; do
20563
20564 acl_save_prefix="$prefix"
20565 prefix="$acl_final_prefix"
20566 acl_save_exec_prefix="$exec_prefix"
20567 exec_prefix="$acl_final_exec_prefix"
20568 eval x=\"$x\"
20569 exec_prefix="$acl_save_exec_prefix"
20570 prefix="$acl_save_prefix"
20571
20572 if test "X$x" = "X-L$found_dir"; then
20573 haveit=yes
20574 break
20575 fi
20576 done
20577 if test -z "$haveit"; then
20578 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20579 fi
20580 if test "$acl_hardcode_minus_L" != no; then
20581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20582 else
20583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20584 fi
20585 fi
20586 fi
20587 fi
20588 else
20589 if test "X$found_a" != "X"; then
20590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20591 else
20592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20593 fi
20594 fi
20595 additional_includedir=
20596 case "$found_dir" in
20597 */$acl_libdirstem | */$acl_libdirstem/)
20598 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20599 if test "$name" = 'iconv'; then
20600 LIBICONV_PREFIX="$basedir"
20601 fi
20602 additional_includedir="$basedir/include"
20603 ;;
20604 */$acl_libdirstem2 | */$acl_libdirstem2/)
20605 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20606 if test "$name" = 'iconv'; then
20607 LIBICONV_PREFIX="$basedir"
20608 fi
20609 additional_includedir="$basedir/include"
20610 ;;
20611 esac
20612 if test "X$additional_includedir" != "X"; then
20613 if test "X$additional_includedir" != "X/usr/include"; then
20614 haveit=
20615 if test "X$additional_includedir" = "X/usr/local/include"; then
20616 if test -n "$GCC"; then
20617 case $host_os in
20618 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20619 esac
20620 fi
20621 fi
20622 if test -z "$haveit"; then
20623 for x in $CPPFLAGS $INCICONV; do
20624
20625 acl_save_prefix="$prefix"
20626 prefix="$acl_final_prefix"
20627 acl_save_exec_prefix="$exec_prefix"
20628 exec_prefix="$acl_final_exec_prefix"
20629 eval x=\"$x\"
20630 exec_prefix="$acl_save_exec_prefix"
20631 prefix="$acl_save_prefix"
20632
20633 if test "X$x" = "X-I$additional_includedir"; then
20634 haveit=yes
20635 break
20636 fi
20637 done
20638 if test -z "$haveit"; then
20639 if test -d "$additional_includedir"; then
20640 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20641 fi
20642 fi
20643 fi
20644 fi
20645 fi
20646 if test -n "$found_la"; then
20647 save_libdir="$libdir"
20648 case "$found_la" in
20649 */* | *\\*) . "$found_la" ;;
20650 *) . "./$found_la" ;;
20651 esac
20652 libdir="$save_libdir"
20653 for dep in $dependency_libs; do
20654 case "$dep" in
20655 -L*)
20656 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20657 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20658 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20659 haveit=
20660 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20661 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20662 if test -n "$GCC"; then
20663 case $host_os in
20664 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20665 esac
20666 fi
20667 fi
20668 if test -z "$haveit"; then
20669 haveit=
20670 for x in $LDFLAGS $LIBICONV; do
20671
20672 acl_save_prefix="$prefix"
20673 prefix="$acl_final_prefix"
20674 acl_save_exec_prefix="$exec_prefix"
20675 exec_prefix="$acl_final_exec_prefix"
20676 eval x=\"$x\"
20677 exec_prefix="$acl_save_exec_prefix"
20678 prefix="$acl_save_prefix"
20679
20680 if test "X$x" = "X-L$additional_libdir"; then
20681 haveit=yes
20682 break
20683 fi
20684 done
20685 if test -z "$haveit"; then
20686 if test -d "$additional_libdir"; then
20687 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20688 fi
20689 fi
20690 haveit=
20691 for x in $LDFLAGS $LTLIBICONV; do
20692
20693 acl_save_prefix="$prefix"
20694 prefix="$acl_final_prefix"
20695 acl_save_exec_prefix="$exec_prefix"
20696 exec_prefix="$acl_final_exec_prefix"
20697 eval x=\"$x\"
20698 exec_prefix="$acl_save_exec_prefix"
20699 prefix="$acl_save_prefix"
20700
20701 if test "X$x" = "X-L$additional_libdir"; then
20702 haveit=yes
20703 break
20704 fi
20705 done
20706 if test -z "$haveit"; then
20707 if test -d "$additional_libdir"; then
20708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20709 fi
20710 fi
20711 fi
20712 fi
20713 ;;
20714 -R*)
20715 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20716 if test "$enable_rpath" != no; then
20717 haveit=
20718 for x in $rpathdirs; do
20719 if test "X$x" = "X$dir"; then
20720 haveit=yes
20721 break
20722 fi
20723 done
20724 if test -z "$haveit"; then
20725 rpathdirs="$rpathdirs $dir"
20726 fi
20727 haveit=
20728 for x in $ltrpathdirs; do
20729 if test "X$x" = "X$dir"; then
20730 haveit=yes
20731 break
20732 fi
20733 done
20734 if test -z "$haveit"; then
20735 ltrpathdirs="$ltrpathdirs $dir"
20736 fi
20737 fi
20738 ;;
20739 -l*)
20740 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20741 ;;
20742 *.la)
20743 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20744 ;;
20745 *)
20746 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20748 ;;
20749 esac
20750 done
20751 fi
20752 else
20753 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20755 fi
20756 fi
20757 fi
20758 done
20759 done
20760 if test "X$rpathdirs" != "X"; then
20761 if test -n "$acl_hardcode_libdir_separator"; then
20762 alldirs=
20763 for found_dir in $rpathdirs; do
20764 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20765 done
20766 acl_save_libdir="$libdir"
20767 libdir="$alldirs"
20768 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20769 libdir="$acl_save_libdir"
20770 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20771 else
20772 for found_dir in $rpathdirs; do
20773 acl_save_libdir="$libdir"
20774 libdir="$found_dir"
20775 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20776 libdir="$acl_save_libdir"
20777 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20778 done
20779 fi
20780 fi
20781 if test "X$ltrpathdirs" != "X"; then
20782 for found_dir in $ltrpathdirs; do
20783 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20784 done
20785 fi
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798 am_save_CPPFLAGS="$CPPFLAGS"
20799
20800 for element in $INCICONV; do
20801 haveit=
20802 for x in $CPPFLAGS; do
20803
20804 acl_save_prefix="$prefix"
20805 prefix="$acl_final_prefix"
20806 acl_save_exec_prefix="$exec_prefix"
20807 exec_prefix="$acl_final_exec_prefix"
20808 eval x=\"$x\"
20809 exec_prefix="$acl_save_exec_prefix"
20810 prefix="$acl_save_prefix"
20811
20812 if test "X$x" = "X$element"; then
20813 haveit=yes
20814 break
20815 fi
20816 done
20817 if test -z "$haveit"; then
20818 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20819 fi
20820 done
20821
20822
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20824 $as_echo_n "checking for iconv... " >&6; }
20825 if ${am_cv_func_iconv+:} false; then :
20826 $as_echo_n "(cached) " >&6
20827 else
20828
20829 am_cv_func_iconv="no, consider installing GNU libiconv"
20830 am_cv_lib_iconv=no
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20833
20834 #include <stdlib.h>
20835 #include <iconv.h>
20836
20837 int
20838 main ()
20839 {
20840 iconv_t cd = iconv_open("","");
20841 iconv(cd,NULL,NULL,NULL,NULL);
20842 iconv_close(cd);
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 am_cv_func_iconv=yes
20849 fi
20850 rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852 if test "$am_cv_func_iconv" != yes; then
20853 am_save_LIBS="$LIBS"
20854 LIBS="$LIBS $LIBICONV"
20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856 /* end confdefs.h. */
20857
20858 #include <stdlib.h>
20859 #include <iconv.h>
20860
20861 int
20862 main ()
20863 {
20864 iconv_t cd = iconv_open("","");
20865 iconv(cd,NULL,NULL,NULL,NULL);
20866 iconv_close(cd);
20867 ;
20868 return 0;
20869 }
20870 _ACEOF
20871 if ac_fn_c_try_link "$LINENO"; then :
20872 am_cv_lib_iconv=yes
20873 am_cv_func_iconv=yes
20874 fi
20875 rm -f core conftest.err conftest.$ac_objext \
20876 conftest$ac_exeext conftest.$ac_ext
20877 LIBS="$am_save_LIBS"
20878 fi
20879
20880 fi
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20882 $as_echo "$am_cv_func_iconv" >&6; }
20883 if test "$am_cv_func_iconv" = yes; then
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
20885 $as_echo_n "checking for working iconv... " >&6; }
20886 if ${am_cv_func_iconv_works+:} false; then :
20887 $as_echo_n "(cached) " >&6
20888 else
20889
20890 am_save_LIBS="$LIBS"
20891 if test $am_cv_lib_iconv = yes; then
20892 LIBS="$LIBS $LIBICONV"
20893 fi
20894 if test "$cross_compiling" = yes; then :
20895
20896 case "$host_os" in
20897 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
20898 *) am_cv_func_iconv_works="guessing yes" ;;
20899 esac
20900
20901 else
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20904
20905 #include <iconv.h>
20906 #include <string.h>
20907 int main ()
20908 {
20909 int result = 0;
20910 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
20911 returns. */
20912 {
20913 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
20914 if (cd_utf8_to_88591 != (iconv_t)(-1))
20915 {
20916 static const char input[] = "\342\202\254"; /* EURO SIGN */
20917 char buf[10];
20918 const char *inptr = input;
20919 size_t inbytesleft = strlen (input);
20920 char *outptr = buf;
20921 size_t outbytesleft = sizeof (buf);
20922 size_t res = iconv (cd_utf8_to_88591,
20923 (char **) &inptr, &inbytesleft,
20924 &outptr, &outbytesleft);
20925 if (res == 0)
20926 result |= 1;
20927 iconv_close (cd_utf8_to_88591);
20928 }
20929 }
20930 /* Test against Solaris 10 bug: Failures are not distinguishable from
20931 successful returns. */
20932 {
20933 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
20934 if (cd_ascii_to_88591 != (iconv_t)(-1))
20935 {
20936 static const char input[] = "\263";
20937 char buf[10];
20938 const char *inptr = input;
20939 size_t inbytesleft = strlen (input);
20940 char *outptr = buf;
20941 size_t outbytesleft = sizeof (buf);
20942 size_t res = iconv (cd_ascii_to_88591,
20943 (char **) &inptr, &inbytesleft,
20944 &outptr, &outbytesleft);
20945 if (res == 0)
20946 result |= 2;
20947 iconv_close (cd_ascii_to_88591);
20948 }
20949 }
20950 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
20951 {
20952 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
20953 if (cd_88591_to_utf8 != (iconv_t)(-1))
20954 {
20955 static const char input[] = "\304";
20956 static char buf[2] = { (char)0xDE, (char)0xAD };
20957 const char *inptr = input;
20958 size_t inbytesleft = 1;
20959 char *outptr = buf;
20960 size_t outbytesleft = 1;
20961 size_t res = iconv (cd_88591_to_utf8,
20962 (char **) &inptr, &inbytesleft,
20963 &outptr, &outbytesleft);
20964 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
20965 result |= 4;
20966 iconv_close (cd_88591_to_utf8);
20967 }
20968 }
20969 #if 0 /* This bug could be worked around by the caller. */
20970 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
20971 {
20972 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
20973 if (cd_88591_to_utf8 != (iconv_t)(-1))
20974 {
20975 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
20976 char buf[50];
20977 const char *inptr = input;
20978 size_t inbytesleft = strlen (input);
20979 char *outptr = buf;
20980 size_t outbytesleft = sizeof (buf);
20981 size_t res = iconv (cd_88591_to_utf8,
20982 (char **) &inptr, &inbytesleft,
20983 &outptr, &outbytesleft);
20984 if ((int)res > 0)
20985 result |= 8;
20986 iconv_close (cd_88591_to_utf8);
20987 }
20988 }
20989 #endif
20990 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
20991 provided. */
20992 if (/* Try standardized names. */
20993 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
20994 /* Try IRIX, OSF/1 names. */
20995 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
20996 /* Try AIX names. */
20997 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
20998 /* Try HP-UX names. */
20999 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21000 result |= 16;
21001 return result;
21002 }
21003 _ACEOF
21004 if ac_fn_c_try_run "$LINENO"; then :
21005 am_cv_func_iconv_works=yes
21006 else
21007 am_cv_func_iconv_works=no
21008 fi
21009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21010 conftest.$ac_objext conftest.beam conftest.$ac_ext
21011 fi
21012
21013 LIBS="$am_save_LIBS"
21014
21015 fi
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21017 $as_echo "$am_cv_func_iconv_works" >&6; }
21018 case "$am_cv_func_iconv_works" in
21019 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21020 *) am_func_iconv=yes ;;
21021 esac
21022 else
21023 am_func_iconv=no am_cv_lib_iconv=no
21024 fi
21025 if test "$am_func_iconv" = yes; then
21026
21027 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21028
21029 fi
21030 if test "$am_cv_lib_iconv" = yes; then
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21032 $as_echo_n "checking how to link with libiconv... " >&6; }
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21034 $as_echo "$LIBICONV" >&6; }
21035 else
21036 CPPFLAGS="$am_save_CPPFLAGS"
21037 LIBICONV=
21038 LTLIBICONV=
21039 fi
21040
21041
21042
21043 if test "$am_cv_func_iconv" = yes; then
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21045 $as_echo_n "checking for iconv declaration... " >&6; }
21046 if ${am_cv_proto_iconv+:} false; then :
21047 $as_echo_n "(cached) " >&6
21048 else
21049
21050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21051 /* end confdefs.h. */
21052
21053 #include <stdlib.h>
21054 #include <iconv.h>
21055 extern
21056 #ifdef __cplusplus
21057 "C"
21058 #endif
21059 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
21060 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21061 #else
21062 size_t iconv();
21063 #endif
21064
21065 int
21066 main ()
21067 {
21068
21069 ;
21070 return 0;
21071 }
21072 _ACEOF
21073 if ac_fn_c_try_compile "$LINENO"; then :
21074 am_cv_proto_iconv_arg1=""
21075 else
21076 am_cv_proto_iconv_arg1="const"
21077 fi
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 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);"
21080 fi
21081
21082 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21084 $am_cv_proto_iconv" >&5
21085 $as_echo "
21086 $am_cv_proto_iconv" >&6; }
21087
21088 cat >>confdefs.h <<_ACEOF
21089 #define ICONV_CONST $am_cv_proto_iconv_arg1
21090 _ACEOF
21091
21092
21093 fi
21094
21095 case $am_cv_func_iconv in #(
21096 yes) :
21097 ;; #(
21098 *) :
21099
21100 for cy_iconv_prefix_arg in $CFLAGS $CXXFLAGS $OBJCXXFLAGS $LDFLAGS $LIBS; do
21101 case $cy_iconv_prefix_arg in #(
21102 -I*) :
21103
21104
21105 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-I//;s|/include$||'`; do
21106 haveit=
21107 for x in $cy_iconv_prefixes; do
21108
21109 acl_save_prefix="$prefix"
21110 prefix="$acl_final_prefix"
21111 acl_save_exec_prefix="$exec_prefix"
21112 exec_prefix="$acl_final_exec_prefix"
21113 eval x=\"$x\"
21114 exec_prefix="$acl_save_exec_prefix"
21115 prefix="$acl_save_prefix"
21116
21117 if test "X$x" = "X$element"; then
21118 haveit=yes
21119 break
21120 fi
21121 done
21122 if test -z "$haveit"; then
21123 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21124 fi
21125 done
21126
21127 ;; #(
21128 -L*) :
21129
21130
21131 for element in `echo $cy_iconv_prefix_arg | sed -e 's/^-L//;s|/lib$||'`; do
21132 haveit=
21133 for x in $cy_iconv_prefixes; do
21134
21135 acl_save_prefix="$prefix"
21136 prefix="$acl_final_prefix"
21137 acl_save_exec_prefix="$exec_prefix"
21138 exec_prefix="$acl_final_exec_prefix"
21139 eval x=\"$x\"
21140 exec_prefix="$acl_save_exec_prefix"
21141 prefix="$acl_save_prefix"
21142
21143 if test "X$x" = "X$element"; then
21144 haveit=yes
21145 break
21146 fi
21147 done
21148 if test -z "$haveit"; then
21149 cy_iconv_prefixes="${cy_iconv_prefixes}${cy_iconv_prefixes:+ }$element"
21150 fi
21151 done
21152
21153 ;; #(
21154 *) :
21155 ;;
21156 esac
21157 done
21158 for with_libiconv_prefix in $cy_iconv_prefixes; do
21159 { am_cv_func_iconv=; unset am_cv_func_iconv;}
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171 use_additional=yes
21172
21173 acl_save_prefix="$prefix"
21174 prefix="$acl_final_prefix"
21175 acl_save_exec_prefix="$exec_prefix"
21176 exec_prefix="$acl_final_exec_prefix"
21177
21178 eval additional_includedir=\"$includedir\"
21179 eval additional_libdir=\"$libdir\"
21180
21181 exec_prefix="$acl_save_exec_prefix"
21182 prefix="$acl_save_prefix"
21183
21184
21185 # Check whether --with-libiconv-prefix was given.
21186 if test "${with_libiconv_prefix+set}" = set; then :
21187 withval=$with_libiconv_prefix;
21188 if test "X$withval" = "Xno"; then
21189 use_additional=no
21190 else
21191 if test "X$withval" = "X"; then
21192
21193 acl_save_prefix="$prefix"
21194 prefix="$acl_final_prefix"
21195 acl_save_exec_prefix="$exec_prefix"
21196 exec_prefix="$acl_final_exec_prefix"
21197
21198 eval additional_includedir=\"$includedir\"
21199 eval additional_libdir=\"$libdir\"
21200
21201 exec_prefix="$acl_save_exec_prefix"
21202 prefix="$acl_save_prefix"
21203
21204 else
21205 additional_includedir="$withval/include"
21206 additional_libdir="$withval/$acl_libdirstem"
21207 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21208 && ! test -d "$withval/$acl_libdirstem"; then
21209 additional_libdir="$withval/$acl_libdirstem2"
21210 fi
21211 fi
21212 fi
21213
21214 fi
21215
21216 LIBICONV=
21217 LTLIBICONV=
21218 INCICONV=
21219 LIBICONV_PREFIX=
21220 HAVE_LIBICONV=
21221 rpathdirs=
21222 ltrpathdirs=
21223 names_already_handled=
21224 names_next_round='iconv '
21225 while test -n "$names_next_round"; do
21226 names_this_round="$names_next_round"
21227 names_next_round=
21228 for name in $names_this_round; do
21229 already_handled=
21230 for n in $names_already_handled; do
21231 if test "$n" = "$name"; then
21232 already_handled=yes
21233 break
21234 fi
21235 done
21236 if test -z "$already_handled"; then
21237 names_already_handled="$names_already_handled $name"
21238 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
21239 eval value=\"\$HAVE_LIB$uppername\"
21240 if test -n "$value"; then
21241 if test "$value" = yes; then
21242 eval value=\"\$LIB$uppername\"
21243 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21244 eval value=\"\$LTLIB$uppername\"
21245 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21246 else
21247 :
21248 fi
21249 else
21250 found_dir=
21251 found_la=
21252 found_so=
21253 found_a=
21254 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21255 if test -n "$acl_shlibext"; then
21256 shrext=".$acl_shlibext" # typically: shrext=.so
21257 else
21258 shrext=
21259 fi
21260 if test $use_additional = yes; then
21261 dir="$additional_libdir"
21262 if test -n "$acl_shlibext"; then
21263 if test -f "$dir/$libname$shrext"; then
21264 found_dir="$dir"
21265 found_so="$dir/$libname$shrext"
21266 else
21267 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21268 ver=`(cd "$dir" && \
21269 for f in "$libname$shrext".*; do echo "$f"; done \
21270 | sed -e "s,^$libname$shrext\\\\.,," \
21271 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21272 | sed 1q ) 2>/dev/null`
21273 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21274 found_dir="$dir"
21275 found_so="$dir/$libname$shrext.$ver"
21276 fi
21277 else
21278 eval library_names=\"$acl_library_names_spec\"
21279 for f in $library_names; do
21280 if test -f "$dir/$f"; then
21281 found_dir="$dir"
21282 found_so="$dir/$f"
21283 break
21284 fi
21285 done
21286 fi
21287 fi
21288 fi
21289 if test "X$found_dir" = "X"; then
21290 if test -f "$dir/$libname.$acl_libext"; then
21291 found_dir="$dir"
21292 found_a="$dir/$libname.$acl_libext"
21293 fi
21294 fi
21295 if test "X$found_dir" != "X"; then
21296 if test -f "$dir/$libname.la"; then
21297 found_la="$dir/$libname.la"
21298 fi
21299 fi
21300 fi
21301 if test "X$found_dir" = "X"; then
21302 for x in $LDFLAGS $LTLIBICONV; do
21303
21304 acl_save_prefix="$prefix"
21305 prefix="$acl_final_prefix"
21306 acl_save_exec_prefix="$exec_prefix"
21307 exec_prefix="$acl_final_exec_prefix"
21308 eval x=\"$x\"
21309 exec_prefix="$acl_save_exec_prefix"
21310 prefix="$acl_save_prefix"
21311
21312 case "$x" in
21313 -L*)
21314 dir=`echo "X$x" | sed -e 's/^X-L//'`
21315 if test -n "$acl_shlibext"; then
21316 if test -f "$dir/$libname$shrext"; then
21317 found_dir="$dir"
21318 found_so="$dir/$libname$shrext"
21319 else
21320 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21321 ver=`(cd "$dir" && \
21322 for f in "$libname$shrext".*; do echo "$f"; done \
21323 | sed -e "s,^$libname$shrext\\\\.,," \
21324 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21325 | sed 1q ) 2>/dev/null`
21326 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21327 found_dir="$dir"
21328 found_so="$dir/$libname$shrext.$ver"
21329 fi
21330 else
21331 eval library_names=\"$acl_library_names_spec\"
21332 for f in $library_names; do
21333 if test -f "$dir/$f"; then
21334 found_dir="$dir"
21335 found_so="$dir/$f"
21336 break
21337 fi
21338 done
21339 fi
21340 fi
21341 fi
21342 if test "X$found_dir" = "X"; then
21343 if test -f "$dir/$libname.$acl_libext"; then
21344 found_dir="$dir"
21345 found_a="$dir/$libname.$acl_libext"
21346 fi
21347 fi
21348 if test "X$found_dir" != "X"; then
21349 if test -f "$dir/$libname.la"; then
21350 found_la="$dir/$libname.la"
21351 fi
21352 fi
21353 ;;
21354 esac
21355 if test "X$found_dir" != "X"; then
21356 break
21357 fi
21358 done
21359 fi
21360 if test "X$found_dir" != "X"; then
21361 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21362 if test "X$found_so" != "X"; then
21363 if test "$enable_rpath" = no \
21364 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21365 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21367 else
21368 haveit=
21369 for x in $ltrpathdirs; do
21370 if test "X$x" = "X$found_dir"; then
21371 haveit=yes
21372 break
21373 fi
21374 done
21375 if test -z "$haveit"; then
21376 ltrpathdirs="$ltrpathdirs $found_dir"
21377 fi
21378 if test "$acl_hardcode_direct" = yes; then
21379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21380 else
21381 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21383 haveit=
21384 for x in $rpathdirs; do
21385 if test "X$x" = "X$found_dir"; then
21386 haveit=yes
21387 break
21388 fi
21389 done
21390 if test -z "$haveit"; then
21391 rpathdirs="$rpathdirs $found_dir"
21392 fi
21393 else
21394 haveit=
21395 for x in $LDFLAGS $LIBICONV; do
21396
21397 acl_save_prefix="$prefix"
21398 prefix="$acl_final_prefix"
21399 acl_save_exec_prefix="$exec_prefix"
21400 exec_prefix="$acl_final_exec_prefix"
21401 eval x=\"$x\"
21402 exec_prefix="$acl_save_exec_prefix"
21403 prefix="$acl_save_prefix"
21404
21405 if test "X$x" = "X-L$found_dir"; then
21406 haveit=yes
21407 break
21408 fi
21409 done
21410 if test -z "$haveit"; then
21411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21412 fi
21413 if test "$acl_hardcode_minus_L" != no; then
21414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21415 else
21416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21417 fi
21418 fi
21419 fi
21420 fi
21421 else
21422 if test "X$found_a" != "X"; then
21423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21424 else
21425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21426 fi
21427 fi
21428 additional_includedir=
21429 case "$found_dir" in
21430 */$acl_libdirstem | */$acl_libdirstem/)
21431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21432 if test "$name" = 'iconv'; then
21433 LIBICONV_PREFIX="$basedir"
21434 fi
21435 additional_includedir="$basedir/include"
21436 ;;
21437 */$acl_libdirstem2 | */$acl_libdirstem2/)
21438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
21439 if test "$name" = 'iconv'; then
21440 LIBICONV_PREFIX="$basedir"
21441 fi
21442 additional_includedir="$basedir/include"
21443 ;;
21444 esac
21445 if test "X$additional_includedir" != "X"; then
21446 if test "X$additional_includedir" != "X/usr/include"; then
21447 haveit=
21448 if test "X$additional_includedir" = "X/usr/local/include"; then
21449 if test -n "$GCC"; then
21450 case $host_os in
21451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21452 esac
21453 fi
21454 fi
21455 if test -z "$haveit"; then
21456 for x in $CPPFLAGS $INCICONV; do
21457
21458 acl_save_prefix="$prefix"
21459 prefix="$acl_final_prefix"
21460 acl_save_exec_prefix="$exec_prefix"
21461 exec_prefix="$acl_final_exec_prefix"
21462 eval x=\"$x\"
21463 exec_prefix="$acl_save_exec_prefix"
21464 prefix="$acl_save_prefix"
21465
21466 if test "X$x" = "X-I$additional_includedir"; then
21467 haveit=yes
21468 break
21469 fi
21470 done
21471 if test -z "$haveit"; then
21472 if test -d "$additional_includedir"; then
21473 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21474 fi
21475 fi
21476 fi
21477 fi
21478 fi
21479 if test -n "$found_la"; then
21480 save_libdir="$libdir"
21481 case "$found_la" in
21482 */* | *\\*) . "$found_la" ;;
21483 *) . "./$found_la" ;;
21484 esac
21485 libdir="$save_libdir"
21486 for dep in $dependency_libs; do
21487 case "$dep" in
21488 -L*)
21489 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21490 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21491 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
21492 haveit=
21493 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
21494 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
21495 if test -n "$GCC"; then
21496 case $host_os in
21497 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21498 esac
21499 fi
21500 fi
21501 if test -z "$haveit"; then
21502 haveit=
21503 for x in $LDFLAGS $LIBICONV; do
21504
21505 acl_save_prefix="$prefix"
21506 prefix="$acl_final_prefix"
21507 acl_save_exec_prefix="$exec_prefix"
21508 exec_prefix="$acl_final_exec_prefix"
21509 eval x=\"$x\"
21510 exec_prefix="$acl_save_exec_prefix"
21511 prefix="$acl_save_prefix"
21512
21513 if test "X$x" = "X-L$additional_libdir"; then
21514 haveit=yes
21515 break
21516 fi
21517 done
21518 if test -z "$haveit"; then
21519 if test -d "$additional_libdir"; then
21520 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21521 fi
21522 fi
21523 haveit=
21524 for x in $LDFLAGS $LTLIBICONV; do
21525
21526 acl_save_prefix="$prefix"
21527 prefix="$acl_final_prefix"
21528 acl_save_exec_prefix="$exec_prefix"
21529 exec_prefix="$acl_final_exec_prefix"
21530 eval x=\"$x\"
21531 exec_prefix="$acl_save_exec_prefix"
21532 prefix="$acl_save_prefix"
21533
21534 if test "X$x" = "X-L$additional_libdir"; then
21535 haveit=yes
21536 break
21537 fi
21538 done
21539 if test -z "$haveit"; then
21540 if test -d "$additional_libdir"; then
21541 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21542 fi
21543 fi
21544 fi
21545 fi
21546 ;;
21547 -R*)
21548 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21549 if test "$enable_rpath" != no; then
21550 haveit=
21551 for x in $rpathdirs; do
21552 if test "X$x" = "X$dir"; then
21553 haveit=yes
21554 break
21555 fi
21556 done
21557 if test -z "$haveit"; then
21558 rpathdirs="$rpathdirs $dir"
21559 fi
21560 haveit=
21561 for x in $ltrpathdirs; do
21562 if test "X$x" = "X$dir"; then
21563 haveit=yes
21564 break
21565 fi
21566 done
21567 if test -z "$haveit"; then
21568 ltrpathdirs="$ltrpathdirs $dir"
21569 fi
21570 fi
21571 ;;
21572 -l*)
21573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21574 ;;
21575 *.la)
21576 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21577 ;;
21578 *)
21579 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21581 ;;
21582 esac
21583 done
21584 fi
21585 else
21586 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21588 fi
21589 fi
21590 fi
21591 done
21592 done
21593 if test "X$rpathdirs" != "X"; then
21594 if test -n "$acl_hardcode_libdir_separator"; then
21595 alldirs=
21596 for found_dir in $rpathdirs; do
21597 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21598 done
21599 acl_save_libdir="$libdir"
21600 libdir="$alldirs"
21601 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21602 libdir="$acl_save_libdir"
21603 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21604 else
21605 for found_dir in $rpathdirs; do
21606 acl_save_libdir="$libdir"
21607 libdir="$found_dir"
21608 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21609 libdir="$acl_save_libdir"
21610 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21611 done
21612 fi
21613 fi
21614 if test "X$ltrpathdirs" != "X"; then
21615 for found_dir in $ltrpathdirs; do
21616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21617 done
21618 fi
21619
21620
21621
21622
21623
21624
21625
21626
21627 done
21628 ;;
21629 esac
21630 case $am_cv_func_iconv in #(
21631 yes) :
21632 ;; #(
21633 *) :
21634 as_fn_error $? "missing \"libiconv\"" "$LINENO" 5 ;;
21635 esac
21636 ac_ext=cpp
21637 ac_cpp='$CXXCPP $CPPFLAGS'
21638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21641
21642
21643
21644 SO=$acl_shlibext
21645
21646
21647 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21648 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
21649
21650 if test -n "$ac_tool_prefix"; then
21651 for ac_prog in lipo
21652 do
21653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21656 $as_echo_n "checking for $ac_word... " >&6; }
21657 if ${ac_cv_prog__LIPO+:} false; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 if test -n "$_LIPO"; then
21661 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
21662 else
21663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21664 for as_dir in $PATH
21665 do
21666 IFS=$as_save_IFS
21667 test -z "$as_dir" && as_dir=.
21668 for ac_exec_ext in '' $ac_executable_extensions; do
21669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21670 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21672 break 2
21673 fi
21674 done
21675 done
21676 IFS=$as_save_IFS
21677
21678 fi
21679 fi
21680 _LIPO=$ac_cv_prog__LIPO
21681 if test -n "$_LIPO"; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
21683 $as_echo "$_LIPO" >&6; }
21684 else
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21686 $as_echo "no" >&6; }
21687 fi
21688
21689
21690 test -n "$_LIPO" && break
21691 done
21692 fi
21693 if test -z "$_LIPO"; then
21694 ac_ct__LIPO=$_LIPO
21695 for ac_prog in lipo
21696 do
21697 # Extract the first word of "$ac_prog", so it can be a program name with args.
21698 set dummy $ac_prog; ac_word=$2
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21700 $as_echo_n "checking for $ac_word... " >&6; }
21701 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
21702 $as_echo_n "(cached) " >&6
21703 else
21704 if test -n "$ac_ct__LIPO"; then
21705 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
21706 else
21707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21708 for as_dir in $PATH
21709 do
21710 IFS=$as_save_IFS
21711 test -z "$as_dir" && as_dir=.
21712 for ac_exec_ext in '' $ac_executable_extensions; do
21713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21714 ac_cv_prog_ac_ct__LIPO="$ac_prog"
21715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21716 break 2
21717 fi
21718 done
21719 done
21720 IFS=$as_save_IFS
21721
21722 fi
21723 fi
21724 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
21725 if test -n "$ac_ct__LIPO"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21727 $as_echo "$ac_ct__LIPO" >&6; }
21728 else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 $as_echo "no" >&6; }
21731 fi
21732
21733
21734 test -n "$ac_ct__LIPO" && break
21735 done
21736
21737 if test "x$ac_ct__LIPO" = x; then
21738 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21739 else
21740 case $cross_compiling:$ac_tool_warned in
21741 yes:)
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21744 ac_tool_warned=yes ;;
21745 esac
21746 _LIPO=$ac_ct__LIPO
21747 fi
21748 fi
21749
21750 if test -n "$ac_tool_prefix"; then
21751 for ac_prog in nm
21752 do
21753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21756 $as_echo_n "checking for $ac_word... " >&6; }
21757 if ${ac_cv_prog__NM+:} false; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21760 if test -n "$_NM"; then
21761 ac_cv_prog__NM="$_NM" # Let the user override the test.
21762 else
21763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21764 for as_dir in $PATH
21765 do
21766 IFS=$as_save_IFS
21767 test -z "$as_dir" && as_dir=.
21768 for ac_exec_ext in '' $ac_executable_extensions; do
21769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21770 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21772 break 2
21773 fi
21774 done
21775 done
21776 IFS=$as_save_IFS
21777
21778 fi
21779 fi
21780 _NM=$ac_cv_prog__NM
21781 if test -n "$_NM"; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21783 $as_echo "$_NM" >&6; }
21784 else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21787 fi
21788
21789
21790 test -n "$_NM" && break
21791 done
21792 fi
21793 if test -z "$_NM"; then
21794 ac_ct__NM=$_NM
21795 for ac_prog in nm
21796 do
21797 # Extract the first word of "$ac_prog", so it can be a program name with args.
21798 set dummy $ac_prog; ac_word=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21802 $as_echo_n "(cached) " >&6
21803 else
21804 if test -n "$ac_ct__NM"; then
21805 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21806 else
21807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21808 for as_dir in $PATH
21809 do
21810 IFS=$as_save_IFS
21811 test -z "$as_dir" && as_dir=.
21812 for ac_exec_ext in '' $ac_executable_extensions; do
21813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21814 ac_cv_prog_ac_ct__NM="$ac_prog"
21815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21816 break 2
21817 fi
21818 done
21819 done
21820 IFS=$as_save_IFS
21821
21822 fi
21823 fi
21824 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21825 if test -n "$ac_ct__NM"; then
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21827 $as_echo "$ac_ct__NM" >&6; }
21828 else
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21830 $as_echo "no" >&6; }
21831 fi
21832
21833
21834 test -n "$ac_ct__NM" && break
21835 done
21836
21837 if test "x$ac_ct__NM" = x; then
21838 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21839 else
21840 case $cross_compiling:$ac_tool_warned in
21841 yes:)
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21844 ac_tool_warned=yes ;;
21845 esac
21846 _NM=$ac_ct__NM
21847 fi
21848 fi
21849
21850 if test -n "$ac_tool_prefix"; then
21851 for ac_prog in otool
21852 do
21853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21856 $as_echo_n "checking for $ac_word... " >&6; }
21857 if ${ac_cv_prog__OTOOL+:} false; then :
21858 $as_echo_n "(cached) " >&6
21859 else
21860 if test -n "$_OTOOL"; then
21861 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21862 else
21863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21865 do
21866 IFS=$as_save_IFS
21867 test -z "$as_dir" && as_dir=.
21868 for ac_exec_ext in '' $ac_executable_extensions; do
21869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21870 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21872 break 2
21873 fi
21874 done
21875 done
21876 IFS=$as_save_IFS
21877
21878 fi
21879 fi
21880 _OTOOL=$ac_cv_prog__OTOOL
21881 if test -n "$_OTOOL"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21883 $as_echo "$_OTOOL" >&6; }
21884 else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21887 fi
21888
21889
21890 test -n "$_OTOOL" && break
21891 done
21892 fi
21893 if test -z "$_OTOOL"; then
21894 ac_ct__OTOOL=$_OTOOL
21895 for ac_prog in otool
21896 do
21897 # Extract the first word of "$ac_prog", so it can be a program name with args.
21898 set dummy $ac_prog; ac_word=$2
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21900 $as_echo_n "checking for $ac_word... " >&6; }
21901 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21902 $as_echo_n "(cached) " >&6
21903 else
21904 if test -n "$ac_ct__OTOOL"; then
21905 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21906 else
21907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908 for as_dir in $PATH
21909 do
21910 IFS=$as_save_IFS
21911 test -z "$as_dir" && as_dir=.
21912 for ac_exec_ext in '' $ac_executable_extensions; do
21913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21914 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21916 break 2
21917 fi
21918 done
21919 done
21920 IFS=$as_save_IFS
21921
21922 fi
21923 fi
21924 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21925 if test -n "$ac_ct__OTOOL"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21927 $as_echo "$ac_ct__OTOOL" >&6; }
21928 else
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21931 fi
21932
21933
21934 test -n "$ac_ct__OTOOL" && break
21935 done
21936
21937 if test "x$ac_ct__OTOOL" = x; then
21938 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
21939 else
21940 case $cross_compiling:$ac_tool_warned in
21941 yes:)
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21944 ac_tool_warned=yes ;;
21945 esac
21946 _OTOOL=$ac_ct__OTOOL
21947 fi
21948 fi
21949
21950 CY_MACH=1
21951
21952 CY_ATTACH_GROUP=procmod
21953
21954
21955 fi
21956
21957
21958
21959 if test "x$CY_MACH" = x1; then
21960 CY_MACH_TRUE=
21961 CY_MACH_FALSE='#'
21962 else
21963 CY_MACH_TRUE='#'
21964 CY_MACH_FALSE=
21965 fi
21966
21967
21968 ac_config_files="$ac_config_files Makefile"
21969
21970 cat >confcache <<\_ACEOF
21971 # This file is a shell script that caches the results of configure
21972 # tests run on this system so they can be shared between configure
21973 # scripts and configure runs, see configure's option --config-cache.
21974 # It is not useful on other systems. If it contains results you don't
21975 # want to keep, you may remove or edit it.
21976 #
21977 # config.status only pays attention to the cache file if you give it
21978 # the --recheck option to rerun configure.
21979 #
21980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21982 # following values.
21983
21984 _ACEOF
21985
21986 # The following way of writing the cache mishandles newlines in values,
21987 # but we know of no workaround that is simple, portable, and efficient.
21988 # So, we kill variables containing newlines.
21989 # Ultrix sh set writes to stderr and can't be redirected directly,
21990 # and sets the high bit in the cache file unless we assign to the vars.
21991 (
21992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21993 eval ac_val=\$$ac_var
21994 case $ac_val in #(
21995 *${as_nl}*)
21996 case $ac_var in #(
21997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21999 esac
22000 case $ac_var in #(
22001 _ | IFS | as_nl) ;; #(
22002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22003 *) { eval $ac_var=; unset $ac_var;} ;;
22004 esac ;;
22005 esac
22006 done
22007
22008 (set) 2>&1 |
22009 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22010 *${as_nl}ac_space=\ *)
22011 # `set' does not quote correctly, so add quotes: double-quote
22012 # substitution turns \\\\ into \\, and sed turns \\ into \.
22013 sed -n \
22014 "s/'/'\\\\''/g;
22015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22016 ;; #(
22017 *)
22018 # `set' quotes correctly as required by POSIX, so do not add quotes.
22019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22020 ;;
22021 esac |
22022 sort
22023 ) |
22024 sed '
22025 /^ac_cv_env_/b end
22026 t clear
22027 :clear
22028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22029 t end
22030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22031 :end' >>confcache
22032 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22033 if test -w "$cache_file"; then
22034 if test "x$cache_file" != "x/dev/null"; then
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22036 $as_echo "$as_me: updating cache $cache_file" >&6;}
22037 if test ! -f "$cache_file" || test -h "$cache_file"; then
22038 cat confcache >"$cache_file"
22039 else
22040 case $cache_file in #(
22041 */* | ?:*)
22042 mv -f confcache "$cache_file"$$ &&
22043 mv -f "$cache_file"$$ "$cache_file" ;; #(
22044 *)
22045 mv -f confcache "$cache_file" ;;
22046 esac
22047 fi
22048 fi
22049 else
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22052 fi
22053 fi
22054 rm -f confcache
22055
22056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22057 # Let make expand exec_prefix.
22058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22059
22060 # Transform confdefs.h into DEFS.
22061 # Protect against shell expansion while executing Makefile rules.
22062 # Protect against Makefile macro expansion.
22063 #
22064 # If the first sed substitution is executed (which looks for macros that
22065 # take arguments), then branch to the quote section. Otherwise,
22066 # look for a macro that doesn't take arguments.
22067 ac_script='
22068 :mline
22069 /\\$/{
22070 N
22071 s,\\\n,,
22072 b mline
22073 }
22074 t clear
22075 :clear
22076 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22077 t quote
22078 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22079 t quote
22080 b any
22081 :quote
22082 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22083 s/\[/\\&/g
22084 s/\]/\\&/g
22085 s/\$/$$/g
22086 H
22087 :any
22088 ${
22089 g
22090 s/^\n//
22091 s/\n/ /g
22092 p
22093 }
22094 '
22095 DEFS=`sed -n "$ac_script" confdefs.h`
22096
22097
22098 ac_libobjs=
22099 ac_ltlibobjs=
22100 U=
22101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22102 # 1. Remove the extension, and $U if already installed.
22103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22106 # will be set to the directory where LIBOBJS objects are built.
22107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22109 done
22110 LIBOBJS=$ac_libobjs
22111
22112 LTLIBOBJS=$ac_ltlibobjs
22113
22114
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22116 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22117 if test -n "$am_sleep_pid"; then
22118 # Hide warnings about reused PIDs.
22119 wait $am_sleep_pid 2>/dev/null
22120 fi
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22122 $as_echo "done" >&6; }
22123 if test -n "$EXEEXT"; then
22124 am__EXEEXT_TRUE=
22125 am__EXEEXT_FALSE='#'
22126 else
22127 am__EXEEXT_TRUE='#'
22128 am__EXEEXT_FALSE=
22129 fi
22130
22131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22132 as_fn_error $? "conditional \"AMDEP\" was never defined.
22133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22134 fi
22135 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22136 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22138 fi
22139 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22140 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22142 fi
22143 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22144 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22146 fi
22147 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22148 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22150 fi
22151 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22152 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22154 fi
22155 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
22156 as_fn_error $? "conditional \"CY_MACH\" was never defined.
22157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22158 fi
22159
22160 : "${CONFIG_STATUS=./config.status}"
22161 ac_write_fail=0
22162 ac_clean_files_save=$ac_clean_files
22163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22165 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22166 as_write_fail=0
22167 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22168 #! $SHELL
22169 # Generated by $as_me.
22170 # Run this file to recreate the current configuration.
22171 # Compiler output produced by configure, useful for debugging
22172 # configure, is in config.log if it exists.
22173
22174 debug=false
22175 ac_cs_recheck=false
22176 ac_cs_silent=false
22177
22178 SHELL=\${CONFIG_SHELL-$SHELL}
22179 export SHELL
22180 _ASEOF
22181 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22182 ## -------------------- ##
22183 ## M4sh Initialization. ##
22184 ## -------------------- ##
22185
22186 # Be more Bourne compatible
22187 DUALCASE=1; export DUALCASE # for MKS sh
22188 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22189 emulate sh
22190 NULLCMD=:
22191 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22192 # is contrary to our usage. Disable this feature.
22193 alias -g '${1+"$@"}'='"$@"'
22194 setopt NO_GLOB_SUBST
22195 else
22196 case `(set -o) 2>/dev/null` in #(
22197 *posix*) :
22198 set -o posix ;; #(
22199 *) :
22200 ;;
22201 esac
22202 fi
22203
22204
22205 as_nl='
22206 '
22207 export as_nl
22208 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22209 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22210 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22211 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22212 # Prefer a ksh shell builtin over an external printf program on Solaris,
22213 # but without wasting forks for bash or zsh.
22214 if test -z "$BASH_VERSION$ZSH_VERSION" \
22215 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22216 as_echo='print -r --'
22217 as_echo_n='print -rn --'
22218 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22219 as_echo='printf %s\n'
22220 as_echo_n='printf %s'
22221 else
22222 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22223 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22224 as_echo_n='/usr/ucb/echo -n'
22225 else
22226 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22227 as_echo_n_body='eval
22228 arg=$1;
22229 case $arg in #(
22230 *"$as_nl"*)
22231 expr "X$arg" : "X\\(.*\\)$as_nl";
22232 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22233 esac;
22234 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22235 '
22236 export as_echo_n_body
22237 as_echo_n='sh -c $as_echo_n_body as_echo'
22238 fi
22239 export as_echo_body
22240 as_echo='sh -c $as_echo_body as_echo'
22241 fi
22242
22243 # The user is always right.
22244 if test "${PATH_SEPARATOR+set}" != set; then
22245 PATH_SEPARATOR=:
22246 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22247 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22248 PATH_SEPARATOR=';'
22249 }
22250 fi
22251
22252
22253 # IFS
22254 # We need space, tab and new line, in precisely that order. Quoting is
22255 # there to prevent editors from complaining about space-tab.
22256 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22257 # splitting by setting IFS to empty value.)
22258 IFS=" "" $as_nl"
22259
22260 # Find who we are. Look in the path if we contain no directory separator.
22261 as_myself=
22262 case $0 in #((
22263 *[\\/]* ) as_myself=$0 ;;
22264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22266 do
22267 IFS=$as_save_IFS
22268 test -z "$as_dir" && as_dir=.
22269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22270 done
22271 IFS=$as_save_IFS
22272
22273 ;;
22274 esac
22275 # We did not find ourselves, most probably we were run as `sh COMMAND'
22276 # in which case we are not to be found in the path.
22277 if test "x$as_myself" = x; then
22278 as_myself=$0
22279 fi
22280 if test ! -f "$as_myself"; then
22281 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22282 exit 1
22283 fi
22284
22285 # Unset variables that we do not need and which cause bugs (e.g. in
22286 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22287 # suppresses any "Segmentation fault" message there. '((' could
22288 # trigger a bug in pdksh 5.2.14.
22289 for as_var in BASH_ENV ENV MAIL MAILPATH
22290 do eval test x\${$as_var+set} = xset \
22291 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22292 done
22293 PS1='$ '
22294 PS2='> '
22295 PS4='+ '
22296
22297 # NLS nuisances.
22298 LC_ALL=C
22299 export LC_ALL
22300 LANGUAGE=C
22301 export LANGUAGE
22302
22303 # CDPATH.
22304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22305
22306
22307 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22308 # ----------------------------------------
22309 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22310 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22311 # script with STATUS, using 1 if that was 0.
22312 as_fn_error ()
22313 {
22314 as_status=$1; test $as_status -eq 0 && as_status=1
22315 if test "$4"; then
22316 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22317 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22318 fi
22319 $as_echo "$as_me: error: $2" >&2
22320 as_fn_exit $as_status
22321 } # as_fn_error
22322
22323
22324 # as_fn_set_status STATUS
22325 # -----------------------
22326 # Set $? to STATUS, without forking.
22327 as_fn_set_status ()
22328 {
22329 return $1
22330 } # as_fn_set_status
22331
22332 # as_fn_exit STATUS
22333 # -----------------
22334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22335 as_fn_exit ()
22336 {
22337 set +e
22338 as_fn_set_status $1
22339 exit $1
22340 } # as_fn_exit
22341
22342 # as_fn_unset VAR
22343 # ---------------
22344 # Portably unset VAR.
22345 as_fn_unset ()
22346 {
22347 { eval $1=; unset $1;}
22348 }
22349 as_unset=as_fn_unset
22350 # as_fn_append VAR VALUE
22351 # ----------------------
22352 # Append the text in VALUE to the end of the definition contained in VAR. Take
22353 # advantage of any shell optimizations that allow amortized linear growth over
22354 # repeated appends, instead of the typical quadratic growth present in naive
22355 # implementations.
22356 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22357 eval 'as_fn_append ()
22358 {
22359 eval $1+=\$2
22360 }'
22361 else
22362 as_fn_append ()
22363 {
22364 eval $1=\$$1\$2
22365 }
22366 fi # as_fn_append
22367
22368 # as_fn_arith ARG...
22369 # ------------------
22370 # Perform arithmetic evaluation on the ARGs, and store the result in the
22371 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22372 # must be portable across $(()) and expr.
22373 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22374 eval 'as_fn_arith ()
22375 {
22376 as_val=$(( $* ))
22377 }'
22378 else
22379 as_fn_arith ()
22380 {
22381 as_val=`expr "$@" || test $? -eq 1`
22382 }
22383 fi # as_fn_arith
22384
22385
22386 if expr a : '\(a\)' >/dev/null 2>&1 &&
22387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22388 as_expr=expr
22389 else
22390 as_expr=false
22391 fi
22392
22393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22394 as_basename=basename
22395 else
22396 as_basename=false
22397 fi
22398
22399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22400 as_dirname=dirname
22401 else
22402 as_dirname=false
22403 fi
22404
22405 as_me=`$as_basename -- "$0" ||
22406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22407 X"$0" : 'X\(//\)$' \| \
22408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22409 $as_echo X/"$0" |
22410 sed '/^.*\/\([^/][^/]*\)\/*$/{
22411 s//\1/
22412 q
22413 }
22414 /^X\/\(\/\/\)$/{
22415 s//\1/
22416 q
22417 }
22418 /^X\/\(\/\).*/{
22419 s//\1/
22420 q
22421 }
22422 s/.*/./; q'`
22423
22424 # Avoid depending upon Character Ranges.
22425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22428 as_cr_digits='0123456789'
22429 as_cr_alnum=$as_cr_Letters$as_cr_digits
22430
22431 ECHO_C= ECHO_N= ECHO_T=
22432 case `echo -n x` in #(((((
22433 -n*)
22434 case `echo 'xy\c'` in
22435 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22436 xy) ECHO_C='\c';;
22437 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22438 ECHO_T=' ';;
22439 esac;;
22440 *)
22441 ECHO_N='-n';;
22442 esac
22443
22444 rm -f conf$$ conf$$.exe conf$$.file
22445 if test -d conf$$.dir; then
22446 rm -f conf$$.dir/conf$$.file
22447 else
22448 rm -f conf$$.dir
22449 mkdir conf$$.dir 2>/dev/null
22450 fi
22451 if (echo >conf$$.file) 2>/dev/null; then
22452 if ln -s conf$$.file conf$$ 2>/dev/null; then
22453 as_ln_s='ln -s'
22454 # ... but there are two gotchas:
22455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22457 # In both cases, we have to default to `cp -pR'.
22458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22459 as_ln_s='cp -pR'
22460 elif ln conf$$.file conf$$ 2>/dev/null; then
22461 as_ln_s=ln
22462 else
22463 as_ln_s='cp -pR'
22464 fi
22465 else
22466 as_ln_s='cp -pR'
22467 fi
22468 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22469 rmdir conf$$.dir 2>/dev/null
22470
22471
22472 # as_fn_mkdir_p
22473 # -------------
22474 # Create "$as_dir" as a directory, including parents if necessary.
22475 as_fn_mkdir_p ()
22476 {
22477
22478 case $as_dir in #(
22479 -*) as_dir=./$as_dir;;
22480 esac
22481 test -d "$as_dir" || eval $as_mkdir_p || {
22482 as_dirs=
22483 while :; do
22484 case $as_dir in #(
22485 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22486 *) as_qdir=$as_dir;;
22487 esac
22488 as_dirs="'$as_qdir' $as_dirs"
22489 as_dir=`$as_dirname -- "$as_dir" ||
22490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$as_dir" : 'X\(//\)[^/]' \| \
22492 X"$as_dir" : 'X\(//\)$' \| \
22493 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22494 $as_echo X"$as_dir" |
22495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22496 s//\1/
22497 q
22498 }
22499 /^X\(\/\/\)[^/].*/{
22500 s//\1/
22501 q
22502 }
22503 /^X\(\/\/\)$/{
22504 s//\1/
22505 q
22506 }
22507 /^X\(\/\).*/{
22508 s//\1/
22509 q
22510 }
22511 s/.*/./; q'`
22512 test -d "$as_dir" && break
22513 done
22514 test -z "$as_dirs" || eval "mkdir $as_dirs"
22515 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22516
22517
22518 } # as_fn_mkdir_p
22519 if mkdir -p . 2>/dev/null; then
22520 as_mkdir_p='mkdir -p "$as_dir"'
22521 else
22522 test -d ./-p && rmdir ./-p
22523 as_mkdir_p=false
22524 fi
22525
22526
22527 # as_fn_executable_p FILE
22528 # -----------------------
22529 # Test if FILE is an executable regular file.
22530 as_fn_executable_p ()
22531 {
22532 test -f "$1" && test -x "$1"
22533 } # as_fn_executable_p
22534 as_test_x='test -x'
22535 as_executable_p=as_fn_executable_p
22536
22537 # Sed expression to map a string onto a valid CPP name.
22538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22539
22540 # Sed expression to map a string onto a valid variable name.
22541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22542
22543
22544 exec 6>&1
22545 ## ----------------------------------- ##
22546 ## Main body of $CONFIG_STATUS script. ##
22547 ## ----------------------------------- ##
22548 _ASEOF
22549 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22550
22551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22552 # Save the log message, to keep $0 and so on meaningful, and to
22553 # report actual input values of CONFIG_FILES etc. instead of their
22554 # values after options handling.
22555 ac_log="
22556 This file was extended by Cycript $as_me 0.9, which was
22557 generated by GNU Autoconf 2.69. Invocation command line was
22558
22559 CONFIG_FILES = $CONFIG_FILES
22560 CONFIG_HEADERS = $CONFIG_HEADERS
22561 CONFIG_LINKS = $CONFIG_LINKS
22562 CONFIG_COMMANDS = $CONFIG_COMMANDS
22563 $ $0 $@
22564
22565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22566 "
22567
22568 _ACEOF
22569
22570 case $ac_config_files in *"
22571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22572 esac
22573
22574
22575
22576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22577 # Files that config.status was made for.
22578 config_files="$ac_config_files"
22579 config_commands="$ac_config_commands"
22580
22581 _ACEOF
22582
22583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22584 ac_cs_usage="\
22585 \`$as_me' instantiates files and other configuration actions
22586 from templates according to the current configuration. Unless the files
22587 and actions are specified as TAGs, all are instantiated by default.
22588
22589 Usage: $0 [OPTION]... [TAG]...
22590
22591 -h, --help print this help, then exit
22592 -V, --version print version number and configuration settings, then exit
22593 --config print configuration, then exit
22594 -q, --quiet, --silent
22595 do not print progress messages
22596 -d, --debug don't remove temporary files
22597 --recheck update $as_me by reconfiguring in the same conditions
22598 --file=FILE[:TEMPLATE]
22599 instantiate the configuration file FILE
22600
22601 Configuration files:
22602 $config_files
22603
22604 Configuration commands:
22605 $config_commands
22606
22607 Report bugs to <saurik@saurik.com>.
22608 Cycript home page: <http://www.cycript.org/>."
22609
22610 _ACEOF
22611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22613 ac_cs_version="\\
22614 Cycript config.status 0.9
22615 configured by $0, generated by GNU Autoconf 2.69,
22616 with options \\"\$ac_cs_config\\"
22617
22618 Copyright (C) 2012 Free Software Foundation, Inc.
22619 This config.status script is free software; the Free Software Foundation
22620 gives unlimited permission to copy, distribute and modify it."
22621
22622 ac_pwd='$ac_pwd'
22623 srcdir='$srcdir'
22624 INSTALL='$INSTALL'
22625 MKDIR_P='$MKDIR_P'
22626 AWK='$AWK'
22627 test -n "\$AWK" || AWK=awk
22628 _ACEOF
22629
22630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22631 # The default lists apply if the user does not specify any file.
22632 ac_need_defaults=:
22633 while test $# != 0
22634 do
22635 case $1 in
22636 --*=?*)
22637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22639 ac_shift=:
22640 ;;
22641 --*=)
22642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22643 ac_optarg=
22644 ac_shift=:
22645 ;;
22646 *)
22647 ac_option=$1
22648 ac_optarg=$2
22649 ac_shift=shift
22650 ;;
22651 esac
22652
22653 case $ac_option in
22654 # Handling of the options.
22655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22656 ac_cs_recheck=: ;;
22657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22658 $as_echo "$ac_cs_version"; exit ;;
22659 --config | --confi | --conf | --con | --co | --c )
22660 $as_echo "$ac_cs_config"; exit ;;
22661 --debug | --debu | --deb | --de | --d | -d )
22662 debug=: ;;
22663 --file | --fil | --fi | --f )
22664 $ac_shift
22665 case $ac_optarg in
22666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22667 '') as_fn_error $? "missing file argument" ;;
22668 esac
22669 as_fn_append CONFIG_FILES " '$ac_optarg'"
22670 ac_need_defaults=false;;
22671 --he | --h | --help | --hel | -h )
22672 $as_echo "$ac_cs_usage"; exit ;;
22673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22674 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22675 ac_cs_silent=: ;;
22676
22677 # This is an error.
22678 -*) as_fn_error $? "unrecognized option: \`$1'
22679 Try \`$0 --help' for more information." ;;
22680
22681 *) as_fn_append ac_config_targets " $1"
22682 ac_need_defaults=false ;;
22683
22684 esac
22685 shift
22686 done
22687
22688 ac_configure_extra_args=
22689
22690 if $ac_cs_silent; then
22691 exec 6>/dev/null
22692 ac_configure_extra_args="$ac_configure_extra_args --silent"
22693 fi
22694
22695 _ACEOF
22696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22697 if \$ac_cs_recheck; then
22698 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22699 shift
22700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22701 CONFIG_SHELL='$SHELL'
22702 export CONFIG_SHELL
22703 exec "\$@"
22704 fi
22705
22706 _ACEOF
22707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22708 exec 5>>config.log
22709 {
22710 echo
22711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22712 ## Running $as_me. ##
22713 _ASBOX
22714 $as_echo "$ac_log"
22715 } >&5
22716
22717 _ACEOF
22718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22719 #
22720 # INIT-COMMANDS
22721 #
22722 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22723
22724
22725 # The HP-UX ksh and POSIX shell print the target directory to stdout
22726 # if CDPATH is set.
22727 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22728
22729 sed_quote_subst='$sed_quote_subst'
22730 double_quote_subst='$double_quote_subst'
22731 delay_variable_subst='$delay_variable_subst'
22732 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22733 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22734 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22735 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22736 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22737 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22738 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22739 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22740 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22741 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22742 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22743 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22744 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22745 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22746 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22747 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22748 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22749 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22750 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22751 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22752 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22753 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22754 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22755 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22756 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22757 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22758 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22759 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22760 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22761 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22762 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22763 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22764 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22765 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22766 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22767 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22768 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22769 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22770 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22771 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22772 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22773 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22774 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22775 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22776 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22777 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22778 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22779 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22780 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22781 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22782 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22783 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22784 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22785 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22786 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22787 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22788 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"`'
22789 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22790 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22791 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22792 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22793 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22794 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22795 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22796 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22797 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22798 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22799 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22800 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22801 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22802 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22803 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22804 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22805 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22806 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22807 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22808 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22809 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22810 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22811 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22812 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22813 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22814 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22815 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22816 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22817 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22818 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22819 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22820 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22821 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22822 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22823 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22824 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22825 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22826 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22827 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22828 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22829 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22830 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22831 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22832 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22833 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22834 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22835 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22836 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22837 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22838 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22839 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22840 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22841 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22842 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22843 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22844 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22845 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22846 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22847 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22848 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22849 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22850 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22851 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22852 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22853 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22854 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22855 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22856 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22857 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22858 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22859 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22860 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22861 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22862 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22863 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22864 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22865 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22866 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22867 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22868 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22869 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22870 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22871 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22872 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22873 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22874 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22875 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22876 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22877 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22878 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22879 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22880 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22881 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22882 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22883 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22884 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22885 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22886 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22887 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22888 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22889 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22890 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22891 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22892 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22893 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22894 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22895 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22896 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22897 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22898 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22899 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22900 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22901 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22902 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22903 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22904 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22905 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22906 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22907 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22908 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22909 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22910 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22911 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22912 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22913 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22914 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22915 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22916
22917 LTCC='$LTCC'
22918 LTCFLAGS='$LTCFLAGS'
22919 compiler='$compiler_DEFAULT'
22920
22921 # A function that is used when there is no print builtin or printf.
22922 func_fallback_echo ()
22923 {
22924 eval 'cat <<_LTECHO_EOF
22925 \$1
22926 _LTECHO_EOF'
22927 }
22928
22929 # Quote evaled strings.
22930 for var in SHELL \
22931 ECHO \
22932 PATH_SEPARATOR \
22933 SED \
22934 GREP \
22935 EGREP \
22936 FGREP \
22937 LD \
22938 NM \
22939 LN_S \
22940 lt_SP2NL \
22941 lt_NL2SP \
22942 reload_flag \
22943 OBJDUMP \
22944 deplibs_check_method \
22945 file_magic_cmd \
22946 file_magic_glob \
22947 want_nocaseglob \
22948 DLLTOOL \
22949 sharedlib_from_linklib_cmd \
22950 AR \
22951 AR_FLAGS \
22952 archiver_list_spec \
22953 STRIP \
22954 RANLIB \
22955 CC \
22956 CFLAGS \
22957 compiler \
22958 lt_cv_sys_global_symbol_pipe \
22959 lt_cv_sys_global_symbol_to_cdecl \
22960 lt_cv_sys_global_symbol_to_c_name_address \
22961 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22962 nm_file_list_spec \
22963 lt_prog_compiler_no_builtin_flag \
22964 lt_prog_compiler_pic \
22965 lt_prog_compiler_wl \
22966 lt_prog_compiler_static \
22967 lt_cv_prog_compiler_c_o \
22968 need_locks \
22969 MANIFEST_TOOL \
22970 DSYMUTIL \
22971 NMEDIT \
22972 LIPO \
22973 OTOOL \
22974 OTOOL64 \
22975 shrext_cmds \
22976 export_dynamic_flag_spec \
22977 whole_archive_flag_spec \
22978 compiler_needs_object \
22979 with_gnu_ld \
22980 allow_undefined_flag \
22981 no_undefined_flag \
22982 hardcode_libdir_flag_spec \
22983 hardcode_libdir_separator \
22984 exclude_expsyms \
22985 include_expsyms \
22986 file_list_spec \
22987 variables_saved_for_relink \
22988 libname_spec \
22989 library_names_spec \
22990 soname_spec \
22991 install_override_mode \
22992 finish_eval \
22993 old_striplib \
22994 striplib \
22995 compiler_lib_search_dirs \
22996 predep_objects \
22997 postdep_objects \
22998 predeps \
22999 postdeps \
23000 compiler_lib_search_path \
23001 LD_CXX \
23002 reload_flag_CXX \
23003 compiler_CXX \
23004 lt_prog_compiler_no_builtin_flag_CXX \
23005 lt_prog_compiler_pic_CXX \
23006 lt_prog_compiler_wl_CXX \
23007 lt_prog_compiler_static_CXX \
23008 lt_cv_prog_compiler_c_o_CXX \
23009 export_dynamic_flag_spec_CXX \
23010 whole_archive_flag_spec_CXX \
23011 compiler_needs_object_CXX \
23012 with_gnu_ld_CXX \
23013 allow_undefined_flag_CXX \
23014 no_undefined_flag_CXX \
23015 hardcode_libdir_flag_spec_CXX \
23016 hardcode_libdir_separator_CXX \
23017 exclude_expsyms_CXX \
23018 include_expsyms_CXX \
23019 file_list_spec_CXX \
23020 compiler_lib_search_dirs_CXX \
23021 predep_objects_CXX \
23022 postdep_objects_CXX \
23023 predeps_CXX \
23024 postdeps_CXX \
23025 compiler_lib_search_path_CXX; do
23026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23027 *[\\\\\\\`\\"\\\$]*)
23028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23029 ;;
23030 *)
23031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23032 ;;
23033 esac
23034 done
23035
23036 # Double-quote double-evaled strings.
23037 for var in reload_cmds \
23038 old_postinstall_cmds \
23039 old_postuninstall_cmds \
23040 old_archive_cmds \
23041 extract_expsyms_cmds \
23042 old_archive_from_new_cmds \
23043 old_archive_from_expsyms_cmds \
23044 archive_cmds \
23045 archive_expsym_cmds \
23046 module_cmds \
23047 module_expsym_cmds \
23048 export_symbols_cmds \
23049 prelink_cmds \
23050 postlink_cmds \
23051 postinstall_cmds \
23052 postuninstall_cmds \
23053 finish_cmds \
23054 sys_lib_search_path_spec \
23055 sys_lib_dlsearch_path_spec \
23056 reload_cmds_CXX \
23057 old_archive_cmds_CXX \
23058 old_archive_from_new_cmds_CXX \
23059 old_archive_from_expsyms_cmds_CXX \
23060 archive_cmds_CXX \
23061 archive_expsym_cmds_CXX \
23062 module_cmds_CXX \
23063 module_expsym_cmds_CXX \
23064 export_symbols_cmds_CXX \
23065 prelink_cmds_CXX \
23066 postlink_cmds_CXX; do
23067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23068 *[\\\\\\\`\\"\\\$]*)
23069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23070 ;;
23071 *)
23072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23073 ;;
23074 esac
23075 done
23076
23077 ac_aux_dir='$ac_aux_dir'
23078 xsi_shell='$xsi_shell'
23079 lt_shell_append='$lt_shell_append'
23080
23081 # See if we are running on zsh, and set the options which allow our
23082 # commands through without removal of \ escapes INIT.
23083 if test -n "\${ZSH_VERSION+set}" ; then
23084 setopt NO_GLOB_SUBST
23085 fi
23086
23087
23088 PACKAGE='$PACKAGE'
23089 VERSION='$VERSION'
23090 TIMESTAMP='$TIMESTAMP'
23091 RM='$RM'
23092 ofile='$ofile'
23093
23094
23095
23096
23097
23098
23099 _ACEOF
23100
23101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23102
23103 # Handling of arguments.
23104 for ac_config_target in $ac_config_targets
23105 do
23106 case $ac_config_target in
23107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23108 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23110
23111 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23112 esac
23113 done
23114
23115
23116 # If the user did not use the arguments to specify the items to instantiate,
23117 # then the envvar interface is used. Set only those that are not.
23118 # We use the long form for the default assignment because of an extremely
23119 # bizarre bug on SunOS 4.1.3.
23120 if $ac_need_defaults; then
23121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23122 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23123 fi
23124
23125 # Have a temporary directory for convenience. Make it in the build tree
23126 # simply because there is no reason against having it here, and in addition,
23127 # creating and moving files from /tmp can sometimes cause problems.
23128 # Hook for its removal unless debugging.
23129 # Note that there is a small window in which the directory will not be cleaned:
23130 # after its creation but before its name has been assigned to `$tmp'.
23131 $debug ||
23132 {
23133 tmp= ac_tmp=
23134 trap 'exit_status=$?
23135 : "${ac_tmp:=$tmp}"
23136 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23137 ' 0
23138 trap 'as_fn_exit 1' 1 2 13 15
23139 }
23140 # Create a (secure) tmp directory for tmp files.
23141
23142 {
23143 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23144 test -d "$tmp"
23145 } ||
23146 {
23147 tmp=./conf$$-$RANDOM
23148 (umask 077 && mkdir "$tmp")
23149 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23150 ac_tmp=$tmp
23151
23152 # Set up the scripts for CONFIG_FILES section.
23153 # No need to generate them if there are no CONFIG_FILES.
23154 # This happens for instance with `./config.status config.h'.
23155 if test -n "$CONFIG_FILES"; then
23156
23157
23158 ac_cr=`echo X | tr X '\015'`
23159 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23160 # But we know of no other shell where ac_cr would be empty at this
23161 # point, so we can use a bashism as a fallback.
23162 if test "x$ac_cr" = x; then
23163 eval ac_cr=\$\'\\r\'
23164 fi
23165 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23166 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23167 ac_cs_awk_cr='\\r'
23168 else
23169 ac_cs_awk_cr=$ac_cr
23170 fi
23171
23172 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23173 _ACEOF
23174
23175
23176 {
23177 echo "cat >conf$$subs.awk <<_ACEOF" &&
23178 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23179 echo "_ACEOF"
23180 } >conf$$subs.sh ||
23181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23182 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23183 ac_delim='%!_!# '
23184 for ac_last_try in false false false false false :; do
23185 . ./conf$$subs.sh ||
23186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23187
23188 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23189 if test $ac_delim_n = $ac_delim_num; then
23190 break
23191 elif $ac_last_try; then
23192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23193 else
23194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23195 fi
23196 done
23197 rm -f conf$$subs.sh
23198
23199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23200 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23201 _ACEOF
23202 sed -n '
23203 h
23204 s/^/S["/; s/!.*/"]=/
23205 p
23206 g
23207 s/^[^!]*!//
23208 :repl
23209 t repl
23210 s/'"$ac_delim"'$//
23211 t delim
23212 :nl
23213 h
23214 s/\(.\{148\}\)..*/\1/
23215 t more1
23216 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23217 p
23218 n
23219 b repl
23220 :more1
23221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23222 p
23223 g
23224 s/.\{148\}//
23225 t nl
23226 :delim
23227 h
23228 s/\(.\{148\}\)..*/\1/
23229 t more2
23230 s/["\\]/\\&/g; s/^/"/; s/$/"/
23231 p
23232 b
23233 :more2
23234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23235 p
23236 g
23237 s/.\{148\}//
23238 t delim
23239 ' <conf$$subs.awk | sed '
23240 /^[^""]/{
23241 N
23242 s/\n//
23243 }
23244 ' >>$CONFIG_STATUS || ac_write_fail=1
23245 rm -f conf$$subs.awk
23246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23247 _ACAWK
23248 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23249 for (key in S) S_is_set[key] = 1
23250 FS = "\a"
23251
23252 }
23253 {
23254 line = $ 0
23255 nfields = split(line, field, "@")
23256 substed = 0
23257 len = length(field[1])
23258 for (i = 2; i < nfields; i++) {
23259 key = field[i]
23260 keylen = length(key)
23261 if (S_is_set[key]) {
23262 value = S[key]
23263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23264 len += length(value) + length(field[++i])
23265 substed = 1
23266 } else
23267 len += 1 + keylen
23268 }
23269
23270 print line
23271 }
23272
23273 _ACAWK
23274 _ACEOF
23275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23276 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23278 else
23279 cat
23280 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23281 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23282 _ACEOF
23283
23284 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23285 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23286 # trailing colons and then remove the whole line if VPATH becomes empty
23287 # (actually we leave an empty line to preserve line numbers).
23288 if test "x$srcdir" = x.; then
23289 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23290 h
23291 s///
23292 s/^/:/
23293 s/[ ]*$/:/
23294 s/:\$(srcdir):/:/g
23295 s/:\${srcdir}:/:/g
23296 s/:@srcdir@:/:/g
23297 s/^:*//
23298 s/:*$//
23299 x
23300 s/\(=[ ]*\).*/\1/
23301 G
23302 s/\n//
23303 s/^[^=]*=[ ]*$//
23304 }'
23305 fi
23306
23307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23308 fi # test -n "$CONFIG_FILES"
23309
23310
23311 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
23312 shift
23313 for ac_tag
23314 do
23315 case $ac_tag in
23316 :[FHLC]) ac_mode=$ac_tag; continue;;
23317 esac
23318 case $ac_mode$ac_tag in
23319 :[FHL]*:*);;
23320 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23321 :[FH]-) ac_tag=-:-;;
23322 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23323 esac
23324 ac_save_IFS=$IFS
23325 IFS=:
23326 set x $ac_tag
23327 IFS=$ac_save_IFS
23328 shift
23329 ac_file=$1
23330 shift
23331
23332 case $ac_mode in
23333 :L) ac_source=$1;;
23334 :[FH])
23335 ac_file_inputs=
23336 for ac_f
23337 do
23338 case $ac_f in
23339 -) ac_f="$ac_tmp/stdin";;
23340 *) # Look for the file first in the build tree, then in the source tree
23341 # (if the path is not absolute). The absolute path cannot be DOS-style,
23342 # because $ac_f cannot contain `:'.
23343 test -f "$ac_f" ||
23344 case $ac_f in
23345 [\\/$]*) false;;
23346 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23347 esac ||
23348 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23349 esac
23350 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23351 as_fn_append ac_file_inputs " '$ac_f'"
23352 done
23353
23354 # Let's still pretend it is `configure' which instantiates (i.e., don't
23355 # use $as_me), people would be surprised to read:
23356 # /* config.h. Generated by config.status. */
23357 configure_input='Generated from '`
23358 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23359 `' by configure.'
23360 if test x"$ac_file" != x-; then
23361 configure_input="$ac_file. $configure_input"
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23363 $as_echo "$as_me: creating $ac_file" >&6;}
23364 fi
23365 # Neutralize special characters interpreted by sed in replacement strings.
23366 case $configure_input in #(
23367 *\&* | *\|* | *\\* )
23368 ac_sed_conf_input=`$as_echo "$configure_input" |
23369 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23370 *) ac_sed_conf_input=$configure_input;;
23371 esac
23372
23373 case $ac_tag in
23374 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23376 esac
23377 ;;
23378 esac
23379
23380 ac_dir=`$as_dirname -- "$ac_file" ||
23381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23382 X"$ac_file" : 'X\(//\)[^/]' \| \
23383 X"$ac_file" : 'X\(//\)$' \| \
23384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23385 $as_echo X"$ac_file" |
23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23387 s//\1/
23388 q
23389 }
23390 /^X\(\/\/\)[^/].*/{
23391 s//\1/
23392 q
23393 }
23394 /^X\(\/\/\)$/{
23395 s//\1/
23396 q
23397 }
23398 /^X\(\/\).*/{
23399 s//\1/
23400 q
23401 }
23402 s/.*/./; q'`
23403 as_dir="$ac_dir"; as_fn_mkdir_p
23404 ac_builddir=.
23405
23406 case "$ac_dir" in
23407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23408 *)
23409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23410 # A ".." for each directory in $ac_dir_suffix.
23411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23412 case $ac_top_builddir_sub in
23413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23415 esac ;;
23416 esac
23417 ac_abs_top_builddir=$ac_pwd
23418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23419 # for backward compatibility:
23420 ac_top_builddir=$ac_top_build_prefix
23421
23422 case $srcdir in
23423 .) # We are building in place.
23424 ac_srcdir=.
23425 ac_top_srcdir=$ac_top_builddir_sub
23426 ac_abs_top_srcdir=$ac_pwd ;;
23427 [\\/]* | ?:[\\/]* ) # Absolute name.
23428 ac_srcdir=$srcdir$ac_dir_suffix;
23429 ac_top_srcdir=$srcdir
23430 ac_abs_top_srcdir=$srcdir ;;
23431 *) # Relative name.
23432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23433 ac_top_srcdir=$ac_top_build_prefix$srcdir
23434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23435 esac
23436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23437
23438
23439 case $ac_mode in
23440 :F)
23441 #
23442 # CONFIG_FILE
23443 #
23444
23445 case $INSTALL in
23446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23448 esac
23449 ac_MKDIR_P=$MKDIR_P
23450 case $MKDIR_P in
23451 [\\/$]* | ?:[\\/]* ) ;;
23452 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23453 esac
23454 _ACEOF
23455
23456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23457 # If the template does not know about datarootdir, expand it.
23458 # FIXME: This hack should be removed a few years after 2.60.
23459 ac_datarootdir_hack=; ac_datarootdir_seen=
23460 ac_sed_dataroot='
23461 /datarootdir/ {
23462 p
23463 q
23464 }
23465 /@datadir@/p
23466 /@docdir@/p
23467 /@infodir@/p
23468 /@localedir@/p
23469 /@mandir@/p'
23470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23471 *datarootdir*) ac_datarootdir_seen=yes;;
23472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23475 _ACEOF
23476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23477 ac_datarootdir_hack='
23478 s&@datadir@&$datadir&g
23479 s&@docdir@&$docdir&g
23480 s&@infodir@&$infodir&g
23481 s&@localedir@&$localedir&g
23482 s&@mandir@&$mandir&g
23483 s&\\\${datarootdir}&$datarootdir&g' ;;
23484 esac
23485 _ACEOF
23486
23487 # Neutralize VPATH when `$srcdir' = `.'.
23488 # Shell code in configure.ac might set extrasub.
23489 # FIXME: do we really want to maintain this feature?
23490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23491 ac_sed_extra="$ac_vpsub
23492 $extrasub
23493 _ACEOF
23494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23495 :t
23496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23497 s|@configure_input@|$ac_sed_conf_input|;t t
23498 s&@top_builddir@&$ac_top_builddir_sub&;t t
23499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23500 s&@srcdir@&$ac_srcdir&;t t
23501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23502 s&@top_srcdir@&$ac_top_srcdir&;t t
23503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23504 s&@builddir@&$ac_builddir&;t t
23505 s&@abs_builddir@&$ac_abs_builddir&;t t
23506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23507 s&@INSTALL@&$ac_INSTALL&;t t
23508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23509 $ac_datarootdir_hack
23510 "
23511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23513
23514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23519 which seems to be undefined. Please make sure it is defined" >&5
23520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23521 which seems to be undefined. Please make sure it is defined" >&2;}
23522
23523 rm -f "$ac_tmp/stdin"
23524 case $ac_file in
23525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23527 esac \
23528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23529 ;;
23530
23531
23532 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23533 $as_echo "$as_me: executing $ac_file commands" >&6;}
23534 ;;
23535 esac
23536
23537
23538 case $ac_file$ac_mode in
23539 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23540 # Older Autoconf quotes --file arguments for eval, but not when files
23541 # are listed without --file. Let's play safe and only enable the eval
23542 # if we detect the quoting.
23543 case $CONFIG_FILES in
23544 *\'*) eval set x "$CONFIG_FILES" ;;
23545 *) set x $CONFIG_FILES ;;
23546 esac
23547 shift
23548 for mf
23549 do
23550 # Strip MF so we end up with the name of the file.
23551 mf=`echo "$mf" | sed -e 's/:.*$//'`
23552 # Check whether this is an Automake generated Makefile or not.
23553 # We used to match only the files named 'Makefile.in', but
23554 # some people rename them; so instead we look at the file content.
23555 # Grep'ing the first line is not enough: some people post-process
23556 # each Makefile.in and add a new line on top of each file to say so.
23557 # Grep'ing the whole file is not good either: AIX grep has a line
23558 # limit of 2048, but all sed's we know have understand at least 4000.
23559 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23560 dirpart=`$as_dirname -- "$mf" ||
23561 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23562 X"$mf" : 'X\(//\)[^/]' \| \
23563 X"$mf" : 'X\(//\)$' \| \
23564 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23565 $as_echo X"$mf" |
23566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23567 s//\1/
23568 q
23569 }
23570 /^X\(\/\/\)[^/].*/{
23571 s//\1/
23572 q
23573 }
23574 /^X\(\/\/\)$/{
23575 s//\1/
23576 q
23577 }
23578 /^X\(\/\).*/{
23579 s//\1/
23580 q
23581 }
23582 s/.*/./; q'`
23583 else
23584 continue
23585 fi
23586 # Extract the definition of DEPDIR, am__include, and am__quote
23587 # from the Makefile without running 'make'.
23588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23589 test -z "$DEPDIR" && continue
23590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23591 test -z "am__include" && continue
23592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23593 # Find all dependency output files, they are included files with
23594 # $(DEPDIR) in their names. We invoke sed twice because it is the
23595 # simplest approach to changing $(DEPDIR) to its actual value in the
23596 # expansion.
23597 for file in `sed -n "
23598 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23599 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23600 # Make sure the directory exists.
23601 test -f "$dirpart/$file" && continue
23602 fdir=`$as_dirname -- "$file" ||
23603 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23604 X"$file" : 'X\(//\)[^/]' \| \
23605 X"$file" : 'X\(//\)$' \| \
23606 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23607 $as_echo X"$file" |
23608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23609 s//\1/
23610 q
23611 }
23612 /^X\(\/\/\)[^/].*/{
23613 s//\1/
23614 q
23615 }
23616 /^X\(\/\/\)$/{
23617 s//\1/
23618 q
23619 }
23620 /^X\(\/\).*/{
23621 s//\1/
23622 q
23623 }
23624 s/.*/./; q'`
23625 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23626 # echo "creating $dirpart/$file"
23627 echo '# dummy' > "$dirpart/$file"
23628 done
23629 done
23630 }
23631 ;;
23632 "libtool":C)
23633
23634 # See if we are running on zsh, and set the options which allow our
23635 # commands through without removal of \ escapes.
23636 if test -n "${ZSH_VERSION+set}" ; then
23637 setopt NO_GLOB_SUBST
23638 fi
23639
23640 cfgfile="${ofile}T"
23641 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23642 $RM "$cfgfile"
23643
23644 cat <<_LT_EOF >> "$cfgfile"
23645 #! $SHELL
23646
23647 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23648 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23649 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23650 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23651 #
23652 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23653 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23654 # Foundation, Inc.
23655 # Written by Gordon Matzigkeit, 1996
23656 #
23657 # This file is part of GNU Libtool.
23658 #
23659 # GNU Libtool is free software; you can redistribute it and/or
23660 # modify it under the terms of the GNU General Public License as
23661 # published by the Free Software Foundation; either version 2 of
23662 # the License, or (at your option) any later version.
23663 #
23664 # As a special exception to the GNU General Public License,
23665 # if you distribute this file as part of a program or library that
23666 # is built using GNU Libtool, you may include this file under the
23667 # same distribution terms that you use for the rest of that program.
23668 #
23669 # GNU Libtool is distributed in the hope that it will be useful,
23670 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23671 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23672 # GNU General Public License for more details.
23673 #
23674 # You should have received a copy of the GNU General Public License
23675 # along with GNU Libtool; see the file COPYING. If not, a copy
23676 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23677 # obtained by writing to the Free Software Foundation, Inc.,
23678 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23679
23680
23681 # The names of the tagged configurations supported by this script.
23682 available_tags="CXX "
23683
23684 # ### BEGIN LIBTOOL CONFIG
23685
23686 # Which release of libtool.m4 was used?
23687 macro_version=$macro_version
23688 macro_revision=$macro_revision
23689
23690 # Whether or not to build static libraries.
23691 build_old_libs=$enable_static
23692
23693 # Whether or not to build shared libraries.
23694 build_libtool_libs=$enable_shared
23695
23696 # What type of objects to build.
23697 pic_mode=$pic_mode
23698
23699 # Whether or not to optimize for fast installation.
23700 fast_install=$enable_fast_install
23701
23702 # Shell to use when invoking shell scripts.
23703 SHELL=$lt_SHELL
23704
23705 # An echo program that protects backslashes.
23706 ECHO=$lt_ECHO
23707
23708 # The PATH separator for the build system.
23709 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23710
23711 # The host system.
23712 host_alias=$host_alias
23713 host=$host
23714 host_os=$host_os
23715
23716 # The build system.
23717 build_alias=$build_alias
23718 build=$build
23719 build_os=$build_os
23720
23721 # A sed program that does not truncate output.
23722 SED=$lt_SED
23723
23724 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23725 Xsed="\$SED -e 1s/^X//"
23726
23727 # A grep program that handles long lines.
23728 GREP=$lt_GREP
23729
23730 # An ERE matcher.
23731 EGREP=$lt_EGREP
23732
23733 # A literal string matcher.
23734 FGREP=$lt_FGREP
23735
23736 # A BSD- or MS-compatible name lister.
23737 NM=$lt_NM
23738
23739 # Whether we need soft or hard links.
23740 LN_S=$lt_LN_S
23741
23742 # What is the maximum length of a command?
23743 max_cmd_len=$max_cmd_len
23744
23745 # Object file suffix (normally "o").
23746 objext=$ac_objext
23747
23748 # Executable file suffix (normally "").
23749 exeext=$exeext
23750
23751 # whether the shell understands "unset".
23752 lt_unset=$lt_unset
23753
23754 # turn spaces into newlines.
23755 SP2NL=$lt_lt_SP2NL
23756
23757 # turn newlines into spaces.
23758 NL2SP=$lt_lt_NL2SP
23759
23760 # convert \$build file names to \$host format.
23761 to_host_file_cmd=$lt_cv_to_host_file_cmd
23762
23763 # convert \$build files to toolchain format.
23764 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23765
23766 # An object symbol dumper.
23767 OBJDUMP=$lt_OBJDUMP
23768
23769 # Method to check whether dependent libraries are shared objects.
23770 deplibs_check_method=$lt_deplibs_check_method
23771
23772 # Command to use when deplibs_check_method = "file_magic".
23773 file_magic_cmd=$lt_file_magic_cmd
23774
23775 # How to find potential files when deplibs_check_method = "file_magic".
23776 file_magic_glob=$lt_file_magic_glob
23777
23778 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23779 want_nocaseglob=$lt_want_nocaseglob
23780
23781 # DLL creation program.
23782 DLLTOOL=$lt_DLLTOOL
23783
23784 # Command to associate shared and link libraries.
23785 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23786
23787 # The archiver.
23788 AR=$lt_AR
23789
23790 # Flags to create an archive.
23791 AR_FLAGS=$lt_AR_FLAGS
23792
23793 # How to feed a file listing to the archiver.
23794 archiver_list_spec=$lt_archiver_list_spec
23795
23796 # A symbol stripping program.
23797 STRIP=$lt_STRIP
23798
23799 # Commands used to install an old-style archive.
23800 RANLIB=$lt_RANLIB
23801 old_postinstall_cmds=$lt_old_postinstall_cmds
23802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23803
23804 # Whether to use a lock for old archive extraction.
23805 lock_old_archive_extraction=$lock_old_archive_extraction
23806
23807 # A C compiler.
23808 LTCC=$lt_CC
23809
23810 # LTCC compiler flags.
23811 LTCFLAGS=$lt_CFLAGS
23812
23813 # Take the output of nm and produce a listing of raw symbols and C names.
23814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23815
23816 # Transform the output of nm in a proper C declaration.
23817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23818
23819 # Transform the output of nm in a C name address pair.
23820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23821
23822 # Transform the output of nm in a C name address pair when lib prefix is needed.
23823 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23824
23825 # Specify filename containing input files for \$NM.
23826 nm_file_list_spec=$lt_nm_file_list_spec
23827
23828 # The root where to search for dependent libraries,and in which our libraries should be installed.
23829 lt_sysroot=$lt_sysroot
23830
23831 # The name of the directory that contains temporary libtool files.
23832 objdir=$objdir
23833
23834 # Used to examine libraries when file_magic_cmd begins with "file".
23835 MAGIC_CMD=$MAGIC_CMD
23836
23837 # Must we lock files when doing compilation?
23838 need_locks=$lt_need_locks
23839
23840 # Manifest tool.
23841 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23842
23843 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23844 DSYMUTIL=$lt_DSYMUTIL
23845
23846 # Tool to change global to local symbols on Mac OS X.
23847 NMEDIT=$lt_NMEDIT
23848
23849 # Tool to manipulate fat objects and archives on Mac OS X.
23850 LIPO=$lt_LIPO
23851
23852 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23853 OTOOL=$lt_OTOOL
23854
23855 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23856 OTOOL64=$lt_OTOOL64
23857
23858 # Old archive suffix (normally "a").
23859 libext=$libext
23860
23861 # Shared library suffix (normally ".so").
23862 shrext_cmds=$lt_shrext_cmds
23863
23864 # The commands to extract the exported symbol list from a shared archive.
23865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23866
23867 # Variables whose values should be saved in libtool wrapper scripts and
23868 # restored at link time.
23869 variables_saved_for_relink=$lt_variables_saved_for_relink
23870
23871 # Do we need the "lib" prefix for modules?
23872 need_lib_prefix=$need_lib_prefix
23873
23874 # Do we need a version for libraries?
23875 need_version=$need_version
23876
23877 # Library versioning type.
23878 version_type=$version_type
23879
23880 # Shared library runtime path variable.
23881 runpath_var=$runpath_var
23882
23883 # Shared library path variable.
23884 shlibpath_var=$shlibpath_var
23885
23886 # Is shlibpath searched before the hard-coded library search path?
23887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23888
23889 # Format of library name prefix.
23890 libname_spec=$lt_libname_spec
23891
23892 # List of archive names. First name is the real one, the rest are links.
23893 # The last name is the one that the linker finds with -lNAME
23894 library_names_spec=$lt_library_names_spec
23895
23896 # The coded name of the library, if different from the real name.
23897 soname_spec=$lt_soname_spec
23898
23899 # Permission mode override for installation of shared libraries.
23900 install_override_mode=$lt_install_override_mode
23901
23902 # Command to use after installation of a shared archive.
23903 postinstall_cmds=$lt_postinstall_cmds
23904
23905 # Command to use after uninstallation of a shared archive.
23906 postuninstall_cmds=$lt_postuninstall_cmds
23907
23908 # Commands used to finish a libtool library installation in a directory.
23909 finish_cmds=$lt_finish_cmds
23910
23911 # As "finish_cmds", except a single script fragment to be evaled but
23912 # not shown.
23913 finish_eval=$lt_finish_eval
23914
23915 # Whether we should hardcode library paths into libraries.
23916 hardcode_into_libs=$hardcode_into_libs
23917
23918 # Compile-time system search path for libraries.
23919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23920
23921 # Run-time system search path for libraries.
23922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23923
23924 # Whether dlopen is supported.
23925 dlopen_support=$enable_dlopen
23926
23927 # Whether dlopen of programs is supported.
23928 dlopen_self=$enable_dlopen_self
23929
23930 # Whether dlopen of statically linked programs is supported.
23931 dlopen_self_static=$enable_dlopen_self_static
23932
23933 # Commands to strip libraries.
23934 old_striplib=$lt_old_striplib
23935 striplib=$lt_striplib
23936
23937
23938 # The linker used to build libraries.
23939 LD=$lt_LD
23940
23941 # How to create reloadable object files.
23942 reload_flag=$lt_reload_flag
23943 reload_cmds=$lt_reload_cmds
23944
23945 # Commands used to build an old-style archive.
23946 old_archive_cmds=$lt_old_archive_cmds
23947
23948 # A language specific compiler.
23949 CC=$lt_compiler
23950
23951 # Is the compiler the GNU compiler?
23952 with_gcc=$GCC
23953
23954 # Compiler flag to turn off builtin functions.
23955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23956
23957 # Additional compiler flags for building library objects.
23958 pic_flag=$lt_lt_prog_compiler_pic
23959
23960 # How to pass a linker flag through the compiler.
23961 wl=$lt_lt_prog_compiler_wl
23962
23963 # Compiler flag to prevent dynamic linking.
23964 link_static_flag=$lt_lt_prog_compiler_static
23965
23966 # Does compiler simultaneously support -c and -o options?
23967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23968
23969 # Whether or not to add -lc for building shared libraries.
23970 build_libtool_need_lc=$archive_cmds_need_lc
23971
23972 # Whether or not to disallow shared libs when runtime libs are static.
23973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23974
23975 # Compiler flag to allow reflexive dlopens.
23976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23977
23978 # Compiler flag to generate shared objects directly from archives.
23979 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23980
23981 # Whether the compiler copes with passing no objects directly.
23982 compiler_needs_object=$lt_compiler_needs_object
23983
23984 # Create an old-style archive from a shared archive.
23985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23986
23987 # Create a temporary old-style archive to link instead of a shared archive.
23988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23989
23990 # Commands used to build a shared archive.
23991 archive_cmds=$lt_archive_cmds
23992 archive_expsym_cmds=$lt_archive_expsym_cmds
23993
23994 # Commands used to build a loadable module if different from building
23995 # a shared archive.
23996 module_cmds=$lt_module_cmds
23997 module_expsym_cmds=$lt_module_expsym_cmds
23998
23999 # Whether we are building with GNU ld or not.
24000 with_gnu_ld=$lt_with_gnu_ld
24001
24002 # Flag that allows shared libraries with undefined symbols to be built.
24003 allow_undefined_flag=$lt_allow_undefined_flag
24004
24005 # Flag that enforces no undefined symbols.
24006 no_undefined_flag=$lt_no_undefined_flag
24007
24008 # Flag to hardcode \$libdir into a binary during linking.
24009 # This must work even if \$libdir does not exist
24010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24011
24012 # Whether we need a single "-rpath" flag with a separated argument.
24013 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24014
24015 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24016 # DIR into the resulting binary.
24017 hardcode_direct=$hardcode_direct
24018
24019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24020 # DIR into the resulting binary and the resulting library dependency is
24021 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24022 # library is relocated.
24023 hardcode_direct_absolute=$hardcode_direct_absolute
24024
24025 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24026 # into the resulting binary.
24027 hardcode_minus_L=$hardcode_minus_L
24028
24029 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24030 # into the resulting binary.
24031 hardcode_shlibpath_var=$hardcode_shlibpath_var
24032
24033 # Set to "yes" if building a shared library automatically hardcodes DIR
24034 # into the library and all subsequent libraries and executables linked
24035 # against it.
24036 hardcode_automatic=$hardcode_automatic
24037
24038 # Set to yes if linker adds runtime paths of dependent libraries
24039 # to runtime path list.
24040 inherit_rpath=$inherit_rpath
24041
24042 # Whether libtool must link a program against all its dependency libraries.
24043 link_all_deplibs=$link_all_deplibs
24044
24045 # Set to "yes" if exported symbols are required.
24046 always_export_symbols=$always_export_symbols
24047
24048 # The commands to list exported symbols.
24049 export_symbols_cmds=$lt_export_symbols_cmds
24050
24051 # Symbols that should not be listed in the preloaded symbols.
24052 exclude_expsyms=$lt_exclude_expsyms
24053
24054 # Symbols that must always be exported.
24055 include_expsyms=$lt_include_expsyms
24056
24057 # Commands necessary for linking programs (against libraries) with templates.
24058 prelink_cmds=$lt_prelink_cmds
24059
24060 # Commands necessary for finishing linking programs.
24061 postlink_cmds=$lt_postlink_cmds
24062
24063 # Specify filename containing input files.
24064 file_list_spec=$lt_file_list_spec
24065
24066 # How to hardcode a shared library path into an executable.
24067 hardcode_action=$hardcode_action
24068
24069 # The directories searched by this compiler when creating a shared library.
24070 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24071
24072 # Dependencies to place before and after the objects being linked to
24073 # create a shared library.
24074 predep_objects=$lt_predep_objects
24075 postdep_objects=$lt_postdep_objects
24076 predeps=$lt_predeps
24077 postdeps=$lt_postdeps
24078
24079 # The library search path used internally by the compiler when linking
24080 # a shared library.
24081 compiler_lib_search_path=$lt_compiler_lib_search_path
24082
24083 # ### END LIBTOOL CONFIG
24084
24085 _LT_EOF
24086
24087 case $host_os in
24088 aix3*)
24089 cat <<\_LT_EOF >> "$cfgfile"
24090 # AIX sometimes has problems with the GCC collect2 program. For some
24091 # reason, if we set the COLLECT_NAMES environment variable, the problems
24092 # vanish in a puff of smoke.
24093 if test "X${COLLECT_NAMES+set}" != Xset; then
24094 COLLECT_NAMES=
24095 export COLLECT_NAMES
24096 fi
24097 _LT_EOF
24098 ;;
24099 esac
24100
24101
24102 ltmain="$ac_aux_dir/ltmain.sh"
24103
24104
24105 # We use sed instead of cat because bash on DJGPP gets confused if
24106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24107 # text mode, it properly converts lines to CR/LF. This bash problem
24108 # is reportedly fixed, but why not run on old versions too?
24109 sed '$q' "$ltmain" >> "$cfgfile" \
24110 || (rm -f "$cfgfile"; exit 1)
24111
24112 if test x"$xsi_shell" = xyes; then
24113 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24114 func_dirname ()\
24115 {\
24116 \ case ${1} in\
24117 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24118 \ * ) func_dirname_result="${3}" ;;\
24119 \ esac\
24120 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24121 && mv -f "$cfgfile.tmp" "$cfgfile" \
24122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24123 test 0 -eq $? || _lt_function_replace_fail=:
24124
24125
24126 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24127 func_basename ()\
24128 {\
24129 \ func_basename_result="${1##*/}"\
24130 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24131 && mv -f "$cfgfile.tmp" "$cfgfile" \
24132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24133 test 0 -eq $? || _lt_function_replace_fail=:
24134
24135
24136 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24137 func_dirname_and_basename ()\
24138 {\
24139 \ case ${1} in\
24140 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24141 \ * ) func_dirname_result="${3}" ;;\
24142 \ esac\
24143 \ func_basename_result="${1##*/}"\
24144 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24145 && mv -f "$cfgfile.tmp" "$cfgfile" \
24146 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24147 test 0 -eq $? || _lt_function_replace_fail=:
24148
24149
24150 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24151 func_stripname ()\
24152 {\
24153 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24154 \ # positional parameters, so assign one to ordinary parameter first.\
24155 \ func_stripname_result=${3}\
24156 \ func_stripname_result=${func_stripname_result#"${1}"}\
24157 \ func_stripname_result=${func_stripname_result%"${2}"}\
24158 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24159 && mv -f "$cfgfile.tmp" "$cfgfile" \
24160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24161 test 0 -eq $? || _lt_function_replace_fail=:
24162
24163
24164 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24165 func_split_long_opt ()\
24166 {\
24167 \ func_split_long_opt_name=${1%%=*}\
24168 \ func_split_long_opt_arg=${1#*=}\
24169 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24170 && mv -f "$cfgfile.tmp" "$cfgfile" \
24171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24172 test 0 -eq $? || _lt_function_replace_fail=:
24173
24174
24175 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24176 func_split_short_opt ()\
24177 {\
24178 \ func_split_short_opt_arg=${1#??}\
24179 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24180 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24181 && mv -f "$cfgfile.tmp" "$cfgfile" \
24182 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24183 test 0 -eq $? || _lt_function_replace_fail=:
24184
24185
24186 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24187 func_lo2o ()\
24188 {\
24189 \ case ${1} in\
24190 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24191 \ *) func_lo2o_result=${1} ;;\
24192 \ esac\
24193 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24194 && mv -f "$cfgfile.tmp" "$cfgfile" \
24195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24196 test 0 -eq $? || _lt_function_replace_fail=:
24197
24198
24199 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24200 func_xform ()\
24201 {\
24202 func_xform_result=${1%.*}.lo\
24203 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24204 && mv -f "$cfgfile.tmp" "$cfgfile" \
24205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24206 test 0 -eq $? || _lt_function_replace_fail=:
24207
24208
24209 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24210 func_arith ()\
24211 {\
24212 func_arith_result=$(( $* ))\
24213 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24214 && mv -f "$cfgfile.tmp" "$cfgfile" \
24215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24216 test 0 -eq $? || _lt_function_replace_fail=:
24217
24218
24219 sed -e '/^func_len ()$/,/^} # func_len /c\
24220 func_len ()\
24221 {\
24222 func_len_result=${#1}\
24223 } # Extended-shell func_len 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 fi
24229
24230 if test x"$lt_shell_append" = xyes; then
24231 sed -e '/^func_append ()$/,/^} # func_append /c\
24232 func_append ()\
24233 {\
24234 eval "${1}+=\\${2}"\
24235 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24236 && mv -f "$cfgfile.tmp" "$cfgfile" \
24237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24238 test 0 -eq $? || _lt_function_replace_fail=:
24239
24240
24241 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24242 func_append_quoted ()\
24243 {\
24244 \ func_quote_for_eval "${2}"\
24245 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24246 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24247 && mv -f "$cfgfile.tmp" "$cfgfile" \
24248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24249 test 0 -eq $? || _lt_function_replace_fail=:
24250
24251
24252 # Save a `func_append' function call where possible by direct use of '+='
24253 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24254 && mv -f "$cfgfile.tmp" "$cfgfile" \
24255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24256 test 0 -eq $? || _lt_function_replace_fail=:
24257 else
24258 # Save a `func_append' function call even when '+=' is not available
24259 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 fi
24264
24265 if test x"$_lt_function_replace_fail" = x":"; then
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24267 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24268 fi
24269
24270
24271 mv -f "$cfgfile" "$ofile" ||
24272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24273 chmod +x "$ofile"
24274
24275
24276 cat <<_LT_EOF >> "$ofile"
24277
24278 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24279
24280 # The linker used to build libraries.
24281 LD=$lt_LD_CXX
24282
24283 # How to create reloadable object files.
24284 reload_flag=$lt_reload_flag_CXX
24285 reload_cmds=$lt_reload_cmds_CXX
24286
24287 # Commands used to build an old-style archive.
24288 old_archive_cmds=$lt_old_archive_cmds_CXX
24289
24290 # A language specific compiler.
24291 CC=$lt_compiler_CXX
24292
24293 # Is the compiler the GNU compiler?
24294 with_gcc=$GCC_CXX
24295
24296 # Compiler flag to turn off builtin functions.
24297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24298
24299 # Additional compiler flags for building library objects.
24300 pic_flag=$lt_lt_prog_compiler_pic_CXX
24301
24302 # How to pass a linker flag through the compiler.
24303 wl=$lt_lt_prog_compiler_wl_CXX
24304
24305 # Compiler flag to prevent dynamic linking.
24306 link_static_flag=$lt_lt_prog_compiler_static_CXX
24307
24308 # Does compiler simultaneously support -c and -o options?
24309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24310
24311 # Whether or not to add -lc for building shared libraries.
24312 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24313
24314 # Whether or not to disallow shared libs when runtime libs are static.
24315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24316
24317 # Compiler flag to allow reflexive dlopens.
24318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24319
24320 # Compiler flag to generate shared objects directly from archives.
24321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24322
24323 # Whether the compiler copes with passing no objects directly.
24324 compiler_needs_object=$lt_compiler_needs_object_CXX
24325
24326 # Create an old-style archive from a shared archive.
24327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24328
24329 # Create a temporary old-style archive to link instead of a shared archive.
24330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24331
24332 # Commands used to build a shared archive.
24333 archive_cmds=$lt_archive_cmds_CXX
24334 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24335
24336 # Commands used to build a loadable module if different from building
24337 # a shared archive.
24338 module_cmds=$lt_module_cmds_CXX
24339 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24340
24341 # Whether we are building with GNU ld or not.
24342 with_gnu_ld=$lt_with_gnu_ld_CXX
24343
24344 # Flag that allows shared libraries with undefined symbols to be built.
24345 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24346
24347 # Flag that enforces no undefined symbols.
24348 no_undefined_flag=$lt_no_undefined_flag_CXX
24349
24350 # Flag to hardcode \$libdir into a binary during linking.
24351 # This must work even if \$libdir does not exist
24352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24353
24354 # Whether we need a single "-rpath" flag with a separated argument.
24355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24356
24357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24358 # DIR into the resulting binary.
24359 hardcode_direct=$hardcode_direct_CXX
24360
24361 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24362 # DIR into the resulting binary and the resulting library dependency is
24363 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24364 # library is relocated.
24365 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24366
24367 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24368 # into the resulting binary.
24369 hardcode_minus_L=$hardcode_minus_L_CXX
24370
24371 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24372 # into the resulting binary.
24373 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24374
24375 # Set to "yes" if building a shared library automatically hardcodes DIR
24376 # into the library and all subsequent libraries and executables linked
24377 # against it.
24378 hardcode_automatic=$hardcode_automatic_CXX
24379
24380 # Set to yes if linker adds runtime paths of dependent libraries
24381 # to runtime path list.
24382 inherit_rpath=$inherit_rpath_CXX
24383
24384 # Whether libtool must link a program against all its dependency libraries.
24385 link_all_deplibs=$link_all_deplibs_CXX
24386
24387 # Set to "yes" if exported symbols are required.
24388 always_export_symbols=$always_export_symbols_CXX
24389
24390 # The commands to list exported symbols.
24391 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24392
24393 # Symbols that should not be listed in the preloaded symbols.
24394 exclude_expsyms=$lt_exclude_expsyms_CXX
24395
24396 # Symbols that must always be exported.
24397 include_expsyms=$lt_include_expsyms_CXX
24398
24399 # Commands necessary for linking programs (against libraries) with templates.
24400 prelink_cmds=$lt_prelink_cmds_CXX
24401
24402 # Commands necessary for finishing linking programs.
24403 postlink_cmds=$lt_postlink_cmds_CXX
24404
24405 # Specify filename containing input files.
24406 file_list_spec=$lt_file_list_spec_CXX
24407
24408 # How to hardcode a shared library path into an executable.
24409 hardcode_action=$hardcode_action_CXX
24410
24411 # The directories searched by this compiler when creating a shared library.
24412 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24413
24414 # Dependencies to place before and after the objects being linked to
24415 # create a shared library.
24416 predep_objects=$lt_predep_objects_CXX
24417 postdep_objects=$lt_postdep_objects_CXX
24418 predeps=$lt_predeps_CXX
24419 postdeps=$lt_postdeps_CXX
24420
24421 # The library search path used internally by the compiler when linking
24422 # a shared library.
24423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24424
24425 # ### END LIBTOOL TAG CONFIG: CXX
24426 _LT_EOF
24427
24428 ;;
24429
24430 esac
24431 done # for ac_tag
24432
24433
24434 as_fn_exit 0
24435 _ACEOF
24436 ac_clean_files=$ac_clean_files_save
24437
24438 test $ac_write_fail = 0 ||
24439 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24440
24441
24442 # configure is writing to config.log, and then calls config.status.
24443 # config.status does its own redirection, appending to config.log.
24444 # Unfortunately, on DOS this fails, as config.log is still kept open
24445 # by configure, so config.status won't be able to write to it; its
24446 # output is simply discarded. So we exec the FD to /dev/null,
24447 # effectively closing config.log, so it can be properly (re)opened and
24448 # appended to by config.status. When coming back to configure, we
24449 # need to make the FD available again.
24450 if test "$no_create" != yes; then
24451 ac_cs_success=:
24452 ac_config_status_args=
24453 test "$silent" = yes &&
24454 ac_config_status_args="$ac_config_status_args --quiet"
24455 exec 5>/dev/null
24456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24457 exec 5>>config.log
24458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24459 # would make configure fail if this is the last instruction.
24460 $ac_cs_success || as_fn_exit 1
24461 fi
24462 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24464 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24465 fi
24466