]> git.saurik.com Git - cycript.git/blob - configure
Delay expansion of MAKE, to allow using jobserver.
[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-2014 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_MACH
644 CY_ATTACH_GROUP
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBGCC
654 LTLIBTERMCAP
655 LTLIBREADLINE
656 CY_OBJECTIVEC_FALSE
657 CY_OBJECTIVEC_TRUE
658 CY_JAVA_FALSE
659 CY_JAVA_TRUE
660 LTOBJECTIVEC
661 GNUSTEP_CONFIG
662 CY_OBJECTIVEC
663 LTJAVA
664 CY_JAVA
665 LTLIBFFI
666 LIBFFI_LIBS
667 LIBFFI_CFLAGS
668 CY_EXECUTE_FALSE
669 CY_EXECUTE_TRUE
670 CY_CONSOLE_FALSE
671 CY_CONSOLE_TRUE
672 LTJAVASCRIPTCORE
673 WEBKIT_LIBS
674 WEBKIT_CFLAGS
675 CY_EXECUTE
676 CY_ARCH
677 CY_FILTERS
678 GNUTAR
679 GPERF
680 FLEX
681 BISON
682 TIME
683 GIT
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 HAVE_CXX11
688 CXXCPP
689 CPP
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 DLLTOOL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 EGREP
706 GREP
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 ac_ct_AR
718 AR
719 am__fastdepOBJCXX_FALSE
720 am__fastdepOBJCXX_TRUE
721 OBJCXXDEPMODE
722 ac_ct_OBJCXX
723 OBJCXXFLAGS
724 OBJCXX
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 am__fastdepCC_FALSE
732 am__fastdepCC_TRUE
733 CCDEPMODE
734 am__nodep
735 AMDEPBACKSLASH
736 AMDEP_FALSE
737 AMDEP_TRUE
738 am__quote
739 am__include
740 DEPDIR
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 MAINT
749 MAINTAINER_MODE_FALSE
750 MAINTAINER_MODE_TRUE
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_maintainer_mode
821 enable_dependency_tracking
822 enable_static
823 enable_shared
824 with_pic
825 enable_fast_install
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_javascript
830 enable_console
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 OBJCXX
844 OBJCXXFLAGS
845 CPP
846 CXXCPP
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 BISON
851 FLEX
852 GPERF
853 GNUTAR
854 WEBKIT_CFLAGS
855 WEBKIT_LIBS
856 LIBFFI_CFLAGS
857 LIBFFI_LIBS
858 GNUSTEP_CONFIG'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of Cycript 0.9:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-javascript[=ENGINE]
1492 use a JavaScript runtime (currently the only
1493 available option for ENGINE is JavaScriptCore)
1494 [default=yes]
1495 --disable-console disable console
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot=DIR Search for dependent libraries within DIR
1504 (or the compiler's sysroot if not specified).
1505
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 OBJCXX Objective C++ compiler command
1517 OBJCXXFLAGS Objective C++ compiler flags
1518 CPP C preprocessor
1519 CXXCPP C++ preprocessor
1520 PKG_CONFIG path to pkg-config utility
1521 PKG_CONFIG_PATH
1522 directories to add to pkg-config's search path
1523 PKG_CONFIG_LIBDIR
1524 path overriding pkg-config's built-in search path
1525 BISON GNU Project parser generator (yacc replacement)
1526 FLEX the fast lexical analyser generator
1527 GPERF perfect hash function generator
1528 GNUTAR a very sticky lump of files
1529 WEBKIT_CFLAGS
1530 C compiler flags for WEBKIT, overriding pkg-config
1531 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1532 GNUSTEP_CONFIG
1533 prints information about the current gnustep installation
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <saurik@saurik.com>.
1539 Cycript home page: <http://www.cycript.org/>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
1550 ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569 .) # We are building in place.
1570 ac_srcdir=.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1592 else
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1596 done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601 cat <<\_ACEOF
1602 Cycript configure 0.9
1603 generated by GNU Autoconf 2.69
1604
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608
1609 Copyright (C) 2009-2014 Jay Freeman (saurik)
1610 _ACEOF
1611 exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650 fi
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_cxx_try_compile LINENO
1657 # ----------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_cxx_try_compile ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext
1663 if { { ac_try="$ac_compile"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_cxx_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_cxx_try_compile
1693
1694 # ac_fn_objcxx_try_compile LINENO
1695 # -------------------------------
1696 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_objcxx_try_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_objcxx_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1729
1730 } # ac_fn_objcxx_try_compile
1731
1732 # ac_fn_c_try_link LINENO
1733 # -----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_link ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
1759 test -x conftest$ac_exeext
1760 }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770 # interfere with the next link command; also delete a directory that is
1771 # left behind by Apple's compiler. We do this before executing the actions.
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_link
1777
1778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779 # -------------------------------------------------------
1780 # Tests whether HEADER exists and can be compiled using the include files in
1781 # INCLUDES, setting the cache variable VAR accordingly.
1782 ac_fn_c_check_header_compile ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 $4
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840 fi
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=$ac_status
1881 fi
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_run
1887
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1904
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1909
1910 #ifdef __STDC__
1911 # include <limits.h>
1912 #else
1913 # include <assert.h>
1914 #endif
1915
1916 #undef $2
1917
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1921 #ifdef __cplusplus
1922 extern "C"
1923 #endif
1924 char $2 ();
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1929 choke me
1930 #endif
1931
1932 int
1933 main ()
1934 {
1935 return $2 ();
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_link "$LINENO"; then :
1941 eval "$3=yes"
1942 else
1943 eval "$3=no"
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953 } # ac_fn_c_check_func
1954
1955 # ac_fn_cxx_try_cpp LINENO
1956 # ------------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_cpp ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i && {
1977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1984
1985 ac_retval=1
1986 fi
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1989
1990 } # ac_fn_cxx_try_cpp
1991
1992 # ac_fn_cxx_try_link LINENO
1993 # -------------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_link ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext conftest$ac_exeext
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2012 fi
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest$ac_exeext && {
2018 test "$cross_compiling" = yes ||
2019 test -x conftest$ac_exeext
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027 fi
2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030 # interfere with the next link command; also delete a directory that is
2031 # left behind by Apple's compiler. We do this before executing the actions.
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2035
2036 } # ac_fn_cxx_try_link
2037
2038 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2039 # ---------------------------------------------------------
2040 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2041 # the include files in INCLUDES and setting the cache variable VAR
2042 # accordingly.
2043 ac_fn_cxx_check_header_mongrel ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if eval \${$3+:} false; then :
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 fi
2052 eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 else
2056 # Is the header compilable?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058 $as_echo_n "checking $2 usability... " >&6; }
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 #include <$2>
2063 _ACEOF
2064 if ac_fn_cxx_try_compile "$LINENO"; then :
2065 ac_header_compiler=yes
2066 else
2067 ac_header_compiler=no
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2071 $as_echo "$ac_header_compiler" >&6; }
2072
2073 # Is the header present?
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2075 $as_echo_n "checking $2 presence... " >&6; }
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 #include <$2>
2079 _ACEOF
2080 if ac_fn_cxx_try_cpp "$LINENO"; then :
2081 ac_header_preproc=yes
2082 else
2083 ac_header_preproc=no
2084 fi
2085 rm -f conftest.err conftest.i conftest.$ac_ext
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2087 $as_echo "$ac_header_preproc" >&6; }
2088
2089 # So? What about this header?
2090 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2091 yes:no: )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097 no:yes:* )
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 ( $as_echo "## -------------------------------- ##
2109 ## Report this to saurik@saurik.com ##
2110 ## -------------------------------- ##"
2111 ) | sed "s/^/$as_me: WARNING: /" >&2
2112 ;;
2113 esac
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 eval "$3=\$ac_header_compiler"
2120 fi
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_cxx_check_header_mongrel
2128
2129 # ac_fn_objcxx_try_link LINENO
2130 # ----------------------------
2131 # Try to link conftest.$ac_ext, and return whether this succeeded.
2132 ac_fn_objcxx_try_link ()
2133 {
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 rm -f conftest.$ac_objext conftest$ac_exeext
2136 if { { ac_try="$ac_link"
2137 case "(($ac_try" in
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2140 esac
2141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142 $as_echo "$ac_try_echo"; } >&5
2143 (eval "$ac_link") 2>conftest.err
2144 ac_status=$?
2145 if test -s conftest.err; then
2146 grep -v '^ *+' conftest.err >conftest.er1
2147 cat conftest.er1 >&5
2148 mv -f conftest.er1 conftest.err
2149 fi
2150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151 test $ac_status = 0; } && {
2152 test -z "$ac_objcxx_werror_flag" ||
2153 test ! -s conftest.err
2154 } && test -s conftest$ac_exeext && {
2155 test "$cross_compiling" = yes ||
2156 test -x conftest$ac_exeext
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2166 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2167 # interfere with the next link command; also delete a directory that is
2168 # left behind by Apple's compiler. We do this before executing the actions.
2169 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 as_fn_set_status $ac_retval
2172
2173 } # ac_fn_objcxx_try_link
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2177
2178 It was created by Cycript $as_me 0.9, which was
2179 generated by GNU Autoconf 2.69. Invocation command line was
2180
2181 $ $0 $@
2182
2183 _ACEOF
2184 exec 5>>config.log
2185 {
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2190
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208 _ASUNAME
2209
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2218
2219 } >&5
2220
2221 cat >&5 <<_ACEOF
2222
2223
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2227
2228 _ACEOF
2229
2230
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2241 do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2278
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
2289 $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294 (
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322 )
2323 echo
2324
2325 $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##"
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370 ' 0
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2375
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2378
2379 $as_echo "/* confdefs.h */" > confdefs.h
2380
2381 # Predefined preprocessor variables.
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2406
2407
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422 else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425 fi
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 do
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See \`config.log' for more details" "$LINENO" 5; }
2438 fi
2439 done
2440
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456 fi
2457
2458 # Check that the precious variables saved in the cache have kept the same
2459 # value.
2460 ac_cache_corrupted=false
2461 for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507 done
2508 if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 fi
2515 ## -------------------- ##
2516 ## Main body of script. ##
2517 ## -------------------- ##
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526
2527
2528
2529 ac_aux_dir=
2530 for ac_dir in . "$srcdir"/.; do
2531 if test -f "$ac_dir/install-sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install-sh -c"
2534 break
2535 elif test -f "$ac_dir/install.sh"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/install.sh -c"
2538 break
2539 elif test -f "$ac_dir/shtool"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/shtool install -c"
2542 break
2543 fi
2544 done
2545 if test -z "$ac_aux_dir"; then
2546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2547 fi
2548
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
2558
2559 ac_config_headers="$ac_config_headers config.h"
2560
2561
2562 am__api_version='1.14'
2563
2564 # Find a good install program. We prefer a C program (faster),
2565 # so one script is as good as another. But avoid the broken or
2566 # incompatible versions:
2567 # SysV /etc/install, /usr/sbin/install
2568 # SunOS /usr/etc/install
2569 # IRIX /sbin/install
2570 # AIX /bin/install
2571 # AmigaOS /C/install, which installs bootblocks on floppy discs
2572 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2573 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2574 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2575 # OS/2's system install, which has a completely different semantic
2576 # ./install, which can be erroneously created by make from ./install.sh.
2577 # Reject install programs that cannot install multiple files.
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2579 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2580 if test -z "$INSTALL"; then
2581 if ${ac_cv_path_install+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 # Account for people who put trailing slashes in PATH elements.
2590 case $as_dir/ in #((
2591 ./ | .// | /[cC]/* | \
2592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2594 /usr/ucb/* ) ;;
2595 *)
2596 # OSF1 and SCO ODT 3.0 have their own names for install.
2597 # Don't use installbsd from OSF since it installs stuff as root
2598 # by default.
2599 for ac_prog in ginstall scoinst install; do
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2602 if test $ac_prog = install &&
2603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2604 # AIX install. It has an incompatible calling convention.
2605 :
2606 elif test $ac_prog = install &&
2607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # program-specific install script used by HP pwplus--don't use.
2609 :
2610 else
2611 rm -rf conftest.one conftest.two conftest.dir
2612 echo one > conftest.one
2613 echo two > conftest.two
2614 mkdir conftest.dir
2615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2616 test -s conftest.one && test -s conftest.two &&
2617 test -s conftest.dir/conftest.one &&
2618 test -s conftest.dir/conftest.two
2619 then
2620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2621 break 3
2622 fi
2623 fi
2624 fi
2625 done
2626 done
2627 ;;
2628 esac
2629
2630 done
2631 IFS=$as_save_IFS
2632
2633 rm -rf conftest.one conftest.two conftest.dir
2634
2635 fi
2636 if test "${ac_cv_path_install+set}" = set; then
2637 INSTALL=$ac_cv_path_install
2638 else
2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
2643 INSTALL=$ac_install_sh
2644 fi
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2647 $as_echo "$INSTALL" >&6; }
2648
2649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650 # It thinks the first close brace ends the variable substitution.
2651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2652
2653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2654
2655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2658 $as_echo_n "checking whether build environment is sane... " >&6; }
2659 # Reject unsafe characters in $srcdir or the absolute working directory
2660 # name. Accept space and tab only in the latter.
2661 am_lf='
2662 '
2663 case `pwd` in
2664 *[\\\"\#\$\&\'\`$am_lf]*)
2665 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2666 esac
2667 case $srcdir in
2668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2669 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2670 esac
2671
2672 # Do 'set' in a subshell so we don't clobber the current shell's
2673 # arguments. Must try -L first in case configure is actually a
2674 # symlink; some systems play weird games with the mod time of symlinks
2675 # (eg FreeBSD returns the mod time of the symlink's containing
2676 # directory).
2677 if (
2678 am_has_slept=no
2679 for am_try in 1 2; do
2680 echo "timestamp, slept: $am_has_slept" > conftest.file
2681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2682 if test "$*" = "X"; then
2683 # -L didn't work.
2684 set X `ls -t "$srcdir/configure" conftest.file`
2685 fi
2686 if test "$*" != "X $srcdir/configure conftest.file" \
2687 && test "$*" != "X conftest.file $srcdir/configure"; then
2688
2689 # If neither matched, then we have a broken ls. This can happen
2690 # if, for instance, CONFIG_SHELL is bash and it inherits a
2691 # broken ls alias from the environment. This has actually
2692 # happened. Such a system could not be considered "sane".
2693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2694 alias in your environment" "$LINENO" 5
2695 fi
2696 if test "$2" = conftest.file || test $am_try -eq 2; then
2697 break
2698 fi
2699 # Just in case.
2700 sleep 1
2701 am_has_slept=yes
2702 done
2703 test "$2" = conftest.file
2704 )
2705 then
2706 # Ok.
2707 :
2708 else
2709 as_fn_error $? "newly created file is older than distributed files!
2710 Check your system clock" "$LINENO" 5
2711 fi
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2713 $as_echo "yes" >&6; }
2714 # If we didn't sleep, we still need to ensure time stamps of config.status and
2715 # generated files are strictly newer.
2716 am_sleep_pid=
2717 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2718 ( sleep 1 ) &
2719 am_sleep_pid=$!
2720 fi
2721
2722 rm -f conftest.file
2723
2724 test "$program_prefix" != NONE &&
2725 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2726 # Use a double $ so make ignores it.
2727 test "$program_suffix" != NONE &&
2728 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2729 # Double any \ or $.
2730 # By default was `s,x,x', remove it if useless.
2731 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2732 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2733
2734 # expand $ac_aux_dir to an absolute path
2735 am_aux_dir=`cd $ac_aux_dir && pwd`
2736
2737 if test x"${MISSING+set}" != xset; then
2738 case $am_aux_dir in
2739 *\ * | *\ *)
2740 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2741 *)
2742 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2743 esac
2744 fi
2745 # Use eval to expand $SHELL
2746 if eval "$MISSING --is-lightweight"; then
2747 am_missing_run="$MISSING "
2748 else
2749 am_missing_run=
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2751 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 fi
2753
2754 if test x"${install_sh}" != xset; then
2755 case $am_aux_dir in
2756 *\ * | *\ *)
2757 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2758 *)
2759 install_sh="\${SHELL} $am_aux_dir/install-sh"
2760 esac
2761 fi
2762
2763 # Installed binaries are usually stripped using 'strip' when the user
2764 # run "make install-strip". However 'strip' might not be the right
2765 # tool to use in cross-compilation environments, therefore Automake
2766 # will honor the 'STRIP' environment variable to overrule this program.
2767 if test "$cross_compiling" != no; then
2768 if test -n "$ac_tool_prefix"; then
2769 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}strip; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_STRIP+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$STRIP"; then
2777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 STRIP=$ac_cv_prog_STRIP
2797 if test -n "$STRIP"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2799 $as_echo "$STRIP" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$ac_cv_prog_STRIP"; then
2808 ac_ct_STRIP=$STRIP
2809 # Extract the first word of "strip", so it can be a program name with args.
2810 set dummy strip; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$ac_ct_STRIP"; then
2817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_STRIP="strip"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2837 if test -n "$ac_ct_STRIP"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2839 $as_echo "$ac_ct_STRIP" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845 if test "x$ac_ct_STRIP" = x; then
2846 STRIP=":"
2847 else
2848 case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854 STRIP=$ac_ct_STRIP
2855 fi
2856 else
2857 STRIP="$ac_cv_prog_STRIP"
2858 fi
2859
2860 fi
2861 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2864 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2865 if test -z "$MKDIR_P"; then
2866 if ${ac_cv_path_mkdir+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_prog in mkdir gmkdir; do
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2877 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2878 'mkdir (GNU coreutils) '* | \
2879 'mkdir (coreutils) '* | \
2880 'mkdir (fileutils) '4.1*)
2881 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2882 break 3;;
2883 esac
2884 done
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890
2891 test -d ./--version && rmdir ./--version
2892 if test "${ac_cv_path_mkdir+set}" = set; then
2893 MKDIR_P="$ac_cv_path_mkdir -p"
2894 else
2895 # As a last resort, use the slow shell script. Don't cache a
2896 # value for MKDIR_P within a source directory, because that will
2897 # break other packages using the cache if that directory is
2898 # removed, or if the value is a relative name.
2899 MKDIR_P="$ac_install_sh -d"
2900 fi
2901 fi
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2903 $as_echo "$MKDIR_P" >&6; }
2904
2905 for ac_prog in gawk mawk nawk awk
2906 do
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_AWK+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$AWK"; then
2915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_AWK="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 AWK=$ac_cv_prog_AWK
2935 if test -n "$AWK"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2937 $as_echo "$AWK" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 test -n "$AWK" && break
2945 done
2946
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2949 set x ${MAKE-make}
2950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2951 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 cat >conftest.make <<\_ACEOF
2955 SHELL = /bin/sh
2956 all:
2957 @echo '@@@%%%=$(MAKE)=@@@%%%'
2958 _ACEOF
2959 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2961 *@@@%%%=?*=@@@%%%*)
2962 eval ac_cv_prog_make_${ac_make}_set=yes;;
2963 *)
2964 eval ac_cv_prog_make_${ac_make}_set=no;;
2965 esac
2966 rm -f conftest.make
2967 fi
2968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 SET_MAKE=
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 SET_MAKE="MAKE=${MAKE-make}"
2976 fi
2977
2978 rm -rf .tst 2>/dev/null
2979 mkdir .tst 2>/dev/null
2980 if test -d .tst; then
2981 am__leading_dot=.
2982 else
2983 am__leading_dot=_
2984 fi
2985 rmdir .tst 2>/dev/null
2986
2987 # Check whether --enable-silent-rules was given.
2988 if test "${enable_silent_rules+set}" = set; then :
2989 enableval=$enable_silent_rules;
2990 fi
2991
2992 case $enable_silent_rules in # (((
2993 yes) AM_DEFAULT_VERBOSITY=0;;
2994 no) AM_DEFAULT_VERBOSITY=1;;
2995 *) AM_DEFAULT_VERBOSITY=1;;
2996 esac
2997 am_make=${MAKE-make}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2999 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3000 if ${am_cv_make_support_nested_variables+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if $as_echo 'TRUE=$(BAR$(V))
3004 BAR0=false
3005 BAR1=true
3006 V=1
3007 am__doit:
3008 @$(TRUE)
3009 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3010 am_cv_make_support_nested_variables=yes
3011 else
3012 am_cv_make_support_nested_variables=no
3013 fi
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3016 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3017 if test $am_cv_make_support_nested_variables = yes; then
3018 AM_V='$(V)'
3019 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3020 else
3021 AM_V=$AM_DEFAULT_VERBOSITY
3022 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3023 fi
3024 AM_BACKSLASH='\'
3025
3026 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3027 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3028 # is not polluted with repeated "-I."
3029 am__isrc=' -I$(srcdir)'
3030 # test to see if srcdir already configured
3031 if test -f $srcdir/config.status; then
3032 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 fi
3034 fi
3035
3036 # test whether we have cygpath
3037 if test -z "$CYGPATH_W"; then
3038 if (cygpath --version) >/dev/null 2>/dev/null; then
3039 CYGPATH_W='cygpath -w'
3040 else
3041 CYGPATH_W=echo
3042 fi
3043 fi
3044
3045
3046 # Define the identity of the package.
3047 PACKAGE='cycript'
3048 VERSION='0.9'
3049
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE "$PACKAGE"
3053 _ACEOF
3054
3055
3056 cat >>confdefs.h <<_ACEOF
3057 #define VERSION "$VERSION"
3058 _ACEOF
3059
3060 # Some tools Automake needs.
3061
3062 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3063
3064
3065 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3066
3067
3068 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3069
3070
3071 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3072
3073
3074 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3075
3076 # For better backward compatibility. To be removed once Automake 1.9.x
3077 # dies out for good. For more background, see:
3078 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3079 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3080 mkdir_p='$(MKDIR_P)'
3081
3082 # We need awk for the "check" target. The system "awk" is bad on
3083 # some platforms.
3084 # Always define AMTAR for backward compatibility. Yes, it's still used
3085 # in the wild :-( We should find a proper way to deprecate it ...
3086 AMTAR='$${TAR-tar}'
3087
3088
3089 # We'll loop over all known methods to create a tar archive until one works.
3090 _am_tools='gnutar pax cpio none'
3091
3092 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3093
3094
3095
3096
3097
3098
3099 # POSIX will say in a future version that running "rm -f" with no argument
3100 # is OK; and we want to be able to make that assumption in our Makefile
3101 # recipes. So use an aggressive probe to check that the usage we want is
3102 # actually supported "in the wild" to an acceptable degree.
3103 # See automake bug#10828.
3104 # To make any issue more visible, cause the running configure to be aborted
3105 # by default if the 'rm' program in use doesn't match our expectations; the
3106 # user can still override this though.
3107 if rm -f && rm -fr && rm -rf; then : OK; else
3108 cat >&2 <<'END'
3109 Oops!
3110
3111 Your 'rm' program seems unable to run without file operands specified
3112 on the command line, even when the '-f' option is present. This is contrary
3113 to the behaviour of most rm programs out there, and not conforming with
3114 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3115
3116 Please tell bug-automake@gnu.org about your system, including the value
3117 of your $PATH and any error possibly output before this message. This
3118 can help us improve future automake versions.
3119
3120 END
3121 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3122 echo 'Configuration will proceed anyway, since you have set the' >&2
3123 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3124 echo >&2
3125 else
3126 cat >&2 <<'END'
3127 Aborting the configuration process, to ensure you take notice of the issue.
3128
3129 You can download and install GNU coreutils to get an 'rm' implementation
3130 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3131
3132 If you want to complete the configuration process using your problematic
3133 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3134 to "yes", and re-run configure.
3135
3136 END
3137 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3138 fi
3139 fi
3140
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3142 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3143 # Check whether --enable-maintainer-mode was given.
3144 if test "${enable_maintainer_mode+set}" = set; then :
3145 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3146 else
3147 USE_MAINTAINER_MODE=no
3148 fi
3149
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3151 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3152 if test $USE_MAINTAINER_MODE = yes; then
3153 MAINTAINER_MODE_TRUE=
3154 MAINTAINER_MODE_FALSE='#'
3155 else
3156 MAINTAINER_MODE_TRUE='#'
3157 MAINTAINER_MODE_FALSE=
3158 fi
3159
3160 MAINT=$MAINTAINER_MODE_TRUE
3161
3162
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 if test -z "$ac_cv_prog_CC"; then
3209 ac_ct_CC=$CC
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_ac_ct_CC="gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 CC=$ac_ct_CC
3256 fi
3257 else
3258 CC="$ac_cv_prog_CC"
3259 fi
3260
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 fi
3301 fi
3302 if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 ac_prog_rejected=no
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3323 continue
3324 fi
3325 ac_cv_prog_CC="cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3336 shift
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3341 shift
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343 fi
3344 fi
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3361 do
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 test -n "$CC" && break
3400 done
3401 fi
3402 if test -z "$CC"; then
3403 ac_ct_CC=$CC
3404 for ac_prog in cl.exe
3405 do
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 test -n "$ac_ct_CC" && break
3444 done
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3456 fi
3457 fi
3458
3459 fi
3460
3461
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details" "$LINENO" 5; }
3466
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 set X $ac_compile
3470 ac_compiler=$2
3471 for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 ac_status=$?
3481 if test -s conftest.err; then
3482 sed '10a\
3483 ... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3486 fi
3487 rm -f conftest.er1 conftest.err
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 done
3491
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494
3495 int
3496 main ()
3497 {
3498
3499 ;
3500 return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509 $as_echo_n "checking whether the C compiler works... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { { ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 ;;
3547 [ab].out )
3548 # We found the default executable, but exeext='' is most
3549 # certainly right.
3550 break;;
3551 *.* )
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 then :; else
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 fi
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3560 # actually working.
3561 break;;
3562 * )
3563 break;;
3564 esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569 ac_file=''
3570 fi
3571 if test -z "$ac_file"; then :
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error 77 "C compiler cannot create executables
3580 See \`config.log' for more details" "$LINENO" 5; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583 $as_echo "yes" >&6; }
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586 $as_echo_n "checking for C compiler default output file name... " >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3588 $as_echo "$ac_file" >&6; }
3589 ac_exeext=$ac_cv_exeext
3590
3591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3592 ac_clean_files=$ac_clean_files_save
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3594 $as_echo_n "checking for suffix of executables... " >&6; }
3595 if { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; then :
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608 # work properly (i.e., refer to `conftest.exe'), while it won't with
3609 # `rm'.
3610 for ac_file in conftest.exe conftest conftest.*; do
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 break;;
3616 * ) break;;
3617 esac
3618 done
3619 else
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3623 See \`config.log' for more details" "$LINENO" 5; }
3624 fi
3625 rm -f conftest conftest$ac_cv_exeext
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3627 $as_echo "$ac_cv_exeext" >&6; }
3628
3629 rm -f conftest.$ac_ext
3630 EXEEXT=$ac_cv_exeext
3631 ac_exeext=$EXEEXT
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634 #include <stdio.h>
3635 int
3636 main ()
3637 {
3638 FILE *f = fopen ("conftest.out", "w");
3639 return ferror (f) || fclose (f) != 0;
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 ac_clean_files="$ac_clean_files conftest.out"
3646 # Check that the compiler produces executables we can run. If not, either
3647 # the compiler is broken, or we cross compile.
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3649 $as_echo_n "checking whether we are cross compiling... " >&6; }
3650 if test "$cross_compiling" != yes; then
3651 { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 if { ac_try='./conftest$ac_cv_exeext'
3663 { { case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_try") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; }; then
3673 cross_compiling=no
3674 else
3675 if test "$cross_compiling" = maybe; then
3676 cross_compiling=yes
3677 else
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "cannot run C compiled programs.
3681 If you meant to cross compile, use \`--host'.
3682 See \`config.log' for more details" "$LINENO" 5; }
3683 fi
3684 fi
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3688
3689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3690 ac_clean_files=$ac_clean_files_save
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3692 $as_echo_n "checking for suffix of object files... " >&6; }
3693 if ${ac_cv_objext+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main ()
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.o conftest.obj
3708 if { { ac_try="$ac_compile"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_compile") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 for ac_file in conftest.o conftest.obj conftest.*; do
3720 test -f "$ac_file" || continue;
3721 case $ac_file in
3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3724 break;;
3725 esac
3726 done
3727 else
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot compute suffix of object files: cannot compile
3734 See \`config.log' for more details" "$LINENO" 5; }
3735 fi
3736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3739 $as_echo "$ac_cv_objext" >&6; }
3740 OBJEXT=$ac_cv_objext
3741 ac_objext=$OBJEXT
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3744 if ${ac_cv_c_compiler_gnu+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754 choke me
3755 #endif
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_compiler_gnu=yes
3763 else
3764 ac_compiler_gnu=no
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3768
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3772 if test $ac_compiler_gnu = yes; then
3773 GCC=yes
3774 else
3775 GCC=
3776 fi
3777 ac_test_CFLAGS=${CFLAGS+set}
3778 ac_save_CFLAGS=$CFLAGS
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3781 if ${ac_cv_prog_cc_g+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 ac_save_c_werror_flag=$ac_c_werror_flag
3785 ac_c_werror_flag=yes
3786 ac_cv_prog_cc_g=no
3787 CFLAGS="-g"
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790
3791 int
3792 main ()
3793 {
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_g=yes
3801 else
3802 CFLAGS=""
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815
3816 else
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3818 CFLAGS="-g"
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_g=yes
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3841 $as_echo "$ac_cv_prog_cc_g" >&6; }
3842 if test "$ac_test_CFLAGS" = set; then
3843 CFLAGS=$ac_save_CFLAGS
3844 elif test $ac_cv_prog_cc_g = yes; then
3845 if test "$GCC" = yes; then
3846 CFLAGS="-g -O2"
3847 else
3848 CFLAGS="-g"
3849 fi
3850 else
3851 if test "$GCC" = yes; then
3852 CFLAGS="-O2"
3853 else
3854 CFLAGS=
3855 fi
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859 if ${ac_cv_prog_cc_c89+:} false; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 ac_cv_prog_cc_c89=no
3863 ac_save_CC=$CC
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <stdarg.h>
3867 #include <stdio.h>
3868 struct stat;
3869 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3870 struct buf { int x; };
3871 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3872 static char *e (p, i)
3873 char **p;
3874 int i;
3875 {
3876 return p[i];
3877 }
3878 static char *f (char * (*g) (char **, int), char **p, ...)
3879 {
3880 char *s;
3881 va_list v;
3882 va_start (v,p);
3883 s = g (p, va_arg (v,int));
3884 va_end (v);
3885 return s;
3886 }
3887
3888 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3889 function prototypes and stuff, but not '\xHH' hex character constants.
3890 These don't provoke an error unfortunately, instead are silently treated
3891 as 'x'. The following induces an error, until -std is added to get
3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3893 array size at least. It's necessary to write '\x00'==0 to get something
3894 that's true only with -std. */
3895 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896
3897 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3898 inside strings and character constants. */
3899 #define FOO(x) 'x'
3900 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901
3902 int test (int i, double x);
3903 struct s1 {int (*f) (int a);};
3904 struct s2 {int (*f) (double a);};
3905 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3906 int argc;
3907 char **argv;
3908 int
3909 main ()
3910 {
3911 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918 do
3919 CC="$ac_save_CC $ac_arg"
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_cv_prog_cc_c89=$ac_arg
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext
3924 test "x$ac_cv_prog_cc_c89" != "xno" && break
3925 done
3926 rm -f conftest.$ac_ext
3927 CC=$ac_save_CC
3928
3929 fi
3930 # AC_CACHE_VAL
3931 case "x$ac_cv_prog_cc_c89" in
3932 x)
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3934 $as_echo "none needed" >&6; } ;;
3935 xno)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3937 $as_echo "unsupported" >&6; } ;;
3938 *)
3939 CC="$CC $ac_cv_prog_cc_c89"
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3942 esac
3943 if test "x$ac_cv_prog_cc_c89" != xno; then :
3944
3945 fi
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3959 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3960 if ${am_cv_prog_cc_c_o+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965
3966 int
3967 main ()
3968 {
3969
3970 ;
3971 return 0;
3972 }
3973 _ACEOF
3974 # Make sure it works both with $CC and with simple cc.
3975 # Following AC_PROG_CC_C_O, we do the test twice because some
3976 # compilers refuse to overwrite an existing .o file with -o,
3977 # though they will create one.
3978 am_cv_prog_cc_c_o=yes
3979 for am_i in 1 2; do
3980 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3981 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } \
3985 && test -f conftest2.$ac_objext; then
3986 : OK
3987 else
3988 am_cv_prog_cc_c_o=no
3989 break
3990 fi
3991 done
3992 rm -f core conftest*
3993 unset am_i
3994 fi
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3996 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3997 if test "$am_cv_prog_cc_c_o" != yes; then
3998 # Losing compiler, so override with the script.
3999 # FIXME: It is wrong to rewrite CC.
4000 # But if we don't then we get into trouble of one sort or another.
4001 # A longer-term fix would be to have automake use am__CC in this case,
4002 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4003 CC="$am_aux_dir/compile $CC"
4004 fi
4005 ac_ext=c
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010
4011 DEPDIR="${am__leading_dot}deps"
4012
4013 ac_config_commands="$ac_config_commands depfiles"
4014
4015
4016 am_make=${MAKE-make}
4017 cat > confinc << 'END'
4018 am__doit:
4019 @echo this is the am__doit target
4020 .PHONY: am__doit
4021 END
4022 # If we don't find an include directive, just comment out the code.
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4025 am__include="#"
4026 am__quote=
4027 _am_result=none
4028 # First try GNU make style include.
4029 echo "include confinc" > confmf
4030 # Ignore all kinds of additional output from 'make'.
4031 case `$am_make -s -f confmf 2> /dev/null` in #(
4032 *the\ am__doit\ target*)
4033 am__include=include
4034 am__quote=
4035 _am_result=GNU
4036 ;;
4037 esac
4038 # Now try BSD make style include.
4039 if test "$am__include" = "#"; then
4040 echo '.include "confinc"' > confmf
4041 case `$am_make -s -f confmf 2> /dev/null` in #(
4042 *the\ am__doit\ target*)
4043 am__include=.include
4044 am__quote="\""
4045 _am_result=BSD
4046 ;;
4047 esac
4048 fi
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4052 $as_echo "$_am_result" >&6; }
4053 rm -f confinc confmf
4054
4055 # Check whether --enable-dependency-tracking was given.
4056 if test "${enable_dependency_tracking+set}" = set; then :
4057 enableval=$enable_dependency_tracking;
4058 fi
4059
4060 if test "x$enable_dependency_tracking" != xno; then
4061 am_depcomp="$ac_aux_dir/depcomp"
4062 AMDEPBACKSLASH='\'
4063 am__nodep='_no'
4064 fi
4065 if test "x$enable_dependency_tracking" != xno; then
4066 AMDEP_TRUE=
4067 AMDEP_FALSE='#'
4068 else
4069 AMDEP_TRUE='#'
4070 AMDEP_FALSE=
4071 fi
4072
4073
4074
4075 depcc="$CC" am_compiler_list=
4076
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4078 $as_echo_n "checking dependency style of $depcc... " >&6; }
4079 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083 # We make a subdir and do the tests there. Otherwise we can end up
4084 # making bogus files that we don't know about and never remove. For
4085 # instance it was reported that on HP-UX the gcc test will end up
4086 # making a dummy file named 'D' -- because '-MD' means "put the output
4087 # in D".
4088 rm -rf conftest.dir
4089 mkdir conftest.dir
4090 # Copy depcomp to subdir because otherwise we won't find it if we're
4091 # using a relative directory.
4092 cp "$am_depcomp" conftest.dir
4093 cd conftest.dir
4094 # We will build objects and dependencies in a subdirectory because
4095 # it helps to detect inapplicable dependency modes. For instance
4096 # both Tru64's cc and ICC support -MD to output dependencies as a
4097 # side effect of compilation, but ICC will put the dependencies in
4098 # the current directory while Tru64 will put them in the object
4099 # directory.
4100 mkdir sub
4101
4102 am_cv_CC_dependencies_compiler_type=none
4103 if test "$am_compiler_list" = ""; then
4104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 fi
4106 am__universal=false
4107 case " $depcc " in #(
4108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4109 esac
4110
4111 for depmode in $am_compiler_list; do
4112 # Setup a source with many dependencies, because some compilers
4113 # like to wrap large dependency lists on column 80 (with \), and
4114 # we should not choose a depcomp mode which is confused by this.
4115 #
4116 # We need to recreate these files for each test, as the compiler may
4117 # overwrite some of them when testing with obscure command lines.
4118 # This happens at least with the AIX C compiler.
4119 : > sub/conftest.c
4120 for i in 1 2 3 4 5 6; do
4121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4122 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4123 # Solaris 10 /bin/sh.
4124 echo '/* dummy */' > sub/conftst$i.h
4125 done
4126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
4128 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4129 # mode. It turns out that the SunPro C++ compiler does not properly
4130 # handle '-M -o', and we need to detect this. Also, some Intel
4131 # versions had trouble with output in subdirs.
4132 am__obj=sub/conftest.${OBJEXT-o}
4133 am__minus_obj="-o $am__obj"
4134 case $depmode in
4135 gcc)
4136 # This depmode causes a compiler race in universal mode.
4137 test "$am__universal" = false || continue
4138 ;;
4139 nosideeffect)
4140 # After this tag, mechanisms are not by side-effect, so they'll
4141 # only be used when explicitly requested.
4142 if test "x$enable_dependency_tracking" = xyes; then
4143 continue
4144 else
4145 break
4146 fi
4147 ;;
4148 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4149 # This compiler won't grok '-c -o', but also, the minuso test has
4150 # not run yet. These depmodes are late enough in the game, and
4151 # so weak that their functioning should not be impacted.
4152 am__obj=conftest.${OBJEXT-o}
4153 am__minus_obj=
4154 ;;
4155 none) break ;;
4156 esac
4157 if depmode=$depmode \
4158 source=sub/conftest.c object=$am__obj \
4159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4161 >/dev/null 2>conftest.err &&
4162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4166 # icc doesn't choke on unknown options, it will just issue warnings
4167 # or remarks (even with -Werror). So we grep stderr for any message
4168 # that says an option was ignored or not supported.
4169 # When given -MP, icc 7.0 and 7.1 complain thusly:
4170 # icc: Command line warning: ignoring option '-M'; no argument required
4171 # The diagnosis changed in icc 8.0:
4172 # icc: Command line remark: option '-MP' not supported
4173 if (grep 'ignoring option' conftest.err ||
4174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4175 am_cv_CC_dependencies_compiler_type=$depmode
4176 break
4177 fi
4178 fi
4179 done
4180
4181 cd ..
4182 rm -rf conftest.dir
4183 else
4184 am_cv_CC_dependencies_compiler_type=none
4185 fi
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4189 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4190 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4191
4192 if
4193 test "x$enable_dependency_tracking" != xno \
4194 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4195 am__fastdepCC_TRUE=
4196 am__fastdepCC_FALSE='#'
4197 else
4198 am__fastdepCC_TRUE='#'
4199 am__fastdepCC_FALSE=
4200 fi
4201
4202
4203 ac_ext=cpp
4204 ac_cpp='$CXXCPP $CPPFLAGS'
4205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4208 if test -z "$CXX"; then
4209 if test -n "$CCC"; then
4210 CXX=$CCC
4211 else
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4214 do
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CXX+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$CXX"; then
4223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 CXX=$ac_cv_prog_CXX
4243 if test -n "$CXX"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4245 $as_echo "$CXX" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252 test -n "$CXX" && break
4253 done
4254 fi
4255 if test -z "$CXX"; then
4256 ac_ct_CXX=$CXX
4257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4258 do
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$ac_ct_CXX"; then
4267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CXX="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280 done
4281 done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4287 if test -n "$ac_ct_CXX"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4289 $as_echo "$ac_ct_CXX" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296 test -n "$ac_ct_CXX" && break
4297 done
4298
4299 if test "x$ac_ct_CXX" = x; then
4300 CXX="g++"
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 CXX=$ac_ct_CXX
4309 fi
4310 fi
4311
4312 fi
4313 fi
4314 # Provide some information about the compiler.
4315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4316 set X $ac_compile
4317 ac_compiler=$2
4318 for ac_option in --version -v -V -qversion; do
4319 { { ac_try="$ac_compiler $ac_option >&5"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4327 ac_status=$?
4328 if test -s conftest.err; then
4329 sed '10a\
4330 ... rest of stderr output deleted ...
4331 10q' conftest.err >conftest.er1
4332 cat conftest.er1 >&5
4333 fi
4334 rm -f conftest.er1 conftest.err
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }
4337 done
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4340 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4341 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346
4347 int
4348 main ()
4349 {
4350 #ifndef __GNUC__
4351 choke me
4352 #endif
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_cxx_try_compile "$LINENO"; then :
4359 ac_compiler_gnu=yes
4360 else
4361 ac_compiler_gnu=no
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4365
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4368 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4369 if test $ac_compiler_gnu = yes; then
4370 GXX=yes
4371 else
4372 GXX=
4373 fi
4374 ac_test_CXXFLAGS=${CXXFLAGS+set}
4375 ac_save_CXXFLAGS=$CXXFLAGS
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4377 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4378 if ${ac_cv_prog_cxx_g+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4382 ac_cxx_werror_flag=yes
4383 ac_cv_prog_cxx_g=no
4384 CXXFLAGS="-g"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387
4388 int
4389 main ()
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_cxx_try_compile "$LINENO"; then :
4397 ac_cv_prog_cxx_g=yes
4398 else
4399 CXXFLAGS=""
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402
4403 int
4404 main ()
4405 {
4406
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 if ac_fn_cxx_try_compile "$LINENO"; then :
4412
4413 else
4414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4415 CXXFLAGS="-g"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main ()
4421 {
4422
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_cxx_try_compile "$LINENO"; then :
4428 ac_cv_prog_cxx_g=yes
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4438 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4439 if test "$ac_test_CXXFLAGS" = set; then
4440 CXXFLAGS=$ac_save_CXXFLAGS
4441 elif test $ac_cv_prog_cxx_g = yes; then
4442 if test "$GXX" = yes; then
4443 CXXFLAGS="-g -O2"
4444 else
4445 CXXFLAGS="-g"
4446 fi
4447 else
4448 if test "$GXX" = yes; then
4449 CXXFLAGS="-O2"
4450 else
4451 CXXFLAGS=
4452 fi
4453 fi
4454 ac_ext=c
4455 ac_cpp='$CPP $CPPFLAGS'
4456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459
4460 depcc="$CXX" am_compiler_list=
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4463 $as_echo_n "checking dependency style of $depcc... " >&6; }
4464 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4468 # We make a subdir and do the tests there. Otherwise we can end up
4469 # making bogus files that we don't know about and never remove. For
4470 # instance it was reported that on HP-UX the gcc test will end up
4471 # making a dummy file named 'D' -- because '-MD' means "put the output
4472 # in D".
4473 rm -rf conftest.dir
4474 mkdir conftest.dir
4475 # Copy depcomp to subdir because otherwise we won't find it if we're
4476 # using a relative directory.
4477 cp "$am_depcomp" conftest.dir
4478 cd conftest.dir
4479 # We will build objects and dependencies in a subdirectory because
4480 # it helps to detect inapplicable dependency modes. For instance
4481 # both Tru64's cc and ICC support -MD to output dependencies as a
4482 # side effect of compilation, but ICC will put the dependencies in
4483 # the current directory while Tru64 will put them in the object
4484 # directory.
4485 mkdir sub
4486
4487 am_cv_CXX_dependencies_compiler_type=none
4488 if test "$am_compiler_list" = ""; then
4489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490 fi
4491 am__universal=false
4492 case " $depcc " in #(
4493 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4494 esac
4495
4496 for depmode in $am_compiler_list; do
4497 # Setup a source with many dependencies, because some compilers
4498 # like to wrap large dependency lists on column 80 (with \), and
4499 # we should not choose a depcomp mode which is confused by this.
4500 #
4501 # We need to recreate these files for each test, as the compiler may
4502 # overwrite some of them when testing with obscure command lines.
4503 # This happens at least with the AIX C compiler.
4504 : > sub/conftest.c
4505 for i in 1 2 3 4 5 6; do
4506 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4507 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4508 # Solaris 10 /bin/sh.
4509 echo '/* dummy */' > sub/conftst$i.h
4510 done
4511 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4512
4513 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4514 # mode. It turns out that the SunPro C++ compiler does not properly
4515 # handle '-M -o', and we need to detect this. Also, some Intel
4516 # versions had trouble with output in subdirs.
4517 am__obj=sub/conftest.${OBJEXT-o}
4518 am__minus_obj="-o $am__obj"
4519 case $depmode in
4520 gcc)
4521 # This depmode causes a compiler race in universal mode.
4522 test "$am__universal" = false || continue
4523 ;;
4524 nosideeffect)
4525 # After this tag, mechanisms are not by side-effect, so they'll
4526 # only be used when explicitly requested.
4527 if test "x$enable_dependency_tracking" = xyes; then
4528 continue
4529 else
4530 break
4531 fi
4532 ;;
4533 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4534 # This compiler won't grok '-c -o', but also, the minuso test has
4535 # not run yet. These depmodes are late enough in the game, and
4536 # so weak that their functioning should not be impacted.
4537 am__obj=conftest.${OBJEXT-o}
4538 am__minus_obj=
4539 ;;
4540 none) break ;;
4541 esac
4542 if depmode=$depmode \
4543 source=sub/conftest.c object=$am__obj \
4544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4545 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4546 >/dev/null 2>conftest.err &&
4547 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4549 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4550 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4551 # icc doesn't choke on unknown options, it will just issue warnings
4552 # or remarks (even with -Werror). So we grep stderr for any message
4553 # that says an option was ignored or not supported.
4554 # When given -MP, icc 7.0 and 7.1 complain thusly:
4555 # icc: Command line warning: ignoring option '-M'; no argument required
4556 # The diagnosis changed in icc 8.0:
4557 # icc: Command line remark: option '-MP' not supported
4558 if (grep 'ignoring option' conftest.err ||
4559 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4560 am_cv_CXX_dependencies_compiler_type=$depmode
4561 break
4562 fi
4563 fi
4564 done
4565
4566 cd ..
4567 rm -rf conftest.dir
4568 else
4569 am_cv_CXX_dependencies_compiler_type=none
4570 fi
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4574 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4575 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4576
4577 if
4578 test "x$enable_dependency_tracking" != xno \
4579 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4580 am__fastdepCXX_TRUE=
4581 am__fastdepCXX_FALSE='#'
4582 else
4583 am__fastdepCXX_TRUE='#'
4584 am__fastdepCXX_FALSE=
4585 fi
4586
4587
4588 ac_ext=mm
4589 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4590 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4593 if test -n "$ac_tool_prefix"; then
4594 for ac_prog in g++ objc++ objcxx c++ CXX
4595 do
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_OBJCXX+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$OBJCXX"; then
4604 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 OBJCXX=$ac_cv_prog_OBJCXX
4624 if test -n "$OBJCXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4626 $as_echo "$OBJCXX" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 test -n "$OBJCXX" && break
4634 done
4635 fi
4636 if test -z "$OBJCXX"; then
4637 ac_ct_OBJCXX=$OBJCXX
4638 for ac_prog in g++ objc++ objcxx c++ CXX
4639 do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_OBJCXX"; then
4648 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4668 if test -n "$ac_ct_OBJCXX"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4670 $as_echo "$ac_ct_OBJCXX" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 test -n "$ac_ct_OBJCXX" && break
4678 done
4679
4680 if test "x$ac_ct_OBJCXX" = x; then
4681 OBJCXX="g++"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 OBJCXX=$ac_ct_OBJCXX
4690 fi
4691 fi
4692
4693 # Provide some information about the compiler.
4694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4695 set X $ac_compile
4696 ac_compiler=$2
4697 for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704 $as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4706 ac_status=$?
4707 if test -s conftest.err; then
4708 sed '10a\
4709 ... rest of stderr output deleted ...
4710 10q' conftest.err >conftest.er1
4711 cat conftest.er1 >&5
4712 fi
4713 rm -f conftest.er1 conftest.err
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4716 done
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4719 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4720 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725
4726 int
4727 main ()
4728 {
4729 #ifndef __GNUC__
4730 choke me
4731 #endif
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_objcxx_try_compile "$LINENO"; then :
4738 ac_compiler_gnu=yes
4739 else
4740 ac_compiler_gnu=no
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4744
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4747 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4748 if test $ac_compiler_gnu = yes; then
4749 GOBJCXX=yes
4750 else
4751 GOBJCXX=
4752 fi
4753 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4754 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4756 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4757 if ${ac_cv_prog_objcxx_g+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4761 ac_objcxx_werror_flag=yes
4762 ac_cv_prog_objcxx_g=no
4763 OBJCXXFLAGS="-g"
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766
4767 int
4768 main ()
4769 {
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_objcxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_objcxx_g=yes
4777 else
4778 OBJCXXFLAGS=""
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781
4782 int
4783 main ()
4784 {
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 if ac_fn_objcxx_try_compile "$LINENO"; then :
4791
4792 else
4793 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4794 OBJCXXFLAGS="-g"
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797
4798 int
4799 main ()
4800 {
4801
4802 ;
4803 return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_objcxx_try_compile "$LINENO"; then :
4807 ac_cv_prog_objcxx_g=yes
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4817 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4818 if test "$ac_test_OBJCXXFLAGS" = set; then
4819 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4820 elif test $ac_cv_prog_objcxx_g = yes; then
4821 if test "$GOBJCXX" = yes; then
4822 OBJCXXFLAGS="-g -O2"
4823 else
4824 OBJCXXFLAGS="-g"
4825 fi
4826 else
4827 if test "$GOBJCXX" = yes; then
4828 OBJCXXFLAGS="-O2"
4829 else
4830 OBJCXXFLAGS=
4831 fi
4832 fi
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4840
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4842 $as_echo_n "checking dependency style of $depcc... " >&6; }
4843 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
4850 # making a dummy file named 'D' -- because '-MD' means "put the output
4851 # in D".
4852 rm -rf conftest.dir
4853 mkdir conftest.dir
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4857 cd conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4863 # directory.
4864 mkdir sub
4865
4866 am_cv_OBJCXX_dependencies_compiler_type=none
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 fi
4870 am__universal=false
4871
4872
4873 for depmode in $am_compiler_list; do
4874 # Setup a source with many dependencies, because some compilers
4875 # like to wrap large dependency lists on column 80 (with \), and
4876 # we should not choose a depcomp mode which is confused by this.
4877 #
4878 # We need to recreate these files for each test, as the compiler may
4879 # overwrite some of them when testing with obscure command lines.
4880 # This happens at least with the AIX C compiler.
4881 : > sub/conftest.c
4882 for i in 1 2 3 4 5 6; do
4883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4885 # Solaris 10 /bin/sh.
4886 echo '/* dummy */' > sub/conftst$i.h
4887 done
4888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4891 # mode. It turns out that the SunPro C++ compiler does not properly
4892 # handle '-M -o', and we need to detect this. Also, some Intel
4893 # versions had trouble with output in subdirs.
4894 am__obj=sub/conftest.${OBJEXT-o}
4895 am__minus_obj="-o $am__obj"
4896 case $depmode in
4897 gcc)
4898 # This depmode causes a compiler race in universal mode.
4899 test "$am__universal" = false || continue
4900 ;;
4901 nosideeffect)
4902 # After this tag, mechanisms are not by side-effect, so they'll
4903 # only be used when explicitly requested.
4904 if test "x$enable_dependency_tracking" = xyes; then
4905 continue
4906 else
4907 break
4908 fi
4909 ;;
4910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4911 # This compiler won't grok '-c -o', but also, the minuso test has
4912 # not run yet. These depmodes are late enough in the game, and
4913 # so weak that their functioning should not be impacted.
4914 am__obj=conftest.${OBJEXT-o}
4915 am__minus_obj=
4916 ;;
4917 none) break ;;
4918 esac
4919 if depmode=$depmode \
4920 source=sub/conftest.c object=$am__obj \
4921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4923 >/dev/null 2>conftest.err &&
4924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4928 # icc doesn't choke on unknown options, it will just issue warnings
4929 # or remarks (even with -Werror). So we grep stderr for any message
4930 # that says an option was ignored or not supported.
4931 # When given -MP, icc 7.0 and 7.1 complain thusly:
4932 # icc: Command line warning: ignoring option '-M'; no argument required
4933 # The diagnosis changed in icc 8.0:
4934 # icc: Command line remark: option '-MP' not supported
4935 if (grep 'ignoring option' conftest.err ||
4936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4937 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4938 break
4939 fi
4940 fi
4941 done
4942
4943 cd ..
4944 rm -rf conftest.dir
4945 else
4946 am_cv_OBJCXX_dependencies_compiler_type=none
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4951 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4952 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4953
4954 if
4955 test "x$enable_dependency_tracking" != xno \
4956 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4957 am__fastdepOBJCXX_TRUE=
4958 am__fastdepOBJCXX_FALSE='#'
4959 else
4960 am__fastdepOBJCXX_TRUE='#'
4961 am__fastdepOBJCXX_FALSE=
4962 fi
4963
4964
4965
4966
4967 if test -n "$ac_tool_prefix"; then
4968 for ac_prog in ar lib "link -lib"
4969 do
4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_AR+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$AR"; then
4978 ac_cv_prog_AR="$AR" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 AR=$ac_cv_prog_AR
4998 if test -n "$AR"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5000 $as_echo "$AR" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006
5007 test -n "$AR" && break
5008 done
5009 fi
5010 if test -z "$AR"; then
5011 ac_ct_AR=$AR
5012 for ac_prog in ar lib "link -lib"
5013 do
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -n "$ac_ct_AR"; then
5022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_AR="$ac_prog"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5042 if test -n "$ac_ct_AR"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5044 $as_echo "$ac_ct_AR" >&6; }
5045 else
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050
5051 test -n "$ac_ct_AR" && break
5052 done
5053
5054 if test "x$ac_ct_AR" = x; then
5055 AR="false"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058 yes:)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061 ac_tool_warned=yes ;;
5062 esac
5063 AR=$ac_ct_AR
5064 fi
5065 fi
5066
5067 : ${AR=ar}
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5070 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5071 if ${am_cv_ar_interface+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_ext=c
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079
5080 am_cv_ar_interface=ar
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int some_variable = 0;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5088 (eval $am_ar_try) 2>&5
5089 ac_status=$?
5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091 test $ac_status = 0; }
5092 if test "$ac_status" -eq 0; then
5093 am_cv_ar_interface=ar
5094 else
5095 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5097 (eval $am_ar_try) 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }
5101 if test "$ac_status" -eq 0; then
5102 am_cv_ar_interface=lib
5103 else
5104 am_cv_ar_interface=unknown
5105 fi
5106 fi
5107 rm -f conftest.lib libconftest.a
5108
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 ac_ext=c
5112 ac_cpp='$CPP $CPPFLAGS'
5113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5119 $as_echo "$am_cv_ar_interface" >&6; }
5120
5121 case $am_cv_ar_interface in
5122 ar)
5123 ;;
5124 lib)
5125 # Microsoft lib, so override with the ar-lib wrapper script.
5126 # FIXME: It is wrong to rewrite AR.
5127 # But if we don't then we get into trouble of one sort or another.
5128 # A longer-term fix would be to have automake use am__AR in this case,
5129 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5130 # similar.
5131 AR="$am_aux_dir/ar-lib $AR"
5132 ;;
5133 unknown)
5134 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5135 ;;
5136 esac
5137
5138
5139
5140 case `pwd` in
5141 *\ * | *\ *)
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5144 esac
5145
5146
5147
5148 macro_version='2.4.2'
5149 macro_revision='1.3337'
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 ltmain="$ac_aux_dir/ltmain.sh"
5164
5165 # Make sure we can run config.sub.
5166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5170 $as_echo_n "checking build system type... " >&6; }
5171 if ${ac_cv_build+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_build_alias=$build_alias
5175 test "x$ac_build_alias" = x &&
5176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5177 test "x$ac_build_alias" = x &&
5178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5184 $as_echo "$ac_cv_build" >&6; }
5185 case $ac_cv_build in
5186 *-*-*) ;;
5187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5188 esac
5189 build=$ac_cv_build
5190 ac_save_IFS=$IFS; IFS='-'
5191 set x $ac_cv_build
5192 shift
5193 build_cpu=$1
5194 build_vendor=$2
5195 shift; shift
5196 # Remember, the first character of IFS is used to create $*,
5197 # except with old shells:
5198 build_os=$*
5199 IFS=$ac_save_IFS
5200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5204 $as_echo_n "checking host system type... " >&6; }
5205 if ${ac_cv_host+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test "x$host_alias" = x; then
5209 ac_cv_host=$ac_cv_build
5210 else
5211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213 fi
5214
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5217 $as_echo "$ac_cv_host" >&6; }
5218 case $ac_cv_host in
5219 *-*-*) ;;
5220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5221 esac
5222 host=$ac_cv_host
5223 ac_save_IFS=$IFS; IFS='-'
5224 set x $ac_cv_host
5225 shift
5226 host_cpu=$1
5227 host_vendor=$2
5228 shift; shift
5229 # Remember, the first character of IFS is used to create $*,
5230 # except with old shells:
5231 host_os=$*
5232 IFS=$ac_save_IFS
5233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5234
5235
5236 # Backslashify metacharacters that are still active within
5237 # double-quoted strings.
5238 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5239
5240 # Same as above, but do not quote variable references.
5241 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5242
5243 # Sed substitution to delay expansion of an escaped shell variable in a
5244 # double_quote_subst'ed string.
5245 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5246
5247 # Sed substitution to delay expansion of an escaped single quote.
5248 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5249
5250 # Sed substitution to avoid accidental globbing in evaled expressions
5251 no_glob_subst='s/\*/\\\*/g'
5252
5253 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5254 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5255 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5258 $as_echo_n "checking how to print strings... " >&6; }
5259 # Test print first, because it will be a builtin if present.
5260 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5261 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5262 ECHO='print -r --'
5263 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5264 ECHO='printf %s\n'
5265 else
5266 # Use this function as a fallback that always works.
5267 func_fallback_echo ()
5268 {
5269 eval 'cat <<_LTECHO_EOF
5270 $1
5271 _LTECHO_EOF'
5272 }
5273 ECHO='func_fallback_echo'
5274 fi
5275
5276 # func_echo_all arg...
5277 # Invoke $ECHO with all args, space-separated.
5278 func_echo_all ()
5279 {
5280 $ECHO ""
5281 }
5282
5283 case "$ECHO" in
5284 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5285 $as_echo "printf" >&6; } ;;
5286 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5287 $as_echo "print -r" >&6; } ;;
5288 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5289 $as_echo "cat" >&6; } ;;
5290 esac
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5306 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5307 if ${ac_cv_path_SED+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5311 for ac_i in 1 2 3 4 5 6 7; do
5312 ac_script="$ac_script$as_nl$ac_script"
5313 done
5314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5315 { ac_script=; unset ac_script;}
5316 if test -z "$SED"; then
5317 ac_path_SED_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_prog in sed gsed; do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5327 as_fn_executable_p "$ac_path_SED" || continue
5328 # Check for GNU ac_path_SED and select it if it is found.
5329 # Check for GNU $ac_path_SED
5330 case `"$ac_path_SED" --version 2>&1` in
5331 *GNU*)
5332 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5333 *)
5334 ac_count=0
5335 $as_echo_n 0123456789 >"conftest.in"
5336 while :
5337 do
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo '' >> "conftest.nl"
5342 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 as_fn_arith $ac_count + 1 && ac_count=$as_val
5345 if test $ac_count -gt ${ac_path_SED_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_SED="$ac_path_SED"
5348 ac_path_SED_max=$ac_count
5349 fi
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
5352 done
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354 esac
5355
5356 $ac_path_SED_found && break 3
5357 done
5358 done
5359 done
5360 IFS=$as_save_IFS
5361 if test -z "$ac_cv_path_SED"; then
5362 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5363 fi
5364 else
5365 ac_cv_path_SED=$SED
5366 fi
5367
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5370 $as_echo "$ac_cv_path_SED" >&6; }
5371 SED="$ac_cv_path_SED"
5372 rm -f conftest.sed
5373
5374 test -z "$SED" && SED=sed
5375 Xsed="$SED -e 1s/^X//"
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5388 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5389 if ${ac_cv_path_GREP+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -z "$GREP"; then
5393 ac_path_GREP_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_prog in grep ggrep; do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5403 as_fn_executable_p "$ac_path_GREP" || continue
5404 # Check for GNU ac_path_GREP and select it if it is found.
5405 # Check for GNU $ac_path_GREP
5406 case `"$ac_path_GREP" --version 2>&1` in
5407 *GNU*)
5408 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5409 *)
5410 ac_count=0
5411 $as_echo_n 0123456789 >"conftest.in"
5412 while :
5413 do
5414 cat "conftest.in" "conftest.in" >"conftest.tmp"
5415 mv "conftest.tmp" "conftest.in"
5416 cp "conftest.in" "conftest.nl"
5417 $as_echo 'GREP' >> "conftest.nl"
5418 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5420 as_fn_arith $ac_count + 1 && ac_count=$as_val
5421 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5422 # Best one so far, save it but keep looking for a better one
5423 ac_cv_path_GREP="$ac_path_GREP"
5424 ac_path_GREP_max=$ac_count
5425 fi
5426 # 10*(2^10) chars as input seems more than enough
5427 test $ac_count -gt 10 && break
5428 done
5429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 esac
5431
5432 $ac_path_GREP_found && break 3
5433 done
5434 done
5435 done
5436 IFS=$as_save_IFS
5437 if test -z "$ac_cv_path_GREP"; then
5438 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5439 fi
5440 else
5441 ac_cv_path_GREP=$GREP
5442 fi
5443
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5446 $as_echo "$ac_cv_path_GREP" >&6; }
5447 GREP="$ac_cv_path_GREP"
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5451 $as_echo_n "checking for egrep... " >&6; }
5452 if ${ac_cv_path_EGREP+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5456 then ac_cv_path_EGREP="$GREP -E"
5457 else
5458 if test -z "$EGREP"; then
5459 ac_path_EGREP_found=false
5460 # Loop through the user's path and test for each of PROGNAME-LIST
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_prog in egrep; do
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5469 as_fn_executable_p "$ac_path_EGREP" || continue
5470 # Check for GNU ac_path_EGREP and select it if it is found.
5471 # Check for GNU $ac_path_EGREP
5472 case `"$ac_path_EGREP" --version 2>&1` in
5473 *GNU*)
5474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5475 *)
5476 ac_count=0
5477 $as_echo_n 0123456789 >"conftest.in"
5478 while :
5479 do
5480 cat "conftest.in" "conftest.in" >"conftest.tmp"
5481 mv "conftest.tmp" "conftest.in"
5482 cp "conftest.in" "conftest.nl"
5483 $as_echo 'EGREP' >> "conftest.nl"
5484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5486 as_fn_arith $ac_count + 1 && ac_count=$as_val
5487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5488 # Best one so far, save it but keep looking for a better one
5489 ac_cv_path_EGREP="$ac_path_EGREP"
5490 ac_path_EGREP_max=$ac_count
5491 fi
5492 # 10*(2^10) chars as input seems more than enough
5493 test $ac_count -gt 10 && break
5494 done
5495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496 esac
5497
5498 $ac_path_EGREP_found && break 3
5499 done
5500 done
5501 done
5502 IFS=$as_save_IFS
5503 if test -z "$ac_cv_path_EGREP"; then
5504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 fi
5506 else
5507 ac_cv_path_EGREP=$EGREP
5508 fi
5509
5510 fi
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5513 $as_echo "$ac_cv_path_EGREP" >&6; }
5514 EGREP="$ac_cv_path_EGREP"
5515
5516
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5518 $as_echo_n "checking for fgrep... " >&6; }
5519 if ${ac_cv_path_FGREP+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5523 then ac_cv_path_FGREP="$GREP -F"
5524 else
5525 if test -z "$FGREP"; then
5526 ac_path_FGREP_found=false
5527 # Loop through the user's path and test for each of PROGNAME-LIST
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_prog in fgrep; do
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5536 as_fn_executable_p "$ac_path_FGREP" || continue
5537 # Check for GNU ac_path_FGREP and select it if it is found.
5538 # Check for GNU $ac_path_FGREP
5539 case `"$ac_path_FGREP" --version 2>&1` in
5540 *GNU*)
5541 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5542 *)
5543 ac_count=0
5544 $as_echo_n 0123456789 >"conftest.in"
5545 while :
5546 do
5547 cat "conftest.in" "conftest.in" >"conftest.tmp"
5548 mv "conftest.tmp" "conftest.in"
5549 cp "conftest.in" "conftest.nl"
5550 $as_echo 'FGREP' >> "conftest.nl"
5551 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5553 as_fn_arith $ac_count + 1 && ac_count=$as_val
5554 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5555 # Best one so far, save it but keep looking for a better one
5556 ac_cv_path_FGREP="$ac_path_FGREP"
5557 ac_path_FGREP_max=$ac_count
5558 fi
5559 # 10*(2^10) chars as input seems more than enough
5560 test $ac_count -gt 10 && break
5561 done
5562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5563 esac
5564
5565 $ac_path_FGREP_found && break 3
5566 done
5567 done
5568 done
5569 IFS=$as_save_IFS
5570 if test -z "$ac_cv_path_FGREP"; then
5571 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5572 fi
5573 else
5574 ac_cv_path_FGREP=$FGREP
5575 fi
5576
5577 fi
5578 fi
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5580 $as_echo "$ac_cv_path_FGREP" >&6; }
5581 FGREP="$ac_cv_path_FGREP"
5582
5583
5584 test -z "$GREP" && GREP=grep
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 # Check whether --with-gnu-ld was given.
5605 if test "${with_gnu_ld+set}" = set; then :
5606 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5607 else
5608 with_gnu_ld=no
5609 fi
5610
5611 ac_prog=ld
5612 if test "$GCC" = yes; then
5613 # Check if gcc -print-prog-name=ld gives a path.
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5615 $as_echo_n "checking for ld used by $CC... " >&6; }
5616 case $host in
5617 *-*-mingw*)
5618 # gcc leaves a trailing carriage return which upsets mingw
5619 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5620 *)
5621 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5622 esac
5623 case $ac_prog in
5624 # Accept absolute paths.
5625 [\\/]* | ?:[\\/]*)
5626 re_direlt='/[^/][^/]*/\.\./'
5627 # Canonicalize the pathname of ld
5628 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5629 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5630 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5631 done
5632 test -z "$LD" && LD="$ac_prog"
5633 ;;
5634 "")
5635 # If it fails, then pretend we aren't using GCC.
5636 ac_prog=ld
5637 ;;
5638 *)
5639 # If it is relative, then search for the first ld in PATH.
5640 with_gnu_ld=unknown
5641 ;;
5642 esac
5643 elif test "$with_gnu_ld" = yes; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5645 $as_echo_n "checking for GNU ld... " >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5648 $as_echo_n "checking for non-GNU ld... " >&6; }
5649 fi
5650 if ${lt_cv_path_LD+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -z "$LD"; then
5654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5655 for ac_dir in $PATH; do
5656 IFS="$lt_save_ifs"
5657 test -z "$ac_dir" && ac_dir=.
5658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5659 lt_cv_path_LD="$ac_dir/$ac_prog"
5660 # Check to see if the program is GNU ld. I'd rather use --version,
5661 # but apparently some variants of GNU ld only accept -v.
5662 # Break only if it was the GNU/non-GNU ld that we prefer.
5663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5664 *GNU* | *'with BFD'*)
5665 test "$with_gnu_ld" != no && break
5666 ;;
5667 *)
5668 test "$with_gnu_ld" != yes && break
5669 ;;
5670 esac
5671 fi
5672 done
5673 IFS="$lt_save_ifs"
5674 else
5675 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5676 fi
5677 fi
5678
5679 LD="$lt_cv_path_LD"
5680 if test -n "$LD"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5682 $as_echo "$LD" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5690 if ${lt_cv_prog_gnu_ld+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5694 case `$LD -v 2>&1 </dev/null` in
5695 *GNU* | *'with BFD'*)
5696 lt_cv_prog_gnu_ld=yes
5697 ;;
5698 *)
5699 lt_cv_prog_gnu_ld=no
5700 ;;
5701 esac
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5704 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5705 with_gnu_ld=$lt_cv_prog_gnu_ld
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5716 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5717 if ${lt_cv_path_NM+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$NM"; then
5721 # Let the user override the test.
5722 lt_cv_path_NM="$NM"
5723 else
5724 lt_nm_to_check="${ac_tool_prefix}nm"
5725 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5726 lt_nm_to_check="$lt_nm_to_check nm"
5727 fi
5728 for lt_tmp_nm in $lt_nm_to_check; do
5729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5731 IFS="$lt_save_ifs"
5732 test -z "$ac_dir" && ac_dir=.
5733 tmp_nm="$ac_dir/$lt_tmp_nm"
5734 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5735 # Check to see if the nm accepts a BSD-compat flag.
5736 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5737 # nm: unknown option "B" ignored
5738 # Tru64's nm complains that /dev/null is an invalid object file
5739 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5740 */dev/null* | *'Invalid file or object type'*)
5741 lt_cv_path_NM="$tmp_nm -B"
5742 break
5743 ;;
5744 *)
5745 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5746 */dev/null*)
5747 lt_cv_path_NM="$tmp_nm -p"
5748 break
5749 ;;
5750 *)
5751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5752 continue # so that we can try to find one that supports BSD flags
5753 ;;
5754 esac
5755 ;;
5756 esac
5757 fi
5758 done
5759 IFS="$lt_save_ifs"
5760 done
5761 : ${lt_cv_path_NM=no}
5762 fi
5763 fi
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5765 $as_echo "$lt_cv_path_NM" >&6; }
5766 if test "$lt_cv_path_NM" != "no"; then
5767 NM="$lt_cv_path_NM"
5768 else
5769 # Didn't find any BSD compatible name lister, look for dumpbin.
5770 if test -n "$DUMPBIN"; then :
5771 # Let the user override the test.
5772 else
5773 if test -n "$ac_tool_prefix"; then
5774 for ac_prog in dumpbin "link -dump"
5775 do
5776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_DUMPBIN+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$DUMPBIN"; then
5784 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 DUMPBIN=$ac_cv_prog_DUMPBIN
5804 if test -n "$DUMPBIN"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5806 $as_echo "$DUMPBIN" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813 test -n "$DUMPBIN" && break
5814 done
5815 fi
5816 if test -z "$DUMPBIN"; then
5817 ac_ct_DUMPBIN=$DUMPBIN
5818 for ac_prog in dumpbin "link -dump"
5819 do
5820 # Extract the first word of "$ac_prog", so it can be a program name with args.
5821 set dummy $ac_prog; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test -n "$ac_ct_DUMPBIN"; then
5828 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845 fi
5846 fi
5847 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5848 if test -n "$ac_ct_DUMPBIN"; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5850 $as_echo "$ac_ct_DUMPBIN" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857 test -n "$ac_ct_DUMPBIN" && break
5858 done
5859
5860 if test "x$ac_ct_DUMPBIN" = x; then
5861 DUMPBIN=":"
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864 yes:)
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867 ac_tool_warned=yes ;;
5868 esac
5869 DUMPBIN=$ac_ct_DUMPBIN
5870 fi
5871 fi
5872
5873 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5874 *COFF*)
5875 DUMPBIN="$DUMPBIN -symbols"
5876 ;;
5877 *)
5878 DUMPBIN=:
5879 ;;
5880 esac
5881 fi
5882
5883 if test "$DUMPBIN" != ":"; then
5884 NM="$DUMPBIN"
5885 fi
5886 fi
5887 test -z "$NM" && NM=nm
5888
5889
5890
5891
5892
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5895 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5896 if ${lt_cv_nm_interface+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 lt_cv_nm_interface="BSD nm"
5900 echo "int some_variable = 0;" > conftest.$ac_ext
5901 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5902 (eval "$ac_compile" 2>conftest.err)
5903 cat conftest.err >&5
5904 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5905 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5906 cat conftest.err >&5
5907 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5908 cat conftest.out >&5
5909 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5910 lt_cv_nm_interface="MS dumpbin"
5911 fi
5912 rm -rf conftest*
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5915 $as_echo "$lt_cv_nm_interface" >&6; }
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5918 $as_echo_n "checking whether ln -s works... " >&6; }
5919 LN_S=$as_ln_s
5920 if test "$LN_S" = "ln -s"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5922 $as_echo "yes" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5925 $as_echo "no, using $LN_S" >&6; }
5926 fi
5927
5928 # find the maximum length of command line arguments
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5930 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5931 if ${lt_cv_sys_max_cmd_len+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 i=0
5935 teststring="ABCD"
5936
5937 case $build_os in
5938 msdosdjgpp*)
5939 # On DJGPP, this test can blow up pretty badly due to problems in libc
5940 # (any single argument exceeding 2000 bytes causes a buffer overrun
5941 # during glob expansion). Even if it were fixed, the result of this
5942 # check would be larger than it should be.
5943 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5944 ;;
5945
5946 gnu*)
5947 # Under GNU Hurd, this test is not required because there is
5948 # no limit to the length of command line arguments.
5949 # Libtool will interpret -1 as no limit whatsoever
5950 lt_cv_sys_max_cmd_len=-1;
5951 ;;
5952
5953 cygwin* | mingw* | cegcc*)
5954 # On Win9x/ME, this test blows up -- it succeeds, but takes
5955 # about 5 minutes as the teststring grows exponentially.
5956 # Worse, since 9x/ME are not pre-emptively multitasking,
5957 # you end up with a "frozen" computer, even though with patience
5958 # the test eventually succeeds (with a max line length of 256k).
5959 # Instead, let's just punt: use the minimum linelength reported by
5960 # all of the supported platforms: 8192 (on NT/2K/XP).
5961 lt_cv_sys_max_cmd_len=8192;
5962 ;;
5963
5964 mint*)
5965 # On MiNT this can take a long time and run out of memory.
5966 lt_cv_sys_max_cmd_len=8192;
5967 ;;
5968
5969 amigaos*)
5970 # On AmigaOS with pdksh, this test takes hours, literally.
5971 # So we just punt and use a minimum line length of 8192.
5972 lt_cv_sys_max_cmd_len=8192;
5973 ;;
5974
5975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5976 # This has been around since 386BSD, at least. Likely further.
5977 if test -x /sbin/sysctl; then
5978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5979 elif test -x /usr/sbin/sysctl; then
5980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5981 else
5982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5983 fi
5984 # And add a safety zone
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5987 ;;
5988
5989 interix*)
5990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5991 lt_cv_sys_max_cmd_len=196608
5992 ;;
5993
5994 os2*)
5995 # The test takes a long time on OS/2.
5996 lt_cv_sys_max_cmd_len=8192
5997 ;;
5998
5999 osf*)
6000 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6001 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6002 # nice to cause kernel panics so lets avoid the loop below.
6003 # First set a reasonable default.
6004 lt_cv_sys_max_cmd_len=16384
6005 #
6006 if test -x /sbin/sysconfig; then
6007 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6008 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6009 esac
6010 fi
6011 ;;
6012 sco3.2v5*)
6013 lt_cv_sys_max_cmd_len=102400
6014 ;;
6015 sysv5* | sco5v6* | sysv4.2uw2*)
6016 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6017 if test -n "$kargmax"; then
6018 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6019 else
6020 lt_cv_sys_max_cmd_len=32768
6021 fi
6022 ;;
6023 *)
6024 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6025 if test -n "$lt_cv_sys_max_cmd_len"; then
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6028 else
6029 # Make teststring a little bigger before we do anything with it.
6030 # a 1K string should be a reasonable start.
6031 for i in 1 2 3 4 5 6 7 8 ; do
6032 teststring=$teststring$teststring
6033 done
6034 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6035 # If test is not a shell built-in, we'll probably end up computing a
6036 # maximum length that is only half of the actual maximum length, but
6037 # we can't tell.
6038 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6039 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6040 test $i != 17 # 1/2 MB should be enough
6041 do
6042 i=`expr $i + 1`
6043 teststring=$teststring$teststring
6044 done
6045 # Only check the string length outside the loop.
6046 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6047 teststring=
6048 # Add a significant safety factor because C++ compilers can tack on
6049 # massive amounts of additional arguments before passing them to the
6050 # linker. It appears as though 1/2 is a usable value.
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6052 fi
6053 ;;
6054 esac
6055
6056 fi
6057
6058 if test -n $lt_cv_sys_max_cmd_len ; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6060 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6063 $as_echo "none" >&6; }
6064 fi
6065 max_cmd_len=$lt_cv_sys_max_cmd_len
6066
6067
6068
6069
6070
6071
6072 : ${CP="cp -f"}
6073 : ${MV="mv -f"}
6074 : ${RM="rm -f"}
6075
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6077 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6078 # Try some XSI features
6079 xsi_shell=no
6080 ( _lt_dummy="a/b/c"
6081 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6082 = c,a/b,b/c, \
6083 && eval 'test $(( 1 + 1 )) -eq 2 \
6084 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6085 && xsi_shell=yes
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6087 $as_echo "$xsi_shell" >&6; }
6088
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6091 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6092 lt_shell_append=no
6093 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6094 >/dev/null 2>&1 \
6095 && lt_shell_append=yes
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6097 $as_echo "$lt_shell_append" >&6; }
6098
6099
6100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6101 lt_unset=unset
6102 else
6103 lt_unset=false
6104 fi
6105
6106
6107
6108
6109
6110 # test EBCDIC or ASCII
6111 case `echo X|tr X '\101'` in
6112 A) # ASCII based system
6113 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6114 lt_SP2NL='tr \040 \012'
6115 lt_NL2SP='tr \015\012 \040\040'
6116 ;;
6117 *) # EBCDIC based system
6118 lt_SP2NL='tr \100 \n'
6119 lt_NL2SP='tr \r\n \100\100'
6120 ;;
6121 esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6132 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6133 if ${lt_cv_to_host_file_cmd+:} false; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 case $host in
6137 *-*-mingw* )
6138 case $build in
6139 *-*-mingw* ) # actually msys
6140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6141 ;;
6142 *-*-cygwin* )
6143 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6144 ;;
6145 * ) # otherwise, assume *nix
6146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6147 ;;
6148 esac
6149 ;;
6150 *-*-cygwin* )
6151 case $build in
6152 *-*-mingw* ) # actually msys
6153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6154 ;;
6155 *-*-cygwin* )
6156 lt_cv_to_host_file_cmd=func_convert_file_noop
6157 ;;
6158 * ) # otherwise, assume *nix
6159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6160 ;;
6161 esac
6162 ;;
6163 * ) # unhandled hosts (and "normal" native builds)
6164 lt_cv_to_host_file_cmd=func_convert_file_noop
6165 ;;
6166 esac
6167
6168 fi
6169
6170 to_host_file_cmd=$lt_cv_to_host_file_cmd
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6172 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6173
6174
6175
6176
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6179 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6180 if ${lt_cv_to_tool_file_cmd+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 #assume ordinary cross tools, or native build.
6184 lt_cv_to_tool_file_cmd=func_convert_file_noop
6185 case $host in
6186 *-*-mingw* )
6187 case $build in
6188 *-*-mingw* ) # actually msys
6189 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6190 ;;
6191 esac
6192 ;;
6193 esac
6194
6195 fi
6196
6197 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6199 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6200
6201
6202
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6206 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6207 if ${lt_cv_ld_reload_flag+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 lt_cv_ld_reload_flag='-r'
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6213 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6214 reload_flag=$lt_cv_ld_reload_flag
6215 case $reload_flag in
6216 "" | " "*) ;;
6217 *) reload_flag=" $reload_flag" ;;
6218 esac
6219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6220 case $host_os in
6221 cygwin* | mingw* | pw32* | cegcc*)
6222 if test "$GCC" != yes; then
6223 reload_cmds=false
6224 fi
6225 ;;
6226 darwin*)
6227 if test "$GCC" = yes; then
6228 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 else
6230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231 fi
6232 ;;
6233 esac
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_prog_OBJDUMP+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$OBJDUMP"; then
6252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 OBJDUMP=$ac_cv_prog_OBJDUMP
6272 if test -n "$OBJDUMP"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6274 $as_echo "$OBJDUMP" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281 fi
6282 if test -z "$ac_cv_prog_OBJDUMP"; then
6283 ac_ct_OBJDUMP=$OBJDUMP
6284 # Extract the first word of "objdump", so it can be a program name with args.
6285 set dummy objdump; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$ac_ct_OBJDUMP"; then
6292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6312 if test -n "$ac_ct_OBJDUMP"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6314 $as_echo "$ac_ct_OBJDUMP" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320 if test "x$ac_ct_OBJDUMP" = x; then
6321 OBJDUMP="false"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 OBJDUMP=$ac_ct_OBJDUMP
6330 fi
6331 else
6332 OBJDUMP="$ac_cv_prog_OBJDUMP"
6333 fi
6334
6335 test -z "$OBJDUMP" && OBJDUMP=objdump
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6346 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6347 if ${lt_cv_deplibs_check_method+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 lt_cv_file_magic_cmd='$MAGIC_CMD'
6351 lt_cv_file_magic_test_file=
6352 lt_cv_deplibs_check_method='unknown'
6353 # Need to set the preceding variable on all platforms that support
6354 # interlibrary dependencies.
6355 # 'none' -- dependencies not supported.
6356 # `unknown' -- same as none, but documents that we really don't know.
6357 # 'pass_all' -- all dependencies passed with no checks.
6358 # 'test_compile' -- check by making test program.
6359 # 'file_magic [[regex]]' -- check by looking for files in library path
6360 # which responds to the $file_magic_cmd with a given extended regex.
6361 # If you have `file' or equivalent on your system and you're not sure
6362 # whether `pass_all' will *always* work, you probably want this one.
6363
6364 case $host_os in
6365 aix[4-9]*)
6366 lt_cv_deplibs_check_method=pass_all
6367 ;;
6368
6369 beos*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 bsdi[45]*)
6374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6375 lt_cv_file_magic_cmd='/usr/bin/file -L'
6376 lt_cv_file_magic_test_file=/shlib/libc.so
6377 ;;
6378
6379 cygwin*)
6380 # func_win32_libid is a shell function defined in ltmain.sh
6381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382 lt_cv_file_magic_cmd='func_win32_libid'
6383 ;;
6384
6385 mingw* | pw32*)
6386 # Base MSYS/MinGW do not provide the 'file' command needed by
6387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6388 # unless we find 'file', for example because we are cross-compiling.
6389 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6390 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6392 lt_cv_file_magic_cmd='func_win32_libid'
6393 else
6394 # Keep this pattern in sync with the one in func_win32_libid.
6395 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6396 lt_cv_file_magic_cmd='$OBJDUMP -f'
6397 fi
6398 ;;
6399
6400 cegcc*)
6401 # use the weaker test based on 'objdump'. See mingw*.
6402 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6403 lt_cv_file_magic_cmd='$OBJDUMP -f'
6404 ;;
6405
6406 darwin* | rhapsody*)
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409
6410 freebsd* | dragonfly*)
6411 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6412 case $host_cpu in
6413 i*86 )
6414 # Not sure whether the presence of OpenBSD here was a mistake.
6415 # Let's accept both of them until this is cleared up.
6416 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6417 lt_cv_file_magic_cmd=/usr/bin/file
6418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6419 ;;
6420 esac
6421 else
6422 lt_cv_deplibs_check_method=pass_all
6423 fi
6424 ;;
6425
6426 gnu*)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429
6430 haiku*)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
6433
6434 hpux10.20* | hpux11*)
6435 lt_cv_file_magic_cmd=/usr/bin/file
6436 case $host_cpu in
6437 ia64*)
6438 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6439 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6440 ;;
6441 hppa*64*)
6442 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]'
6443 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6444 ;;
6445 *)
6446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6447 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6448 ;;
6449 esac
6450 ;;
6451
6452 interix[3-9]*)
6453 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6455 ;;
6456
6457 irix5* | irix6* | nonstopux*)
6458 case $LD in
6459 *-32|*"-32 ") libmagic=32-bit;;
6460 *-n32|*"-n32 ") libmagic=N32;;
6461 *-64|*"-64 ") libmagic=64-bit;;
6462 *) libmagic=never-match;;
6463 esac
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 # This must be glibc/ELF.
6468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471
6472 netbsd*)
6473 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6475 else
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6477 fi
6478 ;;
6479
6480 newos6*)
6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6482 lt_cv_file_magic_cmd=/usr/bin/file
6483 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484 ;;
6485
6486 *nto* | *qnx*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 openbsd*)
6491 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6493 else
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495 fi
6496 ;;
6497
6498 osf3* | osf4* | osf5*)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501
6502 rdos*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 solaris*)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509
6510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6511 lt_cv_deplibs_check_method=pass_all
6512 ;;
6513
6514 sysv4 | sysv4.3*)
6515 case $host_vendor in
6516 motorola)
6517 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]'
6518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6519 ;;
6520 ncr)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 sequent)
6524 lt_cv_file_magic_cmd='/bin/file'
6525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6526 ;;
6527 sni)
6528 lt_cv_file_magic_cmd='/bin/file'
6529 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6530 lt_cv_file_magic_test_file=/lib/libc.so
6531 ;;
6532 siemens)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535 pc)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 esac
6539 ;;
6540
6541 tpf*)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544 esac
6545
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6548 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6549
6550 file_magic_glob=
6551 want_nocaseglob=no
6552 if test "$build" = "$host"; then
6553 case $host_os in
6554 mingw* | pw32*)
6555 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6556 want_nocaseglob=yes
6557 else
6558 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6559 fi
6560 ;;
6561 esac
6562 fi
6563
6564 file_magic_cmd=$lt_cv_file_magic_cmd
6565 deplibs_check_method=$lt_cv_deplibs_check_method
6566 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if ${ac_cv_prog_DLLTOOL+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 if test -n "$DLLTOOL"; then
6598 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6599 else
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6602 do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 DLLTOOL=$ac_cv_prog_DLLTOOL
6618 if test -n "$DLLTOOL"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6620 $as_echo "$DLLTOOL" >&6; }
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625
6626
6627 fi
6628 if test -z "$ac_cv_prog_DLLTOOL"; then
6629 ac_ct_DLLTOOL=$DLLTOOL
6630 # Extract the first word of "dlltool", so it can be a program name with args.
6631 set dummy dlltool; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 if test -n "$ac_ct_DLLTOOL"; then
6638 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651 done
6652 done
6653 IFS=$as_save_IFS
6654
6655 fi
6656 fi
6657 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6658 if test -n "$ac_ct_DLLTOOL"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6660 $as_echo "$ac_ct_DLLTOOL" >&6; }
6661 else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6664 fi
6665
6666 if test "x$ac_ct_DLLTOOL" = x; then
6667 DLLTOOL="false"
6668 else
6669 case $cross_compiling:$ac_tool_warned in
6670 yes:)
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673 ac_tool_warned=yes ;;
6674 esac
6675 DLLTOOL=$ac_ct_DLLTOOL
6676 fi
6677 else
6678 DLLTOOL="$ac_cv_prog_DLLTOOL"
6679 fi
6680
6681 test -z "$DLLTOOL" && DLLTOOL=dlltool
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6693 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6694 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 lt_cv_sharedlib_from_linklib_cmd='unknown'
6698
6699 case $host_os in
6700 cygwin* | mingw* | pw32* | cegcc*)
6701 # two different shell functions defined in ltmain.sh
6702 # decide which to use based on capabilities of $DLLTOOL
6703 case `$DLLTOOL --help 2>&1` in
6704 *--identify-strict*)
6705 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6706 ;;
6707 *)
6708 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6709 ;;
6710 esac
6711 ;;
6712 *)
6713 # fallback: assume linklib IS sharedlib
6714 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6715 ;;
6716 esac
6717
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6720 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6721 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6722 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6723
6724
6725
6726
6727
6728
6729
6730 if test -n "$ac_tool_prefix"; then
6731 for ac_prog in ar
6732 do
6733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_AR+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 if test -n "$AR"; then
6741 ac_cv_prog_AR="$AR" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 AR=$ac_cv_prog_AR
6761 if test -n "$AR"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6763 $as_echo "$AR" >&6; }
6764 else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 test -n "$AR" && break
6771 done
6772 fi
6773 if test -z "$AR"; then
6774 ac_ct_AR=$AR
6775 for ac_prog in ar
6776 do
6777 # Extract the first word of "$ac_prog", so it can be a program name with args.
6778 set dummy $ac_prog; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$ac_ct_AR"; then
6785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794 ac_cv_prog_ac_ct_AR="$ac_prog"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6805 if test -n "$ac_ct_AR"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6807 $as_echo "$ac_ct_AR" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813
6814 test -n "$ac_ct_AR" && break
6815 done
6816
6817 if test "x$ac_ct_AR" = x; then
6818 AR="false"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 AR=$ac_ct_AR
6827 fi
6828 fi
6829
6830 : ${AR=ar}
6831 : ${AR_FLAGS=cru}
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6844 $as_echo_n "checking for archiver @FILE support... " >&6; }
6845 if ${lt_cv_ar_at_file+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 lt_cv_ar_at_file=no
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851
6852 int
6853 main ()
6854 {
6855
6856 ;
6857 return 0;
6858 }
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 echo conftest.$ac_objext > conftest.lst
6862 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6864 (eval $lt_ar_try) 2>&5
6865 ac_status=$?
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }
6868 if test "$ac_status" -eq 0; then
6869 # Ensure the archiver fails upon bogus file names.
6870 rm -f conftest.$ac_objext libconftest.a
6871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6872 (eval $lt_ar_try) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }
6876 if test "$ac_status" -ne 0; then
6877 lt_cv_ar_at_file=@
6878 fi
6879 fi
6880 rm -f conftest.* libconftest.a
6881
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6887 $as_echo "$lt_cv_ar_at_file" >&6; }
6888
6889 if test "x$lt_cv_ar_at_file" = xno; then
6890 archiver_list_spec=
6891 else
6892 archiver_list_spec=$lt_cv_ar_at_file
6893 fi
6894
6895
6896
6897
6898
6899
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}strip; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_STRIP+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$STRIP"; then
6910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 STRIP=$ac_cv_prog_STRIP
6930 if test -n "$STRIP"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6932 $as_echo "$STRIP" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_STRIP"; then
6941 ac_ct_STRIP=$STRIP
6942 # Extract the first word of "strip", so it can be a program name with args.
6943 set dummy strip; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_STRIP"; then
6950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_STRIP="strip"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6970 if test -n "$ac_ct_STRIP"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6972 $as_echo "$ac_ct_STRIP" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978 if test "x$ac_ct_STRIP" = x; then
6979 STRIP=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 STRIP=$ac_ct_STRIP
6988 fi
6989 else
6990 STRIP="$ac_cv_prog_STRIP"
6991 fi
6992
6993 test -z "$STRIP" && STRIP=:
6994
6995
6996
6997
6998
6999
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_RANLIB+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$RANLIB"; then
7009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 RANLIB=$ac_cv_prog_RANLIB
7029 if test -n "$RANLIB"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031 $as_echo "$RANLIB" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_RANLIB"; then
7040 ac_ct_RANLIB=$RANLIB
7041 # Extract the first word of "ranlib", so it can be a program name with args.
7042 set dummy ranlib; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$ac_ct_RANLIB"; then
7049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_ac_ct_RANLIB="ranlib"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7069 if test -n "$ac_ct_RANLIB"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7071 $as_echo "$ac_ct_RANLIB" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077 if test "x$ac_ct_RANLIB" = x; then
7078 RANLIB=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084 ac_tool_warned=yes ;;
7085 esac
7086 RANLIB=$ac_ct_RANLIB
7087 fi
7088 else
7089 RANLIB="$ac_cv_prog_RANLIB"
7090 fi
7091
7092 test -z "$RANLIB" && RANLIB=:
7093
7094
7095
7096
7097
7098
7099 # Determine commands to create old-style static archives.
7100 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7101 old_postinstall_cmds='chmod 644 $oldlib'
7102 old_postuninstall_cmds=
7103
7104 if test -n "$RANLIB"; then
7105 case $host_os in
7106 openbsd*)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7108 ;;
7109 *)
7110 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7111 ;;
7112 esac
7113 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7114 fi
7115
7116 case $host_os in
7117 darwin*)
7118 lock_old_archive_extraction=yes ;;
7119 *)
7120 lock_old_archive_extraction=no ;;
7121 esac
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 # If no C compiler was specified, use CC.
7162 LTCC=${LTCC-"$CC"}
7163
7164 # If no C compiler flags were specified, use CFLAGS.
7165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7166
7167 # Allow CC to be a program name with arguments.
7168 compiler=$CC
7169
7170
7171 # Check for command to grab the raw symbol name followed by C symbol from nm.
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7173 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7174 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177
7178 # These are sane defaults that work on at least a few old systems.
7179 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7180
7181 # Character class describing NM global symbol codes.
7182 symcode='[BCDEGRST]'
7183
7184 # Regexp to match symbols that can be accessed directly from C.
7185 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7186
7187 # Define system-specific variables.
7188 case $host_os in
7189 aix*)
7190 symcode='[BCDT]'
7191 ;;
7192 cygwin* | mingw* | pw32* | cegcc*)
7193 symcode='[ABCDGISTW]'
7194 ;;
7195 hpux*)
7196 if test "$host_cpu" = ia64; then
7197 symcode='[ABCDEGRST]'
7198 fi
7199 ;;
7200 irix* | nonstopux*)
7201 symcode='[BCDEGRST]'
7202 ;;
7203 osf*)
7204 symcode='[BCDEGQRST]'
7205 ;;
7206 solaris*)
7207 symcode='[BDRT]'
7208 ;;
7209 sco3.2v5*)
7210 symcode='[DT]'
7211 ;;
7212 sysv4.2uw2*)
7213 symcode='[DT]'
7214 ;;
7215 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7216 symcode='[ABDT]'
7217 ;;
7218 sysv4)
7219 symcode='[DFNSTU]'
7220 ;;
7221 esac
7222
7223 # If we're using GNU nm, then use its standard symbol codes.
7224 case `$NM -V 2>&1` in
7225 *GNU* | *'with BFD'*)
7226 symcode='[ABCDGIRSTW]' ;;
7227 esac
7228
7229 # Transform an extracted symbol line into a proper C declaration.
7230 # Some systems (esp. on ia64) link data and code symbols differently,
7231 # so use this general approach.
7232 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7233
7234 # Transform an extracted symbol line into symbol name and symbol address
7235 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7236 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'"
7237
7238 # Handle CRLF in mingw tool chain
7239 opt_cr=
7240 case $build_os in
7241 mingw*)
7242 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7243 ;;
7244 esac
7245
7246 # Try without a prefix underscore, then with it.
7247 for ac_symprfx in "" "_"; do
7248
7249 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7250 symxfrm="\\1 $ac_symprfx\\2 \\2"
7251
7252 # Write the raw and C identifiers.
7253 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7254 # Fake it for dumpbin and say T for any non-static function
7255 # and D for any global variable.
7256 # Also find C++ and __fastcall symbols from MSVC++,
7257 # which start with @ or ?.
7258 lt_cv_sys_global_symbol_pipe="$AWK '"\
7259 " {last_section=section; section=\$ 3};"\
7260 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7261 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7262 " \$ 0!~/External *\|/{next};"\
7263 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7264 " {if(hide[section]) next};"\
7265 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7266 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7267 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7268 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7269 " ' prfx=^$ac_symprfx"
7270 else
7271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7272 fi
7273 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7274
7275 # Check to see that the pipe works correctly.
7276 pipe_works=no
7277
7278 rm -rf conftest*
7279 cat > conftest.$ac_ext <<_LT_EOF
7280 #ifdef __cplusplus
7281 extern "C" {
7282 #endif
7283 char nm_test_var;
7284 void nm_test_func(void);
7285 void nm_test_func(void){}
7286 #ifdef __cplusplus
7287 }
7288 #endif
7289 int main(){nm_test_var='a';nm_test_func();return(0);}
7290 _LT_EOF
7291
7292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7293 (eval $ac_compile) 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 # Now try to grab the symbols.
7298 nlist=conftest.nm
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7300 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; } && test -s "$nlist"; then
7304 # Try sorting and uniquifying the output.
7305 if sort "$nlist" | uniq > "$nlist"T; then
7306 mv -f "$nlist"T "$nlist"
7307 else
7308 rm -f "$nlist"T
7309 fi
7310
7311 # Make sure that we snagged all the symbols we need.
7312 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7313 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7314 cat <<_LT_EOF > conftest.$ac_ext
7315 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7316 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7317 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7318 relocations are performed -- see ld's documentation on pseudo-relocs. */
7319 # define LT_DLSYM_CONST
7320 #elif defined(__osf__)
7321 /* This system does not cope well with relocations in const data. */
7322 # define LT_DLSYM_CONST
7323 #else
7324 # define LT_DLSYM_CONST const
7325 #endif
7326
7327 #ifdef __cplusplus
7328 extern "C" {
7329 #endif
7330
7331 _LT_EOF
7332 # Now generate the symbol file.
7333 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7334
7335 cat <<_LT_EOF >> conftest.$ac_ext
7336
7337 /* The mapping between symbol names and symbols. */
7338 LT_DLSYM_CONST struct {
7339 const char *name;
7340 void *address;
7341 }
7342 lt__PROGRAM__LTX_preloaded_symbols[] =
7343 {
7344 { "@PROGRAM@", (void *) 0 },
7345 _LT_EOF
7346 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7347 cat <<\_LT_EOF >> conftest.$ac_ext
7348 {0, (void *) 0}
7349 };
7350
7351 /* This works around a problem in FreeBSD linker */
7352 #ifdef FREEBSD_WORKAROUND
7353 static const void *lt_preloaded_setup() {
7354 return lt__PROGRAM__LTX_preloaded_symbols;
7355 }
7356 #endif
7357
7358 #ifdef __cplusplus
7359 }
7360 #endif
7361 _LT_EOF
7362 # Now try linking the two files.
7363 mv conftest.$ac_objext conftstm.$ac_objext
7364 lt_globsym_save_LIBS=$LIBS
7365 lt_globsym_save_CFLAGS=$CFLAGS
7366 LIBS="conftstm.$ac_objext"
7367 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7369 (eval $ac_link) 2>&5
7370 ac_status=$?
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7373 pipe_works=yes
7374 fi
7375 LIBS=$lt_globsym_save_LIBS
7376 CFLAGS=$lt_globsym_save_CFLAGS
7377 else
7378 echo "cannot find nm_test_func in $nlist" >&5
7379 fi
7380 else
7381 echo "cannot find nm_test_var in $nlist" >&5
7382 fi
7383 else
7384 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7385 fi
7386 else
7387 echo "$progname: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7389 fi
7390 rm -rf conftest* conftst*
7391
7392 # Do not use the global_symbol_pipe unless it works.
7393 if test "$pipe_works" = yes; then
7394 break
7395 else
7396 lt_cv_sys_global_symbol_pipe=
7397 fi
7398 done
7399
7400 fi
7401
7402 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7403 lt_cv_sys_global_symbol_to_cdecl=
7404 fi
7405 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7407 $as_echo "failed" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7410 $as_echo "ok" >&6; }
7411 fi
7412
7413 # Response file support.
7414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7415 nm_file_list_spec='@'
7416 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7417 nm_file_list_spec='@'
7418 fi
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7447 $as_echo_n "checking for sysroot... " >&6; }
7448
7449 # Check whether --with-sysroot was given.
7450 if test "${with_sysroot+set}" = set; then :
7451 withval=$with_sysroot;
7452 else
7453 with_sysroot=no
7454 fi
7455
7456
7457 lt_sysroot=
7458 case ${with_sysroot} in #(
7459 yes)
7460 if test "$GCC" = yes; then
7461 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7462 fi
7463 ;; #(
7464 /*)
7465 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7466 ;; #(
7467 no|'')
7468 ;; #(
7469 *)
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7471 $as_echo "${with_sysroot}" >&6; }
7472 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7473 ;;
7474 esac
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7477 $as_echo "${lt_sysroot:-no}" >&6; }
7478
7479
7480
7481
7482
7483 # Check whether --enable-libtool-lock was given.
7484 if test "${enable_libtool_lock+set}" = set; then :
7485 enableval=$enable_libtool_lock;
7486 fi
7487
7488 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7489
7490 # Some flags need to be propagated to the compiler or linker for good
7491 # libtool support.
7492 case $host in
7493 ia64-*-hpux*)
7494 # Find out which ABI we are using.
7495 echo 'int i;' > conftest.$ac_ext
7496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7497 (eval $ac_compile) 2>&5
7498 ac_status=$?
7499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7500 test $ac_status = 0; }; then
7501 case `/usr/bin/file conftest.$ac_objext` in
7502 *ELF-32*)
7503 HPUX_IA64_MODE="32"
7504 ;;
7505 *ELF-64*)
7506 HPUX_IA64_MODE="64"
7507 ;;
7508 esac
7509 fi
7510 rm -rf conftest*
7511 ;;
7512 *-*-irix6*)
7513 # Find out which ABI we are using.
7514 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 if test "$lt_cv_prog_gnu_ld" = yes; then
7521 case `/usr/bin/file conftest.$ac_objext` in
7522 *32-bit*)
7523 LD="${LD-ld} -melf32bsmip"
7524 ;;
7525 *N32*)
7526 LD="${LD-ld} -melf32bmipn32"
7527 ;;
7528 *64-bit*)
7529 LD="${LD-ld} -melf64bmip"
7530 ;;
7531 esac
7532 else
7533 case `/usr/bin/file conftest.$ac_objext` in
7534 *32-bit*)
7535 LD="${LD-ld} -32"
7536 ;;
7537 *N32*)
7538 LD="${LD-ld} -n32"
7539 ;;
7540 *64-bit*)
7541 LD="${LD-ld} -64"
7542 ;;
7543 esac
7544 fi
7545 fi
7546 rm -rf conftest*
7547 ;;
7548
7549 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7550 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7551 # Find out which ABI we are using.
7552 echo 'int i;' > conftest.$ac_ext
7553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7554 (eval $ac_compile) 2>&5
7555 ac_status=$?
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }; then
7558 case `/usr/bin/file conftest.o` in
7559 *32-bit*)
7560 case $host in
7561 x86_64-*kfreebsd*-gnu)
7562 LD="${LD-ld} -m elf_i386_fbsd"
7563 ;;
7564 x86_64-*linux*)
7565 LD="${LD-ld} -m elf_i386"
7566 ;;
7567 ppc64-*linux*|powerpc64-*linux*)
7568 LD="${LD-ld} -m elf32ppclinux"
7569 ;;
7570 s390x-*linux*)
7571 LD="${LD-ld} -m elf_s390"
7572 ;;
7573 sparc64-*linux*)
7574 LD="${LD-ld} -m elf32_sparc"
7575 ;;
7576 esac
7577 ;;
7578 *64-bit*)
7579 case $host in
7580 x86_64-*kfreebsd*-gnu)
7581 LD="${LD-ld} -m elf_x86_64_fbsd"
7582 ;;
7583 x86_64-*linux*)
7584 LD="${LD-ld} -m elf_x86_64"
7585 ;;
7586 ppc*-*linux*|powerpc*-*linux*)
7587 LD="${LD-ld} -m elf64ppc"
7588 ;;
7589 s390*-*linux*|s390*-*tpf*)
7590 LD="${LD-ld} -m elf64_s390"
7591 ;;
7592 sparc*-*linux*)
7593 LD="${LD-ld} -m elf64_sparc"
7594 ;;
7595 esac
7596 ;;
7597 esac
7598 fi
7599 rm -rf conftest*
7600 ;;
7601
7602 *-*-sco3.2v5*)
7603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7604 SAVE_CFLAGS="$CFLAGS"
7605 CFLAGS="$CFLAGS -belf"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7608 if ${lt_cv_cc_needs_belf+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 ac_ext=c
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619
7620 int
7621 main ()
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_cc_needs_belf=yes
7630 else
7631 lt_cv_cc_needs_belf=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 ac_ext=c
7636 ac_cpp='$CPP $CPPFLAGS'
7637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7646 CFLAGS="$SAVE_CFLAGS"
7647 fi
7648 ;;
7649 *-*solaris*)
7650 # Find out which ABI we are using.
7651 echo 'int i;' > conftest.$ac_ext
7652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7653 (eval $ac_compile) 2>&5
7654 ac_status=$?
7655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7656 test $ac_status = 0; }; then
7657 case `/usr/bin/file conftest.o` in
7658 *64-bit*)
7659 case $lt_cv_prog_gnu_ld in
7660 yes*)
7661 case $host in
7662 i?86-*-solaris*)
7663 LD="${LD-ld} -m elf_x86_64"
7664 ;;
7665 sparc*-*-solaris*)
7666 LD="${LD-ld} -m elf64_sparc"
7667 ;;
7668 esac
7669 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7670 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7671 LD="${LD-ld}_sol2"
7672 fi
7673 ;;
7674 *)
7675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7676 LD="${LD-ld} -64"
7677 fi
7678 ;;
7679 esac
7680 ;;
7681 esac
7682 fi
7683 rm -rf conftest*
7684 ;;
7685 esac
7686
7687 need_locks="$enable_libtool_lock"
7688
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}mt; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$MANIFEST_TOOL"; then
7698 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7718 if test -n "$MANIFEST_TOOL"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7720 $as_echo "$MANIFEST_TOOL" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7729 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7730 # Extract the first word of "mt", so it can be a program name with args.
7731 set dummy mt; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$ac_ct_MANIFEST_TOOL"; then
7738 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7758 if test -n "$ac_ct_MANIFEST_TOOL"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7760 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7767 MANIFEST_TOOL=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7776 fi
7777 else
7778 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7779 fi
7780
7781 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7783 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7784 if ${lt_cv_path_mainfest_tool+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 lt_cv_path_mainfest_tool=no
7788 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7789 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7790 cat conftest.err >&5
7791 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7792 lt_cv_path_mainfest_tool=yes
7793 fi
7794 rm -rf conftest*
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7797 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7798 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7799 MANIFEST_TOOL=:
7800 fi
7801
7802
7803
7804
7805
7806
7807 case $host_os in
7808 rhapsody* | darwin*)
7809 if test -n "$ac_tool_prefix"; then
7810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7811 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$DSYMUTIL"; then
7818 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7838 if test -n "$DSYMUTIL"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7840 $as_echo "$DSYMUTIL" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846
7847 fi
7848 if test -z "$ac_cv_prog_DSYMUTIL"; then
7849 ac_ct_DSYMUTIL=$DSYMUTIL
7850 # Extract the first word of "dsymutil", so it can be a program name with args.
7851 set dummy dsymutil; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -n "$ac_ct_DSYMUTIL"; then
7858 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875 fi
7876 fi
7877 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7878 if test -n "$ac_ct_DSYMUTIL"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7880 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885
7886 if test "x$ac_ct_DSYMUTIL" = x; then
7887 DSYMUTIL=":"
7888 else
7889 case $cross_compiling:$ac_tool_warned in
7890 yes:)
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893 ac_tool_warned=yes ;;
7894 esac
7895 DSYMUTIL=$ac_ct_DSYMUTIL
7896 fi
7897 else
7898 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7899 fi
7900
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if ${ac_cv_prog_NMEDIT+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 if test -n "$NMEDIT"; then
7910 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 NMEDIT=$ac_cv_prog_NMEDIT
7930 if test -n "$NMEDIT"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7932 $as_echo "$NMEDIT" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938
7939 fi
7940 if test -z "$ac_cv_prog_NMEDIT"; then
7941 ac_ct_NMEDIT=$NMEDIT
7942 # Extract the first word of "nmedit", so it can be a program name with args.
7943 set dummy nmedit; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$ac_ct_NMEDIT"; then
7950 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7970 if test -n "$ac_ct_NMEDIT"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7972 $as_echo "$ac_ct_NMEDIT" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978 if test "x$ac_ct_NMEDIT" = x; then
7979 NMEDIT=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982 yes:)
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7986 esac
7987 NMEDIT=$ac_ct_NMEDIT
7988 fi
7989 else
7990 NMEDIT="$ac_cv_prog_NMEDIT"
7991 fi
7992
7993 if test -n "$ac_tool_prefix"; then
7994 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7995 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_LIPO+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$LIPO"; then
8002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 LIPO=$ac_cv_prog_LIPO
8022 if test -n "$LIPO"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8024 $as_echo "$LIPO" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030
8031 fi
8032 if test -z "$ac_cv_prog_LIPO"; then
8033 ac_ct_LIPO=$LIPO
8034 # Extract the first word of "lipo", so it can be a program name with args.
8035 set dummy lipo; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$ac_ct_LIPO"; then
8042 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_ac_ct_LIPO="lipo"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8062 if test -n "$ac_ct_LIPO"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8064 $as_echo "$ac_ct_LIPO" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070 if test "x$ac_ct_LIPO" = x; then
8071 LIPO=":"
8072 else
8073 case $cross_compiling:$ac_tool_warned in
8074 yes:)
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8077 ac_tool_warned=yes ;;
8078 esac
8079 LIPO=$ac_ct_LIPO
8080 fi
8081 else
8082 LIPO="$ac_cv_prog_LIPO"
8083 fi
8084
8085 if test -n "$ac_tool_prefix"; then
8086 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8087 set dummy ${ac_tool_prefix}otool; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_OTOOL+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$OTOOL"; then
8094 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8106 fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 OTOOL=$ac_cv_prog_OTOOL
8114 if test -n "$OTOOL"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8116 $as_echo "$OTOOL" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 fi
8124 if test -z "$ac_cv_prog_OTOOL"; then
8125 ac_ct_OTOOL=$OTOOL
8126 # Extract the first word of "otool", so it can be a program name with args.
8127 set dummy otool; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 if test -n "$ac_ct_OTOOL"; then
8134 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_ac_ct_OTOOL="otool"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147 done
8148 done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8154 if test -n "$ac_ct_OTOOL"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8156 $as_echo "$ac_ct_OTOOL" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162 if test "x$ac_ct_OTOOL" = x; then
8163 OTOOL=":"
8164 else
8165 case $cross_compiling:$ac_tool_warned in
8166 yes:)
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169 ac_tool_warned=yes ;;
8170 esac
8171 OTOOL=$ac_ct_OTOOL
8172 fi
8173 else
8174 OTOOL="$ac_cv_prog_OTOOL"
8175 fi
8176
8177 if test -n "$ac_tool_prefix"; then
8178 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8179 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_prog_OTOOL64+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 if test -n "$OTOOL64"; then
8186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8198 fi
8199 done
8200 done
8201 IFS=$as_save_IFS
8202
8203 fi
8204 fi
8205 OTOOL64=$ac_cv_prog_OTOOL64
8206 if test -n "$OTOOL64"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8208 $as_echo "$OTOOL64" >&6; }
8209 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8212 fi
8213
8214
8215 fi
8216 if test -z "$ac_cv_prog_OTOOL64"; then
8217 ac_ct_OTOOL64=$OTOOL64
8218 # Extract the first word of "otool64", so it can be a program name with args.
8219 set dummy otool64; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 if test -n "$ac_ct_OTOOL64"; then
8226 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_ac_ct_OTOOL64="otool64"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8246 if test -n "$ac_ct_OTOOL64"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8248 $as_echo "$ac_ct_OTOOL64" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254 if test "x$ac_ct_OTOOL64" = x; then
8255 OTOOL64=":"
8256 else
8257 case $cross_compiling:$ac_tool_warned in
8258 yes:)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8262 esac
8263 OTOOL64=$ac_ct_OTOOL64
8264 fi
8265 else
8266 OTOOL64="$ac_cv_prog_OTOOL64"
8267 fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8296 $as_echo_n "checking for -single_module linker flag... " >&6; }
8297 if ${lt_cv_apple_cc_single_mod+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 lt_cv_apple_cc_single_mod=no
8301 if test -z "${LT_MULTI_MODULE}"; then
8302 # By default we will add the -single_module flag. You can override
8303 # by either setting the environment variable LT_MULTI_MODULE
8304 # non-empty at configure time, or by adding -multi_module to the
8305 # link flags.
8306 rm -rf libconftest.dylib*
8307 echo "int foo(void){return 1;}" > conftest.c
8308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8309 -dynamiclib -Wl,-single_module conftest.c" >&5
8310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8312 _lt_result=$?
8313 # If there is a non-empty error log, and "single_module"
8314 # appears in it, assume the flag caused a linker warning
8315 if test -s conftest.err && $GREP single_module conftest.err; then
8316 cat conftest.err >&5
8317 # Otherwise, if the output was created with a 0 exit code from
8318 # the compiler, it worked.
8319 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8320 lt_cv_apple_cc_single_mod=yes
8321 else
8322 cat conftest.err >&5
8323 fi
8324 rm -rf libconftest.dylib*
8325 rm -f conftest.*
8326 fi
8327 fi
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8329 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8332 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8333 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 lt_cv_ld_exported_symbols_list=no
8337 save_LDFLAGS=$LDFLAGS
8338 echo "_main" > conftest.sym
8339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342
8343 int
8344 main ()
8345 {
8346
8347 ;
8348 return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_link "$LINENO"; then :
8352 lt_cv_ld_exported_symbols_list=yes
8353 else
8354 lt_cv_ld_exported_symbols_list=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358 LDFLAGS="$save_LDFLAGS"
8359
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8362 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8365 $as_echo_n "checking for -force_load linker flag... " >&6; }
8366 if ${lt_cv_ld_force_load+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 lt_cv_ld_force_load=no
8370 cat > conftest.c << _LT_EOF
8371 int forced_loaded() { return 2;}
8372 _LT_EOF
8373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8375 echo "$AR cru libconftest.a conftest.o" >&5
8376 $AR cru libconftest.a conftest.o 2>&5
8377 echo "$RANLIB libconftest.a" >&5
8378 $RANLIB libconftest.a 2>&5
8379 cat > conftest.c << _LT_EOF
8380 int main() { return 0;}
8381 _LT_EOF
8382 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8383 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8384 _lt_result=$?
8385 if test -s conftest.err && $GREP force_load conftest.err; then
8386 cat conftest.err >&5
8387 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8388 lt_cv_ld_force_load=yes
8389 else
8390 cat conftest.err >&5
8391 fi
8392 rm -f conftest.err libconftest.a conftest conftest.c
8393 rm -rf conftest.dSYM
8394
8395 fi
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8397 $as_echo "$lt_cv_ld_force_load" >&6; }
8398 case $host_os in
8399 rhapsody* | darwin1.[012])
8400 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8401 darwin1.*)
8402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8403 darwin*) # darwin 5.x on
8404 # if running on 10.5 or later, the deployment target defaults
8405 # to the OS version, if on x86, and 10.4, the deployment
8406 # target defaults to 10.4. Don't you love it?
8407 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8408 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8409 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8410 10.[012]*)
8411 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8412 10.*)
8413 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8414 esac
8415 ;;
8416 esac
8417 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8418 _lt_dar_single_mod='$single_module'
8419 fi
8420 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8421 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8422 else
8423 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8424 fi
8425 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8426 _lt_dsymutil='~$DSYMUTIL $lib || :'
8427 else
8428 _lt_dsymutil=
8429 fi
8430 ;;
8431 esac
8432
8433 ac_ext=c
8434 ac_cpp='$CPP $CPPFLAGS'
8435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8440 # On Suns, sometimes $CPP names a directory.
8441 if test -n "$CPP" && test -d "$CPP"; then
8442 CPP=
8443 fi
8444 if test -z "$CPP"; then
8445 if ${ac_cv_prog_CPP+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 # Double quotes because CPP needs to be expanded
8449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8450 do
8451 ac_preproc_ok=false
8452 for ac_c_preproc_warn_flag in '' yes
8453 do
8454 # Use a header file that comes with gcc, so configuring glibc
8455 # with a fresh cross-compiler works.
8456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457 # <limits.h> exists even on freestanding compilers.
8458 # On the NeXT, cc -E runs the code through the compiler's parser,
8459 # not just through cpp. "Syntax error" is here to catch this case.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #ifdef __STDC__
8463 # include <limits.h>
8464 #else
8465 # include <assert.h>
8466 #endif
8467 Syntax error
8468 _ACEOF
8469 if ac_fn_c_try_cpp "$LINENO"; then :
8470
8471 else
8472 # Broken: fails on valid input.
8473 continue
8474 fi
8475 rm -f conftest.err conftest.i conftest.$ac_ext
8476
8477 # OK, works on sane cases. Now check whether nonexistent headers
8478 # can be detected and how.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <ac_nonexistent.h>
8482 _ACEOF
8483 if ac_fn_c_try_cpp "$LINENO"; then :
8484 # Broken: success on invalid input.
8485 continue
8486 else
8487 # Passes both tests.
8488 ac_preproc_ok=:
8489 break
8490 fi
8491 rm -f conftest.err conftest.i conftest.$ac_ext
8492
8493 done
8494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495 rm -f conftest.i conftest.err conftest.$ac_ext
8496 if $ac_preproc_ok; then :
8497 break
8498 fi
8499
8500 done
8501 ac_cv_prog_CPP=$CPP
8502
8503 fi
8504 CPP=$ac_cv_prog_CPP
8505 else
8506 ac_cv_prog_CPP=$CPP
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8509 $as_echo "$CPP" >&6; }
8510 ac_preproc_ok=false
8511 for ac_c_preproc_warn_flag in '' yes
8512 do
8513 # Use a header file that comes with gcc, so configuring glibc
8514 # with a fresh cross-compiler works.
8515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516 # <limits.h> exists even on freestanding compilers.
8517 # On the NeXT, cc -E runs the code through the compiler's parser,
8518 # not just through cpp. "Syntax error" is here to catch this case.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #ifdef __STDC__
8522 # include <limits.h>
8523 #else
8524 # include <assert.h>
8525 #endif
8526 Syntax error
8527 _ACEOF
8528 if ac_fn_c_try_cpp "$LINENO"; then :
8529
8530 else
8531 # Broken: fails on valid input.
8532 continue
8533 fi
8534 rm -f conftest.err conftest.i conftest.$ac_ext
8535
8536 # OK, works on sane cases. Now check whether nonexistent headers
8537 # can be detected and how.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 #include <ac_nonexistent.h>
8541 _ACEOF
8542 if ac_fn_c_try_cpp "$LINENO"; then :
8543 # Broken: success on invalid input.
8544 continue
8545 else
8546 # Passes both tests.
8547 ac_preproc_ok=:
8548 break
8549 fi
8550 rm -f conftest.err conftest.i conftest.$ac_ext
8551
8552 done
8553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8554 rm -f conftest.i conftest.err conftest.$ac_ext
8555 if $ac_preproc_ok; then :
8556
8557 else
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8561 See \`config.log' for more details" "$LINENO" 5; }
8562 fi
8563
8564 ac_ext=c
8565 ac_cpp='$CPP $CPPFLAGS'
8566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8569
8570
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8572 $as_echo_n "checking for ANSI C header files... " >&6; }
8573 if ${ac_cv_header_stdc+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #include <stdlib.h>
8579 #include <stdarg.h>
8580 #include <string.h>
8581 #include <float.h>
8582
8583 int
8584 main ()
8585 {
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_compile "$LINENO"; then :
8592 ac_cv_header_stdc=yes
8593 else
8594 ac_cv_header_stdc=no
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597
8598 if test $ac_cv_header_stdc = yes; then
8599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 #include <string.h>
8603
8604 _ACEOF
8605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8606 $EGREP "memchr" >/dev/null 2>&1; then :
8607
8608 else
8609 ac_cv_header_stdc=no
8610 fi
8611 rm -f conftest*
8612
8613 fi
8614
8615 if test $ac_cv_header_stdc = yes; then
8616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <stdlib.h>
8620
8621 _ACEOF
8622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8623 $EGREP "free" >/dev/null 2>&1; then :
8624
8625 else
8626 ac_cv_header_stdc=no
8627 fi
8628 rm -f conftest*
8629
8630 fi
8631
8632 if test $ac_cv_header_stdc = yes; then
8633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8634 if test "$cross_compiling" = yes; then :
8635 :
8636 else
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 #include <ctype.h>
8640 #include <stdlib.h>
8641 #if ((' ' & 0x0FF) == 0x020)
8642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8644 #else
8645 # define ISLOWER(c) \
8646 (('a' <= (c) && (c) <= 'i') \
8647 || ('j' <= (c) && (c) <= 'r') \
8648 || ('s' <= (c) && (c) <= 'z'))
8649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8650 #endif
8651
8652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8653 int
8654 main ()
8655 {
8656 int i;
8657 for (i = 0; i < 256; i++)
8658 if (XOR (islower (i), ISLOWER (i))
8659 || toupper (i) != TOUPPER (i))
8660 return 2;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_run "$LINENO"; then :
8665
8666 else
8667 ac_cv_header_stdc=no
8668 fi
8669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8670 conftest.$ac_objext conftest.beam conftest.$ac_ext
8671 fi
8672
8673 fi
8674 fi
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8676 $as_echo "$ac_cv_header_stdc" >&6; }
8677 if test $ac_cv_header_stdc = yes; then
8678
8679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8680
8681 fi
8682
8683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8684 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8685 inttypes.h stdint.h unistd.h
8686 do :
8687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8689 "
8690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8691 cat >>confdefs.h <<_ACEOF
8692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8693 _ACEOF
8694
8695 fi
8696
8697 done
8698
8699
8700 for ac_header in dlfcn.h
8701 do :
8702 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8703 "
8704 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8705 cat >>confdefs.h <<_ACEOF
8706 #define HAVE_DLFCN_H 1
8707 _ACEOF
8708
8709 fi
8710
8711 done
8712
8713
8714
8715
8716 func_stripname_cnf ()
8717 {
8718 case ${2} in
8719 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8720 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8721 esac
8722 } # func_stripname_cnf
8723
8724
8725
8726
8727
8728 # Set options
8729 # Check whether --enable-static was given.
8730 if test "${enable_static+set}" = set; then :
8731 enableval=$enable_static; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_static=yes ;;
8734 no) enable_static=no ;;
8735 *)
8736 enable_static=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8739 for pkg in $enableval; do
8740 IFS="$lt_save_ifs"
8741 if test "X$pkg" = "X$p"; then
8742 enable_static=yes
8743 fi
8744 done
8745 IFS="$lt_save_ifs"
8746 ;;
8747 esac
8748 else
8749 enable_static=no
8750 fi
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 enable_dlopen=no
8762
8763
8764 enable_win32_dll=no
8765
8766
8767 # Check whether --enable-shared was given.
8768 if test "${enable_shared+set}" = set; then :
8769 enableval=$enable_shared; p=${PACKAGE-default}
8770 case $enableval in
8771 yes) enable_shared=yes ;;
8772 no) enable_shared=no ;;
8773 *)
8774 enable_shared=no
8775 # Look at the argument we got. We use all the common list separators.
8776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8777 for pkg in $enableval; do
8778 IFS="$lt_save_ifs"
8779 if test "X$pkg" = "X$p"; then
8780 enable_shared=yes
8781 fi
8782 done
8783 IFS="$lt_save_ifs"
8784 ;;
8785 esac
8786 else
8787 enable_shared=yes
8788 fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800 # Check whether --with-pic was given.
8801 if test "${with_pic+set}" = set; then :
8802 withval=$with_pic; lt_p=${PACKAGE-default}
8803 case $withval in
8804 yes|no) pic_mode=$withval ;;
8805 *)
8806 pic_mode=default
8807 # Look at the argument we got. We use all the common list separators.
8808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8809 for lt_pkg in $withval; do
8810 IFS="$lt_save_ifs"
8811 if test "X$lt_pkg" = "X$lt_p"; then
8812 pic_mode=yes
8813 fi
8814 done
8815 IFS="$lt_save_ifs"
8816 ;;
8817 esac
8818 else
8819 pic_mode=default
8820 fi
8821
8822
8823 test -z "$pic_mode" && pic_mode=default
8824
8825
8826
8827
8828
8829
8830
8831 # Check whether --enable-fast-install was given.
8832 if test "${enable_fast_install+set}" = set; then :
8833 enableval=$enable_fast_install; p=${PACKAGE-default}
8834 case $enableval in
8835 yes) enable_fast_install=yes ;;
8836 no) enable_fast_install=no ;;
8837 *)
8838 enable_fast_install=no
8839 # Look at the argument we got. We use all the common list separators.
8840 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8841 for pkg in $enableval; do
8842 IFS="$lt_save_ifs"
8843 if test "X$pkg" = "X$p"; then
8844 enable_fast_install=yes
8845 fi
8846 done
8847 IFS="$lt_save_ifs"
8848 ;;
8849 esac
8850 else
8851 enable_fast_install=yes
8852 fi
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864 # This can be used to rebuild libtool when needed
8865 LIBTOOL_DEPS="$ltmain"
8866
8867 # Always use our own libtool.
8868 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 test -z "$LN_S" && LN_S="ln -s"
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914 if test -n "${ZSH_VERSION+set}" ; then
8915 setopt NO_GLOB_SUBST
8916 fi
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8919 $as_echo_n "checking for objdir... " >&6; }
8920 if ${lt_cv_objdir+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 rm -f .libs 2>/dev/null
8924 mkdir .libs 2>/dev/null
8925 if test -d .libs; then
8926 lt_cv_objdir=.libs
8927 else
8928 # MS-DOS does not allow filenames that begin with a dot.
8929 lt_cv_objdir=_libs
8930 fi
8931 rmdir .libs 2>/dev/null
8932 fi
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8934 $as_echo "$lt_cv_objdir" >&6; }
8935 objdir=$lt_cv_objdir
8936
8937
8938
8939
8940
8941 cat >>confdefs.h <<_ACEOF
8942 #define LT_OBJDIR "$lt_cv_objdir/"
8943 _ACEOF
8944
8945
8946
8947
8948 case $host_os in
8949 aix3*)
8950 # AIX sometimes has problems with the GCC collect2 program. For some
8951 # reason, if we set the COLLECT_NAMES environment variable, the problems
8952 # vanish in a puff of smoke.
8953 if test "X${COLLECT_NAMES+set}" != Xset; then
8954 COLLECT_NAMES=
8955 export COLLECT_NAMES
8956 fi
8957 ;;
8958 esac
8959
8960 # Global variables:
8961 ofile=libtool
8962 can_build_shared=yes
8963
8964 # All known linkers require a `.a' archive for static linking (except MSVC,
8965 # which needs '.lib').
8966 libext=a
8967
8968 with_gnu_ld="$lt_cv_prog_gnu_ld"
8969
8970 old_CC="$CC"
8971 old_CFLAGS="$CFLAGS"
8972
8973 # Set sane defaults for various variables
8974 test -z "$CC" && CC=cc
8975 test -z "$LTCC" && LTCC=$CC
8976 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8977 test -z "$LD" && LD=ld
8978 test -z "$ac_objext" && ac_objext=o
8979
8980 for cc_temp in $compiler""; do
8981 case $cc_temp in
8982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8984 \-*) ;;
8985 *) break;;
8986 esac
8987 done
8988 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8989
8990
8991 # Only perform the check for file, if the check method requires it
8992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8993 case $deplibs_check_method in
8994 file_magic*)
8995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 case $MAGIC_CMD in
9002 [\\/*] | ?:[\\/]*)
9003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9004 ;;
9005 *)
9006 lt_save_MAGIC_CMD="$MAGIC_CMD"
9007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9009 for ac_dir in $ac_dummy; do
9010 IFS="$lt_save_ifs"
9011 test -z "$ac_dir" && ac_dir=.
9012 if test -f $ac_dir/${ac_tool_prefix}file; then
9013 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9014 if test -n "$file_magic_test_file"; then
9015 case $deplibs_check_method in
9016 "file_magic "*)
9017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9020 $EGREP "$file_magic_regex" > /dev/null; then
9021 :
9022 else
9023 cat <<_LT_EOF 1>&2
9024
9025 *** Warning: the command libtool uses to detect shared libraries,
9026 *** $file_magic_cmd, produces output that libtool cannot recognize.
9027 *** The result is that libtool may fail to recognize shared libraries
9028 *** as such. This will affect the creation of libtool libraries that
9029 *** depend on shared libraries, but programs linked with such libtool
9030 *** libraries will work regardless of this problem. Nevertheless, you
9031 *** may want to report the problem to your system manager and/or to
9032 *** bug-libtool@gnu.org
9033
9034 _LT_EOF
9035 fi ;;
9036 esac
9037 fi
9038 break
9039 fi
9040 done
9041 IFS="$lt_save_ifs"
9042 MAGIC_CMD="$lt_save_MAGIC_CMD"
9043 ;;
9044 esac
9045 fi
9046
9047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048 if test -n "$MAGIC_CMD"; then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9050 $as_echo "$MAGIC_CMD" >&6; }
9051 else
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054 fi
9055
9056
9057
9058
9059
9060 if test -z "$lt_cv_path_MAGIC_CMD"; then
9061 if test -n "$ac_tool_prefix"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9063 $as_echo_n "checking for file... " >&6; }
9064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 case $MAGIC_CMD in
9068 [\\/*] | ?:[\\/]*)
9069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9070 ;;
9071 *)
9072 lt_save_MAGIC_CMD="$MAGIC_CMD"
9073 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9075 for ac_dir in $ac_dummy; do
9076 IFS="$lt_save_ifs"
9077 test -z "$ac_dir" && ac_dir=.
9078 if test -f $ac_dir/file; then
9079 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9080 if test -n "$file_magic_test_file"; then
9081 case $deplibs_check_method in
9082 "file_magic "*)
9083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9086 $EGREP "$file_magic_regex" > /dev/null; then
9087 :
9088 else
9089 cat <<_LT_EOF 1>&2
9090
9091 *** Warning: the command libtool uses to detect shared libraries,
9092 *** $file_magic_cmd, produces output that libtool cannot recognize.
9093 *** The result is that libtool may fail to recognize shared libraries
9094 *** as such. This will affect the creation of libtool libraries that
9095 *** depend on shared libraries, but programs linked with such libtool
9096 *** libraries will work regardless of this problem. Nevertheless, you
9097 *** may want to report the problem to your system manager and/or to
9098 *** bug-libtool@gnu.org
9099
9100 _LT_EOF
9101 fi ;;
9102 esac
9103 fi
9104 break
9105 fi
9106 done
9107 IFS="$lt_save_ifs"
9108 MAGIC_CMD="$lt_save_MAGIC_CMD"
9109 ;;
9110 esac
9111 fi
9112
9113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9114 if test -n "$MAGIC_CMD"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9116 $as_echo "$MAGIC_CMD" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 fi
9121
9122
9123 else
9124 MAGIC_CMD=:
9125 fi
9126 fi
9127
9128 fi
9129 ;;
9130 esac
9131
9132 # Use C for the default configuration in the libtool script
9133
9134 lt_save_CC="$CC"
9135 ac_ext=c
9136 ac_cpp='$CPP $CPPFLAGS'
9137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140
9141
9142 # Source file extension for C test sources.
9143 ac_ext=c
9144
9145 # Object file extension for compiled C test sources.
9146 objext=o
9147 objext=$objext
9148
9149 # Code to be used in simple compile tests
9150 lt_simple_compile_test_code="int some_variable = 0;"
9151
9152 # Code to be used in simple link tests
9153 lt_simple_link_test_code='int main(){return(0);}'
9154
9155
9156
9157
9158
9159
9160
9161 # If no C compiler was specified, use CC.
9162 LTCC=${LTCC-"$CC"}
9163
9164 # If no C compiler flags were specified, use CFLAGS.
9165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9166
9167 # Allow CC to be a program name with arguments.
9168 compiler=$CC
9169
9170 # Save the default compiler, since it gets overwritten when the other
9171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9172 compiler_DEFAULT=$CC
9173
9174 # save warnings/boilerplate of simple test code
9175 ac_outfile=conftest.$ac_objext
9176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9178 _lt_compiler_boilerplate=`cat conftest.err`
9179 $RM -r conftest*
9180
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9184 _lt_linker_boilerplate=`cat conftest.err`
9185 $RM -r conftest*
9186
9187
9188 ## CAVEAT EMPTOR:
9189 ## There is no encapsulation within the following macros, do not change
9190 ## the running order or otherwise move them around unless you know exactly
9191 ## what you are doing...
9192 if test -n "$compiler"; then
9193
9194 lt_prog_compiler_no_builtin_flag=
9195
9196 if test "$GCC" = yes; then
9197 case $cc_basename in
9198 nvcc*)
9199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9200 *)
9201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9202 esac
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9205 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9206 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 lt_cv_prog_compiler_rtti_exceptions=no
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9212 lt_compiler_flag="-fno-rtti -fno-exceptions"
9213 # Insert the option either (1) after the last *FLAGS variable, or
9214 # (2) before a word containing "conftest.", or (3) at the end.
9215 # Note that $ac_compile itself does not contain backslashes and begins
9216 # with a dollar sign (not a hyphen), so the echo should work correctly.
9217 # The option is referenced via a variable to avoid confusing sed.
9218 lt_compile=`echo "$ac_compile" | $SED \
9219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9221 -e 's:$: $lt_compiler_flag:'`
9222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9223 (eval "$lt_compile" 2>conftest.err)
9224 ac_status=$?
9225 cat conftest.err >&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 if (exit $ac_status) && test -s "$ac_outfile"; then
9228 # The compiler can only warn and ignore the option if not recognized
9229 # So say no if there are warnings other than the usual output.
9230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler_rtti_exceptions=yes
9234 fi
9235 fi
9236 $RM -r conftest*
9237
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9240 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9241
9242 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9244 else
9245 :
9246 fi
9247
9248 fi
9249
9250
9251
9252
9253
9254
9255 lt_prog_compiler_wl=
9256 lt_prog_compiler_pic=
9257 lt_prog_compiler_static=
9258
9259
9260 if test "$GCC" = yes; then
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_static='-static'
9263
9264 case $host_os in
9265 aix*)
9266 # All AIX code is PIC.
9267 if test "$host_cpu" = ia64; then
9268 # AIX 5 now supports IA64 processor
9269 lt_prog_compiler_static='-Bstatic'
9270 fi
9271 ;;
9272
9273 amigaos*)
9274 case $host_cpu in
9275 powerpc)
9276 # see comment about AmigaOS4 .so support
9277 lt_prog_compiler_pic='-fPIC'
9278 ;;
9279 m68k)
9280 # FIXME: we need at least 68020 code to build shared libraries, but
9281 # adding the `-m68020' flag to GCC prevents building anything better,
9282 # like `-m68040'.
9283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9284 ;;
9285 esac
9286 ;;
9287
9288 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9289 # PIC is the default for these OSes.
9290 ;;
9291
9292 mingw* | cygwin* | pw32* | os2* | cegcc*)
9293 # This hack is so that the source file can tell whether it is being
9294 # built for inclusion in a dll (and should export symbols for example).
9295 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9296 # (--disable-auto-import) libraries
9297 lt_prog_compiler_pic='-DDLL_EXPORT'
9298 ;;
9299
9300 darwin* | rhapsody*)
9301 # PIC is the default on this platform
9302 # Common symbols not allowed in MH_DYLIB files
9303 lt_prog_compiler_pic='-fno-common'
9304 ;;
9305
9306 haiku*)
9307 # PIC is the default for Haiku.
9308 # The "-static" flag exists, but is broken.
9309 lt_prog_compiler_static=
9310 ;;
9311
9312 hpux*)
9313 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9314 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9315 # sets the default TLS model and affects inlining.
9316 case $host_cpu in
9317 hppa*64*)
9318 # +Z the default
9319 ;;
9320 *)
9321 lt_prog_compiler_pic='-fPIC'
9322 ;;
9323 esac
9324 ;;
9325
9326 interix[3-9]*)
9327 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9328 # Instead, we relocate shared libraries at runtime.
9329 ;;
9330
9331 msdosdjgpp*)
9332 # Just because we use GCC doesn't mean we suddenly get shared libraries
9333 # on systems that don't support them.
9334 lt_prog_compiler_can_build_shared=no
9335 enable_shared=no
9336 ;;
9337
9338 *nto* | *qnx*)
9339 # QNX uses GNU C++, but need to define -shared option too, otherwise
9340 # it will coredump.
9341 lt_prog_compiler_pic='-fPIC -shared'
9342 ;;
9343
9344 sysv4*MP*)
9345 if test -d /usr/nec; then
9346 lt_prog_compiler_pic=-Kconform_pic
9347 fi
9348 ;;
9349
9350 *)
9351 lt_prog_compiler_pic='-fPIC'
9352 ;;
9353 esac
9354
9355 case $cc_basename in
9356 nvcc*) # Cuda Compiler Driver 2.2
9357 lt_prog_compiler_wl='-Xlinker '
9358 if test -n "$lt_prog_compiler_pic"; then
9359 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9360 fi
9361 ;;
9362 esac
9363 else
9364 # PORTME Check for flag to pass linker flags through the system compiler.
9365 case $host_os in
9366 aix*)
9367 lt_prog_compiler_wl='-Wl,'
9368 if test "$host_cpu" = ia64; then
9369 # AIX 5 now supports IA64 processor
9370 lt_prog_compiler_static='-Bstatic'
9371 else
9372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9373 fi
9374 ;;
9375
9376 mingw* | cygwin* | pw32* | os2* | cegcc*)
9377 # This hack is so that the source file can tell whether it is being
9378 # built for inclusion in a dll (and should export symbols for example).
9379 lt_prog_compiler_pic='-DDLL_EXPORT'
9380 ;;
9381
9382 hpux9* | hpux10* | hpux11*)
9383 lt_prog_compiler_wl='-Wl,'
9384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9385 # not for PA HP-UX.
9386 case $host_cpu in
9387 hppa*64*|ia64*)
9388 # +Z the default
9389 ;;
9390 *)
9391 lt_prog_compiler_pic='+Z'
9392 ;;
9393 esac
9394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9395 lt_prog_compiler_static='${wl}-a ${wl}archive'
9396 ;;
9397
9398 irix5* | irix6* | nonstopux*)
9399 lt_prog_compiler_wl='-Wl,'
9400 # PIC (with -KPIC) is the default.
9401 lt_prog_compiler_static='-non_shared'
9402 ;;
9403
9404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9405 case $cc_basename in
9406 # old Intel for x86_64 which still supported -KPIC.
9407 ecc*)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-static'
9411 ;;
9412 # icc used to be incompatible with GCC.
9413 # ICC 10 doesn't accept -KPIC any more.
9414 icc* | ifort*)
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-fPIC'
9417 lt_prog_compiler_static='-static'
9418 ;;
9419 # Lahey Fortran 8.1.
9420 lf95*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='--shared'
9423 lt_prog_compiler_static='--static'
9424 ;;
9425 nagfor*)
9426 # NAG Fortran compiler
9427 lt_prog_compiler_wl='-Wl,-Wl,,'
9428 lt_prog_compiler_pic='-PIC'
9429 lt_prog_compiler_static='-Bstatic'
9430 ;;
9431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432 # Portland Group compilers (*not* the Pentium gcc compiler,
9433 # which looks to be a dead project)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='-fpic'
9436 lt_prog_compiler_static='-Bstatic'
9437 ;;
9438 ccc*)
9439 lt_prog_compiler_wl='-Wl,'
9440 # All Alpha code is PIC.
9441 lt_prog_compiler_static='-non_shared'
9442 ;;
9443 xl* | bgxl* | bgf* | mpixl*)
9444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-qpic'
9447 lt_prog_compiler_static='-qstaticlink'
9448 ;;
9449 *)
9450 case `$CC -V 2>&1 | sed 5q` in
9451 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl=''
9456 ;;
9457 *Sun\ F* | *Sun*Fortran*)
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl='-Qoption ld '
9461 ;;
9462 *Sun\ C*)
9463 # Sun C 5.9
9464 lt_prog_compiler_pic='-KPIC'
9465 lt_prog_compiler_static='-Bstatic'
9466 lt_prog_compiler_wl='-Wl,'
9467 ;;
9468 *Intel*\ [CF]*Compiler*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fPIC'
9471 lt_prog_compiler_static='-static'
9472 ;;
9473 *Portland\ Group*)
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fpic'
9476 lt_prog_compiler_static='-Bstatic'
9477 ;;
9478 esac
9479 ;;
9480 esac
9481 ;;
9482
9483 newsos6)
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9486 ;;
9487
9488 *nto* | *qnx*)
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9490 # it will coredump.
9491 lt_prog_compiler_pic='-fPIC -shared'
9492 ;;
9493
9494 osf3* | osf4* | osf5*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # All OSF/1 code is PIC.
9497 lt_prog_compiler_static='-non_shared'
9498 ;;
9499
9500 rdos*)
9501 lt_prog_compiler_static='-non_shared'
9502 ;;
9503
9504 solaris*)
9505 lt_prog_compiler_pic='-KPIC'
9506 lt_prog_compiler_static='-Bstatic'
9507 case $cc_basename in
9508 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509 lt_prog_compiler_wl='-Qoption ld ';;
9510 *)
9511 lt_prog_compiler_wl='-Wl,';;
9512 esac
9513 ;;
9514
9515 sunos4*)
9516 lt_prog_compiler_wl='-Qoption ld '
9517 lt_prog_compiler_pic='-PIC'
9518 lt_prog_compiler_static='-Bstatic'
9519 ;;
9520
9521 sysv4 | sysv4.2uw2* | sysv4.3*)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 ;;
9526
9527 sysv4*MP*)
9528 if test -d /usr/nec ;then
9529 lt_prog_compiler_pic='-Kconform_pic'
9530 lt_prog_compiler_static='-Bstatic'
9531 fi
9532 ;;
9533
9534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-KPIC'
9537 lt_prog_compiler_static='-Bstatic'
9538 ;;
9539
9540 unicos*)
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_can_build_shared=no
9543 ;;
9544
9545 uts4*)
9546 lt_prog_compiler_pic='-pic'
9547 lt_prog_compiler_static='-Bstatic'
9548 ;;
9549
9550 *)
9551 lt_prog_compiler_can_build_shared=no
9552 ;;
9553 esac
9554 fi
9555
9556 case $host_os in
9557 # For platforms which do not support PIC, -DPIC is meaningless:
9558 *djgpp*)
9559 lt_prog_compiler_pic=
9560 ;;
9561 *)
9562 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9563 ;;
9564 esac
9565
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568 if ${lt_cv_prog_compiler_pic+:} false; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9576
9577 #
9578 # Check to make sure the PIC flag actually works.
9579 #
9580 if test -n "$lt_prog_compiler_pic"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 lt_cv_prog_compiler_pic_works=no
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 # The option is referenced via a variable to avoid confusing sed.
9595 lt_compile=`echo "$ac_compile" | $SED \
9596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598 -e 's:$: $lt_compiler_flag:'`
9599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600 (eval "$lt_compile" 2>conftest.err)
9601 ac_status=$?
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 if (exit $ac_status) && test -s "$ac_outfile"; then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings other than the usual output.
9607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_pic_works=yes
9611 fi
9612 fi
9613 $RM -r conftest*
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9618
9619 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9620 case $lt_prog_compiler_pic in
9621 "" | " "*) ;;
9622 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623 esac
9624 else
9625 lt_prog_compiler_pic=
9626 lt_prog_compiler_can_build_shared=no
9627 fi
9628
9629 fi
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641 #
9642 # Check to make sure the static flag actually works.
9643 #
9644 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647 if ${lt_cv_prog_compiler_static_works+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 lt_cv_prog_compiler_static_works=no
9651 save_LDFLAGS="$LDFLAGS"
9652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655 # The linker can only warn and ignore the option if not recognized
9656 # So say no if there are warnings
9657 if test -s conftest.err; then
9658 # Append any errors to the config.log.
9659 cat conftest.err 1>&5
9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662 if diff conftest.exp conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_static_works=yes
9664 fi
9665 else
9666 lt_cv_prog_compiler_static_works=yes
9667 fi
9668 fi
9669 $RM -r conftest*
9670 LDFLAGS="$save_LDFLAGS"
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675
9676 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9677 :
9678 else
9679 lt_prog_compiler_static=
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690 if ${lt_cv_prog_compiler_c_o+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 lt_cv_prog_compiler_c_o=no
9694 $RM -r conftest 2>/dev/null
9695 mkdir conftest
9696 cd conftest
9697 mkdir out
9698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700 lt_compiler_flag="-o out/conftest2.$ac_objext"
9701 # Insert the option either (1) after the last *FLAGS variable, or
9702 # (2) before a word containing "conftest.", or (3) at the end.
9703 # Note that $ac_compile itself does not contain backslashes and begins
9704 # with a dollar sign (not a hyphen), so the echo should work correctly.
9705 lt_compile=`echo "$ac_compile" | $SED \
9706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708 -e 's:$: $lt_compiler_flag:'`
9709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710 (eval "$lt_compile" 2>out/conftest.err)
9711 ac_status=$?
9712 cat out/conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715 then
9716 # The compiler can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler_c_o=yes
9722 fi
9723 fi
9724 chmod u+w . 2>&5
9725 $RM -r conftest*
9726 # SGI C++ compiler will create directory out/ii_files/ for
9727 # template instantiation
9728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729 $RM out/* && rmdir out
9730 cd ..
9731 $RM -r conftest
9732 $RM -r conftest*
9733
9734 fi
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9737
9738
9739
9740
9741
9742
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745 if ${lt_cv_prog_compiler_c_o+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 lt_cv_prog_compiler_c_o=no
9749 $RM -r conftest 2>/dev/null
9750 mkdir conftest
9751 cd conftest
9752 mkdir out
9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754
9755 lt_compiler_flag="-o out/conftest2.$ac_objext"
9756 # Insert the option either (1) after the last *FLAGS variable, or
9757 # (2) before a word containing "conftest.", or (3) at the end.
9758 # Note that $ac_compile itself does not contain backslashes and begins
9759 # with a dollar sign (not a hyphen), so the echo should work correctly.
9760 lt_compile=`echo "$ac_compile" | $SED \
9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763 -e 's:$: $lt_compiler_flag:'`
9764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765 (eval "$lt_compile" 2>out/conftest.err)
9766 ac_status=$?
9767 cat out/conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770 then
9771 # The compiler can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_c_o=yes
9777 fi
9778 fi
9779 chmod u+w . 2>&5
9780 $RM -r conftest*
9781 # SGI C++ compiler will create directory out/ii_files/ for
9782 # template instantiation
9783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784 $RM out/* && rmdir out
9785 cd ..
9786 $RM -r conftest
9787 $RM -r conftest*
9788
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9792
9793
9794
9795
9796 hard_links="nottested"
9797 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9798 # do not overwrite the value of need_locks provided by the user
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800 $as_echo_n "checking if we can lock with hard links... " >&6; }
9801 hard_links=yes
9802 $RM -r conftest*
9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804 touch conftest.a
9805 ln conftest.a conftest.b 2>&5 || hard_links=no
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808 $as_echo "$hard_links" >&6; }
9809 if test "$hard_links" = no; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9811 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9812 need_locks=warn
9813 fi
9814 else
9815 need_locks=no
9816 fi
9817
9818
9819
9820
9821
9822
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825
9826 runpath_var=
9827 allow_undefined_flag=
9828 always_export_symbols=no
9829 archive_cmds=
9830 archive_expsym_cmds=
9831 compiler_needs_object=no
9832 enable_shared_with_static_runtimes=no
9833 export_dynamic_flag_spec=
9834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835 hardcode_automatic=no
9836 hardcode_direct=no
9837 hardcode_direct_absolute=no
9838 hardcode_libdir_flag_spec=
9839 hardcode_libdir_separator=
9840 hardcode_minus_L=no
9841 hardcode_shlibpath_var=unsupported
9842 inherit_rpath=no
9843 link_all_deplibs=unknown
9844 module_cmds=
9845 module_expsym_cmds=
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9852 include_expsyms=
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9856 # as well as any symbol that contains `d'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9865
9866 case $host_os in
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++.
9871 if test "$GCC" != yes; then
9872 with_gnu_ld=no
9873 fi
9874 ;;
9875 interix*)
9876 # we just hope/assume this is gcc and not c89 (= MSVC++)
9877 with_gnu_ld=yes
9878 ;;
9879 openbsd*)
9880 with_gnu_ld=no
9881 ;;
9882 esac
9883
9884 ld_shlibs=yes
9885
9886 # On some targets, GNU ld is compatible enough with the native linker
9887 # that we're better off using the native interface for both.
9888 lt_use_gnu_ld_interface=no
9889 if test "$with_gnu_ld" = yes; then
9890 case $host_os in
9891 aix*)
9892 # The AIX port of GNU ld has always aspired to compatibility
9893 # with the native linker. However, as the warning in the GNU ld
9894 # block says, versions before 2.19.5* couldn't really create working
9895 # shared libraries, regardless of the interface used.
9896 case `$LD -v 2>&1` in
9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9900 *)
9901 lt_use_gnu_ld_interface=yes
9902 ;;
9903 esac
9904 ;;
9905 *)
9906 lt_use_gnu_ld_interface=yes
9907 ;;
9908 esac
9909 fi
9910
9911 if test "$lt_use_gnu_ld_interface" = yes; then
9912 # If archive_cmds runs LD, not CC, wlarc should be empty
9913 wlarc='${wl}'
9914
9915 # Set some defaults for GNU ld with shared library support. These
9916 # are reset later if shared libraries are not supported. Putting them
9917 # here allows them to be overridden if necessary.
9918 runpath_var=LD_RUN_PATH
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 export_dynamic_flag_spec='${wl}--export-dynamic'
9921 # ancient GNU ld didn't support --whole-archive et. al.
9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9924 else
9925 whole_archive_flag_spec=
9926 fi
9927 supports_anon_versioning=no
9928 case `$LD -v 2>&1` in
9929 *GNU\ gold*) supports_anon_versioning=yes ;;
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933 *\ 2.11.*) ;; # other 2.11 versions
9934 *) supports_anon_versioning=yes ;;
9935 esac
9936
9937 # See if GNU ld supports shared libraries.
9938 case $host_os in
9939 aix[3-9]*)
9940 # On AIX/PPC, the GNU linker is very broken
9941 if test "$host_cpu" != ia64; then
9942 ld_shlibs=no
9943 cat <<_LT_EOF 1>&2
9944
9945 *** Warning: the GNU linker, at least up to release 2.19, is reported
9946 *** to be unable to reliably create shared libraries on AIX.
9947 *** Therefore, libtool is disabling shared libraries support. If you
9948 *** really care for shared libraries, you may want to install binutils
9949 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950 *** You will then need to restart the configuration process.
9951
9952 _LT_EOF
9953 fi
9954 ;;
9955
9956 amigaos*)
9957 case $host_cpu in
9958 powerpc)
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9962 ;;
9963 m68k)
9964 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)'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_minus_L=yes
9967 ;;
9968 esac
9969 ;;
9970
9971 beos*)
9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9973 allow_undefined_flag=unsupported
9974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9975 # support --undefined. This deserves some investigation. FIXME
9976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 else
9978 ld_shlibs=no
9979 fi
9980 ;;
9981
9982 cygwin* | mingw* | pw32* | cegcc*)
9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984 # as there is no search path for DLLs.
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 export_dynamic_flag_spec='${wl}--export-all-symbols'
9987 allow_undefined_flag=unsupported
9988 always_export_symbols=no
9989 enable_shared_with_static_runtimes=yes
9990 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'
9991 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9992
9993 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9995 # If the export-symbols file already is a .def file (1st line
9996 # is EXPORTS), use it as is; otherwise, prepend...
9997 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9998 cp $export_symbols $output_objdir/$soname.def;
9999 else
10000 echo EXPORTS > $output_objdir/$soname.def;
10001 cat $export_symbols >> $output_objdir/$soname.def;
10002 fi~
10003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10004 else
10005 ld_shlibs=no
10006 fi
10007 ;;
10008
10009 haiku*)
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10011 link_all_deplibs=yes
10012 ;;
10013
10014 interix[3-9]*)
10015 hardcode_direct=no
10016 hardcode_shlibpath_var=no
10017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10018 export_dynamic_flag_spec='${wl}-E'
10019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10020 # Instead, shared libraries are loaded at an image base (0x10000000 by
10021 # default) and relocated if they conflict, which is a slow very memory
10022 # consuming and fragmenting process. To avoid this, we pick a random,
10023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10026 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'
10027 ;;
10028
10029 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10030 tmp_diet=no
10031 if test "$host_os" = linux-dietlibc; then
10032 case $cc_basename in
10033 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10034 esac
10035 fi
10036 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10037 && test "$tmp_diet" = no
10038 then
10039 tmp_addflag=' $pic_flag'
10040 tmp_sharedflag='-shared'
10041 case $cc_basename,$host_cpu in
10042 pgcc*) # Portland Group C compiler
10043 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'
10044 tmp_addflag=' $pic_flag'
10045 ;;
10046 pgf77* | pgf90* | pgf95* | pgfortran*)
10047 # Portland Group f77 and f90 compilers
10048 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'
10049 tmp_addflag=' $pic_flag -Mnomain' ;;
10050 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10051 tmp_addflag=' -i_dynamic' ;;
10052 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10053 tmp_addflag=' -i_dynamic -nofor_main' ;;
10054 ifc* | ifort*) # Intel Fortran compiler
10055 tmp_addflag=' -nofor_main' ;;
10056 lf95*) # Lahey Fortran 8.1
10057 whole_archive_flag_spec=
10058 tmp_sharedflag='--shared' ;;
10059 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10060 tmp_sharedflag='-qmkshrobj'
10061 tmp_addflag= ;;
10062 nvcc*) # Cuda Compiler Driver 2.2
10063 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'
10064 compiler_needs_object=yes
10065 ;;
10066 esac
10067 case `$CC -V 2>&1 | sed 5q` in
10068 *Sun\ C*) # Sun C 5.9
10069 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'
10070 compiler_needs_object=yes
10071 tmp_sharedflag='-G' ;;
10072 *Sun\ F*) # Sun Fortran 8.3
10073 tmp_sharedflag='-G' ;;
10074 esac
10075 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076
10077 if test "x$supports_anon_versioning" = xyes; then
10078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10080 echo "local: *; };" >> $output_objdir/$libname.ver~
10081 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10082 fi
10083
10084 case $cc_basename in
10085 xlf* | bgf* | bgxlf* | mpixlf*)
10086 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10087 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10090 if test "x$supports_anon_versioning" = xyes; then
10091 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10093 echo "local: *; };" >> $output_objdir/$libname.ver~
10094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10095 fi
10096 ;;
10097 esac
10098 else
10099 ld_shlibs=no
10100 fi
10101 ;;
10102
10103 netbsd*)
10104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10106 wlarc=
10107 else
10108 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10110 fi
10111 ;;
10112
10113 solaris*)
10114 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10115 ld_shlibs=no
10116 cat <<_LT_EOF 1>&2
10117
10118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10119 *** create shared libraries on Solaris systems. Therefore, libtool
10120 *** is disabling shared libraries support. We urge you to upgrade GNU
10121 *** binutils to release 2.9.1 or newer. Another option is to modify
10122 *** your PATH or compiler configuration so that the native linker is
10123 *** used, and then restart.
10124
10125 _LT_EOF
10126 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10129 else
10130 ld_shlibs=no
10131 fi
10132 ;;
10133
10134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10135 case `$LD -v 2>&1` in
10136 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10137 ld_shlibs=no
10138 cat <<_LT_EOF 1>&2
10139
10140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10141 *** reliably create shared libraries on SCO systems. Therefore, libtool
10142 *** is disabling shared libraries support. We urge you to upgrade GNU
10143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10144 *** your PATH or compiler configuration so that the native linker is
10145 *** used, and then restart.
10146
10147 _LT_EOF
10148 ;;
10149 *)
10150 # For security reasons, it is highly recommended that you always
10151 # use absolute paths for naming shared libraries, and exclude the
10152 # DT_RUNPATH tag from executables and libraries. But doing so
10153 # requires that you compile everything twice, which is a pain.
10154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10158 else
10159 ld_shlibs=no
10160 fi
10161 ;;
10162 esac
10163 ;;
10164
10165 sunos4*)
10166 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167 wlarc=
10168 hardcode_direct=yes
10169 hardcode_shlibpath_var=no
10170 ;;
10171
10172 *)
10173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10176 else
10177 ld_shlibs=no
10178 fi
10179 ;;
10180 esac
10181
10182 if test "$ld_shlibs" = no; then
10183 runpath_var=
10184 hardcode_libdir_flag_spec=
10185 export_dynamic_flag_spec=
10186 whole_archive_flag_spec=
10187 fi
10188 else
10189 # PORTME fill in a description of your system's linker (not GNU ld)
10190 case $host_os in
10191 aix3*)
10192 allow_undefined_flag=unsupported
10193 always_export_symbols=yes
10194 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'
10195 # Note: this linker hardcodes the directories in LIBPATH if there
10196 # are no directories specified by -L.
10197 hardcode_minus_L=yes
10198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10199 # Neither direct hardcoding nor static linking is supported with a
10200 # broken collect2.
10201 hardcode_direct=unsupported
10202 fi
10203 ;;
10204
10205 aix[4-9]*)
10206 if test "$host_cpu" = ia64; then
10207 # On IA64, the linker does run time linking by default, so we don't
10208 # have to do anything special.
10209 aix_use_runtimelinking=no
10210 exp_sym_flag='-Bexport'
10211 no_entry_flag=""
10212 else
10213 # If we're using GNU nm, then we don't want the "-C" option.
10214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10215 # Also, AIX nm treats weak defined symbols like other global
10216 # defined symbols, whereas GNU nm marks them as "W".
10217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10218 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'
10219 else
10220 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'
10221 fi
10222 aix_use_runtimelinking=no
10223
10224 # Test if we are trying to use run time linking or normal
10225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10226 # need to do runtime linking.
10227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10228 for ld_flag in $LDFLAGS; do
10229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10230 aix_use_runtimelinking=yes
10231 break
10232 fi
10233 done
10234 ;;
10235 esac
10236
10237 exp_sym_flag='-bexport'
10238 no_entry_flag='-bnoentry'
10239 fi
10240
10241 # When large executables or shared objects are built, AIX ld can
10242 # have problems creating the table of contents. If linking a library
10243 # or program results in "error TOC overflow" add -mminimal-toc to
10244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10246
10247 archive_cmds=''
10248 hardcode_direct=yes
10249 hardcode_direct_absolute=yes
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 file_list_spec='${wl}-f,'
10253
10254 if test "$GCC" = yes; then
10255 case $host_os in aix4.[012]|aix4.[012].*)
10256 # We only want to do this on AIX 4.2 and lower, the check
10257 # below for broken collect2 doesn't work under 4.3+
10258 collect2name=`${CC} -print-prog-name=collect2`
10259 if test -f "$collect2name" &&
10260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10261 then
10262 # We have reworked collect2
10263 :
10264 else
10265 # We have old collect2
10266 hardcode_direct=unsupported
10267 # It fails to find uninstalled libraries when the uninstalled
10268 # path is not listed in the libpath. Setting hardcode_minus_L
10269 # to unsupported forces relinking
10270 hardcode_minus_L=yes
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_libdir_separator=
10273 fi
10274 ;;
10275 esac
10276 shared_flag='-shared'
10277 if test "$aix_use_runtimelinking" = yes; then
10278 shared_flag="$shared_flag "'${wl}-G'
10279 fi
10280 else
10281 # not using gcc
10282 if test "$host_cpu" = ia64; then
10283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284 # chokes on -Wl,-G. The following line is correct:
10285 shared_flag='-G'
10286 else
10287 if test "$aix_use_runtimelinking" = yes; then
10288 shared_flag='${wl}-G'
10289 else
10290 shared_flag='${wl}-bM:SRE'
10291 fi
10292 fi
10293 fi
10294
10295 export_dynamic_flag_spec='${wl}-bexpall'
10296 # It seems that -bexpall does not export symbols beginning with
10297 # underscore (_), so it is better to generate a list of symbols to export.
10298 always_export_symbols=yes
10299 if test "$aix_use_runtimelinking" = yes; then
10300 # Warning - without using the other runtime loading flags (-brtl),
10301 # -berok will link without error, but may produce a broken library.
10302 allow_undefined_flag='-berok'
10303 # Determine the default libpath from the value encoded in an
10304 # empty executable.
10305 if test "${lt_cv_aix_libpath+set}" = set; then
10306 aix_libpath=$lt_cv_aix_libpath
10307 else
10308 if ${lt_cv_aix_libpath_+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313
10314 int
10315 main ()
10316 {
10317
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323
10324 lt_aix_libpath_sed='
10325 /Import File Strings/,/^$/ {
10326 /^0/ {
10327 s/^0 *\([^ ]*\) *$/\1/
10328 p
10329 }
10330 }'
10331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 # Check for a 64-bit object if we didn't find anything.
10333 if test -z "$lt_cv_aix_libpath_"; then
10334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10335 fi
10336 fi
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 if test -z "$lt_cv_aix_libpath_"; then
10340 lt_cv_aix_libpath_="/usr/lib:/lib"
10341 fi
10342
10343 fi
10344
10345 aix_libpath=$lt_cv_aix_libpath_
10346 fi
10347
10348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10349 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"
10350 else
10351 if test "$host_cpu" = ia64; then
10352 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10353 allow_undefined_flag="-z nodefs"
10354 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"
10355 else
10356 # Determine the default libpath from the value encoded in an
10357 # empty executable.
10358 if test "${lt_cv_aix_libpath+set}" = set; then
10359 aix_libpath=$lt_cv_aix_libpath
10360 else
10361 if ${lt_cv_aix_libpath_+:} false; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366
10367 int
10368 main ()
10369 {
10370
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376
10377 lt_aix_libpath_sed='
10378 /Import File Strings/,/^$/ {
10379 /^0/ {
10380 s/^0 *\([^ ]*\) *$/\1/
10381 p
10382 }
10383 }'
10384 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10385 # Check for a 64-bit object if we didn't find anything.
10386 if test -z "$lt_cv_aix_libpath_"; then
10387 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388 fi
10389 fi
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 if test -z "$lt_cv_aix_libpath_"; then
10393 lt_cv_aix_libpath_="/usr/lib:/lib"
10394 fi
10395
10396 fi
10397
10398 aix_libpath=$lt_cv_aix_libpath_
10399 fi
10400
10401 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10402 # Warning - without using the other run time loading flags,
10403 # -berok will link without error, but may produce a broken library.
10404 no_undefined_flag=' ${wl}-bernotok'
10405 allow_undefined_flag=' ${wl}-berok'
10406 if test "$with_gnu_ld" = yes; then
10407 # We only use this code for GNU lds that support --whole-archive.
10408 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10409 else
10410 # Exported symbols can be pulled into shared objects from archives
10411 whole_archive_flag_spec='$convenience'
10412 fi
10413 archive_cmds_need_lc=yes
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 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'
10416 fi
10417 fi
10418 ;;
10419
10420 amigaos*)
10421 case $host_cpu in
10422 powerpc)
10423 # see comment about AmigaOS4 .so support
10424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425 archive_expsym_cmds=''
10426 ;;
10427 m68k)
10428 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)'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_minus_L=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 bsdi[45]*)
10436 export_dynamic_flag_spec=-rdynamic
10437 ;;
10438
10439 cygwin* | mingw* | pw32* | cegcc*)
10440 # When not using gcc, we currently assume that we are using
10441 # Microsoft Visual C++.
10442 # hardcode_libdir_flag_spec is actually meaningless, as there is
10443 # no search path for DLLs.
10444 case $cc_basename in
10445 cl*)
10446 # Native MSVC
10447 hardcode_libdir_flag_spec=' '
10448 allow_undefined_flag=unsupported
10449 always_export_symbols=yes
10450 file_list_spec='@'
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=".dll"
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10457 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10458 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10459 else
10460 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10461 fi~
10462 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10463 linknames='
10464 # The linker will not automatically build a static lib if we build a DLL.
10465 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10466 enable_shared_with_static_runtimes=yes
10467 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10469 # Don't use ranlib
10470 old_postinstall_cmds='chmod 644 $oldlib'
10471 postlink_cmds='lt_outputfile="@OUTPUT@"~
10472 lt_tool_outputfile="@TOOL_OUTPUT@"~
10473 case $lt_outputfile in
10474 *.exe|*.EXE) ;;
10475 *)
10476 lt_outputfile="$lt_outputfile.exe"
10477 lt_tool_outputfile="$lt_tool_outputfile.exe"
10478 ;;
10479 esac~
10480 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10481 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10482 $RM "$lt_outputfile.manifest";
10483 fi'
10484 ;;
10485 *)
10486 # Assume MSVC wrapper
10487 hardcode_libdir_flag_spec=' '
10488 allow_undefined_flag=unsupported
10489 # Tell ltmain to make .lib files, not .a files.
10490 libext=lib
10491 # Tell ltmain to make .dll files, not .so files.
10492 shrext_cmds=".dll"
10493 # FIXME: Setting linknames here is a bad hack.
10494 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10495 # The linker will automatically build a .lib file if we build a DLL.
10496 old_archive_from_new_cmds='true'
10497 # FIXME: Should let the user specify the lib program.
10498 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10499 enable_shared_with_static_runtimes=yes
10500 ;;
10501 esac
10502 ;;
10503
10504 darwin* | rhapsody*)
10505
10506
10507 archive_cmds_need_lc=no
10508 hardcode_direct=no
10509 hardcode_automatic=yes
10510 hardcode_shlibpath_var=unsupported
10511 if test "$lt_cv_ld_force_load" = "yes"; then
10512 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\"`'
10513
10514 else
10515 whole_archive_flag_spec=''
10516 fi
10517 link_all_deplibs=yes
10518 allow_undefined_flag="$_lt_dar_allow_undefined"
10519 case $cc_basename in
10520 ifort*) _lt_dar_can_shared=yes ;;
10521 *) _lt_dar_can_shared=$GCC ;;
10522 esac
10523 if test "$_lt_dar_can_shared" = "yes"; then
10524 output_verbose_link_cmd=func_echo_all
10525 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10526 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10527 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}"
10528 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}"
10529
10530 else
10531 ld_shlibs=no
10532 fi
10533
10534 ;;
10535
10536 dgux*)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10543 # support. Future versions do this automatically, but an explicit c++rt0.o
10544 # does not break anything, and helps significantly (at the cost of a little
10545 # extra space).
10546 freebsd2.2*)
10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10554 freebsd2.*)
10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=yes
10557 hardcode_minus_L=yes
10558 hardcode_shlibpath_var=no
10559 ;;
10560
10561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10562 freebsd* | dragonfly*)
10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10564 hardcode_libdir_flag_spec='-R$libdir'
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 hpux9*)
10570 if test "$GCC" = yes; then
10571 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'
10572 else
10573 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'
10574 fi
10575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10576 hardcode_libdir_separator=:
10577 hardcode_direct=yes
10578
10579 # hardcode_minus_L: Not really in the search PATH,
10580 # but as the default location of the library.
10581 hardcode_minus_L=yes
10582 export_dynamic_flag_spec='${wl}-E'
10583 ;;
10584
10585 hpux10*)
10586 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10587 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10588 else
10589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10590 fi
10591 if test "$with_gnu_ld" = no; then
10592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10593 hardcode_libdir_separator=:
10594 hardcode_direct=yes
10595 hardcode_direct_absolute=yes
10596 export_dynamic_flag_spec='${wl}-E'
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10600 fi
10601 ;;
10602
10603 hpux11*)
10604 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10605 case $host_cpu in
10606 hppa*64*)
10607 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10608 ;;
10609 ia64*)
10610 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10611 ;;
10612 *)
10613 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10614 ;;
10615 esac
10616 else
10617 case $host_cpu in
10618 hppa*64*)
10619 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 ia64*)
10622 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 *)
10625
10626 # Older versions of the 11.00 compiler do not understand -b yet
10627 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10629 $as_echo_n "checking if $CC understands -b... " >&6; }
10630 if ${lt_cv_prog_compiler__b+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 lt_cv_prog_compiler__b=no
10634 save_LDFLAGS="$LDFLAGS"
10635 LDFLAGS="$LDFLAGS -b"
10636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10638 # The linker can only warn and ignore the option if not recognized
10639 # So say no if there are warnings
10640 if test -s conftest.err; then
10641 # Append any errors to the config.log.
10642 cat conftest.err 1>&5
10643 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10645 if diff conftest.exp conftest.er2 >/dev/null; then
10646 lt_cv_prog_compiler__b=yes
10647 fi
10648 else
10649 lt_cv_prog_compiler__b=yes
10650 fi
10651 fi
10652 $RM -r conftest*
10653 LDFLAGS="$save_LDFLAGS"
10654
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10657 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10658
10659 if test x"$lt_cv_prog_compiler__b" = xyes; then
10660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10661 else
10662 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10663 fi
10664
10665 ;;
10666 esac
10667 fi
10668 if test "$with_gnu_ld" = no; then
10669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10670 hardcode_libdir_separator=:
10671
10672 case $host_cpu in
10673 hppa*64*|ia64*)
10674 hardcode_direct=no
10675 hardcode_shlibpath_var=no
10676 ;;
10677 *)
10678 hardcode_direct=yes
10679 hardcode_direct_absolute=yes
10680 export_dynamic_flag_spec='${wl}-E'
10681
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10685 ;;
10686 esac
10687 fi
10688 ;;
10689
10690 irix5* | irix6* | nonstopux*)
10691 if test "$GCC" = yes; then
10692 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'
10693 # Try to use the -exported_symbol ld option, if it does not
10694 # work, assume that -exports_file does not work either and
10695 # implicitly export all symbols.
10696 # This should be the same for all languages, so no per-tag cache variable.
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10698 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10699 if ${lt_cv_irix_exported_symbol+:} false; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 save_LDFLAGS="$LDFLAGS"
10703 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706 int foo (void) { return 0; }
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 lt_cv_irix_exported_symbol=yes
10710 else
10711 lt_cv_irix_exported_symbol=no
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LDFLAGS="$save_LDFLAGS"
10716 fi
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10718 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10719 if test "$lt_cv_irix_exported_symbol" = yes; then
10720 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'
10721 fi
10722 else
10723 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'
10724 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'
10725 fi
10726 archive_cmds_need_lc='no'
10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728 hardcode_libdir_separator=:
10729 inherit_rpath=yes
10730 link_all_deplibs=yes
10731 ;;
10732
10733 netbsd*)
10734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10736 else
10737 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10738 fi
10739 hardcode_libdir_flag_spec='-R$libdir'
10740 hardcode_direct=yes
10741 hardcode_shlibpath_var=no
10742 ;;
10743
10744 newsos6)
10745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10746 hardcode_direct=yes
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10749 hardcode_shlibpath_var=no
10750 ;;
10751
10752 *nto* | *qnx*)
10753 ;;
10754
10755 openbsd*)
10756 if test -f /usr/libexec/ld.so; then
10757 hardcode_direct=yes
10758 hardcode_shlibpath_var=no
10759 hardcode_direct_absolute=yes
10760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10764 export_dynamic_flag_spec='${wl}-E'
10765 else
10766 case $host_os in
10767 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10769 hardcode_libdir_flag_spec='-R$libdir'
10770 ;;
10771 *)
10772 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10774 ;;
10775 esac
10776 fi
10777 else
10778 ld_shlibs=no
10779 fi
10780 ;;
10781
10782 os2*)
10783 hardcode_libdir_flag_spec='-L$libdir'
10784 hardcode_minus_L=yes
10785 allow_undefined_flag=unsupported
10786 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'
10787 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10788 ;;
10789
10790 osf3*)
10791 if test "$GCC" = yes; then
10792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10793 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'
10794 else
10795 allow_undefined_flag=' -expect_unresolved \*'
10796 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'
10797 fi
10798 archive_cmds_need_lc='no'
10799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10800 hardcode_libdir_separator=:
10801 ;;
10802
10803 osf4* | osf5*) # as osf3* with the addition of -msym flag
10804 if test "$GCC" = yes; then
10805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10806 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'
10807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808 else
10809 allow_undefined_flag=' -expect_unresolved \*'
10810 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'
10811 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~
10812 $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'
10813
10814 # Both c and cxx compiler support -rpath directly
10815 hardcode_libdir_flag_spec='-rpath $libdir'
10816 fi
10817 archive_cmds_need_lc='no'
10818 hardcode_libdir_separator=:
10819 ;;
10820
10821 solaris*)
10822 no_undefined_flag=' -z defs'
10823 if test "$GCC" = yes; then
10824 wlarc='${wl}'
10825 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10827 $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'
10828 else
10829 case `$CC -V 2>&1` in
10830 *"Compilers 5.0"*)
10831 wlarc=''
10832 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10835 ;;
10836 *)
10837 wlarc='${wl}'
10838 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10840 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10841 ;;
10842 esac
10843 fi
10844 hardcode_libdir_flag_spec='-R$libdir'
10845 hardcode_shlibpath_var=no
10846 case $host_os in
10847 solaris2.[0-5] | solaris2.[0-5].*) ;;
10848 *)
10849 # The compiler driver will combine and reorder linker options,
10850 # but understands `-z linker_flag'. GCC discards it without `$wl',
10851 # but is careful enough not to reorder.
10852 # Supported since Solaris 2.6 (maybe 2.5.1?)
10853 if test "$GCC" = yes; then
10854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10855 else
10856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10857 fi
10858 ;;
10859 esac
10860 link_all_deplibs=yes
10861 ;;
10862
10863 sunos4*)
10864 if test "x$host_vendor" = xsequent; then
10865 # Use $CC to link under sequent, because it throws in some extra .o
10866 # files that make .init and .fini sections work.
10867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10868 else
10869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10870 fi
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_direct=yes
10873 hardcode_minus_L=yes
10874 hardcode_shlibpath_var=no
10875 ;;
10876
10877 sysv4)
10878 case $host_vendor in
10879 sni)
10880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10881 hardcode_direct=yes # is this really true???
10882 ;;
10883 siemens)
10884 ## LD is ld it makes a PLAMLIB
10885 ## CC just makes a GrossModule.
10886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10887 reload_cmds='$CC -r -o $output$reload_objs'
10888 hardcode_direct=no
10889 ;;
10890 motorola)
10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10893 ;;
10894 esac
10895 runpath_var='LD_RUN_PATH'
10896 hardcode_shlibpath_var=no
10897 ;;
10898
10899 sysv4.3*)
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_shlibpath_var=no
10902 export_dynamic_flag_spec='-Bexport'
10903 ;;
10904
10905 sysv4*MP*)
10906 if test -d /usr/nec; then
10907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 hardcode_shlibpath_var=no
10909 runpath_var=LD_RUN_PATH
10910 hardcode_runpath_var=yes
10911 ld_shlibs=yes
10912 fi
10913 ;;
10914
10915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10916 no_undefined_flag='${wl}-z,text'
10917 archive_cmds_need_lc=no
10918 hardcode_shlibpath_var=no
10919 runpath_var='LD_RUN_PATH'
10920
10921 if test "$GCC" = yes; then
10922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 else
10925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 fi
10928 ;;
10929
10930 sysv5* | sco3.2v5* | sco5v6*)
10931 # Note: We can NOT use -z defs as we might desire, because we do not
10932 # link with -lc, and that would cause any symbols used from libc to
10933 # always be unresolved, which means just about no library would
10934 # ever link correctly. If we're not using GNU ld we use -z text
10935 # though, which does catch some bad symbols but isn't as heavy-handed
10936 # as -z defs.
10937 no_undefined_flag='${wl}-z,text'
10938 allow_undefined_flag='${wl}-z,nodefs'
10939 archive_cmds_need_lc=no
10940 hardcode_shlibpath_var=no
10941 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10942 hardcode_libdir_separator=':'
10943 link_all_deplibs=yes
10944 export_dynamic_flag_spec='${wl}-Bexport'
10945 runpath_var='LD_RUN_PATH'
10946
10947 if test "$GCC" = yes; then
10948 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 else
10951 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 fi
10954 ;;
10955
10956 uts4*)
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_libdir_flag_spec='-L$libdir'
10959 hardcode_shlibpath_var=no
10960 ;;
10961
10962 *)
10963 ld_shlibs=no
10964 ;;
10965 esac
10966
10967 if test x$host_vendor = xsni; then
10968 case $host in
10969 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10970 export_dynamic_flag_spec='${wl}-Blargedynsym'
10971 ;;
10972 esac
10973 fi
10974 fi
10975
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10977 $as_echo "$ld_shlibs" >&6; }
10978 test "$ld_shlibs" = no && can_build_shared=no
10979
10980 with_gnu_ld=$with_gnu_ld
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996 #
10997 # Do we need to explicitly link libc?
10998 #
10999 case "x$archive_cmds_need_lc" in
11000 x|xyes)
11001 # Assume -lc should be added
11002 archive_cmds_need_lc=yes
11003
11004 if test "$enable_shared" = yes && test "$GCC" = yes; then
11005 case $archive_cmds in
11006 *'~'*)
11007 # FIXME: we may have to deal with multi-command sequences.
11008 ;;
11009 '$CC '*)
11010 # Test whether the compiler implicitly links with -lc since on some
11011 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11012 # to ld, don't add -lc before -lgcc.
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11014 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11015 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 $RM -r conftest*
11019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11020
11021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11022 (eval $ac_compile) 2>&5
11023 ac_status=$?
11024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11025 test $ac_status = 0; } 2>conftest.err; then
11026 soname=conftest
11027 lib=conftest
11028 libobjs=conftest.$ac_objext
11029 deplibs=
11030 wl=$lt_prog_compiler_wl
11031 pic_flag=$lt_prog_compiler_pic
11032 compiler_flags=-v
11033 linker_flags=-v
11034 verstring=
11035 output_objdir=.
11036 libname=conftest
11037 lt_save_allow_undefined_flag=$allow_undefined_flag
11038 allow_undefined_flag=
11039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11040 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11041 ac_status=$?
11042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043 test $ac_status = 0; }
11044 then
11045 lt_cv_archive_cmds_need_lc=no
11046 else
11047 lt_cv_archive_cmds_need_lc=yes
11048 fi
11049 allow_undefined_flag=$lt_save_allow_undefined_flag
11050 else
11051 cat conftest.err 1>&5
11052 fi
11053 $RM -r conftest*
11054
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11057 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11058 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11059 ;;
11060 esac
11061 fi
11062 ;;
11063 esac
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11217 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11218
11219 if test "$GCC" = yes; then
11220 case $host_os in
11221 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11222 *) lt_awk_arg="/^libraries:/" ;;
11223 esac
11224 case $host_os in
11225 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11226 *) lt_sed_strip_eq="s,=/,/,g" ;;
11227 esac
11228 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11229 case $lt_search_path_spec in
11230 *\;*)
11231 # if the path contains ";" then we assume it to be the separator
11232 # otherwise default to the standard path separator (i.e. ":") - it is
11233 # assumed that no part of a normal pathname contains ";" but that should
11234 # okay in the real world where ";" in dirpaths is itself problematic.
11235 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11236 ;;
11237 *)
11238 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11239 ;;
11240 esac
11241 # Ok, now we have the path, separated by spaces, we can step through it
11242 # and add multilib dir if necessary.
11243 lt_tmp_lt_search_path_spec=
11244 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11245 for lt_sys_path in $lt_search_path_spec; do
11246 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11247 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11248 else
11249 test -d "$lt_sys_path" && \
11250 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11251 fi
11252 done
11253 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11254 BEGIN {RS=" "; FS="/|\n";} {
11255 lt_foo="";
11256 lt_count=0;
11257 for (lt_i = NF; lt_i > 0; lt_i--) {
11258 if ($lt_i != "" && $lt_i != ".") {
11259 if ($lt_i == "..") {
11260 lt_count++;
11261 } else {
11262 if (lt_count == 0) {
11263 lt_foo="/" $lt_i lt_foo;
11264 } else {
11265 lt_count--;
11266 }
11267 }
11268 }
11269 }
11270 if (lt_foo != "") { lt_freq[lt_foo]++; }
11271 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11272 }'`
11273 # AWK program above erroneously prepends '/' to C:/dos/paths
11274 # for these hosts.
11275 case $host_os in
11276 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11277 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11278 esac
11279 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11280 else
11281 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11282 fi
11283 library_names_spec=
11284 libname_spec='lib$name'
11285 soname_spec=
11286 shrext_cmds=".so"
11287 postinstall_cmds=
11288 postuninstall_cmds=
11289 finish_cmds=
11290 finish_eval=
11291 shlibpath_var=
11292 shlibpath_overrides_runpath=unknown
11293 version_type=none
11294 dynamic_linker="$host_os ld.so"
11295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11296 need_lib_prefix=unknown
11297 hardcode_into_libs=no
11298
11299 # when you set need_version to no, make sure it does not cause -set_version
11300 # flags to be left without arguments
11301 need_version=unknown
11302
11303 case $host_os in
11304 aix3*)
11305 version_type=linux # correct to gnu/linux during the next big refactor
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11307 shlibpath_var=LIBPATH
11308
11309 # AIX 3 has no versioning support, so we append a major version to the name.
11310 soname_spec='${libname}${release}${shared_ext}$major'
11311 ;;
11312
11313 aix[4-9]*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 need_lib_prefix=no
11316 need_version=no
11317 hardcode_into_libs=yes
11318 if test "$host_cpu" = ia64; then
11319 # AIX 5 supports IA64
11320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 else
11323 # With GCC up to 2.95.x, collect2 would create an import file
11324 # for dependence libraries. The import file would start with
11325 # the line `#! .'. This would cause the generated library to
11326 # depend on `.', always an invalid library. This was fixed in
11327 # development snapshots of GCC prior to 3.0.
11328 case $host_os in
11329 aix4 | aix4.[01] | aix4.[01].*)
11330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11331 echo ' yes '
11332 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11333 :
11334 else
11335 can_build_shared=no
11336 fi
11337 ;;
11338 esac
11339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11340 # soname into executable. Probably we can add versioning support to
11341 # collect2, so additional links can be useful in future.
11342 if test "$aix_use_runtimelinking" = yes; then
11343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11344 # instead of lib<name>.a to let people know that these are not
11345 # typical AIX shared libraries.
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 else
11348 # We preserve .a as extension for shared libraries through AIX4.2
11349 # and later when we are not doing run time linking.
11350 library_names_spec='${libname}${release}.a $libname.a'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 fi
11353 shlibpath_var=LIBPATH
11354 fi
11355 ;;
11356
11357 amigaos*)
11358 case $host_cpu in
11359 powerpc)
11360 # Since July 2007 AmigaOS4 officially supports .so libraries.
11361 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 ;;
11364 m68k)
11365 library_names_spec='$libname.ixlibrary $libname.a'
11366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11367 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'
11368 ;;
11369 esac
11370 ;;
11371
11372 beos*)
11373 library_names_spec='${libname}${shared_ext}'
11374 dynamic_linker="$host_os ld.so"
11375 shlibpath_var=LIBRARY_PATH
11376 ;;
11377
11378 bsdi[45]*)
11379 version_type=linux # correct to gnu/linux during the next big refactor
11380 need_version=no
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11387 # the default ld.so.conf also contains /usr/contrib/lib and
11388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11389 # libtool to hard-code these into programs
11390 ;;
11391
11392 cygwin* | mingw* | pw32* | cegcc*)
11393 version_type=windows
11394 shrext_cmds=".dll"
11395 need_version=no
11396 need_lib_prefix=no
11397
11398 case $GCC,$cc_basename in
11399 yes,*)
11400 # gcc
11401 library_names_spec='$libname.dll.a'
11402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11403 postinstall_cmds='base_file=`basename \${file}`~
11404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11405 dldir=$destdir/`dirname \$dlpath`~
11406 test -d \$dldir || mkdir -p \$dldir~
11407 $install_prog $dir/$dlname \$dldir/$dlname~
11408 chmod a+x \$dldir/$dlname~
11409 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11410 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11411 fi'
11412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11413 dlpath=$dir/\$dldll~
11414 $RM \$dlpath'
11415 shlibpath_overrides_runpath=yes
11416
11417 case $host_os in
11418 cygwin*)
11419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11421
11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11423 ;;
11424 mingw* | cegcc*)
11425 # MinGW DLLs use traditional 'lib' prefix
11426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11427 ;;
11428 pw32*)
11429 # pw32 DLLs use 'pw' prefix rather than 'lib'
11430 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11431 ;;
11432 esac
11433 dynamic_linker='Win32 ld.exe'
11434 ;;
11435
11436 *,cl*)
11437 # Native MSVC
11438 libname_spec='$name'
11439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11440 library_names_spec='${libname}.dll.lib'
11441
11442 case $build_os in
11443 mingw*)
11444 sys_lib_search_path_spec=
11445 lt_save_ifs=$IFS
11446 IFS=';'
11447 for lt_path in $LIB
11448 do
11449 IFS=$lt_save_ifs
11450 # Let DOS variable expansion print the short 8.3 style file name.
11451 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11452 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11453 done
11454 IFS=$lt_save_ifs
11455 # Convert to MSYS style.
11456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11457 ;;
11458 cygwin*)
11459 # Convert to unix form, then to dos form, then back to unix form
11460 # but this time dos style (no spaces!) so that the unix form looks
11461 # like /cygdrive/c/PROGRA~1:/cygdr...
11462 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11463 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11464 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11465 ;;
11466 *)
11467 sys_lib_search_path_spec="$LIB"
11468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11469 # It is most probably a Windows format PATH.
11470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11471 else
11472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11473 fi
11474 # FIXME: find the short name or the path components, as spaces are
11475 # common. (e.g. "Program Files" -> "PROGRA~1")
11476 ;;
11477 esac
11478
11479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11480 postinstall_cmds='base_file=`basename \${file}`~
11481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11482 dldir=$destdir/`dirname \$dlpath`~
11483 test -d \$dldir || mkdir -p \$dldir~
11484 $install_prog $dir/$dlname \$dldir/$dlname'
11485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11486 dlpath=$dir/\$dldll~
11487 $RM \$dlpath'
11488 shlibpath_overrides_runpath=yes
11489 dynamic_linker='Win32 link.exe'
11490 ;;
11491
11492 *)
11493 # Assume MSVC wrapper
11494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11495 dynamic_linker='Win32 ld.exe'
11496 ;;
11497 esac
11498 # FIXME: first we should search . and the directory the executable is in
11499 shlibpath_var=PATH
11500 ;;
11501
11502 darwin* | rhapsody*)
11503 dynamic_linker="$host_os dyld"
11504 version_type=darwin
11505 need_lib_prefix=no
11506 need_version=no
11507 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11508 soname_spec='${libname}${release}${major}$shared_ext'
11509 shlibpath_overrides_runpath=yes
11510 shlibpath_var=DYLD_LIBRARY_PATH
11511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11512
11513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11515 ;;
11516
11517 dgux*)
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 ;;
11525
11526 freebsd* | dragonfly*)
11527 # DragonFly does not have aout. When/if they implement a new
11528 # versioning mechanism, adjust this.
11529 if test -x /usr/bin/objformat; then
11530 objformat=`/usr/bin/objformat`
11531 else
11532 case $host_os in
11533 freebsd[23].*) objformat=aout ;;
11534 *) objformat=elf ;;
11535 esac
11536 fi
11537 version_type=freebsd-$objformat
11538 case $version_type in
11539 freebsd-elf*)
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11541 need_version=no
11542 need_lib_prefix=no
11543 ;;
11544 freebsd-*)
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11546 need_version=yes
11547 ;;
11548 esac
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_os in
11551 freebsd2.*)
11552 shlibpath_overrides_runpath=yes
11553 ;;
11554 freebsd3.[01]* | freebsdelf3.[01]*)
11555 shlibpath_overrides_runpath=yes
11556 hardcode_into_libs=yes
11557 ;;
11558 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11559 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11560 shlibpath_overrides_runpath=no
11561 hardcode_into_libs=yes
11562 ;;
11563 *) # from 4.6 on, and DragonFly
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11566 ;;
11567 esac
11568 ;;
11569
11570 gnu*)
11571 version_type=linux # correct to gnu/linux during the next big refactor
11572 need_lib_prefix=no
11573 need_version=no
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11579 ;;
11580
11581 haiku*)
11582 version_type=linux # correct to gnu/linux during the next big refactor
11583 need_lib_prefix=no
11584 need_version=no
11585 dynamic_linker="$host_os runtime_loader"
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11591 hardcode_into_libs=yes
11592 ;;
11593
11594 hpux9* | hpux10* | hpux11*)
11595 # Give a soname corresponding to the major version so that dld.sl refuses to
11596 # link against other versions.
11597 version_type=sunos
11598 need_lib_prefix=no
11599 need_version=no
11600 case $host_cpu in
11601 ia64*)
11602 shrext_cmds='.so'
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.so"
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 if test "X$HPUX_IA64_MODE" = X32; then
11610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11611 else
11612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11613 fi
11614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11615 ;;
11616 hppa*64*)
11617 shrext_cmds='.sl'
11618 hardcode_into_libs=yes
11619 dynamic_linker="$host_os dld.sl"
11620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 ;;
11627 *)
11628 shrext_cmds='.sl'
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=SHLIB_PATH
11631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633 soname_spec='${libname}${release}${shared_ext}$major'
11634 ;;
11635 esac
11636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11637 postinstall_cmds='chmod 555 $lib'
11638 # or fails outright, so override atomically:
11639 install_override_mode=555
11640 ;;
11641
11642 interix[3-9]*)
11643 version_type=linux # correct to gnu/linux during the next big refactor
11644 need_lib_prefix=no
11645 need_version=no
11646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11647 soname_spec='${libname}${release}${shared_ext}$major'
11648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=no
11651 hardcode_into_libs=yes
11652 ;;
11653
11654 irix5* | irix6* | nonstopux*)
11655 case $host_os in
11656 nonstopux*) version_type=nonstopux ;;
11657 *)
11658 if test "$lt_cv_prog_gnu_ld" = yes; then
11659 version_type=linux # correct to gnu/linux during the next big refactor
11660 else
11661 version_type=irix
11662 fi ;;
11663 esac
11664 need_lib_prefix=no
11665 need_version=no
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11668 case $host_os in
11669 irix5* | nonstopux*)
11670 libsuff= shlibsuff=
11671 ;;
11672 *)
11673 case $LD in # libtool.m4 will add one of these switches to LD
11674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11675 libsuff= shlibsuff= libmagic=32-bit;;
11676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11677 libsuff=32 shlibsuff=N32 libmagic=N32;;
11678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11680 *) libsuff= shlibsuff= libmagic=never-match;;
11681 esac
11682 ;;
11683 esac
11684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11685 shlibpath_overrides_runpath=no
11686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11688 hardcode_into_libs=yes
11689 ;;
11690
11691 # No shared lib support for Linux oldld, aout, or coff.
11692 linux*oldld* | linux*aout* | linux*coff*)
11693 dynamic_linker=no
11694 ;;
11695
11696 # This must be glibc/ELF.
11697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11698 version_type=linux # correct to gnu/linux during the next big refactor
11699 need_lib_prefix=no
11700 need_version=no
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=no
11706
11707 # Some binutils ld are patched to set DT_RUNPATH
11708 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 lt_cv_shlibpath_overrides_runpath=no
11712 save_LDFLAGS=$LDFLAGS
11713 save_libdir=$libdir
11714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11718
11719 int
11720 main ()
11721 {
11722
11723 ;
11724 return 0;
11725 }
11726 _ACEOF
11727 if ac_fn_c_try_link "$LINENO"; then :
11728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11729 lt_cv_shlibpath_overrides_runpath=yes
11730 fi
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LDFLAGS=$save_LDFLAGS
11735 libdir=$save_libdir
11736
11737 fi
11738
11739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11740
11741 # This implies no fast_install, which is unacceptable.
11742 # Some rework will be needed to allow for fast_install
11743 # before this can be enabled.
11744 hardcode_into_libs=yes
11745
11746 # Append ld.so.conf contents to the search path
11747 if test -f /etc/ld.so.conf; then
11748 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' ' '`
11749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11750 fi
11751
11752 # We used to test for /lib/ld.so.1 and disable shared libraries on
11753 # powerpc, because MkLinux only supported shared libraries with the
11754 # GNU dynamic linker. Since this was broken with cross compilers,
11755 # most powerpc-linux boxes support dynamic linking these days and
11756 # people can always --disable-shared, the test was removed, and we
11757 # assume the GNU/Linux dynamic linker is in use.
11758 dynamic_linker='GNU/Linux ld.so'
11759 ;;
11760
11761 netbsd*)
11762 version_type=sunos
11763 need_lib_prefix=no
11764 need_version=no
11765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11768 dynamic_linker='NetBSD (a.out) ld.so'
11769 else
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 dynamic_linker='NetBSD ld.elf_so'
11773 fi
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 ;;
11778
11779 newsos6)
11780 version_type=linux # correct to gnu/linux during the next big refactor
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 ;;
11785
11786 *nto* | *qnx*)
11787 version_type=qnx
11788 need_lib_prefix=no
11789 need_version=no
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=no
11794 hardcode_into_libs=yes
11795 dynamic_linker='ldqnx.so'
11796 ;;
11797
11798 openbsd*)
11799 version_type=sunos
11800 sys_lib_dlsearch_path_spec="/usr/lib"
11801 need_lib_prefix=no
11802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11803 case $host_os in
11804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11805 *) need_version=no ;;
11806 esac
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11811 case $host_os in
11812 openbsd2.[89] | openbsd2.[89].*)
11813 shlibpath_overrides_runpath=no
11814 ;;
11815 *)
11816 shlibpath_overrides_runpath=yes
11817 ;;
11818 esac
11819 else
11820 shlibpath_overrides_runpath=yes
11821 fi
11822 ;;
11823
11824 os2*)
11825 libname_spec='$name'
11826 shrext_cmds=".dll"
11827 need_lib_prefix=no
11828 library_names_spec='$libname${shared_ext} $libname.a'
11829 dynamic_linker='OS/2 ld.exe'
11830 shlibpath_var=LIBPATH
11831 ;;
11832
11833 osf3* | osf4* | osf5*)
11834 version_type=osf
11835 need_lib_prefix=no
11836 need_version=no
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 shlibpath_var=LD_LIBRARY_PATH
11840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11842 ;;
11843
11844 rdos*)
11845 dynamic_linker=no
11846 ;;
11847
11848 solaris*)
11849 version_type=linux # correct to gnu/linux during the next big refactor
11850 need_lib_prefix=no
11851 need_version=no
11852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes
11856 hardcode_into_libs=yes
11857 # ldd complains unless libraries are executable
11858 postinstall_cmds='chmod +x $lib'
11859 ;;
11860
11861 sunos4*)
11862 version_type=sunos
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11865 shlibpath_var=LD_LIBRARY_PATH
11866 shlibpath_overrides_runpath=yes
11867 if test "$with_gnu_ld" = yes; then
11868 need_lib_prefix=no
11869 fi
11870 need_version=yes
11871 ;;
11872
11873 sysv4 | sysv4.3*)
11874 version_type=linux # correct to gnu/linux during the next big refactor
11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 case $host_vendor in
11879 sni)
11880 shlibpath_overrides_runpath=no
11881 need_lib_prefix=no
11882 runpath_var=LD_RUN_PATH
11883 ;;
11884 siemens)
11885 need_lib_prefix=no
11886 ;;
11887 motorola)
11888 need_lib_prefix=no
11889 need_version=no
11890 shlibpath_overrides_runpath=no
11891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11892 ;;
11893 esac
11894 ;;
11895
11896 sysv4*MP*)
11897 if test -d /usr/nec ;then
11898 version_type=linux # correct to gnu/linux during the next big refactor
11899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11900 soname_spec='$libname${shared_ext}.$major'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 fi
11903 ;;
11904
11905 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11906 version_type=freebsd-elf
11907 need_lib_prefix=no
11908 need_version=no
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11912 shlibpath_overrides_runpath=yes
11913 hardcode_into_libs=yes
11914 if test "$with_gnu_ld" = yes; then
11915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11916 else
11917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11918 case $host_os in
11919 sco3.2v5*)
11920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11921 ;;
11922 esac
11923 fi
11924 sys_lib_dlsearch_path_spec='/usr/lib'
11925 ;;
11926
11927 tpf*)
11928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11929 version_type=linux # correct to gnu/linux during the next big refactor
11930 need_lib_prefix=no
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 shlibpath_var=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11936 ;;
11937
11938 uts4*)
11939 version_type=linux # correct to gnu/linux during the next big refactor
11940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11941 soname_spec='${libname}${release}${shared_ext}$major'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 ;;
11944
11945 *)
11946 dynamic_linker=no
11947 ;;
11948 esac
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11950 $as_echo "$dynamic_linker" >&6; }
11951 test "$dynamic_linker" = no && can_build_shared=no
11952
11953 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11954 if test "$GCC" = yes; then
11955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11956 fi
11957
11958 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11960 fi
11961 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11963 fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12057 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12058 hardcode_action=
12059 if test -n "$hardcode_libdir_flag_spec" ||
12060 test -n "$runpath_var" ||
12061 test "X$hardcode_automatic" = "Xyes" ; then
12062
12063 # We can hardcode non-existent directories.
12064 if test "$hardcode_direct" != no &&
12065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12066 # have to relink, otherwise we might link with an installed library
12067 # when we should be linking with a yet-to-be-installed one
12068 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12069 test "$hardcode_minus_L" != no; then
12070 # Linking always hardcodes the temporary library directory.
12071 hardcode_action=relink
12072 else
12073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12074 hardcode_action=immediate
12075 fi
12076 else
12077 # We cannot hardcode anything, or else we can only hardcode existing
12078 # directories.
12079 hardcode_action=unsupported
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12082 $as_echo "$hardcode_action" >&6; }
12083
12084 if test "$hardcode_action" = relink ||
12085 test "$inherit_rpath" = yes; then
12086 # Fast installation is not supported
12087 enable_fast_install=no
12088 elif test "$shlibpath_overrides_runpath" = yes ||
12089 test "$enable_shared" = no; then
12090 # Fast installation is not necessary
12091 enable_fast_install=needless
12092 fi
12093
12094
12095
12096
12097
12098
12099 if test "x$enable_dlopen" != xyes; then
12100 enable_dlopen=unknown
12101 enable_dlopen_self=unknown
12102 enable_dlopen_self_static=unknown
12103 else
12104 lt_cv_dlopen=no
12105 lt_cv_dlopen_libs=
12106
12107 case $host_os in
12108 beos*)
12109 lt_cv_dlopen="load_add_on"
12110 lt_cv_dlopen_libs=
12111 lt_cv_dlopen_self=yes
12112 ;;
12113
12114 mingw* | pw32* | cegcc*)
12115 lt_cv_dlopen="LoadLibrary"
12116 lt_cv_dlopen_libs=
12117 ;;
12118
12119 cygwin*)
12120 lt_cv_dlopen="dlopen"
12121 lt_cv_dlopen_libs=
12122 ;;
12123
12124 darwin*)
12125 # if libdl is installed we need to link against it
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12127 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12128 if ${ac_cv_lib_dl_dlopen+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-ldl $LIBS"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char dlopen ();
12143 int
12144 main ()
12145 {
12146 return dlopen ();
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_lib_dl_dlopen=yes
12153 else
12154 ac_cv_lib_dl_dlopen=no
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12161 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12162 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12164 else
12165
12166 lt_cv_dlopen="dyld"
12167 lt_cv_dlopen_libs=
12168 lt_cv_dlopen_self=yes
12169
12170 fi
12171
12172 ;;
12173
12174 *)
12175 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12176 if test "x$ac_cv_func_shl_load" = xyes; then :
12177 lt_cv_dlopen="shl_load"
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12180 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12181 if ${ac_cv_lib_dld_shl_load+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldld $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char shl_load ();
12196 int
12197 main ()
12198 {
12199 return shl_load ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_dld_shl_load=yes
12206 else
12207 ac_cv_lib_dld_shl_load=no
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12212 fi
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12214 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12215 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12216 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12217 else
12218 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12219 if test "x$ac_cv_func_dlopen" = xyes; then :
12220 lt_cv_dlopen="dlopen"
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12224 if ${ac_cv_lib_dl_dlopen+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-ldl $LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12235 #ifdef __cplusplus
12236 extern "C"
12237 #endif
12238 char dlopen ();
12239 int
12240 main ()
12241 {
12242 return dlopen ();
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_lib_dl_dlopen=yes
12249 else
12250 ac_cv_lib_dl_dlopen=no
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12258 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12262 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12263 if ${ac_cv_lib_svld_dlopen+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-lsvld $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char dlopen ();
12278 int
12279 main ()
12280 {
12281 return dlopen ();
12282 ;
12283 return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_svld_dlopen=yes
12288 else
12289 ac_cv_lib_svld_dlopen=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12296 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12297 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12299 else
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12301 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12302 if ${ac_cv_lib_dld_dld_link+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-ldld $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char dld_link ();
12317 int
12318 main ()
12319 {
12320 return dld_link ();
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_dld_dld_link=yes
12327 else
12328 ac_cv_lib_dld_dld_link=no
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12335 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12336 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12337 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12338 fi
12339
12340
12341 fi
12342
12343
12344 fi
12345
12346
12347 fi
12348
12349
12350 fi
12351
12352
12353 fi
12354
12355 ;;
12356 esac
12357
12358 if test "x$lt_cv_dlopen" != xno; then
12359 enable_dlopen=yes
12360 else
12361 enable_dlopen=no
12362 fi
12363
12364 case $lt_cv_dlopen in
12365 dlopen)
12366 save_CPPFLAGS="$CPPFLAGS"
12367 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12368
12369 save_LDFLAGS="$LDFLAGS"
12370 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12371
12372 save_LIBS="$LIBS"
12373 LIBS="$lt_cv_dlopen_libs $LIBS"
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12376 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12377 if ${lt_cv_dlopen_self+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 if test "$cross_compiling" = yes; then :
12381 lt_cv_dlopen_self=cross
12382 else
12383 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12384 lt_status=$lt_dlunknown
12385 cat > conftest.$ac_ext <<_LT_EOF
12386 #line $LINENO "configure"
12387 #include "confdefs.h"
12388
12389 #if HAVE_DLFCN_H
12390 #include <dlfcn.h>
12391 #endif
12392
12393 #include <stdio.h>
12394
12395 #ifdef RTLD_GLOBAL
12396 # define LT_DLGLOBAL RTLD_GLOBAL
12397 #else
12398 # ifdef DL_GLOBAL
12399 # define LT_DLGLOBAL DL_GLOBAL
12400 # else
12401 # define LT_DLGLOBAL 0
12402 # endif
12403 #endif
12404
12405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12406 find out it does not work in some platform. */
12407 #ifndef LT_DLLAZY_OR_NOW
12408 # ifdef RTLD_LAZY
12409 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12410 # else
12411 # ifdef DL_LAZY
12412 # define LT_DLLAZY_OR_NOW DL_LAZY
12413 # else
12414 # ifdef RTLD_NOW
12415 # define LT_DLLAZY_OR_NOW RTLD_NOW
12416 # else
12417 # ifdef DL_NOW
12418 # define LT_DLLAZY_OR_NOW DL_NOW
12419 # else
12420 # define LT_DLLAZY_OR_NOW 0
12421 # endif
12422 # endif
12423 # endif
12424 # endif
12425 #endif
12426
12427 /* When -fvisbility=hidden is used, assume the code has been annotated
12428 correspondingly for the symbols needed. */
12429 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12430 int fnord () __attribute__((visibility("default")));
12431 #endif
12432
12433 int fnord () { return 42; }
12434 int main ()
12435 {
12436 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12437 int status = $lt_dlunknown;
12438
12439 if (self)
12440 {
12441 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12442 else
12443 {
12444 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12445 else puts (dlerror ());
12446 }
12447 /* dlclose (self); */
12448 }
12449 else
12450 puts (dlerror ());
12451
12452 return status;
12453 }
12454 _LT_EOF
12455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456 (eval $ac_link) 2>&5
12457 ac_status=$?
12458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460 (./conftest; exit; ) >&5 2>/dev/null
12461 lt_status=$?
12462 case x$lt_status in
12463 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12466 esac
12467 else :
12468 # compilation failed
12469 lt_cv_dlopen_self=no
12470 fi
12471 fi
12472 rm -fr conftest*
12473
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12478
12479 if test "x$lt_cv_dlopen_self" = xyes; then
12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if ${lt_cv_dlopen_self_static+:} false; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test "$cross_compiling" = yes; then :
12487 lt_cv_dlopen_self_static=cross
12488 else
12489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490 lt_status=$lt_dlunknown
12491 cat > conftest.$ac_ext <<_LT_EOF
12492 #line $LINENO "configure"
12493 #include "confdefs.h"
12494
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12498
12499 #include <stdio.h>
12500
12501 #ifdef RTLD_GLOBAL
12502 # define LT_DLGLOBAL RTLD_GLOBAL
12503 #else
12504 # ifdef DL_GLOBAL
12505 # define LT_DLGLOBAL DL_GLOBAL
12506 # else
12507 # define LT_DLGLOBAL 0
12508 # endif
12509 #endif
12510
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512 find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 # ifdef RTLD_LAZY
12515 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12516 # else
12517 # ifdef DL_LAZY
12518 # define LT_DLLAZY_OR_NOW DL_LAZY
12519 # else
12520 # ifdef RTLD_NOW
12521 # define LT_DLLAZY_OR_NOW RTLD_NOW
12522 # else
12523 # ifdef DL_NOW
12524 # define LT_DLLAZY_OR_NOW DL_NOW
12525 # else
12526 # define LT_DLLAZY_OR_NOW 0
12527 # endif
12528 # endif
12529 # endif
12530 # endif
12531 #endif
12532
12533 /* When -fvisbility=hidden is used, assume the code has been annotated
12534 correspondingly for the symbols needed. */
12535 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12536 int fnord () __attribute__((visibility("default")));
12537 #endif
12538
12539 int fnord () { return 42; }
12540 int main ()
12541 {
12542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12543 int status = $lt_dlunknown;
12544
12545 if (self)
12546 {
12547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12548 else
12549 {
12550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12551 else puts (dlerror ());
12552 }
12553 /* dlclose (self); */
12554 }
12555 else
12556 puts (dlerror ());
12557
12558 return status;
12559 }
12560 _LT_EOF
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12562 (eval $ac_link) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12566 (./conftest; exit; ) >&5 2>/dev/null
12567 lt_status=$?
12568 case x$lt_status in
12569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12572 esac
12573 else :
12574 # compilation failed
12575 lt_cv_dlopen_self_static=no
12576 fi
12577 fi
12578 rm -fr conftest*
12579
12580
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12583 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12584 fi
12585
12586 CPPFLAGS="$save_CPPFLAGS"
12587 LDFLAGS="$save_LDFLAGS"
12588 LIBS="$save_LIBS"
12589 ;;
12590 esac
12591
12592 case $lt_cv_dlopen_self in
12593 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12594 *) enable_dlopen_self=unknown ;;
12595 esac
12596
12597 case $lt_cv_dlopen_self_static in
12598 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12599 *) enable_dlopen_self_static=unknown ;;
12600 esac
12601 fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619 striplib=
12620 old_striplib=
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12622 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12623 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12627 $as_echo "yes" >&6; }
12628 else
12629 # FIXME - insert some real tests, host_os isn't really good enough
12630 case $host_os in
12631 darwin*)
12632 if test -n "$STRIP" ; then
12633 striplib="$STRIP -x"
12634 old_striplib="$STRIP -S"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636 $as_echo "yes" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 fi
12641 ;;
12642 *)
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 ;;
12646 esac
12647 fi
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660 # Report which library types will actually be built
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12662 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12664 $as_echo "$can_build_shared" >&6; }
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12667 $as_echo_n "checking whether to build shared libraries... " >&6; }
12668 test "$can_build_shared" = "no" && enable_shared=no
12669
12670 # On AIX, shared libraries and static libraries use the same namespace, and
12671 # are all built from PIC.
12672 case $host_os in
12673 aix3*)
12674 test "$enable_shared" = yes && enable_static=no
12675 if test -n "$RANLIB"; then
12676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12677 postinstall_cmds='$RANLIB $lib'
12678 fi
12679 ;;
12680
12681 aix[4-9]*)
12682 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12683 test "$enable_shared" = yes && enable_static=no
12684 fi
12685 ;;
12686 esac
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12688 $as_echo "$enable_shared" >&6; }
12689
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12691 $as_echo_n "checking whether to build static libraries... " >&6; }
12692 # Make sure either enable_shared or enable_static is yes.
12693 test "$enable_shared" = yes || enable_static=yes
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12695 $as_echo "$enable_static" >&6; }
12696
12697
12698
12699
12700 fi
12701 ac_ext=c
12702 ac_cpp='$CPP $CPPFLAGS'
12703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12706
12707 CC="$lt_save_CC"
12708
12709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12710 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12711 (test "X$CXX" != "Xg++"))) ; then
12712 ac_ext=cpp
12713 ac_cpp='$CXXCPP $CPPFLAGS'
12714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12718 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12719 if test -z "$CXXCPP"; then
12720 if ${ac_cv_prog_CXXCPP+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 # Double quotes because CXXCPP needs to be expanded
12724 for CXXCPP in "$CXX -E" "/lib/cpp"
12725 do
12726 ac_preproc_ok=false
12727 for ac_cxx_preproc_warn_flag in '' yes
12728 do
12729 # Use a header file that comes with gcc, so configuring glibc
12730 # with a fresh cross-compiler works.
12731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 # <limits.h> exists even on freestanding compilers.
12733 # On the NeXT, cc -E runs the code through the compiler's parser,
12734 # not just through cpp. "Syntax error" is here to catch this case.
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 #ifdef __STDC__
12738 # include <limits.h>
12739 #else
12740 # include <assert.h>
12741 #endif
12742 Syntax error
12743 _ACEOF
12744 if ac_fn_cxx_try_cpp "$LINENO"; then :
12745
12746 else
12747 # Broken: fails on valid input.
12748 continue
12749 fi
12750 rm -f conftest.err conftest.i conftest.$ac_ext
12751
12752 # OK, works on sane cases. Now check whether nonexistent headers
12753 # can be detected and how.
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <ac_nonexistent.h>
12757 _ACEOF
12758 if ac_fn_cxx_try_cpp "$LINENO"; then :
12759 # Broken: success on invalid input.
12760 continue
12761 else
12762 # Passes both tests.
12763 ac_preproc_ok=:
12764 break
12765 fi
12766 rm -f conftest.err conftest.i conftest.$ac_ext
12767
12768 done
12769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12770 rm -f conftest.i conftest.err conftest.$ac_ext
12771 if $ac_preproc_ok; then :
12772 break
12773 fi
12774
12775 done
12776 ac_cv_prog_CXXCPP=$CXXCPP
12777
12778 fi
12779 CXXCPP=$ac_cv_prog_CXXCPP
12780 else
12781 ac_cv_prog_CXXCPP=$CXXCPP
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12784 $as_echo "$CXXCPP" >&6; }
12785 ac_preproc_ok=false
12786 for ac_cxx_preproc_warn_flag in '' yes
12787 do
12788 # Use a header file that comes with gcc, so configuring glibc
12789 # with a fresh cross-compiler works.
12790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12791 # <limits.h> exists even on freestanding compilers.
12792 # On the NeXT, cc -E runs the code through the compiler's parser,
12793 # not just through cpp. "Syntax error" is here to catch this case.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #ifdef __STDC__
12797 # include <limits.h>
12798 #else
12799 # include <assert.h>
12800 #endif
12801 Syntax error
12802 _ACEOF
12803 if ac_fn_cxx_try_cpp "$LINENO"; then :
12804
12805 else
12806 # Broken: fails on valid input.
12807 continue
12808 fi
12809 rm -f conftest.err conftest.i conftest.$ac_ext
12810
12811 # OK, works on sane cases. Now check whether nonexistent headers
12812 # can be detected and how.
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815 #include <ac_nonexistent.h>
12816 _ACEOF
12817 if ac_fn_cxx_try_cpp "$LINENO"; then :
12818 # Broken: success on invalid input.
12819 continue
12820 else
12821 # Passes both tests.
12822 ac_preproc_ok=:
12823 break
12824 fi
12825 rm -f conftest.err conftest.i conftest.$ac_ext
12826
12827 done
12828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12829 rm -f conftest.i conftest.err conftest.$ac_ext
12830 if $ac_preproc_ok; then :
12831
12832 else
12833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12835 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12836 See \`config.log' for more details" "$LINENO" 5; }
12837 fi
12838
12839 ac_ext=c
12840 ac_cpp='$CPP $CPPFLAGS'
12841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844
12845 else
12846 _lt_caught_CXX_error=yes
12847 fi
12848
12849 ac_ext=cpp
12850 ac_cpp='$CXXCPP $CPPFLAGS'
12851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12854
12855 archive_cmds_need_lc_CXX=no
12856 allow_undefined_flag_CXX=
12857 always_export_symbols_CXX=no
12858 archive_expsym_cmds_CXX=
12859 compiler_needs_object_CXX=no
12860 export_dynamic_flag_spec_CXX=
12861 hardcode_direct_CXX=no
12862 hardcode_direct_absolute_CXX=no
12863 hardcode_libdir_flag_spec_CXX=
12864 hardcode_libdir_separator_CXX=
12865 hardcode_minus_L_CXX=no
12866 hardcode_shlibpath_var_CXX=unsupported
12867 hardcode_automatic_CXX=no
12868 inherit_rpath_CXX=no
12869 module_cmds_CXX=
12870 module_expsym_cmds_CXX=
12871 link_all_deplibs_CXX=unknown
12872 old_archive_cmds_CXX=$old_archive_cmds
12873 reload_flag_CXX=$reload_flag
12874 reload_cmds_CXX=$reload_cmds
12875 no_undefined_flag_CXX=
12876 whole_archive_flag_spec_CXX=
12877 enable_shared_with_static_runtimes_CXX=no
12878
12879 # Source file extension for C++ test sources.
12880 ac_ext=cpp
12881
12882 # Object file extension for compiled C++ test sources.
12883 objext=o
12884 objext_CXX=$objext
12885
12886 # No sense in running all these tests if we already determined that
12887 # the CXX compiler isn't working. Some variables (like enable_shared)
12888 # are currently assumed to apply to all compilers on this platform,
12889 # and will be corrupted by setting them based on a non-working compiler.
12890 if test "$_lt_caught_CXX_error" != yes; then
12891 # Code to be used in simple compile tests
12892 lt_simple_compile_test_code="int some_variable = 0;"
12893
12894 # Code to be used in simple link tests
12895 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12896
12897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12898
12899
12900
12901
12902
12903
12904 # If no C compiler was specified, use CC.
12905 LTCC=${LTCC-"$CC"}
12906
12907 # If no C compiler flags were specified, use CFLAGS.
12908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12909
12910 # Allow CC to be a program name with arguments.
12911 compiler=$CC
12912
12913
12914 # save warnings/boilerplate of simple test code
12915 ac_outfile=conftest.$ac_objext
12916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12918 _lt_compiler_boilerplate=`cat conftest.err`
12919 $RM -r conftest*
12920
12921 ac_outfile=conftest.$ac_objext
12922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12924 _lt_linker_boilerplate=`cat conftest.err`
12925 $RM -r conftest*
12926
12927
12928 # Allow CC to be a program name with arguments.
12929 lt_save_CC=$CC
12930 lt_save_CFLAGS=$CFLAGS
12931 lt_save_LD=$LD
12932 lt_save_GCC=$GCC
12933 GCC=$GXX
12934 lt_save_with_gnu_ld=$with_gnu_ld
12935 lt_save_path_LD=$lt_cv_path_LD
12936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12938 else
12939 $as_unset lt_cv_prog_gnu_ld
12940 fi
12941 if test -n "${lt_cv_path_LDCXX+set}"; then
12942 lt_cv_path_LD=$lt_cv_path_LDCXX
12943 else
12944 $as_unset lt_cv_path_LD
12945 fi
12946 test -z "${LDCXX+set}" || LD=$LDCXX
12947 CC=${CXX-"c++"}
12948 CFLAGS=$CXXFLAGS
12949 compiler=$CC
12950 compiler_CXX=$CC
12951 for cc_temp in $compiler""; do
12952 case $cc_temp in
12953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12955 \-*) ;;
12956 *) break;;
12957 esac
12958 done
12959 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12960
12961
12962 if test -n "$compiler"; then
12963 # We don't want -fno-exception when compiling C++ code, so set the
12964 # no_builtin_flag separately
12965 if test "$GXX" = yes; then
12966 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12967 else
12968 lt_prog_compiler_no_builtin_flag_CXX=
12969 fi
12970
12971 if test "$GXX" = yes; then
12972 # Set up default GNU C++ configuration
12973
12974
12975
12976 # Check whether --with-gnu-ld was given.
12977 if test "${with_gnu_ld+set}" = set; then :
12978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12979 else
12980 with_gnu_ld=no
12981 fi
12982
12983 ac_prog=ld
12984 if test "$GCC" = yes; then
12985 # Check if gcc -print-prog-name=ld gives a path.
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12987 $as_echo_n "checking for ld used by $CC... " >&6; }
12988 case $host in
12989 *-*-mingw*)
12990 # gcc leaves a trailing carriage return which upsets mingw
12991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12992 *)
12993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12994 esac
12995 case $ac_prog in
12996 # Accept absolute paths.
12997 [\\/]* | ?:[\\/]*)
12998 re_direlt='/[^/][^/]*/\.\./'
12999 # Canonicalize the pathname of ld
13000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13003 done
13004 test -z "$LD" && LD="$ac_prog"
13005 ;;
13006 "")
13007 # If it fails, then pretend we aren't using GCC.
13008 ac_prog=ld
13009 ;;
13010 *)
13011 # If it is relative, then search for the first ld in PATH.
13012 with_gnu_ld=unknown
13013 ;;
13014 esac
13015 elif test "$with_gnu_ld" = yes; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13017 $as_echo_n "checking for GNU ld... " >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13020 $as_echo_n "checking for non-GNU ld... " >&6; }
13021 fi
13022 if ${lt_cv_path_LD+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 if test -z "$LD"; then
13026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13027 for ac_dir in $PATH; do
13028 IFS="$lt_save_ifs"
13029 test -z "$ac_dir" && ac_dir=.
13030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13031 lt_cv_path_LD="$ac_dir/$ac_prog"
13032 # Check to see if the program is GNU ld. I'd rather use --version,
13033 # but apparently some variants of GNU ld only accept -v.
13034 # Break only if it was the GNU/non-GNU ld that we prefer.
13035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13036 *GNU* | *'with BFD'*)
13037 test "$with_gnu_ld" != no && break
13038 ;;
13039 *)
13040 test "$with_gnu_ld" != yes && break
13041 ;;
13042 esac
13043 fi
13044 done
13045 IFS="$lt_save_ifs"
13046 else
13047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13048 fi
13049 fi
13050
13051 LD="$lt_cv_path_LD"
13052 if test -n "$LD"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13054 $as_echo "$LD" >&6; }
13055 else
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13058 fi
13059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13061 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13062 if ${lt_cv_prog_gnu_ld+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13066 case `$LD -v 2>&1 </dev/null` in
13067 *GNU* | *'with BFD'*)
13068 lt_cv_prog_gnu_ld=yes
13069 ;;
13070 *)
13071 lt_cv_prog_gnu_ld=no
13072 ;;
13073 esac
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13076 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13077 with_gnu_ld=$lt_cv_prog_gnu_ld
13078
13079
13080
13081
13082
13083
13084
13085 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13086 # archiving commands below assume that GNU ld is being used.
13087 if test "$with_gnu_ld" = yes; then
13088 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089 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'
13090
13091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13092 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13093
13094 # If archive_cmds runs LD, not CC, wlarc should be empty
13095 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13096 # investigate it a little bit more. (MM)
13097 wlarc='${wl}'
13098
13099 # ancient GNU ld didn't support --whole-archive et. al.
13100 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13101 $GREP 'no-whole-archive' > /dev/null; then
13102 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13103 else
13104 whole_archive_flag_spec_CXX=
13105 fi
13106 else
13107 with_gnu_ld=no
13108 wlarc=
13109
13110 # A generic and very simple default shared library creation
13111 # command for GNU C++ for the case where it uses the native
13112 # linker, instead of GNU ld. If possible, this setting should
13113 # overridden to take advantage of the native linker features on
13114 # the platform it is being used on.
13115 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13116 fi
13117
13118 # Commands to make compiler produce verbose output that lists
13119 # what "hidden" libraries, object files and flags are used when
13120 # linking a shared library.
13121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13122
13123 else
13124 GXX=no
13125 with_gnu_ld=no
13126 wlarc=
13127 fi
13128
13129 # PORTME: fill in a description of your system's C++ link characteristics
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13131 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13132 ld_shlibs_CXX=yes
13133 case $host_os in
13134 aix3*)
13135 # FIXME: insert proper C++ library support
13136 ld_shlibs_CXX=no
13137 ;;
13138 aix[4-9]*)
13139 if test "$host_cpu" = ia64; then
13140 # On IA64, the linker does run time linking by default, so we don't
13141 # have to do anything special.
13142 aix_use_runtimelinking=no
13143 exp_sym_flag='-Bexport'
13144 no_entry_flag=""
13145 else
13146 aix_use_runtimelinking=no
13147
13148 # Test if we are trying to use run time linking or normal
13149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13150 # need to do runtime linking.
13151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13152 for ld_flag in $LDFLAGS; do
13153 case $ld_flag in
13154 *-brtl*)
13155 aix_use_runtimelinking=yes
13156 break
13157 ;;
13158 esac
13159 done
13160 ;;
13161 esac
13162
13163 exp_sym_flag='-bexport'
13164 no_entry_flag='-bnoentry'
13165 fi
13166
13167 # When large executables or shared objects are built, AIX ld can
13168 # have problems creating the table of contents. If linking a library
13169 # or program results in "error TOC overflow" add -mminimal-toc to
13170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13172
13173 archive_cmds_CXX=''
13174 hardcode_direct_CXX=yes
13175 hardcode_direct_absolute_CXX=yes
13176 hardcode_libdir_separator_CXX=':'
13177 link_all_deplibs_CXX=yes
13178 file_list_spec_CXX='${wl}-f,'
13179
13180 if test "$GXX" = yes; then
13181 case $host_os in aix4.[012]|aix4.[012].*)
13182 # We only want to do this on AIX 4.2 and lower, the check
13183 # below for broken collect2 doesn't work under 4.3+
13184 collect2name=`${CC} -print-prog-name=collect2`
13185 if test -f "$collect2name" &&
13186 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13187 then
13188 # We have reworked collect2
13189 :
13190 else
13191 # We have old collect2
13192 hardcode_direct_CXX=unsupported
13193 # It fails to find uninstalled libraries when the uninstalled
13194 # path is not listed in the libpath. Setting hardcode_minus_L
13195 # to unsupported forces relinking
13196 hardcode_minus_L_CXX=yes
13197 hardcode_libdir_flag_spec_CXX='-L$libdir'
13198 hardcode_libdir_separator_CXX=
13199 fi
13200 esac
13201 shared_flag='-shared'
13202 if test "$aix_use_runtimelinking" = yes; then
13203 shared_flag="$shared_flag "'${wl}-G'
13204 fi
13205 else
13206 # not using gcc
13207 if test "$host_cpu" = ia64; then
13208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13209 # chokes on -Wl,-G. The following line is correct:
13210 shared_flag='-G'
13211 else
13212 if test "$aix_use_runtimelinking" = yes; then
13213 shared_flag='${wl}-G'
13214 else
13215 shared_flag='${wl}-bM:SRE'
13216 fi
13217 fi
13218 fi
13219
13220 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13221 # It seems that -bexpall does not export symbols beginning with
13222 # underscore (_), so it is better to generate a list of symbols to
13223 # export.
13224 always_export_symbols_CXX=yes
13225 if test "$aix_use_runtimelinking" = yes; then
13226 # Warning - without using the other runtime loading flags (-brtl),
13227 # -berok will link without error, but may produce a broken library.
13228 allow_undefined_flag_CXX='-berok'
13229 # Determine the default libpath from the value encoded in an empty
13230 # executable.
13231 if test "${lt_cv_aix_libpath+set}" = set; then
13232 aix_libpath=$lt_cv_aix_libpath
13233 else
13234 if ${lt_cv_aix_libpath__CXX+:} false; then :
13235 $as_echo_n "(cached) " >&6
13236 else
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239
13240 int
13241 main ()
13242 {
13243
13244 ;
13245 return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_cxx_try_link "$LINENO"; then :
13249
13250 lt_aix_libpath_sed='
13251 /Import File Strings/,/^$/ {
13252 /^0/ {
13253 s/^0 *\([^ ]*\) *$/\1/
13254 p
13255 }
13256 }'
13257 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13258 # Check for a 64-bit object if we didn't find anything.
13259 if test -z "$lt_cv_aix_libpath__CXX"; then
13260 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13261 fi
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
13265 if test -z "$lt_cv_aix_libpath__CXX"; then
13266 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13267 fi
13268
13269 fi
13270
13271 aix_libpath=$lt_cv_aix_libpath__CXX
13272 fi
13273
13274 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13275
13276 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"
13277 else
13278 if test "$host_cpu" = ia64; then
13279 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13280 allow_undefined_flag_CXX="-z nodefs"
13281 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"
13282 else
13283 # Determine the default libpath from the value encoded in an
13284 # empty executable.
13285 if test "${lt_cv_aix_libpath+set}" = set; then
13286 aix_libpath=$lt_cv_aix_libpath
13287 else
13288 if ${lt_cv_aix_libpath__CXX+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293
13294 int
13295 main ()
13296 {
13297
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_cxx_try_link "$LINENO"; then :
13303
13304 lt_aix_libpath_sed='
13305 /Import File Strings/,/^$/ {
13306 /^0/ {
13307 s/^0 *\([^ ]*\) *$/\1/
13308 p
13309 }
13310 }'
13311 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13312 # Check for a 64-bit object if we didn't find anything.
13313 if test -z "$lt_cv_aix_libpath__CXX"; then
13314 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13315 fi
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319 if test -z "$lt_cv_aix_libpath__CXX"; then
13320 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13321 fi
13322
13323 fi
13324
13325 aix_libpath=$lt_cv_aix_libpath__CXX
13326 fi
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13329 # Warning - without using the other run time loading flags,
13330 # -berok will link without error, but may produce a broken library.
13331 no_undefined_flag_CXX=' ${wl}-bernotok'
13332 allow_undefined_flag_CXX=' ${wl}-berok'
13333 if test "$with_gnu_ld" = yes; then
13334 # We only use this code for GNU lds that support --whole-archive.
13335 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13336 else
13337 # Exported symbols can be pulled into shared objects from archives
13338 whole_archive_flag_spec_CXX='$convenience'
13339 fi
13340 archive_cmds_need_lc_CXX=yes
13341 # This is similar to how AIX traditionally builds its shared
13342 # libraries.
13343 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'
13344 fi
13345 fi
13346 ;;
13347
13348 beos*)
13349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13350 allow_undefined_flag_CXX=unsupported
13351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13352 # support --undefined. This deserves some investigation. FIXME
13353 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13354 else
13355 ld_shlibs_CXX=no
13356 fi
13357 ;;
13358
13359 chorus*)
13360 case $cc_basename in
13361 *)
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13364 ;;
13365 esac
13366 ;;
13367
13368 cygwin* | mingw* | pw32* | cegcc*)
13369 case $GXX,$cc_basename in
13370 ,cl* | no,cl*)
13371 # Native MSVC
13372 # hardcode_libdir_flag_spec is actually meaningless, as there is
13373 # no search path for DLLs.
13374 hardcode_libdir_flag_spec_CXX=' '
13375 allow_undefined_flag_CXX=unsupported
13376 always_export_symbols_CXX=yes
13377 file_list_spec_CXX='@'
13378 # Tell ltmain to make .lib files, not .a files.
13379 libext=lib
13380 # Tell ltmain to make .dll files, not .so files.
13381 shrext_cmds=".dll"
13382 # FIXME: Setting linknames here is a bad hack.
13383 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13384 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13385 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13386 else
13387 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13388 fi~
13389 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13390 linknames='
13391 # The linker will not automatically build a static lib if we build a DLL.
13392 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13393 enable_shared_with_static_runtimes_CXX=yes
13394 # Don't use ranlib
13395 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13396 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13397 lt_tool_outputfile="@TOOL_OUTPUT@"~
13398 case $lt_outputfile in
13399 *.exe|*.EXE) ;;
13400 *)
13401 lt_outputfile="$lt_outputfile.exe"
13402 lt_tool_outputfile="$lt_tool_outputfile.exe"
13403 ;;
13404 esac~
13405 func_to_tool_file "$lt_outputfile"~
13406 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13407 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13408 $RM "$lt_outputfile.manifest";
13409 fi'
13410 ;;
13411 *)
13412 # g++
13413 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13414 # as there is no search path for DLLs.
13415 hardcode_libdir_flag_spec_CXX='-L$libdir'
13416 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13417 allow_undefined_flag_CXX=unsupported
13418 always_export_symbols_CXX=no
13419 enable_shared_with_static_runtimes_CXX=yes
13420
13421 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13422 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'
13423 # If the export-symbols file already is a .def file (1st line
13424 # is EXPORTS), use it as is; otherwise, prepend...
13425 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13426 cp $export_symbols $output_objdir/$soname.def;
13427 else
13428 echo EXPORTS > $output_objdir/$soname.def;
13429 cat $export_symbols >> $output_objdir/$soname.def;
13430 fi~
13431 $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'
13432 else
13433 ld_shlibs_CXX=no
13434 fi
13435 ;;
13436 esac
13437 ;;
13438 darwin* | rhapsody*)
13439
13440
13441 archive_cmds_need_lc_CXX=no
13442 hardcode_direct_CXX=no
13443 hardcode_automatic_CXX=yes
13444 hardcode_shlibpath_var_CXX=unsupported
13445 if test "$lt_cv_ld_force_load" = "yes"; then
13446 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\"`'
13447
13448 else
13449 whole_archive_flag_spec_CXX=''
13450 fi
13451 link_all_deplibs_CXX=yes
13452 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13453 case $cc_basename in
13454 ifort*) _lt_dar_can_shared=yes ;;
13455 *) _lt_dar_can_shared=$GCC ;;
13456 esac
13457 if test "$_lt_dar_can_shared" = "yes"; then
13458 output_verbose_link_cmd=func_echo_all
13459 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}"
13460 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13461 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}"
13462 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}"
13463 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13464 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}"
13465 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}"
13466 fi
13467
13468 else
13469 ld_shlibs_CXX=no
13470 fi
13471
13472 ;;
13473
13474 dgux*)
13475 case $cc_basename in
13476 ec++*)
13477 # FIXME: insert proper C++ library support
13478 ld_shlibs_CXX=no
13479 ;;
13480 ghcx*)
13481 # Green Hills C++ Compiler
13482 # FIXME: insert proper C++ library support
13483 ld_shlibs_CXX=no
13484 ;;
13485 *)
13486 # FIXME: insert proper C++ library support
13487 ld_shlibs_CXX=no
13488 ;;
13489 esac
13490 ;;
13491
13492 freebsd2.*)
13493 # C++ shared libraries reported to be fairly broken before
13494 # switch to ELF
13495 ld_shlibs_CXX=no
13496 ;;
13497
13498 freebsd-elf*)
13499 archive_cmds_need_lc_CXX=no
13500 ;;
13501
13502 freebsd* | dragonfly*)
13503 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13504 # conventions
13505 ld_shlibs_CXX=yes
13506 ;;
13507
13508 gnu*)
13509 ;;
13510
13511 haiku*)
13512 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13513 link_all_deplibs_CXX=yes
13514 ;;
13515
13516 hpux9*)
13517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13518 hardcode_libdir_separator_CXX=:
13519 export_dynamic_flag_spec_CXX='${wl}-E'
13520 hardcode_direct_CXX=yes
13521 hardcode_minus_L_CXX=yes # Not in the search PATH,
13522 # but as the default
13523 # location of the library.
13524
13525 case $cc_basename in
13526 CC*)
13527 # FIXME: insert proper C++ library support
13528 ld_shlibs_CXX=no
13529 ;;
13530 aCC*)
13531 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'
13532 # Commands to make compiler produce verbose output that lists
13533 # what "hidden" libraries, object files and flags are used when
13534 # linking a shared library.
13535 #
13536 # There doesn't appear to be a way to prevent this compiler from
13537 # explicitly linking system object files so we need to strip them
13538 # from the output so that they don't get included in the library
13539 # dependencies.
13540 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"'
13541 ;;
13542 *)
13543 if test "$GXX" = yes; then
13544 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'
13545 else
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 fi
13549 ;;
13550 esac
13551 ;;
13552
13553 hpux10*|hpux11*)
13554 if test $with_gnu_ld = no; then
13555 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13556 hardcode_libdir_separator_CXX=:
13557
13558 case $host_cpu in
13559 hppa*64*|ia64*)
13560 ;;
13561 *)
13562 export_dynamic_flag_spec_CXX='${wl}-E'
13563 ;;
13564 esac
13565 fi
13566 case $host_cpu in
13567 hppa*64*|ia64*)
13568 hardcode_direct_CXX=no
13569 hardcode_shlibpath_var_CXX=no
13570 ;;
13571 *)
13572 hardcode_direct_CXX=yes
13573 hardcode_direct_absolute_CXX=yes
13574 hardcode_minus_L_CXX=yes # Not in the search PATH,
13575 # but as the default
13576 # location of the library.
13577 ;;
13578 esac
13579
13580 case $cc_basename in
13581 CC*)
13582 # FIXME: insert proper C++ library support
13583 ld_shlibs_CXX=no
13584 ;;
13585 aCC*)
13586 case $host_cpu in
13587 hppa*64*)
13588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13589 ;;
13590 ia64*)
13591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13592 ;;
13593 *)
13594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13595 ;;
13596 esac
13597 # Commands to make compiler produce verbose output that lists
13598 # what "hidden" libraries, object files and flags are used when
13599 # linking a shared library.
13600 #
13601 # There doesn't appear to be a way to prevent this compiler from
13602 # explicitly linking system object files so we need to strip them
13603 # from the output so that they don't get included in the library
13604 # dependencies.
13605 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"'
13606 ;;
13607 *)
13608 if test "$GXX" = yes; then
13609 if test $with_gnu_ld = no; then
13610 case $host_cpu in
13611 hppa*64*)
13612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13613 ;;
13614 ia64*)
13615 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13616 ;;
13617 *)
13618 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'
13619 ;;
13620 esac
13621 fi
13622 else
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13625 fi
13626 ;;
13627 esac
13628 ;;
13629
13630 interix[3-9]*)
13631 hardcode_direct_CXX=no
13632 hardcode_shlibpath_var_CXX=no
13633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13634 export_dynamic_flag_spec_CXX='${wl}-E'
13635 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13636 # Instead, shared libraries are loaded at an image base (0x10000000 by
13637 # default) and relocated if they conflict, which is a slow very memory
13638 # consuming and fragmenting process. To avoid this, we pick a random,
13639 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13640 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13641 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'
13642 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'
13643 ;;
13644 irix5* | irix6*)
13645 case $cc_basename in
13646 CC*)
13647 # SGI C++
13648 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'
13649
13650 # Archives containing C++ object files must be created using
13651 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13653 # in the archive.
13654 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13655 ;;
13656 *)
13657 if test "$GXX" = yes; then
13658 if test "$with_gnu_ld" = no; then
13659 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'
13660 else
13661 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'
13662 fi
13663 fi
13664 link_all_deplibs_CXX=yes
13665 ;;
13666 esac
13667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13668 hardcode_libdir_separator_CXX=:
13669 inherit_rpath_CXX=yes
13670 ;;
13671
13672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13673 case $cc_basename in
13674 KCC*)
13675 # Kuck and Associates, Inc. (KAI) C++ Compiler
13676
13677 # KCC will only create a shared library if the output file
13678 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13679 # to its proper name (with version) after linking.
13680 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'
13681 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'
13682 # Commands to make compiler produce verbose output that lists
13683 # what "hidden" libraries, object files and flags are used when
13684 # linking a shared library.
13685 #
13686 # There doesn't appear to be a way to prevent this compiler from
13687 # explicitly linking system object files so we need to strip them
13688 # from the output so that they don't get included in the library
13689 # dependencies.
13690 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"'
13691
13692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13694
13695 # Archives containing C++ object files must be created using
13696 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13697 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13698 ;;
13699 icpc* | ecpc* )
13700 # Intel C++
13701 with_gnu_ld=yes
13702 # version 8.0 and above of icpc choke on multiply defined symbols
13703 # if we add $predep_objects and $postdep_objects, however 7.1 and
13704 # earlier do not add the objects themselves.
13705 case `$CC -V 2>&1` in
13706 *"Version 7."*)
13707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 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'
13709 ;;
13710 *) # Version 8.0 or newer
13711 tmp_idyn=
13712 case $host_cpu in
13713 ia64*) tmp_idyn=' -i_dynamic';;
13714 esac
13715 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13716 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'
13717 ;;
13718 esac
13719 archive_cmds_need_lc_CXX=no
13720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13723 ;;
13724 pgCC* | pgcpp*)
13725 # Portland Group C++ compiler
13726 case `$CC -V` in
13727 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13728 prelink_cmds_CXX='tpldir=Template.dir~
13729 rm -rf $tpldir~
13730 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13731 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13732 old_archive_cmds_CXX='tpldir=Template.dir~
13733 rm -rf $tpldir~
13734 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13735 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13736 $RANLIB $oldlib'
13737 archive_cmds_CXX='tpldir=Template.dir~
13738 rm -rf $tpldir~
13739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13740 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13741 archive_expsym_cmds_CXX='tpldir=Template.dir~
13742 rm -rf $tpldir~
13743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13744 $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'
13745 ;;
13746 *) # Version 6 and above use weak symbols
13747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13748 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'
13749 ;;
13750 esac
13751
13752 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13754 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'
13755 ;;
13756 cxx*)
13757 # Compaq C++
13758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13759 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'
13760
13761 runpath_var=LD_RUN_PATH
13762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13763 hardcode_libdir_separator_CXX=:
13764
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13768 #
13769 # There doesn't appear to be a way to prevent this compiler from
13770 # explicitly linking system object files so we need to strip them
13771 # from the output so that they don't get included in the library
13772 # dependencies.
13773 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'
13774 ;;
13775 xl* | mpixl* | bgxl*)
13776 # IBM XL 8.0 on PPC, with GNU ld
13777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13779 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13780 if test "x$supports_anon_versioning" = xyes; then
13781 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13783 echo "local: *; };" >> $output_objdir/$libname.ver~
13784 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13785 fi
13786 ;;
13787 *)
13788 case `$CC -V 2>&1 | sed 5q` in
13789 *Sun\ C*)
13790 # Sun C++ 5.9
13791 no_undefined_flag_CXX=' -zdefs'
13792 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13793 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'
13794 hardcode_libdir_flag_spec_CXX='-R$libdir'
13795 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'
13796 compiler_needs_object_CXX=yes
13797
13798 # Not sure whether something based on
13799 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13800 # would be better.
13801 output_verbose_link_cmd='func_echo_all'
13802
13803 # Archives containing C++ object files must be created using
13804 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13805 # necessary to make sure instantiated templates are included
13806 # in the archive.
13807 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13808 ;;
13809 esac
13810 ;;
13811 esac
13812 ;;
13813
13814 lynxos*)
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
13818
13819 m88k*)
13820 # FIXME: insert proper C++ library support
13821 ld_shlibs_CXX=no
13822 ;;
13823
13824 mvs*)
13825 case $cc_basename in
13826 cxx*)
13827 # FIXME: insert proper C++ library support
13828 ld_shlibs_CXX=no
13829 ;;
13830 *)
13831 # FIXME: insert proper C++ library support
13832 ld_shlibs_CXX=no
13833 ;;
13834 esac
13835 ;;
13836
13837 netbsd*)
13838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13839 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13840 wlarc=
13841 hardcode_libdir_flag_spec_CXX='-R$libdir'
13842 hardcode_direct_CXX=yes
13843 hardcode_shlibpath_var_CXX=no
13844 fi
13845 # Workaround some broken pre-1.5 toolchains
13846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13847 ;;
13848
13849 *nto* | *qnx*)
13850 ld_shlibs_CXX=yes
13851 ;;
13852
13853 openbsd2*)
13854 # C++ shared libraries are fairly broken
13855 ld_shlibs_CXX=no
13856 ;;
13857
13858 openbsd*)
13859 if test -f /usr/libexec/ld.so; then
13860 hardcode_direct_CXX=yes
13861 hardcode_shlibpath_var_CXX=no
13862 hardcode_direct_absolute_CXX=yes
13863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13867 export_dynamic_flag_spec_CXX='${wl}-E'
13868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13869 fi
13870 output_verbose_link_cmd=func_echo_all
13871 else
13872 ld_shlibs_CXX=no
13873 fi
13874 ;;
13875
13876 osf3* | osf4* | osf5*)
13877 case $cc_basename in
13878 KCC*)
13879 # Kuck and Associates, Inc. (KAI) C++ Compiler
13880
13881 # KCC will only create a shared library if the output file
13882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13883 # to its proper name (with version) after linking.
13884 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'
13885
13886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13887 hardcode_libdir_separator_CXX=:
13888
13889 # Archives containing C++ object files must be created using
13890 # the KAI C++ compiler.
13891 case $host in
13892 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13893 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13894 esac
13895 ;;
13896 RCC*)
13897 # Rational C++ 2.4.1
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13900 ;;
13901 cxx*)
13902 case $host in
13903 osf3*)
13904 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13905 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'
13906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13907 ;;
13908 *)
13909 allow_undefined_flag_CXX=' -expect_unresolved \*'
13910 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'
13911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13912 echo "-hidden">> $lib.exp~
13913 $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~
13914 $RM $lib.exp'
13915 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13916 ;;
13917 esac
13918
13919 hardcode_libdir_separator_CXX=:
13920
13921 # Commands to make compiler produce verbose output that lists
13922 # what "hidden" libraries, object files and flags are used when
13923 # linking a shared library.
13924 #
13925 # There doesn't appear to be a way to prevent this compiler from
13926 # explicitly linking system object files so we need to strip them
13927 # from the output so that they don't get included in the library
13928 # dependencies.
13929 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"'
13930 ;;
13931 *)
13932 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13933 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13934 case $host in
13935 osf3*)
13936 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'
13937 ;;
13938 *)
13939 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'
13940 ;;
13941 esac
13942
13943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13944 hardcode_libdir_separator_CXX=:
13945
13946 # Commands to make compiler produce verbose output that lists
13947 # what "hidden" libraries, object files and flags are used when
13948 # linking a shared library.
13949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13950
13951 else
13952 # FIXME: insert proper C++ library support
13953 ld_shlibs_CXX=no
13954 fi
13955 ;;
13956 esac
13957 ;;
13958
13959 psos*)
13960 # FIXME: insert proper C++ library support
13961 ld_shlibs_CXX=no
13962 ;;
13963
13964 sunos4*)
13965 case $cc_basename in
13966 CC*)
13967 # Sun C++ 4.x
13968 # FIXME: insert proper C++ library support
13969 ld_shlibs_CXX=no
13970 ;;
13971 lcc*)
13972 # Lucid
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13975 ;;
13976 *)
13977 # FIXME: insert proper C++ library support
13978 ld_shlibs_CXX=no
13979 ;;
13980 esac
13981 ;;
13982
13983 solaris*)
13984 case $cc_basename in
13985 CC* | sunCC*)
13986 # Sun C++ 4.2, 5.x and Centerline C++
13987 archive_cmds_need_lc_CXX=yes
13988 no_undefined_flag_CXX=' -zdefs'
13989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13991 $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'
13992
13993 hardcode_libdir_flag_spec_CXX='-R$libdir'
13994 hardcode_shlibpath_var_CXX=no
13995 case $host_os in
13996 solaris2.[0-5] | solaris2.[0-5].*) ;;
13997 *)
13998 # The compiler driver will combine and reorder linker options,
13999 # but understands `-z linker_flag'.
14000 # Supported since Solaris 2.6 (maybe 2.5.1?)
14001 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14002 ;;
14003 esac
14004 link_all_deplibs_CXX=yes
14005
14006 output_verbose_link_cmd='func_echo_all'
14007
14008 # Archives containing C++ object files must be created using
14009 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14010 # necessary to make sure instantiated templates are included
14011 # in the archive.
14012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14013 ;;
14014 gcx*)
14015 # Green Hills C++ Compiler
14016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14017
14018 # The C++ compiler must be used to create the archive.
14019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14020 ;;
14021 *)
14022 # GNU C++ compiler with Solaris linker
14023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14024 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14025 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14026 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14028 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14029
14030 # Commands to make compiler produce verbose output that lists
14031 # what "hidden" libraries, object files and flags are used when
14032 # linking a shared library.
14033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14034 else
14035 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14036 # platform.
14037 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14039 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14040
14041 # Commands to make compiler produce verbose output that lists
14042 # what "hidden" libraries, object files and flags are used when
14043 # linking a shared library.
14044 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14045 fi
14046
14047 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14048 case $host_os in
14049 solaris2.[0-5] | solaris2.[0-5].*) ;;
14050 *)
14051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14052 ;;
14053 esac
14054 fi
14055 ;;
14056 esac
14057 ;;
14058
14059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14060 no_undefined_flag_CXX='${wl}-z,text'
14061 archive_cmds_need_lc_CXX=no
14062 hardcode_shlibpath_var_CXX=no
14063 runpath_var='LD_RUN_PATH'
14064
14065 case $cc_basename in
14066 CC*)
14067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 ;;
14070 *)
14071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 ;;
14074 esac
14075 ;;
14076
14077 sysv5* | sco3.2v5* | sco5v6*)
14078 # Note: We can NOT use -z defs as we might desire, because we do not
14079 # link with -lc, and that would cause any symbols used from libc to
14080 # always be unresolved, which means just about no library would
14081 # ever link correctly. If we're not using GNU ld we use -z text
14082 # though, which does catch some bad symbols but isn't as heavy-handed
14083 # as -z defs.
14084 no_undefined_flag_CXX='${wl}-z,text'
14085 allow_undefined_flag_CXX='${wl}-z,nodefs'
14086 archive_cmds_need_lc_CXX=no
14087 hardcode_shlibpath_var_CXX=no
14088 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14089 hardcode_libdir_separator_CXX=':'
14090 link_all_deplibs_CXX=yes
14091 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14092 runpath_var='LD_RUN_PATH'
14093
14094 case $cc_basename in
14095 CC*)
14096 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14097 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14098 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14099 '"$old_archive_cmds_CXX"
14100 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14101 '"$reload_cmds_CXX"
14102 ;;
14103 *)
14104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14106 ;;
14107 esac
14108 ;;
14109
14110 tandem*)
14111 case $cc_basename in
14112 NCC*)
14113 # NonStop-UX NCC 3.20
14114 # FIXME: insert proper C++ library support
14115 ld_shlibs_CXX=no
14116 ;;
14117 *)
14118 # FIXME: insert proper C++ library support
14119 ld_shlibs_CXX=no
14120 ;;
14121 esac
14122 ;;
14123
14124 vxworks*)
14125 # FIXME: insert proper C++ library support
14126 ld_shlibs_CXX=no
14127 ;;
14128
14129 *)
14130 # FIXME: insert proper C++ library support
14131 ld_shlibs_CXX=no
14132 ;;
14133 esac
14134
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14136 $as_echo "$ld_shlibs_CXX" >&6; }
14137 test "$ld_shlibs_CXX" = no && can_build_shared=no
14138
14139 GCC_CXX="$GXX"
14140 LD_CXX="$LD"
14141
14142 ## CAVEAT EMPTOR:
14143 ## There is no encapsulation within the following macros, do not change
14144 ## the running order or otherwise move them around unless you know exactly
14145 ## what you are doing...
14146 # Dependencies to place before and after the object being linked:
14147 predep_objects_CXX=
14148 postdep_objects_CXX=
14149 predeps_CXX=
14150 postdeps_CXX=
14151 compiler_lib_search_path_CXX=
14152
14153 cat > conftest.$ac_ext <<_LT_EOF
14154 class Foo
14155 {
14156 public:
14157 Foo (void) { a = 0; }
14158 private:
14159 int a;
14160 };
14161 _LT_EOF
14162
14163
14164 _lt_libdeps_save_CFLAGS=$CFLAGS
14165 case "$CC $CFLAGS " in #(
14166 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14167 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14168 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14169 esac
14170
14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 # Parse the compiler output and extract the necessary
14177 # objects, libraries and library flags.
14178
14179 # Sentinel used to keep track of whether or not we are before
14180 # the conftest object file.
14181 pre_test_object_deps_done=no
14182
14183 for p in `eval "$output_verbose_link_cmd"`; do
14184 case ${prev}${p} in
14185
14186 -L* | -R* | -l*)
14187 # Some compilers place space between "-{L,R}" and the path.
14188 # Remove the space.
14189 if test $p = "-L" ||
14190 test $p = "-R"; then
14191 prev=$p
14192 continue
14193 fi
14194
14195 # Expand the sysroot to ease extracting the directories later.
14196 if test -z "$prev"; then
14197 case $p in
14198 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14199 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14200 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14201 esac
14202 fi
14203 case $p in
14204 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14205 esac
14206 if test "$pre_test_object_deps_done" = no; then
14207 case ${prev} in
14208 -L | -R)
14209 # Internal compiler library paths should come after those
14210 # provided the user. The postdeps already come after the
14211 # user supplied libs so there is no need to process them.
14212 if test -z "$compiler_lib_search_path_CXX"; then
14213 compiler_lib_search_path_CXX="${prev}${p}"
14214 else
14215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14216 fi
14217 ;;
14218 # The "-l" case would never come before the object being
14219 # linked, so don't bother handling this case.
14220 esac
14221 else
14222 if test -z "$postdeps_CXX"; then
14223 postdeps_CXX="${prev}${p}"
14224 else
14225 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14226 fi
14227 fi
14228 prev=
14229 ;;
14230
14231 *.lto.$objext) ;; # Ignore GCC LTO objects
14232 *.$objext)
14233 # This assumes that the test object file only shows up
14234 # once in the compiler output.
14235 if test "$p" = "conftest.$objext"; then
14236 pre_test_object_deps_done=yes
14237 continue
14238 fi
14239
14240 if test "$pre_test_object_deps_done" = no; then
14241 if test -z "$predep_objects_CXX"; then
14242 predep_objects_CXX="$p"
14243 else
14244 predep_objects_CXX="$predep_objects_CXX $p"
14245 fi
14246 else
14247 if test -z "$postdep_objects_CXX"; then
14248 postdep_objects_CXX="$p"
14249 else
14250 postdep_objects_CXX="$postdep_objects_CXX $p"
14251 fi
14252 fi
14253 ;;
14254
14255 *) ;; # Ignore the rest.
14256
14257 esac
14258 done
14259
14260 # Clean up.
14261 rm -f a.out a.exe
14262 else
14263 echo "libtool.m4: error: problem compiling CXX test program"
14264 fi
14265
14266 $RM -f confest.$objext
14267 CFLAGS=$_lt_libdeps_save_CFLAGS
14268
14269 # PORTME: override above test on systems where it is broken
14270 case $host_os in
14271 interix[3-9]*)
14272 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14273 # hack all around it, let's just trust "g++" to DTRT.
14274 predep_objects_CXX=
14275 postdep_objects_CXX=
14276 postdeps_CXX=
14277 ;;
14278
14279 linux*)
14280 case `$CC -V 2>&1 | sed 5q` in
14281 *Sun\ C*)
14282 # Sun C++ 5.9
14283
14284 # The more standards-conforming stlport4 library is
14285 # incompatible with the Cstd library. Avoid specifying
14286 # it if it's in CXXFLAGS. Ignore libCrun as
14287 # -library=stlport4 depends on it.
14288 case " $CXX $CXXFLAGS " in
14289 *" -library=stlport4 "*)
14290 solaris_use_stlport4=yes
14291 ;;
14292 esac
14293
14294 if test "$solaris_use_stlport4" != yes; then
14295 postdeps_CXX='-library=Cstd -library=Crun'
14296 fi
14297 ;;
14298 esac
14299 ;;
14300
14301 solaris*)
14302 case $cc_basename in
14303 CC* | sunCC*)
14304 # The more standards-conforming stlport4 library is
14305 # incompatible with the Cstd library. Avoid specifying
14306 # it if it's in CXXFLAGS. Ignore libCrun as
14307 # -library=stlport4 depends on it.
14308 case " $CXX $CXXFLAGS " in
14309 *" -library=stlport4 "*)
14310 solaris_use_stlport4=yes
14311 ;;
14312 esac
14313
14314 # Adding this requires a known-good setup of shared libraries for
14315 # Sun compiler versions before 5.6, else PIC objects from an old
14316 # archive will be linked into the output, leading to subtle bugs.
14317 if test "$solaris_use_stlport4" != yes; then
14318 postdeps_CXX='-library=Cstd -library=Crun'
14319 fi
14320 ;;
14321 esac
14322 ;;
14323 esac
14324
14325
14326 case " $postdeps_CXX " in
14327 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14328 esac
14329 compiler_lib_search_dirs_CXX=
14330 if test -n "${compiler_lib_search_path_CXX}"; then
14331 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14332 fi
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364 lt_prog_compiler_wl_CXX=
14365 lt_prog_compiler_pic_CXX=
14366 lt_prog_compiler_static_CXX=
14367
14368
14369 # C++ specific cases for pic, static, wl, etc.
14370 if test "$GXX" = yes; then
14371 lt_prog_compiler_wl_CXX='-Wl,'
14372 lt_prog_compiler_static_CXX='-static'
14373
14374 case $host_os in
14375 aix*)
14376 # All AIX code is PIC.
14377 if test "$host_cpu" = ia64; then
14378 # AIX 5 now supports IA64 processor
14379 lt_prog_compiler_static_CXX='-Bstatic'
14380 fi
14381 ;;
14382
14383 amigaos*)
14384 case $host_cpu in
14385 powerpc)
14386 # see comment about AmigaOS4 .so support
14387 lt_prog_compiler_pic_CXX='-fPIC'
14388 ;;
14389 m68k)
14390 # FIXME: we need at least 68020 code to build shared libraries, but
14391 # adding the `-m68020' flag to GCC prevents building anything better,
14392 # like `-m68040'.
14393 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14394 ;;
14395 esac
14396 ;;
14397
14398 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14399 # PIC is the default for these OSes.
14400 ;;
14401 mingw* | cygwin* | os2* | pw32* | cegcc*)
14402 # This hack is so that the source file can tell whether it is being
14403 # built for inclusion in a dll (and should export symbols for example).
14404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14405 # (--disable-auto-import) libraries
14406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14407 ;;
14408 darwin* | rhapsody*)
14409 # PIC is the default on this platform
14410 # Common symbols not allowed in MH_DYLIB files
14411 lt_prog_compiler_pic_CXX='-fno-common'
14412 ;;
14413 *djgpp*)
14414 # DJGPP does not support shared libraries at all
14415 lt_prog_compiler_pic_CXX=
14416 ;;
14417 haiku*)
14418 # PIC is the default for Haiku.
14419 # The "-static" flag exists, but is broken.
14420 lt_prog_compiler_static_CXX=
14421 ;;
14422 interix[3-9]*)
14423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14424 # Instead, we relocate shared libraries at runtime.
14425 ;;
14426 sysv4*MP*)
14427 if test -d /usr/nec; then
14428 lt_prog_compiler_pic_CXX=-Kconform_pic
14429 fi
14430 ;;
14431 hpux*)
14432 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14433 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14434 # sets the default TLS model and affects inlining.
14435 case $host_cpu in
14436 hppa*64*)
14437 ;;
14438 *)
14439 lt_prog_compiler_pic_CXX='-fPIC'
14440 ;;
14441 esac
14442 ;;
14443 *qnx* | *nto*)
14444 # QNX uses GNU C++, but need to define -shared option too, otherwise
14445 # it will coredump.
14446 lt_prog_compiler_pic_CXX='-fPIC -shared'
14447 ;;
14448 *)
14449 lt_prog_compiler_pic_CXX='-fPIC'
14450 ;;
14451 esac
14452 else
14453 case $host_os in
14454 aix[4-9]*)
14455 # All AIX code is PIC.
14456 if test "$host_cpu" = ia64; then
14457 # AIX 5 now supports IA64 processor
14458 lt_prog_compiler_static_CXX='-Bstatic'
14459 else
14460 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14461 fi
14462 ;;
14463 chorus*)
14464 case $cc_basename in
14465 cxch68*)
14466 # Green Hills C++ Compiler
14467 # _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"
14468 ;;
14469 esac
14470 ;;
14471 mingw* | cygwin* | os2* | pw32* | cegcc*)
14472 # This hack is so that the source file can tell whether it is being
14473 # built for inclusion in a dll (and should export symbols for example).
14474 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14475 ;;
14476 dgux*)
14477 case $cc_basename in
14478 ec++*)
14479 lt_prog_compiler_pic_CXX='-KPIC'
14480 ;;
14481 ghcx*)
14482 # Green Hills C++ Compiler
14483 lt_prog_compiler_pic_CXX='-pic'
14484 ;;
14485 *)
14486 ;;
14487 esac
14488 ;;
14489 freebsd* | dragonfly*)
14490 # FreeBSD uses GNU C++
14491 ;;
14492 hpux9* | hpux10* | hpux11*)
14493 case $cc_basename in
14494 CC*)
14495 lt_prog_compiler_wl_CXX='-Wl,'
14496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14497 if test "$host_cpu" != ia64; then
14498 lt_prog_compiler_pic_CXX='+Z'
14499 fi
14500 ;;
14501 aCC*)
14502 lt_prog_compiler_wl_CXX='-Wl,'
14503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14504 case $host_cpu in
14505 hppa*64*|ia64*)
14506 # +Z the default
14507 ;;
14508 *)
14509 lt_prog_compiler_pic_CXX='+Z'
14510 ;;
14511 esac
14512 ;;
14513 *)
14514 ;;
14515 esac
14516 ;;
14517 interix*)
14518 # This is c89, which is MS Visual C++ (no shared libs)
14519 # Anyone wants to do a port?
14520 ;;
14521 irix5* | irix6* | nonstopux*)
14522 case $cc_basename in
14523 CC*)
14524 lt_prog_compiler_wl_CXX='-Wl,'
14525 lt_prog_compiler_static_CXX='-non_shared'
14526 # CC pic flag -KPIC is the default.
14527 ;;
14528 *)
14529 ;;
14530 esac
14531 ;;
14532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14533 case $cc_basename in
14534 KCC*)
14535 # KAI C++ Compiler
14536 lt_prog_compiler_wl_CXX='--backend -Wl,'
14537 lt_prog_compiler_pic_CXX='-fPIC'
14538 ;;
14539 ecpc* )
14540 # old Intel C++ for x86_64 which still supported -KPIC.
14541 lt_prog_compiler_wl_CXX='-Wl,'
14542 lt_prog_compiler_pic_CXX='-KPIC'
14543 lt_prog_compiler_static_CXX='-static'
14544 ;;
14545 icpc* )
14546 # Intel C++, used to be incompatible with GCC.
14547 # ICC 10 doesn't accept -KPIC any more.
14548 lt_prog_compiler_wl_CXX='-Wl,'
14549 lt_prog_compiler_pic_CXX='-fPIC'
14550 lt_prog_compiler_static_CXX='-static'
14551 ;;
14552 pgCC* | pgcpp*)
14553 # Portland Group C++ compiler
14554 lt_prog_compiler_wl_CXX='-Wl,'
14555 lt_prog_compiler_pic_CXX='-fpic'
14556 lt_prog_compiler_static_CXX='-Bstatic'
14557 ;;
14558 cxx*)
14559 # Compaq C++
14560 # Make sure the PIC flag is empty. It appears that all Alpha
14561 # Linux and Compaq Tru64 Unix objects are PIC.
14562 lt_prog_compiler_pic_CXX=
14563 lt_prog_compiler_static_CXX='-non_shared'
14564 ;;
14565 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14566 # IBM XL 8.0, 9.0 on PPC and BlueGene
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_pic_CXX='-qpic'
14569 lt_prog_compiler_static_CXX='-qstaticlink'
14570 ;;
14571 *)
14572 case `$CC -V 2>&1 | sed 5q` in
14573 *Sun\ C*)
14574 # Sun C++ 5.9
14575 lt_prog_compiler_pic_CXX='-KPIC'
14576 lt_prog_compiler_static_CXX='-Bstatic'
14577 lt_prog_compiler_wl_CXX='-Qoption ld '
14578 ;;
14579 esac
14580 ;;
14581 esac
14582 ;;
14583 lynxos*)
14584 ;;
14585 m88k*)
14586 ;;
14587 mvs*)
14588 case $cc_basename in
14589 cxx*)
14590 lt_prog_compiler_pic_CXX='-W c,exportall'
14591 ;;
14592 *)
14593 ;;
14594 esac
14595 ;;
14596 netbsd*)
14597 ;;
14598 *qnx* | *nto*)
14599 # QNX uses GNU C++, but need to define -shared option too, otherwise
14600 # it will coredump.
14601 lt_prog_compiler_pic_CXX='-fPIC -shared'
14602 ;;
14603 osf3* | osf4* | osf5*)
14604 case $cc_basename in
14605 KCC*)
14606 lt_prog_compiler_wl_CXX='--backend -Wl,'
14607 ;;
14608 RCC*)
14609 # Rational C++ 2.4.1
14610 lt_prog_compiler_pic_CXX='-pic'
14611 ;;
14612 cxx*)
14613 # Digital/Compaq C++
14614 lt_prog_compiler_wl_CXX='-Wl,'
14615 # Make sure the PIC flag is empty. It appears that all Alpha
14616 # Linux and Compaq Tru64 Unix objects are PIC.
14617 lt_prog_compiler_pic_CXX=
14618 lt_prog_compiler_static_CXX='-non_shared'
14619 ;;
14620 *)
14621 ;;
14622 esac
14623 ;;
14624 psos*)
14625 ;;
14626 solaris*)
14627 case $cc_basename in
14628 CC* | sunCC*)
14629 # Sun C++ 4.2, 5.x and Centerline C++
14630 lt_prog_compiler_pic_CXX='-KPIC'
14631 lt_prog_compiler_static_CXX='-Bstatic'
14632 lt_prog_compiler_wl_CXX='-Qoption ld '
14633 ;;
14634 gcx*)
14635 # Green Hills C++ Compiler
14636 lt_prog_compiler_pic_CXX='-PIC'
14637 ;;
14638 *)
14639 ;;
14640 esac
14641 ;;
14642 sunos4*)
14643 case $cc_basename in
14644 CC*)
14645 # Sun C++ 4.x
14646 lt_prog_compiler_pic_CXX='-pic'
14647 lt_prog_compiler_static_CXX='-Bstatic'
14648 ;;
14649 lcc*)
14650 # Lucid
14651 lt_prog_compiler_pic_CXX='-pic'
14652 ;;
14653 *)
14654 ;;
14655 esac
14656 ;;
14657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14658 case $cc_basename in
14659 CC*)
14660 lt_prog_compiler_wl_CXX='-Wl,'
14661 lt_prog_compiler_pic_CXX='-KPIC'
14662 lt_prog_compiler_static_CXX='-Bstatic'
14663 ;;
14664 esac
14665 ;;
14666 tandem*)
14667 case $cc_basename in
14668 NCC*)
14669 # NonStop-UX NCC 3.20
14670 lt_prog_compiler_pic_CXX='-KPIC'
14671 ;;
14672 *)
14673 ;;
14674 esac
14675 ;;
14676 vxworks*)
14677 ;;
14678 *)
14679 lt_prog_compiler_can_build_shared_CXX=no
14680 ;;
14681 esac
14682 fi
14683
14684 case $host_os in
14685 # For platforms which do not support PIC, -DPIC is meaningless:
14686 *djgpp*)
14687 lt_prog_compiler_pic_CXX=
14688 ;;
14689 *)
14690 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14691 ;;
14692 esac
14693
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14695 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14696 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14700 fi
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14702 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14703 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14704
14705 #
14706 # Check to make sure the PIC flag actually works.
14707 #
14708 if test -n "$lt_prog_compiler_pic_CXX"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14710 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14711 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 lt_cv_prog_compiler_pic_works_CXX=no
14715 ac_outfile=conftest.$ac_objext
14716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
14724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
14727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14728 (eval "$lt_compile" 2>conftest.err)
14729 ac_status=$?
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
14734 # So say no if there are warnings other than the usual output.
14735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14738 lt_cv_prog_compiler_pic_works_CXX=yes
14739 fi
14740 fi
14741 $RM -r conftest*
14742
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14745 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14746
14747 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14748 case $lt_prog_compiler_pic_CXX in
14749 "" | " "*) ;;
14750 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14751 esac
14752 else
14753 lt_prog_compiler_pic_CXX=
14754 lt_prog_compiler_can_build_shared_CXX=no
14755 fi
14756
14757 fi
14758
14759
14760
14761
14762
14763 #
14764 # Check to make sure the static flag actually works.
14765 #
14766 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14768 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14769 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 lt_cv_prog_compiler_static_works_CXX=no
14773 save_LDFLAGS="$LDFLAGS"
14774 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14775 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14776 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14777 # The linker can only warn and ignore the option if not recognized
14778 # So say no if there are warnings
14779 if test -s conftest.err; then
14780 # Append any errors to the config.log.
14781 cat conftest.err 1>&5
14782 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784 if diff conftest.exp conftest.er2 >/dev/null; then
14785 lt_cv_prog_compiler_static_works_CXX=yes
14786 fi
14787 else
14788 lt_cv_prog_compiler_static_works_CXX=yes
14789 fi
14790 fi
14791 $RM -r conftest*
14792 LDFLAGS="$save_LDFLAGS"
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14796 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14797
14798 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14799 :
14800 else
14801 lt_prog_compiler_static_CXX=
14802 fi
14803
14804
14805
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14809 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 lt_cv_prog_compiler_c_o_CXX=no
14813 $RM -r conftest 2>/dev/null
14814 mkdir conftest
14815 cd conftest
14816 mkdir out
14817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818
14819 lt_compiler_flag="-o out/conftest2.$ac_objext"
14820 # Insert the option either (1) after the last *FLAGS variable, or
14821 # (2) before a word containing "conftest.", or (3) at the end.
14822 # Note that $ac_compile itself does not contain backslashes and begins
14823 # with a dollar sign (not a hyphen), so the echo should work correctly.
14824 lt_compile=`echo "$ac_compile" | $SED \
14825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14827 -e 's:$: $lt_compiler_flag:'`
14828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14829 (eval "$lt_compile" 2>out/conftest.err)
14830 ac_status=$?
14831 cat out/conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14834 then
14835 # The compiler can only warn and ignore the option if not recognized
14836 # So say no if there are warnings
14837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14840 lt_cv_prog_compiler_c_o_CXX=yes
14841 fi
14842 fi
14843 chmod u+w . 2>&5
14844 $RM -r conftest*
14845 # SGI C++ compiler will create directory out/ii_files/ for
14846 # template instantiation
14847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14848 $RM out/* && rmdir out
14849 cd ..
14850 $RM -r conftest
14851 $RM -r conftest*
14852
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14855 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14856
14857
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14861 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 lt_cv_prog_compiler_c_o_CXX=no
14865 $RM -r conftest 2>/dev/null
14866 mkdir conftest
14867 cd conftest
14868 mkdir out
14869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14870
14871 lt_compiler_flag="-o out/conftest2.$ac_objext"
14872 # Insert the option either (1) after the last *FLAGS variable, or
14873 # (2) before a word containing "conftest.", or (3) at the end.
14874 # Note that $ac_compile itself does not contain backslashes and begins
14875 # with a dollar sign (not a hyphen), so the echo should work correctly.
14876 lt_compile=`echo "$ac_compile" | $SED \
14877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14879 -e 's:$: $lt_compiler_flag:'`
14880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14881 (eval "$lt_compile" 2>out/conftest.err)
14882 ac_status=$?
14883 cat out/conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14886 then
14887 # The compiler can only warn and ignore the option if not recognized
14888 # So say no if there are warnings
14889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14892 lt_cv_prog_compiler_c_o_CXX=yes
14893 fi
14894 fi
14895 chmod u+w . 2>&5
14896 $RM -r conftest*
14897 # SGI C++ compiler will create directory out/ii_files/ for
14898 # template instantiation
14899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14900 $RM out/* && rmdir out
14901 cd ..
14902 $RM -r conftest
14903 $RM -r conftest*
14904
14905 fi
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14907 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14908
14909
14910
14911
14912 hard_links="nottested"
14913 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14914 # do not overwrite the value of need_locks provided by the user
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14916 $as_echo_n "checking if we can lock with hard links... " >&6; }
14917 hard_links=yes
14918 $RM -r conftest*
14919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14920 touch conftest.a
14921 ln conftest.a conftest.b 2>&5 || hard_links=no
14922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14924 $as_echo "$hard_links" >&6; }
14925 if test "$hard_links" = no; then
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14927 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14928 need_locks=warn
14929 fi
14930 else
14931 need_locks=no
14932 fi
14933
14934
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14937 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14938
14939 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14940 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14941 case $host_os in
14942 aix[4-9]*)
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945 # Also, AIX nm treats weak defined symbols like other global defined
14946 # symbols, whereas GNU nm marks them as "W".
14947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14948 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'
14949 else
14950 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'
14951 fi
14952 ;;
14953 pw32*)
14954 export_symbols_cmds_CXX="$ltdll_cmds"
14955 ;;
14956 cygwin* | mingw* | cegcc*)
14957 case $cc_basename in
14958 cl*)
14959 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14960 ;;
14961 *)
14962 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'
14963 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14964 ;;
14965 esac
14966 ;;
14967 *)
14968 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14969 ;;
14970 esac
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14973 $as_echo "$ld_shlibs_CXX" >&6; }
14974 test "$ld_shlibs_CXX" = no && can_build_shared=no
14975
14976 with_gnu_ld_CXX=$with_gnu_ld
14977
14978
14979
14980
14981
14982
14983 #
14984 # Do we need to explicitly link libc?
14985 #
14986 case "x$archive_cmds_need_lc_CXX" in
14987 x|xyes)
14988 # Assume -lc should be added
14989 archive_cmds_need_lc_CXX=yes
14990
14991 if test "$enable_shared" = yes && test "$GCC" = yes; then
14992 case $archive_cmds_CXX in
14993 *'~'*)
14994 # FIXME: we may have to deal with multi-command sequences.
14995 ;;
14996 '$CC '*)
14997 # Test whether the compiler implicitly links with -lc since on some
14998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14999 # to ld, don't add -lc before -lgcc.
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15002 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 $RM -r conftest*
15006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007
15008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15009 (eval $ac_compile) 2>&5
15010 ac_status=$?
15011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15012 test $ac_status = 0; } 2>conftest.err; then
15013 soname=conftest
15014 lib=conftest
15015 libobjs=conftest.$ac_objext
15016 deplibs=
15017 wl=$lt_prog_compiler_wl_CXX
15018 pic_flag=$lt_prog_compiler_pic_CXX
15019 compiler_flags=-v
15020 linker_flags=-v
15021 verstring=
15022 output_objdir=.
15023 libname=conftest
15024 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15025 allow_undefined_flag_CXX=
15026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15027 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028 ac_status=$?
15029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15030 test $ac_status = 0; }
15031 then
15032 lt_cv_archive_cmds_need_lc_CXX=no
15033 else
15034 lt_cv_archive_cmds_need_lc_CXX=yes
15035 fi
15036 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15037 else
15038 cat conftest.err 1>&5
15039 fi
15040 $RM -r conftest*
15041
15042 fi
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15044 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15045 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15046 ;;
15047 esac
15048 fi
15049 ;;
15050 esac
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15114 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15115
15116 library_names_spec=
15117 libname_spec='lib$name'
15118 soname_spec=
15119 shrext_cmds=".so"
15120 postinstall_cmds=
15121 postuninstall_cmds=
15122 finish_cmds=
15123 finish_eval=
15124 shlibpath_var=
15125 shlibpath_overrides_runpath=unknown
15126 version_type=none
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15131
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15135
15136 case $host_os in
15137 aix3*)
15138 version_type=linux # correct to gnu/linux during the next big refactor
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140 shlibpath_var=LIBPATH
15141
15142 # AIX 3 has no versioning support, so we append a major version to the name.
15143 soname_spec='${libname}${release}${shared_ext}$major'
15144 ;;
15145
15146 aix[4-9]*)
15147 version_type=linux # correct to gnu/linux during the next big refactor
15148 need_lib_prefix=no
15149 need_version=no
15150 hardcode_into_libs=yes
15151 if test "$host_cpu" = ia64; then
15152 # AIX 5 supports IA64
15153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 else
15156 # With GCC up to 2.95.x, collect2 would create an import file
15157 # for dependence libraries. The import file would start with
15158 # the line `#! .'. This would cause the generated library to
15159 # depend on `.', always an invalid library. This was fixed in
15160 # development snapshots of GCC prior to 3.0.
15161 case $host_os in
15162 aix4 | aix4.[01] | aix4.[01].*)
15163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15164 echo ' yes '
15165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166 :
15167 else
15168 can_build_shared=no
15169 fi
15170 ;;
15171 esac
15172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173 # soname into executable. Probably we can add versioning support to
15174 # collect2, so additional links can be useful in future.
15175 if test "$aix_use_runtimelinking" = yes; then
15176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177 # instead of lib<name>.a to let people know that these are not
15178 # typical AIX shared libraries.
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180 else
15181 # We preserve .a as extension for shared libraries through AIX4.2
15182 # and later when we are not doing run time linking.
15183 library_names_spec='${libname}${release}.a $libname.a'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 fi
15186 shlibpath_var=LIBPATH
15187 fi
15188 ;;
15189
15190 amigaos*)
15191 case $host_cpu in
15192 powerpc)
15193 # Since July 2007 AmigaOS4 officially supports .so libraries.
15194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 ;;
15197 m68k)
15198 library_names_spec='$libname.ixlibrary $libname.a'
15199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15200 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'
15201 ;;
15202 esac
15203 ;;
15204
15205 beos*)
15206 library_names_spec='${libname}${shared_ext}'
15207 dynamic_linker="$host_os ld.so"
15208 shlibpath_var=LIBRARY_PATH
15209 ;;
15210
15211 bsdi[45]*)
15212 version_type=linux # correct to gnu/linux during the next big refactor
15213 need_version=no
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220 # the default ld.so.conf also contains /usr/contrib/lib and
15221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222 # libtool to hard-code these into programs
15223 ;;
15224
15225 cygwin* | mingw* | pw32* | cegcc*)
15226 version_type=windows
15227 shrext_cmds=".dll"
15228 need_version=no
15229 need_lib_prefix=no
15230
15231 case $GCC,$cc_basename in
15232 yes,*)
15233 # gcc
15234 library_names_spec='$libname.dll.a'
15235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236 postinstall_cmds='base_file=`basename \${file}`~
15237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15238 dldir=$destdir/`dirname \$dlpath`~
15239 test -d \$dldir || mkdir -p \$dldir~
15240 $install_prog $dir/$dlname \$dldir/$dlname~
15241 chmod a+x \$dldir/$dlname~
15242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15244 fi'
15245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15246 dlpath=$dir/\$dldll~
15247 $RM \$dlpath'
15248 shlibpath_overrides_runpath=yes
15249
15250 case $host_os in
15251 cygwin*)
15252 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15253 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254
15255 ;;
15256 mingw* | cegcc*)
15257 # MinGW DLLs use traditional 'lib' prefix
15258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15259 ;;
15260 pw32*)
15261 # pw32 DLLs use 'pw' prefix rather than 'lib'
15262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15263 ;;
15264 esac
15265 dynamic_linker='Win32 ld.exe'
15266 ;;
15267
15268 *,cl*)
15269 # Native MSVC
15270 libname_spec='$name'
15271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272 library_names_spec='${libname}.dll.lib'
15273
15274 case $build_os in
15275 mingw*)
15276 sys_lib_search_path_spec=
15277 lt_save_ifs=$IFS
15278 IFS=';'
15279 for lt_path in $LIB
15280 do
15281 IFS=$lt_save_ifs
15282 # Let DOS variable expansion print the short 8.3 style file name.
15283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15285 done
15286 IFS=$lt_save_ifs
15287 # Convert to MSYS style.
15288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15289 ;;
15290 cygwin*)
15291 # Convert to unix form, then to dos form, then back to unix form
15292 # but this time dos style (no spaces!) so that the unix form looks
15293 # like /cygdrive/c/PROGRA~1:/cygdr...
15294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15297 ;;
15298 *)
15299 sys_lib_search_path_spec="$LIB"
15300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15301 # It is most probably a Windows format PATH.
15302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 else
15304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15305 fi
15306 # FIXME: find the short name or the path components, as spaces are
15307 # common. (e.g. "Program Files" -> "PROGRA~1")
15308 ;;
15309 esac
15310
15311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15312 postinstall_cmds='base_file=`basename \${file}`~
15313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15314 dldir=$destdir/`dirname \$dlpath`~
15315 test -d \$dldir || mkdir -p \$dldir~
15316 $install_prog $dir/$dlname \$dldir/$dlname'
15317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15318 dlpath=$dir/\$dldll~
15319 $RM \$dlpath'
15320 shlibpath_overrides_runpath=yes
15321 dynamic_linker='Win32 link.exe'
15322 ;;
15323
15324 *)
15325 # Assume MSVC wrapper
15326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15327 dynamic_linker='Win32 ld.exe'
15328 ;;
15329 esac
15330 # FIXME: first we should search . and the directory the executable is in
15331 shlibpath_var=PATH
15332 ;;
15333
15334 darwin* | rhapsody*)
15335 dynamic_linker="$host_os dyld"
15336 version_type=darwin
15337 need_lib_prefix=no
15338 need_version=no
15339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15340 soname_spec='${libname}${release}${major}$shared_ext'
15341 shlibpath_overrides_runpath=yes
15342 shlibpath_var=DYLD_LIBRARY_PATH
15343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15344
15345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15346 ;;
15347
15348 dgux*)
15349 version_type=linux # correct to gnu/linux during the next big refactor
15350 need_lib_prefix=no
15351 need_version=no
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 ;;
15356
15357 freebsd* | dragonfly*)
15358 # DragonFly does not have aout. When/if they implement a new
15359 # versioning mechanism, adjust this.
15360 if test -x /usr/bin/objformat; then
15361 objformat=`/usr/bin/objformat`
15362 else
15363 case $host_os in
15364 freebsd[23].*) objformat=aout ;;
15365 *) objformat=elf ;;
15366 esac
15367 fi
15368 version_type=freebsd-$objformat
15369 case $version_type in
15370 freebsd-elf*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15372 need_version=no
15373 need_lib_prefix=no
15374 ;;
15375 freebsd-*)
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15377 need_version=yes
15378 ;;
15379 esac
15380 shlibpath_var=LD_LIBRARY_PATH
15381 case $host_os in
15382 freebsd2.*)
15383 shlibpath_overrides_runpath=yes
15384 ;;
15385 freebsd3.[01]* | freebsdelf3.[01]*)
15386 shlibpath_overrides_runpath=yes
15387 hardcode_into_libs=yes
15388 ;;
15389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15391 shlibpath_overrides_runpath=no
15392 hardcode_into_libs=yes
15393 ;;
15394 *) # from 4.6 on, and DragonFly
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15397 ;;
15398 esac
15399 ;;
15400
15401 gnu*)
15402 version_type=linux # correct to gnu/linux during the next big refactor
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15410 ;;
15411
15412 haiku*)
15413 version_type=linux # correct to gnu/linux during the next big refactor
15414 need_lib_prefix=no
15415 need_version=no
15416 dynamic_linker="$host_os runtime_loader"
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15422 hardcode_into_libs=yes
15423 ;;
15424
15425 hpux9* | hpux10* | hpux11*)
15426 # Give a soname corresponding to the major version so that dld.sl refuses to
15427 # link against other versions.
15428 version_type=sunos
15429 need_lib_prefix=no
15430 need_version=no
15431 case $host_cpu in
15432 ia64*)
15433 shrext_cmds='.so'
15434 hardcode_into_libs=yes
15435 dynamic_linker="$host_os dld.so"
15436 shlibpath_var=LD_LIBRARY_PATH
15437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 soname_spec='${libname}${release}${shared_ext}$major'
15440 if test "X$HPUX_IA64_MODE" = X32; then
15441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442 else
15443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444 fi
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 ;;
15447 hppa*64*)
15448 shrext_cmds='.sl'
15449 hardcode_into_libs=yes
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15457 ;;
15458 *)
15459 shrext_cmds='.sl'
15460 dynamic_linker="$host_os dld.sl"
15461 shlibpath_var=SHLIB_PATH
15462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 ;;
15466 esac
15467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15468 postinstall_cmds='chmod 555 $lib'
15469 # or fails outright, so override atomically:
15470 install_override_mode=555
15471 ;;
15472
15473 interix[3-9]*)
15474 version_type=linux # correct to gnu/linux during the next big refactor
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=no
15482 hardcode_into_libs=yes
15483 ;;
15484
15485 irix5* | irix6* | nonstopux*)
15486 case $host_os in
15487 nonstopux*) version_type=nonstopux ;;
15488 *)
15489 if test "$lt_cv_prog_gnu_ld" = yes; then
15490 version_type=linux # correct to gnu/linux during the next big refactor
15491 else
15492 version_type=irix
15493 fi ;;
15494 esac
15495 need_lib_prefix=no
15496 need_version=no
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15499 case $host_os in
15500 irix5* | nonstopux*)
15501 libsuff= shlibsuff=
15502 ;;
15503 *)
15504 case $LD in # libtool.m4 will add one of these switches to LD
15505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506 libsuff= shlibsuff= libmagic=32-bit;;
15507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508 libsuff=32 shlibsuff=N32 libmagic=N32;;
15509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511 *) libsuff= shlibsuff= libmagic=never-match;;
15512 esac
15513 ;;
15514 esac
15515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516 shlibpath_overrides_runpath=no
15517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519 hardcode_into_libs=yes
15520 ;;
15521
15522 # No shared lib support for Linux oldld, aout, or coff.
15523 linux*oldld* | linux*aout* | linux*coff*)
15524 dynamic_linker=no
15525 ;;
15526
15527 # This must be glibc/ELF.
15528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15529 version_type=linux # correct to gnu/linux during the next big refactor
15530 need_lib_prefix=no
15531 need_version=no
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=no
15537
15538 # Some binutils ld are patched to set DT_RUNPATH
15539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 lt_cv_shlibpath_overrides_runpath=no
15543 save_LDFLAGS=$LDFLAGS
15544 save_libdir=$libdir
15545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549
15550 int
15551 main ()
15552 {
15553
15554 ;
15555 return 0;
15556 }
15557 _ACEOF
15558 if ac_fn_cxx_try_link "$LINENO"; then :
15559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15560 lt_cv_shlibpath_overrides_runpath=yes
15561 fi
15562 fi
15563 rm -f core conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LDFLAGS=$save_LDFLAGS
15566 libdir=$save_libdir
15567
15568 fi
15569
15570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15571
15572 # This implies no fast_install, which is unacceptable.
15573 # Some rework will be needed to allow for fast_install
15574 # before this can be enabled.
15575 hardcode_into_libs=yes
15576
15577 # Append ld.so.conf contents to the search path
15578 if test -f /etc/ld.so.conf; then
15579 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' ' '`
15580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15581 fi
15582
15583 # We used to test for /lib/ld.so.1 and disable shared libraries on
15584 # powerpc, because MkLinux only supported shared libraries with the
15585 # GNU dynamic linker. Since this was broken with cross compilers,
15586 # most powerpc-linux boxes support dynamic linking these days and
15587 # people can always --disable-shared, the test was removed, and we
15588 # assume the GNU/Linux dynamic linker is in use.
15589 dynamic_linker='GNU/Linux ld.so'
15590 ;;
15591
15592 netbsd*)
15593 version_type=sunos
15594 need_lib_prefix=no
15595 need_version=no
15596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15599 dynamic_linker='NetBSD (a.out) ld.so'
15600 else
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='NetBSD ld.elf_so'
15604 fi
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
15608 ;;
15609
15610 newsos6)
15611 version_type=linux # correct to gnu/linux during the next big refactor
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 shlibpath_overrides_runpath=yes
15615 ;;
15616
15617 *nto* | *qnx*)
15618 version_type=qnx
15619 need_lib_prefix=no
15620 need_version=no
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 shlibpath_var=LD_LIBRARY_PATH
15624 shlibpath_overrides_runpath=no
15625 hardcode_into_libs=yes
15626 dynamic_linker='ldqnx.so'
15627 ;;
15628
15629 openbsd*)
15630 version_type=sunos
15631 sys_lib_dlsearch_path_spec="/usr/lib"
15632 need_lib_prefix=no
15633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15634 case $host_os in
15635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15636 *) need_version=no ;;
15637 esac
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 case $host_os in
15643 openbsd2.[89] | openbsd2.[89].*)
15644 shlibpath_overrides_runpath=no
15645 ;;
15646 *)
15647 shlibpath_overrides_runpath=yes
15648 ;;
15649 esac
15650 else
15651 shlibpath_overrides_runpath=yes
15652 fi
15653 ;;
15654
15655 os2*)
15656 libname_spec='$name'
15657 shrext_cmds=".dll"
15658 need_lib_prefix=no
15659 library_names_spec='$libname${shared_ext} $libname.a'
15660 dynamic_linker='OS/2 ld.exe'
15661 shlibpath_var=LIBPATH
15662 ;;
15663
15664 osf3* | osf4* | osf5*)
15665 version_type=osf
15666 need_lib_prefix=no
15667 need_version=no
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15673 ;;
15674
15675 rdos*)
15676 dynamic_linker=no
15677 ;;
15678
15679 solaris*)
15680 version_type=linux # correct to gnu/linux during the next big refactor
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=yes
15687 hardcode_into_libs=yes
15688 # ldd complains unless libraries are executable
15689 postinstall_cmds='chmod +x $lib'
15690 ;;
15691
15692 sunos4*)
15693 version_type=sunos
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 if test "$with_gnu_ld" = yes; then
15699 need_lib_prefix=no
15700 fi
15701 need_version=yes
15702 ;;
15703
15704 sysv4 | sysv4.3*)
15705 version_type=linux # correct to gnu/linux during the next big refactor
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707 soname_spec='${libname}${release}${shared_ext}$major'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 case $host_vendor in
15710 sni)
15711 shlibpath_overrides_runpath=no
15712 need_lib_prefix=no
15713 runpath_var=LD_RUN_PATH
15714 ;;
15715 siemens)
15716 need_lib_prefix=no
15717 ;;
15718 motorola)
15719 need_lib_prefix=no
15720 need_version=no
15721 shlibpath_overrides_runpath=no
15722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15723 ;;
15724 esac
15725 ;;
15726
15727 sysv4*MP*)
15728 if test -d /usr/nec ;then
15729 version_type=linux # correct to gnu/linux during the next big refactor
15730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15731 soname_spec='$libname${shared_ext}.$major'
15732 shlibpath_var=LD_LIBRARY_PATH
15733 fi
15734 ;;
15735
15736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15737 version_type=freebsd-elf
15738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=yes
15744 hardcode_into_libs=yes
15745 if test "$with_gnu_ld" = yes; then
15746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15747 else
15748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15749 case $host_os in
15750 sco3.2v5*)
15751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15752 ;;
15753 esac
15754 fi
15755 sys_lib_dlsearch_path_spec='/usr/lib'
15756 ;;
15757
15758 tpf*)
15759 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15760 version_type=linux # correct to gnu/linux during the next big refactor
15761 need_lib_prefix=no
15762 need_version=no
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=no
15766 hardcode_into_libs=yes
15767 ;;
15768
15769 uts4*)
15770 version_type=linux # correct to gnu/linux during the next big refactor
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 ;;
15775
15776 *)
15777 dynamic_linker=no
15778 ;;
15779 esac
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15781 $as_echo "$dynamic_linker" >&6; }
15782 test "$dynamic_linker" = no && can_build_shared=no
15783
15784 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15785 if test "$GCC" = yes; then
15786 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15787 fi
15788
15789 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15790 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15791 fi
15792 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15793 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15794 fi
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15834 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15835 hardcode_action_CXX=
15836 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15837 test -n "$runpath_var_CXX" ||
15838 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15839
15840 # We can hardcode non-existent directories.
15841 if test "$hardcode_direct_CXX" != no &&
15842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15843 # have to relink, otherwise we might link with an installed library
15844 # when we should be linking with a yet-to-be-installed one
15845 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15846 test "$hardcode_minus_L_CXX" != no; then
15847 # Linking always hardcodes the temporary library directory.
15848 hardcode_action_CXX=relink
15849 else
15850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15851 hardcode_action_CXX=immediate
15852 fi
15853 else
15854 # We cannot hardcode anything, or else we can only hardcode existing
15855 # directories.
15856 hardcode_action_CXX=unsupported
15857 fi
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15859 $as_echo "$hardcode_action_CXX" >&6; }
15860
15861 if test "$hardcode_action_CXX" = relink ||
15862 test "$inherit_rpath_CXX" = yes; then
15863 # Fast installation is not supported
15864 enable_fast_install=no
15865 elif test "$shlibpath_overrides_runpath" = yes ||
15866 test "$enable_shared" = no; then
15867 # Fast installation is not necessary
15868 enable_fast_install=needless
15869 fi
15870
15871
15872
15873
15874
15875
15876
15877 fi # test -n "$compiler"
15878
15879 CC=$lt_save_CC
15880 CFLAGS=$lt_save_CFLAGS
15881 LDCXX=$LD
15882 LD=$lt_save_LD
15883 GCC=$lt_save_GCC
15884 with_gnu_ld=$lt_save_with_gnu_ld
15885 lt_cv_path_LDCXX=$lt_cv_path_LD
15886 lt_cv_path_LD=$lt_save_path_LD
15887 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15888 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15889 fi # test "$_lt_caught_CXX_error" != yes
15890
15891 ac_ext=c
15892 ac_cpp='$CPP $CPPFLAGS'
15893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911 ac_config_commands="$ac_config_commands libtool"
15912
15913
15914
15915
15916 # Only expand once:
15917
15918
15919
15920 ac_ext=cpp
15921 ac_cpp='$CXXCPP $CPPFLAGS'
15922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15925
15926
15927 ax_cxx_compile_cxx11_required=true
15928 ac_ext=cpp
15929 ac_cpp='$CXXCPP $CPPFLAGS'
15930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15933 ac_success=no
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
15935 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
15936 if ${ax_cv_cxx_compile_cxx11+:} false; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941
15942 template <typename T>
15943 struct check
15944 {
15945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15946 };
15947
15948 struct Base {
15949 virtual void f() {}
15950 };
15951 struct Child : public Base {
15952 virtual void f() override {}
15953 };
15954
15955 typedef check<check<bool>> right_angle_brackets;
15956
15957 int a;
15958 decltype(a) b;
15959
15960 typedef check<int> check_type;
15961 check_type c;
15962 check_type&& cr = static_cast<check_type&&>(c);
15963
15964 auto d = a;
15965 auto l = [](){};
15966
15967 _ACEOF
15968 if ac_fn_cxx_try_compile "$LINENO"; then :
15969 ax_cv_cxx_compile_cxx11=yes
15970 else
15971 ax_cv_cxx_compile_cxx11=no
15972 fi
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 fi
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
15976 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
15977 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
15978 ac_success=yes
15979 fi
15980
15981 if test x$ac_success = xno; then
15982 for switch in -std=gnu++11 -std=gnu++0x; do
15983 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
15985 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
15986 if eval \${$cachevar+:} false; then :
15987 $as_echo_n "(cached) " >&6
15988 else
15989 ac_save_CXXFLAGS="$CXXFLAGS"
15990 CXXFLAGS="$CXXFLAGS $switch"
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993
15994 template <typename T>
15995 struct check
15996 {
15997 static_assert(sizeof(int) <= sizeof(T), "not big enough");
15998 };
15999
16000 struct Base {
16001 virtual void f() {}
16002 };
16003 struct Child : public Base {
16004 virtual void f() override {}
16005 };
16006
16007 typedef check<check<bool>> right_angle_brackets;
16008
16009 int a;
16010 decltype(a) b;
16011
16012 typedef check<int> check_type;
16013 check_type c;
16014 check_type&& cr = static_cast<check_type&&>(c);
16015
16016 auto d = a;
16017 auto l = [](){};
16018
16019 _ACEOF
16020 if ac_fn_cxx_try_compile "$LINENO"; then :
16021 eval $cachevar=yes
16022 else
16023 eval $cachevar=no
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 CXXFLAGS="$ac_save_CXXFLAGS"
16027 fi
16028 eval ac_res=\$$cachevar
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16030 $as_echo "$ac_res" >&6; }
16031 if eval test x\$$cachevar = xyes; then
16032 CXXFLAGS="$CXXFLAGS $switch"
16033 ac_success=yes
16034 break
16035 fi
16036 done
16037 fi
16038
16039
16040 ac_ext=cpp
16041 ac_cpp='$CXXCPP $CPPFLAGS'
16042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16045
16046 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16047 if test x$ac_success = xno; then
16048 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16049 fi
16050 else
16051 if test x$ac_success = xno; then
16052 HAVE_CXX11=0
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16054 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16055 else
16056 HAVE_CXX11=1
16057
16058 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16059
16060 fi
16061
16062
16063 fi
16064
16065 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16066
16067
16068
16069
16070
16071
16072
16073
16074 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16075 if test -n "$ac_tool_prefix"; then
16076 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16077 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16079 $as_echo_n "checking for $ac_word... " >&6; }
16080 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16083 case $PKG_CONFIG in
16084 [\\/]* | ?:[\\/]*)
16085 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16086 ;;
16087 *)
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16090 do
16091 IFS=$as_save_IFS
16092 test -z "$as_dir" && as_dir=.
16093 for ac_exec_ext in '' $ac_executable_extensions; do
16094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16095 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16097 break 2
16098 fi
16099 done
16100 done
16101 IFS=$as_save_IFS
16102
16103 ;;
16104 esac
16105 fi
16106 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16107 if test -n "$PKG_CONFIG"; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16109 $as_echo "$PKG_CONFIG" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16113 fi
16114
16115
16116 fi
16117 if test -z "$ac_cv_path_PKG_CONFIG"; then
16118 ac_pt_PKG_CONFIG=$PKG_CONFIG
16119 # Extract the first word of "pkg-config", so it can be a program name with args.
16120 set dummy pkg-config; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 case $ac_pt_PKG_CONFIG in
16127 [\\/]* | ?:[\\/]*)
16128 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16129 ;;
16130 *)
16131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132 for as_dir in $PATH
16133 do
16134 IFS=$as_save_IFS
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
16137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16138 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 break 2
16141 fi
16142 done
16143 done
16144 IFS=$as_save_IFS
16145
16146 ;;
16147 esac
16148 fi
16149 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16150 if test -n "$ac_pt_PKG_CONFIG"; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16152 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16153 else
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16155 $as_echo "no" >&6; }
16156 fi
16157
16158 if test "x$ac_pt_PKG_CONFIG" = x; then
16159 PKG_CONFIG=""
16160 else
16161 case $cross_compiling:$ac_tool_warned in
16162 yes:)
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16165 ac_tool_warned=yes ;;
16166 esac
16167 PKG_CONFIG=$ac_pt_PKG_CONFIG
16168 fi
16169 else
16170 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16171 fi
16172
16173 fi
16174 if test -n "$PKG_CONFIG"; then
16175 _pkg_min_version=0.22
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16177 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16178 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16180 $as_echo "yes" >&6; }
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183 $as_echo "no" >&6; }
16184 PKG_CONFIG=""
16185 fi
16186 fi
16187
16188 # Extract the first word of "git", so it can be a program name with args.
16189 set dummy git; ac_word=$2
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16191 $as_echo_n "checking for $ac_word... " >&6; }
16192 if ${ac_cv_path_GIT+:} false; then :
16193 $as_echo_n "(cached) " >&6
16194 else
16195 case $GIT in
16196 [\\/]* | ?:[\\/]*)
16197 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16198 ;;
16199 *)
16200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16201 for as_dir in $PATH
16202 do
16203 IFS=$as_save_IFS
16204 test -z "$as_dir" && as_dir=.
16205 for ac_exec_ext in '' $ac_executable_extensions; do
16206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16207 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16209 break 2
16210 fi
16211 done
16212 done
16213 IFS=$as_save_IFS
16214
16215 ;;
16216 esac
16217 fi
16218 GIT=$ac_cv_path_GIT
16219 if test -n "$GIT"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16221 $as_echo "$GIT" >&6; }
16222 else
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16224 $as_echo "no" >&6; }
16225 fi
16226
16227
16228 # Extract the first word of "time", so it can be a program name with args.
16229 set dummy time; ac_word=$2
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231 $as_echo_n "checking for $ac_word... " >&6; }
16232 if ${ac_cv_path_TIME+:} false; then :
16233 $as_echo_n "(cached) " >&6
16234 else
16235 case $TIME in
16236 [\\/]* | ?:[\\/]*)
16237 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16238 ;;
16239 *)
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16242 do
16243 IFS=$as_save_IFS
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16249 break 2
16250 fi
16251 done
16252 done
16253 IFS=$as_save_IFS
16254
16255 ;;
16256 esac
16257 fi
16258 TIME=$ac_cv_path_TIME
16259 if test -n "$TIME"; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16261 $as_echo "$TIME" >&6; }
16262 else
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16265 fi
16266
16267
16268
16269
16270
16271
16272
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16274 $as_echo_n "checking for bison >= 2.3... " >&6; }
16275 if test -z "$BISON"; then
16276 ac_path_BISON_found=false
16277 # Loop through the user's path and test for each of PROGNAME-LIST
16278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16280 do
16281 IFS=$as_save_IFS
16282 test -z "$as_dir" && as_dir=.
16283 for ac_prog in bison; do
16284 for ac_exec_ext in '' $ac_executable_extensions; do
16285 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16286 as_fn_executable_p "$ac_path_BISON" || continue
16287 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16288 if ${version:+false} :; then :
16289
16290 else
16291 as_awk_strverscmp='
16292 # Use only awk features that work with 7th edition Unix awk (1978).
16293 # My, what an old awk you have, Mr. Solaris!
16294 END {
16295 while (length(v1) && length(v2)) {
16296 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16297 # Normally this is a single character, but if v1 and v2 contain digits,
16298 # compare them as integers and fractions as strverscmp does.
16299 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16300 # Split v1 and v2 into their leading digit string components d1 and d2,
16301 # and advance v1 and v2 past the leading digit strings.
16302 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16303 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16304 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16305 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16306 if (d1 ~ /^0/) {
16307 if (d2 ~ /^0/) {
16308 # Compare two fractions.
16309 while (d1 ~ /^0/ && d2 ~ /^0/) {
16310 d1 = substr(d1, 2); len1--
16311 d2 = substr(d2, 2); len2--
16312 }
16313 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16314 # The two components differ in length, and the common prefix
16315 # contains only leading zeros. Consider the longer to be less.
16316 d1 = -len1
16317 d2 = -len2
16318 } else {
16319 # Otherwise, compare as strings.
16320 d1 = "x" d1
16321 d2 = "x" d2
16322 }
16323 } else {
16324 # A fraction is less than an integer.
16325 exit 1
16326 }
16327 } else {
16328 if (d2 ~ /^0/) {
16329 # An integer is greater than a fraction.
16330 exit 2
16331 } else {
16332 # Compare two integers.
16333 d1 += 0
16334 d2 += 0
16335 }
16336 }
16337 } else {
16338 # The normal case, without worrying about digits.
16339 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16340 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16341 }
16342 if (d1 < d2) exit 1
16343 if (d1 > d2) exit 2
16344 }
16345 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16346 # which mishandles some comparisons of empty strings to integers.
16347 if (length(v2)) exit 1
16348 if (length(v1)) exit 2
16349 }
16350 '
16351 as_arg_v1=$version
16352 as_arg_v2=2.3
16353 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16354 case $? in #(
16355 1) :
16356 ;; #(
16357 0) :
16358 ac_cv_path_BISON=$ac_path_BISON ;; #(
16359 2) :
16360 ac_cv_path_BISON=$ac_path_BISON ;; #(
16361 *) :
16362 ;;
16363 esac
16364 fi
16365
16366 $ac_path_BISON_found && break 3
16367 done
16368 done
16369 done
16370 IFS=$as_save_IFS
16371 if test -z "$ac_cv_path_BISON"; then
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16373 $as_echo "no" >&6; }
16374 fi
16375 else
16376 ac_cv_path_BISON=$BISON
16377 fi
16378
16379
16380 if true; then :
16381
16382 BISON=$ac_cv_path_BISON
16383
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16385 $as_echo "$BISON" >&6; }
16386
16387 else
16388 if true; then :
16389
16390 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
16391
16392 else
16393
16394 BISON=:
16395
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16398
16399 fi
16400 fi
16401
16402
16403
16404
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
16406 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
16407 if test -z "$FLEX"; then
16408 ac_path_FLEX_found=false
16409 # Loop through the user's path and test for each of PROGNAME-LIST
16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16411 for as_dir in $PATH
16412 do
16413 IFS=$as_save_IFS
16414 test -z "$as_dir" && as_dir=.
16415 for ac_prog in flex; do
16416 for ac_exec_ext in '' $ac_executable_extensions; do
16417 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
16418 as_fn_executable_p "$ac_path_FLEX" || continue
16419 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
16420 if ${version:+false} :; then :
16421
16422 else
16423 as_arg_v1=$version
16424 as_arg_v2=2.5.33
16425 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16426 case $? in #(
16427 1) :
16428 ;; #(
16429 0) :
16430 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16431 2) :
16432 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
16433 *) :
16434 ;;
16435 esac
16436 fi
16437
16438 $ac_path_FLEX_found && break 3
16439 done
16440 done
16441 done
16442 IFS=$as_save_IFS
16443 if test -z "$ac_cv_path_FLEX"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16446 fi
16447 else
16448 ac_cv_path_FLEX=$FLEX
16449 fi
16450
16451
16452 if true; then :
16453
16454 FLEX=$ac_cv_path_FLEX
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
16457 $as_echo "$FLEX" >&6; }
16458
16459 else
16460 if true; then :
16461
16462 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
16463
16464 else
16465
16466 FLEX=:
16467
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470
16471 fi
16472 fi
16473
16474
16475
16476
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
16478 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
16479 if test -z "$GPERF"; then
16480 ac_path_GPERF_found=false
16481 # Loop through the user's path and test for each of PROGNAME-LIST
16482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16483 for as_dir in $PATH
16484 do
16485 IFS=$as_save_IFS
16486 test -z "$as_dir" && as_dir=.
16487 for ac_prog in gperf; do
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
16490 as_fn_executable_p "$ac_path_GPERF" || continue
16491 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
16492 if ${version:+false} :; then :
16493
16494 else
16495 as_arg_v1=$version
16496 as_arg_v2=3.0.3
16497 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16498 case $? in #(
16499 1) :
16500 ;; #(
16501 0) :
16502 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16503 2) :
16504 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
16505 *) :
16506 ;;
16507 esac
16508 fi
16509
16510 $ac_path_GPERF_found && break 3
16511 done
16512 done
16513 done
16514 IFS=$as_save_IFS
16515 if test -z "$ac_cv_path_GPERF"; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16517 $as_echo "no" >&6; }
16518 fi
16519 else
16520 ac_cv_path_GPERF=$GPERF
16521 fi
16522
16523
16524 if true; then :
16525
16526 GPERF=$ac_cv_path_GPERF
16527
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
16529 $as_echo "$GPERF" >&6; }
16530
16531 else
16532 if true; then :
16533
16534 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
16535
16536 else
16537
16538 GPERF=:
16539
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16542
16543 fi
16544 fi
16545
16546
16547
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
16550 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
16551 if test -z "$GNUTAR"; then
16552 ac_path_GNUTAR_found=false
16553 # Loop through the user's path and test for each of PROGNAME-LIST
16554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555 for as_dir in $PATH
16556 do
16557 IFS=$as_save_IFS
16558 test -z "$as_dir" && as_dir=.
16559 for ac_prog in tar gtar gnutar; do
16560 for ac_exec_ext in '' $ac_executable_extensions; do
16561 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
16562 as_fn_executable_p "$ac_path_GNUTAR" || continue
16563 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
16564 if ${version:+false} :; then :
16565
16566 else
16567 as_arg_v1=$version
16568 as_arg_v2=1.19
16569 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16570 case $? in #(
16571 1) :
16572 ;; #(
16573 0) :
16574 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16575 2) :
16576 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
16577 *) :
16578 ;;
16579 esac
16580 fi
16581
16582 $ac_path_GNUTAR_found && break 3
16583 done
16584 done
16585 done
16586 IFS=$as_save_IFS
16587 if test -z "$ac_cv_path_GNUTAR"; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 $as_echo "no" >&6; }
16590 fi
16591 else
16592 ac_cv_path_GNUTAR=$GNUTAR
16593 fi
16594
16595
16596 if true; then :
16597
16598 GNUTAR=$ac_cv_path_GNUTAR
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
16601 $as_echo "$GNUTAR" >&6; }
16602
16603 else
16604 if true; then :
16605
16606 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
16607
16608 else
16609
16610 GNUTAR=:
16611
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613 $as_echo "no" >&6; }
16614
16615 fi
16616 fi
16617
16618
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
16620 $as_echo_n "checking bison for %code{}... " >&6; }
16621 echo '%code{}%%_:' >conftest.y
16622 if $BISON conftest.y -o/dev/null 2>/dev/null; then
16623
16624 for element in Bison24; do
16625 haveit=
16626 for x in $CY_FILTERS; do
16627
16628 acl_save_prefix="$prefix"
16629 prefix="$acl_final_prefix"
16630 acl_save_exec_prefix="$exec_prefix"
16631 exec_prefix="$acl_final_exec_prefix"
16632 eval x=\"$x\"
16633 exec_prefix="$acl_save_exec_prefix"
16634 prefix="$acl_save_prefix"
16635
16636 if test "X$x" = "X$element"; then
16637 haveit=yes
16638 break
16639 fi
16640 done
16641 if test -z "$haveit"; then
16642 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16643 fi
16644 done
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16648 else
16649
16650 for element in Bison23; do
16651 haveit=
16652 for x in $CY_FILTERS; do
16653
16654 acl_save_prefix="$prefix"
16655 prefix="$acl_final_prefix"
16656 acl_save_exec_prefix="$exec_prefix"
16657 exec_prefix="$acl_final_exec_prefix"
16658 eval x=\"$x\"
16659 exec_prefix="$acl_save_exec_prefix"
16660 prefix="$acl_save_prefix"
16661
16662 if test "X$x" = "X$element"; then
16663 haveit=yes
16664 break
16665 fi
16666 done
16667 if test -z "$haveit"; then
16668 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
16669 fi
16670 done
16671
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16674 fi
16675
16676 rm -f conftest.y
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687 ac_ext=c
16688 ac_cpp='$CPP $CPPFLAGS'
16689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16692
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
16694 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16695 if ${ac_cv_cflags_warn_all+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 ac_cv_cflags_warn_all="no, unknown"
16699 ac_save_CFLAGS="$CFLAGS"
16700 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" #
16701 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704
16705 int
16706 main ()
16707 {
16708
16709 ;
16710 return 0;
16711 }
16712 _ACEOF
16713 if ac_fn_c_try_compile "$LINENO"; then :
16714 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16715 fi
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 done
16718 CFLAGS="$ac_save_CFLAGS"
16719
16720 fi
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
16722 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16723
16724
16725 case ".$ac_cv_cflags_warn_all" in
16726 .ok|.ok,*) ;;
16727 .|.no|.no,*) ;;
16728 *) if ${CFLAGS+:} false; then :
16729 case " $CFLAGS " in
16730 *" $ac_cv_cflags_warn_all "*)
16731 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
16732 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
16733 ac_status=$?
16734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16735 test $ac_status = 0; }
16736 ;;
16737 *)
16738 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
16739 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16740 ac_status=$?
16741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16742 test $ac_status = 0; }
16743 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16744 ;;
16745 esac
16746 else
16747 CFLAGS="$ac_cv_cflags_warn_all"
16748 fi
16749 ;;
16750 esac
16751
16752 ac_ext=cpp
16753 ac_cpp='$CXXCPP $CPPFLAGS'
16754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16757
16758
16759 ac_ext=cpp
16760 ac_cpp='$CXXCPP $CPPFLAGS'
16761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16764
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16766 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16767 if ${ac_cv_cxxflags_warn_all+:} false; then :
16768 $as_echo_n "(cached) " >&6
16769 else
16770 ac_cv_cxxflags_warn_all="no, unknown"
16771 ac_save_CXXFLAGS="$CXXFLAGS"
16772 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" #
16773 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776
16777 int
16778 main ()
16779 {
16780
16781 ;
16782 return 0;
16783 }
16784 _ACEOF
16785 if ac_fn_cxx_try_compile "$LINENO"; then :
16786 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16787 fi
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 done
16790 CXXFLAGS="$ac_save_CXXFLAGS"
16791
16792 fi
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16794 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16795
16796
16797 case ".$ac_cv_cxxflags_warn_all" in
16798 .ok|.ok,*) ;;
16799 .|.no|.no,*) ;;
16800 *) if ${CXXFLAGS+:} false; then :
16801 case " $CXXFLAGS " in
16802 *" $ac_cv_cxxflags_warn_all "*)
16803 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16804 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16805 ac_status=$?
16806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16807 test $ac_status = 0; }
16808 ;;
16809 *)
16810 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16811 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16812 ac_status=$?
16813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16814 test $ac_status = 0; }
16815 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16816 ;;
16817 esac
16818 else
16819 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16820 fi
16821 ;;
16822 esac
16823
16824 ac_ext=cpp
16825 ac_cpp='$CXXCPP $CPPFLAGS'
16826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16829
16830
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
16832 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
16833 if ${ac_cv_cxxflags_warn_all+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 ac_cv_cxxflags_warn_all="no, unknown"
16837 ac_save_CXXFLAGS="$CXXFLAGS"
16838 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" #
16839 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842
16843 int
16844 main ()
16845 {
16846
16847 ;
16848 return 0;
16849 }
16850 _ACEOF
16851 if ac_fn_cxx_try_compile "$LINENO"; then :
16852 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16853 fi
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16855 done
16856 CXXFLAGS="$ac_save_CXXFLAGS"
16857
16858 fi
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
16860 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
16861
16862
16863 case ".$ac_cv_cxxflags_warn_all" in
16864 .ok|.ok,*) ;;
16865 .|.no|.no,*) ;;
16866 *) if ${CXXFLAGS+:} false; then :
16867 case " $CXXFLAGS " in
16868 *" $ac_cv_cxxflags_warn_all "*)
16869 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
16870 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
16871 ac_status=$?
16872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873 test $ac_status = 0; }
16874 ;;
16875 *)
16876 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
16877 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
16878 ac_status=$?
16879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16880 test $ac_status = 0; }
16881 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
16882 ;;
16883 esac
16884 else
16885 CXXFLAGS="$ac_cv_cxxflags_warn_all"
16886 fi
16887 ;;
16888 esac
16889
16890
16891
16892
16893
16894 ac_ext=c
16895 ac_cpp='$CPP $CPPFLAGS'
16896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16899
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
16901 $as_echo_n "checking for cc -Werror... " >&6; }
16902
16903 cy_save=$CFLAGS
16904
16905 for element in -Werror; do
16906 haveit=
16907 for x in $CFLAGS; do
16908
16909 acl_save_prefix="$prefix"
16910 prefix="$acl_final_prefix"
16911 acl_save_exec_prefix="$exec_prefix"
16912 exec_prefix="$acl_final_exec_prefix"
16913 eval x=\"$x\"
16914 exec_prefix="$acl_save_exec_prefix"
16915 prefix="$acl_save_prefix"
16916
16917 if test "X$x" = "X$element"; then
16918 haveit=yes
16919 break
16920 fi
16921 done
16922 if test -z "$haveit"; then
16923 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16924 fi
16925 done
16926
16927
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16930
16931 _ACEOF
16932 if ac_fn_c_try_compile "$LINENO"; then :
16933 cy_good=1
16934 else
16935 cy_good=0
16936 fi
16937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938
16939 CFLAGS=$cy_save
16940 if test "x$cy_good" = x1; then :
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16942 $as_echo "yes" >&6; }
16943
16944 for element in -Werror; do
16945 haveit=
16946 for x in $CFLAGS; do
16947
16948 acl_save_prefix="$prefix"
16949 prefix="$acl_final_prefix"
16950 acl_save_exec_prefix="$exec_prefix"
16951 exec_prefix="$acl_final_exec_prefix"
16952 eval x=\"$x\"
16953 exec_prefix="$acl_save_exec_prefix"
16954 prefix="$acl_save_prefix"
16955
16956 if test "X$x" = "X$element"; then
16957 haveit=yes
16958 break
16959 fi
16960 done
16961 if test -z "$haveit"; then
16962 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
16963 fi
16964 done
16965
16966
16967 else
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16969 $as_echo "no" >&6; }
16970 fi
16971
16972 ac_ext=cpp
16973 ac_cpp='$CXXCPP $CPPFLAGS'
16974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16977
16978
16979
16980 ac_ext=cpp
16981 ac_cpp='$CXXCPP $CPPFLAGS'
16982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16985
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
16987 $as_echo_n "checking for c++ -Werror... " >&6; }
16988
16989 cy_save=$CXXFLAGS
16990
16991 for element in -Werror; do
16992 haveit=
16993 for x in $CXXFLAGS; do
16994
16995 acl_save_prefix="$prefix"
16996 prefix="$acl_final_prefix"
16997 acl_save_exec_prefix="$exec_prefix"
16998 exec_prefix="$acl_final_exec_prefix"
16999 eval x=\"$x\"
17000 exec_prefix="$acl_save_exec_prefix"
17001 prefix="$acl_save_prefix"
17002
17003 if test "X$x" = "X$element"; then
17004 haveit=yes
17005 break
17006 fi
17007 done
17008 if test -z "$haveit"; then
17009 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17010 fi
17011 done
17012
17013
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016
17017 _ACEOF
17018 if ac_fn_cxx_try_compile "$LINENO"; then :
17019 cy_good=1
17020 else
17021 cy_good=0
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024
17025 CXXFLAGS=$cy_save
17026 if test "x$cy_good" = x1; then :
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17028 $as_echo "yes" >&6; }
17029
17030 for element in -Werror; do
17031 haveit=
17032 for x in $CXXFLAGS; do
17033
17034 acl_save_prefix="$prefix"
17035 prefix="$acl_final_prefix"
17036 acl_save_exec_prefix="$exec_prefix"
17037 exec_prefix="$acl_final_exec_prefix"
17038 eval x=\"$x\"
17039 exec_prefix="$acl_save_exec_prefix"
17040 prefix="$acl_save_prefix"
17041
17042 if test "X$x" = "X$element"; then
17043 haveit=yes
17044 break
17045 fi
17046 done
17047 if test -z "$haveit"; then
17048 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17049 fi
17050 done
17051
17052
17053 else
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055 $as_echo "no" >&6; }
17056 fi
17057
17058 ac_ext=cpp
17059 ac_cpp='$CXXCPP $CPPFLAGS'
17060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17063
17064
17065
17066 ac_ext=mm
17067 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17068 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17069 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17070 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17071
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17073 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17074
17075 cy_save=$OBJCXXFLAGS
17076
17077 for element in -Werror; do
17078 haveit=
17079 for x in $OBJCXXFLAGS; do
17080
17081 acl_save_prefix="$prefix"
17082 prefix="$acl_final_prefix"
17083 acl_save_exec_prefix="$exec_prefix"
17084 exec_prefix="$acl_final_exec_prefix"
17085 eval x=\"$x\"
17086 exec_prefix="$acl_save_exec_prefix"
17087 prefix="$acl_save_prefix"
17088
17089 if test "X$x" = "X$element"; then
17090 haveit=yes
17091 break
17092 fi
17093 done
17094 if test -z "$haveit"; then
17095 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17096 fi
17097 done
17098
17099
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102
17103 _ACEOF
17104 if ac_fn_objcxx_try_compile "$LINENO"; then :
17105 cy_good=1
17106 else
17107 cy_good=0
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110
17111 OBJCXXFLAGS=$cy_save
17112 if test "x$cy_good" = x1; then :
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17114 $as_echo "yes" >&6; }
17115
17116 for element in -Werror; do
17117 haveit=
17118 for x in $OBJCXXFLAGS; do
17119
17120 acl_save_prefix="$prefix"
17121 prefix="$acl_final_prefix"
17122 acl_save_exec_prefix="$exec_prefix"
17123 exec_prefix="$acl_final_exec_prefix"
17124 eval x=\"$x\"
17125 exec_prefix="$acl_save_exec_prefix"
17126 prefix="$acl_save_prefix"
17127
17128 if test "X$x" = "X$element"; then
17129 haveit=yes
17130 break
17131 fi
17132 done
17133 if test -z "$haveit"; then
17134 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17135 fi
17136 done
17137
17138
17139 else
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17141 $as_echo "no" >&6; }
17142 fi
17143
17144 ac_ext=cpp
17145 ac_cpp='$CXXCPP $CPPFLAGS'
17146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17149
17150
17151
17152
17153
17154
17155 ac_ext=c
17156 ac_cpp='$CPP $CPPFLAGS'
17157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17160
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17162 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17163
17164 cy_save=$CFLAGS
17165
17166 for element in -Wno-deprecated-declarations; do
17167 haveit=
17168 for x in $CFLAGS; do
17169
17170 acl_save_prefix="$prefix"
17171 prefix="$acl_final_prefix"
17172 acl_save_exec_prefix="$exec_prefix"
17173 exec_prefix="$acl_final_exec_prefix"
17174 eval x=\"$x\"
17175 exec_prefix="$acl_save_exec_prefix"
17176 prefix="$acl_save_prefix"
17177
17178 if test "X$x" = "X$element"; then
17179 haveit=yes
17180 break
17181 fi
17182 done
17183 if test -z "$haveit"; then
17184 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17185 fi
17186 done
17187
17188
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17191
17192 _ACEOF
17193 if ac_fn_c_try_compile "$LINENO"; then :
17194 cy_good=1
17195 else
17196 cy_good=0
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17199
17200 CFLAGS=$cy_save
17201 if test "x$cy_good" = x1; then :
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17203 $as_echo "yes" >&6; }
17204
17205 for element in -Wno-deprecated-declarations; do
17206 haveit=
17207 for x in $CFLAGS; do
17208
17209 acl_save_prefix="$prefix"
17210 prefix="$acl_final_prefix"
17211 acl_save_exec_prefix="$exec_prefix"
17212 exec_prefix="$acl_final_exec_prefix"
17213 eval x=\"$x\"
17214 exec_prefix="$acl_save_exec_prefix"
17215 prefix="$acl_save_prefix"
17216
17217 if test "X$x" = "X$element"; then
17218 haveit=yes
17219 break
17220 fi
17221 done
17222 if test -z "$haveit"; then
17223 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17224 fi
17225 done
17226
17227
17228 else
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17230 $as_echo "no" >&6; }
17231 fi
17232
17233 ac_ext=cpp
17234 ac_cpp='$CXXCPP $CPPFLAGS'
17235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17238
17239
17240
17241 ac_ext=cpp
17242 ac_cpp='$CXXCPP $CPPFLAGS'
17243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17248 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17249
17250 cy_save=$CXXFLAGS
17251
17252 for element in -Wno-deprecated-declarations; do
17253 haveit=
17254 for x in $CXXFLAGS; do
17255
17256 acl_save_prefix="$prefix"
17257 prefix="$acl_final_prefix"
17258 acl_save_exec_prefix="$exec_prefix"
17259 exec_prefix="$acl_final_exec_prefix"
17260 eval x=\"$x\"
17261 exec_prefix="$acl_save_exec_prefix"
17262 prefix="$acl_save_prefix"
17263
17264 if test "X$x" = "X$element"; then
17265 haveit=yes
17266 break
17267 fi
17268 done
17269 if test -z "$haveit"; then
17270 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17271 fi
17272 done
17273
17274
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277
17278 _ACEOF
17279 if ac_fn_cxx_try_compile "$LINENO"; then :
17280 cy_good=1
17281 else
17282 cy_good=0
17283 fi
17284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285
17286 CXXFLAGS=$cy_save
17287 if test "x$cy_good" = x1; then :
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17289 $as_echo "yes" >&6; }
17290
17291 for element in -Wno-deprecated-declarations; do
17292 haveit=
17293 for x in $CXXFLAGS; do
17294
17295 acl_save_prefix="$prefix"
17296 prefix="$acl_final_prefix"
17297 acl_save_exec_prefix="$exec_prefix"
17298 exec_prefix="$acl_final_exec_prefix"
17299 eval x=\"$x\"
17300 exec_prefix="$acl_save_exec_prefix"
17301 prefix="$acl_save_prefix"
17302
17303 if test "X$x" = "X$element"; then
17304 haveit=yes
17305 break
17306 fi
17307 done
17308 if test -z "$haveit"; then
17309 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17310 fi
17311 done
17312
17313
17314 else
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17316 $as_echo "no" >&6; }
17317 fi
17318
17319 ac_ext=cpp
17320 ac_cpp='$CXXCPP $CPPFLAGS'
17321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17324
17325
17326
17327 ac_ext=mm
17328 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17329 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17330 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17331 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17332
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17334 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17335
17336 cy_save=$OBJCXXFLAGS
17337
17338 for element in -Wno-deprecated-declarations; do
17339 haveit=
17340 for x in $OBJCXXFLAGS; do
17341
17342 acl_save_prefix="$prefix"
17343 prefix="$acl_final_prefix"
17344 acl_save_exec_prefix="$exec_prefix"
17345 exec_prefix="$acl_final_exec_prefix"
17346 eval x=\"$x\"
17347 exec_prefix="$acl_save_exec_prefix"
17348 prefix="$acl_save_prefix"
17349
17350 if test "X$x" = "X$element"; then
17351 haveit=yes
17352 break
17353 fi
17354 done
17355 if test -z "$haveit"; then
17356 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17357 fi
17358 done
17359
17360
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17363
17364 _ACEOF
17365 if ac_fn_objcxx_try_compile "$LINENO"; then :
17366 cy_good=1
17367 else
17368 cy_good=0
17369 fi
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371
17372 OBJCXXFLAGS=$cy_save
17373 if test "x$cy_good" = x1; then :
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 $as_echo "yes" >&6; }
17376
17377 for element in -Wno-deprecated-declarations; do
17378 haveit=
17379 for x in $OBJCXXFLAGS; do
17380
17381 acl_save_prefix="$prefix"
17382 prefix="$acl_final_prefix"
17383 acl_save_exec_prefix="$exec_prefix"
17384 exec_prefix="$acl_final_exec_prefix"
17385 eval x=\"$x\"
17386 exec_prefix="$acl_save_exec_prefix"
17387 prefix="$acl_save_prefix"
17388
17389 if test "X$x" = "X$element"; then
17390 haveit=yes
17391 break
17392 fi
17393 done
17394 if test -z "$haveit"; then
17395 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17396 fi
17397 done
17398
17399
17400 else
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17402 $as_echo "no" >&6; }
17403 fi
17404
17405 ac_ext=cpp
17406 ac_cpp='$CXXCPP $CPPFLAGS'
17407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17410
17411
17412
17413
17414
17415
17416 ac_ext=c
17417 ac_cpp='$CPP $CPPFLAGS'
17418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17421
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17423 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17424
17425 cy_save=$CFLAGS
17426
17427 for element in -Wno-dangling-else; do
17428 haveit=
17429 for x in $CFLAGS; do
17430
17431 acl_save_prefix="$prefix"
17432 prefix="$acl_final_prefix"
17433 acl_save_exec_prefix="$exec_prefix"
17434 exec_prefix="$acl_final_exec_prefix"
17435 eval x=\"$x\"
17436 exec_prefix="$acl_save_exec_prefix"
17437 prefix="$acl_save_prefix"
17438
17439 if test "X$x" = "X$element"; then
17440 haveit=yes
17441 break
17442 fi
17443 done
17444 if test -z "$haveit"; then
17445 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17446 fi
17447 done
17448
17449
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452
17453 _ACEOF
17454 if ac_fn_c_try_compile "$LINENO"; then :
17455 cy_good=1
17456 else
17457 cy_good=0
17458 fi
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460
17461 CFLAGS=$cy_save
17462 if test "x$cy_good" = x1; then :
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17464 $as_echo "yes" >&6; }
17465
17466 for element in -Wno-dangling-else; do
17467 haveit=
17468 for x in $CFLAGS; do
17469
17470 acl_save_prefix="$prefix"
17471 prefix="$acl_final_prefix"
17472 acl_save_exec_prefix="$exec_prefix"
17473 exec_prefix="$acl_final_exec_prefix"
17474 eval x=\"$x\"
17475 exec_prefix="$acl_save_exec_prefix"
17476 prefix="$acl_save_prefix"
17477
17478 if test "X$x" = "X$element"; then
17479 haveit=yes
17480 break
17481 fi
17482 done
17483 if test -z "$haveit"; then
17484 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17485 fi
17486 done
17487
17488
17489 else
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17491 $as_echo "no" >&6; }
17492 fi
17493
17494 ac_ext=cpp
17495 ac_cpp='$CXXCPP $CPPFLAGS'
17496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499
17500
17501
17502 ac_ext=cpp
17503 ac_cpp='$CXXCPP $CPPFLAGS'
17504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17507
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
17509 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
17510
17511 cy_save=$CXXFLAGS
17512
17513 for element in -Wno-dangling-else; do
17514 haveit=
17515 for x in $CXXFLAGS; do
17516
17517 acl_save_prefix="$prefix"
17518 prefix="$acl_final_prefix"
17519 acl_save_exec_prefix="$exec_prefix"
17520 exec_prefix="$acl_final_exec_prefix"
17521 eval x=\"$x\"
17522 exec_prefix="$acl_save_exec_prefix"
17523 prefix="$acl_save_prefix"
17524
17525 if test "X$x" = "X$element"; then
17526 haveit=yes
17527 break
17528 fi
17529 done
17530 if test -z "$haveit"; then
17531 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17532 fi
17533 done
17534
17535
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538
17539 _ACEOF
17540 if ac_fn_cxx_try_compile "$LINENO"; then :
17541 cy_good=1
17542 else
17543 cy_good=0
17544 fi
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546
17547 CXXFLAGS=$cy_save
17548 if test "x$cy_good" = x1; then :
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 $as_echo "yes" >&6; }
17551
17552 for element in -Wno-dangling-else; do
17553 haveit=
17554 for x in $CXXFLAGS; do
17555
17556 acl_save_prefix="$prefix"
17557 prefix="$acl_final_prefix"
17558 acl_save_exec_prefix="$exec_prefix"
17559 exec_prefix="$acl_final_exec_prefix"
17560 eval x=\"$x\"
17561 exec_prefix="$acl_save_exec_prefix"
17562 prefix="$acl_save_prefix"
17563
17564 if test "X$x" = "X$element"; then
17565 haveit=yes
17566 break
17567 fi
17568 done
17569 if test -z "$haveit"; then
17570 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17571 fi
17572 done
17573
17574
17575 else
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17578 fi
17579
17580 ac_ext=cpp
17581 ac_cpp='$CXXCPP $CPPFLAGS'
17582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17585
17586
17587
17588 ac_ext=mm
17589 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17590 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17591 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17592 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17593
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
17595 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
17596
17597 cy_save=$OBJCXXFLAGS
17598
17599 for element in -Wno-dangling-else; do
17600 haveit=
17601 for x in $OBJCXXFLAGS; do
17602
17603 acl_save_prefix="$prefix"
17604 prefix="$acl_final_prefix"
17605 acl_save_exec_prefix="$exec_prefix"
17606 exec_prefix="$acl_final_exec_prefix"
17607 eval x=\"$x\"
17608 exec_prefix="$acl_save_exec_prefix"
17609 prefix="$acl_save_prefix"
17610
17611 if test "X$x" = "X$element"; then
17612 haveit=yes
17613 break
17614 fi
17615 done
17616 if test -z "$haveit"; then
17617 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17618 fi
17619 done
17620
17621
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624
17625 _ACEOF
17626 if ac_fn_objcxx_try_compile "$LINENO"; then :
17627 cy_good=1
17628 else
17629 cy_good=0
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632
17633 OBJCXXFLAGS=$cy_save
17634 if test "x$cy_good" = x1; then :
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636 $as_echo "yes" >&6; }
17637
17638 for element in -Wno-dangling-else; do
17639 haveit=
17640 for x in $OBJCXXFLAGS; do
17641
17642 acl_save_prefix="$prefix"
17643 prefix="$acl_final_prefix"
17644 acl_save_exec_prefix="$exec_prefix"
17645 exec_prefix="$acl_final_exec_prefix"
17646 eval x=\"$x\"
17647 exec_prefix="$acl_save_exec_prefix"
17648 prefix="$acl_save_prefix"
17649
17650 if test "X$x" = "X$element"; then
17651 haveit=yes
17652 break
17653 fi
17654 done
17655 if test -z "$haveit"; then
17656 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17657 fi
17658 done
17659
17660
17661 else
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17663 $as_echo "no" >&6; }
17664 fi
17665
17666 ac_ext=cpp
17667 ac_cpp='$CXXCPP $CPPFLAGS'
17668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17671
17672
17673
17674
17675
17676 ac_ext=c
17677 ac_cpp='$CPP $CPPFLAGS'
17678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
17683 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
17684
17685 cy_save=$CFLAGS
17686
17687 for element in -Wno-overloaded-virtual; do
17688 haveit=
17689 for x in $CFLAGS; do
17690
17691 acl_save_prefix="$prefix"
17692 prefix="$acl_final_prefix"
17693 acl_save_exec_prefix="$exec_prefix"
17694 exec_prefix="$acl_final_exec_prefix"
17695 eval x=\"$x\"
17696 exec_prefix="$acl_save_exec_prefix"
17697 prefix="$acl_save_prefix"
17698
17699 if test "X$x" = "X$element"; then
17700 haveit=yes
17701 break
17702 fi
17703 done
17704 if test -z "$haveit"; then
17705 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17706 fi
17707 done
17708
17709
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712
17713 _ACEOF
17714 if ac_fn_c_try_compile "$LINENO"; then :
17715 cy_good=1
17716 else
17717 cy_good=0
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17720
17721 CFLAGS=$cy_save
17722 if test "x$cy_good" = x1; then :
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725
17726 for element in -Wno-overloaded-virtual; do
17727 haveit=
17728 for x in $CFLAGS; do
17729
17730 acl_save_prefix="$prefix"
17731 prefix="$acl_final_prefix"
17732 acl_save_exec_prefix="$exec_prefix"
17733 exec_prefix="$acl_final_exec_prefix"
17734 eval x=\"$x\"
17735 exec_prefix="$acl_save_exec_prefix"
17736 prefix="$acl_save_prefix"
17737
17738 if test "X$x" = "X$element"; then
17739 haveit=yes
17740 break
17741 fi
17742 done
17743 if test -z "$haveit"; then
17744 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17745 fi
17746 done
17747
17748
17749 else
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752 fi
17753
17754 ac_ext=cpp
17755 ac_cpp='$CXXCPP $CPPFLAGS'
17756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17759
17760
17761
17762 ac_ext=cpp
17763 ac_cpp='$CXXCPP $CPPFLAGS'
17764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17767
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
17769 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
17770
17771 cy_save=$CXXFLAGS
17772
17773 for element in -Wno-overloaded-virtual; do
17774 haveit=
17775 for x in $CXXFLAGS; do
17776
17777 acl_save_prefix="$prefix"
17778 prefix="$acl_final_prefix"
17779 acl_save_exec_prefix="$exec_prefix"
17780 exec_prefix="$acl_final_exec_prefix"
17781 eval x=\"$x\"
17782 exec_prefix="$acl_save_exec_prefix"
17783 prefix="$acl_save_prefix"
17784
17785 if test "X$x" = "X$element"; then
17786 haveit=yes
17787 break
17788 fi
17789 done
17790 if test -z "$haveit"; then
17791 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17792 fi
17793 done
17794
17795
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798
17799 _ACEOF
17800 if ac_fn_cxx_try_compile "$LINENO"; then :
17801 cy_good=1
17802 else
17803 cy_good=0
17804 fi
17805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806
17807 CXXFLAGS=$cy_save
17808 if test "x$cy_good" = x1; then :
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17810 $as_echo "yes" >&6; }
17811
17812 for element in -Wno-overloaded-virtual; do
17813 haveit=
17814 for x in $CXXFLAGS; do
17815
17816 acl_save_prefix="$prefix"
17817 prefix="$acl_final_prefix"
17818 acl_save_exec_prefix="$exec_prefix"
17819 exec_prefix="$acl_final_exec_prefix"
17820 eval x=\"$x\"
17821 exec_prefix="$acl_save_exec_prefix"
17822 prefix="$acl_save_prefix"
17823
17824 if test "X$x" = "X$element"; then
17825 haveit=yes
17826 break
17827 fi
17828 done
17829 if test -z "$haveit"; then
17830 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17831 fi
17832 done
17833
17834
17835 else
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17838 fi
17839
17840 ac_ext=cpp
17841 ac_cpp='$CXXCPP $CPPFLAGS'
17842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17845
17846
17847
17848 ac_ext=mm
17849 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17850 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17851 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17852 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
17855 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
17856
17857 cy_save=$OBJCXXFLAGS
17858
17859 for element in -Wno-overloaded-virtual; do
17860 haveit=
17861 for x in $OBJCXXFLAGS; do
17862
17863 acl_save_prefix="$prefix"
17864 prefix="$acl_final_prefix"
17865 acl_save_exec_prefix="$exec_prefix"
17866 exec_prefix="$acl_final_exec_prefix"
17867 eval x=\"$x\"
17868 exec_prefix="$acl_save_exec_prefix"
17869 prefix="$acl_save_prefix"
17870
17871 if test "X$x" = "X$element"; then
17872 haveit=yes
17873 break
17874 fi
17875 done
17876 if test -z "$haveit"; then
17877 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17878 fi
17879 done
17880
17881
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883 /* end confdefs.h. */
17884
17885 _ACEOF
17886 if ac_fn_objcxx_try_compile "$LINENO"; then :
17887 cy_good=1
17888 else
17889 cy_good=0
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892
17893 OBJCXXFLAGS=$cy_save
17894 if test "x$cy_good" = x1; then :
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17896 $as_echo "yes" >&6; }
17897
17898 for element in -Wno-overloaded-virtual; do
17899 haveit=
17900 for x in $OBJCXXFLAGS; do
17901
17902 acl_save_prefix="$prefix"
17903 prefix="$acl_final_prefix"
17904 acl_save_exec_prefix="$exec_prefix"
17905 exec_prefix="$acl_final_exec_prefix"
17906 eval x=\"$x\"
17907 exec_prefix="$acl_save_exec_prefix"
17908 prefix="$acl_save_prefix"
17909
17910 if test "X$x" = "X$element"; then
17911 haveit=yes
17912 break
17913 fi
17914 done
17915 if test -z "$haveit"; then
17916 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17917 fi
17918 done
17919
17920
17921 else
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 $as_echo "no" >&6; }
17924 fi
17925
17926 ac_ext=cpp
17927 ac_cpp='$CXXCPP $CPPFLAGS'
17928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17931
17932
17933
17934
17935
17936 ac_ext=c
17937 ac_cpp='$CPP $CPPFLAGS'
17938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17941
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
17943 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
17944
17945 cy_save=$CFLAGS
17946
17947 for element in -Wno-parentheses; do
17948 haveit=
17949 for x in $CFLAGS; do
17950
17951 acl_save_prefix="$prefix"
17952 prefix="$acl_final_prefix"
17953 acl_save_exec_prefix="$exec_prefix"
17954 exec_prefix="$acl_final_exec_prefix"
17955 eval x=\"$x\"
17956 exec_prefix="$acl_save_exec_prefix"
17957 prefix="$acl_save_prefix"
17958
17959 if test "X$x" = "X$element"; then
17960 haveit=yes
17961 break
17962 fi
17963 done
17964 if test -z "$haveit"; then
17965 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17966 fi
17967 done
17968
17969
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"; then :
17975 cy_good=1
17976 else
17977 cy_good=0
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980
17981 CFLAGS=$cy_save
17982 if test "x$cy_good" = x1; then :
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17984 $as_echo "yes" >&6; }
17985
17986 for element in -Wno-parentheses; do
17987 haveit=
17988 for x in $CFLAGS; do
17989
17990 acl_save_prefix="$prefix"
17991 prefix="$acl_final_prefix"
17992 acl_save_exec_prefix="$exec_prefix"
17993 exec_prefix="$acl_final_exec_prefix"
17994 eval x=\"$x\"
17995 exec_prefix="$acl_save_exec_prefix"
17996 prefix="$acl_save_prefix"
17997
17998 if test "X$x" = "X$element"; then
17999 haveit=yes
18000 break
18001 fi
18002 done
18003 if test -z "$haveit"; then
18004 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18005 fi
18006 done
18007
18008
18009 else
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18012 fi
18013
18014 ac_ext=cpp
18015 ac_cpp='$CXXCPP $CPPFLAGS'
18016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18019
18020
18021
18022 ac_ext=cpp
18023 ac_cpp='$CXXCPP $CPPFLAGS'
18024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18029 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18030
18031 cy_save=$CXXFLAGS
18032
18033 for element in -Wno-parentheses; do
18034 haveit=
18035 for x in $CXXFLAGS; do
18036
18037 acl_save_prefix="$prefix"
18038 prefix="$acl_final_prefix"
18039 acl_save_exec_prefix="$exec_prefix"
18040 exec_prefix="$acl_final_exec_prefix"
18041 eval x=\"$x\"
18042 exec_prefix="$acl_save_exec_prefix"
18043 prefix="$acl_save_prefix"
18044
18045 if test "X$x" = "X$element"; then
18046 haveit=yes
18047 break
18048 fi
18049 done
18050 if test -z "$haveit"; then
18051 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18052 fi
18053 done
18054
18055
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058
18059 _ACEOF
18060 if ac_fn_cxx_try_compile "$LINENO"; then :
18061 cy_good=1
18062 else
18063 cy_good=0
18064 fi
18065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18066
18067 CXXFLAGS=$cy_save
18068 if test "x$cy_good" = x1; then :
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 $as_echo "yes" >&6; }
18071
18072 for element in -Wno-parentheses; do
18073 haveit=
18074 for x in $CXXFLAGS; do
18075
18076 acl_save_prefix="$prefix"
18077 prefix="$acl_final_prefix"
18078 acl_save_exec_prefix="$exec_prefix"
18079 exec_prefix="$acl_final_exec_prefix"
18080 eval x=\"$x\"
18081 exec_prefix="$acl_save_exec_prefix"
18082 prefix="$acl_save_prefix"
18083
18084 if test "X$x" = "X$element"; then
18085 haveit=yes
18086 break
18087 fi
18088 done
18089 if test -z "$haveit"; then
18090 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18091 fi
18092 done
18093
18094
18095 else
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097 $as_echo "no" >&6; }
18098 fi
18099
18100 ac_ext=cpp
18101 ac_cpp='$CXXCPP $CPPFLAGS'
18102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18105
18106
18107
18108 ac_ext=mm
18109 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18110 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18113
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18115 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18116
18117 cy_save=$OBJCXXFLAGS
18118
18119 for element in -Wno-parentheses; do
18120 haveit=
18121 for x in $OBJCXXFLAGS; do
18122
18123 acl_save_prefix="$prefix"
18124 prefix="$acl_final_prefix"
18125 acl_save_exec_prefix="$exec_prefix"
18126 exec_prefix="$acl_final_exec_prefix"
18127 eval x=\"$x\"
18128 exec_prefix="$acl_save_exec_prefix"
18129 prefix="$acl_save_prefix"
18130
18131 if test "X$x" = "X$element"; then
18132 haveit=yes
18133 break
18134 fi
18135 done
18136 if test -z "$haveit"; then
18137 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18138 fi
18139 done
18140
18141
18142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18143 /* end confdefs.h. */
18144
18145 _ACEOF
18146 if ac_fn_objcxx_try_compile "$LINENO"; then :
18147 cy_good=1
18148 else
18149 cy_good=0
18150 fi
18151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152
18153 OBJCXXFLAGS=$cy_save
18154 if test "x$cy_good" = x1; then :
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18156 $as_echo "yes" >&6; }
18157
18158 for element in -Wno-parentheses; do
18159 haveit=
18160 for x in $OBJCXXFLAGS; do
18161
18162 acl_save_prefix="$prefix"
18163 prefix="$acl_final_prefix"
18164 acl_save_exec_prefix="$exec_prefix"
18165 exec_prefix="$acl_final_exec_prefix"
18166 eval x=\"$x\"
18167 exec_prefix="$acl_save_exec_prefix"
18168 prefix="$acl_save_prefix"
18169
18170 if test "X$x" = "X$element"; then
18171 haveit=yes
18172 break
18173 fi
18174 done
18175 if test -z "$haveit"; then
18176 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18177 fi
18178 done
18179
18180
18181 else
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18183 $as_echo "no" >&6; }
18184 fi
18185
18186 ac_ext=cpp
18187 ac_cpp='$CXXCPP $CPPFLAGS'
18188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18191
18192
18193
18194
18195
18196 ac_ext=c
18197 ac_cpp='$CPP $CPPFLAGS'
18198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18201
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18203 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18204
18205 cy_save=$CFLAGS
18206
18207 for element in -Wno-unneeded-internal-declaration; do
18208 haveit=
18209 for x in $CFLAGS; do
18210
18211 acl_save_prefix="$prefix"
18212 prefix="$acl_final_prefix"
18213 acl_save_exec_prefix="$exec_prefix"
18214 exec_prefix="$acl_final_exec_prefix"
18215 eval x=\"$x\"
18216 exec_prefix="$acl_save_exec_prefix"
18217 prefix="$acl_save_prefix"
18218
18219 if test "X$x" = "X$element"; then
18220 haveit=yes
18221 break
18222 fi
18223 done
18224 if test -z "$haveit"; then
18225 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18226 fi
18227 done
18228
18229
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 _ACEOF
18234 if ac_fn_c_try_compile "$LINENO"; then :
18235 cy_good=1
18236 else
18237 cy_good=0
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240
18241 CFLAGS=$cy_save
18242 if test "x$cy_good" = x1; then :
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244 $as_echo "yes" >&6; }
18245
18246 for element in -Wno-unneeded-internal-declaration; do
18247 haveit=
18248 for x in $CFLAGS; do
18249
18250 acl_save_prefix="$prefix"
18251 prefix="$acl_final_prefix"
18252 acl_save_exec_prefix="$exec_prefix"
18253 exec_prefix="$acl_final_exec_prefix"
18254 eval x=\"$x\"
18255 exec_prefix="$acl_save_exec_prefix"
18256 prefix="$acl_save_prefix"
18257
18258 if test "X$x" = "X$element"; then
18259 haveit=yes
18260 break
18261 fi
18262 done
18263 if test -z "$haveit"; then
18264 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18265 fi
18266 done
18267
18268
18269 else
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18272 fi
18273
18274 ac_ext=cpp
18275 ac_cpp='$CXXCPP $CPPFLAGS'
18276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18279
18280
18281
18282 ac_ext=cpp
18283 ac_cpp='$CXXCPP $CPPFLAGS'
18284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18287
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18289 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18290
18291 cy_save=$CXXFLAGS
18292
18293 for element in -Wno-unneeded-internal-declaration; do
18294 haveit=
18295 for x in $CXXFLAGS; do
18296
18297 acl_save_prefix="$prefix"
18298 prefix="$acl_final_prefix"
18299 acl_save_exec_prefix="$exec_prefix"
18300 exec_prefix="$acl_final_exec_prefix"
18301 eval x=\"$x\"
18302 exec_prefix="$acl_save_exec_prefix"
18303 prefix="$acl_save_prefix"
18304
18305 if test "X$x" = "X$element"; then
18306 haveit=yes
18307 break
18308 fi
18309 done
18310 if test -z "$haveit"; then
18311 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18312 fi
18313 done
18314
18315
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18318
18319 _ACEOF
18320 if ac_fn_cxx_try_compile "$LINENO"; then :
18321 cy_good=1
18322 else
18323 cy_good=0
18324 fi
18325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18326
18327 CXXFLAGS=$cy_save
18328 if test "x$cy_good" = x1; then :
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330 $as_echo "yes" >&6; }
18331
18332 for element in -Wno-unneeded-internal-declaration; do
18333 haveit=
18334 for x in $CXXFLAGS; do
18335
18336 acl_save_prefix="$prefix"
18337 prefix="$acl_final_prefix"
18338 acl_save_exec_prefix="$exec_prefix"
18339 exec_prefix="$acl_final_exec_prefix"
18340 eval x=\"$x\"
18341 exec_prefix="$acl_save_exec_prefix"
18342 prefix="$acl_save_prefix"
18343
18344 if test "X$x" = "X$element"; then
18345 haveit=yes
18346 break
18347 fi
18348 done
18349 if test -z "$haveit"; then
18350 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18351 fi
18352 done
18353
18354
18355 else
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18357 $as_echo "no" >&6; }
18358 fi
18359
18360 ac_ext=cpp
18361 ac_cpp='$CXXCPP $CPPFLAGS'
18362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18365
18366
18367
18368 ac_ext=mm
18369 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18370 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18373
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18375 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18376
18377 cy_save=$OBJCXXFLAGS
18378
18379 for element in -Wno-unneeded-internal-declaration; do
18380 haveit=
18381 for x in $OBJCXXFLAGS; do
18382
18383 acl_save_prefix="$prefix"
18384 prefix="$acl_final_prefix"
18385 acl_save_exec_prefix="$exec_prefix"
18386 exec_prefix="$acl_final_exec_prefix"
18387 eval x=\"$x\"
18388 exec_prefix="$acl_save_exec_prefix"
18389 prefix="$acl_save_prefix"
18390
18391 if test "X$x" = "X$element"; then
18392 haveit=yes
18393 break
18394 fi
18395 done
18396 if test -z "$haveit"; then
18397 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18398 fi
18399 done
18400
18401
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18404
18405 _ACEOF
18406 if ac_fn_objcxx_try_compile "$LINENO"; then :
18407 cy_good=1
18408 else
18409 cy_good=0
18410 fi
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412
18413 OBJCXXFLAGS=$cy_save
18414 if test "x$cy_good" = x1; then :
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18416 $as_echo "yes" >&6; }
18417
18418 for element in -Wno-unneeded-internal-declaration; do
18419 haveit=
18420 for x in $OBJCXXFLAGS; do
18421
18422 acl_save_prefix="$prefix"
18423 prefix="$acl_final_prefix"
18424 acl_save_exec_prefix="$exec_prefix"
18425 exec_prefix="$acl_final_exec_prefix"
18426 eval x=\"$x\"
18427 exec_prefix="$acl_save_exec_prefix"
18428 prefix="$acl_save_prefix"
18429
18430 if test "X$x" = "X$element"; then
18431 haveit=yes
18432 break
18433 fi
18434 done
18435 if test -z "$haveit"; then
18436 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18437 fi
18438 done
18439
18440
18441 else
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443 $as_echo "no" >&6; }
18444 fi
18445
18446 ac_ext=cpp
18447 ac_cpp='$CXXCPP $CPPFLAGS'
18448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18451
18452
18453
18454
18455
18456
18457 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
18459 $as_echo_n "checking for -arch $cy_arch... " >&6; }
18460
18461 cy_save=$CXXFLAGS
18462
18463 for element in "-arch $cy_arch"; do
18464 haveit=
18465 for x in $CXXFLAGS; do
18466
18467 acl_save_prefix="$prefix"
18468 prefix="$acl_final_prefix"
18469 acl_save_exec_prefix="$exec_prefix"
18470 exec_prefix="$acl_final_exec_prefix"
18471 eval x=\"$x\"
18472 exec_prefix="$acl_save_exec_prefix"
18473 prefix="$acl_save_prefix"
18474
18475 if test "X$x" = "X$element"; then
18476 haveit=yes
18477 break
18478 fi
18479 done
18480 if test -z "$haveit"; then
18481 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18482 fi
18483 done
18484
18485
18486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h. */
18488
18489 int
18490 main ()
18491 {
18492
18493 ;
18494 return 0;
18495 }
18496 _ACEOF
18497 if ac_fn_cxx_try_link "$LINENO"; then :
18498 cy_good=1
18499 else
18500 cy_good=0
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext \
18503 conftest$ac_exeext conftest.$ac_ext
18504
18505 CXXFLAGS=$cy_save
18506 if test "x$cy_good" = x1; then :
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18508 $as_echo "yes" >&6; }
18509
18510 for element in "-arch $cy_arch"; do
18511 haveit=
18512 for x in $CY_ARCH; do
18513
18514 acl_save_prefix="$prefix"
18515 prefix="$acl_final_prefix"
18516 acl_save_exec_prefix="$exec_prefix"
18517 exec_prefix="$acl_final_exec_prefix"
18518 eval x=\"$x\"
18519 exec_prefix="$acl_save_exec_prefix"
18520 prefix="$acl_save_prefix"
18521
18522 if test "X$x" = "X$element"; then
18523 haveit=yes
18524 break
18525 fi
18526 done
18527 if test -z "$haveit"; then
18528 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
18529 fi
18530 done
18531
18532
18533 else
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18535 $as_echo "no" >&6; }
18536 fi
18537
18538 done
18539
18540
18541
18542
18543
18544
18545 # Check whether --enable-javascript was given.
18546 if test "${enable_javascript+set}" = set; then :
18547 enableval=$enable_javascript;
18548 case $enableval in #(
18549 yes) :
18550
18551
18552
18553
18554 cy_save=$LIBS
18555 LIBS=
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18557 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18558 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18559 $as_echo_n "(cached) " >&6
18560 else
18561 ac_func_search_save_LIBS=$LIBS
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18564
18565 /* Override any GCC internal prototype to avoid an error.
18566 Use char because int might match the return type of a GCC
18567 builtin and then its argument prototype would still apply. */
18568 #ifdef __cplusplus
18569 extern "C"
18570 #endif
18571 char JSEvaluateScript ();
18572 int
18573 main ()
18574 {
18575 return JSEvaluateScript ();
18576 ;
18577 return 0;
18578 }
18579 _ACEOF
18580 for ac_lib in '' JavaScriptCore; do
18581 if test -z "$ac_lib"; then
18582 ac_res="none required"
18583 else
18584 ac_res=-l$ac_lib
18585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18586 fi
18587 if ac_fn_cxx_try_link "$LINENO"; then :
18588 ac_cv_search_JSEvaluateScript=$ac_res
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext
18592 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18593 break
18594 fi
18595 done
18596 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18597
18598 else
18599 ac_cv_search_JSEvaluateScript=no
18600 fi
18601 rm conftest.$ac_ext
18602 LIBS=$ac_func_search_save_LIBS
18603 fi
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18605 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18606 ac_res=$ac_cv_search_JSEvaluateScript
18607 if test "$ac_res" != no; then :
18608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18609
18610 CY_EXECUTE=1
18611
18612
18613 else
18614
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18616 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18617 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18618 $as_echo_n "(cached) " >&6
18619 else
18620
18621 ac_check_framework_save_LIBS=$LIBS
18622 LIBS="-framework JavaScriptCore $LIBS"
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18625
18626 #include <JavaScriptCore/JSBase.h>
18627
18628 int
18629 main ()
18630 {
18631
18632 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18633
18634 ;
18635 return 0;
18636 }
18637 _ACEOF
18638 if ac_fn_cxx_try_link "$LINENO"; then :
18639
18640 ac_cv_framework_JavaScriptCore=yes
18641
18642 else
18643 ac_cv_framework_JavaScriptCore=no
18644 fi
18645 rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_framework_save_LIBS
18648
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18651 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18652 if test $ac_cv_framework_JavaScriptCore = yes; then :
18653
18654
18655 for element in "-framework JavaScriptCore"; do
18656 haveit=
18657 for x in $LIBS; do
18658
18659 acl_save_prefix="$prefix"
18660 prefix="$acl_final_prefix"
18661 acl_save_exec_prefix="$exec_prefix"
18662 exec_prefix="$acl_final_exec_prefix"
18663 eval x=\"$x\"
18664 exec_prefix="$acl_save_exec_prefix"
18665 prefix="$acl_save_prefix"
18666
18667 if test "X$x" = "X$element"; then
18668 haveit=yes
18669 break
18670 fi
18671 done
18672 if test -z "$haveit"; then
18673 LIBS="${LIBS}${LIBS:+ }$element"
18674 fi
18675 done
18676
18677
18678 CY_EXECUTE=1
18679
18680
18681
18682 else
18683
18684 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18685
18686 pkg_failed=no
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18688 $as_echo_n "checking for WEBKIT... " >&6; }
18689
18690 if test -n "$WEBKIT_CFLAGS"; then
18691 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18692 elif test -n "$PKG_CONFIG"; then
18693 if test -n "$PKG_CONFIG" && \
18694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18695 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18696 ac_status=$?
18697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18698 test $ac_status = 0; }; then
18699 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18700 test "x$?" != "x0" && pkg_failed=yes
18701 else
18702 pkg_failed=yes
18703 fi
18704 else
18705 pkg_failed=untried
18706 fi
18707 if test -n "$WEBKIT_LIBS"; then
18708 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18709 elif test -n "$PKG_CONFIG"; then
18710 if test -n "$PKG_CONFIG" && \
18711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18712 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18713 ac_status=$?
18714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18715 test $ac_status = 0; }; then
18716 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18717 test "x$?" != "x0" && pkg_failed=yes
18718 else
18719 pkg_failed=yes
18720 fi
18721 else
18722 pkg_failed=untried
18723 fi
18724
18725
18726
18727 if test $pkg_failed = yes; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730
18731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18732 _pkg_short_errors_supported=yes
18733 else
18734 _pkg_short_errors_supported=no
18735 fi
18736 if test $_pkg_short_errors_supported = yes; then
18737 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
18738 else
18739 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
18740 fi
18741 # Put the nasty error message in config.log where it belongs
18742 echo "$WEBKIT_PKG_ERRORS" >&5
18743
18744 :
18745 elif test $pkg_failed = untried; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747 $as_echo "no" >&6; }
18748 :
18749 else
18750 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
18751 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18753 $as_echo "yes" >&6; }
18754
18755 CY_EXECUTE=1
18756
18757
18758 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
18759 haveit=
18760 for x in $CPPFLAGS; do
18761
18762 acl_save_prefix="$prefix"
18763 prefix="$acl_final_prefix"
18764 acl_save_exec_prefix="$exec_prefix"
18765 exec_prefix="$acl_final_exec_prefix"
18766 eval x=\"$x\"
18767 exec_prefix="$acl_save_exec_prefix"
18768 prefix="$acl_save_prefix"
18769
18770 if test "X$x" = "X$element"; then
18771 haveit=yes
18772 break
18773 fi
18774 done
18775 if test -z "$haveit"; then
18776 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18777 fi
18778 done
18779
18780
18781 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
18782 haveit=
18783 for x in $LIBS; do
18784
18785 acl_save_prefix="$prefix"
18786 prefix="$acl_final_prefix"
18787 acl_save_exec_prefix="$exec_prefix"
18788 exec_prefix="$acl_final_exec_prefix"
18789 eval x=\"$x\"
18790 exec_prefix="$acl_save_exec_prefix"
18791 prefix="$acl_save_prefix"
18792
18793 if test "X$x" = "X$element"; then
18794 haveit=yes
18795 break
18796 fi
18797 done
18798 if test -z "$haveit"; then
18799 LIBS="${LIBS}${LIBS:+ }$element"
18800 fi
18801 done
18802
18803
18804 fi; if test "x$CY_EXECUTE" = x1; then break; fi
18805 done
18806
18807 fi
18808 fi
18809
18810 LTJAVASCRIPTCORE=$LIBS
18811 LIBS=$cy_save
18812
18813
18814 ;; #(
18815 no) :
18816
18817 CY_EXECUTE=0
18818 ;; #(
18819 JavaScriptCore) :
18820
18821
18822
18823 cy_save=$LIBS
18824 LIBS=
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
18826 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
18827 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18828 $as_echo_n "(cached) " >&6
18829 else
18830 ac_func_search_save_LIBS=$LIBS
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833
18834 /* Override any GCC internal prototype to avoid an error.
18835 Use char because int might match the return type of a GCC
18836 builtin and then its argument prototype would still apply. */
18837 #ifdef __cplusplus
18838 extern "C"
18839 #endif
18840 char JSEvaluateScript ();
18841 int
18842 main ()
18843 {
18844 return JSEvaluateScript ();
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 for ac_lib in '' JavaScriptCore; do
18850 if test -z "$ac_lib"; then
18851 ac_res="none required"
18852 else
18853 ac_res=-l$ac_lib
18854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18855 fi
18856 if ac_fn_cxx_try_link "$LINENO"; then :
18857 ac_cv_search_JSEvaluateScript=$ac_res
18858 fi
18859 rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext
18861 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18862 break
18863 fi
18864 done
18865 if ${ac_cv_search_JSEvaluateScript+:} false; then :
18866
18867 else
18868 ac_cv_search_JSEvaluateScript=no
18869 fi
18870 rm conftest.$ac_ext
18871 LIBS=$ac_func_search_save_LIBS
18872 fi
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
18874 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
18875 ac_res=$ac_cv_search_JSEvaluateScript
18876 if test "$ac_res" != no; then :
18877 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18878
18879 CY_EXECUTE=1
18880
18881
18882 else
18883
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
18885 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
18886 if ${ac_cv_framework_JavaScriptCore+:} false; then :
18887 $as_echo_n "(cached) " >&6
18888 else
18889
18890 ac_check_framework_save_LIBS=$LIBS
18891 LIBS="-framework JavaScriptCore $LIBS"
18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18893 /* end confdefs.h. */
18894
18895 #include <JavaScriptCore/JSBase.h>
18896
18897 int
18898 main ()
18899 {
18900
18901 JSEvaluateScript(0, 0, 0, 0, 0, 0);
18902
18903 ;
18904 return 0;
18905 }
18906 _ACEOF
18907 if ac_fn_cxx_try_link "$LINENO"; then :
18908
18909 ac_cv_framework_JavaScriptCore=yes
18910
18911 else
18912 ac_cv_framework_JavaScriptCore=no
18913 fi
18914 rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 LIBS=$ac_check_framework_save_LIBS
18917
18918 fi
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
18920 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
18921 if test $ac_cv_framework_JavaScriptCore = yes; then :
18922
18923
18924 for element in "-framework JavaScriptCore"; do
18925 haveit=
18926 for x in $LIBS; do
18927
18928 acl_save_prefix="$prefix"
18929 prefix="$acl_final_prefix"
18930 acl_save_exec_prefix="$exec_prefix"
18931 exec_prefix="$acl_final_exec_prefix"
18932 eval x=\"$x\"
18933 exec_prefix="$acl_save_exec_prefix"
18934 prefix="$acl_save_prefix"
18935
18936 if test "X$x" = "X$element"; then
18937 haveit=yes
18938 break
18939 fi
18940 done
18941 if test -z "$haveit"; then
18942 LIBS="${LIBS}${LIBS:+ }$element"
18943 fi
18944 done
18945
18946
18947 CY_EXECUTE=1
18948
18949
18950
18951 else
18952
18953 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
18954
18955 pkg_failed=no
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
18957 $as_echo_n "checking for WEBKIT... " >&6; }
18958
18959 if test -n "$WEBKIT_CFLAGS"; then
18960 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
18961 elif test -n "$PKG_CONFIG"; then
18962 if test -n "$PKG_CONFIG" && \
18963 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18964 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18965 ac_status=$?
18966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18967 test $ac_status = 0; }; then
18968 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
18969 test "x$?" != "x0" && pkg_failed=yes
18970 else
18971 pkg_failed=yes
18972 fi
18973 else
18974 pkg_failed=untried
18975 fi
18976 if test -n "$WEBKIT_LIBS"; then
18977 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
18978 elif test -n "$PKG_CONFIG"; then
18979 if test -n "$PKG_CONFIG" && \
18980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
18981 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
18982 ac_status=$?
18983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18984 test $ac_status = 0; }; then
18985 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
18986 test "x$?" != "x0" && pkg_failed=yes
18987 else
18988 pkg_failed=yes
18989 fi
18990 else
18991 pkg_failed=untried
18992 fi
18993
18994
18995
18996 if test $pkg_failed = yes; then
18997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18998 $as_echo "no" >&6; }
18999
19000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19001 _pkg_short_errors_supported=yes
19002 else
19003 _pkg_short_errors_supported=no
19004 fi
19005 if test $_pkg_short_errors_supported = yes; then
19006 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19007 else
19008 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19009 fi
19010 # Put the nasty error message in config.log where it belongs
19011 echo "$WEBKIT_PKG_ERRORS" >&5
19012
19013 :
19014 elif test $pkg_failed = untried; then
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016 $as_echo "no" >&6; }
19017 :
19018 else
19019 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19020 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19022 $as_echo "yes" >&6; }
19023
19024 CY_EXECUTE=1
19025
19026
19027 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19028 haveit=
19029 for x in $CPPFLAGS; do
19030
19031 acl_save_prefix="$prefix"
19032 prefix="$acl_final_prefix"
19033 acl_save_exec_prefix="$exec_prefix"
19034 exec_prefix="$acl_final_exec_prefix"
19035 eval x=\"$x\"
19036 exec_prefix="$acl_save_exec_prefix"
19037 prefix="$acl_save_prefix"
19038
19039 if test "X$x" = "X$element"; then
19040 haveit=yes
19041 break
19042 fi
19043 done
19044 if test -z "$haveit"; then
19045 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19046 fi
19047 done
19048
19049
19050 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19051 haveit=
19052 for x in $LIBS; do
19053
19054 acl_save_prefix="$prefix"
19055 prefix="$acl_final_prefix"
19056 acl_save_exec_prefix="$exec_prefix"
19057 exec_prefix="$acl_final_exec_prefix"
19058 eval x=\"$x\"
19059 exec_prefix="$acl_save_exec_prefix"
19060 prefix="$acl_save_prefix"
19061
19062 if test "X$x" = "X$element"; then
19063 haveit=yes
19064 break
19065 fi
19066 done
19067 if test -z "$haveit"; then
19068 LIBS="${LIBS}${LIBS:+ }$element"
19069 fi
19070 done
19071
19072
19073 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19074 done
19075
19076 fi
19077 fi
19078
19079 LTJAVASCRIPTCORE=$LIBS
19080 LIBS=$cy_save
19081
19082
19083 ;; #(
19084 *) :
19085 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
19086 esac
19087
19088 else
19089
19090
19091
19092 cy_save=$LIBS
19093 LIBS=
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19095 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19096 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19097 $as_echo_n "(cached) " >&6
19098 else
19099 ac_func_search_save_LIBS=$LIBS
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19102
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19106 #ifdef __cplusplus
19107 extern "C"
19108 #endif
19109 char JSEvaluateScript ();
19110 int
19111 main ()
19112 {
19113 return JSEvaluateScript ();
19114 ;
19115 return 0;
19116 }
19117 _ACEOF
19118 for ac_lib in '' JavaScriptCore; do
19119 if test -z "$ac_lib"; then
19120 ac_res="none required"
19121 else
19122 ac_res=-l$ac_lib
19123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19124 fi
19125 if ac_fn_cxx_try_link "$LINENO"; then :
19126 ac_cv_search_JSEvaluateScript=$ac_res
19127 fi
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext
19130 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19131 break
19132 fi
19133 done
19134 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19135
19136 else
19137 ac_cv_search_JSEvaluateScript=no
19138 fi
19139 rm conftest.$ac_ext
19140 LIBS=$ac_func_search_save_LIBS
19141 fi
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19143 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19144 ac_res=$ac_cv_search_JSEvaluateScript
19145 if test "$ac_res" != no; then :
19146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19147
19148 CY_EXECUTE=1
19149
19150
19151 else
19152
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19154 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19155 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19156 $as_echo_n "(cached) " >&6
19157 else
19158
19159 ac_check_framework_save_LIBS=$LIBS
19160 LIBS="-framework JavaScriptCore $LIBS"
19161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19162 /* end confdefs.h. */
19163
19164 #include <JavaScriptCore/JSBase.h>
19165
19166 int
19167 main ()
19168 {
19169
19170 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19171
19172 ;
19173 return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_cxx_try_link "$LINENO"; then :
19177
19178 ac_cv_framework_JavaScriptCore=yes
19179
19180 else
19181 ac_cv_framework_JavaScriptCore=no
19182 fi
19183 rm -f core conftest.err conftest.$ac_objext \
19184 conftest$ac_exeext conftest.$ac_ext
19185 LIBS=$ac_check_framework_save_LIBS
19186
19187 fi
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19189 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19190 if test $ac_cv_framework_JavaScriptCore = yes; then :
19191
19192
19193 for element in "-framework JavaScriptCore"; do
19194 haveit=
19195 for x in $LIBS; do
19196
19197 acl_save_prefix="$prefix"
19198 prefix="$acl_final_prefix"
19199 acl_save_exec_prefix="$exec_prefix"
19200 exec_prefix="$acl_final_exec_prefix"
19201 eval x=\"$x\"
19202 exec_prefix="$acl_save_exec_prefix"
19203 prefix="$acl_save_prefix"
19204
19205 if test "X$x" = "X$element"; then
19206 haveit=yes
19207 break
19208 fi
19209 done
19210 if test -z "$haveit"; then
19211 LIBS="${LIBS}${LIBS:+ }$element"
19212 fi
19213 done
19214
19215
19216 CY_EXECUTE=1
19217
19218
19219
19220 else
19221
19222 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19223
19224 pkg_failed=no
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19226 $as_echo_n "checking for WEBKIT... " >&6; }
19227
19228 if test -n "$WEBKIT_CFLAGS"; then
19229 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19230 elif test -n "$PKG_CONFIG"; then
19231 if test -n "$PKG_CONFIG" && \
19232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19233 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19234 ac_status=$?
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; then
19237 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19238 test "x$?" != "x0" && pkg_failed=yes
19239 else
19240 pkg_failed=yes
19241 fi
19242 else
19243 pkg_failed=untried
19244 fi
19245 if test -n "$WEBKIT_LIBS"; then
19246 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19247 elif test -n "$PKG_CONFIG"; then
19248 if test -n "$PKG_CONFIG" && \
19249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19250 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19251 ac_status=$?
19252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19253 test $ac_status = 0; }; then
19254 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19255 test "x$?" != "x0" && pkg_failed=yes
19256 else
19257 pkg_failed=yes
19258 fi
19259 else
19260 pkg_failed=untried
19261 fi
19262
19263
19264
19265 if test $pkg_failed = yes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19267 $as_echo "no" >&6; }
19268
19269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19270 _pkg_short_errors_supported=yes
19271 else
19272 _pkg_short_errors_supported=no
19273 fi
19274 if test $_pkg_short_errors_supported = yes; then
19275 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19276 else
19277 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19278 fi
19279 # Put the nasty error message in config.log where it belongs
19280 echo "$WEBKIT_PKG_ERRORS" >&5
19281
19282 :
19283 elif test $pkg_failed = untried; then
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19285 $as_echo "no" >&6; }
19286 :
19287 else
19288 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19289 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19291 $as_echo "yes" >&6; }
19292
19293 CY_EXECUTE=1
19294
19295
19296 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19297 haveit=
19298 for x in $CPPFLAGS; do
19299
19300 acl_save_prefix="$prefix"
19301 prefix="$acl_final_prefix"
19302 acl_save_exec_prefix="$exec_prefix"
19303 exec_prefix="$acl_final_exec_prefix"
19304 eval x=\"$x\"
19305 exec_prefix="$acl_save_exec_prefix"
19306 prefix="$acl_save_prefix"
19307
19308 if test "X$x" = "X$element"; then
19309 haveit=yes
19310 break
19311 fi
19312 done
19313 if test -z "$haveit"; then
19314 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19315 fi
19316 done
19317
19318
19319 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19320 haveit=
19321 for x in $LIBS; do
19322
19323 acl_save_prefix="$prefix"
19324 prefix="$acl_final_prefix"
19325 acl_save_exec_prefix="$exec_prefix"
19326 exec_prefix="$acl_final_exec_prefix"
19327 eval x=\"$x\"
19328 exec_prefix="$acl_save_exec_prefix"
19329 prefix="$acl_save_prefix"
19330
19331 if test "X$x" = "X$element"; then
19332 haveit=yes
19333 break
19334 fi
19335 done
19336 if test -z "$haveit"; then
19337 LIBS="${LIBS}${LIBS:+ }$element"
19338 fi
19339 done
19340
19341
19342 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19343 done
19344
19345 fi
19346 fi
19347
19348 LTJAVASCRIPTCORE=$LIBS
19349 LIBS=$cy_save
19350
19351
19352
19353 fi
19354
19355
19356 # Check whether --enable-console was given.
19357 if test "${enable_console+set}" = set; then :
19358 enableval=$enable_console;
19359 fi
19360
19361 if test "x$enable_console" != "xno"; then
19362 CY_CONSOLE_TRUE=
19363 CY_CONSOLE_FALSE='#'
19364 else
19365 CY_CONSOLE_TRUE='#'
19366 CY_CONSOLE_FALSE=
19367 fi
19368
19369
19370
19371
19372 if test "x$CY_EXECUTE" = x1; then
19373 CY_EXECUTE_TRUE=
19374 CY_EXECUTE_FALSE='#'
19375 else
19376 CY_EXECUTE_TRUE='#'
19377 CY_EXECUTE_FALSE=
19378 fi
19379
19380
19381
19382 case $CY_EXECUTE in #(
19383 1) :
19384
19385 for ac_header in ffi.h ffi/ffi.h
19386 do :
19387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19388 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19390 cat >>confdefs.h <<_ACEOF
19391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392 _ACEOF
19393 break
19394 fi
19395
19396 done
19397
19398
19399
19400 cy_save=$LIBS
19401 LIBS=
19402 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
19403
19404
19405 LIBFFI_CFLAGS
19406 C compiler flags for LIBFFI, overriding pkg-config
19407 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
19408
19409 pkg_failed=no
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19411 $as_echo_n "checking for LIBFFI... " >&6; }
19412
19413 if test -n "$LIBFFI_CFLAGS"; then
19414 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19415 elif test -n "$PKG_CONFIG"; then
19416 if test -n "$PKG_CONFIG" && \
19417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19418 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19419 ac_status=$?
19420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19421 test $ac_status = 0; }; then
19422 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19423 test "x$?" != "x0" && pkg_failed=yes
19424 else
19425 pkg_failed=yes
19426 fi
19427 else
19428 pkg_failed=untried
19429 fi
19430 if test -n "$LIBFFI_LIBS"; then
19431 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19432 elif test -n "$PKG_CONFIG"; then
19433 if test -n "$PKG_CONFIG" && \
19434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19435 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19436 ac_status=$?
19437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19438 test $ac_status = 0; }; then
19439 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19440 test "x$?" != "x0" && pkg_failed=yes
19441 else
19442 pkg_failed=yes
19443 fi
19444 else
19445 pkg_failed=untried
19446 fi
19447
19448
19449
19450 if test $pkg_failed = yes; then
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19452 $as_echo "no" >&6; }
19453
19454 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19455 _pkg_short_errors_supported=yes
19456 else
19457 _pkg_short_errors_supported=no
19458 fi
19459 if test $_pkg_short_errors_supported = yes; then
19460 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
19461 else
19462 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
19463 fi
19464 # Put the nasty error message in config.log where it belongs
19465 echo "$LIBFFI_PKG_ERRORS" >&5
19466
19467 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19468 elif test $pkg_failed = untried; then
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19470 $as_echo "no" >&6; }
19471 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19472 else
19473 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19474 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19476 $as_echo "yes" >&6; }
19477
19478
19479 for element in `$PKG_CONFIG --cflags libffi`; do
19480 haveit=
19481 for x in $CPPFLAGS; do
19482
19483 acl_save_prefix="$prefix"
19484 prefix="$acl_final_prefix"
19485 acl_save_exec_prefix="$exec_prefix"
19486 exec_prefix="$acl_final_exec_prefix"
19487 eval x=\"$x\"
19488 exec_prefix="$acl_save_exec_prefix"
19489 prefix="$acl_save_prefix"
19490
19491 if test "X$x" = "X$element"; then
19492 haveit=yes
19493 break
19494 fi
19495 done
19496 if test -z "$haveit"; then
19497 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19498 fi
19499 done
19500
19501
19502 for element in `$PKG_CONFIG --libs libffi`; do
19503 haveit=
19504 for x in $LIBS; do
19505
19506 acl_save_prefix="$prefix"
19507 prefix="$acl_final_prefix"
19508 acl_save_exec_prefix="$exec_prefix"
19509 exec_prefix="$acl_final_exec_prefix"
19510 eval x=\"$x\"
19511 exec_prefix="$acl_save_exec_prefix"
19512 prefix="$acl_save_prefix"
19513
19514 if test "X$x" = "X$element"; then
19515 haveit=yes
19516 break
19517 fi
19518 done
19519 if test -z "$haveit"; then
19520 LIBS="${LIBS}${LIBS:+ }$element"
19521 fi
19522 done
19523
19524
19525 fi
19526
19527 else
19528
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
19530 $as_echo_n "checking for library containing ffi_call... " >&6; }
19531 if ${ac_cv_search_ffi_call+:} false; then :
19532 $as_echo_n "(cached) " >&6
19533 else
19534 ac_func_search_save_LIBS=$LIBS
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char ffi_call ();
19545 int
19546 main ()
19547 {
19548 return ffi_call ();
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 for ac_lib in '' ffi; do
19554 if test -z "$ac_lib"; then
19555 ac_res="none required"
19556 else
19557 ac_res=-l$ac_lib
19558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19559 fi
19560 if ac_fn_cxx_try_link "$LINENO"; then :
19561 ac_cv_search_ffi_call=$ac_res
19562 fi
19563 rm -f core conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext
19565 if ${ac_cv_search_ffi_call+:} false; then :
19566 break
19567 fi
19568 done
19569 if ${ac_cv_search_ffi_call+:} false; then :
19570
19571 else
19572 ac_cv_search_ffi_call=no
19573 fi
19574 rm conftest.$ac_ext
19575 LIBS=$ac_func_search_save_LIBS
19576 fi
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
19578 $as_echo "$ac_cv_search_ffi_call" >&6; }
19579 ac_res=$ac_cv_search_ffi_call
19580 if test "$ac_res" != no; then :
19581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19582
19583 fi
19584
19585 case $ac_cv_search_ffi_call in #(
19586 no) :
19587
19588
19589 pkg_failed=no
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
19591 $as_echo_n "checking for LIBFFI... " >&6; }
19592
19593 if test -n "$LIBFFI_CFLAGS"; then
19594 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
19595 elif test -n "$PKG_CONFIG"; then
19596 if test -n "$PKG_CONFIG" && \
19597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19598 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19599 ac_status=$?
19600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19601 test $ac_status = 0; }; then
19602 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
19603 test "x$?" != "x0" && pkg_failed=yes
19604 else
19605 pkg_failed=yes
19606 fi
19607 else
19608 pkg_failed=untried
19609 fi
19610 if test -n "$LIBFFI_LIBS"; then
19611 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
19612 elif test -n "$PKG_CONFIG"; then
19613 if test -n "$PKG_CONFIG" && \
19614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
19615 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
19616 ac_status=$?
19617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19618 test $ac_status = 0; }; then
19619 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
19620 test "x$?" != "x0" && pkg_failed=yes
19621 else
19622 pkg_failed=yes
19623 fi
19624 else
19625 pkg_failed=untried
19626 fi
19627
19628
19629
19630 if test $pkg_failed = yes; then
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633
19634 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19635 _pkg_short_errors_supported=yes
19636 else
19637 _pkg_short_errors_supported=no
19638 fi
19639 if test $_pkg_short_errors_supported = yes; then
19640 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
19641 else
19642 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
19643 fi
19644 # Put the nasty error message in config.log where it belongs
19645 echo "$LIBFFI_PKG_ERRORS" >&5
19646
19647 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19648 elif test $pkg_failed = untried; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19650 $as_echo "no" >&6; }
19651 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
19652 else
19653 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
19654 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656 $as_echo "yes" >&6; }
19657
19658
19659 for element in `$PKG_CONFIG --cflags libffi`; do
19660 haveit=
19661 for x in $CPPFLAGS; do
19662
19663 acl_save_prefix="$prefix"
19664 prefix="$acl_final_prefix"
19665 acl_save_exec_prefix="$exec_prefix"
19666 exec_prefix="$acl_final_exec_prefix"
19667 eval x=\"$x\"
19668 exec_prefix="$acl_save_exec_prefix"
19669 prefix="$acl_save_prefix"
19670
19671 if test "X$x" = "X$element"; then
19672 haveit=yes
19673 break
19674 fi
19675 done
19676 if test -z "$haveit"; then
19677 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19678 fi
19679 done
19680
19681
19682 for element in `$PKG_CONFIG --libs libffi`; do
19683 haveit=
19684 for x in $LIBS; do
19685
19686 acl_save_prefix="$prefix"
19687 prefix="$acl_final_prefix"
19688 acl_save_exec_prefix="$exec_prefix"
19689 exec_prefix="$acl_final_exec_prefix"
19690 eval x=\"$x\"
19691 exec_prefix="$acl_save_exec_prefix"
19692 prefix="$acl_save_prefix"
19693
19694 if test "X$x" = "X$element"; then
19695 haveit=yes
19696 break
19697 fi
19698 done
19699 if test -z "$haveit"; then
19700 LIBS="${LIBS}${LIBS:+ }$element"
19701 fi
19702 done
19703
19704
19705 fi ;; #(
19706 *) :
19707 ;;
19708 esac
19709
19710 fi
19711 LTLIBFFI=$LIBS
19712 LIBS=$cy_save
19713
19714
19715
19716 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
19717 if test "x$ac_cv_header_jni_h" = xyes; then :
19718
19719 CY_JAVA=1
19720
19721
19722 cy_save=$LIBS
19723 LIBS=
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
19725 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
19726 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19727 $as_echo_n "(cached) " >&6
19728 else
19729 ac_func_search_save_LIBS=$LIBS
19730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19732
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19736 #ifdef __cplusplus
19737 extern "C"
19738 #endif
19739 char JNI_GetCreatedJavaVMs ();
19740 int
19741 main ()
19742 {
19743 return JNI_GetCreatedJavaVMs ();
19744 ;
19745 return 0;
19746 }
19747 _ACEOF
19748 for ac_lib in '' dvm; do
19749 if test -z "$ac_lib"; then
19750 ac_res="none required"
19751 else
19752 ac_res=-l$ac_lib
19753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19754 fi
19755 if ac_fn_cxx_try_link "$LINENO"; then :
19756 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
19757 fi
19758 rm -f core conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext
19760 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19761 break
19762 fi
19763 done
19764 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
19765
19766 else
19767 ac_cv_search_JNI_GetCreatedJavaVMs=no
19768 fi
19769 rm conftest.$ac_ext
19770 LIBS=$ac_func_search_save_LIBS
19771 fi
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
19773 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
19774 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
19775 if test "$ac_res" != no; then :
19776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19777
19778
19779 fi
19780
19781 LTJAVA=$LIBS
19782 LIBS=$cy_save
19783
19784
19785
19786 else
19787
19788 CY_JAVA=0
19789
19790
19791 fi
19792
19793
19794
19795 ac_ext=mm
19796 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19797 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19798 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19799 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19800
19801
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
19803 $as_echo_n "checking if we really have Objective C++... " >&6; }
19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19806
19807 _ACEOF
19808 if ac_fn_objcxx_try_compile "$LINENO"; then :
19809
19810 CY_OBJECTIVEC=1
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19812 $as_echo "yes" >&6; }
19813
19814 else
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19816 $as_echo "no" >&6; }
19817 fi
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819
19820 if test "x$CY_OBJECTIVEC" = x1; then :
19821
19822
19823 cy_save=$LIBS
19824 LIBS=
19825
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
19827 $as_echo_n "checking for framework CoreFoundation... " >&6; }
19828 if ${ac_cv_framework_CoreFoundation+:} false; then :
19829 $as_echo_n "(cached) " >&6
19830 else
19831
19832 ac_check_framework_save_LIBS=$LIBS
19833 LIBS="-framework CoreFoundation $LIBS"
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836
19837 #include <CoreFoundation/CFBase.h>
19838
19839 int
19840 main ()
19841 {
19842 CFAllocatorGetDefault();
19843 ;
19844 return 0;
19845 }
19846 _ACEOF
19847 if ac_fn_objcxx_try_link "$LINENO"; then :
19848
19849 ac_cv_framework_CoreFoundation=yes
19850
19851 else
19852 ac_cv_framework_CoreFoundation=no
19853 fi
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_framework_save_LIBS
19857
19858 fi
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
19860 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
19861 if test $ac_cv_framework_CoreFoundation = yes; then :
19862
19863
19864 for element in "-framework CoreFoundation"; do
19865 haveit=
19866 for x in $LIBS; do
19867
19868 acl_save_prefix="$prefix"
19869 prefix="$acl_final_prefix"
19870 acl_save_exec_prefix="$exec_prefix"
19871 exec_prefix="$acl_final_exec_prefix"
19872 eval x=\"$x\"
19873 exec_prefix="$acl_save_exec_prefix"
19874 prefix="$acl_save_prefix"
19875
19876 if test "X$x" = "X$element"; then
19877 haveit=yes
19878 break
19879 fi
19880 done
19881 if test -z "$haveit"; then
19882 LIBS="${LIBS}${LIBS:+ }$element"
19883 fi
19884 done
19885
19886
19887
19888
19889
19890
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
19892 $as_echo_n "checking for framework Foundation... " >&6; }
19893 if ${ac_cv_framework_Foundation+:} false; then :
19894 $as_echo_n "(cached) " >&6
19895 else
19896
19897 ac_check_framework_save_LIBS=$LIBS
19898 LIBS="-framework Foundation $LIBS"
19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19900 /* end confdefs.h. */
19901
19902 #include <Foundation/NSObject.h>
19903
19904 int
19905 main ()
19906 {
19907 [[NSObject alloc] init];
19908 ;
19909 return 0;
19910 }
19911 _ACEOF
19912 if ac_fn_objcxx_try_link "$LINENO"; then :
19913
19914 ac_cv_framework_Foundation=yes
19915
19916 else
19917 ac_cv_framework_Foundation=no
19918 fi
19919 rm -f core conftest.err conftest.$ac_objext \
19920 conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_check_framework_save_LIBS
19922
19923 fi
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
19925 $as_echo "$ac_cv_framework_Foundation" >&6; }
19926 if test $ac_cv_framework_Foundation = yes; then :
19927
19928
19929 for element in "-framework Foundation"; do
19930 haveit=
19931 for x in $LIBS; do
19932
19933 acl_save_prefix="$prefix"
19934 prefix="$acl_final_prefix"
19935 acl_save_exec_prefix="$exec_prefix"
19936 exec_prefix="$acl_final_exec_prefix"
19937 eval x=\"$x\"
19938 exec_prefix="$acl_save_exec_prefix"
19939 prefix="$acl_save_prefix"
19940
19941 if test "X$x" = "X$element"; then
19942 haveit=yes
19943 break
19944 fi
19945 done
19946 if test -z "$haveit"; then
19947 LIBS="${LIBS}${LIBS:+ }$element"
19948 fi
19949 done
19950
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_FRAMEWORK_FOUNDATION 1
19953 _ACEOF
19954
19955
19956 fi
19957
19958
19959 else
19960
19961
19962 for ac_prog in gnustep-config
19963 do
19964 # Extract the first word of "$ac_prog", so it can be a program name with args.
19965 set dummy $ac_prog; ac_word=$2
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19967 $as_echo_n "checking for $ac_word... " >&6; }
19968 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
19969 $as_echo_n "(cached) " >&6
19970 else
19971 if test -n "$GNUSTEP_CONFIG"; then
19972 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
19973 else
19974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19975 for as_dir in $PATH
19976 do
19977 IFS=$as_save_IFS
19978 test -z "$as_dir" && as_dir=.
19979 for ac_exec_ext in '' $ac_executable_extensions; do
19980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19981 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
19982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19983 break 2
19984 fi
19985 done
19986 done
19987 IFS=$as_save_IFS
19988
19989 fi
19990 fi
19991 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
19992 if test -n "$GNUSTEP_CONFIG"; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
19994 $as_echo "$GNUSTEP_CONFIG" >&6; }
19995 else
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19997 $as_echo "no" >&6; }
19998 fi
19999
20000
20001 test -n "$GNUSTEP_CONFIG" && break
20002 done
20003
20004
20005 if test "x$GNUSTEP_CONFIG" != x; then :
20006
20007
20008
20009 for element in `$GNUSTEP_CONFIG --objc-flags`; do
20010 haveit=
20011 for x in $OBJCXXFLAGS; do
20012
20013 acl_save_prefix="$prefix"
20014 prefix="$acl_final_prefix"
20015 acl_save_exec_prefix="$exec_prefix"
20016 exec_prefix="$acl_final_exec_prefix"
20017 eval x=\"$x\"
20018 exec_prefix="$acl_save_exec_prefix"
20019 prefix="$acl_save_prefix"
20020
20021 if test "X$x" = "X$element"; then
20022 haveit=yes
20023 break
20024 fi
20025 done
20026 if test -z "$haveit"; then
20027 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20028 fi
20029 done
20030
20031
20032 for element in `$GNUSTEP_CONFIG --base-libs`; do
20033 haveit=
20034 for x in $LIBS; do
20035
20036 acl_save_prefix="$prefix"
20037 prefix="$acl_final_prefix"
20038 acl_save_exec_prefix="$exec_prefix"
20039 exec_prefix="$acl_final_exec_prefix"
20040 eval x=\"$x\"
20041 exec_prefix="$acl_save_exec_prefix"
20042 prefix="$acl_save_prefix"
20043
20044 if test "X$x" = "X$element"; then
20045 haveit=yes
20046 break
20047 fi
20048 done
20049 if test -z "$haveit"; then
20050 LIBS="${LIBS}${LIBS:+ }$element"
20051 fi
20052 done
20053
20054
20055 else
20056 CY_OBJECTIVEC=0
20057
20058 fi
20059
20060 fi
20061 LTOBJECTIVEC=$LIBS
20062 LIBS=$cy_save
20063
20064
20065
20066 fi
20067
20068 ac_ext=cpp
20069 ac_cpp='$CXXCPP $CPPFLAGS'
20070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20073
20074 ;; #(
20075 *) :
20076 ;;
20077 esac
20078
20079 if test "x$CY_JAVA" = x1; then
20080 CY_JAVA_TRUE=
20081 CY_JAVA_FALSE='#'
20082 else
20083 CY_JAVA_TRUE='#'
20084 CY_JAVA_FALSE=
20085 fi
20086
20087 if test "x$CY_OBJECTIVEC" = x1; then
20088 CY_OBJECTIVEC_TRUE=
20089 CY_OBJECTIVEC_FALSE='#'
20090 else
20091 CY_OBJECTIVEC_TRUE='#'
20092 CY_OBJECTIVEC_FALSE=
20093 fi
20094
20095
20096
20097 cy_save=$LIBS
20098 LIBS=
20099
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20101 $as_echo_n "checking for a readline compatible library... " >&6; }
20102 if ${ax_cv_lib_readline+:} false; then :
20103 $as_echo_n "(cached) " >&6
20104 else
20105
20106 ORIG_LIBS="$LIBS"
20107 for readline_lib in readline edit editline; do
20108 for termcap_lib in "" termcap curses ncurses; do
20109 if test -z "$termcap_lib"; then
20110 TRY_LIB="-l$readline_lib"
20111 else
20112 TRY_LIB="-l$readline_lib -l$termcap_lib"
20113 fi
20114 LIBS="$ORIG_LIBS $TRY_LIB"
20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h. */
20117
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char readline ();
20125 int
20126 main ()
20127 {
20128 return readline ();
20129 ;
20130 return 0;
20131 }
20132 _ACEOF
20133 if ac_fn_cxx_try_link "$LINENO"; then :
20134 ax_cv_lib_readline="$TRY_LIB"
20135 fi
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20138 if test -n "$ax_cv_lib_readline"; then
20139 break
20140 fi
20141 done
20142 if test -n "$ax_cv_lib_readline"; then
20143 break
20144 fi
20145 done
20146 if test -z "$ax_cv_lib_readline"; then
20147 ax_cv_lib_readline="no"
20148 fi
20149 LIBS="$ORIG_LIBS"
20150
20151 fi
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20153 $as_echo "$ax_cv_lib_readline" >&6; }
20154
20155 if test "$ax_cv_lib_readline" != "no"; then
20156 LIBS="$LIBS $ax_cv_lib_readline"
20157
20158 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20159
20160 for ac_header in readline.h readline/readline.h
20161 do :
20162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20163 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20165 cat >>confdefs.h <<_ACEOF
20166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20167 _ACEOF
20168
20169 fi
20170
20171 done
20172
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20174 $as_echo_n "checking whether readline supports history... " >&6; }
20175 if ${ax_cv_lib_readline_history+:} false; then :
20176 $as_echo_n "(cached) " >&6
20177 else
20178
20179 ax_cv_lib_readline_history="no"
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h. */
20182
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char add_history ();
20190 int
20191 main ()
20192 {
20193 return add_history ();
20194 ;
20195 return 0;
20196 }
20197 _ACEOF
20198 if ac_fn_cxx_try_link "$LINENO"; then :
20199 ax_cv_lib_readline_history="yes"
20200 fi
20201 rm -f core conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20203
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20206 $as_echo "$ax_cv_lib_readline_history" >&6; }
20207 if test "$ax_cv_lib_readline_history" = "yes"; then
20208
20209 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20210
20211 for ac_header in history.h readline/history.h
20212 do :
20213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20214 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20215 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20216 cat >>confdefs.h <<_ACEOF
20217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20218 _ACEOF
20219
20220 fi
20221
20222 done
20223
20224 fi
20225 fi
20226
20227 LTLIBREADLINE=$LIBS
20228 LIBS=$cy_save
20229
20230
20231 case $ax_cv_lib_readline in #(
20232 no) :
20233 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20234 *) :
20235 ;;
20236 esac
20237
20238
20239 cy_save=$LIBS
20240 LIBS=
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20242 $as_echo_n "checking for library containing cur_term... " >&6; }
20243 if ${ac_cv_search_cur_term+:} false; then :
20244 $as_echo_n "(cached) " >&6
20245 else
20246 ac_func_search_save_LIBS=$LIBS
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20253 #ifdef __cplusplus
20254 extern "C"
20255 #endif
20256 char cur_term ();
20257 int
20258 main ()
20259 {
20260 return cur_term ();
20261 ;
20262 return 0;
20263 }
20264 _ACEOF
20265 for ac_lib in '' termcap ncurses; do
20266 if test -z "$ac_lib"; then
20267 ac_res="none required"
20268 else
20269 ac_res=-l$ac_lib
20270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20271 fi
20272 if ac_fn_cxx_try_link "$LINENO"; then :
20273 ac_cv_search_cur_term=$ac_res
20274 fi
20275 rm -f core conftest.err conftest.$ac_objext \
20276 conftest$ac_exeext
20277 if ${ac_cv_search_cur_term+:} false; then :
20278 break
20279 fi
20280 done
20281 if ${ac_cv_search_cur_term+:} false; then :
20282
20283 else
20284 ac_cv_search_cur_term=no
20285 fi
20286 rm conftest.$ac_ext
20287 LIBS=$ac_func_search_save_LIBS
20288 fi
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20290 $as_echo "$ac_cv_search_cur_term" >&6; }
20291 ac_res=$ac_cv_search_cur_term
20292 if test "$ac_res" != no; then :
20293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20294
20295 fi
20296
20297 LTLIBTERMCAP=$LIBS
20298 LIBS=$cy_save
20299
20300
20301
20302
20303
20304
20305 SO=$acl_shlibext
20306
20307
20308 if test "x$CY_EXECUTE" = x1; then :
20309
20310 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20311 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20312
20313 if test -n "$ac_tool_prefix"; then
20314 for ac_prog in lipo
20315 do
20316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20319 $as_echo_n "checking for $ac_word... " >&6; }
20320 if ${ac_cv_prog__LIPO+:} false; then :
20321 $as_echo_n "(cached) " >&6
20322 else
20323 if test -n "$_LIPO"; then
20324 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20325 else
20326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20327 for as_dir in $PATH
20328 do
20329 IFS=$as_save_IFS
20330 test -z "$as_dir" && as_dir=.
20331 for ac_exec_ext in '' $ac_executable_extensions; do
20332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20333 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20335 break 2
20336 fi
20337 done
20338 done
20339 IFS=$as_save_IFS
20340
20341 fi
20342 fi
20343 _LIPO=$ac_cv_prog__LIPO
20344 if test -n "$_LIPO"; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20346 $as_echo "$_LIPO" >&6; }
20347 else
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349 $as_echo "no" >&6; }
20350 fi
20351
20352
20353 test -n "$_LIPO" && break
20354 done
20355 fi
20356 if test -z "$_LIPO"; then
20357 ac_ct__LIPO=$_LIPO
20358 for ac_prog in lipo
20359 do
20360 # Extract the first word of "$ac_prog", so it can be a program name with args.
20361 set dummy $ac_prog; ac_word=$2
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20363 $as_echo_n "checking for $ac_word... " >&6; }
20364 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20365 $as_echo_n "(cached) " >&6
20366 else
20367 if test -n "$ac_ct__LIPO"; then
20368 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20369 else
20370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20371 for as_dir in $PATH
20372 do
20373 IFS=$as_save_IFS
20374 test -z "$as_dir" && as_dir=.
20375 for ac_exec_ext in '' $ac_executable_extensions; do
20376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20377 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20379 break 2
20380 fi
20381 done
20382 done
20383 IFS=$as_save_IFS
20384
20385 fi
20386 fi
20387 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20388 if test -n "$ac_ct__LIPO"; then
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
20390 $as_echo "$ac_ct__LIPO" >&6; }
20391 else
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393 $as_echo "no" >&6; }
20394 fi
20395
20396
20397 test -n "$ac_ct__LIPO" && break
20398 done
20399
20400 if test "x$ac_ct__LIPO" = x; then
20401 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
20402 else
20403 case $cross_compiling:$ac_tool_warned in
20404 yes:)
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20407 ac_tool_warned=yes ;;
20408 esac
20409 _LIPO=$ac_ct__LIPO
20410 fi
20411 fi
20412
20413 if test -n "$ac_tool_prefix"; then
20414 for ac_prog in nm
20415 do
20416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20419 $as_echo_n "checking for $ac_word... " >&6; }
20420 if ${ac_cv_prog__NM+:} false; then :
20421 $as_echo_n "(cached) " >&6
20422 else
20423 if test -n "$_NM"; then
20424 ac_cv_prog__NM="$_NM" # Let the user override the test.
20425 else
20426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20427 for as_dir in $PATH
20428 do
20429 IFS=$as_save_IFS
20430 test -z "$as_dir" && as_dir=.
20431 for ac_exec_ext in '' $ac_executable_extensions; do
20432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20433 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
20434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20435 break 2
20436 fi
20437 done
20438 done
20439 IFS=$as_save_IFS
20440
20441 fi
20442 fi
20443 _NM=$ac_cv_prog__NM
20444 if test -n "$_NM"; then
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
20446 $as_echo "$_NM" >&6; }
20447 else
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20449 $as_echo "no" >&6; }
20450 fi
20451
20452
20453 test -n "$_NM" && break
20454 done
20455 fi
20456 if test -z "$_NM"; then
20457 ac_ct__NM=$_NM
20458 for ac_prog in nm
20459 do
20460 # Extract the first word of "$ac_prog", so it can be a program name with args.
20461 set dummy $ac_prog; ac_word=$2
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20463 $as_echo_n "checking for $ac_word... " >&6; }
20464 if ${ac_cv_prog_ac_ct__NM+:} false; then :
20465 $as_echo_n "(cached) " >&6
20466 else
20467 if test -n "$ac_ct__NM"; then
20468 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
20469 else
20470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20471 for as_dir in $PATH
20472 do
20473 IFS=$as_save_IFS
20474 test -z "$as_dir" && as_dir=.
20475 for ac_exec_ext in '' $ac_executable_extensions; do
20476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20477 ac_cv_prog_ac_ct__NM="$ac_prog"
20478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20479 break 2
20480 fi
20481 done
20482 done
20483 IFS=$as_save_IFS
20484
20485 fi
20486 fi
20487 ac_ct__NM=$ac_cv_prog_ac_ct__NM
20488 if test -n "$ac_ct__NM"; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
20490 $as_echo "$ac_ct__NM" >&6; }
20491 else
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 $as_echo "no" >&6; }
20494 fi
20495
20496
20497 test -n "$ac_ct__NM" && break
20498 done
20499
20500 if test "x$ac_ct__NM" = x; then
20501 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
20502 else
20503 case $cross_compiling:$ac_tool_warned in
20504 yes:)
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20507 ac_tool_warned=yes ;;
20508 esac
20509 _NM=$ac_ct__NM
20510 fi
20511 fi
20512
20513 if test -n "$ac_tool_prefix"; then
20514 for ac_prog in otool
20515 do
20516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20519 $as_echo_n "checking for $ac_word... " >&6; }
20520 if ${ac_cv_prog__OTOOL+:} false; then :
20521 $as_echo_n "(cached) " >&6
20522 else
20523 if test -n "$_OTOOL"; then
20524 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
20525 else
20526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527 for as_dir in $PATH
20528 do
20529 IFS=$as_save_IFS
20530 test -z "$as_dir" && as_dir=.
20531 for ac_exec_ext in '' $ac_executable_extensions; do
20532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20533 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
20534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20535 break 2
20536 fi
20537 done
20538 done
20539 IFS=$as_save_IFS
20540
20541 fi
20542 fi
20543 _OTOOL=$ac_cv_prog__OTOOL
20544 if test -n "$_OTOOL"; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
20546 $as_echo "$_OTOOL" >&6; }
20547 else
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20549 $as_echo "no" >&6; }
20550 fi
20551
20552
20553 test -n "$_OTOOL" && break
20554 done
20555 fi
20556 if test -z "$_OTOOL"; then
20557 ac_ct__OTOOL=$_OTOOL
20558 for ac_prog in otool
20559 do
20560 # Extract the first word of "$ac_prog", so it can be a program name with args.
20561 set dummy $ac_prog; ac_word=$2
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20563 $as_echo_n "checking for $ac_word... " >&6; }
20564 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 if test -n "$ac_ct__OTOOL"; then
20568 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
20569 else
20570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20571 for as_dir in $PATH
20572 do
20573 IFS=$as_save_IFS
20574 test -z "$as_dir" && as_dir=.
20575 for ac_exec_ext in '' $ac_executable_extensions; do
20576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20577 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
20578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20579 break 2
20580 fi
20581 done
20582 done
20583 IFS=$as_save_IFS
20584
20585 fi
20586 fi
20587 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
20588 if test -n "$ac_ct__OTOOL"; then
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
20590 $as_echo "$ac_ct__OTOOL" >&6; }
20591 else
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20593 $as_echo "no" >&6; }
20594 fi
20595
20596
20597 test -n "$ac_ct__OTOOL" && break
20598 done
20599
20600 if test "x$ac_ct__OTOOL" = x; then
20601 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
20602 else
20603 case $cross_compiling:$ac_tool_warned in
20604 yes:)
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20607 ac_tool_warned=yes ;;
20608 esac
20609 _OTOOL=$ac_ct__OTOOL
20610 fi
20611 fi
20612
20613 CY_ATTACH_GROUP=procmod
20614
20615 CY_MACH=1
20616
20617 fi
20618
20619
20620 fi
20621 if test "x$CY_MACH" = x1; then
20622 CY_MACH_TRUE=
20623 CY_MACH_FALSE='#'
20624 else
20625 CY_MACH_TRUE='#'
20626 CY_MACH_FALSE=
20627 fi
20628
20629
20630 ac_config_files="$ac_config_files Makefile"
20631
20632 cat >confcache <<\_ACEOF
20633 # This file is a shell script that caches the results of configure
20634 # tests run on this system so they can be shared between configure
20635 # scripts and configure runs, see configure's option --config-cache.
20636 # It is not useful on other systems. If it contains results you don't
20637 # want to keep, you may remove or edit it.
20638 #
20639 # config.status only pays attention to the cache file if you give it
20640 # the --recheck option to rerun configure.
20641 #
20642 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20643 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20644 # following values.
20645
20646 _ACEOF
20647
20648 # The following way of writing the cache mishandles newlines in values,
20649 # but we know of no workaround that is simple, portable, and efficient.
20650 # So, we kill variables containing newlines.
20651 # Ultrix sh set writes to stderr and can't be redirected directly,
20652 # and sets the high bit in the cache file unless we assign to the vars.
20653 (
20654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20655 eval ac_val=\$$ac_var
20656 case $ac_val in #(
20657 *${as_nl}*)
20658 case $ac_var in #(
20659 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20660 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20661 esac
20662 case $ac_var in #(
20663 _ | IFS | as_nl) ;; #(
20664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20665 *) { eval $ac_var=; unset $ac_var;} ;;
20666 esac ;;
20667 esac
20668 done
20669
20670 (set) 2>&1 |
20671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20672 *${as_nl}ac_space=\ *)
20673 # `set' does not quote correctly, so add quotes: double-quote
20674 # substitution turns \\\\ into \\, and sed turns \\ into \.
20675 sed -n \
20676 "s/'/'\\\\''/g;
20677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20678 ;; #(
20679 *)
20680 # `set' quotes correctly as required by POSIX, so do not add quotes.
20681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20682 ;;
20683 esac |
20684 sort
20685 ) |
20686 sed '
20687 /^ac_cv_env_/b end
20688 t clear
20689 :clear
20690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20691 t end
20692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20693 :end' >>confcache
20694 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20695 if test -w "$cache_file"; then
20696 if test "x$cache_file" != "x/dev/null"; then
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20698 $as_echo "$as_me: updating cache $cache_file" >&6;}
20699 if test ! -f "$cache_file" || test -h "$cache_file"; then
20700 cat confcache >"$cache_file"
20701 else
20702 case $cache_file in #(
20703 */* | ?:*)
20704 mv -f confcache "$cache_file"$$ &&
20705 mv -f "$cache_file"$$ "$cache_file" ;; #(
20706 *)
20707 mv -f confcache "$cache_file" ;;
20708 esac
20709 fi
20710 fi
20711 else
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20713 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20714 fi
20715 fi
20716 rm -f confcache
20717
20718 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20719 # Let make expand exec_prefix.
20720 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20721
20722 DEFS=-DHAVE_CONFIG_H
20723
20724 ac_libobjs=
20725 ac_ltlibobjs=
20726 U=
20727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20728 # 1. Remove the extension, and $U if already installed.
20729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20732 # will be set to the directory where LIBOBJS objects are built.
20733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20735 done
20736 LIBOBJS=$ac_libobjs
20737
20738 LTLIBOBJS=$ac_ltlibobjs
20739
20740
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20742 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20743 if test -n "$am_sleep_pid"; then
20744 # Hide warnings about reused PIDs.
20745 wait $am_sleep_pid 2>/dev/null
20746 fi
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20748 $as_echo "done" >&6; }
20749 if test -n "$EXEEXT"; then
20750 am__EXEEXT_TRUE=
20751 am__EXEEXT_FALSE='#'
20752 else
20753 am__EXEEXT_TRUE='#'
20754 am__EXEEXT_FALSE=
20755 fi
20756
20757 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20758 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20760 fi
20761 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20762 as_fn_error $? "conditional \"AMDEP\" was never defined.
20763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20764 fi
20765 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20766 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20768 fi
20769 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20770 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20772 fi
20773 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
20774 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
20775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20776 fi
20777 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
20778 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
20779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20780 fi
20781 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
20782 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
20783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20784 fi
20785 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
20786 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
20787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20788 fi
20789 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
20790 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
20791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20792 fi
20793 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
20794 as_fn_error $? "conditional \"CY_MACH\" was never defined.
20795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20796 fi
20797
20798 : "${CONFIG_STATUS=./config.status}"
20799 ac_write_fail=0
20800 ac_clean_files_save=$ac_clean_files
20801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20803 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20804 as_write_fail=0
20805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20806 #! $SHELL
20807 # Generated by $as_me.
20808 # Run this file to recreate the current configuration.
20809 # Compiler output produced by configure, useful for debugging
20810 # configure, is in config.log if it exists.
20811
20812 debug=false
20813 ac_cs_recheck=false
20814 ac_cs_silent=false
20815
20816 SHELL=\${CONFIG_SHELL-$SHELL}
20817 export SHELL
20818 _ASEOF
20819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20820 ## -------------------- ##
20821 ## M4sh Initialization. ##
20822 ## -------------------- ##
20823
20824 # Be more Bourne compatible
20825 DUALCASE=1; export DUALCASE # for MKS sh
20826 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20827 emulate sh
20828 NULLCMD=:
20829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20830 # is contrary to our usage. Disable this feature.
20831 alias -g '${1+"$@"}'='"$@"'
20832 setopt NO_GLOB_SUBST
20833 else
20834 case `(set -o) 2>/dev/null` in #(
20835 *posix*) :
20836 set -o posix ;; #(
20837 *) :
20838 ;;
20839 esac
20840 fi
20841
20842
20843 as_nl='
20844 '
20845 export as_nl
20846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20847 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20850 # Prefer a ksh shell builtin over an external printf program on Solaris,
20851 # but without wasting forks for bash or zsh.
20852 if test -z "$BASH_VERSION$ZSH_VERSION" \
20853 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20854 as_echo='print -r --'
20855 as_echo_n='print -rn --'
20856 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20857 as_echo='printf %s\n'
20858 as_echo_n='printf %s'
20859 else
20860 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20861 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20862 as_echo_n='/usr/ucb/echo -n'
20863 else
20864 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20865 as_echo_n_body='eval
20866 arg=$1;
20867 case $arg in #(
20868 *"$as_nl"*)
20869 expr "X$arg" : "X\\(.*\\)$as_nl";
20870 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20871 esac;
20872 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20873 '
20874 export as_echo_n_body
20875 as_echo_n='sh -c $as_echo_n_body as_echo'
20876 fi
20877 export as_echo_body
20878 as_echo='sh -c $as_echo_body as_echo'
20879 fi
20880
20881 # The user is always right.
20882 if test "${PATH_SEPARATOR+set}" != set; then
20883 PATH_SEPARATOR=:
20884 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20885 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20886 PATH_SEPARATOR=';'
20887 }
20888 fi
20889
20890
20891 # IFS
20892 # We need space, tab and new line, in precisely that order. Quoting is
20893 # there to prevent editors from complaining about space-tab.
20894 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20895 # splitting by setting IFS to empty value.)
20896 IFS=" "" $as_nl"
20897
20898 # Find who we are. Look in the path if we contain no directory separator.
20899 as_myself=
20900 case $0 in #((
20901 *[\\/]* ) as_myself=$0 ;;
20902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20903 for as_dir in $PATH
20904 do
20905 IFS=$as_save_IFS
20906 test -z "$as_dir" && as_dir=.
20907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20908 done
20909 IFS=$as_save_IFS
20910
20911 ;;
20912 esac
20913 # We did not find ourselves, most probably we were run as `sh COMMAND'
20914 # in which case we are not to be found in the path.
20915 if test "x$as_myself" = x; then
20916 as_myself=$0
20917 fi
20918 if test ! -f "$as_myself"; then
20919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20920 exit 1
20921 fi
20922
20923 # Unset variables that we do not need and which cause bugs (e.g. in
20924 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20925 # suppresses any "Segmentation fault" message there. '((' could
20926 # trigger a bug in pdksh 5.2.14.
20927 for as_var in BASH_ENV ENV MAIL MAILPATH
20928 do eval test x\${$as_var+set} = xset \
20929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20930 done
20931 PS1='$ '
20932 PS2='> '
20933 PS4='+ '
20934
20935 # NLS nuisances.
20936 LC_ALL=C
20937 export LC_ALL
20938 LANGUAGE=C
20939 export LANGUAGE
20940
20941 # CDPATH.
20942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20943
20944
20945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20946 # ----------------------------------------
20947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20949 # script with STATUS, using 1 if that was 0.
20950 as_fn_error ()
20951 {
20952 as_status=$1; test $as_status -eq 0 && as_status=1
20953 if test "$4"; then
20954 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20956 fi
20957 $as_echo "$as_me: error: $2" >&2
20958 as_fn_exit $as_status
20959 } # as_fn_error
20960
20961
20962 # as_fn_set_status STATUS
20963 # -----------------------
20964 # Set $? to STATUS, without forking.
20965 as_fn_set_status ()
20966 {
20967 return $1
20968 } # as_fn_set_status
20969
20970 # as_fn_exit STATUS
20971 # -----------------
20972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20973 as_fn_exit ()
20974 {
20975 set +e
20976 as_fn_set_status $1
20977 exit $1
20978 } # as_fn_exit
20979
20980 # as_fn_unset VAR
20981 # ---------------
20982 # Portably unset VAR.
20983 as_fn_unset ()
20984 {
20985 { eval $1=; unset $1;}
20986 }
20987 as_unset=as_fn_unset
20988 # as_fn_append VAR VALUE
20989 # ----------------------
20990 # Append the text in VALUE to the end of the definition contained in VAR. Take
20991 # advantage of any shell optimizations that allow amortized linear growth over
20992 # repeated appends, instead of the typical quadratic growth present in naive
20993 # implementations.
20994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20995 eval 'as_fn_append ()
20996 {
20997 eval $1+=\$2
20998 }'
20999 else
21000 as_fn_append ()
21001 {
21002 eval $1=\$$1\$2
21003 }
21004 fi # as_fn_append
21005
21006 # as_fn_arith ARG...
21007 # ------------------
21008 # Perform arithmetic evaluation on the ARGs, and store the result in the
21009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21010 # must be portable across $(()) and expr.
21011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21012 eval 'as_fn_arith ()
21013 {
21014 as_val=$(( $* ))
21015 }'
21016 else
21017 as_fn_arith ()
21018 {
21019 as_val=`expr "$@" || test $? -eq 1`
21020 }
21021 fi # as_fn_arith
21022
21023
21024 if expr a : '\(a\)' >/dev/null 2>&1 &&
21025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21026 as_expr=expr
21027 else
21028 as_expr=false
21029 fi
21030
21031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21032 as_basename=basename
21033 else
21034 as_basename=false
21035 fi
21036
21037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21038 as_dirname=dirname
21039 else
21040 as_dirname=false
21041 fi
21042
21043 as_me=`$as_basename -- "$0" ||
21044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21045 X"$0" : 'X\(//\)$' \| \
21046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21047 $as_echo X/"$0" |
21048 sed '/^.*\/\([^/][^/]*\)\/*$/{
21049 s//\1/
21050 q
21051 }
21052 /^X\/\(\/\/\)$/{
21053 s//\1/
21054 q
21055 }
21056 /^X\/\(\/\).*/{
21057 s//\1/
21058 q
21059 }
21060 s/.*/./; q'`
21061
21062 # Avoid depending upon Character Ranges.
21063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21066 as_cr_digits='0123456789'
21067 as_cr_alnum=$as_cr_Letters$as_cr_digits
21068
21069 ECHO_C= ECHO_N= ECHO_T=
21070 case `echo -n x` in #(((((
21071 -n*)
21072 case `echo 'xy\c'` in
21073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21074 xy) ECHO_C='\c';;
21075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21076 ECHO_T=' ';;
21077 esac;;
21078 *)
21079 ECHO_N='-n';;
21080 esac
21081
21082 rm -f conf$$ conf$$.exe conf$$.file
21083 if test -d conf$$.dir; then
21084 rm -f conf$$.dir/conf$$.file
21085 else
21086 rm -f conf$$.dir
21087 mkdir conf$$.dir 2>/dev/null
21088 fi
21089 if (echo >conf$$.file) 2>/dev/null; then
21090 if ln -s conf$$.file conf$$ 2>/dev/null; then
21091 as_ln_s='ln -s'
21092 # ... but there are two gotchas:
21093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21095 # In both cases, we have to default to `cp -pR'.
21096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21097 as_ln_s='cp -pR'
21098 elif ln conf$$.file conf$$ 2>/dev/null; then
21099 as_ln_s=ln
21100 else
21101 as_ln_s='cp -pR'
21102 fi
21103 else
21104 as_ln_s='cp -pR'
21105 fi
21106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21107 rmdir conf$$.dir 2>/dev/null
21108
21109
21110 # as_fn_mkdir_p
21111 # -------------
21112 # Create "$as_dir" as a directory, including parents if necessary.
21113 as_fn_mkdir_p ()
21114 {
21115
21116 case $as_dir in #(
21117 -*) as_dir=./$as_dir;;
21118 esac
21119 test -d "$as_dir" || eval $as_mkdir_p || {
21120 as_dirs=
21121 while :; do
21122 case $as_dir in #(
21123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21124 *) as_qdir=$as_dir;;
21125 esac
21126 as_dirs="'$as_qdir' $as_dirs"
21127 as_dir=`$as_dirname -- "$as_dir" ||
21128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21129 X"$as_dir" : 'X\(//\)[^/]' \| \
21130 X"$as_dir" : 'X\(//\)$' \| \
21131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21132 $as_echo X"$as_dir" |
21133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21134 s//\1/
21135 q
21136 }
21137 /^X\(\/\/\)[^/].*/{
21138 s//\1/
21139 q
21140 }
21141 /^X\(\/\/\)$/{
21142 s//\1/
21143 q
21144 }
21145 /^X\(\/\).*/{
21146 s//\1/
21147 q
21148 }
21149 s/.*/./; q'`
21150 test -d "$as_dir" && break
21151 done
21152 test -z "$as_dirs" || eval "mkdir $as_dirs"
21153 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21154
21155
21156 } # as_fn_mkdir_p
21157 if mkdir -p . 2>/dev/null; then
21158 as_mkdir_p='mkdir -p "$as_dir"'
21159 else
21160 test -d ./-p && rmdir ./-p
21161 as_mkdir_p=false
21162 fi
21163
21164
21165 # as_fn_executable_p FILE
21166 # -----------------------
21167 # Test if FILE is an executable regular file.
21168 as_fn_executable_p ()
21169 {
21170 test -f "$1" && test -x "$1"
21171 } # as_fn_executable_p
21172 as_test_x='test -x'
21173 as_executable_p=as_fn_executable_p
21174
21175 # Sed expression to map a string onto a valid CPP name.
21176 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21177
21178 # Sed expression to map a string onto a valid variable name.
21179 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21180
21181
21182 exec 6>&1
21183 ## ----------------------------------- ##
21184 ## Main body of $CONFIG_STATUS script. ##
21185 ## ----------------------------------- ##
21186 _ASEOF
21187 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21188
21189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21190 # Save the log message, to keep $0 and so on meaningful, and to
21191 # report actual input values of CONFIG_FILES etc. instead of their
21192 # values after options handling.
21193 ac_log="
21194 This file was extended by Cycript $as_me 0.9, which was
21195 generated by GNU Autoconf 2.69. Invocation command line was
21196
21197 CONFIG_FILES = $CONFIG_FILES
21198 CONFIG_HEADERS = $CONFIG_HEADERS
21199 CONFIG_LINKS = $CONFIG_LINKS
21200 CONFIG_COMMANDS = $CONFIG_COMMANDS
21201 $ $0 $@
21202
21203 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21204 "
21205
21206 _ACEOF
21207
21208 case $ac_config_files in *"
21209 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21210 esac
21211
21212 case $ac_config_headers in *"
21213 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21214 esac
21215
21216
21217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21218 # Files that config.status was made for.
21219 config_files="$ac_config_files"
21220 config_headers="$ac_config_headers"
21221 config_commands="$ac_config_commands"
21222
21223 _ACEOF
21224
21225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21226 ac_cs_usage="\
21227 \`$as_me' instantiates files and other configuration actions
21228 from templates according to the current configuration. Unless the files
21229 and actions are specified as TAGs, all are instantiated by default.
21230
21231 Usage: $0 [OPTION]... [TAG]...
21232
21233 -h, --help print this help, then exit
21234 -V, --version print version number and configuration settings, then exit
21235 --config print configuration, then exit
21236 -q, --quiet, --silent
21237 do not print progress messages
21238 -d, --debug don't remove temporary files
21239 --recheck update $as_me by reconfiguring in the same conditions
21240 --file=FILE[:TEMPLATE]
21241 instantiate the configuration file FILE
21242 --header=FILE[:TEMPLATE]
21243 instantiate the configuration header FILE
21244
21245 Configuration files:
21246 $config_files
21247
21248 Configuration headers:
21249 $config_headers
21250
21251 Configuration commands:
21252 $config_commands
21253
21254 Report bugs to <saurik@saurik.com>.
21255 Cycript home page: <http://www.cycript.org/>."
21256
21257 _ACEOF
21258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21259 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21260 ac_cs_version="\\
21261 Cycript config.status 0.9
21262 configured by $0, generated by GNU Autoconf 2.69,
21263 with options \\"\$ac_cs_config\\"
21264
21265 Copyright (C) 2012 Free Software Foundation, Inc.
21266 This config.status script is free software; the Free Software Foundation
21267 gives unlimited permission to copy, distribute and modify it."
21268
21269 ac_pwd='$ac_pwd'
21270 srcdir='$srcdir'
21271 INSTALL='$INSTALL'
21272 MKDIR_P='$MKDIR_P'
21273 AWK='$AWK'
21274 test -n "\$AWK" || AWK=awk
21275 _ACEOF
21276
21277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21278 # The default lists apply if the user does not specify any file.
21279 ac_need_defaults=:
21280 while test $# != 0
21281 do
21282 case $1 in
21283 --*=?*)
21284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21286 ac_shift=:
21287 ;;
21288 --*=)
21289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21290 ac_optarg=
21291 ac_shift=:
21292 ;;
21293 *)
21294 ac_option=$1
21295 ac_optarg=$2
21296 ac_shift=shift
21297 ;;
21298 esac
21299
21300 case $ac_option in
21301 # Handling of the options.
21302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21303 ac_cs_recheck=: ;;
21304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21305 $as_echo "$ac_cs_version"; exit ;;
21306 --config | --confi | --conf | --con | --co | --c )
21307 $as_echo "$ac_cs_config"; exit ;;
21308 --debug | --debu | --deb | --de | --d | -d )
21309 debug=: ;;
21310 --file | --fil | --fi | --f )
21311 $ac_shift
21312 case $ac_optarg in
21313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21314 '') as_fn_error $? "missing file argument" ;;
21315 esac
21316 as_fn_append CONFIG_FILES " '$ac_optarg'"
21317 ac_need_defaults=false;;
21318 --header | --heade | --head | --hea )
21319 $ac_shift
21320 case $ac_optarg in
21321 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21322 esac
21323 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21324 ac_need_defaults=false;;
21325 --he | --h)
21326 # Conflict between --help and --header
21327 as_fn_error $? "ambiguous option: \`$1'
21328 Try \`$0 --help' for more information.";;
21329 --help | --hel | -h )
21330 $as_echo "$ac_cs_usage"; exit ;;
21331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21333 ac_cs_silent=: ;;
21334
21335 # This is an error.
21336 -*) as_fn_error $? "unrecognized option: \`$1'
21337 Try \`$0 --help' for more information." ;;
21338
21339 *) as_fn_append ac_config_targets " $1"
21340 ac_need_defaults=false ;;
21341
21342 esac
21343 shift
21344 done
21345
21346 ac_configure_extra_args=
21347
21348 if $ac_cs_silent; then
21349 exec 6>/dev/null
21350 ac_configure_extra_args="$ac_configure_extra_args --silent"
21351 fi
21352
21353 _ACEOF
21354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21355 if \$ac_cs_recheck; then
21356 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21357 shift
21358 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21359 CONFIG_SHELL='$SHELL'
21360 export CONFIG_SHELL
21361 exec "\$@"
21362 fi
21363
21364 _ACEOF
21365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21366 exec 5>>config.log
21367 {
21368 echo
21369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21370 ## Running $as_me. ##
21371 _ASBOX
21372 $as_echo "$ac_log"
21373 } >&5
21374
21375 _ACEOF
21376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21377 #
21378 # INIT-COMMANDS
21379 #
21380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21381
21382
21383 # The HP-UX ksh and POSIX shell print the target directory to stdout
21384 # if CDPATH is set.
21385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21386
21387 sed_quote_subst='$sed_quote_subst'
21388 double_quote_subst='$double_quote_subst'
21389 delay_variable_subst='$delay_variable_subst'
21390 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21391 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21392 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21393 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21394 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21395 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21396 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21397 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21398 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21423 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21445 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21446 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"`'
21447 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21448 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21489 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21490 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21491 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21492 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21493 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21494 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21513 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21514 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21515 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21516 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21517 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21518 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21519 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21520 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21521 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21522 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21523 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21524 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21525 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21526 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21527 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21528 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21529 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21530 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21531 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21532 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21533 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21534 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21535 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21536 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21537 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21538 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21539 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21540 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21541 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21542 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21543 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21544 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21545 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21546 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21547 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21548 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21549 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21550 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21551 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21552 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21553 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21554 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21555 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21556 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21557 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21558 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21559 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21560 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21561 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21562 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21563 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21564 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21565 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21566 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21567 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21568 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21569 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21570 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21571 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21572 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21573 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21574
21575 LTCC='$LTCC'
21576 LTCFLAGS='$LTCFLAGS'
21577 compiler='$compiler_DEFAULT'
21578
21579 # A function that is used when there is no print builtin or printf.
21580 func_fallback_echo ()
21581 {
21582 eval 'cat <<_LTECHO_EOF
21583 \$1
21584 _LTECHO_EOF'
21585 }
21586
21587 # Quote evaled strings.
21588 for var in SHELL \
21589 ECHO \
21590 PATH_SEPARATOR \
21591 SED \
21592 GREP \
21593 EGREP \
21594 FGREP \
21595 LD \
21596 NM \
21597 LN_S \
21598 lt_SP2NL \
21599 lt_NL2SP \
21600 reload_flag \
21601 OBJDUMP \
21602 deplibs_check_method \
21603 file_magic_cmd \
21604 file_magic_glob \
21605 want_nocaseglob \
21606 DLLTOOL \
21607 sharedlib_from_linklib_cmd \
21608 AR \
21609 AR_FLAGS \
21610 archiver_list_spec \
21611 STRIP \
21612 RANLIB \
21613 CC \
21614 CFLAGS \
21615 compiler \
21616 lt_cv_sys_global_symbol_pipe \
21617 lt_cv_sys_global_symbol_to_cdecl \
21618 lt_cv_sys_global_symbol_to_c_name_address \
21619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21620 nm_file_list_spec \
21621 lt_prog_compiler_no_builtin_flag \
21622 lt_prog_compiler_pic \
21623 lt_prog_compiler_wl \
21624 lt_prog_compiler_static \
21625 lt_cv_prog_compiler_c_o \
21626 need_locks \
21627 MANIFEST_TOOL \
21628 DSYMUTIL \
21629 NMEDIT \
21630 LIPO \
21631 OTOOL \
21632 OTOOL64 \
21633 shrext_cmds \
21634 export_dynamic_flag_spec \
21635 whole_archive_flag_spec \
21636 compiler_needs_object \
21637 with_gnu_ld \
21638 allow_undefined_flag \
21639 no_undefined_flag \
21640 hardcode_libdir_flag_spec \
21641 hardcode_libdir_separator \
21642 exclude_expsyms \
21643 include_expsyms \
21644 file_list_spec \
21645 variables_saved_for_relink \
21646 libname_spec \
21647 library_names_spec \
21648 soname_spec \
21649 install_override_mode \
21650 finish_eval \
21651 old_striplib \
21652 striplib \
21653 compiler_lib_search_dirs \
21654 predep_objects \
21655 postdep_objects \
21656 predeps \
21657 postdeps \
21658 compiler_lib_search_path \
21659 LD_CXX \
21660 reload_flag_CXX \
21661 compiler_CXX \
21662 lt_prog_compiler_no_builtin_flag_CXX \
21663 lt_prog_compiler_pic_CXX \
21664 lt_prog_compiler_wl_CXX \
21665 lt_prog_compiler_static_CXX \
21666 lt_cv_prog_compiler_c_o_CXX \
21667 export_dynamic_flag_spec_CXX \
21668 whole_archive_flag_spec_CXX \
21669 compiler_needs_object_CXX \
21670 with_gnu_ld_CXX \
21671 allow_undefined_flag_CXX \
21672 no_undefined_flag_CXX \
21673 hardcode_libdir_flag_spec_CXX \
21674 hardcode_libdir_separator_CXX \
21675 exclude_expsyms_CXX \
21676 include_expsyms_CXX \
21677 file_list_spec_CXX \
21678 compiler_lib_search_dirs_CXX \
21679 predep_objects_CXX \
21680 postdep_objects_CXX \
21681 predeps_CXX \
21682 postdeps_CXX \
21683 compiler_lib_search_path_CXX; do
21684 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21685 *[\\\\\\\`\\"\\\$]*)
21686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21687 ;;
21688 *)
21689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21690 ;;
21691 esac
21692 done
21693
21694 # Double-quote double-evaled strings.
21695 for var in reload_cmds \
21696 old_postinstall_cmds \
21697 old_postuninstall_cmds \
21698 old_archive_cmds \
21699 extract_expsyms_cmds \
21700 old_archive_from_new_cmds \
21701 old_archive_from_expsyms_cmds \
21702 archive_cmds \
21703 archive_expsym_cmds \
21704 module_cmds \
21705 module_expsym_cmds \
21706 export_symbols_cmds \
21707 prelink_cmds \
21708 postlink_cmds \
21709 postinstall_cmds \
21710 postuninstall_cmds \
21711 finish_cmds \
21712 sys_lib_search_path_spec \
21713 sys_lib_dlsearch_path_spec \
21714 reload_cmds_CXX \
21715 old_archive_cmds_CXX \
21716 old_archive_from_new_cmds_CXX \
21717 old_archive_from_expsyms_cmds_CXX \
21718 archive_cmds_CXX \
21719 archive_expsym_cmds_CXX \
21720 module_cmds_CXX \
21721 module_expsym_cmds_CXX \
21722 export_symbols_cmds_CXX \
21723 prelink_cmds_CXX \
21724 postlink_cmds_CXX; do
21725 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21726 *[\\\\\\\`\\"\\\$]*)
21727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21728 ;;
21729 *)
21730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21731 ;;
21732 esac
21733 done
21734
21735 ac_aux_dir='$ac_aux_dir'
21736 xsi_shell='$xsi_shell'
21737 lt_shell_append='$lt_shell_append'
21738
21739 # See if we are running on zsh, and set the options which allow our
21740 # commands through without removal of \ escapes INIT.
21741 if test -n "\${ZSH_VERSION+set}" ; then
21742 setopt NO_GLOB_SUBST
21743 fi
21744
21745
21746 PACKAGE='$PACKAGE'
21747 VERSION='$VERSION'
21748 TIMESTAMP='$TIMESTAMP'
21749 RM='$RM'
21750 ofile='$ofile'
21751
21752
21753
21754
21755
21756
21757 _ACEOF
21758
21759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21760
21761 # Handling of arguments.
21762 for ac_config_target in $ac_config_targets
21763 do
21764 case $ac_config_target in
21765 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21767 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21769
21770 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21771 esac
21772 done
21773
21774
21775 # If the user did not use the arguments to specify the items to instantiate,
21776 # then the envvar interface is used. Set only those that are not.
21777 # We use the long form for the default assignment because of an extremely
21778 # bizarre bug on SunOS 4.1.3.
21779 if $ac_need_defaults; then
21780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21783 fi
21784
21785 # Have a temporary directory for convenience. Make it in the build tree
21786 # simply because there is no reason against having it here, and in addition,
21787 # creating and moving files from /tmp can sometimes cause problems.
21788 # Hook for its removal unless debugging.
21789 # Note that there is a small window in which the directory will not be cleaned:
21790 # after its creation but before its name has been assigned to `$tmp'.
21791 $debug ||
21792 {
21793 tmp= ac_tmp=
21794 trap 'exit_status=$?
21795 : "${ac_tmp:=$tmp}"
21796 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21797 ' 0
21798 trap 'as_fn_exit 1' 1 2 13 15
21799 }
21800 # Create a (secure) tmp directory for tmp files.
21801
21802 {
21803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21804 test -d "$tmp"
21805 } ||
21806 {
21807 tmp=./conf$$-$RANDOM
21808 (umask 077 && mkdir "$tmp")
21809 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21810 ac_tmp=$tmp
21811
21812 # Set up the scripts for CONFIG_FILES section.
21813 # No need to generate them if there are no CONFIG_FILES.
21814 # This happens for instance with `./config.status config.h'.
21815 if test -n "$CONFIG_FILES"; then
21816
21817
21818 ac_cr=`echo X | tr X '\015'`
21819 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21820 # But we know of no other shell where ac_cr would be empty at this
21821 # point, so we can use a bashism as a fallback.
21822 if test "x$ac_cr" = x; then
21823 eval ac_cr=\$\'\\r\'
21824 fi
21825 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21826 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21827 ac_cs_awk_cr='\\r'
21828 else
21829 ac_cs_awk_cr=$ac_cr
21830 fi
21831
21832 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21833 _ACEOF
21834
21835
21836 {
21837 echo "cat >conf$$subs.awk <<_ACEOF" &&
21838 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21839 echo "_ACEOF"
21840 } >conf$$subs.sh ||
21841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21842 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21843 ac_delim='%!_!# '
21844 for ac_last_try in false false false false false :; do
21845 . ./conf$$subs.sh ||
21846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21847
21848 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21849 if test $ac_delim_n = $ac_delim_num; then
21850 break
21851 elif $ac_last_try; then
21852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21853 else
21854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21855 fi
21856 done
21857 rm -f conf$$subs.sh
21858
21859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21860 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21861 _ACEOF
21862 sed -n '
21863 h
21864 s/^/S["/; s/!.*/"]=/
21865 p
21866 g
21867 s/^[^!]*!//
21868 :repl
21869 t repl
21870 s/'"$ac_delim"'$//
21871 t delim
21872 :nl
21873 h
21874 s/\(.\{148\}\)..*/\1/
21875 t more1
21876 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21877 p
21878 n
21879 b repl
21880 :more1
21881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21882 p
21883 g
21884 s/.\{148\}//
21885 t nl
21886 :delim
21887 h
21888 s/\(.\{148\}\)..*/\1/
21889 t more2
21890 s/["\\]/\\&/g; s/^/"/; s/$/"/
21891 p
21892 b
21893 :more2
21894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21895 p
21896 g
21897 s/.\{148\}//
21898 t delim
21899 ' <conf$$subs.awk | sed '
21900 /^[^""]/{
21901 N
21902 s/\n//
21903 }
21904 ' >>$CONFIG_STATUS || ac_write_fail=1
21905 rm -f conf$$subs.awk
21906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21907 _ACAWK
21908 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21909 for (key in S) S_is_set[key] = 1
21910 FS = "\a"
21911
21912 }
21913 {
21914 line = $ 0
21915 nfields = split(line, field, "@")
21916 substed = 0
21917 len = length(field[1])
21918 for (i = 2; i < nfields; i++) {
21919 key = field[i]
21920 keylen = length(key)
21921 if (S_is_set[key]) {
21922 value = S[key]
21923 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21924 len += length(value) + length(field[++i])
21925 substed = 1
21926 } else
21927 len += 1 + keylen
21928 }
21929
21930 print line
21931 }
21932
21933 _ACAWK
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21936 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21938 else
21939 cat
21940 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21941 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21942 _ACEOF
21943
21944 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21945 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21946 # trailing colons and then remove the whole line if VPATH becomes empty
21947 # (actually we leave an empty line to preserve line numbers).
21948 if test "x$srcdir" = x.; then
21949 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21950 h
21951 s///
21952 s/^/:/
21953 s/[ ]*$/:/
21954 s/:\$(srcdir):/:/g
21955 s/:\${srcdir}:/:/g
21956 s/:@srcdir@:/:/g
21957 s/^:*//
21958 s/:*$//
21959 x
21960 s/\(=[ ]*\).*/\1/
21961 G
21962 s/\n//
21963 s/^[^=]*=[ ]*$//
21964 }'
21965 fi
21966
21967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21968 fi # test -n "$CONFIG_FILES"
21969
21970 # Set up the scripts for CONFIG_HEADERS section.
21971 # No need to generate them if there are no CONFIG_HEADERS.
21972 # This happens for instance with `./config.status Makefile'.
21973 if test -n "$CONFIG_HEADERS"; then
21974 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21975 BEGIN {
21976 _ACEOF
21977
21978 # Transform confdefs.h into an awk script `defines.awk', embedded as
21979 # here-document in config.status, that substitutes the proper values into
21980 # config.h.in to produce config.h.
21981
21982 # Create a delimiter string that does not exist in confdefs.h, to ease
21983 # handling of long lines.
21984 ac_delim='%!_!# '
21985 for ac_last_try in false false :; do
21986 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21987 if test -z "$ac_tt"; then
21988 break
21989 elif $ac_last_try; then
21990 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21991 else
21992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21993 fi
21994 done
21995
21996 # For the awk script, D is an array of macro values keyed by name,
21997 # likewise P contains macro parameters if any. Preserve backslash
21998 # newline sequences.
21999
22000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22001 sed -n '
22002 s/.\{148\}/&'"$ac_delim"'/g
22003 t rset
22004 :rset
22005 s/^[ ]*#[ ]*define[ ][ ]*/ /
22006 t def
22007 d
22008 :def
22009 s/\\$//
22010 t bsnl
22011 s/["\\]/\\&/g
22012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22013 D["\1"]=" \3"/p
22014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22015 d
22016 :bsnl
22017 s/["\\]/\\&/g
22018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22019 D["\1"]=" \3\\\\\\n"\\/p
22020 t cont
22021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22022 t cont
22023 d
22024 :cont
22025 n
22026 s/.\{148\}/&'"$ac_delim"'/g
22027 t clear
22028 :clear
22029 s/\\$//
22030 t bsnlc
22031 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22032 d
22033 :bsnlc
22034 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22035 b cont
22036 ' <confdefs.h | sed '
22037 s/'"$ac_delim"'/"\\\
22038 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22039
22040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22041 for (key in D) D_is_set[key] = 1
22042 FS = "\a"
22043 }
22044 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22045 line = \$ 0
22046 split(line, arg, " ")
22047 if (arg[1] == "#") {
22048 defundef = arg[2]
22049 mac1 = arg[3]
22050 } else {
22051 defundef = substr(arg[1], 2)
22052 mac1 = arg[2]
22053 }
22054 split(mac1, mac2, "(") #)
22055 macro = mac2[1]
22056 prefix = substr(line, 1, index(line, defundef) - 1)
22057 if (D_is_set[macro]) {
22058 # Preserve the white space surrounding the "#".
22059 print prefix "define", macro P[macro] D[macro]
22060 next
22061 } else {
22062 # Replace #undef with comments. This is necessary, for example,
22063 # in the case of _POSIX_SOURCE, which is predefined and required
22064 # on some systems where configure will not decide to define it.
22065 if (defundef == "undef") {
22066 print "/*", prefix defundef, macro, "*/"
22067 next
22068 }
22069 }
22070 }
22071 { print }
22072 _ACAWK
22073 _ACEOF
22074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22075 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22076 fi # test -n "$CONFIG_HEADERS"
22077
22078
22079 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22080 shift
22081 for ac_tag
22082 do
22083 case $ac_tag in
22084 :[FHLC]) ac_mode=$ac_tag; continue;;
22085 esac
22086 case $ac_mode$ac_tag in
22087 :[FHL]*:*);;
22088 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22089 :[FH]-) ac_tag=-:-;;
22090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22091 esac
22092 ac_save_IFS=$IFS
22093 IFS=:
22094 set x $ac_tag
22095 IFS=$ac_save_IFS
22096 shift
22097 ac_file=$1
22098 shift
22099
22100 case $ac_mode in
22101 :L) ac_source=$1;;
22102 :[FH])
22103 ac_file_inputs=
22104 for ac_f
22105 do
22106 case $ac_f in
22107 -) ac_f="$ac_tmp/stdin";;
22108 *) # Look for the file first in the build tree, then in the source tree
22109 # (if the path is not absolute). The absolute path cannot be DOS-style,
22110 # because $ac_f cannot contain `:'.
22111 test -f "$ac_f" ||
22112 case $ac_f in
22113 [\\/$]*) false;;
22114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22115 esac ||
22116 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22117 esac
22118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22119 as_fn_append ac_file_inputs " '$ac_f'"
22120 done
22121
22122 # Let's still pretend it is `configure' which instantiates (i.e., don't
22123 # use $as_me), people would be surprised to read:
22124 # /* config.h. Generated by config.status. */
22125 configure_input='Generated from '`
22126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22127 `' by configure.'
22128 if test x"$ac_file" != x-; then
22129 configure_input="$ac_file. $configure_input"
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22131 $as_echo "$as_me: creating $ac_file" >&6;}
22132 fi
22133 # Neutralize special characters interpreted by sed in replacement strings.
22134 case $configure_input in #(
22135 *\&* | *\|* | *\\* )
22136 ac_sed_conf_input=`$as_echo "$configure_input" |
22137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22138 *) ac_sed_conf_input=$configure_input;;
22139 esac
22140
22141 case $ac_tag in
22142 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22144 esac
22145 ;;
22146 esac
22147
22148 ac_dir=`$as_dirname -- "$ac_file" ||
22149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150 X"$ac_file" : 'X\(//\)[^/]' \| \
22151 X"$ac_file" : 'X\(//\)$' \| \
22152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22153 $as_echo X"$ac_file" |
22154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22155 s//\1/
22156 q
22157 }
22158 /^X\(\/\/\)[^/].*/{
22159 s//\1/
22160 q
22161 }
22162 /^X\(\/\/\)$/{
22163 s//\1/
22164 q
22165 }
22166 /^X\(\/\).*/{
22167 s//\1/
22168 q
22169 }
22170 s/.*/./; q'`
22171 as_dir="$ac_dir"; as_fn_mkdir_p
22172 ac_builddir=.
22173
22174 case "$ac_dir" in
22175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22176 *)
22177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22178 # A ".." for each directory in $ac_dir_suffix.
22179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22180 case $ac_top_builddir_sub in
22181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22183 esac ;;
22184 esac
22185 ac_abs_top_builddir=$ac_pwd
22186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22187 # for backward compatibility:
22188 ac_top_builddir=$ac_top_build_prefix
22189
22190 case $srcdir in
22191 .) # We are building in place.
22192 ac_srcdir=.
22193 ac_top_srcdir=$ac_top_builddir_sub
22194 ac_abs_top_srcdir=$ac_pwd ;;
22195 [\\/]* | ?:[\\/]* ) # Absolute name.
22196 ac_srcdir=$srcdir$ac_dir_suffix;
22197 ac_top_srcdir=$srcdir
22198 ac_abs_top_srcdir=$srcdir ;;
22199 *) # Relative name.
22200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22201 ac_top_srcdir=$ac_top_build_prefix$srcdir
22202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22203 esac
22204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22205
22206
22207 case $ac_mode in
22208 :F)
22209 #
22210 # CONFIG_FILE
22211 #
22212
22213 case $INSTALL in
22214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22215 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22216 esac
22217 ac_MKDIR_P=$MKDIR_P
22218 case $MKDIR_P in
22219 [\\/$]* | ?:[\\/]* ) ;;
22220 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22221 esac
22222 _ACEOF
22223
22224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22225 # If the template does not know about datarootdir, expand it.
22226 # FIXME: This hack should be removed a few years after 2.60.
22227 ac_datarootdir_hack=; ac_datarootdir_seen=
22228 ac_sed_dataroot='
22229 /datarootdir/ {
22230 p
22231 q
22232 }
22233 /@datadir@/p
22234 /@docdir@/p
22235 /@infodir@/p
22236 /@localedir@/p
22237 /@mandir@/p'
22238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22239 *datarootdir*) ac_datarootdir_seen=yes;;
22240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22243 _ACEOF
22244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22245 ac_datarootdir_hack='
22246 s&@datadir@&$datadir&g
22247 s&@docdir@&$docdir&g
22248 s&@infodir@&$infodir&g
22249 s&@localedir@&$localedir&g
22250 s&@mandir@&$mandir&g
22251 s&\\\${datarootdir}&$datarootdir&g' ;;
22252 esac
22253 _ACEOF
22254
22255 # Neutralize VPATH when `$srcdir' = `.'.
22256 # Shell code in configure.ac might set extrasub.
22257 # FIXME: do we really want to maintain this feature?
22258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22259 ac_sed_extra="$ac_vpsub
22260 $extrasub
22261 _ACEOF
22262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22263 :t
22264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22265 s|@configure_input@|$ac_sed_conf_input|;t t
22266 s&@top_builddir@&$ac_top_builddir_sub&;t t
22267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22268 s&@srcdir@&$ac_srcdir&;t t
22269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22270 s&@top_srcdir@&$ac_top_srcdir&;t t
22271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22272 s&@builddir@&$ac_builddir&;t t
22273 s&@abs_builddir@&$ac_abs_builddir&;t t
22274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22275 s&@INSTALL@&$ac_INSTALL&;t t
22276 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22277 $ac_datarootdir_hack
22278 "
22279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22280 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22281
22282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22283 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22285 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22287 which seems to be undefined. Please make sure it is defined" >&5
22288 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22289 which seems to be undefined. Please make sure it is defined" >&2;}
22290
22291 rm -f "$ac_tmp/stdin"
22292 case $ac_file in
22293 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22294 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22295 esac \
22296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22297 ;;
22298 :H)
22299 #
22300 # CONFIG_HEADER
22301 #
22302 if test x"$ac_file" != x-; then
22303 {
22304 $as_echo "/* $configure_input */" \
22305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22306 } >"$ac_tmp/config.h" \
22307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22308 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22310 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22311 else
22312 rm -f "$ac_file"
22313 mv "$ac_tmp/config.h" "$ac_file" \
22314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22315 fi
22316 else
22317 $as_echo "/* $configure_input */" \
22318 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22319 || as_fn_error $? "could not create -" "$LINENO" 5
22320 fi
22321 # Compute "$ac_file"'s index in $config_headers.
22322 _am_arg="$ac_file"
22323 _am_stamp_count=1
22324 for _am_header in $config_headers :; do
22325 case $_am_header in
22326 $_am_arg | $_am_arg:* )
22327 break ;;
22328 * )
22329 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22330 esac
22331 done
22332 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22333 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22334 X"$_am_arg" : 'X\(//\)[^/]' \| \
22335 X"$_am_arg" : 'X\(//\)$' \| \
22336 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22337 $as_echo X"$_am_arg" |
22338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22339 s//\1/
22340 q
22341 }
22342 /^X\(\/\/\)[^/].*/{
22343 s//\1/
22344 q
22345 }
22346 /^X\(\/\/\)$/{
22347 s//\1/
22348 q
22349 }
22350 /^X\(\/\).*/{
22351 s//\1/
22352 q
22353 }
22354 s/.*/./; q'`/stamp-h$_am_stamp_count
22355 ;;
22356
22357 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22358 $as_echo "$as_me: executing $ac_file commands" >&6;}
22359 ;;
22360 esac
22361
22362
22363 case $ac_file$ac_mode in
22364 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22365 # Older Autoconf quotes --file arguments for eval, but not when files
22366 # are listed without --file. Let's play safe and only enable the eval
22367 # if we detect the quoting.
22368 case $CONFIG_FILES in
22369 *\'*) eval set x "$CONFIG_FILES" ;;
22370 *) set x $CONFIG_FILES ;;
22371 esac
22372 shift
22373 for mf
22374 do
22375 # Strip MF so we end up with the name of the file.
22376 mf=`echo "$mf" | sed -e 's/:.*$//'`
22377 # Check whether this is an Automake generated Makefile or not.
22378 # We used to match only the files named 'Makefile.in', but
22379 # some people rename them; so instead we look at the file content.
22380 # Grep'ing the first line is not enough: some people post-process
22381 # each Makefile.in and add a new line on top of each file to say so.
22382 # Grep'ing the whole file is not good either: AIX grep has a line
22383 # limit of 2048, but all sed's we know have understand at least 4000.
22384 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22385 dirpart=`$as_dirname -- "$mf" ||
22386 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22387 X"$mf" : 'X\(//\)[^/]' \| \
22388 X"$mf" : 'X\(//\)$' \| \
22389 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22390 $as_echo X"$mf" |
22391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22392 s//\1/
22393 q
22394 }
22395 /^X\(\/\/\)[^/].*/{
22396 s//\1/
22397 q
22398 }
22399 /^X\(\/\/\)$/{
22400 s//\1/
22401 q
22402 }
22403 /^X\(\/\).*/{
22404 s//\1/
22405 q
22406 }
22407 s/.*/./; q'`
22408 else
22409 continue
22410 fi
22411 # Extract the definition of DEPDIR, am__include, and am__quote
22412 # from the Makefile without running 'make'.
22413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22414 test -z "$DEPDIR" && continue
22415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22416 test -z "$am__include" && continue
22417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22418 # Find all dependency output files, they are included files with
22419 # $(DEPDIR) in their names. We invoke sed twice because it is the
22420 # simplest approach to changing $(DEPDIR) to its actual value in the
22421 # expansion.
22422 for file in `sed -n "
22423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22425 # Make sure the directory exists.
22426 test -f "$dirpart/$file" && continue
22427 fdir=`$as_dirname -- "$file" ||
22428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429 X"$file" : 'X\(//\)[^/]' \| \
22430 X"$file" : 'X\(//\)$' \| \
22431 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22432 $as_echo X"$file" |
22433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\(\/\/\)[^/].*/{
22438 s//\1/
22439 q
22440 }
22441 /^X\(\/\/\)$/{
22442 s//\1/
22443 q
22444 }
22445 /^X\(\/\).*/{
22446 s//\1/
22447 q
22448 }
22449 s/.*/./; q'`
22450 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22451 # echo "creating $dirpart/$file"
22452 echo '# dummy' > "$dirpart/$file"
22453 done
22454 done
22455 }
22456 ;;
22457 "libtool":C)
22458
22459 # See if we are running on zsh, and set the options which allow our
22460 # commands through without removal of \ escapes.
22461 if test -n "${ZSH_VERSION+set}" ; then
22462 setopt NO_GLOB_SUBST
22463 fi
22464
22465 cfgfile="${ofile}T"
22466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22467 $RM "$cfgfile"
22468
22469 cat <<_LT_EOF >> "$cfgfile"
22470 #! $SHELL
22471
22472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22476 #
22477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22478 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22479 # Foundation, Inc.
22480 # Written by Gordon Matzigkeit, 1996
22481 #
22482 # This file is part of GNU Libtool.
22483 #
22484 # GNU Libtool is free software; you can redistribute it and/or
22485 # modify it under the terms of the GNU General Public License as
22486 # published by the Free Software Foundation; either version 2 of
22487 # the License, or (at your option) any later version.
22488 #
22489 # As a special exception to the GNU General Public License,
22490 # if you distribute this file as part of a program or library that
22491 # is built using GNU Libtool, you may include this file under the
22492 # same distribution terms that you use for the rest of that program.
22493 #
22494 # GNU Libtool is distributed in the hope that it will be useful,
22495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22497 # GNU General Public License for more details.
22498 #
22499 # You should have received a copy of the GNU General Public License
22500 # along with GNU Libtool; see the file COPYING. If not, a copy
22501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22502 # obtained by writing to the Free Software Foundation, Inc.,
22503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22504
22505
22506 # The names of the tagged configurations supported by this script.
22507 available_tags="CXX "
22508
22509 # ### BEGIN LIBTOOL CONFIG
22510
22511 # Which release of libtool.m4 was used?
22512 macro_version=$macro_version
22513 macro_revision=$macro_revision
22514
22515 # Whether or not to build static libraries.
22516 build_old_libs=$enable_static
22517
22518 # Whether or not to build shared libraries.
22519 build_libtool_libs=$enable_shared
22520
22521 # What type of objects to build.
22522 pic_mode=$pic_mode
22523
22524 # Whether or not to optimize for fast installation.
22525 fast_install=$enable_fast_install
22526
22527 # Shell to use when invoking shell scripts.
22528 SHELL=$lt_SHELL
22529
22530 # An echo program that protects backslashes.
22531 ECHO=$lt_ECHO
22532
22533 # The PATH separator for the build system.
22534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22535
22536 # The host system.
22537 host_alias=$host_alias
22538 host=$host
22539 host_os=$host_os
22540
22541 # The build system.
22542 build_alias=$build_alias
22543 build=$build
22544 build_os=$build_os
22545
22546 # A sed program that does not truncate output.
22547 SED=$lt_SED
22548
22549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22550 Xsed="\$SED -e 1s/^X//"
22551
22552 # A grep program that handles long lines.
22553 GREP=$lt_GREP
22554
22555 # An ERE matcher.
22556 EGREP=$lt_EGREP
22557
22558 # A literal string matcher.
22559 FGREP=$lt_FGREP
22560
22561 # A BSD- or MS-compatible name lister.
22562 NM=$lt_NM
22563
22564 # Whether we need soft or hard links.
22565 LN_S=$lt_LN_S
22566
22567 # What is the maximum length of a command?
22568 max_cmd_len=$max_cmd_len
22569
22570 # Object file suffix (normally "o").
22571 objext=$ac_objext
22572
22573 # Executable file suffix (normally "").
22574 exeext=$exeext
22575
22576 # whether the shell understands "unset".
22577 lt_unset=$lt_unset
22578
22579 # turn spaces into newlines.
22580 SP2NL=$lt_lt_SP2NL
22581
22582 # turn newlines into spaces.
22583 NL2SP=$lt_lt_NL2SP
22584
22585 # convert \$build file names to \$host format.
22586 to_host_file_cmd=$lt_cv_to_host_file_cmd
22587
22588 # convert \$build files to toolchain format.
22589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22590
22591 # An object symbol dumper.
22592 OBJDUMP=$lt_OBJDUMP
22593
22594 # Method to check whether dependent libraries are shared objects.
22595 deplibs_check_method=$lt_deplibs_check_method
22596
22597 # Command to use when deplibs_check_method = "file_magic".
22598 file_magic_cmd=$lt_file_magic_cmd
22599
22600 # How to find potential files when deplibs_check_method = "file_magic".
22601 file_magic_glob=$lt_file_magic_glob
22602
22603 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22604 want_nocaseglob=$lt_want_nocaseglob
22605
22606 # DLL creation program.
22607 DLLTOOL=$lt_DLLTOOL
22608
22609 # Command to associate shared and link libraries.
22610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22611
22612 # The archiver.
22613 AR=$lt_AR
22614
22615 # Flags to create an archive.
22616 AR_FLAGS=$lt_AR_FLAGS
22617
22618 # How to feed a file listing to the archiver.
22619 archiver_list_spec=$lt_archiver_list_spec
22620
22621 # A symbol stripping program.
22622 STRIP=$lt_STRIP
22623
22624 # Commands used to install an old-style archive.
22625 RANLIB=$lt_RANLIB
22626 old_postinstall_cmds=$lt_old_postinstall_cmds
22627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22628
22629 # Whether to use a lock for old archive extraction.
22630 lock_old_archive_extraction=$lock_old_archive_extraction
22631
22632 # A C compiler.
22633 LTCC=$lt_CC
22634
22635 # LTCC compiler flags.
22636 LTCFLAGS=$lt_CFLAGS
22637
22638 # Take the output of nm and produce a listing of raw symbols and C names.
22639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22640
22641 # Transform the output of nm in a proper C declaration.
22642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22643
22644 # Transform the output of nm in a C name address pair.
22645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22646
22647 # Transform the output of nm in a C name address pair when lib prefix is needed.
22648 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22649
22650 # Specify filename containing input files for \$NM.
22651 nm_file_list_spec=$lt_nm_file_list_spec
22652
22653 # The root where to search for dependent libraries,and in which our libraries should be installed.
22654 lt_sysroot=$lt_sysroot
22655
22656 # The name of the directory that contains temporary libtool files.
22657 objdir=$objdir
22658
22659 # Used to examine libraries when file_magic_cmd begins with "file".
22660 MAGIC_CMD=$MAGIC_CMD
22661
22662 # Must we lock files when doing compilation?
22663 need_locks=$lt_need_locks
22664
22665 # Manifest tool.
22666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22667
22668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22669 DSYMUTIL=$lt_DSYMUTIL
22670
22671 # Tool to change global to local symbols on Mac OS X.
22672 NMEDIT=$lt_NMEDIT
22673
22674 # Tool to manipulate fat objects and archives on Mac OS X.
22675 LIPO=$lt_LIPO
22676
22677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22678 OTOOL=$lt_OTOOL
22679
22680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22681 OTOOL64=$lt_OTOOL64
22682
22683 # Old archive suffix (normally "a").
22684 libext=$libext
22685
22686 # Shared library suffix (normally ".so").
22687 shrext_cmds=$lt_shrext_cmds
22688
22689 # The commands to extract the exported symbol list from a shared archive.
22690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22691
22692 # Variables whose values should be saved in libtool wrapper scripts and
22693 # restored at link time.
22694 variables_saved_for_relink=$lt_variables_saved_for_relink
22695
22696 # Do we need the "lib" prefix for modules?
22697 need_lib_prefix=$need_lib_prefix
22698
22699 # Do we need a version for libraries?
22700 need_version=$need_version
22701
22702 # Library versioning type.
22703 version_type=$version_type
22704
22705 # Shared library runtime path variable.
22706 runpath_var=$runpath_var
22707
22708 # Shared library path variable.
22709 shlibpath_var=$shlibpath_var
22710
22711 # Is shlibpath searched before the hard-coded library search path?
22712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22713
22714 # Format of library name prefix.
22715 libname_spec=$lt_libname_spec
22716
22717 # List of archive names. First name is the real one, the rest are links.
22718 # The last name is the one that the linker finds with -lNAME
22719 library_names_spec=$lt_library_names_spec
22720
22721 # The coded name of the library, if different from the real name.
22722 soname_spec=$lt_soname_spec
22723
22724 # Permission mode override for installation of shared libraries.
22725 install_override_mode=$lt_install_override_mode
22726
22727 # Command to use after installation of a shared archive.
22728 postinstall_cmds=$lt_postinstall_cmds
22729
22730 # Command to use after uninstallation of a shared archive.
22731 postuninstall_cmds=$lt_postuninstall_cmds
22732
22733 # Commands used to finish a libtool library installation in a directory.
22734 finish_cmds=$lt_finish_cmds
22735
22736 # As "finish_cmds", except a single script fragment to be evaled but
22737 # not shown.
22738 finish_eval=$lt_finish_eval
22739
22740 # Whether we should hardcode library paths into libraries.
22741 hardcode_into_libs=$hardcode_into_libs
22742
22743 # Compile-time system search path for libraries.
22744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22745
22746 # Run-time system search path for libraries.
22747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22748
22749 # Whether dlopen is supported.
22750 dlopen_support=$enable_dlopen
22751
22752 # Whether dlopen of programs is supported.
22753 dlopen_self=$enable_dlopen_self
22754
22755 # Whether dlopen of statically linked programs is supported.
22756 dlopen_self_static=$enable_dlopen_self_static
22757
22758 # Commands to strip libraries.
22759 old_striplib=$lt_old_striplib
22760 striplib=$lt_striplib
22761
22762
22763 # The linker used to build libraries.
22764 LD=$lt_LD
22765
22766 # How to create reloadable object files.
22767 reload_flag=$lt_reload_flag
22768 reload_cmds=$lt_reload_cmds
22769
22770 # Commands used to build an old-style archive.
22771 old_archive_cmds=$lt_old_archive_cmds
22772
22773 # A language specific compiler.
22774 CC=$lt_compiler
22775
22776 # Is the compiler the GNU compiler?
22777 with_gcc=$GCC
22778
22779 # Compiler flag to turn off builtin functions.
22780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22781
22782 # Additional compiler flags for building library objects.
22783 pic_flag=$lt_lt_prog_compiler_pic
22784
22785 # How to pass a linker flag through the compiler.
22786 wl=$lt_lt_prog_compiler_wl
22787
22788 # Compiler flag to prevent dynamic linking.
22789 link_static_flag=$lt_lt_prog_compiler_static
22790
22791 # Does compiler simultaneously support -c and -o options?
22792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22793
22794 # Whether or not to add -lc for building shared libraries.
22795 build_libtool_need_lc=$archive_cmds_need_lc
22796
22797 # Whether or not to disallow shared libs when runtime libs are static.
22798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22799
22800 # Compiler flag to allow reflexive dlopens.
22801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22802
22803 # Compiler flag to generate shared objects directly from archives.
22804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22805
22806 # Whether the compiler copes with passing no objects directly.
22807 compiler_needs_object=$lt_compiler_needs_object
22808
22809 # Create an old-style archive from a shared archive.
22810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22811
22812 # Create a temporary old-style archive to link instead of a shared archive.
22813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22814
22815 # Commands used to build a shared archive.
22816 archive_cmds=$lt_archive_cmds
22817 archive_expsym_cmds=$lt_archive_expsym_cmds
22818
22819 # Commands used to build a loadable module if different from building
22820 # a shared archive.
22821 module_cmds=$lt_module_cmds
22822 module_expsym_cmds=$lt_module_expsym_cmds
22823
22824 # Whether we are building with GNU ld or not.
22825 with_gnu_ld=$lt_with_gnu_ld
22826
22827 # Flag that allows shared libraries with undefined symbols to be built.
22828 allow_undefined_flag=$lt_allow_undefined_flag
22829
22830 # Flag that enforces no undefined symbols.
22831 no_undefined_flag=$lt_no_undefined_flag
22832
22833 # Flag to hardcode \$libdir into a binary during linking.
22834 # This must work even if \$libdir does not exist
22835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22836
22837 # Whether we need a single "-rpath" flag with a separated argument.
22838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22839
22840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22841 # DIR into the resulting binary.
22842 hardcode_direct=$hardcode_direct
22843
22844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22845 # DIR into the resulting binary and the resulting library dependency is
22846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22847 # library is relocated.
22848 hardcode_direct_absolute=$hardcode_direct_absolute
22849
22850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22851 # into the resulting binary.
22852 hardcode_minus_L=$hardcode_minus_L
22853
22854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22855 # into the resulting binary.
22856 hardcode_shlibpath_var=$hardcode_shlibpath_var
22857
22858 # Set to "yes" if building a shared library automatically hardcodes DIR
22859 # into the library and all subsequent libraries and executables linked
22860 # against it.
22861 hardcode_automatic=$hardcode_automatic
22862
22863 # Set to yes if linker adds runtime paths of dependent libraries
22864 # to runtime path list.
22865 inherit_rpath=$inherit_rpath
22866
22867 # Whether libtool must link a program against all its dependency libraries.
22868 link_all_deplibs=$link_all_deplibs
22869
22870 # Set to "yes" if exported symbols are required.
22871 always_export_symbols=$always_export_symbols
22872
22873 # The commands to list exported symbols.
22874 export_symbols_cmds=$lt_export_symbols_cmds
22875
22876 # Symbols that should not be listed in the preloaded symbols.
22877 exclude_expsyms=$lt_exclude_expsyms
22878
22879 # Symbols that must always be exported.
22880 include_expsyms=$lt_include_expsyms
22881
22882 # Commands necessary for linking programs (against libraries) with templates.
22883 prelink_cmds=$lt_prelink_cmds
22884
22885 # Commands necessary for finishing linking programs.
22886 postlink_cmds=$lt_postlink_cmds
22887
22888 # Specify filename containing input files.
22889 file_list_spec=$lt_file_list_spec
22890
22891 # How to hardcode a shared library path into an executable.
22892 hardcode_action=$hardcode_action
22893
22894 # The directories searched by this compiler when creating a shared library.
22895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22896
22897 # Dependencies to place before and after the objects being linked to
22898 # create a shared library.
22899 predep_objects=$lt_predep_objects
22900 postdep_objects=$lt_postdep_objects
22901 predeps=$lt_predeps
22902 postdeps=$lt_postdeps
22903
22904 # The library search path used internally by the compiler when linking
22905 # a shared library.
22906 compiler_lib_search_path=$lt_compiler_lib_search_path
22907
22908 # ### END LIBTOOL CONFIG
22909
22910 _LT_EOF
22911
22912 case $host_os in
22913 aix3*)
22914 cat <<\_LT_EOF >> "$cfgfile"
22915 # AIX sometimes has problems with the GCC collect2 program. For some
22916 # reason, if we set the COLLECT_NAMES environment variable, the problems
22917 # vanish in a puff of smoke.
22918 if test "X${COLLECT_NAMES+set}" != Xset; then
22919 COLLECT_NAMES=
22920 export COLLECT_NAMES
22921 fi
22922 _LT_EOF
22923 ;;
22924 esac
22925
22926
22927 ltmain="$ac_aux_dir/ltmain.sh"
22928
22929
22930 # We use sed instead of cat because bash on DJGPP gets confused if
22931 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22932 # text mode, it properly converts lines to CR/LF. This bash problem
22933 # is reportedly fixed, but why not run on old versions too?
22934 sed '$q' "$ltmain" >> "$cfgfile" \
22935 || (rm -f "$cfgfile"; exit 1)
22936
22937 if test x"$xsi_shell" = xyes; then
22938 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22939 func_dirname ()\
22940 {\
22941 \ case ${1} in\
22942 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22943 \ * ) func_dirname_result="${3}" ;;\
22944 \ esac\
22945 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22946 && mv -f "$cfgfile.tmp" "$cfgfile" \
22947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22948 test 0 -eq $? || _lt_function_replace_fail=:
22949
22950
22951 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22952 func_basename ()\
22953 {\
22954 \ func_basename_result="${1##*/}"\
22955 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22956 && mv -f "$cfgfile.tmp" "$cfgfile" \
22957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22958 test 0 -eq $? || _lt_function_replace_fail=:
22959
22960
22961 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22962 func_dirname_and_basename ()\
22963 {\
22964 \ case ${1} in\
22965 \ */*) func_dirname_result="${1%/*}${2}" ;;\
22966 \ * ) func_dirname_result="${3}" ;;\
22967 \ esac\
22968 \ func_basename_result="${1##*/}"\
22969 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22970 && mv -f "$cfgfile.tmp" "$cfgfile" \
22971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22972 test 0 -eq $? || _lt_function_replace_fail=:
22973
22974
22975 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22976 func_stripname ()\
22977 {\
22978 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22979 \ # positional parameters, so assign one to ordinary parameter first.\
22980 \ func_stripname_result=${3}\
22981 \ func_stripname_result=${func_stripname_result#"${1}"}\
22982 \ func_stripname_result=${func_stripname_result%"${2}"}\
22983 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22984 && mv -f "$cfgfile.tmp" "$cfgfile" \
22985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22986 test 0 -eq $? || _lt_function_replace_fail=:
22987
22988
22989 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22990 func_split_long_opt ()\
22991 {\
22992 \ func_split_long_opt_name=${1%%=*}\
22993 \ func_split_long_opt_arg=${1#*=}\
22994 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22995 && mv -f "$cfgfile.tmp" "$cfgfile" \
22996 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22997 test 0 -eq $? || _lt_function_replace_fail=:
22998
22999
23000 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23001 func_split_short_opt ()\
23002 {\
23003 \ func_split_short_opt_arg=${1#??}\
23004 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23005 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23006 && mv -f "$cfgfile.tmp" "$cfgfile" \
23007 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23008 test 0 -eq $? || _lt_function_replace_fail=:
23009
23010
23011 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23012 func_lo2o ()\
23013 {\
23014 \ case ${1} in\
23015 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23016 \ *) func_lo2o_result=${1} ;;\
23017 \ esac\
23018 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23019 && mv -f "$cfgfile.tmp" "$cfgfile" \
23020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23021 test 0 -eq $? || _lt_function_replace_fail=:
23022
23023
23024 sed -e '/^func_xform ()$/,/^} # func_xform /c\
23025 func_xform ()\
23026 {\
23027 func_xform_result=${1%.*}.lo\
23028 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23029 && mv -f "$cfgfile.tmp" "$cfgfile" \
23030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23031 test 0 -eq $? || _lt_function_replace_fail=:
23032
23033
23034 sed -e '/^func_arith ()$/,/^} # func_arith /c\
23035 func_arith ()\
23036 {\
23037 func_arith_result=$(( $* ))\
23038 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23039 && mv -f "$cfgfile.tmp" "$cfgfile" \
23040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23041 test 0 -eq $? || _lt_function_replace_fail=:
23042
23043
23044 sed -e '/^func_len ()$/,/^} # func_len /c\
23045 func_len ()\
23046 {\
23047 func_len_result=${#1}\
23048 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23049 && mv -f "$cfgfile.tmp" "$cfgfile" \
23050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23051 test 0 -eq $? || _lt_function_replace_fail=:
23052
23053 fi
23054
23055 if test x"$lt_shell_append" = xyes; then
23056 sed -e '/^func_append ()$/,/^} # func_append /c\
23057 func_append ()\
23058 {\
23059 eval "${1}+=\\${2}"\
23060 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23061 && mv -f "$cfgfile.tmp" "$cfgfile" \
23062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23063 test 0 -eq $? || _lt_function_replace_fail=:
23064
23065
23066 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23067 func_append_quoted ()\
23068 {\
23069 \ func_quote_for_eval "${2}"\
23070 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23071 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23072 && mv -f "$cfgfile.tmp" "$cfgfile" \
23073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23074 test 0 -eq $? || _lt_function_replace_fail=:
23075
23076
23077 # Save a `func_append' function call where possible by direct use of '+='
23078 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23079 && mv -f "$cfgfile.tmp" "$cfgfile" \
23080 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23081 test 0 -eq $? || _lt_function_replace_fail=:
23082 else
23083 # Save a `func_append' function call even when '+=' is not available
23084 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23085 && mv -f "$cfgfile.tmp" "$cfgfile" \
23086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23087 test 0 -eq $? || _lt_function_replace_fail=:
23088 fi
23089
23090 if test x"$_lt_function_replace_fail" = x":"; then
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23092 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23093 fi
23094
23095
23096 mv -f "$cfgfile" "$ofile" ||
23097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23098 chmod +x "$ofile"
23099
23100
23101 cat <<_LT_EOF >> "$ofile"
23102
23103 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23104
23105 # The linker used to build libraries.
23106 LD=$lt_LD_CXX
23107
23108 # How to create reloadable object files.
23109 reload_flag=$lt_reload_flag_CXX
23110 reload_cmds=$lt_reload_cmds_CXX
23111
23112 # Commands used to build an old-style archive.
23113 old_archive_cmds=$lt_old_archive_cmds_CXX
23114
23115 # A language specific compiler.
23116 CC=$lt_compiler_CXX
23117
23118 # Is the compiler the GNU compiler?
23119 with_gcc=$GCC_CXX
23120
23121 # Compiler flag to turn off builtin functions.
23122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23123
23124 # Additional compiler flags for building library objects.
23125 pic_flag=$lt_lt_prog_compiler_pic_CXX
23126
23127 # How to pass a linker flag through the compiler.
23128 wl=$lt_lt_prog_compiler_wl_CXX
23129
23130 # Compiler flag to prevent dynamic linking.
23131 link_static_flag=$lt_lt_prog_compiler_static_CXX
23132
23133 # Does compiler simultaneously support -c and -o options?
23134 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23135
23136 # Whether or not to add -lc for building shared libraries.
23137 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23138
23139 # Whether or not to disallow shared libs when runtime libs are static.
23140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23141
23142 # Compiler flag to allow reflexive dlopens.
23143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23144
23145 # Compiler flag to generate shared objects directly from archives.
23146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23147
23148 # Whether the compiler copes with passing no objects directly.
23149 compiler_needs_object=$lt_compiler_needs_object_CXX
23150
23151 # Create an old-style archive from a shared archive.
23152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23153
23154 # Create a temporary old-style archive to link instead of a shared archive.
23155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23156
23157 # Commands used to build a shared archive.
23158 archive_cmds=$lt_archive_cmds_CXX
23159 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23160
23161 # Commands used to build a loadable module if different from building
23162 # a shared archive.
23163 module_cmds=$lt_module_cmds_CXX
23164 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23165
23166 # Whether we are building with GNU ld or not.
23167 with_gnu_ld=$lt_with_gnu_ld_CXX
23168
23169 # Flag that allows shared libraries with undefined symbols to be built.
23170 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23171
23172 # Flag that enforces no undefined symbols.
23173 no_undefined_flag=$lt_no_undefined_flag_CXX
23174
23175 # Flag to hardcode \$libdir into a binary during linking.
23176 # This must work even if \$libdir does not exist
23177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23178
23179 # Whether we need a single "-rpath" flag with a separated argument.
23180 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23181
23182 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23183 # DIR into the resulting binary.
23184 hardcode_direct=$hardcode_direct_CXX
23185
23186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23187 # DIR into the resulting binary and the resulting library dependency is
23188 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23189 # library is relocated.
23190 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23191
23192 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23193 # into the resulting binary.
23194 hardcode_minus_L=$hardcode_minus_L_CXX
23195
23196 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23197 # into the resulting binary.
23198 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23199
23200 # Set to "yes" if building a shared library automatically hardcodes DIR
23201 # into the library and all subsequent libraries and executables linked
23202 # against it.
23203 hardcode_automatic=$hardcode_automatic_CXX
23204
23205 # Set to yes if linker adds runtime paths of dependent libraries
23206 # to runtime path list.
23207 inherit_rpath=$inherit_rpath_CXX
23208
23209 # Whether libtool must link a program against all its dependency libraries.
23210 link_all_deplibs=$link_all_deplibs_CXX
23211
23212 # Set to "yes" if exported symbols are required.
23213 always_export_symbols=$always_export_symbols_CXX
23214
23215 # The commands to list exported symbols.
23216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23217
23218 # Symbols that should not be listed in the preloaded symbols.
23219 exclude_expsyms=$lt_exclude_expsyms_CXX
23220
23221 # Symbols that must always be exported.
23222 include_expsyms=$lt_include_expsyms_CXX
23223
23224 # Commands necessary for linking programs (against libraries) with templates.
23225 prelink_cmds=$lt_prelink_cmds_CXX
23226
23227 # Commands necessary for finishing linking programs.
23228 postlink_cmds=$lt_postlink_cmds_CXX
23229
23230 # Specify filename containing input files.
23231 file_list_spec=$lt_file_list_spec_CXX
23232
23233 # How to hardcode a shared library path into an executable.
23234 hardcode_action=$hardcode_action_CXX
23235
23236 # The directories searched by this compiler when creating a shared library.
23237 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23238
23239 # Dependencies to place before and after the objects being linked to
23240 # create a shared library.
23241 predep_objects=$lt_predep_objects_CXX
23242 postdep_objects=$lt_postdep_objects_CXX
23243 predeps=$lt_predeps_CXX
23244 postdeps=$lt_postdeps_CXX
23245
23246 # The library search path used internally by the compiler when linking
23247 # a shared library.
23248 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23249
23250 # ### END LIBTOOL TAG CONFIG: CXX
23251 _LT_EOF
23252
23253 ;;
23254
23255 esac
23256 done # for ac_tag
23257
23258
23259 as_fn_exit 0
23260 _ACEOF
23261 ac_clean_files=$ac_clean_files_save
23262
23263 test $ac_write_fail = 0 ||
23264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23265
23266
23267 # configure is writing to config.log, and then calls config.status.
23268 # config.status does its own redirection, appending to config.log.
23269 # Unfortunately, on DOS this fails, as config.log is still kept open
23270 # by configure, so config.status won't be able to write to it; its
23271 # output is simply discarded. So we exec the FD to /dev/null,
23272 # effectively closing config.log, so it can be properly (re)opened and
23273 # appended to by config.status. When coming back to configure, we
23274 # need to make the FD available again.
23275 if test "$no_create" != yes; then
23276 ac_cs_success=:
23277 ac_config_status_args=
23278 test "$silent" = yes &&
23279 ac_config_status_args="$ac_config_status_args --quiet"
23280 exec 5>/dev/null
23281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23282 exec 5>>config.log
23283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23284 # would make configure fail if this is the last instruction.
23285 $ac_cs_success || as_fn_exit 1
23286 fi
23287 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23289 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23290 fi
23291