]> git.saurik.com Git - cycript.git/blob - configure
Logically order type specifier cases in sig/parse.
[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-2015 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 SO
642 LTFLAGS
643 LTLIBGCC
644 LTLIBTERMCAP
645 LTLIBREADLINE
646 CY_PRELINK_FALSE
647 CY_PRELINK_TRUE
648 CY_LIBCLANG
649 CY_OBJECTIVEC_FALSE
650 CY_OBJECTIVEC_TRUE
651 CY_JAVA_FALSE
652 CY_JAVA_TRUE
653 LTOBJECTIVEC
654 GNUSTEP_CONFIG
655 CY_OBJECTIVEC
656 LTJAVA
657 CY_JAVA
658 LTLIBFFI
659 LIBFFI_LIBS
660 LIBFFI_CFLAGS
661 LTLIBSQLITE3
662 LTLIBUV
663 CY_SYSTEM
664 CY_EXECUTE_FALSE
665 CY_EXECUTE_TRUE
666 CY_ATTACH_FALSE
667 CY_ATTACH_TRUE
668 CY_CONSOLE_FALSE
669 CY_CONSOLE_TRUE
670 LTJAVASCRIPTCORE
671 WEBKIT_LIBS
672 WEBKIT_CFLAGS
673 CY_EXECUTE
674 PTHREAD_CFLAGS
675 PTHREAD_LIBS
676 PTHREAD_CC
677 ax_pthread_config
678 LFLAGS
679 GNUTAR
680 GPERF
681 FLEX
682 BISON
683 TIME
684 GIT
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 HAVE_CXX11
689 LT_SYS_LIBRARY_PATH
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 LIBTOOL
709 ac_ct_AR
710 AR
711 CXXCPPFLAGS_FOR_BUILD
712 CXXFLAGS_FOR_BUILD
713 CXXCPP_FOR_BUILD
714 ac_ct_CXX_FOR_BUILD
715 CXX_FOR_BUILD
716 CXXCPP
717 LDFLAGS_FOR_BUILD
718 CPPFLAGS_FOR_BUILD
719 CFLAGS_FOR_BUILD
720 BUILD_OBJEXT
721 BUILD_EXEEXT
722 CPP_FOR_BUILD
723 ac_ct_CC_FOR_BUILD
724 CC_FOR_BUILD
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 CPP
734 am__fastdepOBJCXX_FALSE
735 am__fastdepOBJCXX_TRUE
736 OBJCXXDEPMODE
737 ac_ct_OBJCXX
738 OBJCXXFLAGS
739 OBJCXX
740 am__fastdepCXX_FALSE
741 am__fastdepCXX_TRUE
742 CXXDEPMODE
743 ac_ct_CXX
744 CXXFLAGS
745 CXX
746 am__fastdepCC_FALSE
747 am__fastdepCC_TRUE
748 CCDEPMODE
749 am__nodep
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 AM_BACKSLASH
767 AM_DEFAULT_VERBOSITY
768 AM_DEFAULT_V
769 AM_V
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_silent_rules
835 enable_maintainer_mode
836 enable_dependency_tracking
837 enable_static
838 enable_shared
839 with_pic
840 enable_fast_install
841 with_aix_soname
842 with_gnu_ld
843 with_sysroot
844 enable_libtool_lock
845 enable_javascript
846 enable_console
847 enable_attach
848 with_libclang
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CXX
859 CXXFLAGS
860 CCC
861 OBJCXX
862 OBJCXXFLAGS
863 CPP
864 CXXCPP
865 LT_SYS_LIBRARY_PATH
866 PKG_CONFIG
867 PKG_CONFIG_PATH
868 PKG_CONFIG_LIBDIR
869 BISON
870 FLEX
871 GPERF
872 GNUTAR
873 LFLAGS
874 WEBKIT_CFLAGS
875 WEBKIT_LIBS
876 LIBFFI_CFLAGS
877 LIBFFI_LIBS
878 GNUSTEP_CONFIG'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of Cycript 0.9:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
1502 --enable-dependency-tracking
1503 do not reject slow dependency extractors
1504 --disable-dependency-tracking
1505 speeds up one-time build
1506 --enable-static[=PKGS] build static libraries [default=no]
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --enable-javascript[=ENGINE]
1512 use a JavaScript runtime (currently the only
1513 available option for ENGINE is JavaScriptCore)
1514 [default=yes]
1515 --disable-console disable console
1516 --disable-attach disable attach
1517
1518 Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1522 both]
1523 --with-aix-soname=aix|svr4|both
1524 shared library versioning (aka "SONAME") variant to
1525 provide on AIX, [default=aix].
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1528 compiler's sysroot if not specified).
1529 --with-libclang build bridge definitions using this libclang
1530
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 OBJCXX Objective C++ compiler command
1542 OBJCXXFLAGS Objective C++ compiler flags
1543 CPP C preprocessor
1544 CXXCPP C++ preprocessor
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
1547 PKG_CONFIG path to pkg-config utility
1548 PKG_CONFIG_PATH
1549 directories to add to pkg-config's search path
1550 PKG_CONFIG_LIBDIR
1551 path overriding pkg-config's built-in search path
1552 BISON GNU Project parser generator (yacc replacement)
1553 FLEX the fast lexical analyser generator
1554 GPERF perfect hash function generator
1555 GNUTAR a very sticky lump of files
1556 LFLAGS flex flags
1557 WEBKIT_CFLAGS
1558 C compiler flags for WEBKIT, overriding pkg-config
1559 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1560 LIBFFI_CFLAGS
1561 C compiler flags for LIBFFI, overriding pkg-config
1562 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1563 GNUSTEP_CONFIG
1564 prints information about the current gnustep installation
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <saurik@saurik.com>.
1570 Cycript home page: <http://www.cycript.org/>.
1571 _ACEOF
1572 ac_status=$?
1573 fi
1574
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" ||
1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580 continue
1581 ac_builddir=.
1582
1583 case "$ac_dir" in
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *)
1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 esac ;;
1593 esac
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1598
1599 case $srcdir in
1600 .) # We are building in place.
1601 ac_srcdir=.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1608 *) # Relative name.
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 esac
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1623 else
1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1627 done
1628 fi
1629
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1632 cat <<\_ACEOF
1633 Cycript configure 0.9
1634 generated by GNU Autoconf 2.69
1635
1636 Copyright (C) 2012 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639
1640 Copyright (C) 2009-2015 Jay Freeman (saurik)
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
1685 } # ac_fn_c_try_compile
1686
1687 # ac_fn_cxx_try_compile LINENO
1688 # ----------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_cxx_try_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_cxx_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_cxx_try_compile
1724
1725 # ac_fn_objcxx_try_compile LINENO
1726 # -------------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_objcxx_try_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_objcxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_objcxx_try_compile
1762
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_cpp ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_cpp
1799
1800 # ac_fn_cxx_try_cpp LINENO
1801 # ------------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_cpp ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_cxx_try_cpp
1836
1837 # ac_fn_c_try_link LINENO
1838 # -----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_link ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 test -x conftest$ac_exeext
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1880
1881 } # ac_fn_c_try_link
1882
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=yes"
1902 else
1903 eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 fi
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_header_compile
1913
1914 # ac_fn_c_try_run LINENO
1915 # ----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1917 # that executables *can* be run.
1918 ac_fn_c_try_run ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_link"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1932 { { case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_try") 2>&5
1939 ac_status=$?
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; }; }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: program exited with status $ac_status" >&5
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=$ac_status
1949 fi
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_run
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1977
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1983
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main ()
2002 {
2003 return $2 ();
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009 eval "$3=yes"
2010 else
2011 eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_func
2022
2023 # ac_fn_cxx_try_link LINENO
2024 # -------------------------
2025 # Try to link conftest.$ac_ext, and return whether this succeeded.
2026 ac_fn_cxx_try_link ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 rm -f conftest.$ac_objext conftest$ac_exeext
2030 if { { ac_try="$ac_link"
2031 case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_link") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && {
2046 test -z "$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 } && test -s conftest$ac_exeext && {
2049 test "$cross_compiling" = yes ||
2050 test -x conftest$ac_exeext
2051 }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=1
2058 fi
2059 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2060 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2061 # interfere with the next link command; also delete a directory that is
2062 # left behind by Apple's compiler. We do this before executing the actions.
2063 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 as_fn_set_status $ac_retval
2066
2067 } # ac_fn_cxx_try_link
2068
2069 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2070 # ---------------------------------------------------------
2071 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2072 # the include files in INCLUDES and setting the cache variable VAR
2073 # accordingly.
2074 ac_fn_cxx_check_header_mongrel ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if eval \${$3+:} false; then :
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 fi
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 else
2087 # Is the header compilable?
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2089 $as_echo_n "checking $2 usability... " >&6; }
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 ac_header_compiler=yes
2097 else
2098 ac_header_compiler=no
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2102 $as_echo "$ac_header_compiler" >&6; }
2103
2104 # Is the header present?
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2106 $as_echo_n "checking $2 presence... " >&6; }
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 #include <$2>
2110 _ACEOF
2111 if ac_fn_cxx_try_cpp "$LINENO"; then :
2112 ac_header_preproc=yes
2113 else
2114 ac_header_preproc=no
2115 fi
2116 rm -f conftest.err conftest.i conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2118 $as_echo "$ac_header_preproc" >&6; }
2119
2120 # So? What about this header?
2121 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2122 yes:no: )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2124 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ;;
2128 no:yes:* )
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2130 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2132 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2134 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2136 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139 ( $as_echo "## -------------------------------- ##
2140 ## Report this to saurik@saurik.com ##
2141 ## -------------------------------- ##"
2142 ) | sed "s/^/$as_me: WARNING: /" >&2
2143 ;;
2144 esac
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=\$ac_header_compiler"
2151 fi
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 fi
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158 } # ac_fn_cxx_check_header_mongrel
2159
2160 # ac_fn_cxx_check_func LINENO FUNC VAR
2161 # ------------------------------------
2162 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2163 ac_fn_cxx_check_func ()
2164 {
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167 $as_echo_n "checking for $2... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2175 #define $2 innocuous_$2
2176
2177 /* System header to define __stub macros and hopefully few prototypes,
2178 which can conflict with char $2 (); below.
2179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2180 <limits.h> exists even on freestanding compilers. */
2181
2182 #ifdef __STDC__
2183 # include <limits.h>
2184 #else
2185 # include <assert.h>
2186 #endif
2187
2188 #undef $2
2189
2190 /* Override any GCC internal prototype to avoid an error.
2191 Use char because int might match the return type of a GCC
2192 builtin and then its argument prototype would still apply. */
2193 #ifdef __cplusplus
2194 extern "C"
2195 #endif
2196 char $2 ();
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined __stub_$2 || defined __stub___$2
2201 choke me
2202 #endif
2203
2204 int
2205 main ()
2206 {
2207 return $2 ();
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_cxx_try_link "$LINENO"; then :
2213 eval "$3=yes"
2214 else
2215 eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext \
2218 conftest$ac_exeext conftest.$ac_ext
2219 fi
2220 eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224
2225 } # ac_fn_cxx_check_func
2226
2227 # ac_fn_objcxx_try_link LINENO
2228 # ----------------------------
2229 # Try to link conftest.$ac_ext, and return whether this succeeded.
2230 ac_fn_objcxx_try_link ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 rm -f conftest.$ac_objext conftest$ac_exeext
2234 if { { ac_try="$ac_link"
2235 case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>conftest.err
2242 ac_status=$?
2243 if test -s conftest.err; then
2244 grep -v '^ *+' conftest.err >conftest.er1
2245 cat conftest.er1 >&5
2246 mv -f conftest.er1 conftest.err
2247 fi
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && {
2250 test -z "$ac_objcxx_werror_flag" ||
2251 test ! -s conftest.err
2252 } && test -s conftest$ac_exeext && {
2253 test "$cross_compiling" = yes ||
2254 test -x conftest$ac_exeext
2255 }; then :
2256 ac_retval=0
2257 else
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 ac_retval=1
2262 fi
2263 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2264 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2265 # interfere with the next link command; also delete a directory that is
2266 # left behind by Apple's compiler. We do this before executing the actions.
2267 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 as_fn_set_status $ac_retval
2270
2271 } # ac_fn_objcxx_try_link
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2275
2276 It was created by Cycript $as_me 0.9, which was
2277 generated by GNU Autoconf 2.69. Invocation command line was
2278
2279 $ $0 $@
2280
2281 _ACEOF
2282 exec 5>>config.log
2283 {
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2288
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2297
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305
2306 _ASUNAME
2307
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2314 done
2315 IFS=$as_save_IFS
2316
2317 } >&5
2318
2319 cat >&5 <<_ACEOF
2320
2321
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2325
2326 _ACEOF
2327
2328
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2339 do
2340 for ac_arg
2341 do
2342 case $ac_arg in
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2346 continue ;;
2347 *\'*)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 esac
2350 case $ac_pass in
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352 2)
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2356 else
2357 case $ac_arg in
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364 esac
2365 ;;
2366 -* ) ac_must_keep_next=true ;;
2367 esac
2368 fi
2369 as_fn_append ac_configure_args " '$ac_arg'"
2370 ;;
2371 esac
2372 done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2376
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2384 {
2385 echo
2386
2387 $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2390 echo
2391 # The following way of writing the cache mishandles newlines in values,
2392 (
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in #(
2396 *${as_nl}*)
2397 case $ac_var in #(
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400 esac
2401 case $ac_var in #(
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2405 esac ;;
2406 esac
2407 done
2408 (set) 2>&1 |
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2411 sed -n \
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414 ;; #(
2415 *)
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417 ;;
2418 esac |
2419 sort
2420 )
2421 echo
2422
2423 $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2426 echo
2427 for ac_var in $ac_subst_vars
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436
2437 if test -n "$ac_subst_files"; then
2438 $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2441 echo
2442 for ac_var in $ac_subst_files
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451 fi
2452
2453 if test -s confdefs.h; then
2454 $as_echo "## ----------- ##
2455 ## confdefs.h. ##
2456 ## ----------- ##"
2457 echo
2458 cat confdefs.h
2459 echo
2460 fi
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2464 } >&5
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 exit $exit_status
2468 ' 0
2469 for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2473
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2476
2477 $as_echo "/* confdefs.h */" > confdefs.h
2478
2479 # Predefined preprocessor variables.
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2504
2505
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1=./$CONFIG_SITE;;
2514 */*) ac_site_file1=$CONFIG_SITE;;
2515 *) ac_site_file1=./$CONFIG_SITE;;
2516 esac
2517 elif test "x$prefix" != xNONE; then
2518 ac_site_file1=$prefix/share/config.site
2519 ac_site_file2=$prefix/etc/config.site
2520 else
2521 ac_site_file1=$ac_default_prefix/share/config.site
2522 ac_site_file2=$ac_default_prefix/etc/config.site
2523 fi
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525 do
2526 test "x$ac_site_file" = xNONE && continue
2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
2531 . "$ac_site_file" \
2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2536 fi
2537 done
2538
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2549 fi
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2554 fi
2555
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2574 *)
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2604 fi
2605 done
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 fi
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
2624
2625
2626
2627 ac_aux_dir=
2628 for ac_dir in . "$srcdir"/.; do
2629 if test -f "$ac_dir/install-sh"; then
2630 ac_aux_dir=$ac_dir
2631 ac_install_sh="$ac_aux_dir/install-sh -c"
2632 break
2633 elif test -f "$ac_dir/install.sh"; then
2634 ac_aux_dir=$ac_dir
2635 ac_install_sh="$ac_aux_dir/install.sh -c"
2636 break
2637 elif test -f "$ac_dir/shtool"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/shtool install -c"
2640 break
2641 fi
2642 done
2643 if test -z "$ac_aux_dir"; then
2644 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2645 fi
2646
2647 # These three variables are undocumented and unsupported,
2648 # and are intended to be withdrawn in a future Autoconf release.
2649 # They can cause serious problems if a builder's source tree is in a directory
2650 # whose full name contains unusual characters.
2651 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2652 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2653 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2654
2655
2656
2657 ac_config_headers="$ac_config_headers config.h"
2658
2659
2660 am__api_version='1.15'
2661
2662 # Find a good install program. We prefer a C program (faster),
2663 # so one script is as good as another. But avoid the broken or
2664 # incompatible versions:
2665 # SysV /etc/install, /usr/sbin/install
2666 # SunOS /usr/etc/install
2667 # IRIX /sbin/install
2668 # AIX /bin/install
2669 # AmigaOS /C/install, which installs bootblocks on floppy discs
2670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673 # OS/2's system install, which has a completely different semantic
2674 # ./install, which can be erroneously created by make from ./install.sh.
2675 # Reject install programs that cannot install multiple files.
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2678 if test -z "$INSTALL"; then
2679 if ${ac_cv_path_install+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688 case $as_dir/ in #((
2689 ./ | .// | /[cC]/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2703 :
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
2708 else
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
2721 fi
2722 fi
2723 done
2724 done
2725 ;;
2726 esac
2727
2728 done
2729 IFS=$as_save_IFS
2730
2731 rm -rf conftest.one conftest.two conftest.dir
2732
2733 fi
2734 if test "${ac_cv_path_install+set}" = set; then
2735 INSTALL=$ac_cv_path_install
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 INSTALL=$ac_install_sh
2742 fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745 $as_echo "$INSTALL" >&6; }
2746
2747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748 # It thinks the first close brace ends the variable substitution.
2749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2750
2751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2752
2753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756 $as_echo_n "checking whether build environment is sane... " >&6; }
2757 # Reject unsafe characters in $srcdir or the absolute working directory
2758 # name. Accept space and tab only in the latter.
2759 am_lf='
2760 '
2761 case `pwd` in
2762 *[\\\"\#\$\&\'\`$am_lf]*)
2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764 esac
2765 case $srcdir in
2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768 esac
2769
2770 # Do 'set' in a subshell so we don't clobber the current shell's
2771 # arguments. Must try -L first in case configure is actually a
2772 # symlink; some systems play weird games with the mod time of symlinks
2773 # (eg FreeBSD returns the mod time of the symlink's containing
2774 # directory).
2775 if (
2776 am_has_slept=no
2777 for am_try in 1 2; do
2778 echo "timestamp, slept: $am_has_slept" > conftest.file
2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t "$srcdir/configure" conftest.file`
2783 fi
2784 if test "$*" != "X $srcdir/configure conftest.file" \
2785 && test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787 # If neither matched, then we have a broken ls. This can happen
2788 # if, for instance, CONFIG_SHELL is bash and it inherits a
2789 # broken ls alias from the environment. This has actually
2790 # happened. Such a system could not be considered "sane".
2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792 alias in your environment" "$LINENO" 5
2793 fi
2794 if test "$2" = conftest.file || test $am_try -eq 2; then
2795 break
2796 fi
2797 # Just in case.
2798 sleep 1
2799 am_has_slept=yes
2800 done
2801 test "$2" = conftest.file
2802 )
2803 then
2804 # Ok.
2805 :
2806 else
2807 as_fn_error $? "newly created file is older than distributed files!
2808 Check your system clock" "$LINENO" 5
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811 $as_echo "yes" >&6; }
2812 # If we didn't sleep, we still need to ensure time stamps of config.status and
2813 # generated files are strictly newer.
2814 am_sleep_pid=
2815 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816 ( sleep 1 ) &
2817 am_sleep_pid=$!
2818 fi
2819
2820 rm -f conftest.file
2821
2822 test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824 # Use a double $ so make ignores it.
2825 test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827 # Double any \ or $.
2828 # By default was `s,x,x', remove it if useless.
2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831
2832 # Expand $ac_aux_dir to an absolute path.
2833 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2834
2835 if test x"${MISSING+set}" != xset; then
2836 case $am_aux_dir in
2837 *\ * | *\ *)
2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 *)
2840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841 esac
2842 fi
2843 # Use eval to expand $SHELL
2844 if eval "$MISSING --is-lightweight"; then
2845 am_missing_run="$MISSING "
2846 else
2847 am_missing_run=
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850 fi
2851
2852 if test x"${install_sh+set}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 *)
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 esac
2859 fi
2860
2861 # Installed binaries are usually stripped using 'strip' when the user
2862 # run "make install-strip". However 'strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the 'STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_STRIP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 STRIP=$ac_cv_prog_STRIP
2895 if test -n "$STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897 $as_echo "$STRIP" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; 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_ac_ct_STRIP+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
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 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935 if test -n "$ac_ct_STRIP"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937 $as_echo "$ac_ct_STRIP" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943 if test "x$ac_ct_STRIP" = x; then
2944 STRIP=":"
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952 STRIP=$ac_ct_STRIP
2953 fi
2954 else
2955 STRIP="$ac_cv_prog_STRIP"
2956 fi
2957
2958 fi
2959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963 if test -z "$MKDIR_P"; then
2964 if ${ac_cv_path_mkdir+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_prog in mkdir gmkdir; do
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976 'mkdir (GNU coreutils) '* | \
2977 'mkdir (coreutils) '* | \
2978 'mkdir (fileutils) '4.1*)
2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980 break 3;;
2981 esac
2982 done
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988
2989 test -d ./--version && rmdir ./--version
2990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2992 else
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
2997 MKDIR_P="$ac_install_sh -d"
2998 fi
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001 $as_echo "$MKDIR_P" >&6; }
3002
3003 for ac_prog in gawk mawk nawk awk
3004 do
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_AWK+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 AWK=$ac_cv_prog_AWK
3033 if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035 $as_echo "$AWK" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042 test -n "$AWK" && break
3043 done
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047 set x ${MAKE-make}
3048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 cat >conftest.make <<\_ACEOF
3053 SHELL = /bin/sh
3054 all:
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3056 _ACEOF
3057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 *@@@%%%=?*=@@@%%%*)
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 *)
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3063 esac
3064 rm -f conftest.make
3065 fi
3066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068 $as_echo "yes" >&6; }
3069 SET_MAKE=
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3074 fi
3075
3076 rm -rf .tst 2>/dev/null
3077 mkdir .tst 2>/dev/null
3078 if test -d .tst; then
3079 am__leading_dot=.
3080 else
3081 am__leading_dot=_
3082 fi
3083 rmdir .tst 2>/dev/null
3084
3085 # Check whether --enable-silent-rules was given.
3086 if test "${enable_silent_rules+set}" = set; then :
3087 enableval=$enable_silent_rules;
3088 fi
3089
3090 case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3094 esac
3095 am_make=${MAKE-make}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098 if ${am_cv_make_support_nested_variables+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if $as_echo 'TRUE=$(BAR$(V))
3102 BAR0=false
3103 BAR1=true
3104 V=1
3105 am__doit:
3106 @$(TRUE)
3107 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108 am_cv_make_support_nested_variables=yes
3109 else
3110 am_cv_make_support_nested_variables=no
3111 fi
3112 fi
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3115 if test $am_cv_make_support_nested_variables = yes; then
3116 AM_V='$(V)'
3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118 else
3119 AM_V=$AM_DEFAULT_VERBOSITY
3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121 fi
3122 AM_BACKSLASH='\'
3123
3124 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 fi
3132 fi
3133
3134 # test whether we have cygpath
3135 if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3138 else
3139 CYGPATH_W=echo
3140 fi
3141 fi
3142
3143
3144 # Define the identity of the package.
3145 PACKAGE='cycript'
3146 VERSION='0.9'
3147
3148
3149 cat >>confdefs.h <<_ACEOF
3150 #define PACKAGE "$PACKAGE"
3151 _ACEOF
3152
3153
3154 cat >>confdefs.h <<_ACEOF
3155 #define VERSION "$VERSION"
3156 _ACEOF
3157
3158 # Some tools Automake needs.
3159
3160 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174 # For better backward compatibility. To be removed once Automake 1.9.x
3175 # dies out for good. For more background, see:
3176 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178 mkdir_p='$(MKDIR_P)'
3179
3180 # We need awk for the "check" target (and possibly the TAP driver). The
3181 # system "awk" is bad on some platforms.
3182 # Always define AMTAR for backward compatibility. Yes, it's still used
3183 # in the wild :-( We should find a proper way to deprecate it ...
3184 AMTAR='$${TAR-tar}'
3185
3186
3187 # We'll loop over all known methods to create a tar archive until one works.
3188 _am_tools='gnutar pax cpio none'
3189
3190 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3191
3192
3193
3194
3195
3196
3197 # POSIX will say in a future version that running "rm -f" with no argument
3198 # is OK; and we want to be able to make that assumption in our Makefile
3199 # recipes. So use an aggressive probe to check that the usage we want is
3200 # actually supported "in the wild" to an acceptable degree.
3201 # See automake bug#10828.
3202 # To make any issue more visible, cause the running configure to be aborted
3203 # by default if the 'rm' program in use doesn't match our expectations; the
3204 # user can still override this though.
3205 if rm -f && rm -fr && rm -rf; then : OK; else
3206 cat >&2 <<'END'
3207 Oops!
3208
3209 Your 'rm' program seems unable to run without file operands specified
3210 on the command line, even when the '-f' option is present. This is contrary
3211 to the behaviour of most rm programs out there, and not conforming with
3212 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3213
3214 Please tell bug-automake@gnu.org about your system, including the value
3215 of your $PATH and any error possibly output before this message. This
3216 can help us improve future automake versions.
3217
3218 END
3219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220 echo 'Configuration will proceed anyway, since you have set the' >&2
3221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222 echo >&2
3223 else
3224 cat >&2 <<'END'
3225 Aborting the configuration process, to ensure you take notice of the issue.
3226
3227 You can download and install GNU coreutils to get an 'rm' implementation
3228 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3229
3230 If you want to complete the configuration process using your problematic
3231 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232 to "yes", and re-run configure.
3233
3234 END
3235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236 fi
3237 fi
3238
3239
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3242 # Check whether --enable-maintainer-mode was given.
3243 if test "${enable_maintainer_mode+set}" = set; then :
3244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3245 else
3246 USE_MAINTAINER_MODE=no
3247 fi
3248
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3251 if test $USE_MAINTAINER_MODE = yes; then
3252 MAINTAINER_MODE_TRUE=
3253 MAINTAINER_MODE_FALSE='#'
3254 else
3255 MAINTAINER_MODE_TRUE='#'
3256 MAINTAINER_MODE_FALSE=
3257 fi
3258
3259 MAINT=$MAINTAINER_MODE_TRUE
3260
3261
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3353 esac
3354 CC=$ac_ct_CC
3355 fi
3356 else
3357 CC="$ac_cv_prog_CC"
3358 fi
3359
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; 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}cc"
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 fi
3400 fi
3401 if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3422 continue
3423 fi
3424 ac_cv_prog_CC="cc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3435 shift
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3440 shift
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 fi
3443 fi
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3460 do
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 test -n "$CC" && break
3499 done
3500 fi
3501 if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl.exe
3504 do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 test -n "$ac_ct_CC" && break
3543 done
3544
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3555 fi
3556 fi
3557
3558 fi
3559
3560
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3565
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568 set X $ac_compile
3569 ac_compiler=$2
3570 for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579 ac_status=$?
3580 if test -s conftest.err; then
3581 sed '10a\
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3585 fi
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589 done
3590
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3610
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3613
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3616 do
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621 done
3622 rm -f $ac_rmfiles
3623
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3641 do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3645 ;;
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 fi
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3661 * )
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667 else
3668 ac_file=''
3669 fi
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3689
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 break;;
3715 * ) break;;
3716 esac
3717 done
3718 else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3727
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdio.h>
3734 int
3735 main ()
3736 {
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3772 cross_compiling=no
3773 else
3774 if test "$cross_compiling" = maybe; then
3775 cross_compiling=yes
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3782 fi
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3787
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compile") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 for ac_file in conftest.o conftest.obj conftest.*; do
3819 test -f "$ac_file" || continue;
3820 case $ac_file in
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823 break;;
3824 esac
3825 done
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3834 fi
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3840 ac_objext=$OBJEXT
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main ()
3851 {
3852 #ifndef __GNUC__
3853 choke me
3854 #endif
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861 ac_compiler_gnu=yes
3862 else
3863 ac_compiler_gnu=no
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872 GCC=yes
3873 else
3874 GCC=
3875 fi
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_save_c_werror_flag=$ac_c_werror_flag
3884 ac_c_werror_flag=yes
3885 ac_cv_prog_cc_g=no
3886 CFLAGS="-g"
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 int
3891 main ()
3892 {
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_g=yes
3900 else
3901 CFLAGS=""
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914
3915 else
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3917 CFLAGS="-g"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920
3921 int
3922 main ()
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_g=yes
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942 CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944 if test "$GCC" = yes; then
3945 CFLAGS="-g -O2"
3946 else
3947 CFLAGS="-g"
3948 fi
3949 else
3950 if test "$GCC" = yes; then
3951 CFLAGS="-O2"
3952 else
3953 CFLAGS=
3954 fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 ac_cv_prog_cc_c89=no
3962 ac_save_CC=$CC
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 #include <stdarg.h>
3966 #include <stdio.h>
3967 struct stat;
3968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3969 struct buf { int x; };
3970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3971 static char *e (p, i)
3972 char **p;
3973 int i;
3974 {
3975 return p[i];
3976 }
3977 static char *f (char * (*g) (char **, int), char **p, ...)
3978 {
3979 char *s;
3980 va_list v;
3981 va_start (v,p);
3982 s = g (p, va_arg (v,int));
3983 va_end (v);
3984 return s;
3985 }
3986
3987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3988 function prototypes and stuff, but not '\xHH' hex character constants.
3989 These don't provoke an error unfortunately, instead are silently treated
3990 as 'x'. The following induces an error, until -std is added to get
3991 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3992 array size at least. It's necessary to write '\x00'==0 to get something
3993 that's true only with -std. */
3994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3995
3996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3997 inside strings and character constants. */
3998 #define FOO(x) 'x'
3999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4000
4001 int test (int i, double x);
4002 struct s1 {int (*f) (int a);};
4003 struct s2 {int (*f) (double a);};
4004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4005 int argc;
4006 char **argv;
4007 int
4008 main ()
4009 {
4010 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4016 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4017 do
4018 CC="$ac_save_CC $ac_arg"
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_c89=$ac_arg
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext
4023 test "x$ac_cv_prog_cc_c89" != "xno" && break
4024 done
4025 rm -f conftest.$ac_ext
4026 CC=$ac_save_CC
4027
4028 fi
4029 # AC_CACHE_VAL
4030 case "x$ac_cv_prog_cc_c89" in
4031 x)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4033 $as_echo "none needed" >&6; } ;;
4034 xno)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036 $as_echo "unsupported" >&6; } ;;
4037 *)
4038 CC="$CC $ac_cv_prog_cc_c89"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4040 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4041 esac
4042 if test "x$ac_cv_prog_cc_c89" != xno; then :
4043
4044 fi
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4058 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4059 if ${am_cv_prog_cc_c_o+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 # Make sure it works both with $CC and with simple cc.
4074 # Following AC_PROG_CC_C_O, we do the test twice because some
4075 # compilers refuse to overwrite an existing .o file with -o,
4076 # though they will create one.
4077 am_cv_prog_cc_c_o=yes
4078 for am_i in 1 2; do
4079 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4080 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } \
4084 && test -f conftest2.$ac_objext; then
4085 : OK
4086 else
4087 am_cv_prog_cc_c_o=no
4088 break
4089 fi
4090 done
4091 rm -f core conftest*
4092 unset am_i
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4095 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4096 if test "$am_cv_prog_cc_c_o" != yes; then
4097 # Losing compiler, so override with the script.
4098 # FIXME: It is wrong to rewrite CC.
4099 # But if we don't then we get into trouble of one sort or another.
4100 # A longer-term fix would be to have automake use am__CC in this case,
4101 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4102 CC="$am_aux_dir/compile $CC"
4103 fi
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110 DEPDIR="${am__leading_dot}deps"
4111
4112 ac_config_commands="$ac_config_commands depfiles"
4113
4114
4115 am_make=${MAKE-make}
4116 cat > confinc << 'END'
4117 am__doit:
4118 @echo this is the am__doit target
4119 .PHONY: am__doit
4120 END
4121 # If we don't find an include directive, just comment out the code.
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4123 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4124 am__include="#"
4125 am__quote=
4126 _am_result=none
4127 # First try GNU make style include.
4128 echo "include confinc" > confmf
4129 # Ignore all kinds of additional output from 'make'.
4130 case `$am_make -s -f confmf 2> /dev/null` in #(
4131 *the\ am__doit\ target*)
4132 am__include=include
4133 am__quote=
4134 _am_result=GNU
4135 ;;
4136 esac
4137 # Now try BSD make style include.
4138 if test "$am__include" = "#"; then
4139 echo '.include "confinc"' > confmf
4140 case `$am_make -s -f confmf 2> /dev/null` in #(
4141 *the\ am__doit\ target*)
4142 am__include=.include
4143 am__quote="\""
4144 _am_result=BSD
4145 ;;
4146 esac
4147 fi
4148
4149
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4151 $as_echo "$_am_result" >&6; }
4152 rm -f confinc confmf
4153
4154 # Check whether --enable-dependency-tracking was given.
4155 if test "${enable_dependency_tracking+set}" = set; then :
4156 enableval=$enable_dependency_tracking;
4157 fi
4158
4159 if test "x$enable_dependency_tracking" != xno; then
4160 am_depcomp="$ac_aux_dir/depcomp"
4161 AMDEPBACKSLASH='\'
4162 am__nodep='_no'
4163 fi
4164 if test "x$enable_dependency_tracking" != xno; then
4165 AMDEP_TRUE=
4166 AMDEP_FALSE='#'
4167 else
4168 AMDEP_TRUE='#'
4169 AMDEP_FALSE=
4170 fi
4171
4172
4173
4174 depcc="$CC" am_compiler_list=
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4177 $as_echo_n "checking dependency style of $depcc... " >&6; }
4178 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4182 # We make a subdir and do the tests there. Otherwise we can end up
4183 # making bogus files that we don't know about and never remove. For
4184 # instance it was reported that on HP-UX the gcc test will end up
4185 # making a dummy file named 'D' -- because '-MD' means "put the output
4186 # in D".
4187 rm -rf conftest.dir
4188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4200
4201 am_cv_CC_dependencies_compiler_type=none
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4204 fi
4205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4209
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4222 # Solaris 10 /bin/sh.
4223 echo '/* dummy */' > sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
4227 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle '-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs.
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
4233 case $depmode in
4234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4237 ;;
4238 nosideeffect)
4239 # After this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested.
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4245 fi
4246 ;;
4247 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4248 # This compiler won't grok '-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4253 ;;
4254 none) break ;;
4255 esac
4256 if depmode=$depmode \
4257 source=sub/conftest.c object=$am__obj \
4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4260 >/dev/null 2>conftest.err &&
4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274 am_cv_CC_dependencies_compiler_type=$depmode
4275 break
4276 fi
4277 fi
4278 done
4279
4280 cd ..
4281 rm -rf conftest.dir
4282 else
4283 am_cv_CC_dependencies_compiler_type=none
4284 fi
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4288 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4289 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4290
4291 if
4292 test "x$enable_dependency_tracking" != xno \
4293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCC_TRUE=
4295 am__fastdepCC_FALSE='#'
4296 else
4297 am__fastdepCC_TRUE='#'
4298 am__fastdepCC_FALSE=
4299 fi
4300
4301
4302 ac_ext=cpp
4303 ac_cpp='$CXXCPP $CPPFLAGS'
4304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4307 if test -z "$CXX"; then
4308 if test -n "$CCC"; then
4309 CXX=$CCC
4310 else
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4313 do
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_CXX+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$CXX"; then
4322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 CXX=$ac_cv_prog_CXX
4342 if test -n "$CXX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4344 $as_echo "$CXX" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 test -n "$CXX" && break
4352 done
4353 fi
4354 if test -z "$CXX"; then
4355 ac_ct_CXX=$CXX
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4357 do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_CXX"; then
4366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_ac_ct_CXX="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4386 if test -n "$ac_ct_CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4388 $as_echo "$ac_ct_CXX" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395 test -n "$ac_ct_CXX" && break
4396 done
4397
4398 if test "x$ac_ct_CXX" = x; then
4399 CXX="g++"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 CXX=$ac_ct_CXX
4408 fi
4409 fi
4410
4411 fi
4412 fi
4413 # Provide some information about the compiler.
4414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4415 set X $ac_compile
4416 ac_compiler=$2
4417 for ac_option in --version -v -V -qversion; do
4418 { { ac_try="$ac_compiler $ac_option >&5"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4426 ac_status=$?
4427 if test -s conftest.err; then
4428 sed '10a\
4429 ... rest of stderr output deleted ...
4430 10q' conftest.err >conftest.er1
4431 cat conftest.er1 >&5
4432 fi
4433 rm -f conftest.er1 conftest.err
4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }
4436 done
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4439 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4440 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main ()
4448 {
4449 #ifndef __GNUC__
4450 choke me
4451 #endif
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_cxx_try_compile "$LINENO"; then :
4458 ac_compiler_gnu=yes
4459 else
4460 ac_compiler_gnu=no
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4467 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4468 if test $ac_compiler_gnu = yes; then
4469 GXX=yes
4470 else
4471 GXX=
4472 fi
4473 ac_test_CXXFLAGS=${CXXFLAGS+set}
4474 ac_save_CXXFLAGS=$CXXFLAGS
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4476 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4477 if ${ac_cv_prog_cxx_g+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4481 ac_cxx_werror_flag=yes
4482 ac_cv_prog_cxx_g=no
4483 CXXFLAGS="-g"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496 ac_cv_prog_cxx_g=yes
4497 else
4498 CXXFLAGS=""
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501
4502 int
4503 main ()
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_cxx_try_compile "$LINENO"; then :
4511
4512 else
4513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4514 CXXFLAGS="-g"
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517
4518 int
4519 main ()
4520 {
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_cv_prog_cxx_g=yes
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4537 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4538 if test "$ac_test_CXXFLAGS" = set; then
4539 CXXFLAGS=$ac_save_CXXFLAGS
4540 elif test $ac_cv_prog_cxx_g = yes; then
4541 if test "$GXX" = yes; then
4542 CXXFLAGS="-g -O2"
4543 else
4544 CXXFLAGS="-g"
4545 fi
4546 else
4547 if test "$GXX" = yes; then
4548 CXXFLAGS="-O2"
4549 else
4550 CXXFLAGS=
4551 fi
4552 fi
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 depcc="$CXX" am_compiler_list=
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567 # We make a subdir and do the tests there. Otherwise we can end up
4568 # making bogus files that we don't know about and never remove. For
4569 # instance it was reported that on HP-UX the gcc test will end up
4570 # making a dummy file named 'D' -- because '-MD' means "put the output
4571 # in D".
4572 rm -rf conftest.dir
4573 mkdir conftest.dir
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4577 cd conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4583 # directory.
4584 mkdir sub
4585
4586 am_cv_CXX_dependencies_compiler_type=none
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589 fi
4590 am__universal=false
4591 case " $depcc " in #(
4592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4593 esac
4594
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4599 #
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4603 : > sub/conftest.c
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607 # Solaris 10 /bin/sh.
4608 echo '/* dummy */' > sub/conftst$i.h
4609 done
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611
4612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle '-M -o', and we need to detect this. Also, some Intel
4615 # versions had trouble with output in subdirs.
4616 am__obj=sub/conftest.${OBJEXT-o}
4617 am__minus_obj="-o $am__obj"
4618 case $depmode in
4619 gcc)
4620 # This depmode causes a compiler race in universal mode.
4621 test "$am__universal" = false || continue
4622 ;;
4623 nosideeffect)
4624 # After this tag, mechanisms are not by side-effect, so they'll
4625 # only be used when explicitly requested.
4626 if test "x$enable_dependency_tracking" = xyes; then
4627 continue
4628 else
4629 break
4630 fi
4631 ;;
4632 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633 # This compiler won't grok '-c -o', but also, the minuso test has
4634 # not run yet. These depmodes are late enough in the game, and
4635 # so weak that their functioning should not be impacted.
4636 am__obj=conftest.${OBJEXT-o}
4637 am__minus_obj=
4638 ;;
4639 none) break ;;
4640 esac
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=$am__obj \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659 am_cv_CXX_dependencies_compiler_type=$depmode
4660 break
4661 fi
4662 fi
4663 done
4664
4665 cd ..
4666 rm -rf conftest.dir
4667 else
4668 am_cv_CXX_dependencies_compiler_type=none
4669 fi
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4674 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4675
4676 if
4677 test "x$enable_dependency_tracking" != xno \
4678 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4679 am__fastdepCXX_TRUE=
4680 am__fastdepCXX_FALSE='#'
4681 else
4682 am__fastdepCXX_TRUE='#'
4683 am__fastdepCXX_FALSE=
4684 fi
4685
4686
4687 ac_ext=mm
4688 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4689 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4692 if test -n "$ac_tool_prefix"; then
4693 for ac_prog in g++ objc++ objcxx c++ CXX
4694 do
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_OBJCXX+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$OBJCXX"; then
4703 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 OBJCXX=$ac_cv_prog_OBJCXX
4723 if test -n "$OBJCXX"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4725 $as_echo "$OBJCXX" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 test -n "$OBJCXX" && break
4733 done
4734 fi
4735 if test -z "$OBJCXX"; then
4736 ac_ct_OBJCXX=$OBJCXX
4737 for ac_prog in g++ objc++ objcxx c++ CXX
4738 do
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_OBJCXX"; then
4747 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4767 if test -n "$ac_ct_OBJCXX"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4769 $as_echo "$ac_ct_OBJCXX" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775
4776 test -n "$ac_ct_OBJCXX" && break
4777 done
4778
4779 if test "x$ac_ct_OBJCXX" = x; then
4780 OBJCXX="g++"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786 ac_tool_warned=yes ;;
4787 esac
4788 OBJCXX=$ac_ct_OBJCXX
4789 fi
4790 fi
4791
4792 # Provide some information about the compiler.
4793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4794 set X $ac_compile
4795 ac_compiler=$2
4796 for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803 $as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4805 ac_status=$?
4806 if test -s conftest.err; then
4807 sed '10a\
4808 ... rest of stderr output deleted ...
4809 10q' conftest.err >conftest.er1
4810 cat conftest.er1 >&5
4811 fi
4812 rm -f conftest.er1 conftest.err
4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4815 done
4816
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4818 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4819 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824
4825 int
4826 main ()
4827 {
4828 #ifndef __GNUC__
4829 choke me
4830 #endif
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 if ac_fn_objcxx_try_compile "$LINENO"; then :
4837 ac_compiler_gnu=yes
4838 else
4839 ac_compiler_gnu=no
4840 fi
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4843
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4846 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4847 if test $ac_compiler_gnu = yes; then
4848 GOBJCXX=yes
4849 else
4850 GOBJCXX=
4851 fi
4852 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4853 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4855 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4856 if ${ac_cv_prog_objcxx_g+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4860 ac_objcxx_werror_flag=yes
4861 ac_cv_prog_objcxx_g=no
4862 OBJCXXFLAGS="-g"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_objcxx_try_compile "$LINENO"; then :
4875 ac_cv_prog_objcxx_g=yes
4876 else
4877 OBJCXXFLAGS=""
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880
4881 int
4882 main ()
4883 {
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_objcxx_try_compile "$LINENO"; then :
4890
4891 else
4892 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4893 OBJCXXFLAGS="-g"
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4896
4897 int
4898 main ()
4899 {
4900
4901 ;
4902 return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_objcxx_try_compile "$LINENO"; then :
4906 ac_cv_prog_objcxx_g=yes
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4914 fi
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4916 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4917 if test "$ac_test_OBJCXXFLAGS" = set; then
4918 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4919 elif test $ac_cv_prog_objcxx_g = yes; then
4920 if test "$GOBJCXX" = yes; then
4921 OBJCXXFLAGS="-g -O2"
4922 else
4923 OBJCXXFLAGS="-g"
4924 fi
4925 else
4926 if test "$GOBJCXX" = yes; then
4927 OBJCXXFLAGS="-O2"
4928 else
4929 OBJCXXFLAGS=
4930 fi
4931 fi
4932 ac_ext=c
4933 ac_cpp='$CPP $CPPFLAGS'
4934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
4938 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4941 $as_echo_n "checking dependency style of $depcc... " >&6; }
4942 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4946 # We make a subdir and do the tests there. Otherwise we can end up
4947 # making bogus files that we don't know about and never remove. For
4948 # instance it was reported that on HP-UX the gcc test will end up
4949 # making a dummy file named 'D' -- because '-MD' means "put the output
4950 # in D".
4951 rm -rf conftest.dir
4952 mkdir conftest.dir
4953 # Copy depcomp to subdir because otherwise we won't find it if we're
4954 # using a relative directory.
4955 cp "$am_depcomp" conftest.dir
4956 cd conftest.dir
4957 # We will build objects and dependencies in a subdirectory because
4958 # it helps to detect inapplicable dependency modes. For instance
4959 # both Tru64's cc and ICC support -MD to output dependencies as a
4960 # side effect of compilation, but ICC will put the dependencies in
4961 # the current directory while Tru64 will put them in the object
4962 # directory.
4963 mkdir sub
4964
4965 am_cv_OBJCXX_dependencies_compiler_type=none
4966 if test "$am_compiler_list" = ""; then
4967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 fi
4969 am__universal=false
4970
4971
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4976 #
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4980 : > sub/conftest.c
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984 # Solaris 10 /bin/sh.
4985 echo '/* dummy */' > sub/conftst$i.h
4986 done
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle '-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs.
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4995 case $depmode in
4996 gcc)
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
4999 ;;
5000 nosideeffect)
5001 # After this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested.
5003 if test "x$enable_dependency_tracking" = xyes; then
5004 continue
5005 else
5006 break
5007 fi
5008 ;;
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok '-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5014 am__minus_obj=
5015 ;;
5016 none) break ;;
5017 esac
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thusly:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036 am_cv_OBJCXX_dependencies_compiler_type=$depmode
5037 break
5038 fi
5039 fi
5040 done
5041
5042 cd ..
5043 rm -rf conftest.dir
5044 else
5045 am_cv_OBJCXX_dependencies_compiler_type=none
5046 fi
5047
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5051 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
5052
5053 if
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5056 am__fastdepOBJCXX_TRUE=
5057 am__fastdepOBJCXX_FALSE='#'
5058 else
5059 am__fastdepOBJCXX_TRUE='#'
5060 am__fastdepOBJCXX_FALSE=
5061 fi
5062
5063
5064
5065 ac_ext=c
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5074 CPP=
5075 fi
5076 if test -z "$CPP"; then
5077 if ${ac_cv_prog_CPP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082 do
5083 ac_preproc_ok=false
5084 for ac_c_preproc_warn_flag in '' yes
5085 do
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099 Syntax error
5100 _ACEOF
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5102
5103 else
5104 # Broken: fails on valid input.
5105 continue
5106 fi
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5108
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <ac_nonexistent.h>
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5117 continue
5118 else
5119 # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5122 fi
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5124
5125 done
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5129 break
5130 fi
5131
5132 done
5133 ac_cv_prog_CPP=$CPP
5134
5135 fi
5136 CPP=$ac_cv_prog_CPP
5137 else
5138 ac_cv_prog_CPP=$CPP
5139 fi
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5142 ac_preproc_ok=false
5143 for ac_c_preproc_warn_flag in '' yes
5144 do
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158 Syntax error
5159 _ACEOF
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5161
5162 else
5163 # Broken: fails on valid input.
5164 continue
5165 fi
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5173 _ACEOF
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5176 continue
5177 else
5178 # Passes both tests.
5179 ac_preproc_ok=:
5180 break
5181 fi
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5183
5184 done
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5188
5189 else
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5194 fi
5195
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202
5203 # Make sure we can run config.sub.
5204 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5205 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5208 $as_echo_n "checking build system type... " >&6; }
5209 if ${ac_cv_build+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_build_alias=$build_alias
5213 test "x$ac_build_alias" = x &&
5214 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5215 test "x$ac_build_alias" = x &&
5216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5217 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5219
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5222 $as_echo "$ac_cv_build" >&6; }
5223 case $ac_cv_build in
5224 *-*-*) ;;
5225 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5226 esac
5227 build=$ac_cv_build
5228 ac_save_IFS=$IFS; IFS='-'
5229 set x $ac_cv_build
5230 shift
5231 build_cpu=$1
5232 build_vendor=$2
5233 shift; shift
5234 # Remember, the first character of IFS is used to create $*,
5235 # except with old shells:
5236 build_os=$*
5237 IFS=$ac_save_IFS
5238 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5239
5240
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5242 $as_echo_n "checking host system type... " >&6; }
5243 if ${ac_cv_host+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test "x$host_alias" = x; then
5247 ac_cv_host=$ac_cv_build
5248 else
5249 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5251 fi
5252
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5255 $as_echo "$ac_cv_host" >&6; }
5256 case $ac_cv_host in
5257 *-*-*) ;;
5258 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5259 esac
5260 host=$ac_cv_host
5261 ac_save_IFS=$IFS; IFS='-'
5262 set x $ac_cv_host
5263 shift
5264 host_cpu=$1
5265 host_vendor=$2
5266 shift; shift
5267 # Remember, the first character of IFS is used to create $*,
5268 # except with old shells:
5269 host_os=$*
5270 IFS=$ac_save_IFS
5271 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5272
5273
5274
5275
5276 save_cross_compiling=$cross_compiling
5277 save_ac_tool_prefix=$ac_tool_prefix
5278 cross_compiling=no
5279 ac_tool_prefix=
5280
5281 ac_ext=c
5282 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5283 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5284 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$CC_FOR_BUILD"; then
5295 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 fi
5313 fi
5314 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5315 if test -n "$CC_FOR_BUILD"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5317 $as_echo "$CC_FOR_BUILD" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 fi
5325 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5326 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5327 # Extract the first word of "gcc", so it can be a program name with args.
5328 set dummy gcc; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_CC_FOR_BUILD"; then
5335 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5355 if test -n "$ac_ct_CC_FOR_BUILD"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5357 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5364 CC_FOR_BUILD=""
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5373 fi
5374 else
5375 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5376 fi
5377
5378 if test -z "$CC_FOR_BUILD"; then
5379 if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5381 set dummy ${ac_tool_prefix}cc; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$CC_FOR_BUILD"; then
5388 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401 done
5402 done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5408 if test -n "$CC_FOR_BUILD"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5410 $as_echo "$CC_FOR_BUILD" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 fi
5418 fi
5419 if test -z "$CC_FOR_BUILD"; then
5420 # Extract the first word of "cc", so it can be a program name with args.
5421 set dummy cc; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$CC_FOR_BUILD"; then
5428 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5429 else
5430 ac_prog_rejected=no
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5439 ac_prog_rejected=yes
5440 continue
5441 fi
5442 ac_cv_prog_CC_FOR_BUILD="cc"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 if test $ac_prog_rejected = yes; then
5451 # We found a bogon in the path, so make sure we never use it.
5452 set dummy $ac_cv_prog_CC_FOR_BUILD
5453 shift
5454 if test $# != 0; then
5455 # We chose a different compiler from the bogus one.
5456 # However, it has the same basename, so the bogon will be chosen
5457 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5458 shift
5459 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5460 fi
5461 fi
5462 fi
5463 fi
5464 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5465 if test -n "$CC_FOR_BUILD"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5467 $as_echo "$CC_FOR_BUILD" >&6; }
5468 else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474 fi
5475 if test -z "$CC_FOR_BUILD"; then
5476 if test -n "$ac_tool_prefix"; then
5477 for ac_prog in cl.exe
5478 do
5479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -n "$CC_FOR_BUILD"; then
5487 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500 done
5501 done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5507 if test -n "$CC_FOR_BUILD"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5509 $as_echo "$CC_FOR_BUILD" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516 test -n "$CC_FOR_BUILD" && break
5517 done
5518 fi
5519 if test -z "$CC_FOR_BUILD"; then
5520 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5521 for ac_prog in cl.exe
5522 do
5523 # Extract the first word of "$ac_prog", so it can be a program name with args.
5524 set dummy $ac_prog; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$ac_ct_CC_FOR_BUILD"; then
5531 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5551 if test -n "$ac_ct_CC_FOR_BUILD"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5553 $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 test -n "$ac_ct_CC_FOR_BUILD" && break
5561 done
5562
5563 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5564 CC_FOR_BUILD=""
5565 else
5566 case $cross_compiling:$ac_tool_warned in
5567 yes:)
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5569 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5570 ac_tool_warned=yes ;;
5571 esac
5572 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5573 fi
5574 fi
5575
5576 fi
5577
5578
5579 test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581 as_fn_error $? "no acceptable C compiler found in \$PATH
5582 See \`config.log' for more details" "$LINENO" 5; }
5583
5584 # Provide some information about the compiler.
5585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5586 set X $ac_build_compile
5587 ac_compiler=$2
5588 for ac_option in --version -v -V -qversion; do
5589 { { ac_try="$ac_compiler $ac_option >&5"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5595 $as_echo "$ac_try_echo"; } >&5
5596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5597 ac_status=$?
5598 if test -s conftest.err; then
5599 sed '10a\
5600 ... rest of stderr output deleted ...
5601 10q' conftest.err >conftest.er1
5602 cat conftest.er1 >&5
5603 fi
5604 rm -f conftest.er1 conftest.err
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }
5607 done
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5611 if ${ac_cv_c_compiler_gnu+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616
5617 int
5618 main ()
5619 {
5620 #ifndef __GNUC__
5621 choke me
5622 #endif
5623
5624 ;
5625 return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_compiler_gnu=yes
5630 else
5631 ac_compiler_gnu=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5635
5636 fi
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5639 if test $ac_compiler_gnu = yes; then
5640 GCC=yes
5641 else
5642 GCC=
5643 fi
5644 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5645 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5647 $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5648 if ${ac_cv_build_prog_cc_g+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 ac_save_c_werror_flag=$ac_c_werror_flag
5652 ac_c_werror_flag=yes
5653 ac_cv_build_prog_cc_g=no
5654 CFLAGS_FOR_BUILD="-g"
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657
5658 int
5659 main ()
5660 {
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_build_prog_cc_g=yes
5668 else
5669 CFLAGS_FOR_BUILD=""
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672
5673 int
5674 main ()
5675 {
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682
5683 else
5684 ac_c_werror_flag=$ac_save_c_werror_flag
5685 CFLAGS_FOR_BUILD="-g"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_build_prog_cc_g=yes
5699 fi
5700 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5701 fi
5702 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5703 fi
5704 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5705 ac_c_werror_flag=$ac_save_c_werror_flag
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5708 $as_echo "$ac_cv_build_prog_cc_g" >&6; }
5709 if test "$ac_test_CFLAGS" = set; then
5710 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5711 elif test $ac_cv_build_prog_cc_g = yes; then
5712 if test "$GCC" = yes; then
5713 CFLAGS_FOR_BUILD="-g -O2"
5714 else
5715 CFLAGS_FOR_BUILD="-g"
5716 fi
5717 else
5718 if test "$GCC" = yes; then
5719 CFLAGS_FOR_BUILD="-O2"
5720 else
5721 CFLAGS_FOR_BUILD=
5722 fi
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5725 $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5726 if ${ac_cv_prog_cc_c89+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 ac_cv_prog_cc_c89=no
5730 ac_save_CC=$CC_FOR_BUILD
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #include <stdarg.h>
5734 #include <stdio.h>
5735 struct stat;
5736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5737 struct buf { int x; };
5738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5739 static char *e (p, i)
5740 char **p;
5741 int i;
5742 {
5743 return p[i];
5744 }
5745 static char *f (char * (*g) (char **, int), char **p, ...)
5746 {
5747 char *s;
5748 va_list v;
5749 va_start (v,p);
5750 s = g (p, va_arg (v,int));
5751 va_end (v);
5752 return s;
5753 }
5754
5755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5756 function prototypes and stuff, but not '\xHH' hex character constants.
5757 These don't provoke an error unfortunately, instead are silently treated
5758 as 'x'. The following induces an error, until -std is added to get
5759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5760 array size at least. It's necessary to write '\x00'==0 to get something
5761 that's true only with -std. */
5762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5763
5764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5765 inside strings and character constants. */
5766 #define FOO(x) 'x'
5767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5768
5769 int test (int i, double x);
5770 struct s1 {int (*f) (int a);};
5771 struct s2 {int (*f) (double a);};
5772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5773 int argc;
5774 char **argv;
5775 int
5776 main ()
5777 {
5778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5785 do
5786 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 ac_cv_prog_cc_c89=$ac_arg
5789 fi
5790 rm -f core conftest.err conftest.$ac_build_objext
5791 test "x$ac_cv_prog_cc_c89" != "xno" && break
5792 done
5793 rm -f conftest.$ac_ext
5794 CC_FOR_BUILD=$ac_save_CC
5795
5796 fi
5797 # AC_CACHE_VAL
5798 case "x$ac_cv_prog_cc_c89" in
5799 x)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5801 $as_echo "none needed" >&6; } ;;
5802 xno)
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5804 $as_echo "unsupported" >&6; } ;;
5805 *)
5806 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5808 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5809 esac
5810 if test "x$ac_cv_prog_cc_c89" != xno; then :
5811
5812 fi
5813
5814 ac_ext=c
5815 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5816 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5817 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819
5820 ac_ext=c
5821 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5822 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5823 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5826 $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5827 if ${am_cv_prog_cc_c_o+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832
5833 int
5834 main ()
5835 {
5836
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 # Make sure it works both with $CC and with simple cc.
5842 # Following AC_PROG_CC_C_O, we do the test twice because some
5843 # compilers refuse to overwrite an existing .o file with -o,
5844 # though they will create one.
5845 am_cv_prog_cc_c_o=yes
5846 for am_i in 1 2; do
5847 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5848 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } \
5852 && test -f conftest2.$ac_build_objext; then
5853 : OK
5854 else
5855 am_cv_prog_cc_c_o=no
5856 break
5857 fi
5858 done
5859 rm -f core conftest*
5860 unset am_i
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5863 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5864 if test "$am_cv_prog_cc_c_o" != yes; then
5865 # Losing compiler, so override with the script.
5866 # FIXME: It is wrong to rewrite CC.
5867 # But if we don't then we get into trouble of one sort or another.
5868 # A longer-term fix would be to have automake use am__CC in this case,
5869 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5870 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5871 fi
5872 ac_ext=c
5873 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5874 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5875 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878
5879 depcc="$CC_FOR_BUILD" am_compiler_list=
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5882 $as_echo_n "checking dependency style of $depcc... " >&6; }
5883 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5887 # We make a subdir and do the tests there. Otherwise we can end up
5888 # making bogus files that we don't know about and never remove. For
5889 # instance it was reported that on HP-UX the gcc test will end up
5890 # making a dummy file named 'D' -- because '-MD' means "put the output
5891 # in D".
5892 rm -rf conftest.dir
5893 mkdir conftest.dir
5894 # Copy depcomp to subdir because otherwise we won't find it if we're
5895 # using a relative directory.
5896 cp "$am_depcomp" conftest.dir
5897 cd conftest.dir
5898 # We will build objects and dependencies in a subdirectory because
5899 # it helps to detect inapplicable dependency modes. For instance
5900 # both Tru64's cc and ICC support -MD to output dependencies as a
5901 # side effect of compilation, but ICC will put the dependencies in
5902 # the current directory while Tru64 will put them in the object
5903 # directory.
5904 mkdir sub
5905
5906 am_cv_CC_dependencies_compiler_type=none
5907 if test "$am_compiler_list" = ""; then
5908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5909 fi
5910 am__universal=false
5911 case " $depcc " in #(
5912 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5913 esac
5914
5915 for depmode in $am_compiler_list; do
5916 # Setup a source with many dependencies, because some compilers
5917 # like to wrap large dependency lists on column 80 (with \), and
5918 # we should not choose a depcomp mode which is confused by this.
5919 #
5920 # We need to recreate these files for each test, as the compiler may
5921 # overwrite some of them when testing with obscure command lines.
5922 # This happens at least with the AIX C compiler.
5923 : > sub/conftest.c
5924 for i in 1 2 3 4 5 6; do
5925 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5927 # Solaris 10 /bin/sh.
5928 echo '/* dummy */' > sub/conftst$i.h
5929 done
5930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5931
5932 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5933 # mode. It turns out that the SunPro C++ compiler does not properly
5934 # handle '-M -o', and we need to detect this. Also, some Intel
5935 # versions had trouble with output in subdirs.
5936 am__obj=sub/conftest.${OBJEXT-o}
5937 am__minus_obj="-o $am__obj"
5938 case $depmode in
5939 gcc)
5940 # This depmode causes a compiler race in universal mode.
5941 test "$am__universal" = false || continue
5942 ;;
5943 nosideeffect)
5944 # After this tag, mechanisms are not by side-effect, so they'll
5945 # only be used when explicitly requested.
5946 if test "x$enable_dependency_tracking" = xyes; then
5947 continue
5948 else
5949 break
5950 fi
5951 ;;
5952 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5953 # This compiler won't grok '-c -o', but also, the minuso test has
5954 # not run yet. These depmodes are late enough in the game, and
5955 # so weak that their functioning should not be impacted.
5956 am__obj=conftest.${OBJEXT-o}
5957 am__minus_obj=
5958 ;;
5959 none) break ;;
5960 esac
5961 if depmode=$depmode \
5962 source=sub/conftest.c object=$am__obj \
5963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5965 >/dev/null 2>conftest.err &&
5966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5970 # icc doesn't choke on unknown options, it will just issue warnings
5971 # or remarks (even with -Werror). So we grep stderr for any message
5972 # that says an option was ignored or not supported.
5973 # When given -MP, icc 7.0 and 7.1 complain thusly:
5974 # icc: Command line warning: ignoring option '-M'; no argument required
5975 # The diagnosis changed in icc 8.0:
5976 # icc: Command line remark: option '-MP' not supported
5977 if (grep 'ignoring option' conftest.err ||
5978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5979 am_cv_CC_dependencies_compiler_type=$depmode
5980 break
5981 fi
5982 fi
5983 done
5984
5985 cd ..
5986 rm -rf conftest.dir
5987 else
5988 am_cv_CC_dependencies_compiler_type=none
5989 fi
5990
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5993 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5994 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5995
5996 if
5997 test "x$enable_dependency_tracking" != xno \
5998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5999 am__fastdepCC_TRUE=
6000 am__fastdepCC_FALSE='#'
6001 else
6002 am__fastdepCC_TRUE='#'
6003 am__fastdepCC_FALSE=
6004 fi
6005
6006
6007 ac_ext=c
6008 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6009 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6010 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6014 # On Suns, sometimes $CPP names a directory.
6015 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6016 CPP_FOR_BUILD=
6017 fi
6018 if test -z "$CPP_FOR_BUILD"; then
6019 if ${ac_cv_build_prog_CPP+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 # Double quotes because CPP needs to be expanded
6023 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6024 do
6025 ac_preproc_ok=false
6026 for ac_c_preproc_warn_flag in '' yes
6027 do
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #ifdef __STDC__
6037 # include <limits.h>
6038 #else
6039 # include <assert.h>
6040 #endif
6041 Syntax error
6042 _ACEOF
6043 if ac_fn_c_try_cpp "$LINENO"; then :
6044
6045 else
6046 # Broken: fails on valid input.
6047 continue
6048 fi
6049 rm -f conftest.err conftest.i conftest.$ac_ext
6050
6051 # OK, works on sane cases. Now check whether nonexistent headers
6052 # can be detected and how.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6056 _ACEOF
6057 if ac_fn_c_try_cpp "$LINENO"; then :
6058 # Broken: success on invalid input.
6059 continue
6060 else
6061 # Passes both tests.
6062 ac_preproc_ok=:
6063 break
6064 fi
6065 rm -f conftest.err conftest.i conftest.$ac_ext
6066
6067 done
6068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069 rm -f conftest.i conftest.err conftest.$ac_ext
6070 if $ac_preproc_ok; then :
6071 break
6072 fi
6073
6074 done
6075 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6076
6077 fi
6078 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6079 else
6080 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6081 fi
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6083 $as_echo "$CPP_FOR_BUILD" >&6; }
6084 ac_preproc_ok=false
6085 for ac_c_preproc_warn_flag in '' yes
6086 do
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 #ifdef __STDC__
6096 # include <limits.h>
6097 #else
6098 # include <assert.h>
6099 #endif
6100 Syntax error
6101 _ACEOF
6102 if ac_fn_c_try_cpp "$LINENO"; then :
6103
6104 else
6105 # Broken: fails on valid input.
6106 continue
6107 fi
6108 rm -f conftest.err conftest.i conftest.$ac_ext
6109
6110 # OK, works on sane cases. Now check whether nonexistent headers
6111 # can be detected and how.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #include <ac_nonexistent.h>
6115 _ACEOF
6116 if ac_fn_c_try_cpp "$LINENO"; then :
6117 # Broken: success on invalid input.
6118 continue
6119 else
6120 # Passes both tests.
6121 ac_preproc_ok=:
6122 break
6123 fi
6124 rm -f conftest.err conftest.i conftest.$ac_ext
6125
6126 done
6127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128 rm -f conftest.i conftest.err conftest.$ac_ext
6129 if $ac_preproc_ok; then :
6130
6131 else
6132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6134 as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6135 See \`config.log' for more details" "$LINENO" 5; }
6136 fi
6137
6138 ac_ext=c
6139 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6140 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6141 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143
6144
6145
6146 ac_tool_prefix=$save_ac_tool_prefix
6147 cross_compiling=$save_cross_compiling
6148
6149
6150 BUILD_EXEEXT=$ac_build_exeext
6151 BUILD_OBJEXT=$ac_build_objext
6152
6153 ac_ext=cpp
6154 ac_cpp='$CXXCPP $CPPFLAGS'
6155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6159 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6160 if test -z "$CXXCPP"; then
6161 if ${ac_cv_prog_CXXCPP+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 # Double quotes because CXXCPP needs to be expanded
6165 for CXXCPP in "$CXX -E" "/lib/cpp"
6166 do
6167 ac_preproc_ok=false
6168 for ac_cxx_preproc_warn_flag in '' yes
6169 do
6170 # Use a header file that comes with gcc, so configuring glibc
6171 # with a fresh cross-compiler works.
6172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 # <limits.h> exists even on freestanding compilers.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #ifdef __STDC__
6179 # include <limits.h>
6180 #else
6181 # include <assert.h>
6182 #endif
6183 Syntax error
6184 _ACEOF
6185 if ac_fn_cxx_try_cpp "$LINENO"; then :
6186
6187 else
6188 # Broken: fails on valid input.
6189 continue
6190 fi
6191 rm -f conftest.err conftest.i conftest.$ac_ext
6192
6193 # OK, works on sane cases. Now check whether nonexistent headers
6194 # can be detected and how.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <ac_nonexistent.h>
6198 _ACEOF
6199 if ac_fn_cxx_try_cpp "$LINENO"; then :
6200 # Broken: success on invalid input.
6201 continue
6202 else
6203 # Passes both tests.
6204 ac_preproc_ok=:
6205 break
6206 fi
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6208
6209 done
6210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6211 rm -f conftest.i conftest.err conftest.$ac_ext
6212 if $ac_preproc_ok; then :
6213 break
6214 fi
6215
6216 done
6217 ac_cv_prog_CXXCPP=$CXXCPP
6218
6219 fi
6220 CXXCPP=$ac_cv_prog_CXXCPP
6221 else
6222 ac_cv_prog_CXXCPP=$CXXCPP
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6225 $as_echo "$CXXCPP" >&6; }
6226 ac_preproc_ok=false
6227 for ac_cxx_preproc_warn_flag in '' yes
6228 do
6229 # Use a header file that comes with gcc, so configuring glibc
6230 # with a fresh cross-compiler works.
6231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 # <limits.h> exists even on freestanding compilers.
6233 # On the NeXT, cc -E runs the code through the compiler's parser,
6234 # not just through cpp. "Syntax error" is here to catch this case.
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #ifdef __STDC__
6238 # include <limits.h>
6239 #else
6240 # include <assert.h>
6241 #endif
6242 Syntax error
6243 _ACEOF
6244 if ac_fn_cxx_try_cpp "$LINENO"; then :
6245
6246 else
6247 # Broken: fails on valid input.
6248 continue
6249 fi
6250 rm -f conftest.err conftest.i conftest.$ac_ext
6251
6252 # OK, works on sane cases. Now check whether nonexistent headers
6253 # can be detected and how.
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <ac_nonexistent.h>
6257 _ACEOF
6258 if ac_fn_cxx_try_cpp "$LINENO"; then :
6259 # Broken: success on invalid input.
6260 continue
6261 else
6262 # Passes both tests.
6263 ac_preproc_ok=:
6264 break
6265 fi
6266 rm -f conftest.err conftest.i conftest.$ac_ext
6267
6268 done
6269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270 rm -f conftest.i conftest.err conftest.$ac_ext
6271 if $ac_preproc_ok; then :
6272
6273 else
6274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6276 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6277 See \`config.log' for more details" "$LINENO" 5; }
6278 fi
6279
6280 ac_ext=c
6281 ac_cpp='$CPP $CPPFLAGS'
6282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285
6286
6287
6288 save_cross_compiling=$cross_compiling
6289 save_ac_tool_prefix=$ac_tool_prefix
6290 cross_compiling=no
6291 ac_tool_prefix=
6292
6293 ac_ext=cpp
6294 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6295 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6296 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6298 if test -z "$CXX_FOR_BUILD"; then
6299 if test -n "$CCC"; then
6300 CXX_FOR_BUILD=$CCC
6301 else
6302 if test -n "$ac_tool_prefix"; then
6303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6304 do
6305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$CXX_FOR_BUILD"; then
6313 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6333 if test -n "$CXX_FOR_BUILD"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6335 $as_echo "$CXX_FOR_BUILD" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 test -n "$CXX_FOR_BUILD" && break
6343 done
6344 fi
6345 if test -z "$CXX_FOR_BUILD"; then
6346 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6348 do
6349 # Extract the first word of "$ac_prog", so it can be a program name with args.
6350 set dummy $ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6357 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6377 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6379 $as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386 test -n "$ac_ct_CXX_FOR_BUILD" && break
6387 done
6388
6389 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6390 CXX_FOR_BUILD="g++"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6399 fi
6400 fi
6401
6402 fi
6403 fi
6404 # Provide some information about the compiler.
6405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6406 set X $ac_build_compile
6407 ac_compiler=$2
6408 for ac_option in --version -v -V -qversion; do
6409 { { ac_try="$ac_compiler $ac_option >&5"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415 $as_echo "$ac_try_echo"; } >&5
6416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6417 ac_status=$?
6418 if test -s conftest.err; then
6419 sed '10a\
6420 ... rest of stderr output deleted ...
6421 10q' conftest.err >conftest.er1
6422 cat conftest.er1 >&5
6423 fi
6424 rm -f conftest.er1 conftest.err
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }
6427 done
6428
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6430 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6431 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436
6437 int
6438 main ()
6439 {
6440 #ifndef __GNUC__
6441 choke me
6442 #endif
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 if ac_fn_cxx_try_compile "$LINENO"; then :
6449 ac_compiler_gnu=yes
6450 else
6451 ac_compiler_gnu=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455
6456 fi
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6458 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6459 if test $ac_compiler_gnu = yes; then
6460 GXX=yes
6461 else
6462 GXX=
6463 fi
6464 ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6465 ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6467 $as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6468 if ${ac_cv_build_prog_cxx_g+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6472 ac_cxx_werror_flag=yes
6473 ac_cv_build_prog_cxx_g=no
6474 CXXFLAGS_FOR_BUILD="-g"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 int
6479 main ()
6480 {
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_cxx_try_compile "$LINENO"; then :
6487 ac_cv_build_prog_cxx_g=yes
6488 else
6489 CXXFLAGS_FOR_BUILD=""
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492
6493 int
6494 main ()
6495 {
6496
6497 ;
6498 return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_cxx_try_compile "$LINENO"; then :
6502
6503 else
6504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6505 CXXFLAGS_FOR_BUILD="-g"
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508
6509 int
6510 main ()
6511 {
6512
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_cxx_try_compile "$LINENO"; then :
6518 ac_cv_build_prog_cxx_g=yes
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6528 $as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6529 if test "$ac_test_CXXFLAGS" = set; then
6530 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6531 elif test $ac_cv_build_prog_cxx_g = yes; then
6532 if test "$GXX" = yes; then
6533 CXXFLAGS_FOR_BUILD="-g -O2"
6534 else
6535 CXXFLAGS_FOR_BUILD="-g"
6536 fi
6537 else
6538 if test "$GXX" = yes; then
6539 CXXFLAGS_FOR_BUILD="-O2"
6540 else
6541 CXXFLAGS_FOR_BUILD=
6542 fi
6543 fi
6544 ac_ext=c
6545 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6546 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6547 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550 depcc="$CXX_FOR_BUILD" am_compiler_list=
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6553 $as_echo_n "checking dependency style of $depcc... " >&6; }
6554 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6558 # We make a subdir and do the tests there. Otherwise we can end up
6559 # making bogus files that we don't know about and never remove. For
6560 # instance it was reported that on HP-UX the gcc test will end up
6561 # making a dummy file named 'D' -- because '-MD' means "put the output
6562 # in D".
6563 rm -rf conftest.dir
6564 mkdir conftest.dir
6565 # Copy depcomp to subdir because otherwise we won't find it if we're
6566 # using a relative directory.
6567 cp "$am_depcomp" conftest.dir
6568 cd conftest.dir
6569 # We will build objects and dependencies in a subdirectory because
6570 # it helps to detect inapplicable dependency modes. For instance
6571 # both Tru64's cc and ICC support -MD to output dependencies as a
6572 # side effect of compilation, but ICC will put the dependencies in
6573 # the current directory while Tru64 will put them in the object
6574 # directory.
6575 mkdir sub
6576
6577 am_cv_CXX_dependencies_compiler_type=none
6578 if test "$am_compiler_list" = ""; then
6579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6580 fi
6581 am__universal=false
6582 case " $depcc " in #(
6583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6584 esac
6585
6586 for depmode in $am_compiler_list; do
6587 # Setup a source with many dependencies, because some compilers
6588 # like to wrap large dependency lists on column 80 (with \), and
6589 # we should not choose a depcomp mode which is confused by this.
6590 #
6591 # We need to recreate these files for each test, as the compiler may
6592 # overwrite some of them when testing with obscure command lines.
6593 # This happens at least with the AIX C compiler.
6594 : > sub/conftest.c
6595 for i in 1 2 3 4 5 6; do
6596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6597 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6598 # Solaris 10 /bin/sh.
6599 echo '/* dummy */' > sub/conftst$i.h
6600 done
6601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6602
6603 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6604 # mode. It turns out that the SunPro C++ compiler does not properly
6605 # handle '-M -o', and we need to detect this. Also, some Intel
6606 # versions had trouble with output in subdirs.
6607 am__obj=sub/conftest.${OBJEXT-o}
6608 am__minus_obj="-o $am__obj"
6609 case $depmode in
6610 gcc)
6611 # This depmode causes a compiler race in universal mode.
6612 test "$am__universal" = false || continue
6613 ;;
6614 nosideeffect)
6615 # After this tag, mechanisms are not by side-effect, so they'll
6616 # only be used when explicitly requested.
6617 if test "x$enable_dependency_tracking" = xyes; then
6618 continue
6619 else
6620 break
6621 fi
6622 ;;
6623 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6624 # This compiler won't grok '-c -o', but also, the minuso test has
6625 # not run yet. These depmodes are late enough in the game, and
6626 # so weak that their functioning should not be impacted.
6627 am__obj=conftest.${OBJEXT-o}
6628 am__minus_obj=
6629 ;;
6630 none) break ;;
6631 esac
6632 if depmode=$depmode \
6633 source=sub/conftest.c object=$am__obj \
6634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6636 >/dev/null 2>conftest.err &&
6637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6641 # icc doesn't choke on unknown options, it will just issue warnings
6642 # or remarks (even with -Werror). So we grep stderr for any message
6643 # that says an option was ignored or not supported.
6644 # When given -MP, icc 7.0 and 7.1 complain thusly:
6645 # icc: Command line warning: ignoring option '-M'; no argument required
6646 # The diagnosis changed in icc 8.0:
6647 # icc: Command line remark: option '-MP' not supported
6648 if (grep 'ignoring option' conftest.err ||
6649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6650 am_cv_CXX_dependencies_compiler_type=$depmode
6651 break
6652 fi
6653 fi
6654 done
6655
6656 cd ..
6657 rm -rf conftest.dir
6658 else
6659 am_cv_CXX_dependencies_compiler_type=none
6660 fi
6661
6662 fi
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6664 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6665 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6666
6667 if
6668 test "x$enable_dependency_tracking" != xno \
6669 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6670 am__fastdepCXX_TRUE=
6671 am__fastdepCXX_FALSE='#'
6672 else
6673 am__fastdepCXX_TRUE='#'
6674 am__fastdepCXX_FALSE=
6675 fi
6676
6677
6678 ac_ext=cpp
6679 ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6680 ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6681 ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6684 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6685 if test -z "$CXXCPP_FOR_BUILD"; then
6686 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 # Double quotes because CXXCPP needs to be expanded
6690 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6691 do
6692 ac_preproc_ok=false
6693 for ac_cxx_preproc_warn_flag in '' yes
6694 do
6695 # Use a header file that comes with gcc, so configuring glibc
6696 # with a fresh cross-compiler works.
6697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 # <limits.h> exists even on freestanding compilers.
6699 # On the NeXT, cc -E runs the code through the compiler's parser,
6700 # not just through cpp. "Syntax error" is here to catch this case.
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #ifdef __STDC__
6704 # include <limits.h>
6705 #else
6706 # include <assert.h>
6707 #endif
6708 Syntax error
6709 _ACEOF
6710 if ac_fn_cxx_try_cpp "$LINENO"; then :
6711
6712 else
6713 # Broken: fails on valid input.
6714 continue
6715 fi
6716 rm -f conftest.err conftest.i conftest.$ac_ext
6717
6718 # OK, works on sane cases. Now check whether nonexistent headers
6719 # can be detected and how.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if ac_fn_cxx_try_cpp "$LINENO"; then :
6725 # Broken: success on invalid input.
6726 continue
6727 else
6728 # Passes both tests.
6729 ac_preproc_ok=:
6730 break
6731 fi
6732 rm -f conftest.err conftest.i conftest.$ac_ext
6733
6734 done
6735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6736 rm -f conftest.i conftest.err conftest.$ac_ext
6737 if $ac_preproc_ok; then :
6738 break
6739 fi
6740
6741 done
6742 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6743
6744 fi
6745 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6746 else
6747 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6750 $as_echo "$CXXCPP_FOR_BUILD" >&6; }
6751 ac_preproc_ok=false
6752 for ac_cxx_preproc_warn_flag in '' yes
6753 do
6754 # Use a header file that comes with gcc, so configuring glibc
6755 # with a fresh cross-compiler works.
6756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757 # <limits.h> exists even on freestanding compilers.
6758 # On the NeXT, cc -E runs the code through the compiler's parser,
6759 # not just through cpp. "Syntax error" is here to catch this case.
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #ifdef __STDC__
6763 # include <limits.h>
6764 #else
6765 # include <assert.h>
6766 #endif
6767 Syntax error
6768 _ACEOF
6769 if ac_fn_cxx_try_cpp "$LINENO"; then :
6770
6771 else
6772 # Broken: fails on valid input.
6773 continue
6774 fi
6775 rm -f conftest.err conftest.i conftest.$ac_ext
6776
6777 # OK, works on sane cases. Now check whether nonexistent headers
6778 # can be detected and how.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <ac_nonexistent.h>
6782 _ACEOF
6783 if ac_fn_cxx_try_cpp "$LINENO"; then :
6784 # Broken: success on invalid input.
6785 continue
6786 else
6787 # Passes both tests.
6788 ac_preproc_ok=:
6789 break
6790 fi
6791 rm -f conftest.err conftest.i conftest.$ac_ext
6792
6793 done
6794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6795 rm -f conftest.i conftest.err conftest.$ac_ext
6796 if $ac_preproc_ok; then :
6797
6798 else
6799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6801 as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6802 See \`config.log' for more details" "$LINENO" 5; }
6803 fi
6804
6805 ac_ext=c
6806 ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6807 ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6808 ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811
6812 ac_tool_prefix=$save_ac_tool_prefix
6813 cross_compiling=$save_cross_compiling
6814
6815
6816
6817
6818
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in ar lib "link -lib"
6821 do
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_AR+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$AR"; then
6830 ac_cv_prog_AR="$AR" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 AR=$ac_cv_prog_AR
6850 if test -n "$AR"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6852 $as_echo "$AR" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 test -n "$AR" && break
6860 done
6861 fi
6862 if test -z "$AR"; then
6863 ac_ct_AR=$AR
6864 for ac_prog in ar lib "link -lib"
6865 do
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_AR"; then
6874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_AR="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6894 if test -n "$ac_ct_AR"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6896 $as_echo "$ac_ct_AR" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 test -n "$ac_ct_AR" && break
6904 done
6905
6906 if test "x$ac_ct_AR" = x; then
6907 AR="false"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 AR=$ac_ct_AR
6916 fi
6917 fi
6918
6919 : ${AR=ar}
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6922 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6923 if ${am_cv_ar_interface+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932 am_cv_ar_interface=ar
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 int some_variable = 0;
6936 _ACEOF
6937 if ac_fn_c_try_compile "$LINENO"; then :
6938 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6940 (eval $am_ar_try) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }
6944 if test "$ac_status" -eq 0; then
6945 am_cv_ar_interface=ar
6946 else
6947 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6949 (eval $am_ar_try) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }
6953 if test "$ac_status" -eq 0; then
6954 am_cv_ar_interface=lib
6955 else
6956 am_cv_ar_interface=unknown
6957 fi
6958 fi
6959 rm -f conftest.lib libconftest.a
6960
6961 fi
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6971 $as_echo "$am_cv_ar_interface" >&6; }
6972
6973 case $am_cv_ar_interface in
6974 ar)
6975 ;;
6976 lib)
6977 # Microsoft lib, so override with the ar-lib wrapper script.
6978 # FIXME: It is wrong to rewrite AR.
6979 # But if we don't then we get into trouble of one sort or another.
6980 # A longer-term fix would be to have automake use am__AR in this case,
6981 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6982 # similar.
6983 AR="$am_aux_dir/ar-lib $AR"
6984 ;;
6985 unknown)
6986 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6987 ;;
6988 esac
6989
6990
6991
6992 case `pwd` in
6993 *\ * | *\ *)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6995 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6996 esac
6997
6998
6999
7000 macro_version='2.4.6'
7001 macro_revision='2.4.6'
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 ltmain=$ac_aux_dir/ltmain.sh
7016
7017 # Backslashify metacharacters that are still active within
7018 # double-quoted strings.
7019 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7020
7021 # Same as above, but do not quote variable references.
7022 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7023
7024 # Sed substitution to delay expansion of an escaped shell variable in a
7025 # double_quote_subst'ed string.
7026 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7027
7028 # Sed substitution to delay expansion of an escaped single quote.
7029 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7030
7031 # Sed substitution to avoid accidental globbing in evaled expressions
7032 no_glob_subst='s/\*/\\\*/g'
7033
7034 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7039 $as_echo_n "checking how to print strings... " >&6; }
7040 # Test print first, because it will be a builtin if present.
7041 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7043 ECHO='print -r --'
7044 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7045 ECHO='printf %s\n'
7046 else
7047 # Use this function as a fallback that always works.
7048 func_fallback_echo ()
7049 {
7050 eval 'cat <<_LTECHO_EOF
7051 $1
7052 _LTECHO_EOF'
7053 }
7054 ECHO='func_fallback_echo'
7055 fi
7056
7057 # func_echo_all arg...
7058 # Invoke $ECHO with all args, space-separated.
7059 func_echo_all ()
7060 {
7061 $ECHO ""
7062 }
7063
7064 case $ECHO in
7065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7066 $as_echo "printf" >&6; } ;;
7067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7068 $as_echo "print -r" >&6; } ;;
7069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7070 $as_echo "cat" >&6; } ;;
7071 esac
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7087 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7088 if ${ac_cv_path_SED+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7092 for ac_i in 1 2 3 4 5 6 7; do
7093 ac_script="$ac_script$as_nl$ac_script"
7094 done
7095 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7096 { ac_script=; unset ac_script;}
7097 if test -z "$SED"; then
7098 ac_path_SED_found=false
7099 # Loop through the user's path and test for each of PROGNAME-LIST
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_prog in sed gsed; do
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7108 as_fn_executable_p "$ac_path_SED" || continue
7109 # Check for GNU ac_path_SED and select it if it is found.
7110 # Check for GNU $ac_path_SED
7111 case `"$ac_path_SED" --version 2>&1` in
7112 *GNU*)
7113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7114 *)
7115 ac_count=0
7116 $as_echo_n 0123456789 >"conftest.in"
7117 while :
7118 do
7119 cat "conftest.in" "conftest.in" >"conftest.tmp"
7120 mv "conftest.tmp" "conftest.in"
7121 cp "conftest.in" "conftest.nl"
7122 $as_echo '' >> "conftest.nl"
7123 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7125 as_fn_arith $ac_count + 1 && ac_count=$as_val
7126 if test $ac_count -gt ${ac_path_SED_max-0}; then
7127 # Best one so far, save it but keep looking for a better one
7128 ac_cv_path_SED="$ac_path_SED"
7129 ac_path_SED_max=$ac_count
7130 fi
7131 # 10*(2^10) chars as input seems more than enough
7132 test $ac_count -gt 10 && break
7133 done
7134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7135 esac
7136
7137 $ac_path_SED_found && break 3
7138 done
7139 done
7140 done
7141 IFS=$as_save_IFS
7142 if test -z "$ac_cv_path_SED"; then
7143 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7144 fi
7145 else
7146 ac_cv_path_SED=$SED
7147 fi
7148
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7151 $as_echo "$ac_cv_path_SED" >&6; }
7152 SED="$ac_cv_path_SED"
7153 rm -f conftest.sed
7154
7155 test -z "$SED" && SED=sed
7156 Xsed="$SED -e 1s/^X//"
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7170 if ${ac_cv_path_GREP+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -z "$GREP"; then
7174 ac_path_GREP_found=false
7175 # Loop through the user's path and test for each of PROGNAME-LIST
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_prog in grep ggrep; do
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7184 as_fn_executable_p "$ac_path_GREP" || continue
7185 # Check for GNU ac_path_GREP and select it if it is found.
7186 # Check for GNU $ac_path_GREP
7187 case `"$ac_path_GREP" --version 2>&1` in
7188 *GNU*)
7189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7190 *)
7191 ac_count=0
7192 $as_echo_n 0123456789 >"conftest.in"
7193 while :
7194 do
7195 cat "conftest.in" "conftest.in" >"conftest.tmp"
7196 mv "conftest.tmp" "conftest.in"
7197 cp "conftest.in" "conftest.nl"
7198 $as_echo 'GREP' >> "conftest.nl"
7199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7201 as_fn_arith $ac_count + 1 && ac_count=$as_val
7202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7203 # Best one so far, save it but keep looking for a better one
7204 ac_cv_path_GREP="$ac_path_GREP"
7205 ac_path_GREP_max=$ac_count
7206 fi
7207 # 10*(2^10) chars as input seems more than enough
7208 test $ac_count -gt 10 && break
7209 done
7210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7211 esac
7212
7213 $ac_path_GREP_found && break 3
7214 done
7215 done
7216 done
7217 IFS=$as_save_IFS
7218 if test -z "$ac_cv_path_GREP"; then
7219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7220 fi
7221 else
7222 ac_cv_path_GREP=$GREP
7223 fi
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7227 $as_echo "$ac_cv_path_GREP" >&6; }
7228 GREP="$ac_cv_path_GREP"
7229
7230
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7232 $as_echo_n "checking for egrep... " >&6; }
7233 if ${ac_cv_path_EGREP+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7237 then ac_cv_path_EGREP="$GREP -E"
7238 else
7239 if test -z "$EGREP"; then
7240 ac_path_EGREP_found=false
7241 # Loop through the user's path and test for each of PROGNAME-LIST
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7244 do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_prog in egrep; do
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7250 as_fn_executable_p "$ac_path_EGREP" || continue
7251 # Check for GNU ac_path_EGREP and select it if it is found.
7252 # Check for GNU $ac_path_EGREP
7253 case `"$ac_path_EGREP" --version 2>&1` in
7254 *GNU*)
7255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7256 *)
7257 ac_count=0
7258 $as_echo_n 0123456789 >"conftest.in"
7259 while :
7260 do
7261 cat "conftest.in" "conftest.in" >"conftest.tmp"
7262 mv "conftest.tmp" "conftest.in"
7263 cp "conftest.in" "conftest.nl"
7264 $as_echo 'EGREP' >> "conftest.nl"
7265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7267 as_fn_arith $ac_count + 1 && ac_count=$as_val
7268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7269 # Best one so far, save it but keep looking for a better one
7270 ac_cv_path_EGREP="$ac_path_EGREP"
7271 ac_path_EGREP_max=$ac_count
7272 fi
7273 # 10*(2^10) chars as input seems more than enough
7274 test $ac_count -gt 10 && break
7275 done
7276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7277 esac
7278
7279 $ac_path_EGREP_found && break 3
7280 done
7281 done
7282 done
7283 IFS=$as_save_IFS
7284 if test -z "$ac_cv_path_EGREP"; then
7285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7286 fi
7287 else
7288 ac_cv_path_EGREP=$EGREP
7289 fi
7290
7291 fi
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7294 $as_echo "$ac_cv_path_EGREP" >&6; }
7295 EGREP="$ac_cv_path_EGREP"
7296
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7299 $as_echo_n "checking for fgrep... " >&6; }
7300 if ${ac_cv_path_FGREP+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7304 then ac_cv_path_FGREP="$GREP -F"
7305 else
7306 if test -z "$FGREP"; then
7307 ac_path_FGREP_found=false
7308 # Loop through the user's path and test for each of PROGNAME-LIST
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7311 do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_prog in fgrep; do
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7317 as_fn_executable_p "$ac_path_FGREP" || continue
7318 # Check for GNU ac_path_FGREP and select it if it is found.
7319 # Check for GNU $ac_path_FGREP
7320 case `"$ac_path_FGREP" --version 2>&1` in
7321 *GNU*)
7322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7323 *)
7324 ac_count=0
7325 $as_echo_n 0123456789 >"conftest.in"
7326 while :
7327 do
7328 cat "conftest.in" "conftest.in" >"conftest.tmp"
7329 mv "conftest.tmp" "conftest.in"
7330 cp "conftest.in" "conftest.nl"
7331 $as_echo 'FGREP' >> "conftest.nl"
7332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7334 as_fn_arith $ac_count + 1 && ac_count=$as_val
7335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7336 # Best one so far, save it but keep looking for a better one
7337 ac_cv_path_FGREP="$ac_path_FGREP"
7338 ac_path_FGREP_max=$ac_count
7339 fi
7340 # 10*(2^10) chars as input seems more than enough
7341 test $ac_count -gt 10 && break
7342 done
7343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7344 esac
7345
7346 $ac_path_FGREP_found && break 3
7347 done
7348 done
7349 done
7350 IFS=$as_save_IFS
7351 if test -z "$ac_cv_path_FGREP"; then
7352 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7353 fi
7354 else
7355 ac_cv_path_FGREP=$FGREP
7356 fi
7357
7358 fi
7359 fi
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7361 $as_echo "$ac_cv_path_FGREP" >&6; }
7362 FGREP="$ac_cv_path_FGREP"
7363
7364
7365 test -z "$GREP" && GREP=grep
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385 # Check whether --with-gnu-ld was given.
7386 if test "${with_gnu_ld+set}" = set; then :
7387 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7388 else
7389 with_gnu_ld=no
7390 fi
7391
7392 ac_prog=ld
7393 if test yes = "$GCC"; then
7394 # Check if gcc -print-prog-name=ld gives a path.
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7396 $as_echo_n "checking for ld used by $CC... " >&6; }
7397 case $host in
7398 *-*-mingw*)
7399 # gcc leaves a trailing carriage return, which upsets mingw
7400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7401 *)
7402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7403 esac
7404 case $ac_prog in
7405 # Accept absolute paths.
7406 [\\/]* | ?:[\\/]*)
7407 re_direlt='/[^/][^/]*/\.\./'
7408 # Canonicalize the pathname of ld
7409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7412 done
7413 test -z "$LD" && LD=$ac_prog
7414 ;;
7415 "")
7416 # If it fails, then pretend we aren't using GCC.
7417 ac_prog=ld
7418 ;;
7419 *)
7420 # If it is relative, then search for the first ld in PATH.
7421 with_gnu_ld=unknown
7422 ;;
7423 esac
7424 elif test yes = "$with_gnu_ld"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7426 $as_echo_n "checking for GNU ld... " >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7429 $as_echo_n "checking for non-GNU ld... " >&6; }
7430 fi
7431 if ${lt_cv_path_LD+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test -z "$LD"; then
7435 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7436 for ac_dir in $PATH; do
7437 IFS=$lt_save_ifs
7438 test -z "$ac_dir" && ac_dir=.
7439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7440 lt_cv_path_LD=$ac_dir/$ac_prog
7441 # Check to see if the program is GNU ld. I'd rather use --version,
7442 # but apparently some variants of GNU ld only accept -v.
7443 # Break only if it was the GNU/non-GNU ld that we prefer.
7444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7445 *GNU* | *'with BFD'*)
7446 test no != "$with_gnu_ld" && break
7447 ;;
7448 *)
7449 test yes != "$with_gnu_ld" && break
7450 ;;
7451 esac
7452 fi
7453 done
7454 IFS=$lt_save_ifs
7455 else
7456 lt_cv_path_LD=$LD # Let the user override the test with a path.
7457 fi
7458 fi
7459
7460 LD=$lt_cv_path_LD
7461 if test -n "$LD"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7463 $as_echo "$LD" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 fi
7468 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7471 if ${lt_cv_prog_gnu_ld+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7475 case `$LD -v 2>&1 </dev/null` in
7476 *GNU* | *'with BFD'*)
7477 lt_cv_prog_gnu_ld=yes
7478 ;;
7479 *)
7480 lt_cv_prog_gnu_ld=no
7481 ;;
7482 esac
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7486 with_gnu_ld=$lt_cv_prog_gnu_ld
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7497 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7498 if ${lt_cv_path_NM+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$NM"; then
7502 # Let the user override the test.
7503 lt_cv_path_NM=$NM
7504 else
7505 lt_nm_to_check=${ac_tool_prefix}nm
7506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7507 lt_nm_to_check="$lt_nm_to_check nm"
7508 fi
7509 for lt_tmp_nm in $lt_nm_to_check; do
7510 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7512 IFS=$lt_save_ifs
7513 test -z "$ac_dir" && ac_dir=.
7514 tmp_nm=$ac_dir/$lt_tmp_nm
7515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7516 # Check to see if the nm accepts a BSD-compat flag.
7517 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7518 # nm: unknown option "B" ignored
7519 # Tru64's nm complains that /dev/null is an invalid object file
7520 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7521 case $build_os in
7522 mingw*) lt_bad_file=conftest.nm/nofile ;;
7523 *) lt_bad_file=/dev/null ;;
7524 esac
7525 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7526 *$lt_bad_file* | *'Invalid file or object type'*)
7527 lt_cv_path_NM="$tmp_nm -B"
7528 break 2
7529 ;;
7530 *)
7531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7532 */dev/null*)
7533 lt_cv_path_NM="$tmp_nm -p"
7534 break 2
7535 ;;
7536 *)
7537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7538 continue # so that we can try to find one that supports BSD flags
7539 ;;
7540 esac
7541 ;;
7542 esac
7543 fi
7544 done
7545 IFS=$lt_save_ifs
7546 done
7547 : ${lt_cv_path_NM=no}
7548 fi
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7551 $as_echo "$lt_cv_path_NM" >&6; }
7552 if test no != "$lt_cv_path_NM"; then
7553 NM=$lt_cv_path_NM
7554 else
7555 # Didn't find any BSD compatible name lister, look for dumpbin.
7556 if test -n "$DUMPBIN"; then :
7557 # Let the user override the test.
7558 else
7559 if test -n "$ac_tool_prefix"; then
7560 for ac_prog in dumpbin "link -dump"
7561 do
7562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_DUMPBIN+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$DUMPBIN"; then
7570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 DUMPBIN=$ac_cv_prog_DUMPBIN
7590 if test -n "$DUMPBIN"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7592 $as_echo "$DUMPBIN" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598
7599 test -n "$DUMPBIN" && break
7600 done
7601 fi
7602 if test -z "$DUMPBIN"; then
7603 ac_ct_DUMPBIN=$DUMPBIN
7604 for ac_prog in dumpbin "link -dump"
7605 do
7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
7607 set dummy $ac_prog; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$ac_ct_DUMPBIN"; then
7614 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7634 if test -n "$ac_ct_DUMPBIN"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7636 $as_echo "$ac_ct_DUMPBIN" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 test -n "$ac_ct_DUMPBIN" && break
7644 done
7645
7646 if test "x$ac_ct_DUMPBIN" = x; then
7647 DUMPBIN=":"
7648 else
7649 case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655 DUMPBIN=$ac_ct_DUMPBIN
7656 fi
7657 fi
7658
7659 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7660 *COFF*)
7661 DUMPBIN="$DUMPBIN -symbols -headers"
7662 ;;
7663 *)
7664 DUMPBIN=:
7665 ;;
7666 esac
7667 fi
7668
7669 if test : != "$DUMPBIN"; then
7670 NM=$DUMPBIN
7671 fi
7672 fi
7673 test -z "$NM" && NM=nm
7674
7675
7676
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7681 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7682 if ${lt_cv_nm_interface+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 lt_cv_nm_interface="BSD nm"
7686 echo "int some_variable = 0;" > conftest.$ac_ext
7687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7688 (eval "$ac_compile" 2>conftest.err)
7689 cat conftest.err >&5
7690 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7691 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7692 cat conftest.err >&5
7693 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7694 cat conftest.out >&5
7695 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7696 lt_cv_nm_interface="MS dumpbin"
7697 fi
7698 rm -rf conftest*
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7701 $as_echo "$lt_cv_nm_interface" >&6; }
7702
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7704 $as_echo_n "checking whether ln -s works... " >&6; }
7705 LN_S=$as_ln_s
7706 if test "$LN_S" = "ln -s"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708 $as_echo "yes" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7711 $as_echo "no, using $LN_S" >&6; }
7712 fi
7713
7714 # find the maximum length of command line arguments
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7716 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7717 if ${lt_cv_sys_max_cmd_len+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 i=0
7721 teststring=ABCD
7722
7723 case $build_os in
7724 msdosdjgpp*)
7725 # On DJGPP, this test can blow up pretty badly due to problems in libc
7726 # (any single argument exceeding 2000 bytes causes a buffer overrun
7727 # during glob expansion). Even if it were fixed, the result of this
7728 # check would be larger than it should be.
7729 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7730 ;;
7731
7732 gnu*)
7733 # Under GNU Hurd, this test is not required because there is
7734 # no limit to the length of command line arguments.
7735 # Libtool will interpret -1 as no limit whatsoever
7736 lt_cv_sys_max_cmd_len=-1;
7737 ;;
7738
7739 cygwin* | mingw* | cegcc*)
7740 # On Win9x/ME, this test blows up -- it succeeds, but takes
7741 # about 5 minutes as the teststring grows exponentially.
7742 # Worse, since 9x/ME are not pre-emptively multitasking,
7743 # you end up with a "frozen" computer, even though with patience
7744 # the test eventually succeeds (with a max line length of 256k).
7745 # Instead, let's just punt: use the minimum linelength reported by
7746 # all of the supported platforms: 8192 (on NT/2K/XP).
7747 lt_cv_sys_max_cmd_len=8192;
7748 ;;
7749
7750 mint*)
7751 # On MiNT this can take a long time and run out of memory.
7752 lt_cv_sys_max_cmd_len=8192;
7753 ;;
7754
7755 amigaos*)
7756 # On AmigaOS with pdksh, this test takes hours, literally.
7757 # So we just punt and use a minimum line length of 8192.
7758 lt_cv_sys_max_cmd_len=8192;
7759 ;;
7760
7761 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7762 # This has been around since 386BSD, at least. Likely further.
7763 if test -x /sbin/sysctl; then
7764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7765 elif test -x /usr/sbin/sysctl; then
7766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7767 else
7768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7769 fi
7770 # And add a safety zone
7771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7773 ;;
7774
7775 interix*)
7776 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7777 lt_cv_sys_max_cmd_len=196608
7778 ;;
7779
7780 os2*)
7781 # The test takes a long time on OS/2.
7782 lt_cv_sys_max_cmd_len=8192
7783 ;;
7784
7785 osf*)
7786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7788 # nice to cause kernel panics so lets avoid the loop below.
7789 # First set a reasonable default.
7790 lt_cv_sys_max_cmd_len=16384
7791 #
7792 if test -x /sbin/sysconfig; then
7793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7794 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7795 esac
7796 fi
7797 ;;
7798 sco3.2v5*)
7799 lt_cv_sys_max_cmd_len=102400
7800 ;;
7801 sysv5* | sco5v6* | sysv4.2uw2*)
7802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7803 if test -n "$kargmax"; then
7804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7805 else
7806 lt_cv_sys_max_cmd_len=32768
7807 fi
7808 ;;
7809 *)
7810 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7811 if test -n "$lt_cv_sys_max_cmd_len" && \
7812 test undefined != "$lt_cv_sys_max_cmd_len"; then
7813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7815 else
7816 # Make teststring a little bigger before we do anything with it.
7817 # a 1K string should be a reasonable start.
7818 for i in 1 2 3 4 5 6 7 8; do
7819 teststring=$teststring$teststring
7820 done
7821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7822 # If test is not a shell built-in, we'll probably end up computing a
7823 # maximum length that is only half of the actual maximum length, but
7824 # we can't tell.
7825 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7826 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7827 test 17 != "$i" # 1/2 MB should be enough
7828 do
7829 i=`expr $i + 1`
7830 teststring=$teststring$teststring
7831 done
7832 # Only check the string length outside the loop.
7833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7834 teststring=
7835 # Add a significant safety factor because C++ compilers can tack on
7836 # massive amounts of additional arguments before passing them to the
7837 # linker. It appears as though 1/2 is a usable value.
7838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7839 fi
7840 ;;
7841 esac
7842
7843 fi
7844
7845 if test -n "$lt_cv_sys_max_cmd_len"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7847 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7850 $as_echo "none" >&6; }
7851 fi
7852 max_cmd_len=$lt_cv_sys_max_cmd_len
7853
7854
7855
7856
7857
7858
7859 : ${CP="cp -f"}
7860 : ${MV="mv -f"}
7861 : ${RM="rm -f"}
7862
7863 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7864 lt_unset=unset
7865 else
7866 lt_unset=false
7867 fi
7868
7869
7870
7871
7872
7873 # test EBCDIC or ASCII
7874 case `echo X|tr X '\101'` in
7875 A) # ASCII based system
7876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7877 lt_SP2NL='tr \040 \012'
7878 lt_NL2SP='tr \015\012 \040\040'
7879 ;;
7880 *) # EBCDIC based system
7881 lt_SP2NL='tr \100 \n'
7882 lt_NL2SP='tr \r\n \100\100'
7883 ;;
7884 esac
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7895 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7896 if ${lt_cv_to_host_file_cmd+:} false; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 case $host in
7900 *-*-mingw* )
7901 case $build in
7902 *-*-mingw* ) # actually msys
7903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7904 ;;
7905 *-*-cygwin* )
7906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7907 ;;
7908 * ) # otherwise, assume *nix
7909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7910 ;;
7911 esac
7912 ;;
7913 *-*-cygwin* )
7914 case $build in
7915 *-*-mingw* ) # actually msys
7916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7917 ;;
7918 *-*-cygwin* )
7919 lt_cv_to_host_file_cmd=func_convert_file_noop
7920 ;;
7921 * ) # otherwise, assume *nix
7922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7923 ;;
7924 esac
7925 ;;
7926 * ) # unhandled hosts (and "normal" native builds)
7927 lt_cv_to_host_file_cmd=func_convert_file_noop
7928 ;;
7929 esac
7930
7931 fi
7932
7933 to_host_file_cmd=$lt_cv_to_host_file_cmd
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7935 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7936
7937
7938
7939
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7942 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7943 if ${lt_cv_to_tool_file_cmd+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 #assume ordinary cross tools, or native build.
7947 lt_cv_to_tool_file_cmd=func_convert_file_noop
7948 case $host in
7949 *-*-mingw* )
7950 case $build in
7951 *-*-mingw* ) # actually msys
7952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7953 ;;
7954 esac
7955 ;;
7956 esac
7957
7958 fi
7959
7960 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7962 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7963
7964
7965
7966
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7969 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7970 if ${lt_cv_ld_reload_flag+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 lt_cv_ld_reload_flag='-r'
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7976 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7977 reload_flag=$lt_cv_ld_reload_flag
7978 case $reload_flag in
7979 "" | " "*) ;;
7980 *) reload_flag=" $reload_flag" ;;
7981 esac
7982 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7983 case $host_os in
7984 cygwin* | mingw* | pw32* | cegcc*)
7985 if test yes != "$GCC"; then
7986 reload_cmds=false
7987 fi
7988 ;;
7989 darwin*)
7990 if test yes = "$GCC"; then
7991 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7992 else
7993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7994 fi
7995 ;;
7996 esac
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 if test -n "$ac_tool_prefix"; then
8007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_OBJDUMP+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test -n "$OBJDUMP"; then
8015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 OBJDUMP=$ac_cv_prog_OBJDUMP
8035 if test -n "$OBJDUMP"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8037 $as_echo "$OBJDUMP" >&6; }
8038 else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044 fi
8045 if test -z "$ac_cv_prog_OBJDUMP"; then
8046 ac_ct_OBJDUMP=$OBJDUMP
8047 # Extract the first word of "objdump", so it can be a program name with args.
8048 set dummy objdump; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 if test -n "$ac_ct_OBJDUMP"; then
8055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8075 if test -n "$ac_ct_OBJDUMP"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8077 $as_echo "$ac_ct_OBJDUMP" >&6; }
8078 else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083 if test "x$ac_ct_OBJDUMP" = x; then
8084 OBJDUMP="false"
8085 else
8086 case $cross_compiling:$ac_tool_warned in
8087 yes:)
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090 ac_tool_warned=yes ;;
8091 esac
8092 OBJDUMP=$ac_ct_OBJDUMP
8093 fi
8094 else
8095 OBJDUMP="$ac_cv_prog_OBJDUMP"
8096 fi
8097
8098 test -z "$OBJDUMP" && OBJDUMP=objdump
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8109 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8110 if ${lt_cv_deplibs_check_method+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 lt_cv_file_magic_cmd='$MAGIC_CMD'
8114 lt_cv_file_magic_test_file=
8115 lt_cv_deplibs_check_method='unknown'
8116 # Need to set the preceding variable on all platforms that support
8117 # interlibrary dependencies.
8118 # 'none' -- dependencies not supported.
8119 # 'unknown' -- same as none, but documents that we really don't know.
8120 # 'pass_all' -- all dependencies passed with no checks.
8121 # 'test_compile' -- check by making test program.
8122 # 'file_magic [[regex]]' -- check by looking for files in library path
8123 # that responds to the $file_magic_cmd with a given extended regex.
8124 # If you have 'file' or equivalent on your system and you're not sure
8125 # whether 'pass_all' will *always* work, you probably want this one.
8126
8127 case $host_os in
8128 aix[4-9]*)
8129 lt_cv_deplibs_check_method=pass_all
8130 ;;
8131
8132 beos*)
8133 lt_cv_deplibs_check_method=pass_all
8134 ;;
8135
8136 bsdi[45]*)
8137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8138 lt_cv_file_magic_cmd='/usr/bin/file -L'
8139 lt_cv_file_magic_test_file=/shlib/libc.so
8140 ;;
8141
8142 cygwin*)
8143 # func_win32_libid is a shell function defined in ltmain.sh
8144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8145 lt_cv_file_magic_cmd='func_win32_libid'
8146 ;;
8147
8148 mingw* | pw32*)
8149 # Base MSYS/MinGW do not provide the 'file' command needed by
8150 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8151 # unless we find 'file', for example because we are cross-compiling.
8152 if ( file / ) >/dev/null 2>&1; then
8153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8154 lt_cv_file_magic_cmd='func_win32_libid'
8155 else
8156 # Keep this pattern in sync with the one in func_win32_libid.
8157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8158 lt_cv_file_magic_cmd='$OBJDUMP -f'
8159 fi
8160 ;;
8161
8162 cegcc*)
8163 # use the weaker test based on 'objdump'. See mingw*.
8164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8165 lt_cv_file_magic_cmd='$OBJDUMP -f'
8166 ;;
8167
8168 darwin* | rhapsody*)
8169 lt_cv_deplibs_check_method=pass_all
8170 ;;
8171
8172 freebsd* | dragonfly*)
8173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8174 case $host_cpu in
8175 i*86 )
8176 # Not sure whether the presence of OpenBSD here was a mistake.
8177 # Let's accept both of them until this is cleared up.
8178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8179 lt_cv_file_magic_cmd=/usr/bin/file
8180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8181 ;;
8182 esac
8183 else
8184 lt_cv_deplibs_check_method=pass_all
8185 fi
8186 ;;
8187
8188 haiku*)
8189 lt_cv_deplibs_check_method=pass_all
8190 ;;
8191
8192 hpux10.20* | hpux11*)
8193 lt_cv_file_magic_cmd=/usr/bin/file
8194 case $host_cpu in
8195 ia64*)
8196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8198 ;;
8199 hppa*64*)
8200 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]'
8201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8202 ;;
8203 *)
8204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8206 ;;
8207 esac
8208 ;;
8209
8210 interix[3-9]*)
8211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8213 ;;
8214
8215 irix5* | irix6* | nonstopux*)
8216 case $LD in
8217 *-32|*"-32 ") libmagic=32-bit;;
8218 *-n32|*"-n32 ") libmagic=N32;;
8219 *-64|*"-64 ") libmagic=64-bit;;
8220 *) libmagic=never-match;;
8221 esac
8222 lt_cv_deplibs_check_method=pass_all
8223 ;;
8224
8225 # This must be glibc/ELF.
8226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8227 lt_cv_deplibs_check_method=pass_all
8228 ;;
8229
8230 netbsd*)
8231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8233 else
8234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8235 fi
8236 ;;
8237
8238 newos6*)
8239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8240 lt_cv_file_magic_cmd=/usr/bin/file
8241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8242 ;;
8243
8244 *nto* | *qnx*)
8245 lt_cv_deplibs_check_method=pass_all
8246 ;;
8247
8248 openbsd* | bitrig*)
8249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8251 else
8252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8253 fi
8254 ;;
8255
8256 osf3* | osf4* | osf5*)
8257 lt_cv_deplibs_check_method=pass_all
8258 ;;
8259
8260 rdos*)
8261 lt_cv_deplibs_check_method=pass_all
8262 ;;
8263
8264 solaris*)
8265 lt_cv_deplibs_check_method=pass_all
8266 ;;
8267
8268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8269 lt_cv_deplibs_check_method=pass_all
8270 ;;
8271
8272 sysv4 | sysv4.3*)
8273 case $host_vendor in
8274 motorola)
8275 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]'
8276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8277 ;;
8278 ncr)
8279 lt_cv_deplibs_check_method=pass_all
8280 ;;
8281 sequent)
8282 lt_cv_file_magic_cmd='/bin/file'
8283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8284 ;;
8285 sni)
8286 lt_cv_file_magic_cmd='/bin/file'
8287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8288 lt_cv_file_magic_test_file=/lib/libc.so
8289 ;;
8290 siemens)
8291 lt_cv_deplibs_check_method=pass_all
8292 ;;
8293 pc)
8294 lt_cv_deplibs_check_method=pass_all
8295 ;;
8296 esac
8297 ;;
8298
8299 tpf*)
8300 lt_cv_deplibs_check_method=pass_all
8301 ;;
8302 os2*)
8303 lt_cv_deplibs_check_method=pass_all
8304 ;;
8305 esac
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8309 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8310
8311 file_magic_glob=
8312 want_nocaseglob=no
8313 if test "$build" = "$host"; then
8314 case $host_os in
8315 mingw* | pw32*)
8316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8317 want_nocaseglob=yes
8318 else
8319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8320 fi
8321 ;;
8322 esac
8323 fi
8324
8325 file_magic_cmd=$lt_cv_file_magic_cmd
8326 deplibs_check_method=$lt_cv_deplibs_check_method
8327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350 if test -n "$ac_tool_prefix"; then
8351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8352 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_DLLTOOL+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$DLLTOOL"; then
8359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8363 do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372 done
8373 done
8374 IFS=$as_save_IFS
8375
8376 fi
8377 fi
8378 DLLTOOL=$ac_cv_prog_DLLTOOL
8379 if test -n "$DLLTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381 $as_echo "$DLLTOOL" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386
8387
8388 fi
8389 if test -z "$ac_cv_prog_DLLTOOL"; then
8390 ac_ct_DLLTOOL=$DLLTOOL
8391 # Extract the first word of "dlltool", so it can be a program name with args.
8392 set dummy dlltool; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$ac_ct_DLLTOOL"; then
8399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412 done
8413 done
8414 IFS=$as_save_IFS
8415
8416 fi
8417 fi
8418 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8419 if test -n "$ac_ct_DLLTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8421 $as_echo "$ac_ct_DLLTOOL" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8425 fi
8426
8427 if test "x$ac_ct_DLLTOOL" = x; then
8428 DLLTOOL="false"
8429 else
8430 case $cross_compiling:$ac_tool_warned in
8431 yes:)
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434 ac_tool_warned=yes ;;
8435 esac
8436 DLLTOOL=$ac_ct_DLLTOOL
8437 fi
8438 else
8439 DLLTOOL="$ac_cv_prog_DLLTOOL"
8440 fi
8441
8442 test -z "$DLLTOOL" && DLLTOOL=dlltool
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8454 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8455 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 lt_cv_sharedlib_from_linklib_cmd='unknown'
8459
8460 case $host_os in
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # two different shell functions defined in ltmain.sh;
8463 # decide which one to use based on capabilities of $DLLTOOL
8464 case `$DLLTOOL --help 2>&1` in
8465 *--identify-strict*)
8466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8467 ;;
8468 *)
8469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8470 ;;
8471 esac
8472 ;;
8473 *)
8474 # fallback: assume linklib IS sharedlib
8475 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8476 ;;
8477 esac
8478
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8481 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8482 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8483 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8484
8485
8486
8487
8488
8489
8490
8491 if test -n "$ac_tool_prefix"; then
8492 for ac_prog in ar
8493 do
8494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if ${ac_cv_prog_AR+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 if test -n "$AR"; then
8502 ac_cv_prog_AR="$AR" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515 done
8516 done
8517 IFS=$as_save_IFS
8518
8519 fi
8520 fi
8521 AR=$ac_cv_prog_AR
8522 if test -n "$AR"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8524 $as_echo "$AR" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530
8531 test -n "$AR" && break
8532 done
8533 fi
8534 if test -z "$AR"; then
8535 ac_ct_AR=$AR
8536 for ac_prog in ar
8537 do
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test -n "$ac_ct_AR"; then
8546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_ac_ct_AR="$ac_prog"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559 done
8560 done
8561 IFS=$as_save_IFS
8562
8563 fi
8564 fi
8565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8566 if test -n "$ac_ct_AR"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8568 $as_echo "$ac_ct_AR" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573
8574
8575 test -n "$ac_ct_AR" && break
8576 done
8577
8578 if test "x$ac_ct_AR" = x; then
8579 AR="false"
8580 else
8581 case $cross_compiling:$ac_tool_warned in
8582 yes:)
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8586 esac
8587 AR=$ac_ct_AR
8588 fi
8589 fi
8590
8591 : ${AR=ar}
8592 : ${AR_FLAGS=cru}
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8605 $as_echo_n "checking for archiver @FILE support... " >&6; }
8606 if ${lt_cv_ar_at_file+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 lt_cv_ar_at_file=no
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612
8613 int
8614 main ()
8615 {
8616
8617 ;
8618 return 0;
8619 }
8620 _ACEOF
8621 if ac_fn_c_try_compile "$LINENO"; then :
8622 echo conftest.$ac_objext > conftest.lst
8623 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8625 (eval $lt_ar_try) 2>&5
8626 ac_status=$?
8627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8628 test $ac_status = 0; }
8629 if test 0 -eq "$ac_status"; then
8630 # Ensure the archiver fails upon bogus file names.
8631 rm -f conftest.$ac_objext libconftest.a
8632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8633 (eval $lt_ar_try) 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8636 test $ac_status = 0; }
8637 if test 0 -ne "$ac_status"; then
8638 lt_cv_ar_at_file=@
8639 fi
8640 fi
8641 rm -f conftest.* libconftest.a
8642
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8648 $as_echo "$lt_cv_ar_at_file" >&6; }
8649
8650 if test no = "$lt_cv_ar_at_file"; then
8651 archiver_list_spec=
8652 else
8653 archiver_list_spec=$lt_cv_ar_at_file
8654 fi
8655
8656
8657
8658
8659
8660
8661
8662 if test -n "$ac_tool_prefix"; then
8663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8664 set dummy ${ac_tool_prefix}strip; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if ${ac_cv_prog_STRIP+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 if test -n "$STRIP"; then
8671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8675 do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684 done
8685 done
8686 IFS=$as_save_IFS
8687
8688 fi
8689 fi
8690 STRIP=$ac_cv_prog_STRIP
8691 if test -n "$STRIP"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8693 $as_echo "$STRIP" >&6; }
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8697 fi
8698
8699
8700 fi
8701 if test -z "$ac_cv_prog_STRIP"; then
8702 ac_ct_STRIP=$STRIP
8703 # Extract the first word of "strip", so it can be a program name with args.
8704 set dummy strip; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 if test -n "$ac_ct_STRIP"; then
8711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8712 else
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
8719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720 ac_cv_prog_ac_ct_STRIP="strip"
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8723 fi
8724 done
8725 done
8726 IFS=$as_save_IFS
8727
8728 fi
8729 fi
8730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8731 if test -n "$ac_ct_STRIP"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8733 $as_echo "$ac_ct_STRIP" >&6; }
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738
8739 if test "x$ac_ct_STRIP" = x; then
8740 STRIP=":"
8741 else
8742 case $cross_compiling:$ac_tool_warned in
8743 yes:)
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8746 ac_tool_warned=yes ;;
8747 esac
8748 STRIP=$ac_ct_STRIP
8749 fi
8750 else
8751 STRIP="$ac_cv_prog_STRIP"
8752 fi
8753
8754 test -z "$STRIP" && STRIP=:
8755
8756
8757
8758
8759
8760
8761 if test -n "$ac_tool_prefix"; then
8762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_prog_RANLIB+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 if test -n "$RANLIB"; then
8770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8771 else
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8774 do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8782 fi
8783 done
8784 done
8785 IFS=$as_save_IFS
8786
8787 fi
8788 fi
8789 RANLIB=$ac_cv_prog_RANLIB
8790 if test -n "$RANLIB"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8792 $as_echo "$RANLIB" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797
8798
8799 fi
8800 if test -z "$ac_cv_prog_RANLIB"; then
8801 ac_ct_RANLIB=$RANLIB
8802 # Extract the first word of "ranlib", so it can be a program name with args.
8803 set dummy ranlib; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$ac_ct_RANLIB"; then
8810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8819 ac_cv_prog_ac_ct_RANLIB="ranlib"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823 done
8824 done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8830 if test -n "$ac_ct_RANLIB"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8832 $as_echo "$ac_ct_RANLIB" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838 if test "x$ac_ct_RANLIB" = x; then
8839 RANLIB=":"
8840 else
8841 case $cross_compiling:$ac_tool_warned in
8842 yes:)
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8845 ac_tool_warned=yes ;;
8846 esac
8847 RANLIB=$ac_ct_RANLIB
8848 fi
8849 else
8850 RANLIB="$ac_cv_prog_RANLIB"
8851 fi
8852
8853 test -z "$RANLIB" && RANLIB=:
8854
8855
8856
8857
8858
8859
8860 # Determine commands to create old-style static archives.
8861 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8862 old_postinstall_cmds='chmod 644 $oldlib'
8863 old_postuninstall_cmds=
8864
8865 if test -n "$RANLIB"; then
8866 case $host_os in
8867 bitrig* | openbsd*)
8868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8869 ;;
8870 *)
8871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8872 ;;
8873 esac
8874 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8875 fi
8876
8877 case $host_os in
8878 darwin*)
8879 lock_old_archive_extraction=yes ;;
8880 *)
8881 lock_old_archive_extraction=no ;;
8882 esac
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922 # If no C compiler was specified, use CC.
8923 LTCC=${LTCC-"$CC"}
8924
8925 # If no C compiler flags were specified, use CFLAGS.
8926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8927
8928 # Allow CC to be a program name with arguments.
8929 compiler=$CC
8930
8931
8932 # Check for command to grab the raw symbol name followed by C symbol from nm.
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8934 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8935 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938
8939 # These are sane defaults that work on at least a few old systems.
8940 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8941
8942 # Character class describing NM global symbol codes.
8943 symcode='[BCDEGRST]'
8944
8945 # Regexp to match symbols that can be accessed directly from C.
8946 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8947
8948 # Define system-specific variables.
8949 case $host_os in
8950 aix*)
8951 symcode='[BCDT]'
8952 ;;
8953 cygwin* | mingw* | pw32* | cegcc*)
8954 symcode='[ABCDGISTW]'
8955 ;;
8956 hpux*)
8957 if test ia64 = "$host_cpu"; then
8958 symcode='[ABCDEGRST]'
8959 fi
8960 ;;
8961 irix* | nonstopux*)
8962 symcode='[BCDEGRST]'
8963 ;;
8964 osf*)
8965 symcode='[BCDEGQRST]'
8966 ;;
8967 solaris*)
8968 symcode='[BDRT]'
8969 ;;
8970 sco3.2v5*)
8971 symcode='[DT]'
8972 ;;
8973 sysv4.2uw2*)
8974 symcode='[DT]'
8975 ;;
8976 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8977 symcode='[ABDT]'
8978 ;;
8979 sysv4)
8980 symcode='[DFNSTU]'
8981 ;;
8982 esac
8983
8984 # If we're using GNU nm, then use its standard symbol codes.
8985 case `$NM -V 2>&1` in
8986 *GNU* | *'with BFD'*)
8987 symcode='[ABCDGIRSTW]' ;;
8988 esac
8989
8990 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8991 # Gets list of data symbols to import.
8992 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8993 # Adjust the below global symbol transforms to fixup imported variables.
8994 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8995 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8996 lt_c_name_lib_hook="\
8997 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8998 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8999 else
9000 # Disable hooks by default.
9001 lt_cv_sys_global_symbol_to_import=
9002 lt_cdecl_hook=
9003 lt_c_name_hook=
9004 lt_c_name_lib_hook=
9005 fi
9006
9007 # Transform an extracted symbol line into a proper C declaration.
9008 # Some systems (esp. on ia64) link data and code symbols differently,
9009 # so use this general approach.
9010 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9011 $lt_cdecl_hook\
9012 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9013 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9014
9015 # Transform an extracted symbol line into symbol name and symbol address
9016 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9017 $lt_c_name_hook\
9018 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9019 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9020
9021 # Transform an extracted symbol line into symbol name with lib prefix and
9022 # symbol address.
9023 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9024 $lt_c_name_lib_hook\
9025 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9026 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9027 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9028
9029 # Handle CRLF in mingw tool chain
9030 opt_cr=
9031 case $build_os in
9032 mingw*)
9033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9034 ;;
9035 esac
9036
9037 # Try without a prefix underscore, then with it.
9038 for ac_symprfx in "" "_"; do
9039
9040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9041 symxfrm="\\1 $ac_symprfx\\2 \\2"
9042
9043 # Write the raw and C identifiers.
9044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9045 # Fake it for dumpbin and say T for any non-static function,
9046 # D for any global variable and I for any imported variable.
9047 # Also find C++ and __fastcall symbols from MSVC++,
9048 # which start with @ or ?.
9049 lt_cv_sys_global_symbol_pipe="$AWK '"\
9050 " {last_section=section; section=\$ 3};"\
9051 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9052 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9053 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9054 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9055 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9056 " \$ 0!~/External *\|/{next};"\
9057 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9058 " {if(hide[section]) next};"\
9059 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9060 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9061 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9062 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9063 " ' prfx=^$ac_symprfx"
9064 else
9065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9066 fi
9067 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9068
9069 # Check to see that the pipe works correctly.
9070 pipe_works=no
9071
9072 rm -rf conftest*
9073 cat > conftest.$ac_ext <<_LT_EOF
9074 #ifdef __cplusplus
9075 extern "C" {
9076 #endif
9077 char nm_test_var;
9078 void nm_test_func(void);
9079 void nm_test_func(void){}
9080 #ifdef __cplusplus
9081 }
9082 #endif
9083 int main(){nm_test_var='a';nm_test_func();return(0);}
9084 _LT_EOF
9085
9086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9087 (eval $ac_compile) 2>&5
9088 ac_status=$?
9089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090 test $ac_status = 0; }; then
9091 # Now try to grab the symbols.
9092 nlist=conftest.nm
9093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9094 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9095 ac_status=$?
9096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097 test $ac_status = 0; } && test -s "$nlist"; then
9098 # Try sorting and uniquifying the output.
9099 if sort "$nlist" | uniq > "$nlist"T; then
9100 mv -f "$nlist"T "$nlist"
9101 else
9102 rm -f "$nlist"T
9103 fi
9104
9105 # Make sure that we snagged all the symbols we need.
9106 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9107 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9108 cat <<_LT_EOF > conftest.$ac_ext
9109 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9110 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9111 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9112 relocations are performed -- see ld's documentation on pseudo-relocs. */
9113 # define LT_DLSYM_CONST
9114 #elif defined __osf__
9115 /* This system does not cope well with relocations in const data. */
9116 # define LT_DLSYM_CONST
9117 #else
9118 # define LT_DLSYM_CONST const
9119 #endif
9120
9121 #ifdef __cplusplus
9122 extern "C" {
9123 #endif
9124
9125 _LT_EOF
9126 # Now generate the symbol file.
9127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9128
9129 cat <<_LT_EOF >> conftest.$ac_ext
9130
9131 /* The mapping between symbol names and symbols. */
9132 LT_DLSYM_CONST struct {
9133 const char *name;
9134 void *address;
9135 }
9136 lt__PROGRAM__LTX_preloaded_symbols[] =
9137 {
9138 { "@PROGRAM@", (void *) 0 },
9139 _LT_EOF
9140 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9141 cat <<\_LT_EOF >> conftest.$ac_ext
9142 {0, (void *) 0}
9143 };
9144
9145 /* This works around a problem in FreeBSD linker */
9146 #ifdef FREEBSD_WORKAROUND
9147 static const void *lt_preloaded_setup() {
9148 return lt__PROGRAM__LTX_preloaded_symbols;
9149 }
9150 #endif
9151
9152 #ifdef __cplusplus
9153 }
9154 #endif
9155 _LT_EOF
9156 # Now try linking the two files.
9157 mv conftest.$ac_objext conftstm.$ac_objext
9158 lt_globsym_save_LIBS=$LIBS
9159 lt_globsym_save_CFLAGS=$CFLAGS
9160 LIBS=conftstm.$ac_objext
9161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9163 (eval $ac_link) 2>&5
9164 ac_status=$?
9165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9167 pipe_works=yes
9168 fi
9169 LIBS=$lt_globsym_save_LIBS
9170 CFLAGS=$lt_globsym_save_CFLAGS
9171 else
9172 echo "cannot find nm_test_func in $nlist" >&5
9173 fi
9174 else
9175 echo "cannot find nm_test_var in $nlist" >&5
9176 fi
9177 else
9178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9179 fi
9180 else
9181 echo "$progname: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9183 fi
9184 rm -rf conftest* conftst*
9185
9186 # Do not use the global_symbol_pipe unless it works.
9187 if test yes = "$pipe_works"; then
9188 break
9189 else
9190 lt_cv_sys_global_symbol_pipe=
9191 fi
9192 done
9193
9194 fi
9195
9196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9197 lt_cv_sys_global_symbol_to_cdecl=
9198 fi
9199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9201 $as_echo "failed" >&6; }
9202 else
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9204 $as_echo "ok" >&6; }
9205 fi
9206
9207 # Response file support.
9208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9209 nm_file_list_spec='@'
9210 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9211 nm_file_list_spec='@'
9212 fi
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9251 $as_echo_n "checking for sysroot... " >&6; }
9252
9253 # Check whether --with-sysroot was given.
9254 if test "${with_sysroot+set}" = set; then :
9255 withval=$with_sysroot;
9256 else
9257 with_sysroot=no
9258 fi
9259
9260
9261 lt_sysroot=
9262 case $with_sysroot in #(
9263 yes)
9264 if test yes = "$GCC"; then
9265 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9266 fi
9267 ;; #(
9268 /*)
9269 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9270 ;; #(
9271 no|'')
9272 ;; #(
9273 *)
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9275 $as_echo "$with_sysroot" >&6; }
9276 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9277 ;;
9278 esac
9279
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9281 $as_echo "${lt_sysroot:-no}" >&6; }
9282
9283
9284
9285
9286
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9288 $as_echo_n "checking for a working dd... " >&6; }
9289 if ${ac_cv_path_lt_DD+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 printf 0123456789abcdef0123456789abcdef >conftest.i
9293 cat conftest.i conftest.i >conftest2.i
9294 : ${lt_DD:=$DD}
9295 if test -z "$lt_DD"; then
9296 ac_path_lt_DD_found=false
9297 # Loop through the user's path and test for each of PROGNAME-LIST
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_prog in dd; do
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9306 as_fn_executable_p "$ac_path_lt_DD" || continue
9307 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9308 cmp -s conftest.i conftest.out \
9309 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9310 fi
9311 $ac_path_lt_DD_found && break 3
9312 done
9313 done
9314 done
9315 IFS=$as_save_IFS
9316 if test -z "$ac_cv_path_lt_DD"; then
9317 :
9318 fi
9319 else
9320 ac_cv_path_lt_DD=$lt_DD
9321 fi
9322
9323 rm -f conftest.i conftest2.i conftest.out
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9326 $as_echo "$ac_cv_path_lt_DD" >&6; }
9327
9328
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9330 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9331 if ${lt_cv_truncate_bin+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 printf 0123456789abcdef0123456789abcdef >conftest.i
9335 cat conftest.i conftest.i >conftest2.i
9336 lt_cv_truncate_bin=
9337 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9338 cmp -s conftest.i conftest.out \
9339 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9340 fi
9341 rm -f conftest.i conftest2.i conftest.out
9342 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9345 $as_echo "$lt_cv_truncate_bin" >&6; }
9346
9347
9348
9349
9350
9351
9352
9353 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9354 func_cc_basename ()
9355 {
9356 for cc_temp in $*""; do
9357 case $cc_temp in
9358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9360 \-*) ;;
9361 *) break;;
9362 esac
9363 done
9364 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9365 }
9366
9367 # Check whether --enable-libtool-lock was given.
9368 if test "${enable_libtool_lock+set}" = set; then :
9369 enableval=$enable_libtool_lock;
9370 fi
9371
9372 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9373
9374 # Some flags need to be propagated to the compiler or linker for good
9375 # libtool support.
9376 case $host in
9377 ia64-*-hpux*)
9378 # Find out what ABI is being produced by ac_compile, and set mode
9379 # options accordingly.
9380 echo 'int i;' > conftest.$ac_ext
9381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9382 (eval $ac_compile) 2>&5
9383 ac_status=$?
9384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9385 test $ac_status = 0; }; then
9386 case `/usr/bin/file conftest.$ac_objext` in
9387 *ELF-32*)
9388 HPUX_IA64_MODE=32
9389 ;;
9390 *ELF-64*)
9391 HPUX_IA64_MODE=64
9392 ;;
9393 esac
9394 fi
9395 rm -rf conftest*
9396 ;;
9397 *-*-irix6*)
9398 # Find out what ABI is being produced by ac_compile, and set linker
9399 # options accordingly.
9400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9402 (eval $ac_compile) 2>&5
9403 ac_status=$?
9404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9405 test $ac_status = 0; }; then
9406 if test yes = "$lt_cv_prog_gnu_ld"; then
9407 case `/usr/bin/file conftest.$ac_objext` in
9408 *32-bit*)
9409 LD="${LD-ld} -melf32bsmip"
9410 ;;
9411 *N32*)
9412 LD="${LD-ld} -melf32bmipn32"
9413 ;;
9414 *64-bit*)
9415 LD="${LD-ld} -melf64bmip"
9416 ;;
9417 esac
9418 else
9419 case `/usr/bin/file conftest.$ac_objext` in
9420 *32-bit*)
9421 LD="${LD-ld} -32"
9422 ;;
9423 *N32*)
9424 LD="${LD-ld} -n32"
9425 ;;
9426 *64-bit*)
9427 LD="${LD-ld} -64"
9428 ;;
9429 esac
9430 fi
9431 fi
9432 rm -rf conftest*
9433 ;;
9434
9435 mips64*-*linux*)
9436 # Find out what ABI is being produced by ac_compile, and set linker
9437 # options accordingly.
9438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9440 (eval $ac_compile) 2>&5
9441 ac_status=$?
9442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9443 test $ac_status = 0; }; then
9444 emul=elf
9445 case `/usr/bin/file conftest.$ac_objext` in
9446 *32-bit*)
9447 emul="${emul}32"
9448 ;;
9449 *64-bit*)
9450 emul="${emul}64"
9451 ;;
9452 esac
9453 case `/usr/bin/file conftest.$ac_objext` in
9454 *MSB*)
9455 emul="${emul}btsmip"
9456 ;;
9457 *LSB*)
9458 emul="${emul}ltsmip"
9459 ;;
9460 esac
9461 case `/usr/bin/file conftest.$ac_objext` in
9462 *N32*)
9463 emul="${emul}n32"
9464 ;;
9465 esac
9466 LD="${LD-ld} -m $emul"
9467 fi
9468 rm -rf conftest*
9469 ;;
9470
9471 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9472 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9473 # Find out what ABI is being produced by ac_compile, and set linker
9474 # options accordingly. Note that the listed cases only cover the
9475 # situations where additional linker options are needed (such as when
9476 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9477 # vice versa); the common cases where no linker options are needed do
9478 # not appear in the list.
9479 echo 'int i;' > conftest.$ac_ext
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9481 (eval $ac_compile) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }; then
9485 case `/usr/bin/file conftest.o` in
9486 *32-bit*)
9487 case $host in
9488 x86_64-*kfreebsd*-gnu)
9489 LD="${LD-ld} -m elf_i386_fbsd"
9490 ;;
9491 x86_64-*linux*)
9492 case `/usr/bin/file conftest.o` in
9493 *x86-64*)
9494 LD="${LD-ld} -m elf32_x86_64"
9495 ;;
9496 *)
9497 LD="${LD-ld} -m elf_i386"
9498 ;;
9499 esac
9500 ;;
9501 powerpc64le-*linux*)
9502 LD="${LD-ld} -m elf32lppclinux"
9503 ;;
9504 powerpc64-*linux*)
9505 LD="${LD-ld} -m elf32ppclinux"
9506 ;;
9507 s390x-*linux*)
9508 LD="${LD-ld} -m elf_s390"
9509 ;;
9510 sparc64-*linux*)
9511 LD="${LD-ld} -m elf32_sparc"
9512 ;;
9513 esac
9514 ;;
9515 *64-bit*)
9516 case $host in
9517 x86_64-*kfreebsd*-gnu)
9518 LD="${LD-ld} -m elf_x86_64_fbsd"
9519 ;;
9520 x86_64-*linux*)
9521 LD="${LD-ld} -m elf_x86_64"
9522 ;;
9523 powerpcle-*linux*)
9524 LD="${LD-ld} -m elf64lppc"
9525 ;;
9526 powerpc-*linux*)
9527 LD="${LD-ld} -m elf64ppc"
9528 ;;
9529 s390*-*linux*|s390*-*tpf*)
9530 LD="${LD-ld} -m elf64_s390"
9531 ;;
9532 sparc*-*linux*)
9533 LD="${LD-ld} -m elf64_sparc"
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 fi
9539 rm -rf conftest*
9540 ;;
9541
9542 *-*-sco3.2v5*)
9543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9544 SAVE_CFLAGS=$CFLAGS
9545 CFLAGS="$CFLAGS -belf"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9547 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9548 if ${lt_cv_cc_needs_belf+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 ac_ext=c
9552 ac_cpp='$CPP $CPPFLAGS'
9553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9556
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559
9560 int
9561 main ()
9562 {
9563
9564 ;
9565 return 0;
9566 }
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569 lt_cv_cc_needs_belf=yes
9570 else
9571 lt_cv_cc_needs_belf=no
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 ac_ext=c
9576 ac_cpp='$CPP $CPPFLAGS'
9577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9580
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9583 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9584 if test yes != "$lt_cv_cc_needs_belf"; then
9585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9586 CFLAGS=$SAVE_CFLAGS
9587 fi
9588 ;;
9589 *-*solaris*)
9590 # Find out what ABI is being produced by ac_compile, and set linker
9591 # options accordingly.
9592 echo 'int i;' > conftest.$ac_ext
9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594 (eval $ac_compile) 2>&5
9595 ac_status=$?
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; }; then
9598 case `/usr/bin/file conftest.o` in
9599 *64-bit*)
9600 case $lt_cv_prog_gnu_ld in
9601 yes*)
9602 case $host in
9603 i?86-*-solaris*|x86_64-*-solaris*)
9604 LD="${LD-ld} -m elf_x86_64"
9605 ;;
9606 sparc*-*-solaris*)
9607 LD="${LD-ld} -m elf64_sparc"
9608 ;;
9609 esac
9610 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9611 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9612 LD=${LD-ld}_sol2
9613 fi
9614 ;;
9615 *)
9616 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9617 LD="${LD-ld} -64"
9618 fi
9619 ;;
9620 esac
9621 ;;
9622 esac
9623 fi
9624 rm -rf conftest*
9625 ;;
9626 esac
9627
9628 need_locks=$enable_libtool_lock
9629
9630 if test -n "$ac_tool_prefix"; then
9631 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9632 set dummy ${ac_tool_prefix}mt; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$MANIFEST_TOOL"; then
9639 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9643 do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652 done
9653 done
9654 IFS=$as_save_IFS
9655
9656 fi
9657 fi
9658 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9659 if test -n "$MANIFEST_TOOL"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9661 $as_echo "$MANIFEST_TOOL" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9665 fi
9666
9667
9668 fi
9669 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9670 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9671 # Extract the first word of "mt", so it can be a program name with args.
9672 set dummy mt; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$ac_ct_MANIFEST_TOOL"; then
9679 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692 done
9693 done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9699 if test -n "$ac_ct_MANIFEST_TOOL"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9701 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9708 MANIFEST_TOOL=":"
9709 else
9710 case $cross_compiling:$ac_tool_warned in
9711 yes:)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714 ac_tool_warned=yes ;;
9715 esac
9716 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9717 fi
9718 else
9719 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9720 fi
9721
9722 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9724 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9725 if ${lt_cv_path_mainfest_tool+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 lt_cv_path_mainfest_tool=no
9729 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9730 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9731 cat conftest.err >&5
9732 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9733 lt_cv_path_mainfest_tool=yes
9734 fi
9735 rm -rf conftest*
9736 fi
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9738 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9739 if test yes != "$lt_cv_path_mainfest_tool"; then
9740 MANIFEST_TOOL=:
9741 fi
9742
9743
9744
9745
9746
9747
9748 case $host_os in
9749 rhapsody* | darwin*)
9750 if test -n "$ac_tool_prefix"; then
9751 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9752 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 if test -n "$DSYMUTIL"; then
9759 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9760 else
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 for as_dir in $PATH
9763 do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772 done
9773 done
9774 IFS=$as_save_IFS
9775
9776 fi
9777 fi
9778 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9779 if test -n "$DSYMUTIL"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9781 $as_echo "$DSYMUTIL" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9785 fi
9786
9787
9788 fi
9789 if test -z "$ac_cv_prog_DSYMUTIL"; then
9790 ac_ct_DSYMUTIL=$DSYMUTIL
9791 # Extract the first word of "dsymutil", so it can be a program name with args.
9792 set dummy dsymutil; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 if test -n "$ac_ct_DSYMUTIL"; then
9799 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9803 do
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9811 fi
9812 done
9813 done
9814 IFS=$as_save_IFS
9815
9816 fi
9817 fi
9818 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9819 if test -n "$ac_ct_DSYMUTIL"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9821 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 fi
9826
9827 if test "x$ac_ct_DSYMUTIL" = x; then
9828 DSYMUTIL=":"
9829 else
9830 case $cross_compiling:$ac_tool_warned in
9831 yes:)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9834 ac_tool_warned=yes ;;
9835 esac
9836 DSYMUTIL=$ac_ct_DSYMUTIL
9837 fi
9838 else
9839 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9840 fi
9841
9842 if test -n "$ac_tool_prefix"; then
9843 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9844 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_prog_NMEDIT+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$NMEDIT"; then
9851 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864 done
9865 done
9866 IFS=$as_save_IFS
9867
9868 fi
9869 fi
9870 NMEDIT=$ac_cv_prog_NMEDIT
9871 if test -n "$NMEDIT"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9873 $as_echo "$NMEDIT" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878
9879
9880 fi
9881 if test -z "$ac_cv_prog_NMEDIT"; then
9882 ac_ct_NMEDIT=$NMEDIT
9883 # Extract the first word of "nmedit", so it can be a program name with args.
9884 set dummy nmedit; ac_word=$2
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886 $as_echo_n "checking for $ac_word... " >&6; }
9887 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 if test -n "$ac_ct_NMEDIT"; then
9891 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9892 else
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9895 do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9903 fi
9904 done
9905 done
9906 IFS=$as_save_IFS
9907
9908 fi
9909 fi
9910 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9911 if test -n "$ac_ct_NMEDIT"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9913 $as_echo "$ac_ct_NMEDIT" >&6; }
9914 else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9917 fi
9918
9919 if test "x$ac_ct_NMEDIT" = x; then
9920 NMEDIT=":"
9921 else
9922 case $cross_compiling:$ac_tool_warned in
9923 yes:)
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9926 ac_tool_warned=yes ;;
9927 esac
9928 NMEDIT=$ac_ct_NMEDIT
9929 fi
9930 else
9931 NMEDIT="$ac_cv_prog_NMEDIT"
9932 fi
9933
9934 if test -n "$ac_tool_prefix"; then
9935 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9936 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_prog_LIPO+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test -n "$LIPO"; then
9943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956 done
9957 done
9958 IFS=$as_save_IFS
9959
9960 fi
9961 fi
9962 LIPO=$ac_cv_prog_LIPO
9963 if test -n "$LIPO"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9965 $as_echo "$LIPO" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9969 fi
9970
9971
9972 fi
9973 if test -z "$ac_cv_prog_LIPO"; then
9974 ac_ct_LIPO=$LIPO
9975 # Extract the first word of "lipo", so it can be a program name with args.
9976 set dummy lipo; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 if test -n "$ac_ct_LIPO"; then
9983 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9987 do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9992 ac_cv_prog_ac_ct_LIPO="lipo"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996 done
9997 done
9998 IFS=$as_save_IFS
9999
10000 fi
10001 fi
10002 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10003 if test -n "$ac_ct_LIPO"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10005 $as_echo "$ac_ct_LIPO" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10009 fi
10010
10011 if test "x$ac_ct_LIPO" = x; then
10012 LIPO=":"
10013 else
10014 case $cross_compiling:$ac_tool_warned in
10015 yes:)
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10018 ac_tool_warned=yes ;;
10019 esac
10020 LIPO=$ac_ct_LIPO
10021 fi
10022 else
10023 LIPO="$ac_cv_prog_LIPO"
10024 fi
10025
10026 if test -n "$ac_tool_prefix"; then
10027 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10028 set dummy ${ac_tool_prefix}otool; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_prog_OTOOL+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 if test -n "$OTOOL"; then
10035 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10036 else
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10039 do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048 done
10049 done
10050 IFS=$as_save_IFS
10051
10052 fi
10053 fi
10054 OTOOL=$ac_cv_prog_OTOOL
10055 if test -n "$OTOOL"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10057 $as_echo "$OTOOL" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062
10063
10064 fi
10065 if test -z "$ac_cv_prog_OTOOL"; then
10066 ac_ct_OTOOL=$OTOOL
10067 # Extract the first word of "otool", so it can be a program name with args.
10068 set dummy otool; ac_word=$2
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070 $as_echo_n "checking for $ac_word... " >&6; }
10071 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 if test -n "$ac_ct_OTOOL"; then
10075 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10076 else
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10079 do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_ac_ct_OTOOL="otool"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088 done
10089 done
10090 IFS=$as_save_IFS
10091
10092 fi
10093 fi
10094 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10095 if test -n "$ac_ct_OTOOL"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10097 $as_echo "$ac_ct_OTOOL" >&6; }
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10101 fi
10102
10103 if test "x$ac_ct_OTOOL" = x; then
10104 OTOOL=":"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107 yes:)
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110 ac_tool_warned=yes ;;
10111 esac
10112 OTOOL=$ac_ct_OTOOL
10113 fi
10114 else
10115 OTOOL="$ac_cv_prog_OTOOL"
10116 fi
10117
10118 if test -n "$ac_tool_prefix"; then
10119 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10120 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if ${ac_cv_prog_OTOOL64+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 if test -n "$OTOOL64"; then
10127 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10128 else
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140 done
10141 done
10142 IFS=$as_save_IFS
10143
10144 fi
10145 fi
10146 OTOOL64=$ac_cv_prog_OTOOL64
10147 if test -n "$OTOOL64"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10149 $as_echo "$OTOOL64" >&6; }
10150 else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10153 fi
10154
10155
10156 fi
10157 if test -z "$ac_cv_prog_OTOOL64"; then
10158 ac_ct_OTOOL64=$OTOOL64
10159 # Extract the first word of "otool64", so it can be a program name with args.
10160 set dummy otool64; ac_word=$2
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162 $as_echo_n "checking for $ac_word... " >&6; }
10163 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10164 $as_echo_n "(cached) " >&6
10165 else
10166 if test -n "$ac_ct_OTOOL64"; then
10167 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10168 else
10169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170 for as_dir in $PATH
10171 do
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10176 ac_cv_prog_ac_ct_OTOOL64="otool64"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 break 2
10179 fi
10180 done
10181 done
10182 IFS=$as_save_IFS
10183
10184 fi
10185 fi
10186 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10187 if test -n "$ac_ct_OTOOL64"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10189 $as_echo "$ac_ct_OTOOL64" >&6; }
10190 else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10193 fi
10194
10195 if test "x$ac_ct_OTOOL64" = x; then
10196 OTOOL64=":"
10197 else
10198 case $cross_compiling:$ac_tool_warned in
10199 yes:)
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10202 ac_tool_warned=yes ;;
10203 esac
10204 OTOOL64=$ac_ct_OTOOL64
10205 fi
10206 else
10207 OTOOL64="$ac_cv_prog_OTOOL64"
10208 fi
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10237 $as_echo_n "checking for -single_module linker flag... " >&6; }
10238 if ${lt_cv_apple_cc_single_mod+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 lt_cv_apple_cc_single_mod=no
10242 if test -z "$LT_MULTI_MODULE"; then
10243 # By default we will add the -single_module flag. You can override
10244 # by either setting the environment variable LT_MULTI_MODULE
10245 # non-empty at configure time, or by adding -multi_module to the
10246 # link flags.
10247 rm -rf libconftest.dylib*
10248 echo "int foo(void){return 1;}" > conftest.c
10249 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10250 -dynamiclib -Wl,-single_module conftest.c" >&5
10251 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10252 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10253 _lt_result=$?
10254 # If there is a non-empty error log, and "single_module"
10255 # appears in it, assume the flag caused a linker warning
10256 if test -s conftest.err && $GREP single_module conftest.err; then
10257 cat conftest.err >&5
10258 # Otherwise, if the output was created with a 0 exit code from
10259 # the compiler, it worked.
10260 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10261 lt_cv_apple_cc_single_mod=yes
10262 else
10263 cat conftest.err >&5
10264 fi
10265 rm -rf libconftest.dylib*
10266 rm -f conftest.*
10267 fi
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10270 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10271
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10273 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10274 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 lt_cv_ld_exported_symbols_list=no
10278 save_LDFLAGS=$LDFLAGS
10279 echo "_main" > conftest.sym
10280 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283
10284 int
10285 main ()
10286 {
10287
10288 ;
10289 return 0;
10290 }
10291 _ACEOF
10292 if ac_fn_c_try_link "$LINENO"; then :
10293 lt_cv_ld_exported_symbols_list=yes
10294 else
10295 lt_cv_ld_exported_symbols_list=no
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 LDFLAGS=$save_LDFLAGS
10300
10301 fi
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10303 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10304
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10306 $as_echo_n "checking for -force_load linker flag... " >&6; }
10307 if ${lt_cv_ld_force_load+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 lt_cv_ld_force_load=no
10311 cat > conftest.c << _LT_EOF
10312 int forced_loaded() { return 2;}
10313 _LT_EOF
10314 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10315 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10316 echo "$AR cru libconftest.a conftest.o" >&5
10317 $AR cru libconftest.a conftest.o 2>&5
10318 echo "$RANLIB libconftest.a" >&5
10319 $RANLIB libconftest.a 2>&5
10320 cat > conftest.c << _LT_EOF
10321 int main() { return 0;}
10322 _LT_EOF
10323 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10324 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10325 _lt_result=$?
10326 if test -s conftest.err && $GREP force_load conftest.err; then
10327 cat conftest.err >&5
10328 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10329 lt_cv_ld_force_load=yes
10330 else
10331 cat conftest.err >&5
10332 fi
10333 rm -f conftest.err libconftest.a conftest conftest.c
10334 rm -rf conftest.dSYM
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10338 $as_echo "$lt_cv_ld_force_load" >&6; }
10339 case $host_os in
10340 rhapsody* | darwin1.[012])
10341 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10342 darwin1.*)
10343 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10344 darwin*) # darwin 5.x on
10345 # if running on 10.5 or later, the deployment target defaults
10346 # to the OS version, if on x86, and 10.4, the deployment
10347 # target defaults to 10.4. Don't you love it?
10348 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10349 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10350 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10351 10.[012][,.]*)
10352 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10353 10.*)
10354 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10355 esac
10356 ;;
10357 esac
10358 if test yes = "$lt_cv_apple_cc_single_mod"; then
10359 _lt_dar_single_mod='$single_module'
10360 fi
10361 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10362 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10363 else
10364 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10365 fi
10366 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10367 _lt_dsymutil='~$DSYMUTIL $lib || :'
10368 else
10369 _lt_dsymutil=
10370 fi
10371 ;;
10372 esac
10373
10374 # func_munge_path_list VARIABLE PATH
10375 # -----------------------------------
10376 # VARIABLE is name of variable containing _space_ separated list of
10377 # directories to be munged by the contents of PATH, which is string
10378 # having a format:
10379 # "DIR[:DIR]:"
10380 # string "DIR[ DIR]" will be prepended to VARIABLE
10381 # ":DIR[:DIR]"
10382 # string "DIR[ DIR]" will be appended to VARIABLE
10383 # "DIRP[:DIRP]::[DIRA:]DIRA"
10384 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10385 # "DIRA[ DIRA]" will be appended to VARIABLE
10386 # "DIR[:DIR]"
10387 # VARIABLE will be replaced by "DIR[ DIR]"
10388 func_munge_path_list ()
10389 {
10390 case x$2 in
10391 x)
10392 ;;
10393 *:)
10394 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10395 ;;
10396 x:*)
10397 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10398 ;;
10399 *::*)
10400 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10401 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10402 ;;
10403 *)
10404 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10405 ;;
10406 esac
10407 }
10408
10409
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10411 $as_echo_n "checking for ANSI C header files... " >&6; }
10412 if ${ac_cv_header_stdc+:} false; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <stdlib.h>
10418 #include <stdarg.h>
10419 #include <string.h>
10420 #include <float.h>
10421
10422 int
10423 main ()
10424 {
10425
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_compile "$LINENO"; then :
10431 ac_cv_header_stdc=yes
10432 else
10433 ac_cv_header_stdc=no
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436
10437 if test $ac_cv_header_stdc = yes; then
10438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 #include <string.h>
10442
10443 _ACEOF
10444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10445 $EGREP "memchr" >/dev/null 2>&1; then :
10446
10447 else
10448 ac_cv_header_stdc=no
10449 fi
10450 rm -f conftest*
10451
10452 fi
10453
10454 if test $ac_cv_header_stdc = yes; then
10455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 #include <stdlib.h>
10459
10460 _ACEOF
10461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10462 $EGREP "free" >/dev/null 2>&1; then :
10463
10464 else
10465 ac_cv_header_stdc=no
10466 fi
10467 rm -f conftest*
10468
10469 fi
10470
10471 if test $ac_cv_header_stdc = yes; then
10472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10473 if test "$cross_compiling" = yes; then :
10474 :
10475 else
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h. */
10478 #include <ctype.h>
10479 #include <stdlib.h>
10480 #if ((' ' & 0x0FF) == 0x020)
10481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10483 #else
10484 # define ISLOWER(c) \
10485 (('a' <= (c) && (c) <= 'i') \
10486 || ('j' <= (c) && (c) <= 'r') \
10487 || ('s' <= (c) && (c) <= 'z'))
10488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10489 #endif
10490
10491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10492 int
10493 main ()
10494 {
10495 int i;
10496 for (i = 0; i < 256; i++)
10497 if (XOR (islower (i), ISLOWER (i))
10498 || toupper (i) != TOUPPER (i))
10499 return 2;
10500 return 0;
10501 }
10502 _ACEOF
10503 if ac_fn_c_try_run "$LINENO"; then :
10504
10505 else
10506 ac_cv_header_stdc=no
10507 fi
10508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10509 conftest.$ac_objext conftest.beam conftest.$ac_ext
10510 fi
10511
10512 fi
10513 fi
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10515 $as_echo "$ac_cv_header_stdc" >&6; }
10516 if test $ac_cv_header_stdc = yes; then
10517
10518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10519
10520 fi
10521
10522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10524 inttypes.h stdint.h unistd.h
10525 do :
10526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10528 "
10529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10530 cat >>confdefs.h <<_ACEOF
10531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10532 _ACEOF
10533
10534 fi
10535
10536 done
10537
10538
10539 for ac_header in dlfcn.h
10540 do :
10541 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10542 "
10543 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_DLFCN_H 1
10546 _ACEOF
10547
10548 fi
10549
10550 done
10551
10552
10553
10554
10555 func_stripname_cnf ()
10556 {
10557 case $2 in
10558 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10559 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10560 esac
10561 } # func_stripname_cnf
10562
10563
10564
10565
10566
10567 # Set options
10568 # Check whether --enable-static was given.
10569 if test "${enable_static+set}" = set; then :
10570 enableval=$enable_static; p=${PACKAGE-default}
10571 case $enableval in
10572 yes) enable_static=yes ;;
10573 no) enable_static=no ;;
10574 *)
10575 enable_static=no
10576 # Look at the argument we got. We use all the common list separators.
10577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10578 for pkg in $enableval; do
10579 IFS=$lt_save_ifs
10580 if test "X$pkg" = "X$p"; then
10581 enable_static=yes
10582 fi
10583 done
10584 IFS=$lt_save_ifs
10585 ;;
10586 esac
10587 else
10588 enable_static=no
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600 enable_dlopen=no
10601
10602
10603 enable_win32_dll=no
10604
10605
10606 # Check whether --enable-shared was given.
10607 if test "${enable_shared+set}" = set; then :
10608 enableval=$enable_shared; p=${PACKAGE-default}
10609 case $enableval in
10610 yes) enable_shared=yes ;;
10611 no) enable_shared=no ;;
10612 *)
10613 enable_shared=no
10614 # Look at the argument we got. We use all the common list separators.
10615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10616 for pkg in $enableval; do
10617 IFS=$lt_save_ifs
10618 if test "X$pkg" = "X$p"; then
10619 enable_shared=yes
10620 fi
10621 done
10622 IFS=$lt_save_ifs
10623 ;;
10624 esac
10625 else
10626 enable_shared=yes
10627 fi
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639 # Check whether --with-pic was given.
10640 if test "${with_pic+set}" = set; then :
10641 withval=$with_pic; lt_p=${PACKAGE-default}
10642 case $withval in
10643 yes|no) pic_mode=$withval ;;
10644 *)
10645 pic_mode=default
10646 # Look at the argument we got. We use all the common list separators.
10647 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10648 for lt_pkg in $withval; do
10649 IFS=$lt_save_ifs
10650 if test "X$lt_pkg" = "X$lt_p"; then
10651 pic_mode=yes
10652 fi
10653 done
10654 IFS=$lt_save_ifs
10655 ;;
10656 esac
10657 else
10658 pic_mode=default
10659 fi
10660
10661
10662
10663
10664
10665
10666
10667
10668 # Check whether --enable-fast-install was given.
10669 if test "${enable_fast_install+set}" = set; then :
10670 enableval=$enable_fast_install; p=${PACKAGE-default}
10671 case $enableval in
10672 yes) enable_fast_install=yes ;;
10673 no) enable_fast_install=no ;;
10674 *)
10675 enable_fast_install=no
10676 # Look at the argument we got. We use all the common list separators.
10677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10678 for pkg in $enableval; do
10679 IFS=$lt_save_ifs
10680 if test "X$pkg" = "X$p"; then
10681 enable_fast_install=yes
10682 fi
10683 done
10684 IFS=$lt_save_ifs
10685 ;;
10686 esac
10687 else
10688 enable_fast_install=yes
10689 fi
10690
10691
10692
10693
10694
10695
10696
10697
10698 shared_archive_member_spec=
10699 case $host,$enable_shared in
10700 power*-*-aix[5-9]*,yes)
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10702 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10703
10704 # Check whether --with-aix-soname was given.
10705 if test "${with_aix_soname+set}" = set; then :
10706 withval=$with_aix_soname; case $withval in
10707 aix|svr4|both)
10708 ;;
10709 *)
10710 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10711 ;;
10712 esac
10713 lt_cv_with_aix_soname=$with_aix_soname
10714 else
10715 if ${lt_cv_with_aix_soname+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 lt_cv_with_aix_soname=aix
10719 fi
10720
10721 with_aix_soname=$lt_cv_with_aix_soname
10722 fi
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10725 $as_echo "$with_aix_soname" >&6; }
10726 if test aix != "$with_aix_soname"; then
10727 # For the AIX way of multilib, we name the shared archive member
10728 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10729 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10730 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10731 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10732 if test 64 = "${OBJECT_MODE-32}"; then
10733 shared_archive_member_spec=shr_64
10734 else
10735 shared_archive_member_spec=shr
10736 fi
10737 fi
10738 ;;
10739 *)
10740 with_aix_soname=aix
10741 ;;
10742 esac
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753 # This can be used to rebuild libtool when needed
10754 LIBTOOL_DEPS=$ltmain
10755
10756 # Always use our own libtool.
10757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 test -z "$LN_S" && LN_S="ln -s"
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803 if test -n "${ZSH_VERSION+set}"; then
10804 setopt NO_GLOB_SUBST
10805 fi
10806
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10808 $as_echo_n "checking for objdir... " >&6; }
10809 if ${lt_cv_objdir+:} false; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 rm -f .libs 2>/dev/null
10813 mkdir .libs 2>/dev/null
10814 if test -d .libs; then
10815 lt_cv_objdir=.libs
10816 else
10817 # MS-DOS does not allow filenames that begin with a dot.
10818 lt_cv_objdir=_libs
10819 fi
10820 rmdir .libs 2>/dev/null
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10823 $as_echo "$lt_cv_objdir" >&6; }
10824 objdir=$lt_cv_objdir
10825
10826
10827
10828
10829
10830 cat >>confdefs.h <<_ACEOF
10831 #define LT_OBJDIR "$lt_cv_objdir/"
10832 _ACEOF
10833
10834
10835
10836
10837 case $host_os in
10838 aix3*)
10839 # AIX sometimes has problems with the GCC collect2 program. For some
10840 # reason, if we set the COLLECT_NAMES environment variable, the problems
10841 # vanish in a puff of smoke.
10842 if test set != "${COLLECT_NAMES+set}"; then
10843 COLLECT_NAMES=
10844 export COLLECT_NAMES
10845 fi
10846 ;;
10847 esac
10848
10849 # Global variables:
10850 ofile=libtool
10851 can_build_shared=yes
10852
10853 # All known linkers require a '.a' archive for static linking (except MSVC,
10854 # which needs '.lib').
10855 libext=a
10856
10857 with_gnu_ld=$lt_cv_prog_gnu_ld
10858
10859 old_CC=$CC
10860 old_CFLAGS=$CFLAGS
10861
10862 # Set sane defaults for various variables
10863 test -z "$CC" && CC=cc
10864 test -z "$LTCC" && LTCC=$CC
10865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10866 test -z "$LD" && LD=ld
10867 test -z "$ac_objext" && ac_objext=o
10868
10869 func_cc_basename $compiler
10870 cc_basename=$func_cc_basename_result
10871
10872
10873 # Only perform the check for file, if the check method requires it
10874 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10875 case $deplibs_check_method in
10876 file_magic*)
10877 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10879 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10880 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 case $MAGIC_CMD in
10884 [\\/*] | ?:[\\/]*)
10885 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10886 ;;
10887 *)
10888 lt_save_MAGIC_CMD=$MAGIC_CMD
10889 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10891 for ac_dir in $ac_dummy; do
10892 IFS=$lt_save_ifs
10893 test -z "$ac_dir" && ac_dir=.
10894 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10895 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10896 if test -n "$file_magic_test_file"; then
10897 case $deplibs_check_method in
10898 "file_magic "*)
10899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10902 $EGREP "$file_magic_regex" > /dev/null; then
10903 :
10904 else
10905 cat <<_LT_EOF 1>&2
10906
10907 *** Warning: the command libtool uses to detect shared libraries,
10908 *** $file_magic_cmd, produces output that libtool cannot recognize.
10909 *** The result is that libtool may fail to recognize shared libraries
10910 *** as such. This will affect the creation of libtool libraries that
10911 *** depend on shared libraries, but programs linked with such libtool
10912 *** libraries will work regardless of this problem. Nevertheless, you
10913 *** may want to report the problem to your system manager and/or to
10914 *** bug-libtool@gnu.org
10915
10916 _LT_EOF
10917 fi ;;
10918 esac
10919 fi
10920 break
10921 fi
10922 done
10923 IFS=$lt_save_ifs
10924 MAGIC_CMD=$lt_save_MAGIC_CMD
10925 ;;
10926 esac
10927 fi
10928
10929 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10930 if test -n "$MAGIC_CMD"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10932 $as_echo "$MAGIC_CMD" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 fi
10937
10938
10939
10940
10941
10942 if test -z "$lt_cv_path_MAGIC_CMD"; then
10943 if test -n "$ac_tool_prefix"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10945 $as_echo_n "checking for file... " >&6; }
10946 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 case $MAGIC_CMD in
10950 [\\/*] | ?:[\\/]*)
10951 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10952 ;;
10953 *)
10954 lt_save_MAGIC_CMD=$MAGIC_CMD
10955 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10956 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10957 for ac_dir in $ac_dummy; do
10958 IFS=$lt_save_ifs
10959 test -z "$ac_dir" && ac_dir=.
10960 if test -f "$ac_dir/file"; then
10961 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10962 if test -n "$file_magic_test_file"; then
10963 case $deplibs_check_method in
10964 "file_magic "*)
10965 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10966 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10967 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10968 $EGREP "$file_magic_regex" > /dev/null; then
10969 :
10970 else
10971 cat <<_LT_EOF 1>&2
10972
10973 *** Warning: the command libtool uses to detect shared libraries,
10974 *** $file_magic_cmd, produces output that libtool cannot recognize.
10975 *** The result is that libtool may fail to recognize shared libraries
10976 *** as such. This will affect the creation of libtool libraries that
10977 *** depend on shared libraries, but programs linked with such libtool
10978 *** libraries will work regardless of this problem. Nevertheless, you
10979 *** may want to report the problem to your system manager and/or to
10980 *** bug-libtool@gnu.org
10981
10982 _LT_EOF
10983 fi ;;
10984 esac
10985 fi
10986 break
10987 fi
10988 done
10989 IFS=$lt_save_ifs
10990 MAGIC_CMD=$lt_save_MAGIC_CMD
10991 ;;
10992 esac
10993 fi
10994
10995 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10996 if test -n "$MAGIC_CMD"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10998 $as_echo "$MAGIC_CMD" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11002 fi
11003
11004
11005 else
11006 MAGIC_CMD=:
11007 fi
11008 fi
11009
11010 fi
11011 ;;
11012 esac
11013
11014 # Use C for the default configuration in the libtool script
11015
11016 lt_save_CC=$CC
11017 ac_ext=c
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11022
11023
11024 # Source file extension for C test sources.
11025 ac_ext=c
11026
11027 # Object file extension for compiled C test sources.
11028 objext=o
11029 objext=$objext
11030
11031 # Code to be used in simple compile tests
11032 lt_simple_compile_test_code="int some_variable = 0;"
11033
11034 # Code to be used in simple link tests
11035 lt_simple_link_test_code='int main(){return(0);}'
11036
11037
11038
11039
11040
11041
11042
11043 # If no C compiler was specified, use CC.
11044 LTCC=${LTCC-"$CC"}
11045
11046 # If no C compiler flags were specified, use CFLAGS.
11047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11048
11049 # Allow CC to be a program name with arguments.
11050 compiler=$CC
11051
11052 # Save the default compiler, since it gets overwritten when the other
11053 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11054 compiler_DEFAULT=$CC
11055
11056 # save warnings/boilerplate of simple test code
11057 ac_outfile=conftest.$ac_objext
11058 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11059 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060 _lt_compiler_boilerplate=`cat conftest.err`
11061 $RM -r conftest*
11062
11063 ac_outfile=conftest.$ac_objext
11064 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11065 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066 _lt_linker_boilerplate=`cat conftest.err`
11067 $RM -r conftest*
11068
11069
11070 ## CAVEAT EMPTOR:
11071 ## There is no encapsulation within the following macros, do not change
11072 ## the running order or otherwise move them around unless you know exactly
11073 ## what you are doing...
11074 if test -n "$compiler"; then
11075
11076 lt_prog_compiler_no_builtin_flag=
11077
11078 if test yes = "$GCC"; then
11079 case $cc_basename in
11080 nvcc*)
11081 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11082 *)
11083 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11084 esac
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11087 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11088 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 lt_cv_prog_compiler_rtti_exceptions=no
11092 ac_outfile=conftest.$ac_objext
11093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11094 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 # The option is referenced via a variable to avoid confusing sed.
11100 lt_compile=`echo "$ac_compile" | $SED \
11101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11103 -e 's:$: $lt_compiler_flag:'`
11104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11105 (eval "$lt_compile" 2>conftest.err)
11106 ac_status=$?
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 if (exit $ac_status) && test -s "$ac_outfile"; then
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings other than the usual output.
11112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11115 lt_cv_prog_compiler_rtti_exceptions=yes
11116 fi
11117 fi
11118 $RM -r conftest*
11119
11120 fi
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11122 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11123
11124 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11126 else
11127 :
11128 fi
11129
11130 fi
11131
11132
11133
11134
11135
11136
11137 lt_prog_compiler_wl=
11138 lt_prog_compiler_pic=
11139 lt_prog_compiler_static=
11140
11141
11142 if test yes = "$GCC"; then
11143 lt_prog_compiler_wl='-Wl,'
11144 lt_prog_compiler_static='-static'
11145
11146 case $host_os in
11147 aix*)
11148 # All AIX code is PIC.
11149 if test ia64 = "$host_cpu"; then
11150 # AIX 5 now supports IA64 processor
11151 lt_prog_compiler_static='-Bstatic'
11152 fi
11153 lt_prog_compiler_pic='-fPIC'
11154 ;;
11155
11156 amigaos*)
11157 case $host_cpu in
11158 powerpc)
11159 # see comment about AmigaOS4 .so support
11160 lt_prog_compiler_pic='-fPIC'
11161 ;;
11162 m68k)
11163 # FIXME: we need at least 68020 code to build shared libraries, but
11164 # adding the '-m68020' flag to GCC prevents building anything better,
11165 # like '-m68040'.
11166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11167 ;;
11168 esac
11169 ;;
11170
11171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11172 # PIC is the default for these OSes.
11173 ;;
11174
11175 mingw* | cygwin* | pw32* | os2* | cegcc*)
11176 # This hack is so that the source file can tell whether it is being
11177 # built for inclusion in a dll (and should export symbols for example).
11178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11179 # (--disable-auto-import) libraries
11180 lt_prog_compiler_pic='-DDLL_EXPORT'
11181 case $host_os in
11182 os2*)
11183 lt_prog_compiler_static='$wl-static'
11184 ;;
11185 esac
11186 ;;
11187
11188 darwin* | rhapsody*)
11189 # PIC is the default on this platform
11190 # Common symbols not allowed in MH_DYLIB files
11191 lt_prog_compiler_pic='-fno-common'
11192 ;;
11193
11194 haiku*)
11195 # PIC is the default for Haiku.
11196 # The "-static" flag exists, but is broken.
11197 lt_prog_compiler_static=
11198 ;;
11199
11200 hpux*)
11201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11203 # sets the default TLS model and affects inlining.
11204 case $host_cpu in
11205 hppa*64*)
11206 # +Z the default
11207 ;;
11208 *)
11209 lt_prog_compiler_pic='-fPIC'
11210 ;;
11211 esac
11212 ;;
11213
11214 interix[3-9]*)
11215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11216 # Instead, we relocate shared libraries at runtime.
11217 ;;
11218
11219 msdosdjgpp*)
11220 # Just because we use GCC doesn't mean we suddenly get shared libraries
11221 # on systems that don't support them.
11222 lt_prog_compiler_can_build_shared=no
11223 enable_shared=no
11224 ;;
11225
11226 *nto* | *qnx*)
11227 # QNX uses GNU C++, but need to define -shared option too, otherwise
11228 # it will coredump.
11229 lt_prog_compiler_pic='-fPIC -shared'
11230 ;;
11231
11232 sysv4*MP*)
11233 if test -d /usr/nec; then
11234 lt_prog_compiler_pic=-Kconform_pic
11235 fi
11236 ;;
11237
11238 *)
11239 lt_prog_compiler_pic='-fPIC'
11240 ;;
11241 esac
11242
11243 case $cc_basename in
11244 nvcc*) # Cuda Compiler Driver 2.2
11245 lt_prog_compiler_wl='-Xlinker '
11246 if test -n "$lt_prog_compiler_pic"; then
11247 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11248 fi
11249 ;;
11250 esac
11251 else
11252 # PORTME Check for flag to pass linker flags through the system compiler.
11253 case $host_os in
11254 aix*)
11255 lt_prog_compiler_wl='-Wl,'
11256 if test ia64 = "$host_cpu"; then
11257 # AIX 5 now supports IA64 processor
11258 lt_prog_compiler_static='-Bstatic'
11259 else
11260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11261 fi
11262 ;;
11263
11264 darwin* | rhapsody*)
11265 # PIC is the default on this platform
11266 # Common symbols not allowed in MH_DYLIB files
11267 lt_prog_compiler_pic='-fno-common'
11268 case $cc_basename in
11269 nagfor*)
11270 # NAG Fortran compiler
11271 lt_prog_compiler_wl='-Wl,-Wl,,'
11272 lt_prog_compiler_pic='-PIC'
11273 lt_prog_compiler_static='-Bstatic'
11274 ;;
11275 esac
11276 ;;
11277
11278 mingw* | cygwin* | pw32* | os2* | cegcc*)
11279 # This hack is so that the source file can tell whether it is being
11280 # built for inclusion in a dll (and should export symbols for example).
11281 lt_prog_compiler_pic='-DDLL_EXPORT'
11282 case $host_os in
11283 os2*)
11284 lt_prog_compiler_static='$wl-static'
11285 ;;
11286 esac
11287 ;;
11288
11289 hpux9* | hpux10* | hpux11*)
11290 lt_prog_compiler_wl='-Wl,'
11291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11292 # not for PA HP-UX.
11293 case $host_cpu in
11294 hppa*64*|ia64*)
11295 # +Z the default
11296 ;;
11297 *)
11298 lt_prog_compiler_pic='+Z'
11299 ;;
11300 esac
11301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11302 lt_prog_compiler_static='$wl-a ${wl}archive'
11303 ;;
11304
11305 irix5* | irix6* | nonstopux*)
11306 lt_prog_compiler_wl='-Wl,'
11307 # PIC (with -KPIC) is the default.
11308 lt_prog_compiler_static='-non_shared'
11309 ;;
11310
11311 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11312 case $cc_basename in
11313 # old Intel for x86_64, which still supported -KPIC.
11314 ecc*)
11315 lt_prog_compiler_wl='-Wl,'
11316 lt_prog_compiler_pic='-KPIC'
11317 lt_prog_compiler_static='-static'
11318 ;;
11319 # icc used to be incompatible with GCC.
11320 # ICC 10 doesn't accept -KPIC any more.
11321 icc* | ifort*)
11322 lt_prog_compiler_wl='-Wl,'
11323 lt_prog_compiler_pic='-fPIC'
11324 lt_prog_compiler_static='-static'
11325 ;;
11326 # Lahey Fortran 8.1.
11327 lf95*)
11328 lt_prog_compiler_wl='-Wl,'
11329 lt_prog_compiler_pic='--shared'
11330 lt_prog_compiler_static='--static'
11331 ;;
11332 nagfor*)
11333 # NAG Fortran compiler
11334 lt_prog_compiler_wl='-Wl,-Wl,,'
11335 lt_prog_compiler_pic='-PIC'
11336 lt_prog_compiler_static='-Bstatic'
11337 ;;
11338 tcc*)
11339 # Fabrice Bellard et al's Tiny C Compiler
11340 lt_prog_compiler_wl='-Wl,'
11341 lt_prog_compiler_pic='-fPIC'
11342 lt_prog_compiler_static='-static'
11343 ;;
11344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11345 # Portland Group compilers (*not* the Pentium gcc compiler,
11346 # which looks to be a dead project)
11347 lt_prog_compiler_wl='-Wl,'
11348 lt_prog_compiler_pic='-fpic'
11349 lt_prog_compiler_static='-Bstatic'
11350 ;;
11351 ccc*)
11352 lt_prog_compiler_wl='-Wl,'
11353 # All Alpha code is PIC.
11354 lt_prog_compiler_static='-non_shared'
11355 ;;
11356 xl* | bgxl* | bgf* | mpixl*)
11357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11358 lt_prog_compiler_wl='-Wl,'
11359 lt_prog_compiler_pic='-qpic'
11360 lt_prog_compiler_static='-qstaticlink'
11361 ;;
11362 *)
11363 case `$CC -V 2>&1 | sed 5q` in
11364 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11366 lt_prog_compiler_pic='-KPIC'
11367 lt_prog_compiler_static='-Bstatic'
11368 lt_prog_compiler_wl=''
11369 ;;
11370 *Sun\ F* | *Sun*Fortran*)
11371 lt_prog_compiler_pic='-KPIC'
11372 lt_prog_compiler_static='-Bstatic'
11373 lt_prog_compiler_wl='-Qoption ld '
11374 ;;
11375 *Sun\ C*)
11376 # Sun C 5.9
11377 lt_prog_compiler_pic='-KPIC'
11378 lt_prog_compiler_static='-Bstatic'
11379 lt_prog_compiler_wl='-Wl,'
11380 ;;
11381 *Intel*\ [CF]*Compiler*)
11382 lt_prog_compiler_wl='-Wl,'
11383 lt_prog_compiler_pic='-fPIC'
11384 lt_prog_compiler_static='-static'
11385 ;;
11386 *Portland\ Group*)
11387 lt_prog_compiler_wl='-Wl,'
11388 lt_prog_compiler_pic='-fpic'
11389 lt_prog_compiler_static='-Bstatic'
11390 ;;
11391 esac
11392 ;;
11393 esac
11394 ;;
11395
11396 newsos6)
11397 lt_prog_compiler_pic='-KPIC'
11398 lt_prog_compiler_static='-Bstatic'
11399 ;;
11400
11401 *nto* | *qnx*)
11402 # QNX uses GNU C++, but need to define -shared option too, otherwise
11403 # it will coredump.
11404 lt_prog_compiler_pic='-fPIC -shared'
11405 ;;
11406
11407 osf3* | osf4* | osf5*)
11408 lt_prog_compiler_wl='-Wl,'
11409 # All OSF/1 code is PIC.
11410 lt_prog_compiler_static='-non_shared'
11411 ;;
11412
11413 rdos*)
11414 lt_prog_compiler_static='-non_shared'
11415 ;;
11416
11417 solaris*)
11418 lt_prog_compiler_pic='-KPIC'
11419 lt_prog_compiler_static='-Bstatic'
11420 case $cc_basename in
11421 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11422 lt_prog_compiler_wl='-Qoption ld ';;
11423 *)
11424 lt_prog_compiler_wl='-Wl,';;
11425 esac
11426 ;;
11427
11428 sunos4*)
11429 lt_prog_compiler_wl='-Qoption ld '
11430 lt_prog_compiler_pic='-PIC'
11431 lt_prog_compiler_static='-Bstatic'
11432 ;;
11433
11434 sysv4 | sysv4.2uw2* | sysv4.3*)
11435 lt_prog_compiler_wl='-Wl,'
11436 lt_prog_compiler_pic='-KPIC'
11437 lt_prog_compiler_static='-Bstatic'
11438 ;;
11439
11440 sysv4*MP*)
11441 if test -d /usr/nec; then
11442 lt_prog_compiler_pic='-Kconform_pic'
11443 lt_prog_compiler_static='-Bstatic'
11444 fi
11445 ;;
11446
11447 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11448 lt_prog_compiler_wl='-Wl,'
11449 lt_prog_compiler_pic='-KPIC'
11450 lt_prog_compiler_static='-Bstatic'
11451 ;;
11452
11453 unicos*)
11454 lt_prog_compiler_wl='-Wl,'
11455 lt_prog_compiler_can_build_shared=no
11456 ;;
11457
11458 uts4*)
11459 lt_prog_compiler_pic='-pic'
11460 lt_prog_compiler_static='-Bstatic'
11461 ;;
11462
11463 *)
11464 lt_prog_compiler_can_build_shared=no
11465 ;;
11466 esac
11467 fi
11468
11469 case $host_os in
11470 # For platforms that do not support PIC, -DPIC is meaningless:
11471 *djgpp*)
11472 lt_prog_compiler_pic=
11473 ;;
11474 *)
11475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11476 ;;
11477 esac
11478
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11480 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11481 if ${lt_cv_prog_compiler_pic+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11487 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11488 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11489
11490 #
11491 # Check to make sure the PIC flag actually works.
11492 #
11493 if test -n "$lt_prog_compiler_pic"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11495 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11496 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 lt_cv_prog_compiler_pic_works=no
11500 ac_outfile=conftest.$ac_objext
11501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11503 # Insert the option either (1) after the last *FLAGS variable, or
11504 # (2) before a word containing "conftest.", or (3) at the end.
11505 # Note that $ac_compile itself does not contain backslashes and begins
11506 # with a dollar sign (not a hyphen), so the echo should work correctly.
11507 # The option is referenced via a variable to avoid confusing sed.
11508 lt_compile=`echo "$ac_compile" | $SED \
11509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511 -e 's:$: $lt_compiler_flag:'`
11512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11513 (eval "$lt_compile" 2>conftest.err)
11514 ac_status=$?
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 if (exit $ac_status) && test -s "$ac_outfile"; then
11518 # The compiler can only warn and ignore the option if not recognized
11519 # So say no if there are warnings other than the usual output.
11520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11523 lt_cv_prog_compiler_pic_works=yes
11524 fi
11525 fi
11526 $RM -r conftest*
11527
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11530 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11531
11532 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11533 case $lt_prog_compiler_pic in
11534 "" | " "*) ;;
11535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11536 esac
11537 else
11538 lt_prog_compiler_pic=
11539 lt_prog_compiler_can_build_shared=no
11540 fi
11541
11542 fi
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 #
11555 # Check to make sure the static flag actually works.
11556 #
11557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11559 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11560 if ${lt_cv_prog_compiler_static_works+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 lt_cv_prog_compiler_static_works=no
11564 save_LDFLAGS=$LDFLAGS
11565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11568 # The linker can only warn and ignore the option if not recognized
11569 # So say no if there are warnings
11570 if test -s conftest.err; then
11571 # Append any errors to the config.log.
11572 cat conftest.err 1>&5
11573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11575 if diff conftest.exp conftest.er2 >/dev/null; then
11576 lt_cv_prog_compiler_static_works=yes
11577 fi
11578 else
11579 lt_cv_prog_compiler_static_works=yes
11580 fi
11581 fi
11582 $RM -r conftest*
11583 LDFLAGS=$save_LDFLAGS
11584
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11587 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11588
11589 if test yes = "$lt_cv_prog_compiler_static_works"; then
11590 :
11591 else
11592 lt_prog_compiler_static=
11593 fi
11594
11595
11596
11597
11598
11599
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11603 if ${lt_cv_prog_compiler_c_o+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 lt_cv_prog_compiler_c_o=no
11607 $RM -r conftest 2>/dev/null
11608 mkdir conftest
11609 cd conftest
11610 mkdir out
11611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11612
11613 lt_compiler_flag="-o out/conftest2.$ac_objext"
11614 # Insert the option either (1) after the last *FLAGS variable, or
11615 # (2) before a word containing "conftest.", or (3) at the end.
11616 # Note that $ac_compile itself does not contain backslashes and begins
11617 # with a dollar sign (not a hyphen), so the echo should work correctly.
11618 lt_compile=`echo "$ac_compile" | $SED \
11619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11621 -e 's:$: $lt_compiler_flag:'`
11622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11623 (eval "$lt_compile" 2>out/conftest.err)
11624 ac_status=$?
11625 cat out/conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11628 then
11629 # The compiler can only warn and ignore the option if not recognized
11630 # So say no if there are warnings
11631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11634 lt_cv_prog_compiler_c_o=yes
11635 fi
11636 fi
11637 chmod u+w . 2>&5
11638 $RM -r conftest*
11639 # SGI C++ compiler will create directory out/ii_files/ for
11640 # template instantiation
11641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11642 $RM out/* && rmdir out
11643 cd ..
11644 $RM -r conftest
11645 $RM -r conftest*
11646
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11650
11651
11652
11653
11654
11655
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11658 if ${lt_cv_prog_compiler_c_o+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 lt_cv_prog_compiler_c_o=no
11662 $RM -r conftest 2>/dev/null
11663 mkdir conftest
11664 cd conftest
11665 mkdir out
11666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11667
11668 lt_compiler_flag="-o out/conftest2.$ac_objext"
11669 # Insert the option either (1) after the last *FLAGS variable, or
11670 # (2) before a word containing "conftest.", or (3) at the end.
11671 # Note that $ac_compile itself does not contain backslashes and begins
11672 # with a dollar sign (not a hyphen), so the echo should work correctly.
11673 lt_compile=`echo "$ac_compile" | $SED \
11674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676 -e 's:$: $lt_compiler_flag:'`
11677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11678 (eval "$lt_compile" 2>out/conftest.err)
11679 ac_status=$?
11680 cat out/conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11683 then
11684 # The compiler can only warn and ignore the option if not recognized
11685 # So say no if there are warnings
11686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11689 lt_cv_prog_compiler_c_o=yes
11690 fi
11691 fi
11692 chmod u+w . 2>&5
11693 $RM -r conftest*
11694 # SGI C++ compiler will create directory out/ii_files/ for
11695 # template instantiation
11696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11697 $RM out/* && rmdir out
11698 cd ..
11699 $RM -r conftest
11700 $RM -r conftest*
11701
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11705
11706
11707
11708
11709 hard_links=nottested
11710 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11711 # do not overwrite the value of need_locks provided by the user
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11713 $as_echo_n "checking if we can lock with hard links... " >&6; }
11714 hard_links=yes
11715 $RM -r conftest*
11716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11717 touch conftest.a
11718 ln conftest.a conftest.b 2>&5 || hard_links=no
11719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11721 $as_echo "$hard_links" >&6; }
11722 if test no = "$hard_links"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11724 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11725 need_locks=warn
11726 fi
11727 else
11728 need_locks=no
11729 fi
11730
11731
11732
11733
11734
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11738
11739 runpath_var=
11740 allow_undefined_flag=
11741 always_export_symbols=no
11742 archive_cmds=
11743 archive_expsym_cmds=
11744 compiler_needs_object=no
11745 enable_shared_with_static_runtimes=no
11746 export_dynamic_flag_spec=
11747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11748 hardcode_automatic=no
11749 hardcode_direct=no
11750 hardcode_direct_absolute=no
11751 hardcode_libdir_flag_spec=
11752 hardcode_libdir_separator=
11753 hardcode_minus_L=no
11754 hardcode_shlibpath_var=unsupported
11755 inherit_rpath=no
11756 link_all_deplibs=unknown
11757 module_cmds=
11758 module_expsym_cmds=
11759 old_archive_from_new_cmds=
11760 old_archive_from_expsyms_cmds=
11761 thread_safe_flag_spec=
11762 whole_archive_flag_spec=
11763 # include_expsyms should be a list of space-separated symbols to be *always*
11764 # included in the symbol list
11765 include_expsyms=
11766 # exclude_expsyms can be an extended regexp of symbols to exclude
11767 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11768 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11769 # as well as any symbol that contains 'd'.
11770 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11771 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11772 # platforms (ab)use it in PIC code, but their linkers get confused if
11773 # the symbol is explicitly referenced. Since portable code cannot
11774 # rely on this symbol name, it's probably fine to never include it in
11775 # preloaded symbol tables.
11776 # Exclude shared library initialization/finalization symbols.
11777 extract_expsyms_cmds=
11778
11779 case $host_os in
11780 cygwin* | mingw* | pw32* | cegcc*)
11781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11782 # When not using gcc, we currently assume that we are using
11783 # Microsoft Visual C++.
11784 if test yes != "$GCC"; then
11785 with_gnu_ld=no
11786 fi
11787 ;;
11788 interix*)
11789 # we just hope/assume this is gcc and not c89 (= MSVC++)
11790 with_gnu_ld=yes
11791 ;;
11792 openbsd* | bitrig*)
11793 with_gnu_ld=no
11794 ;;
11795 esac
11796
11797 ld_shlibs=yes
11798
11799 # On some targets, GNU ld is compatible enough with the native linker
11800 # that we're better off using the native interface for both.
11801 lt_use_gnu_ld_interface=no
11802 if test yes = "$with_gnu_ld"; then
11803 case $host_os in
11804 aix*)
11805 # The AIX port of GNU ld has always aspired to compatibility
11806 # with the native linker. However, as the warning in the GNU ld
11807 # block says, versions before 2.19.5* couldn't really create working
11808 # shared libraries, regardless of the interface used.
11809 case `$LD -v 2>&1` in
11810 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11811 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11812 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11813 *)
11814 lt_use_gnu_ld_interface=yes
11815 ;;
11816 esac
11817 ;;
11818 *)
11819 lt_use_gnu_ld_interface=yes
11820 ;;
11821 esac
11822 fi
11823
11824 if test yes = "$lt_use_gnu_ld_interface"; then
11825 # If archive_cmds runs LD, not CC, wlarc should be empty
11826 wlarc='$wl'
11827
11828 # Set some defaults for GNU ld with shared library support. These
11829 # are reset later if shared libraries are not supported. Putting them
11830 # here allows them to be overridden if necessary.
11831 runpath_var=LD_RUN_PATH
11832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11833 export_dynamic_flag_spec='$wl--export-dynamic'
11834 # ancient GNU ld didn't support --whole-archive et. al.
11835 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11836 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11837 else
11838 whole_archive_flag_spec=
11839 fi
11840 supports_anon_versioning=no
11841 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11842 *GNU\ gold*) supports_anon_versioning=yes ;;
11843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11846 *\ 2.11.*) ;; # other 2.11 versions
11847 *) supports_anon_versioning=yes ;;
11848 esac
11849
11850 # See if GNU ld supports shared libraries.
11851 case $host_os in
11852 aix[3-9]*)
11853 # On AIX/PPC, the GNU linker is very broken
11854 if test ia64 != "$host_cpu"; then
11855 ld_shlibs=no
11856 cat <<_LT_EOF 1>&2
11857
11858 *** Warning: the GNU linker, at least up to release 2.19, is reported
11859 *** to be unable to reliably create shared libraries on AIX.
11860 *** Therefore, libtool is disabling shared libraries support. If you
11861 *** really care for shared libraries, you may want to install binutils
11862 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11863 *** You will then need to restart the configuration process.
11864
11865 _LT_EOF
11866 fi
11867 ;;
11868
11869 amigaos*)
11870 case $host_cpu in
11871 powerpc)
11872 # see comment about AmigaOS4 .so support
11873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11874 archive_expsym_cmds=''
11875 ;;
11876 m68k)
11877 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)'
11878 hardcode_libdir_flag_spec='-L$libdir'
11879 hardcode_minus_L=yes
11880 ;;
11881 esac
11882 ;;
11883
11884 beos*)
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 allow_undefined_flag=unsupported
11887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11888 # support --undefined. This deserves some investigation. FIXME
11889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11890 else
11891 ld_shlibs=no
11892 fi
11893 ;;
11894
11895 cygwin* | mingw* | pw32* | cegcc*)
11896 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11897 # as there is no search path for DLLs.
11898 hardcode_libdir_flag_spec='-L$libdir'
11899 export_dynamic_flag_spec='$wl--export-all-symbols'
11900 allow_undefined_flag=unsupported
11901 always_export_symbols=no
11902 enable_shared_with_static_runtimes=yes
11903 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'
11904 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11905
11906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11908 # If the export-symbols file already is a .def file, use it as
11909 # is; otherwise, prepend EXPORTS...
11910 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11911 cp $export_symbols $output_objdir/$soname.def;
11912 else
11913 echo EXPORTS > $output_objdir/$soname.def;
11914 cat $export_symbols >> $output_objdir/$soname.def;
11915 fi~
11916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11917 else
11918 ld_shlibs=no
11919 fi
11920 ;;
11921
11922 haiku*)
11923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11924 link_all_deplibs=yes
11925 ;;
11926
11927 os2*)
11928 hardcode_libdir_flag_spec='-L$libdir'
11929 hardcode_minus_L=yes
11930 allow_undefined_flag=unsupported
11931 shrext_cmds=.dll
11932 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11933 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11934 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11935 $ECHO EXPORTS >> $output_objdir/$libname.def~
11936 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11937 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11938 emximp -o $lib $output_objdir/$libname.def'
11939 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11940 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11941 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11942 $ECHO EXPORTS >> $output_objdir/$libname.def~
11943 prefix_cmds="$SED"~
11944 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11945 prefix_cmds="$prefix_cmds -e 1d";
11946 fi~
11947 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11948 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11949 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11950 emximp -o $lib $output_objdir/$libname.def'
11951 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11952 enable_shared_with_static_runtimes=yes
11953 ;;
11954
11955 interix[3-9]*)
11956 hardcode_direct=no
11957 hardcode_shlibpath_var=no
11958 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11959 export_dynamic_flag_spec='$wl-E'
11960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11961 # Instead, shared libraries are loaded at an image base (0x10000000 by
11962 # default) and relocated if they conflict, which is a slow very memory
11963 # consuming and fragmenting process. To avoid this, we pick a random,
11964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11967 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'
11968 ;;
11969
11970 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11971 tmp_diet=no
11972 if test linux-dietlibc = "$host_os"; then
11973 case $cc_basename in
11974 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11975 esac
11976 fi
11977 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11978 && test no = "$tmp_diet"
11979 then
11980 tmp_addflag=' $pic_flag'
11981 tmp_sharedflag='-shared'
11982 case $cc_basename,$host_cpu in
11983 pgcc*) # Portland Group C compiler
11984 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'
11985 tmp_addflag=' $pic_flag'
11986 ;;
11987 pgf77* | pgf90* | pgf95* | pgfortran*)
11988 # Portland Group f77 and f90 compilers
11989 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'
11990 tmp_addflag=' $pic_flag -Mnomain' ;;
11991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11992 tmp_addflag=' -i_dynamic' ;;
11993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11994 tmp_addflag=' -i_dynamic -nofor_main' ;;
11995 ifc* | ifort*) # Intel Fortran compiler
11996 tmp_addflag=' -nofor_main' ;;
11997 lf95*) # Lahey Fortran 8.1
11998 whole_archive_flag_spec=
11999 tmp_sharedflag='--shared' ;;
12000 nagfor*) # NAGFOR 5.3
12001 tmp_sharedflag='-Wl,-shared' ;;
12002 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12003 tmp_sharedflag='-qmkshrobj'
12004 tmp_addflag= ;;
12005 nvcc*) # Cuda Compiler Driver 2.2
12006 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'
12007 compiler_needs_object=yes
12008 ;;
12009 esac
12010 case `$CC -V 2>&1 | sed 5q` in
12011 *Sun\ C*) # Sun C 5.9
12012 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'
12013 compiler_needs_object=yes
12014 tmp_sharedflag='-G' ;;
12015 *Sun\ F*) # Sun Fortran 8.3
12016 tmp_sharedflag='-G' ;;
12017 esac
12018 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12019
12020 if test yes = "$supports_anon_versioning"; then
12021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12023 echo "local: *; };" >> $output_objdir/$libname.ver~
12024 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12025 fi
12026
12027 case $cc_basename in
12028 tcc*)
12029 export_dynamic_flag_spec='-rdynamic'
12030 ;;
12031 xlf* | bgf* | bgxlf* | mpixlf*)
12032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12035 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12036 if test yes = "$supports_anon_versioning"; then
12037 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12039 echo "local: *; };" >> $output_objdir/$libname.ver~
12040 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12041 fi
12042 ;;
12043 esac
12044 else
12045 ld_shlibs=no
12046 fi
12047 ;;
12048
12049 netbsd*)
12050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12051 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12052 wlarc=
12053 else
12054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12055 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12056 fi
12057 ;;
12058
12059 solaris*)
12060 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12061 ld_shlibs=no
12062 cat <<_LT_EOF 1>&2
12063
12064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12065 *** create shared libraries on Solaris systems. Therefore, libtool
12066 *** is disabling shared libraries support. We urge you to upgrade GNU
12067 *** binutils to release 2.9.1 or newer. Another option is to modify
12068 *** your PATH or compiler configuration so that the native linker is
12069 *** used, and then restart.
12070
12071 _LT_EOF
12072 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12074 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12075 else
12076 ld_shlibs=no
12077 fi
12078 ;;
12079
12080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12081 case `$LD -v 2>&1` in
12082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12083 ld_shlibs=no
12084 cat <<_LT_EOF 1>&2
12085
12086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12087 *** reliably create shared libraries on SCO systems. Therefore, libtool
12088 *** is disabling shared libraries support. We urge you to upgrade GNU
12089 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12090 *** your PATH or compiler configuration so that the native linker is
12091 *** used, and then restart.
12092
12093 _LT_EOF
12094 ;;
12095 *)
12096 # For security reasons, it is highly recommended that you always
12097 # use absolute paths for naming shared libraries, and exclude the
12098 # DT_RUNPATH tag from executables and libraries. But doing so
12099 # requires that you compile everything twice, which is a pain.
12100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12104 else
12105 ld_shlibs=no
12106 fi
12107 ;;
12108 esac
12109 ;;
12110
12111 sunos4*)
12112 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12113 wlarc=
12114 hardcode_direct=yes
12115 hardcode_shlibpath_var=no
12116 ;;
12117
12118 *)
12119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12121 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12122 else
12123 ld_shlibs=no
12124 fi
12125 ;;
12126 esac
12127
12128 if test no = "$ld_shlibs"; then
12129 runpath_var=
12130 hardcode_libdir_flag_spec=
12131 export_dynamic_flag_spec=
12132 whole_archive_flag_spec=
12133 fi
12134 else
12135 # PORTME fill in a description of your system's linker (not GNU ld)
12136 case $host_os in
12137 aix3*)
12138 allow_undefined_flag=unsupported
12139 always_export_symbols=yes
12140 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'
12141 # Note: this linker hardcodes the directories in LIBPATH if there
12142 # are no directories specified by -L.
12143 hardcode_minus_L=yes
12144 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12145 # Neither direct hardcoding nor static linking is supported with a
12146 # broken collect2.
12147 hardcode_direct=unsupported
12148 fi
12149 ;;
12150
12151 aix[4-9]*)
12152 if test ia64 = "$host_cpu"; then
12153 # On IA64, the linker does run time linking by default, so we don't
12154 # have to do anything special.
12155 aix_use_runtimelinking=no
12156 exp_sym_flag='-Bexport'
12157 no_entry_flag=
12158 else
12159 # If we're using GNU nm, then we don't want the "-C" option.
12160 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12161 # Without the "-l" option, or with the "-B" option, AIX nm treats
12162 # weak defined symbols like other global defined symbols, whereas
12163 # GNU nm marks them as "W".
12164 # While the 'weak' keyword is ignored in the Export File, we need
12165 # it in the Import File for the 'aix-soname' feature, so we have
12166 # to replace the "-B" option with "-P" for AIX nm.
12167 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12168 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12169 else
12170 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12171 fi
12172 aix_use_runtimelinking=no
12173
12174 # Test if we are trying to use run time linking or normal
12175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12176 # have runtime linking enabled, and use it for executables.
12177 # For shared libraries, we enable/disable runtime linking
12178 # depending on the kind of the shared library created -
12179 # when "with_aix_soname,aix_use_runtimelinking" is:
12180 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12181 # "aix,yes" lib.so shared, rtl:yes, for executables
12182 # lib.a static archive
12183 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12184 # lib.a(lib.so.V) shared, rtl:no, for executables
12185 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12186 # lib.a(lib.so.V) shared, rtl:no
12187 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12188 # lib.a static archive
12189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12190 for ld_flag in $LDFLAGS; do
12191 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12192 aix_use_runtimelinking=yes
12193 break
12194 fi
12195 done
12196 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12197 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12198 # so we don't have lib.a shared libs to link our executables.
12199 # We have to force runtime linking in this case.
12200 aix_use_runtimelinking=yes
12201 LDFLAGS="$LDFLAGS -Wl,-brtl"
12202 fi
12203 ;;
12204 esac
12205
12206 exp_sym_flag='-bexport'
12207 no_entry_flag='-bnoentry'
12208 fi
12209
12210 # When large executables or shared objects are built, AIX ld can
12211 # have problems creating the table of contents. If linking a library
12212 # or program results in "error TOC overflow" add -mminimal-toc to
12213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12215
12216 archive_cmds=''
12217 hardcode_direct=yes
12218 hardcode_direct_absolute=yes
12219 hardcode_libdir_separator=':'
12220 link_all_deplibs=yes
12221 file_list_spec='$wl-f,'
12222 case $with_aix_soname,$aix_use_runtimelinking in
12223 aix,*) ;; # traditional, no import file
12224 svr4,* | *,yes) # use import file
12225 # The Import File defines what to hardcode.
12226 hardcode_direct=no
12227 hardcode_direct_absolute=no
12228 ;;
12229 esac
12230
12231 if test yes = "$GCC"; then
12232 case $host_os in aix4.[012]|aix4.[012].*)
12233 # We only want to do this on AIX 4.2 and lower, the check
12234 # below for broken collect2 doesn't work under 4.3+
12235 collect2name=`$CC -print-prog-name=collect2`
12236 if test -f "$collect2name" &&
12237 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12238 then
12239 # We have reworked collect2
12240 :
12241 else
12242 # We have old collect2
12243 hardcode_direct=unsupported
12244 # It fails to find uninstalled libraries when the uninstalled
12245 # path is not listed in the libpath. Setting hardcode_minus_L
12246 # to unsupported forces relinking
12247 hardcode_minus_L=yes
12248 hardcode_libdir_flag_spec='-L$libdir'
12249 hardcode_libdir_separator=
12250 fi
12251 ;;
12252 esac
12253 shared_flag='-shared'
12254 if test yes = "$aix_use_runtimelinking"; then
12255 shared_flag="$shared_flag "'$wl-G'
12256 fi
12257 # Need to ensure runtime linking is disabled for the traditional
12258 # shared library, or the linker may eventually find shared libraries
12259 # /with/ Import File - we do not want to mix them.
12260 shared_flag_aix='-shared'
12261 shared_flag_svr4='-shared $wl-G'
12262 else
12263 # not using gcc
12264 if test ia64 = "$host_cpu"; then
12265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12266 # chokes on -Wl,-G. The following line is correct:
12267 shared_flag='-G'
12268 else
12269 if test yes = "$aix_use_runtimelinking"; then
12270 shared_flag='$wl-G'
12271 else
12272 shared_flag='$wl-bM:SRE'
12273 fi
12274 shared_flag_aix='$wl-bM:SRE'
12275 shared_flag_svr4='$wl-G'
12276 fi
12277 fi
12278
12279 export_dynamic_flag_spec='$wl-bexpall'
12280 # It seems that -bexpall does not export symbols beginning with
12281 # underscore (_), so it is better to generate a list of symbols to export.
12282 always_export_symbols=yes
12283 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12284 # Warning - without using the other runtime loading flags (-brtl),
12285 # -berok will link without error, but may produce a broken library.
12286 allow_undefined_flag='-berok'
12287 # Determine the default libpath from the value encoded in an
12288 # empty executable.
12289 if test set = "${lt_cv_aix_libpath+set}"; then
12290 aix_libpath=$lt_cv_aix_libpath
12291 else
12292 if ${lt_cv_aix_libpath_+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297
12298 int
12299 main ()
12300 {
12301
12302 ;
12303 return 0;
12304 }
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307
12308 lt_aix_libpath_sed='
12309 /Import File Strings/,/^$/ {
12310 /^0/ {
12311 s/^0 *\([^ ]*\) *$/\1/
12312 p
12313 }
12314 }'
12315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12316 # Check for a 64-bit object if we didn't find anything.
12317 if test -z "$lt_cv_aix_libpath_"; then
12318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319 fi
12320 fi
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12323 if test -z "$lt_cv_aix_libpath_"; then
12324 lt_cv_aix_libpath_=/usr/lib:/lib
12325 fi
12326
12327 fi
12328
12329 aix_libpath=$lt_cv_aix_libpath_
12330 fi
12331
12332 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12333 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12334 else
12335 if test ia64 = "$host_cpu"; then
12336 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12337 allow_undefined_flag="-z nodefs"
12338 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"
12339 else
12340 # Determine the default libpath from the value encoded in an
12341 # empty executable.
12342 if test set = "${lt_cv_aix_libpath+set}"; then
12343 aix_libpath=$lt_cv_aix_libpath
12344 else
12345 if ${lt_cv_aix_libpath_+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350
12351 int
12352 main ()
12353 {
12354
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_link "$LINENO"; then :
12360
12361 lt_aix_libpath_sed='
12362 /Import File Strings/,/^$/ {
12363 /^0/ {
12364 s/^0 *\([^ ]*\) *$/\1/
12365 p
12366 }
12367 }'
12368 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12369 # Check for a 64-bit object if we didn't find anything.
12370 if test -z "$lt_cv_aix_libpath_"; then
12371 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12372 fi
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 if test -z "$lt_cv_aix_libpath_"; then
12377 lt_cv_aix_libpath_=/usr/lib:/lib
12378 fi
12379
12380 fi
12381
12382 aix_libpath=$lt_cv_aix_libpath_
12383 fi
12384
12385 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12386 # Warning - without using the other run time loading flags,
12387 # -berok will link without error, but may produce a broken library.
12388 no_undefined_flag=' $wl-bernotok'
12389 allow_undefined_flag=' $wl-berok'
12390 if test yes = "$with_gnu_ld"; then
12391 # We only use this code for GNU lds that support --whole-archive.
12392 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12393 else
12394 # Exported symbols can be pulled into shared objects from archives
12395 whole_archive_flag_spec='$convenience'
12396 fi
12397 archive_cmds_need_lc=yes
12398 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12399 # -brtl affects multiple linker settings, -berok does not and is overridden later
12400 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12401 if test svr4 != "$with_aix_soname"; then
12402 # This is similar to how AIX traditionally builds its shared libraries.
12403 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12404 fi
12405 if test aix != "$with_aix_soname"; then
12406 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12407 else
12408 # used by -dlpreopen to get the symbols
12409 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12410 fi
12411 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12412 fi
12413 fi
12414 ;;
12415
12416 amigaos*)
12417 case $host_cpu in
12418 powerpc)
12419 # see comment about AmigaOS4 .so support
12420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12421 archive_expsym_cmds=''
12422 ;;
12423 m68k)
12424 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)'
12425 hardcode_libdir_flag_spec='-L$libdir'
12426 hardcode_minus_L=yes
12427 ;;
12428 esac
12429 ;;
12430
12431 bsdi[45]*)
12432 export_dynamic_flag_spec=-rdynamic
12433 ;;
12434
12435 cygwin* | mingw* | pw32* | cegcc*)
12436 # When not using gcc, we currently assume that we are using
12437 # Microsoft Visual C++.
12438 # hardcode_libdir_flag_spec is actually meaningless, as there is
12439 # no search path for DLLs.
12440 case $cc_basename in
12441 cl*)
12442 # Native MSVC
12443 hardcode_libdir_flag_spec=' '
12444 allow_undefined_flag=unsupported
12445 always_export_symbols=yes
12446 file_list_spec='@'
12447 # Tell ltmain to make .lib files, not .a files.
12448 libext=lib
12449 # Tell ltmain to make .dll files, not .so files.
12450 shrext_cmds=.dll
12451 # FIXME: Setting linknames here is a bad hack.
12452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12453 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12454 cp "$export_symbols" "$output_objdir/$soname.def";
12455 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12456 else
12457 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12458 fi~
12459 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12460 linknames='
12461 # The linker will not automatically build a static lib if we build a DLL.
12462 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12463 enable_shared_with_static_runtimes=yes
12464 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12466 # Don't use ranlib
12467 old_postinstall_cmds='chmod 644 $oldlib'
12468 postlink_cmds='lt_outputfile="@OUTPUT@"~
12469 lt_tool_outputfile="@TOOL_OUTPUT@"~
12470 case $lt_outputfile in
12471 *.exe|*.EXE) ;;
12472 *)
12473 lt_outputfile=$lt_outputfile.exe
12474 lt_tool_outputfile=$lt_tool_outputfile.exe
12475 ;;
12476 esac~
12477 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12478 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12479 $RM "$lt_outputfile.manifest";
12480 fi'
12481 ;;
12482 *)
12483 # Assume MSVC wrapper
12484 hardcode_libdir_flag_spec=' '
12485 allow_undefined_flag=unsupported
12486 # Tell ltmain to make .lib files, not .a files.
12487 libext=lib
12488 # Tell ltmain to make .dll files, not .so files.
12489 shrext_cmds=.dll
12490 # FIXME: Setting linknames here is a bad hack.
12491 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12492 # The linker will automatically build a .lib file if we build a DLL.
12493 old_archive_from_new_cmds='true'
12494 # FIXME: Should let the user specify the lib program.
12495 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12496 enable_shared_with_static_runtimes=yes
12497 ;;
12498 esac
12499 ;;
12500
12501 darwin* | rhapsody*)
12502
12503
12504 archive_cmds_need_lc=no
12505 hardcode_direct=no
12506 hardcode_automatic=yes
12507 hardcode_shlibpath_var=unsupported
12508 if test yes = "$lt_cv_ld_force_load"; then
12509 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\"`'
12510
12511 else
12512 whole_archive_flag_spec=''
12513 fi
12514 link_all_deplibs=yes
12515 allow_undefined_flag=$_lt_dar_allow_undefined
12516 case $cc_basename in
12517 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12518 *) _lt_dar_can_shared=$GCC ;;
12519 esac
12520 if test yes = "$_lt_dar_can_shared"; then
12521 output_verbose_link_cmd=func_echo_all
12522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12524 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"
12525 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"
12526
12527 else
12528 ld_shlibs=no
12529 fi
12530
12531 ;;
12532
12533 dgux*)
12534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12535 hardcode_libdir_flag_spec='-L$libdir'
12536 hardcode_shlibpath_var=no
12537 ;;
12538
12539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12540 # support. Future versions do this automatically, but an explicit c++rt0.o
12541 # does not break anything, and helps significantly (at the cost of a little
12542 # extra space).
12543 freebsd2.2*)
12544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12545 hardcode_libdir_flag_spec='-R$libdir'
12546 hardcode_direct=yes
12547 hardcode_shlibpath_var=no
12548 ;;
12549
12550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12551 freebsd2.*)
12552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12553 hardcode_direct=yes
12554 hardcode_minus_L=yes
12555 hardcode_shlibpath_var=no
12556 ;;
12557
12558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12559 freebsd* | dragonfly*)
12560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12561 hardcode_libdir_flag_spec='-R$libdir'
12562 hardcode_direct=yes
12563 hardcode_shlibpath_var=no
12564 ;;
12565
12566 hpux9*)
12567 if test yes = "$GCC"; then
12568 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12569 else
12570 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12571 fi
12572 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12573 hardcode_libdir_separator=:
12574 hardcode_direct=yes
12575
12576 # hardcode_minus_L: Not really in the search PATH,
12577 # but as the default location of the library.
12578 hardcode_minus_L=yes
12579 export_dynamic_flag_spec='$wl-E'
12580 ;;
12581
12582 hpux10*)
12583 if test yes,no = "$GCC,$with_gnu_ld"; then
12584 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12585 else
12586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12587 fi
12588 if test no = "$with_gnu_ld"; then
12589 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12590 hardcode_libdir_separator=:
12591 hardcode_direct=yes
12592 hardcode_direct_absolute=yes
12593 export_dynamic_flag_spec='$wl-E'
12594 # hardcode_minus_L: Not really in the search PATH,
12595 # but as the default location of the library.
12596 hardcode_minus_L=yes
12597 fi
12598 ;;
12599
12600 hpux11*)
12601 if test yes,no = "$GCC,$with_gnu_ld"; then
12602 case $host_cpu in
12603 hppa*64*)
12604 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12605 ;;
12606 ia64*)
12607 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12608 ;;
12609 *)
12610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12611 ;;
12612 esac
12613 else
12614 case $host_cpu in
12615 hppa*64*)
12616 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12617 ;;
12618 ia64*)
12619 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12620 ;;
12621 *)
12622
12623 # Older versions of the 11.00 compiler do not understand -b yet
12624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12626 $as_echo_n "checking if $CC understands -b... " >&6; }
12627 if ${lt_cv_prog_compiler__b+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 lt_cv_prog_compiler__b=no
12631 save_LDFLAGS=$LDFLAGS
12632 LDFLAGS="$LDFLAGS -b"
12633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12635 # The linker can only warn and ignore the option if not recognized
12636 # So say no if there are warnings
12637 if test -s conftest.err; then
12638 # Append any errors to the config.log.
12639 cat conftest.err 1>&5
12640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12642 if diff conftest.exp conftest.er2 >/dev/null; then
12643 lt_cv_prog_compiler__b=yes
12644 fi
12645 else
12646 lt_cv_prog_compiler__b=yes
12647 fi
12648 fi
12649 $RM -r conftest*
12650 LDFLAGS=$save_LDFLAGS
12651
12652 fi
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12654 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12655
12656 if test yes = "$lt_cv_prog_compiler__b"; then
12657 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12658 else
12659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12660 fi
12661
12662 ;;
12663 esac
12664 fi
12665 if test no = "$with_gnu_ld"; then
12666 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12667 hardcode_libdir_separator=:
12668
12669 case $host_cpu in
12670 hppa*64*|ia64*)
12671 hardcode_direct=no
12672 hardcode_shlibpath_var=no
12673 ;;
12674 *)
12675 hardcode_direct=yes
12676 hardcode_direct_absolute=yes
12677 export_dynamic_flag_spec='$wl-E'
12678
12679 # hardcode_minus_L: Not really in the search PATH,
12680 # but as the default location of the library.
12681 hardcode_minus_L=yes
12682 ;;
12683 esac
12684 fi
12685 ;;
12686
12687 irix5* | irix6* | nonstopux*)
12688 if test yes = "$GCC"; then
12689 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'
12690 # Try to use the -exported_symbol ld option, if it does not
12691 # work, assume that -exports_file does not work either and
12692 # implicitly export all symbols.
12693 # This should be the same for all languages, so no per-tag cache variable.
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12695 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12696 if ${lt_cv_irix_exported_symbol+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 save_LDFLAGS=$LDFLAGS
12700 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 int foo (void) { return 0; }
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 lt_cv_irix_exported_symbol=yes
12707 else
12708 lt_cv_irix_exported_symbol=no
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LDFLAGS=$save_LDFLAGS
12713 fi
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12715 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12716 if test yes = "$lt_cv_irix_exported_symbol"; then
12717 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'
12718 fi
12719 else
12720 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'
12721 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'
12722 fi
12723 archive_cmds_need_lc='no'
12724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12725 hardcode_libdir_separator=:
12726 inherit_rpath=yes
12727 link_all_deplibs=yes
12728 ;;
12729
12730 linux*)
12731 case $cc_basename in
12732 tcc*)
12733 # Fabrice Bellard et al's Tiny C Compiler
12734 ld_shlibs=yes
12735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12736 ;;
12737 esac
12738 ;;
12739
12740 netbsd*)
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12743 else
12744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12745 fi
12746 hardcode_libdir_flag_spec='-R$libdir'
12747 hardcode_direct=yes
12748 hardcode_shlibpath_var=no
12749 ;;
12750
12751 newsos6)
12752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_direct=yes
12754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12755 hardcode_libdir_separator=:
12756 hardcode_shlibpath_var=no
12757 ;;
12758
12759 *nto* | *qnx*)
12760 ;;
12761
12762 openbsd* | bitrig*)
12763 if test -f /usr/libexec/ld.so; then
12764 hardcode_direct=yes
12765 hardcode_shlibpath_var=no
12766 hardcode_direct_absolute=yes
12767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12770 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12771 export_dynamic_flag_spec='$wl-E'
12772 else
12773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12774 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12775 fi
12776 else
12777 ld_shlibs=no
12778 fi
12779 ;;
12780
12781 os2*)
12782 hardcode_libdir_flag_spec='-L$libdir'
12783 hardcode_minus_L=yes
12784 allow_undefined_flag=unsupported
12785 shrext_cmds=.dll
12786 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12787 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12788 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12789 $ECHO EXPORTS >> $output_objdir/$libname.def~
12790 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12791 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12792 emximp -o $lib $output_objdir/$libname.def'
12793 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12796 $ECHO EXPORTS >> $output_objdir/$libname.def~
12797 prefix_cmds="$SED"~
12798 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12799 prefix_cmds="$prefix_cmds -e 1d";
12800 fi~
12801 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12802 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12804 emximp -o $lib $output_objdir/$libname.def'
12805 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12806 enable_shared_with_static_runtimes=yes
12807 ;;
12808
12809 osf3*)
12810 if test yes = "$GCC"; then
12811 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12812 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'
12813 else
12814 allow_undefined_flag=' -expect_unresolved \*'
12815 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'
12816 fi
12817 archive_cmds_need_lc='no'
12818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12819 hardcode_libdir_separator=:
12820 ;;
12821
12822 osf4* | osf5*) # as osf3* with the addition of -msym flag
12823 if test yes = "$GCC"; then
12824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12825 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'
12826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12827 else
12828 allow_undefined_flag=' -expect_unresolved \*'
12829 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'
12830 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~
12831 $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'
12832
12833 # Both c and cxx compiler support -rpath directly
12834 hardcode_libdir_flag_spec='-rpath $libdir'
12835 fi
12836 archive_cmds_need_lc='no'
12837 hardcode_libdir_separator=:
12838 ;;
12839
12840 solaris*)
12841 no_undefined_flag=' -z defs'
12842 if test yes = "$GCC"; then
12843 wlarc='$wl'
12844 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12846 $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'
12847 else
12848 case `$CC -V 2>&1` in
12849 *"Compilers 5.0"*)
12850 wlarc=''
12851 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12853 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12854 ;;
12855 *)
12856 wlarc='$wl'
12857 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12859 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12860 ;;
12861 esac
12862 fi
12863 hardcode_libdir_flag_spec='-R$libdir'
12864 hardcode_shlibpath_var=no
12865 case $host_os in
12866 solaris2.[0-5] | solaris2.[0-5].*) ;;
12867 *)
12868 # The compiler driver will combine and reorder linker options,
12869 # but understands '-z linker_flag'. GCC discards it without '$wl',
12870 # but is careful enough not to reorder.
12871 # Supported since Solaris 2.6 (maybe 2.5.1?)
12872 if test yes = "$GCC"; then
12873 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12874 else
12875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12876 fi
12877 ;;
12878 esac
12879 link_all_deplibs=yes
12880 ;;
12881
12882 sunos4*)
12883 if test sequent = "$host_vendor"; then
12884 # Use $CC to link under sequent, because it throws in some extra .o
12885 # files that make .init and .fini sections work.
12886 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12887 else
12888 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12889 fi
12890 hardcode_libdir_flag_spec='-L$libdir'
12891 hardcode_direct=yes
12892 hardcode_minus_L=yes
12893 hardcode_shlibpath_var=no
12894 ;;
12895
12896 sysv4)
12897 case $host_vendor in
12898 sni)
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct=yes # is this really true???
12901 ;;
12902 siemens)
12903 ## LD is ld it makes a PLAMLIB
12904 ## CC just makes a GrossModule.
12905 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12906 reload_cmds='$CC -r -o $output$reload_objs'
12907 hardcode_direct=no
12908 ;;
12909 motorola)
12910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12912 ;;
12913 esac
12914 runpath_var='LD_RUN_PATH'
12915 hardcode_shlibpath_var=no
12916 ;;
12917
12918 sysv4.3*)
12919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_shlibpath_var=no
12921 export_dynamic_flag_spec='-Bexport'
12922 ;;
12923
12924 sysv4*MP*)
12925 if test -d /usr/nec; then
12926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_shlibpath_var=no
12928 runpath_var=LD_RUN_PATH
12929 hardcode_runpath_var=yes
12930 ld_shlibs=yes
12931 fi
12932 ;;
12933
12934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12935 no_undefined_flag='$wl-z,text'
12936 archive_cmds_need_lc=no
12937 hardcode_shlibpath_var=no
12938 runpath_var='LD_RUN_PATH'
12939
12940 if test yes = "$GCC"; then
12941 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12943 else
12944 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12946 fi
12947 ;;
12948
12949 sysv5* | sco3.2v5* | sco5v6*)
12950 # Note: We CANNOT use -z defs as we might desire, because we do not
12951 # link with -lc, and that would cause any symbols used from libc to
12952 # always be unresolved, which means just about no library would
12953 # ever link correctly. If we're not using GNU ld we use -z text
12954 # though, which does catch some bad symbols but isn't as heavy-handed
12955 # as -z defs.
12956 no_undefined_flag='$wl-z,text'
12957 allow_undefined_flag='$wl-z,nodefs'
12958 archive_cmds_need_lc=no
12959 hardcode_shlibpath_var=no
12960 hardcode_libdir_flag_spec='$wl-R,$libdir'
12961 hardcode_libdir_separator=':'
12962 link_all_deplibs=yes
12963 export_dynamic_flag_spec='$wl-Bexport'
12964 runpath_var='LD_RUN_PATH'
12965
12966 if test yes = "$GCC"; then
12967 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12969 else
12970 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 fi
12973 ;;
12974
12975 uts4*)
12976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_libdir_flag_spec='-L$libdir'
12978 hardcode_shlibpath_var=no
12979 ;;
12980
12981 *)
12982 ld_shlibs=no
12983 ;;
12984 esac
12985
12986 if test sni = "$host_vendor"; then
12987 case $host in
12988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12989 export_dynamic_flag_spec='$wl-Blargedynsym'
12990 ;;
12991 esac
12992 fi
12993 fi
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12996 $as_echo "$ld_shlibs" >&6; }
12997 test no = "$ld_shlibs" && can_build_shared=no
12998
12999 with_gnu_ld=$with_gnu_ld
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015 #
13016 # Do we need to explicitly link libc?
13017 #
13018 case "x$archive_cmds_need_lc" in
13019 x|xyes)
13020 # Assume -lc should be added
13021 archive_cmds_need_lc=yes
13022
13023 if test yes,yes = "$GCC,$enable_shared"; then
13024 case $archive_cmds in
13025 *'~'*)
13026 # FIXME: we may have to deal with multi-command sequences.
13027 ;;
13028 '$CC '*)
13029 # Test whether the compiler implicitly links with -lc since on some
13030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13031 # to ld, don't add -lc before -lgcc.
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13033 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13034 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 $RM -r conftest*
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13041 (eval $ac_compile) 2>&5
13042 ac_status=$?
13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044 test $ac_status = 0; } 2>conftest.err; then
13045 soname=conftest
13046 lib=conftest
13047 libobjs=conftest.$ac_objext
13048 deplibs=
13049 wl=$lt_prog_compiler_wl
13050 pic_flag=$lt_prog_compiler_pic
13051 compiler_flags=-v
13052 linker_flags=-v
13053 verstring=
13054 output_objdir=.
13055 libname=conftest
13056 lt_save_allow_undefined_flag=$allow_undefined_flag
13057 allow_undefined_flag=
13058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }
13063 then
13064 lt_cv_archive_cmds_need_lc=no
13065 else
13066 lt_cv_archive_cmds_need_lc=yes
13067 fi
13068 allow_undefined_flag=$lt_save_allow_undefined_flag
13069 else
13070 cat conftest.err 1>&5
13071 fi
13072 $RM -r conftest*
13073
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13076 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13077 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13078 ;;
13079 esac
13080 fi
13081 ;;
13082 esac
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13236 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13237
13238 if test yes = "$GCC"; then
13239 case $host_os in
13240 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13241 *) lt_awk_arg='/^libraries:/' ;;
13242 esac
13243 case $host_os in
13244 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13245 *) lt_sed_strip_eq='s|=/|/|g' ;;
13246 esac
13247 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13248 case $lt_search_path_spec in
13249 *\;*)
13250 # if the path contains ";" then we assume it to be the separator
13251 # otherwise default to the standard path separator (i.e. ":") - it is
13252 # assumed that no part of a normal pathname contains ";" but that should
13253 # okay in the real world where ";" in dirpaths is itself problematic.
13254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13255 ;;
13256 *)
13257 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13258 ;;
13259 esac
13260 # Ok, now we have the path, separated by spaces, we can step through it
13261 # and add multilib dir if necessary...
13262 lt_tmp_lt_search_path_spec=
13263 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13264 # ...but if some path component already ends with the multilib dir we assume
13265 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13266 case "$lt_multi_os_dir; $lt_search_path_spec " in
13267 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13268 lt_multi_os_dir=
13269 ;;
13270 esac
13271 for lt_sys_path in $lt_search_path_spec; do
13272 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13274 elif test -n "$lt_multi_os_dir"; then
13275 test -d "$lt_sys_path" && \
13276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13277 fi
13278 done
13279 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13280 BEGIN {RS = " "; FS = "/|\n";} {
13281 lt_foo = "";
13282 lt_count = 0;
13283 for (lt_i = NF; lt_i > 0; lt_i--) {
13284 if ($lt_i != "" && $lt_i != ".") {
13285 if ($lt_i == "..") {
13286 lt_count++;
13287 } else {
13288 if (lt_count == 0) {
13289 lt_foo = "/" $lt_i lt_foo;
13290 } else {
13291 lt_count--;
13292 }
13293 }
13294 }
13295 }
13296 if (lt_foo != "") { lt_freq[lt_foo]++; }
13297 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13298 }'`
13299 # AWK program above erroneously prepends '/' to C:/dos/paths
13300 # for these hosts.
13301 case $host_os in
13302 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13303 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13304 esac
13305 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13306 else
13307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13308 fi
13309 library_names_spec=
13310 libname_spec='lib$name'
13311 soname_spec=
13312 shrext_cmds=.so
13313 postinstall_cmds=
13314 postuninstall_cmds=
13315 finish_cmds=
13316 finish_eval=
13317 shlibpath_var=
13318 shlibpath_overrides_runpath=unknown
13319 version_type=none
13320 dynamic_linker="$host_os ld.so"
13321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13322 need_lib_prefix=unknown
13323 hardcode_into_libs=no
13324
13325 # when you set need_version to no, make sure it does not cause -set_version
13326 # flags to be left without arguments
13327 need_version=unknown
13328
13329
13330
13331 case $host_os in
13332 aix3*)
13333 version_type=linux # correct to gnu/linux during the next big refactor
13334 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13335 shlibpath_var=LIBPATH
13336
13337 # AIX 3 has no versioning support, so we append a major version to the name.
13338 soname_spec='$libname$release$shared_ext$major'
13339 ;;
13340
13341 aix[4-9]*)
13342 version_type=linux # correct to gnu/linux during the next big refactor
13343 need_lib_prefix=no
13344 need_version=no
13345 hardcode_into_libs=yes
13346 if test ia64 = "$host_cpu"; then
13347 # AIX 5 supports IA64
13348 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 else
13351 # With GCC up to 2.95.x, collect2 would create an import file
13352 # for dependence libraries. The import file would start with
13353 # the line '#! .'. This would cause the generated library to
13354 # depend on '.', always an invalid library. This was fixed in
13355 # development snapshots of GCC prior to 3.0.
13356 case $host_os in
13357 aix4 | aix4.[01] | aix4.[01].*)
13358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13359 echo ' yes '
13360 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13361 :
13362 else
13363 can_build_shared=no
13364 fi
13365 ;;
13366 esac
13367 # Using Import Files as archive members, it is possible to support
13368 # filename-based versioning of shared library archives on AIX. While
13369 # this would work for both with and without runtime linking, it will
13370 # prevent static linking of such archives. So we do filename-based
13371 # shared library versioning with .so extension only, which is used
13372 # when both runtime linking and shared linking is enabled.
13373 # Unfortunately, runtime linking may impact performance, so we do
13374 # not want this to be the default eventually. Also, we use the
13375 # versioned .so libs for executables only if there is the -brtl
13376 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13377 # To allow for filename-based versioning support, we need to create
13378 # libNAME.so.V as an archive file, containing:
13379 # *) an Import File, referring to the versioned filename of the
13380 # archive as well as the shared archive member, telling the
13381 # bitwidth (32 or 64) of that shared object, and providing the
13382 # list of exported symbols of that shared object, eventually
13383 # decorated with the 'weak' keyword
13384 # *) the shared object with the F_LOADONLY flag set, to really avoid
13385 # it being seen by the linker.
13386 # At run time we better use the real file rather than another symlink,
13387 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13388
13389 case $with_aix_soname,$aix_use_runtimelinking in
13390 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13391 # soname into executable. Probably we can add versioning support to
13392 # collect2, so additional links can be useful in future.
13393 aix,yes) # traditional libtool
13394 dynamic_linker='AIX unversionable lib.so'
13395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13396 # instead of lib<name>.a to let people know that these are not
13397 # typical AIX shared libraries.
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13399 ;;
13400 aix,no) # traditional AIX only
13401 dynamic_linker='AIX lib.a(lib.so.V)'
13402 # We preserve .a as extension for shared libraries through AIX4.2
13403 # and later when we are not doing run time linking.
13404 library_names_spec='$libname$release.a $libname.a'
13405 soname_spec='$libname$release$shared_ext$major'
13406 ;;
13407 svr4,*) # full svr4 only
13408 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13409 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13410 # We do not specify a path in Import Files, so LIBPATH fires.
13411 shlibpath_overrides_runpath=yes
13412 ;;
13413 *,yes) # both, prefer svr4
13414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13416 # unpreferred sharedlib libNAME.a needs extra handling
13417 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13418 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13419 # We do not specify a path in Import Files, so LIBPATH fires.
13420 shlibpath_overrides_runpath=yes
13421 ;;
13422 *,no) # both, prefer aix
13423 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13424 library_names_spec='$libname$release.a $libname.a'
13425 soname_spec='$libname$release$shared_ext$major'
13426 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13427 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13428 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13429 ;;
13430 esac
13431 shlibpath_var=LIBPATH
13432 fi
13433 ;;
13434
13435 amigaos*)
13436 case $host_cpu in
13437 powerpc)
13438 # Since July 2007 AmigaOS4 officially supports .so libraries.
13439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13441 ;;
13442 m68k)
13443 library_names_spec='$libname.ixlibrary $libname.a'
13444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13445 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13446 ;;
13447 esac
13448 ;;
13449
13450 beos*)
13451 library_names_spec='$libname$shared_ext'
13452 dynamic_linker="$host_os ld.so"
13453 shlibpath_var=LIBRARY_PATH
13454 ;;
13455
13456 bsdi[45]*)
13457 version_type=linux # correct to gnu/linux during the next big refactor
13458 need_version=no
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13465 # the default ld.so.conf also contains /usr/contrib/lib and
13466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13467 # libtool to hard-code these into programs
13468 ;;
13469
13470 cygwin* | mingw* | pw32* | cegcc*)
13471 version_type=windows
13472 shrext_cmds=.dll
13473 need_version=no
13474 need_lib_prefix=no
13475
13476 case $GCC,$cc_basename in
13477 yes,*)
13478 # gcc
13479 library_names_spec='$libname.dll.a'
13480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13481 postinstall_cmds='base_file=`basename \$file`~
13482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13483 dldir=$destdir/`dirname \$dlpath`~
13484 test -d \$dldir || mkdir -p \$dldir~
13485 $install_prog $dir/$dlname \$dldir/$dlname~
13486 chmod a+x \$dldir/$dlname~
13487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13489 fi'
13490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13491 dlpath=$dir/\$dldll~
13492 $RM \$dlpath'
13493 shlibpath_overrides_runpath=yes
13494
13495 case $host_os in
13496 cygwin*)
13497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13498 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13499
13500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13501 ;;
13502 mingw* | cegcc*)
13503 # MinGW DLLs use traditional 'lib' prefix
13504 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13505 ;;
13506 pw32*)
13507 # pw32 DLLs use 'pw' prefix rather than 'lib'
13508 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13509 ;;
13510 esac
13511 dynamic_linker='Win32 ld.exe'
13512 ;;
13513
13514 *,cl*)
13515 # Native MSVC
13516 libname_spec='$name'
13517 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13518 library_names_spec='$libname.dll.lib'
13519
13520 case $build_os in
13521 mingw*)
13522 sys_lib_search_path_spec=
13523 lt_save_ifs=$IFS
13524 IFS=';'
13525 for lt_path in $LIB
13526 do
13527 IFS=$lt_save_ifs
13528 # Let DOS variable expansion print the short 8.3 style file name.
13529 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13530 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13531 done
13532 IFS=$lt_save_ifs
13533 # Convert to MSYS style.
13534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13535 ;;
13536 cygwin*)
13537 # Convert to unix form, then to dos form, then back to unix form
13538 # but this time dos style (no spaces!) so that the unix form looks
13539 # like /cygdrive/c/PROGRA~1:/cygdr...
13540 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13541 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13542 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13543 ;;
13544 *)
13545 sys_lib_search_path_spec=$LIB
13546 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13547 # It is most probably a Windows format PATH.
13548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13549 else
13550 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13551 fi
13552 # FIXME: find the short name or the path components, as spaces are
13553 # common. (e.g. "Program Files" -> "PROGRA~1")
13554 ;;
13555 esac
13556
13557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13558 postinstall_cmds='base_file=`basename \$file`~
13559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13560 dldir=$destdir/`dirname \$dlpath`~
13561 test -d \$dldir || mkdir -p \$dldir~
13562 $install_prog $dir/$dlname \$dldir/$dlname'
13563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13564 dlpath=$dir/\$dldll~
13565 $RM \$dlpath'
13566 shlibpath_overrides_runpath=yes
13567 dynamic_linker='Win32 link.exe'
13568 ;;
13569
13570 *)
13571 # Assume MSVC wrapper
13572 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13573 dynamic_linker='Win32 ld.exe'
13574 ;;
13575 esac
13576 # FIXME: first we should search . and the directory the executable is in
13577 shlibpath_var=PATH
13578 ;;
13579
13580 darwin* | rhapsody*)
13581 dynamic_linker="$host_os dyld"
13582 version_type=darwin
13583 need_lib_prefix=no
13584 need_version=no
13585 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13586 soname_spec='$libname$release$major$shared_ext'
13587 shlibpath_overrides_runpath=yes
13588 shlibpath_var=DYLD_LIBRARY_PATH
13589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13590
13591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13593 ;;
13594
13595 dgux*)
13596 version_type=linux # correct to gnu/linux during the next big refactor
13597 need_lib_prefix=no
13598 need_version=no
13599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13600 soname_spec='$libname$release$shared_ext$major'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 ;;
13603
13604 freebsd* | dragonfly*)
13605 # DragonFly does not have aout. When/if they implement a new
13606 # versioning mechanism, adjust this.
13607 if test -x /usr/bin/objformat; then
13608 objformat=`/usr/bin/objformat`
13609 else
13610 case $host_os in
13611 freebsd[23].*) objformat=aout ;;
13612 *) objformat=elf ;;
13613 esac
13614 fi
13615 version_type=freebsd-$objformat
13616 case $version_type in
13617 freebsd-elf*)
13618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13619 soname_spec='$libname$release$shared_ext$major'
13620 need_version=no
13621 need_lib_prefix=no
13622 ;;
13623 freebsd-*)
13624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13625 need_version=yes
13626 ;;
13627 esac
13628 shlibpath_var=LD_LIBRARY_PATH
13629 case $host_os in
13630 freebsd2.*)
13631 shlibpath_overrides_runpath=yes
13632 ;;
13633 freebsd3.[01]* | freebsdelf3.[01]*)
13634 shlibpath_overrides_runpath=yes
13635 hardcode_into_libs=yes
13636 ;;
13637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13639 shlibpath_overrides_runpath=no
13640 hardcode_into_libs=yes
13641 ;;
13642 *) # from 4.6 on, and DragonFly
13643 shlibpath_overrides_runpath=yes
13644 hardcode_into_libs=yes
13645 ;;
13646 esac
13647 ;;
13648
13649 haiku*)
13650 version_type=linux # correct to gnu/linux during the next big refactor
13651 need_lib_prefix=no
13652 need_version=no
13653 dynamic_linker="$host_os runtime_loader"
13654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13655 soname_spec='$libname$release$shared_ext$major'
13656 shlibpath_var=LIBRARY_PATH
13657 shlibpath_overrides_runpath=no
13658 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13659 hardcode_into_libs=yes
13660 ;;
13661
13662 hpux9* | hpux10* | hpux11*)
13663 # Give a soname corresponding to the major version so that dld.sl refuses to
13664 # link against other versions.
13665 version_type=sunos
13666 need_lib_prefix=no
13667 need_version=no
13668 case $host_cpu in
13669 ia64*)
13670 shrext_cmds='.so'
13671 hardcode_into_libs=yes
13672 dynamic_linker="$host_os dld.so"
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13676 soname_spec='$libname$release$shared_ext$major'
13677 if test 32 = "$HPUX_IA64_MODE"; then
13678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13679 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13680 else
13681 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13682 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13683 fi
13684 ;;
13685 hppa*64*)
13686 shrext_cmds='.sl'
13687 hardcode_into_libs=yes
13688 dynamic_linker="$host_os dld.sl"
13689 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13692 soname_spec='$libname$release$shared_ext$major'
13693 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13695 ;;
13696 *)
13697 shrext_cmds='.sl'
13698 dynamic_linker="$host_os dld.sl"
13699 shlibpath_var=SHLIB_PATH
13700 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13702 soname_spec='$libname$release$shared_ext$major'
13703 ;;
13704 esac
13705 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13706 postinstall_cmds='chmod 555 $lib'
13707 # or fails outright, so override atomically:
13708 install_override_mode=555
13709 ;;
13710
13711 interix[3-9]*)
13712 version_type=linux # correct to gnu/linux during the next big refactor
13713 need_lib_prefix=no
13714 need_version=no
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
13717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 ;;
13722
13723 irix5* | irix6* | nonstopux*)
13724 case $host_os in
13725 nonstopux*) version_type=nonstopux ;;
13726 *)
13727 if test yes = "$lt_cv_prog_gnu_ld"; then
13728 version_type=linux # correct to gnu/linux during the next big refactor
13729 else
13730 version_type=irix
13731 fi ;;
13732 esac
13733 need_lib_prefix=no
13734 need_version=no
13735 soname_spec='$libname$release$shared_ext$major'
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13737 case $host_os in
13738 irix5* | nonstopux*)
13739 libsuff= shlibsuff=
13740 ;;
13741 *)
13742 case $LD in # libtool.m4 will add one of these switches to LD
13743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13744 libsuff= shlibsuff= libmagic=32-bit;;
13745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13746 libsuff=32 shlibsuff=N32 libmagic=N32;;
13747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13749 *) libsuff= shlibsuff= libmagic=never-match;;
13750 esac
13751 ;;
13752 esac
13753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13754 shlibpath_overrides_runpath=no
13755 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13756 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13757 hardcode_into_libs=yes
13758 ;;
13759
13760 # No shared lib support for Linux oldld, aout, or coff.
13761 linux*oldld* | linux*aout* | linux*coff*)
13762 dynamic_linker=no
13763 ;;
13764
13765 linux*android*)
13766 version_type=none # Android doesn't support versioned libraries.
13767 need_lib_prefix=no
13768 need_version=no
13769 library_names_spec='$libname$release$shared_ext'
13770 soname_spec='$libname$release$shared_ext'
13771 finish_cmds=
13772 shlibpath_var=LD_LIBRARY_PATH
13773 shlibpath_overrides_runpath=yes
13774
13775 # This implies no fast_install, which is unacceptable.
13776 # Some rework will be needed to allow for fast_install
13777 # before this can be enabled.
13778 hardcode_into_libs=yes
13779
13780 dynamic_linker='Android linker'
13781 # Don't embed -rpath directories since the linker doesn't support them.
13782 hardcode_libdir_flag_spec='-L$libdir'
13783 ;;
13784
13785 # This must be glibc/ELF.
13786 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13787 version_type=linux # correct to gnu/linux during the next big refactor
13788 need_lib_prefix=no
13789 need_version=no
13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13791 soname_spec='$libname$release$shared_ext$major'
13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 shlibpath_overrides_runpath=no
13795
13796 # Some binutils ld are patched to set DT_RUNPATH
13797 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 lt_cv_shlibpath_overrides_runpath=no
13801 save_LDFLAGS=$LDFLAGS
13802 save_libdir=$libdir
13803 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13804 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807
13808 int
13809 main ()
13810 {
13811
13812 ;
13813 return 0;
13814 }
13815 _ACEOF
13816 if ac_fn_c_try_link "$LINENO"; then :
13817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13818 lt_cv_shlibpath_overrides_runpath=yes
13819 fi
13820 fi
13821 rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 LDFLAGS=$save_LDFLAGS
13824 libdir=$save_libdir
13825
13826 fi
13827
13828 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13829
13830 # This implies no fast_install, which is unacceptable.
13831 # Some rework will be needed to allow for fast_install
13832 # before this can be enabled.
13833 hardcode_into_libs=yes
13834
13835 # Ideally, we could use ldconfig to report *all* directores which are
13836 # searched for libraries, however this is still not possible. Aside from not
13837 # being certain /sbin/ldconfig is available, command
13838 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13839 # even though it is searched at run-time. Try to do the best guess by
13840 # appending ld.so.conf contents (and includes) to the search path.
13841 if test -f /etc/ld.so.conf; then
13842 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' ' '`
13843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13844 fi
13845
13846 # We used to test for /lib/ld.so.1 and disable shared libraries on
13847 # powerpc, because MkLinux only supported shared libraries with the
13848 # GNU dynamic linker. Since this was broken with cross compilers,
13849 # most powerpc-linux boxes support dynamic linking these days and
13850 # people can always --disable-shared, the test was removed, and we
13851 # assume the GNU/Linux dynamic linker is in use.
13852 dynamic_linker='GNU/Linux ld.so'
13853 ;;
13854
13855 netbsd*)
13856 version_type=sunos
13857 need_lib_prefix=no
13858 need_version=no
13859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13860 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13862 dynamic_linker='NetBSD (a.out) ld.so'
13863 else
13864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13865 soname_spec='$libname$release$shared_ext$major'
13866 dynamic_linker='NetBSD ld.elf_so'
13867 fi
13868 shlibpath_var=LD_LIBRARY_PATH
13869 shlibpath_overrides_runpath=yes
13870 hardcode_into_libs=yes
13871 ;;
13872
13873 newsos6)
13874 version_type=linux # correct to gnu/linux during the next big refactor
13875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=yes
13878 ;;
13879
13880 *nto* | *qnx*)
13881 version_type=qnx
13882 need_lib_prefix=no
13883 need_version=no
13884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13885 soname_spec='$libname$release$shared_ext$major'
13886 shlibpath_var=LD_LIBRARY_PATH
13887 shlibpath_overrides_runpath=no
13888 hardcode_into_libs=yes
13889 dynamic_linker='ldqnx.so'
13890 ;;
13891
13892 openbsd* | bitrig*)
13893 version_type=sunos
13894 sys_lib_dlsearch_path_spec=/usr/lib
13895 need_lib_prefix=no
13896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13897 need_version=no
13898 else
13899 need_version=yes
13900 fi
13901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 shlibpath_overrides_runpath=yes
13905 ;;
13906
13907 os2*)
13908 libname_spec='$name'
13909 version_type=windows
13910 shrext_cmds=.dll
13911 need_version=no
13912 need_lib_prefix=no
13913 # OS/2 can only load a DLL with a base name of 8 characters or less.
13914 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13915 v=$($ECHO $release$versuffix | tr -d .-);
13916 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13917 $ECHO $n$v`$shared_ext'
13918 library_names_spec='${libname}_dll.$libext'
13919 dynamic_linker='OS/2 ld.exe'
13920 shlibpath_var=BEGINLIBPATH
13921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13923 postinstall_cmds='base_file=`basename \$file`~
13924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13925 dldir=$destdir/`dirname \$dlpath`~
13926 test -d \$dldir || mkdir -p \$dldir~
13927 $install_prog $dir/$dlname \$dldir/$dlname~
13928 chmod a+x \$dldir/$dlname~
13929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13931 fi'
13932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13933 dlpath=$dir/\$dldll~
13934 $RM \$dlpath'
13935 ;;
13936
13937 osf3* | osf4* | osf5*)
13938 version_type=osf
13939 need_lib_prefix=no
13940 need_version=no
13941 soname_spec='$libname$release$shared_ext$major'
13942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13943 shlibpath_var=LD_LIBRARY_PATH
13944 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13946 ;;
13947
13948 rdos*)
13949 dynamic_linker=no
13950 ;;
13951
13952 solaris*)
13953 version_type=linux # correct to gnu/linux during the next big refactor
13954 need_lib_prefix=no
13955 need_version=no
13956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13957 soname_spec='$libname$release$shared_ext$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 shlibpath_overrides_runpath=yes
13960 hardcode_into_libs=yes
13961 # ldd complains unless libraries are executable
13962 postinstall_cmds='chmod +x $lib'
13963 ;;
13964
13965 sunos4*)
13966 version_type=sunos
13967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
13971 if test yes = "$with_gnu_ld"; then
13972 need_lib_prefix=no
13973 fi
13974 need_version=yes
13975 ;;
13976
13977 sysv4 | sysv4.3*)
13978 version_type=linux # correct to gnu/linux during the next big refactor
13979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13980 soname_spec='$libname$release$shared_ext$major'
13981 shlibpath_var=LD_LIBRARY_PATH
13982 case $host_vendor in
13983 sni)
13984 shlibpath_overrides_runpath=no
13985 need_lib_prefix=no
13986 runpath_var=LD_RUN_PATH
13987 ;;
13988 siemens)
13989 need_lib_prefix=no
13990 ;;
13991 motorola)
13992 need_lib_prefix=no
13993 need_version=no
13994 shlibpath_overrides_runpath=no
13995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13996 ;;
13997 esac
13998 ;;
13999
14000 sysv4*MP*)
14001 if test -d /usr/nec; then
14002 version_type=linux # correct to gnu/linux during the next big refactor
14003 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14004 soname_spec='$libname$shared_ext.$major'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 fi
14007 ;;
14008
14009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14010 version_type=sco
14011 need_lib_prefix=no
14012 need_version=no
14013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14014 soname_spec='$libname$release$shared_ext$major'
14015 shlibpath_var=LD_LIBRARY_PATH
14016 shlibpath_overrides_runpath=yes
14017 hardcode_into_libs=yes
14018 if test yes = "$with_gnu_ld"; then
14019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14020 else
14021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14022 case $host_os in
14023 sco3.2v5*)
14024 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14025 ;;
14026 esac
14027 fi
14028 sys_lib_dlsearch_path_spec='/usr/lib'
14029 ;;
14030
14031 tpf*)
14032 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14033 version_type=linux # correct to gnu/linux during the next big refactor
14034 need_lib_prefix=no
14035 need_version=no
14036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 shlibpath_overrides_runpath=no
14039 hardcode_into_libs=yes
14040 ;;
14041
14042 uts4*)
14043 version_type=linux # correct to gnu/linux during the next big refactor
14044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14045 soname_spec='$libname$release$shared_ext$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 ;;
14048
14049 *)
14050 dynamic_linker=no
14051 ;;
14052 esac
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14054 $as_echo "$dynamic_linker" >&6; }
14055 test no = "$dynamic_linker" && can_build_shared=no
14056
14057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14058 if test yes = "$GCC"; then
14059 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14060 fi
14061
14062 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14063 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14064 fi
14065
14066 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14067 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14068 fi
14069
14070 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14071 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14072
14073 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14074 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14075
14076 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14077 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14176 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14177 hardcode_action=
14178 if test -n "$hardcode_libdir_flag_spec" ||
14179 test -n "$runpath_var" ||
14180 test yes = "$hardcode_automatic"; then
14181
14182 # We can hardcode non-existent directories.
14183 if test no != "$hardcode_direct" &&
14184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14185 # have to relink, otherwise we might link with an installed library
14186 # when we should be linking with a yet-to-be-installed one
14187 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14188 test no != "$hardcode_minus_L"; then
14189 # Linking always hardcodes the temporary library directory.
14190 hardcode_action=relink
14191 else
14192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14193 hardcode_action=immediate
14194 fi
14195 else
14196 # We cannot hardcode anything, or else we can only hardcode existing
14197 # directories.
14198 hardcode_action=unsupported
14199 fi
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14201 $as_echo "$hardcode_action" >&6; }
14202
14203 if test relink = "$hardcode_action" ||
14204 test yes = "$inherit_rpath"; then
14205 # Fast installation is not supported
14206 enable_fast_install=no
14207 elif test yes = "$shlibpath_overrides_runpath" ||
14208 test no = "$enable_shared"; then
14209 # Fast installation is not necessary
14210 enable_fast_install=needless
14211 fi
14212
14213
14214
14215
14216
14217
14218 if test yes != "$enable_dlopen"; then
14219 enable_dlopen=unknown
14220 enable_dlopen_self=unknown
14221 enable_dlopen_self_static=unknown
14222 else
14223 lt_cv_dlopen=no
14224 lt_cv_dlopen_libs=
14225
14226 case $host_os in
14227 beos*)
14228 lt_cv_dlopen=load_add_on
14229 lt_cv_dlopen_libs=
14230 lt_cv_dlopen_self=yes
14231 ;;
14232
14233 mingw* | pw32* | cegcc*)
14234 lt_cv_dlopen=LoadLibrary
14235 lt_cv_dlopen_libs=
14236 ;;
14237
14238 cygwin*)
14239 lt_cv_dlopen=dlopen
14240 lt_cv_dlopen_libs=
14241 ;;
14242
14243 darwin*)
14244 # if libdl is installed we need to link against it
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14247 if ${ac_cv_lib_dl_dlopen+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 ac_check_lib_save_LIBS=$LIBS
14251 LIBS="-ldl $LIBS"
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14254
14255 /* Override any GCC internal prototype to avoid an error.
14256 Use char because int might match the return type of a GCC
14257 builtin and then its argument prototype would still apply. */
14258 #ifdef __cplusplus
14259 extern "C"
14260 #endif
14261 char dlopen ();
14262 int
14263 main ()
14264 {
14265 return dlopen ();
14266 ;
14267 return 0;
14268 }
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_lib_dl_dlopen=yes
14272 else
14273 ac_cv_lib_dl_dlopen=no
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277 LIBS=$ac_check_lib_save_LIBS
14278 fi
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14281 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14282 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14283 else
14284
14285 lt_cv_dlopen=dyld
14286 lt_cv_dlopen_libs=
14287 lt_cv_dlopen_self=yes
14288
14289 fi
14290
14291 ;;
14292
14293 tpf*)
14294 # Don't try to run any link tests for TPF. We know it's impossible
14295 # because TPF is a cross-compiler, and we know how we open DSOs.
14296 lt_cv_dlopen=dlopen
14297 lt_cv_dlopen_libs=
14298 lt_cv_dlopen_self=no
14299 ;;
14300
14301 *)
14302 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14303 if test "x$ac_cv_func_shl_load" = xyes; then :
14304 lt_cv_dlopen=shl_load
14305 else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14307 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14308 if ${ac_cv_lib_dld_shl_load+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-ldld $LIBS"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 char shl_load ();
14323 int
14324 main ()
14325 {
14326 return shl_load ();
14327 ;
14328 return 0;
14329 }
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 ac_cv_lib_dld_shl_load=yes
14333 else
14334 ac_cv_lib_dld_shl_load=no
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14339 fi
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14341 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14342 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14343 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14344 else
14345 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14346 if test "x$ac_cv_func_dlopen" = xyes; then :
14347 lt_cv_dlopen=dlopen
14348 else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14351 if ${ac_cv_lib_dl_dlopen+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 ac_check_lib_save_LIBS=$LIBS
14355 LIBS="-ldl $LIBS"
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char dlopen ();
14366 int
14367 main ()
14368 {
14369 return dlopen ();
14370 ;
14371 return 0;
14372 }
14373 _ACEOF
14374 if ac_fn_c_try_link "$LINENO"; then :
14375 ac_cv_lib_dl_dlopen=yes
14376 else
14377 ac_cv_lib_dl_dlopen=no
14378 fi
14379 rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 LIBS=$ac_check_lib_save_LIBS
14382 fi
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14385 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14386 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14389 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14390 if ${ac_cv_lib_svld_dlopen+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 ac_check_lib_save_LIBS=$LIBS
14394 LIBS="-lsvld $LIBS"
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14397
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char dlopen ();
14405 int
14406 main ()
14407 {
14408 return dlopen ();
14409 ;
14410 return 0;
14411 }
14412 _ACEOF
14413 if ac_fn_c_try_link "$LINENO"; then :
14414 ac_cv_lib_svld_dlopen=yes
14415 else
14416 ac_cv_lib_svld_dlopen=no
14417 fi
14418 rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420 LIBS=$ac_check_lib_save_LIBS
14421 fi
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14423 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14424 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14428 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14429 if ${ac_cv_lib_dld_dld_link+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 ac_check_lib_save_LIBS=$LIBS
14433 LIBS="-ldld $LIBS"
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char dld_link ();
14444 int
14445 main ()
14446 {
14447 return dld_link ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"; then :
14453 ac_cv_lib_dld_dld_link=yes
14454 else
14455 ac_cv_lib_dld_dld_link=no
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14459 LIBS=$ac_check_lib_save_LIBS
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14462 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14463 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14464 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14465 fi
14466
14467
14468 fi
14469
14470
14471 fi
14472
14473
14474 fi
14475
14476
14477 fi
14478
14479
14480 fi
14481
14482 ;;
14483 esac
14484
14485 if test no = "$lt_cv_dlopen"; then
14486 enable_dlopen=no
14487 else
14488 enable_dlopen=yes
14489 fi
14490
14491 case $lt_cv_dlopen in
14492 dlopen)
14493 save_CPPFLAGS=$CPPFLAGS
14494 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14495
14496 save_LDFLAGS=$LDFLAGS
14497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14498
14499 save_LIBS=$LIBS
14500 LIBS="$lt_cv_dlopen_libs $LIBS"
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14503 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14504 if ${lt_cv_dlopen_self+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 if test yes = "$cross_compiling"; then :
14508 lt_cv_dlopen_self=cross
14509 else
14510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14511 lt_status=$lt_dlunknown
14512 cat > conftest.$ac_ext <<_LT_EOF
14513 #line $LINENO "configure"
14514 #include "confdefs.h"
14515
14516 #if HAVE_DLFCN_H
14517 #include <dlfcn.h>
14518 #endif
14519
14520 #include <stdio.h>
14521
14522 #ifdef RTLD_GLOBAL
14523 # define LT_DLGLOBAL RTLD_GLOBAL
14524 #else
14525 # ifdef DL_GLOBAL
14526 # define LT_DLGLOBAL DL_GLOBAL
14527 # else
14528 # define LT_DLGLOBAL 0
14529 # endif
14530 #endif
14531
14532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14533 find out it does not work in some platform. */
14534 #ifndef LT_DLLAZY_OR_NOW
14535 # ifdef RTLD_LAZY
14536 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14537 # else
14538 # ifdef DL_LAZY
14539 # define LT_DLLAZY_OR_NOW DL_LAZY
14540 # else
14541 # ifdef RTLD_NOW
14542 # define LT_DLLAZY_OR_NOW RTLD_NOW
14543 # else
14544 # ifdef DL_NOW
14545 # define LT_DLLAZY_OR_NOW DL_NOW
14546 # else
14547 # define LT_DLLAZY_OR_NOW 0
14548 # endif
14549 # endif
14550 # endif
14551 # endif
14552 #endif
14553
14554 /* When -fvisibility=hidden is used, assume the code has been annotated
14555 correspondingly for the symbols needed. */
14556 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14557 int fnord () __attribute__((visibility("default")));
14558 #endif
14559
14560 int fnord () { return 42; }
14561 int main ()
14562 {
14563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14564 int status = $lt_dlunknown;
14565
14566 if (self)
14567 {
14568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14569 else
14570 {
14571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14572 else puts (dlerror ());
14573 }
14574 /* dlclose (self); */
14575 }
14576 else
14577 puts (dlerror ());
14578
14579 return status;
14580 }
14581 _LT_EOF
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583 (eval $ac_link) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14587 (./conftest; exit; ) >&5 2>/dev/null
14588 lt_status=$?
14589 case x$lt_status in
14590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14592 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14593 esac
14594 else :
14595 # compilation failed
14596 lt_cv_dlopen_self=no
14597 fi
14598 fi
14599 rm -fr conftest*
14600
14601
14602 fi
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14604 $as_echo "$lt_cv_dlopen_self" >&6; }
14605
14606 if test yes = "$lt_cv_dlopen_self"; then
14607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14609 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14610 if ${lt_cv_dlopen_self_static+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 if test yes = "$cross_compiling"; then :
14614 lt_cv_dlopen_self_static=cross
14615 else
14616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14617 lt_status=$lt_dlunknown
14618 cat > conftest.$ac_ext <<_LT_EOF
14619 #line $LINENO "configure"
14620 #include "confdefs.h"
14621
14622 #if HAVE_DLFCN_H
14623 #include <dlfcn.h>
14624 #endif
14625
14626 #include <stdio.h>
14627
14628 #ifdef RTLD_GLOBAL
14629 # define LT_DLGLOBAL RTLD_GLOBAL
14630 #else
14631 # ifdef DL_GLOBAL
14632 # define LT_DLGLOBAL DL_GLOBAL
14633 # else
14634 # define LT_DLGLOBAL 0
14635 # endif
14636 #endif
14637
14638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14639 find out it does not work in some platform. */
14640 #ifndef LT_DLLAZY_OR_NOW
14641 # ifdef RTLD_LAZY
14642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14643 # else
14644 # ifdef DL_LAZY
14645 # define LT_DLLAZY_OR_NOW DL_LAZY
14646 # else
14647 # ifdef RTLD_NOW
14648 # define LT_DLLAZY_OR_NOW RTLD_NOW
14649 # else
14650 # ifdef DL_NOW
14651 # define LT_DLLAZY_OR_NOW DL_NOW
14652 # else
14653 # define LT_DLLAZY_OR_NOW 0
14654 # endif
14655 # endif
14656 # endif
14657 # endif
14658 #endif
14659
14660 /* When -fvisibility=hidden is used, assume the code has been annotated
14661 correspondingly for the symbols needed. */
14662 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14663 int fnord () __attribute__((visibility("default")));
14664 #endif
14665
14666 int fnord () { return 42; }
14667 int main ()
14668 {
14669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14670 int status = $lt_dlunknown;
14671
14672 if (self)
14673 {
14674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14675 else
14676 {
14677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14678 else puts (dlerror ());
14679 }
14680 /* dlclose (self); */
14681 }
14682 else
14683 puts (dlerror ());
14684
14685 return status;
14686 }
14687 _LT_EOF
14688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14689 (eval $ac_link) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14693 (./conftest; exit; ) >&5 2>/dev/null
14694 lt_status=$?
14695 case x$lt_status in
14696 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14697 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14698 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14699 esac
14700 else :
14701 # compilation failed
14702 lt_cv_dlopen_self_static=no
14703 fi
14704 fi
14705 rm -fr conftest*
14706
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14710 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14711 fi
14712
14713 CPPFLAGS=$save_CPPFLAGS
14714 LDFLAGS=$save_LDFLAGS
14715 LIBS=$save_LIBS
14716 ;;
14717 esac
14718
14719 case $lt_cv_dlopen_self in
14720 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14721 *) enable_dlopen_self=unknown ;;
14722 esac
14723
14724 case $lt_cv_dlopen_self_static in
14725 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14726 *) enable_dlopen_self_static=unknown ;;
14727 esac
14728 fi
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746 striplib=
14747 old_striplib=
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14749 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14750 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14752 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755 else
14756 # FIXME - insert some real tests, host_os isn't really good enough
14757 case $host_os in
14758 darwin*)
14759 if test -n "$STRIP"; then
14760 striplib="$STRIP -x"
14761 old_striplib="$STRIP -S"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763 $as_echo "yes" >&6; }
14764 else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14767 fi
14768 ;;
14769 *)
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14772 ;;
14773 esac
14774 fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787 # Report what library types will actually be built
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14789 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14791 $as_echo "$can_build_shared" >&6; }
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14794 $as_echo_n "checking whether to build shared libraries... " >&6; }
14795 test no = "$can_build_shared" && enable_shared=no
14796
14797 # On AIX, shared libraries and static libraries use the same namespace, and
14798 # are all built from PIC.
14799 case $host_os in
14800 aix3*)
14801 test yes = "$enable_shared" && enable_static=no
14802 if test -n "$RANLIB"; then
14803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14804 postinstall_cmds='$RANLIB $lib'
14805 fi
14806 ;;
14807
14808 aix[4-9]*)
14809 if test ia64 != "$host_cpu"; then
14810 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14811 yes,aix,yes) ;; # shared object as lib.so file only
14812 yes,svr4,*) ;; # shared object as lib.so archive member only
14813 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14814 esac
14815 fi
14816 ;;
14817 esac
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14819 $as_echo "$enable_shared" >&6; }
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14822 $as_echo_n "checking whether to build static libraries... " >&6; }
14823 # Make sure either enable_shared or enable_static is yes.
14824 test yes = "$enable_shared" || enable_static=yes
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14826 $as_echo "$enable_static" >&6; }
14827
14828
14829
14830
14831 fi
14832 ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
14838 CC=$lt_save_CC
14839
14840 if test -n "$CXX" && ( test no != "$CXX" &&
14841 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14842 (test g++ != "$CXX"))); then
14843 ac_ext=cpp
14844 ac_cpp='$CXXCPP $CPPFLAGS'
14845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14849 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14850 if test -z "$CXXCPP"; then
14851 if ${ac_cv_prog_CXXCPP+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 # Double quotes because CXXCPP needs to be expanded
14855 for CXXCPP in "$CXX -E" "/lib/cpp"
14856 do
14857 ac_preproc_ok=false
14858 for ac_cxx_preproc_warn_flag in '' yes
14859 do
14860 # Use a header file that comes with gcc, so configuring glibc
14861 # with a fresh cross-compiler works.
14862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863 # <limits.h> exists even on freestanding compilers.
14864 # On the NeXT, cc -E runs the code through the compiler's parser,
14865 # not just through cpp. "Syntax error" is here to catch this case.
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #ifdef __STDC__
14869 # include <limits.h>
14870 #else
14871 # include <assert.h>
14872 #endif
14873 Syntax error
14874 _ACEOF
14875 if ac_fn_cxx_try_cpp "$LINENO"; then :
14876
14877 else
14878 # Broken: fails on valid input.
14879 continue
14880 fi
14881 rm -f conftest.err conftest.i conftest.$ac_ext
14882
14883 # OK, works on sane cases. Now check whether nonexistent headers
14884 # can be detected and how.
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 #include <ac_nonexistent.h>
14888 _ACEOF
14889 if ac_fn_cxx_try_cpp "$LINENO"; then :
14890 # Broken: success on invalid input.
14891 continue
14892 else
14893 # Passes both tests.
14894 ac_preproc_ok=:
14895 break
14896 fi
14897 rm -f conftest.err conftest.i conftest.$ac_ext
14898
14899 done
14900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14901 rm -f conftest.i conftest.err conftest.$ac_ext
14902 if $ac_preproc_ok; then :
14903 break
14904 fi
14905
14906 done
14907 ac_cv_prog_CXXCPP=$CXXCPP
14908
14909 fi
14910 CXXCPP=$ac_cv_prog_CXXCPP
14911 else
14912 ac_cv_prog_CXXCPP=$CXXCPP
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14915 $as_echo "$CXXCPP" >&6; }
14916 ac_preproc_ok=false
14917 for ac_cxx_preproc_warn_flag in '' yes
14918 do
14919 # Use a header file that comes with gcc, so configuring glibc
14920 # with a fresh cross-compiler works.
14921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14922 # <limits.h> exists even on freestanding compilers.
14923 # On the NeXT, cc -E runs the code through the compiler's parser,
14924 # not just through cpp. "Syntax error" is here to catch this case.
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #ifdef __STDC__
14928 # include <limits.h>
14929 #else
14930 # include <assert.h>
14931 #endif
14932 Syntax error
14933 _ACEOF
14934 if ac_fn_cxx_try_cpp "$LINENO"; then :
14935
14936 else
14937 # Broken: fails on valid input.
14938 continue
14939 fi
14940 rm -f conftest.err conftest.i conftest.$ac_ext
14941
14942 # OK, works on sane cases. Now check whether nonexistent headers
14943 # can be detected and how.
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 #include <ac_nonexistent.h>
14947 _ACEOF
14948 if ac_fn_cxx_try_cpp "$LINENO"; then :
14949 # Broken: success on invalid input.
14950 continue
14951 else
14952 # Passes both tests.
14953 ac_preproc_ok=:
14954 break
14955 fi
14956 rm -f conftest.err conftest.i conftest.$ac_ext
14957
14958 done
14959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14960 rm -f conftest.i conftest.err conftest.$ac_ext
14961 if $ac_preproc_ok; then :
14962
14963 else
14964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14966 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14967 See \`config.log' for more details" "$LINENO" 5; }
14968 fi
14969
14970 ac_ext=c
14971 ac_cpp='$CPP $CPPFLAGS'
14972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976 else
14977 _lt_caught_CXX_error=yes
14978 fi
14979
14980 ac_ext=cpp
14981 ac_cpp='$CXXCPP $CPPFLAGS'
14982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14985
14986 archive_cmds_need_lc_CXX=no
14987 allow_undefined_flag_CXX=
14988 always_export_symbols_CXX=no
14989 archive_expsym_cmds_CXX=
14990 compiler_needs_object_CXX=no
14991 export_dynamic_flag_spec_CXX=
14992 hardcode_direct_CXX=no
14993 hardcode_direct_absolute_CXX=no
14994 hardcode_libdir_flag_spec_CXX=
14995 hardcode_libdir_separator_CXX=
14996 hardcode_minus_L_CXX=no
14997 hardcode_shlibpath_var_CXX=unsupported
14998 hardcode_automatic_CXX=no
14999 inherit_rpath_CXX=no
15000 module_cmds_CXX=
15001 module_expsym_cmds_CXX=
15002 link_all_deplibs_CXX=unknown
15003 old_archive_cmds_CXX=$old_archive_cmds
15004 reload_flag_CXX=$reload_flag
15005 reload_cmds_CXX=$reload_cmds
15006 no_undefined_flag_CXX=
15007 whole_archive_flag_spec_CXX=
15008 enable_shared_with_static_runtimes_CXX=no
15009
15010 # Source file extension for C++ test sources.
15011 ac_ext=cpp
15012
15013 # Object file extension for compiled C++ test sources.
15014 objext=o
15015 objext_CXX=$objext
15016
15017 # No sense in running all these tests if we already determined that
15018 # the CXX compiler isn't working. Some variables (like enable_shared)
15019 # are currently assumed to apply to all compilers on this platform,
15020 # and will be corrupted by setting them based on a non-working compiler.
15021 if test yes != "$_lt_caught_CXX_error"; then
15022 # Code to be used in simple compile tests
15023 lt_simple_compile_test_code="int some_variable = 0;"
15024
15025 # Code to be used in simple link tests
15026 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15027
15028 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15029
15030
15031
15032
15033
15034
15035 # If no C compiler was specified, use CC.
15036 LTCC=${LTCC-"$CC"}
15037
15038 # If no C compiler flags were specified, use CFLAGS.
15039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15040
15041 # Allow CC to be a program name with arguments.
15042 compiler=$CC
15043
15044
15045 # save warnings/boilerplate of simple test code
15046 ac_outfile=conftest.$ac_objext
15047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15049 _lt_compiler_boilerplate=`cat conftest.err`
15050 $RM -r conftest*
15051
15052 ac_outfile=conftest.$ac_objext
15053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055 _lt_linker_boilerplate=`cat conftest.err`
15056 $RM -r conftest*
15057
15058
15059 # Allow CC to be a program name with arguments.
15060 lt_save_CC=$CC
15061 lt_save_CFLAGS=$CFLAGS
15062 lt_save_LD=$LD
15063 lt_save_GCC=$GCC
15064 GCC=$GXX
15065 lt_save_with_gnu_ld=$with_gnu_ld
15066 lt_save_path_LD=$lt_cv_path_LD
15067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15069 else
15070 $as_unset lt_cv_prog_gnu_ld
15071 fi
15072 if test -n "${lt_cv_path_LDCXX+set}"; then
15073 lt_cv_path_LD=$lt_cv_path_LDCXX
15074 else
15075 $as_unset lt_cv_path_LD
15076 fi
15077 test -z "${LDCXX+set}" || LD=$LDCXX
15078 CC=${CXX-"c++"}
15079 CFLAGS=$CXXFLAGS
15080 compiler=$CC
15081 compiler_CXX=$CC
15082 func_cc_basename $compiler
15083 cc_basename=$func_cc_basename_result
15084
15085
15086 if test -n "$compiler"; then
15087 # We don't want -fno-exception when compiling C++ code, so set the
15088 # no_builtin_flag separately
15089 if test yes = "$GXX"; then
15090 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15091 else
15092 lt_prog_compiler_no_builtin_flag_CXX=
15093 fi
15094
15095 if test yes = "$GXX"; then
15096 # Set up default GNU C++ configuration
15097
15098
15099
15100 # Check whether --with-gnu-ld was given.
15101 if test "${with_gnu_ld+set}" = set; then :
15102 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15103 else
15104 with_gnu_ld=no
15105 fi
15106
15107 ac_prog=ld
15108 if test yes = "$GCC"; then
15109 # Check if gcc -print-prog-name=ld gives a path.
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15111 $as_echo_n "checking for ld used by $CC... " >&6; }
15112 case $host in
15113 *-*-mingw*)
15114 # gcc leaves a trailing carriage return, which upsets mingw
15115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15116 *)
15117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15118 esac
15119 case $ac_prog in
15120 # Accept absolute paths.
15121 [\\/]* | ?:[\\/]*)
15122 re_direlt='/[^/][^/]*/\.\./'
15123 # Canonicalize the pathname of ld
15124 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15125 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15126 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15127 done
15128 test -z "$LD" && LD=$ac_prog
15129 ;;
15130 "")
15131 # If it fails, then pretend we aren't using GCC.
15132 ac_prog=ld
15133 ;;
15134 *)
15135 # If it is relative, then search for the first ld in PATH.
15136 with_gnu_ld=unknown
15137 ;;
15138 esac
15139 elif test yes = "$with_gnu_ld"; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15141 $as_echo_n "checking for GNU ld... " >&6; }
15142 else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15144 $as_echo_n "checking for non-GNU ld... " >&6; }
15145 fi
15146 if ${lt_cv_path_LD+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 if test -z "$LD"; then
15150 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15151 for ac_dir in $PATH; do
15152 IFS=$lt_save_ifs
15153 test -z "$ac_dir" && ac_dir=.
15154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15155 lt_cv_path_LD=$ac_dir/$ac_prog
15156 # Check to see if the program is GNU ld. I'd rather use --version,
15157 # but apparently some variants of GNU ld only accept -v.
15158 # Break only if it was the GNU/non-GNU ld that we prefer.
15159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15160 *GNU* | *'with BFD'*)
15161 test no != "$with_gnu_ld" && break
15162 ;;
15163 *)
15164 test yes != "$with_gnu_ld" && break
15165 ;;
15166 esac
15167 fi
15168 done
15169 IFS=$lt_save_ifs
15170 else
15171 lt_cv_path_LD=$LD # Let the user override the test with a path.
15172 fi
15173 fi
15174
15175 LD=$lt_cv_path_LD
15176 if test -n "$LD"; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15178 $as_echo "$LD" >&6; }
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15182 fi
15183 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15186 if ${lt_cv_prog_gnu_ld+:} false; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15190 case `$LD -v 2>&1 </dev/null` in
15191 *GNU* | *'with BFD'*)
15192 lt_cv_prog_gnu_ld=yes
15193 ;;
15194 *)
15195 lt_cv_prog_gnu_ld=no
15196 ;;
15197 esac
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15200 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15201 with_gnu_ld=$lt_cv_prog_gnu_ld
15202
15203
15204
15205
15206
15207
15208
15209 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15210 # archiving commands below assume that GNU ld is being used.
15211 if test yes = "$with_gnu_ld"; then
15212 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15213 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'
15214
15215 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15216 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15217
15218 # If archive_cmds runs LD, not CC, wlarc should be empty
15219 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15220 # investigate it a little bit more. (MM)
15221 wlarc='$wl'
15222
15223 # ancient GNU ld didn't support --whole-archive et. al.
15224 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15225 $GREP 'no-whole-archive' > /dev/null; then
15226 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15227 else
15228 whole_archive_flag_spec_CXX=
15229 fi
15230 else
15231 with_gnu_ld=no
15232 wlarc=
15233
15234 # A generic and very simple default shared library creation
15235 # command for GNU C++ for the case where it uses the native
15236 # linker, instead of GNU ld. If possible, this setting should
15237 # overridden to take advantage of the native linker features on
15238 # the platform it is being used on.
15239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15240 fi
15241
15242 # Commands to make compiler produce verbose output that lists
15243 # what "hidden" libraries, object files and flags are used when
15244 # linking a shared library.
15245 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15246
15247 else
15248 GXX=no
15249 with_gnu_ld=no
15250 wlarc=
15251 fi
15252
15253 # PORTME: fill in a description of your system's C++ link characteristics
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15255 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15256 ld_shlibs_CXX=yes
15257 case $host_os in
15258 aix3*)
15259 # FIXME: insert proper C++ library support
15260 ld_shlibs_CXX=no
15261 ;;
15262 aix[4-9]*)
15263 if test ia64 = "$host_cpu"; then
15264 # On IA64, the linker does run time linking by default, so we don't
15265 # have to do anything special.
15266 aix_use_runtimelinking=no
15267 exp_sym_flag='-Bexport'
15268 no_entry_flag=
15269 else
15270 aix_use_runtimelinking=no
15271
15272 # Test if we are trying to use run time linking or normal
15273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15274 # have runtime linking enabled, and use it for executables.
15275 # For shared libraries, we enable/disable runtime linking
15276 # depending on the kind of the shared library created -
15277 # when "with_aix_soname,aix_use_runtimelinking" is:
15278 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15279 # "aix,yes" lib.so shared, rtl:yes, for executables
15280 # lib.a static archive
15281 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15282 # lib.a(lib.so.V) shared, rtl:no, for executables
15283 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15284 # lib.a(lib.so.V) shared, rtl:no
15285 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15286 # lib.a static archive
15287 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15288 for ld_flag in $LDFLAGS; do
15289 case $ld_flag in
15290 *-brtl*)
15291 aix_use_runtimelinking=yes
15292 break
15293 ;;
15294 esac
15295 done
15296 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15297 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15298 # so we don't have lib.a shared libs to link our executables.
15299 # We have to force runtime linking in this case.
15300 aix_use_runtimelinking=yes
15301 LDFLAGS="$LDFLAGS -Wl,-brtl"
15302 fi
15303 ;;
15304 esac
15305
15306 exp_sym_flag='-bexport'
15307 no_entry_flag='-bnoentry'
15308 fi
15309
15310 # When large executables or shared objects are built, AIX ld can
15311 # have problems creating the table of contents. If linking a library
15312 # or program results in "error TOC overflow" add -mminimal-toc to
15313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15315
15316 archive_cmds_CXX=''
15317 hardcode_direct_CXX=yes
15318 hardcode_direct_absolute_CXX=yes
15319 hardcode_libdir_separator_CXX=':'
15320 link_all_deplibs_CXX=yes
15321 file_list_spec_CXX='$wl-f,'
15322 case $with_aix_soname,$aix_use_runtimelinking in
15323 aix,*) ;; # no import file
15324 svr4,* | *,yes) # use import file
15325 # The Import File defines what to hardcode.
15326 hardcode_direct_CXX=no
15327 hardcode_direct_absolute_CXX=no
15328 ;;
15329 esac
15330
15331 if test yes = "$GXX"; then
15332 case $host_os in aix4.[012]|aix4.[012].*)
15333 # We only want to do this on AIX 4.2 and lower, the check
15334 # below for broken collect2 doesn't work under 4.3+
15335 collect2name=`$CC -print-prog-name=collect2`
15336 if test -f "$collect2name" &&
15337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15338 then
15339 # We have reworked collect2
15340 :
15341 else
15342 # We have old collect2
15343 hardcode_direct_CXX=unsupported
15344 # It fails to find uninstalled libraries when the uninstalled
15345 # path is not listed in the libpath. Setting hardcode_minus_L
15346 # to unsupported forces relinking
15347 hardcode_minus_L_CXX=yes
15348 hardcode_libdir_flag_spec_CXX='-L$libdir'
15349 hardcode_libdir_separator_CXX=
15350 fi
15351 esac
15352 shared_flag='-shared'
15353 if test yes = "$aix_use_runtimelinking"; then
15354 shared_flag=$shared_flag' $wl-G'
15355 fi
15356 # Need to ensure runtime linking is disabled for the traditional
15357 # shared library, or the linker may eventually find shared libraries
15358 # /with/ Import File - we do not want to mix them.
15359 shared_flag_aix='-shared'
15360 shared_flag_svr4='-shared $wl-G'
15361 else
15362 # not using gcc
15363 if test ia64 = "$host_cpu"; then
15364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15365 # chokes on -Wl,-G. The following line is correct:
15366 shared_flag='-G'
15367 else
15368 if test yes = "$aix_use_runtimelinking"; then
15369 shared_flag='$wl-G'
15370 else
15371 shared_flag='$wl-bM:SRE'
15372 fi
15373 shared_flag_aix='$wl-bM:SRE'
15374 shared_flag_svr4='$wl-G'
15375 fi
15376 fi
15377
15378 export_dynamic_flag_spec_CXX='$wl-bexpall'
15379 # It seems that -bexpall does not export symbols beginning with
15380 # underscore (_), so it is better to generate a list of symbols to
15381 # export.
15382 always_export_symbols_CXX=yes
15383 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15384 # Warning - without using the other runtime loading flags (-brtl),
15385 # -berok will link without error, but may produce a broken library.
15386 # The "-G" linker flag allows undefined symbols.
15387 no_undefined_flag_CXX='-bernotok'
15388 # Determine the default libpath from the value encoded in an empty
15389 # executable.
15390 if test set = "${lt_cv_aix_libpath+set}"; then
15391 aix_libpath=$lt_cv_aix_libpath
15392 else
15393 if ${lt_cv_aix_libpath__CXX+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398
15399 int
15400 main ()
15401 {
15402
15403 ;
15404 return 0;
15405 }
15406 _ACEOF
15407 if ac_fn_cxx_try_link "$LINENO"; then :
15408
15409 lt_aix_libpath_sed='
15410 /Import File Strings/,/^$/ {
15411 /^0/ {
15412 s/^0 *\([^ ]*\) *$/\1/
15413 p
15414 }
15415 }'
15416 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15417 # Check for a 64-bit object if we didn't find anything.
15418 if test -z "$lt_cv_aix_libpath__CXX"; then
15419 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420 fi
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
15424 if test -z "$lt_cv_aix_libpath__CXX"; then
15425 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15426 fi
15427
15428 fi
15429
15430 aix_libpath=$lt_cv_aix_libpath__CXX
15431 fi
15432
15433 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15434
15435 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15436 else
15437 if test ia64 = "$host_cpu"; then
15438 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15439 allow_undefined_flag_CXX="-z nodefs"
15440 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"
15441 else
15442 # Determine the default libpath from the value encoded in an
15443 # empty executable.
15444 if test set = "${lt_cv_aix_libpath+set}"; then
15445 aix_libpath=$lt_cv_aix_libpath
15446 else
15447 if ${lt_cv_aix_libpath__CXX+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449 else
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15452
15453 int
15454 main ()
15455 {
15456
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 if ac_fn_cxx_try_link "$LINENO"; then :
15462
15463 lt_aix_libpath_sed='
15464 /Import File Strings/,/^$/ {
15465 /^0/ {
15466 s/^0 *\([^ ]*\) *$/\1/
15467 p
15468 }
15469 }'
15470 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15471 # Check for a 64-bit object if we didn't find anything.
15472 if test -z "$lt_cv_aix_libpath__CXX"; then
15473 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15474 fi
15475 fi
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478 if test -z "$lt_cv_aix_libpath__CXX"; then
15479 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15480 fi
15481
15482 fi
15483
15484 aix_libpath=$lt_cv_aix_libpath__CXX
15485 fi
15486
15487 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15488 # Warning - without using the other run time loading flags,
15489 # -berok will link without error, but may produce a broken library.
15490 no_undefined_flag_CXX=' $wl-bernotok'
15491 allow_undefined_flag_CXX=' $wl-berok'
15492 if test yes = "$with_gnu_ld"; then
15493 # We only use this code for GNU lds that support --whole-archive.
15494 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15495 else
15496 # Exported symbols can be pulled into shared objects from archives
15497 whole_archive_flag_spec_CXX='$convenience'
15498 fi
15499 archive_cmds_need_lc_CXX=yes
15500 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15501 # -brtl affects multiple linker settings, -berok does not and is overridden later
15502 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15503 if test svr4 != "$with_aix_soname"; then
15504 # This is similar to how AIX traditionally builds its shared
15505 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15506 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15507 fi
15508 if test aix != "$with_aix_soname"; then
15509 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15510 else
15511 # used by -dlpreopen to get the symbols
15512 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15513 fi
15514 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15515 fi
15516 fi
15517 ;;
15518
15519 beos*)
15520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15521 allow_undefined_flag_CXX=unsupported
15522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15523 # support --undefined. This deserves some investigation. FIXME
15524 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15525 else
15526 ld_shlibs_CXX=no
15527 fi
15528 ;;
15529
15530 chorus*)
15531 case $cc_basename in
15532 *)
15533 # FIXME: insert proper C++ library support
15534 ld_shlibs_CXX=no
15535 ;;
15536 esac
15537 ;;
15538
15539 cygwin* | mingw* | pw32* | cegcc*)
15540 case $GXX,$cc_basename in
15541 ,cl* | no,cl*)
15542 # Native MSVC
15543 # hardcode_libdir_flag_spec is actually meaningless, as there is
15544 # no search path for DLLs.
15545 hardcode_libdir_flag_spec_CXX=' '
15546 allow_undefined_flag_CXX=unsupported
15547 always_export_symbols_CXX=yes
15548 file_list_spec_CXX='@'
15549 # Tell ltmain to make .lib files, not .a files.
15550 libext=lib
15551 # Tell ltmain to make .dll files, not .so files.
15552 shrext_cmds=.dll
15553 # FIXME: Setting linknames here is a bad hack.
15554 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15555 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15556 cp "$export_symbols" "$output_objdir/$soname.def";
15557 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15558 else
15559 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15560 fi~
15561 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15562 linknames='
15563 # The linker will not automatically build a static lib if we build a DLL.
15564 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15565 enable_shared_with_static_runtimes_CXX=yes
15566 # Don't use ranlib
15567 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15568 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15569 lt_tool_outputfile="@TOOL_OUTPUT@"~
15570 case $lt_outputfile in
15571 *.exe|*.EXE) ;;
15572 *)
15573 lt_outputfile=$lt_outputfile.exe
15574 lt_tool_outputfile=$lt_tool_outputfile.exe
15575 ;;
15576 esac~
15577 func_to_tool_file "$lt_outputfile"~
15578 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15579 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15580 $RM "$lt_outputfile.manifest";
15581 fi'
15582 ;;
15583 *)
15584 # g++
15585 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15586 # as there is no search path for DLLs.
15587 hardcode_libdir_flag_spec_CXX='-L$libdir'
15588 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15589 allow_undefined_flag_CXX=unsupported
15590 always_export_symbols_CXX=no
15591 enable_shared_with_static_runtimes_CXX=yes
15592
15593 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15594 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'
15595 # If the export-symbols file already is a .def file, use it as
15596 # is; otherwise, prepend EXPORTS...
15597 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15598 cp $export_symbols $output_objdir/$soname.def;
15599 else
15600 echo EXPORTS > $output_objdir/$soname.def;
15601 cat $export_symbols >> $output_objdir/$soname.def;
15602 fi~
15603 $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'
15604 else
15605 ld_shlibs_CXX=no
15606 fi
15607 ;;
15608 esac
15609 ;;
15610 darwin* | rhapsody*)
15611
15612
15613 archive_cmds_need_lc_CXX=no
15614 hardcode_direct_CXX=no
15615 hardcode_automatic_CXX=yes
15616 hardcode_shlibpath_var_CXX=unsupported
15617 if test yes = "$lt_cv_ld_force_load"; then
15618 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\"`'
15619
15620 else
15621 whole_archive_flag_spec_CXX=''
15622 fi
15623 link_all_deplibs_CXX=yes
15624 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15625 case $cc_basename in
15626 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15627 *) _lt_dar_can_shared=$GCC ;;
15628 esac
15629 if test yes = "$_lt_dar_can_shared"; then
15630 output_verbose_link_cmd=func_echo_all
15631 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"
15632 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15633 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"
15634 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"
15635 if test yes != "$lt_cv_apple_cc_single_mod"; then
15636 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"
15637 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"
15638 fi
15639
15640 else
15641 ld_shlibs_CXX=no
15642 fi
15643
15644 ;;
15645
15646 os2*)
15647 hardcode_libdir_flag_spec_CXX='-L$libdir'
15648 hardcode_minus_L_CXX=yes
15649 allow_undefined_flag_CXX=unsupported
15650 shrext_cmds=.dll
15651 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15654 $ECHO EXPORTS >> $output_objdir/$libname.def~
15655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15657 emximp -o $lib $output_objdir/$libname.def'
15658 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15661 $ECHO EXPORTS >> $output_objdir/$libname.def~
15662 prefix_cmds="$SED"~
15663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15664 prefix_cmds="$prefix_cmds -e 1d";
15665 fi~
15666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15669 emximp -o $lib $output_objdir/$libname.def'
15670 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15671 enable_shared_with_static_runtimes_CXX=yes
15672 ;;
15673
15674 dgux*)
15675 case $cc_basename in
15676 ec++*)
15677 # FIXME: insert proper C++ library support
15678 ld_shlibs_CXX=no
15679 ;;
15680 ghcx*)
15681 # Green Hills C++ Compiler
15682 # FIXME: insert proper C++ library support
15683 ld_shlibs_CXX=no
15684 ;;
15685 *)
15686 # FIXME: insert proper C++ library support
15687 ld_shlibs_CXX=no
15688 ;;
15689 esac
15690 ;;
15691
15692 freebsd2.*)
15693 # C++ shared libraries reported to be fairly broken before
15694 # switch to ELF
15695 ld_shlibs_CXX=no
15696 ;;
15697
15698 freebsd-elf*)
15699 archive_cmds_need_lc_CXX=no
15700 ;;
15701
15702 freebsd* | dragonfly*)
15703 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15704 # conventions
15705 ld_shlibs_CXX=yes
15706 ;;
15707
15708 haiku*)
15709 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15710 link_all_deplibs_CXX=yes
15711 ;;
15712
15713 hpux9*)
15714 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15715 hardcode_libdir_separator_CXX=:
15716 export_dynamic_flag_spec_CXX='$wl-E'
15717 hardcode_direct_CXX=yes
15718 hardcode_minus_L_CXX=yes # Not in the search PATH,
15719 # but as the default
15720 # location of the library.
15721
15722 case $cc_basename in
15723 CC*)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727 aCC*)
15728 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15729 # Commands to make compiler produce verbose output that lists
15730 # what "hidden" libraries, object files and flags are used when
15731 # linking a shared library.
15732 #
15733 # There doesn't appear to be a way to prevent this compiler from
15734 # explicitly linking system object files so we need to strip them
15735 # from the output so that they don't get included in the library
15736 # dependencies.
15737 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"'
15738 ;;
15739 *)
15740 if test yes = "$GXX"; then
15741 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15742 else
15743 # FIXME: insert proper C++ library support
15744 ld_shlibs_CXX=no
15745 fi
15746 ;;
15747 esac
15748 ;;
15749
15750 hpux10*|hpux11*)
15751 if test no = "$with_gnu_ld"; then
15752 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15753 hardcode_libdir_separator_CXX=:
15754
15755 case $host_cpu in
15756 hppa*64*|ia64*)
15757 ;;
15758 *)
15759 export_dynamic_flag_spec_CXX='$wl-E'
15760 ;;
15761 esac
15762 fi
15763 case $host_cpu in
15764 hppa*64*|ia64*)
15765 hardcode_direct_CXX=no
15766 hardcode_shlibpath_var_CXX=no
15767 ;;
15768 *)
15769 hardcode_direct_CXX=yes
15770 hardcode_direct_absolute_CXX=yes
15771 hardcode_minus_L_CXX=yes # Not in the search PATH,
15772 # but as the default
15773 # location of the library.
15774 ;;
15775 esac
15776
15777 case $cc_basename in
15778 CC*)
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 aCC*)
15783 case $host_cpu in
15784 hppa*64*)
15785 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15786 ;;
15787 ia64*)
15788 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15789 ;;
15790 *)
15791 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15792 ;;
15793 esac
15794 # Commands to make compiler produce verbose output that lists
15795 # what "hidden" libraries, object files and flags are used when
15796 # linking a shared library.
15797 #
15798 # There doesn't appear to be a way to prevent this compiler from
15799 # explicitly linking system object files so we need to strip them
15800 # from the output so that they don't get included in the library
15801 # dependencies.
15802 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"'
15803 ;;
15804 *)
15805 if test yes = "$GXX"; then
15806 if test no = "$with_gnu_ld"; then
15807 case $host_cpu in
15808 hppa*64*)
15809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15810 ;;
15811 ia64*)
15812 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15813 ;;
15814 *)
15815 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'
15816 ;;
15817 esac
15818 fi
15819 else
15820 # FIXME: insert proper C++ library support
15821 ld_shlibs_CXX=no
15822 fi
15823 ;;
15824 esac
15825 ;;
15826
15827 interix[3-9]*)
15828 hardcode_direct_CXX=no
15829 hardcode_shlibpath_var_CXX=no
15830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15831 export_dynamic_flag_spec_CXX='$wl-E'
15832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15833 # Instead, shared libraries are loaded at an image base (0x10000000 by
15834 # default) and relocated if they conflict, which is a slow very memory
15835 # consuming and fragmenting process. To avoid this, we pick a random,
15836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15838 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'
15839 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'
15840 ;;
15841 irix5* | irix6*)
15842 case $cc_basename in
15843 CC*)
15844 # SGI C++
15845 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'
15846
15847 # Archives containing C++ object files must be created using
15848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15849 # necessary to make sure instantiated templates are included
15850 # in the archive.
15851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15852 ;;
15853 *)
15854 if test yes = "$GXX"; then
15855 if test no = "$with_gnu_ld"; then
15856 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'
15857 else
15858 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'
15859 fi
15860 fi
15861 link_all_deplibs_CXX=yes
15862 ;;
15863 esac
15864 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15865 hardcode_libdir_separator_CXX=:
15866 inherit_rpath_CXX=yes
15867 ;;
15868
15869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15870 case $cc_basename in
15871 KCC*)
15872 # Kuck and Associates, Inc. (KAI) C++ Compiler
15873
15874 # KCC will only create a shared library if the output file
15875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15876 # to its proper name (with version) after linking.
15877 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'
15878 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'
15879 # Commands to make compiler produce verbose output that lists
15880 # what "hidden" libraries, object files and flags are used when
15881 # linking a shared library.
15882 #
15883 # There doesn't appear to be a way to prevent this compiler from
15884 # explicitly linking system object files so we need to strip them
15885 # from the output so that they don't get included in the library
15886 # dependencies.
15887 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"'
15888
15889 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15890 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15891
15892 # Archives containing C++ object files must be created using
15893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15895 ;;
15896 icpc* | ecpc* )
15897 # Intel C++
15898 with_gnu_ld=yes
15899 # version 8.0 and above of icpc choke on multiply defined symbols
15900 # if we add $predep_objects and $postdep_objects, however 7.1 and
15901 # earlier do not add the objects themselves.
15902 case `$CC -V 2>&1` in
15903 *"Version 7."*)
15904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15905 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'
15906 ;;
15907 *) # Version 8.0 or newer
15908 tmp_idyn=
15909 case $host_cpu in
15910 ia64*) tmp_idyn=' -i_dynamic';;
15911 esac
15912 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15913 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'
15914 ;;
15915 esac
15916 archive_cmds_need_lc_CXX=no
15917 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15918 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15919 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15920 ;;
15921 pgCC* | pgcpp*)
15922 # Portland Group C++ compiler
15923 case `$CC -V` in
15924 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15925 prelink_cmds_CXX='tpldir=Template.dir~
15926 rm -rf $tpldir~
15927 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15928 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15929 old_archive_cmds_CXX='tpldir=Template.dir~
15930 rm -rf $tpldir~
15931 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15932 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15933 $RANLIB $oldlib'
15934 archive_cmds_CXX='tpldir=Template.dir~
15935 rm -rf $tpldir~
15936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15937 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15938 archive_expsym_cmds_CXX='tpldir=Template.dir~
15939 rm -rf $tpldir~
15940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15941 $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'
15942 ;;
15943 *) # Version 6 and above use weak symbols
15944 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15945 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'
15946 ;;
15947 esac
15948
15949 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15950 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15951 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'
15952 ;;
15953 cxx*)
15954 # Compaq C++
15955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15956 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'
15957
15958 runpath_var=LD_RUN_PATH
15959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15960 hardcode_libdir_separator_CXX=:
15961
15962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15965 #
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15969 # dependencies.
15970 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'
15971 ;;
15972 xl* | mpixl* | bgxl*)
15973 # IBM XL 8.0 on PPC, with GNU ld
15974 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15975 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15976 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15977 if test yes = "$supports_anon_versioning"; then
15978 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 echo "local: *; };" >> $output_objdir/$libname.ver~
15981 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15982 fi
15983 ;;
15984 *)
15985 case `$CC -V 2>&1 | sed 5q` in
15986 *Sun\ C*)
15987 # Sun C++ 5.9
15988 no_undefined_flag_CXX=' -zdefs'
15989 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15990 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'
15991 hardcode_libdir_flag_spec_CXX='-R$libdir'
15992 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'
15993 compiler_needs_object_CXX=yes
15994
15995 # Not sure whether something based on
15996 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15997 # would be better.
15998 output_verbose_link_cmd='func_echo_all'
15999
16000 # Archives containing C++ object files must be created using
16001 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16002 # necessary to make sure instantiated templates are included
16003 # in the archive.
16004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16005 ;;
16006 esac
16007 ;;
16008 esac
16009 ;;
16010
16011 lynxos*)
16012 # FIXME: insert proper C++ library support
16013 ld_shlibs_CXX=no
16014 ;;
16015
16016 m88k*)
16017 # FIXME: insert proper C++ library support
16018 ld_shlibs_CXX=no
16019 ;;
16020
16021 mvs*)
16022 case $cc_basename in
16023 cxx*)
16024 # FIXME: insert proper C++ library support
16025 ld_shlibs_CXX=no
16026 ;;
16027 *)
16028 # FIXME: insert proper C++ library support
16029 ld_shlibs_CXX=no
16030 ;;
16031 esac
16032 ;;
16033
16034 netbsd*)
16035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16037 wlarc=
16038 hardcode_libdir_flag_spec_CXX='-R$libdir'
16039 hardcode_direct_CXX=yes
16040 hardcode_shlibpath_var_CXX=no
16041 fi
16042 # Workaround some broken pre-1.5 toolchains
16043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16044 ;;
16045
16046 *nto* | *qnx*)
16047 ld_shlibs_CXX=yes
16048 ;;
16049
16050 openbsd* | bitrig*)
16051 if test -f /usr/libexec/ld.so; then
16052 hardcode_direct_CXX=yes
16053 hardcode_shlibpath_var_CXX=no
16054 hardcode_direct_absolute_CXX=yes
16055 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16056 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16058 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16059 export_dynamic_flag_spec_CXX='$wl-E'
16060 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16061 fi
16062 output_verbose_link_cmd=func_echo_all
16063 else
16064 ld_shlibs_CXX=no
16065 fi
16066 ;;
16067
16068 osf3* | osf4* | osf5*)
16069 case $cc_basename in
16070 KCC*)
16071 # Kuck and Associates, Inc. (KAI) C++ Compiler
16072
16073 # KCC will only create a shared library if the output file
16074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16075 # to its proper name (with version) after linking.
16076 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'
16077
16078 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16079 hardcode_libdir_separator_CXX=:
16080
16081 # Archives containing C++ object files must be created using
16082 # the KAI C++ compiler.
16083 case $host in
16084 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16085 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16086 esac
16087 ;;
16088 RCC*)
16089 # Rational C++ 2.4.1
16090 # FIXME: insert proper C++ library support
16091 ld_shlibs_CXX=no
16092 ;;
16093 cxx*)
16094 case $host in
16095 osf3*)
16096 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16097 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'
16098 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16099 ;;
16100 *)
16101 allow_undefined_flag_CXX=' -expect_unresolved \*'
16102 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'
16103 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16104 echo "-hidden">> $lib.exp~
16105 $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~
16106 $RM $lib.exp'
16107 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16108 ;;
16109 esac
16110
16111 hardcode_libdir_separator_CXX=:
16112
16113 # Commands to make compiler produce verbose output that lists
16114 # what "hidden" libraries, object files and flags are used when
16115 # linking a shared library.
16116 #
16117 # There doesn't appear to be a way to prevent this compiler from
16118 # explicitly linking system object files so we need to strip them
16119 # from the output so that they don't get included in the library
16120 # dependencies.
16121 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"'
16122 ;;
16123 *)
16124 if test yes,no = "$GXX,$with_gnu_ld"; then
16125 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16126 case $host in
16127 osf3*)
16128 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'
16129 ;;
16130 *)
16131 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'
16132 ;;
16133 esac
16134
16135 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16136 hardcode_libdir_separator_CXX=:
16137
16138 # Commands to make compiler produce verbose output that lists
16139 # what "hidden" libraries, object files and flags are used when
16140 # linking a shared library.
16141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16142
16143 else
16144 # FIXME: insert proper C++ library support
16145 ld_shlibs_CXX=no
16146 fi
16147 ;;
16148 esac
16149 ;;
16150
16151 psos*)
16152 # FIXME: insert proper C++ library support
16153 ld_shlibs_CXX=no
16154 ;;
16155
16156 sunos4*)
16157 case $cc_basename in
16158 CC*)
16159 # Sun C++ 4.x
16160 # FIXME: insert proper C++ library support
16161 ld_shlibs_CXX=no
16162 ;;
16163 lcc*)
16164 # Lucid
16165 # FIXME: insert proper C++ library support
16166 ld_shlibs_CXX=no
16167 ;;
16168 *)
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 ;;
16172 esac
16173 ;;
16174
16175 solaris*)
16176 case $cc_basename in
16177 CC* | sunCC*)
16178 # Sun C++ 4.2, 5.x and Centerline C++
16179 archive_cmds_need_lc_CXX=yes
16180 no_undefined_flag_CXX=' -zdefs'
16181 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16182 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16183 $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'
16184
16185 hardcode_libdir_flag_spec_CXX='-R$libdir'
16186 hardcode_shlibpath_var_CXX=no
16187 case $host_os in
16188 solaris2.[0-5] | solaris2.[0-5].*) ;;
16189 *)
16190 # The compiler driver will combine and reorder linker options,
16191 # but understands '-z linker_flag'.
16192 # Supported since Solaris 2.6 (maybe 2.5.1?)
16193 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16194 ;;
16195 esac
16196 link_all_deplibs_CXX=yes
16197
16198 output_verbose_link_cmd='func_echo_all'
16199
16200 # Archives containing C++ object files must be created using
16201 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16202 # necessary to make sure instantiated templates are included
16203 # in the archive.
16204 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16205 ;;
16206 gcx*)
16207 # Green Hills C++ Compiler
16208 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16209
16210 # The C++ compiler must be used to create the archive.
16211 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16212 ;;
16213 *)
16214 # GNU C++ compiler with Solaris linker
16215 if test yes,no = "$GXX,$with_gnu_ld"; then
16216 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16217 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16218 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16219 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16220 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16221
16222 # Commands to make compiler produce verbose output that lists
16223 # what "hidden" libraries, object files and flags are used when
16224 # linking a shared library.
16225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16226 else
16227 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16228 # platform.
16229 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16230 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16231 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16232
16233 # Commands to make compiler produce verbose output that lists
16234 # what "hidden" libraries, object files and flags are used when
16235 # linking a shared library.
16236 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16237 fi
16238
16239 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16240 case $host_os in
16241 solaris2.[0-5] | solaris2.[0-5].*) ;;
16242 *)
16243 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16244 ;;
16245 esac
16246 fi
16247 ;;
16248 esac
16249 ;;
16250
16251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16252 no_undefined_flag_CXX='$wl-z,text'
16253 archive_cmds_need_lc_CXX=no
16254 hardcode_shlibpath_var_CXX=no
16255 runpath_var='LD_RUN_PATH'
16256
16257 case $cc_basename in
16258 CC*)
16259 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 ;;
16262 *)
16263 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 ;;
16266 esac
16267 ;;
16268
16269 sysv5* | sco3.2v5* | sco5v6*)
16270 # Note: We CANNOT use -z defs as we might desire, because we do not
16271 # link with -lc, and that would cause any symbols used from libc to
16272 # always be unresolved, which means just about no library would
16273 # ever link correctly. If we're not using GNU ld we use -z text
16274 # though, which does catch some bad symbols but isn't as heavy-handed
16275 # as -z defs.
16276 no_undefined_flag_CXX='$wl-z,text'
16277 allow_undefined_flag_CXX='$wl-z,nodefs'
16278 archive_cmds_need_lc_CXX=no
16279 hardcode_shlibpath_var_CXX=no
16280 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16281 hardcode_libdir_separator_CXX=':'
16282 link_all_deplibs_CXX=yes
16283 export_dynamic_flag_spec_CXX='$wl-Bexport'
16284 runpath_var='LD_RUN_PATH'
16285
16286 case $cc_basename in
16287 CC*)
16288 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16290 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16291 '"$old_archive_cmds_CXX"
16292 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16293 '"$reload_cmds_CXX"
16294 ;;
16295 *)
16296 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16297 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16298 ;;
16299 esac
16300 ;;
16301
16302 tandem*)
16303 case $cc_basename in
16304 NCC*)
16305 # NonStop-UX NCC 3.20
16306 # FIXME: insert proper C++ library support
16307 ld_shlibs_CXX=no
16308 ;;
16309 *)
16310 # FIXME: insert proper C++ library support
16311 ld_shlibs_CXX=no
16312 ;;
16313 esac
16314 ;;
16315
16316 vxworks*)
16317 # FIXME: insert proper C++ library support
16318 ld_shlibs_CXX=no
16319 ;;
16320
16321 *)
16322 # FIXME: insert proper C++ library support
16323 ld_shlibs_CXX=no
16324 ;;
16325 esac
16326
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16328 $as_echo "$ld_shlibs_CXX" >&6; }
16329 test no = "$ld_shlibs_CXX" && can_build_shared=no
16330
16331 GCC_CXX=$GXX
16332 LD_CXX=$LD
16333
16334 ## CAVEAT EMPTOR:
16335 ## There is no encapsulation within the following macros, do not change
16336 ## the running order or otherwise move them around unless you know exactly
16337 ## what you are doing...
16338 # Dependencies to place before and after the object being linked:
16339 predep_objects_CXX=
16340 postdep_objects_CXX=
16341 predeps_CXX=
16342 postdeps_CXX=
16343 compiler_lib_search_path_CXX=
16344
16345 cat > conftest.$ac_ext <<_LT_EOF
16346 class Foo
16347 {
16348 public:
16349 Foo (void) { a = 0; }
16350 private:
16351 int a;
16352 };
16353 _LT_EOF
16354
16355
16356 _lt_libdeps_save_CFLAGS=$CFLAGS
16357 case "$CC $CFLAGS " in #(
16358 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16359 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16360 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16361 esac
16362
16363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16364 (eval $ac_compile) 2>&5
16365 ac_status=$?
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; then
16368 # Parse the compiler output and extract the necessary
16369 # objects, libraries and library flags.
16370
16371 # Sentinel used to keep track of whether or not we are before
16372 # the conftest object file.
16373 pre_test_object_deps_done=no
16374
16375 for p in `eval "$output_verbose_link_cmd"`; do
16376 case $prev$p in
16377
16378 -L* | -R* | -l*)
16379 # Some compilers place space between "-{L,R}" and the path.
16380 # Remove the space.
16381 if test x-L = "$p" ||
16382 test x-R = "$p"; then
16383 prev=$p
16384 continue
16385 fi
16386
16387 # Expand the sysroot to ease extracting the directories later.
16388 if test -z "$prev"; then
16389 case $p in
16390 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16391 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16392 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16393 esac
16394 fi
16395 case $p in
16396 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16397 esac
16398 if test no = "$pre_test_object_deps_done"; then
16399 case $prev in
16400 -L | -R)
16401 # Internal compiler library paths should come after those
16402 # provided the user. The postdeps already come after the
16403 # user supplied libs so there is no need to process them.
16404 if test -z "$compiler_lib_search_path_CXX"; then
16405 compiler_lib_search_path_CXX=$prev$p
16406 else
16407 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16408 fi
16409 ;;
16410 # The "-l" case would never come before the object being
16411 # linked, so don't bother handling this case.
16412 esac
16413 else
16414 if test -z "$postdeps_CXX"; then
16415 postdeps_CXX=$prev$p
16416 else
16417 postdeps_CXX="${postdeps_CXX} $prev$p"
16418 fi
16419 fi
16420 prev=
16421 ;;
16422
16423 *.lto.$objext) ;; # Ignore GCC LTO objects
16424 *.$objext)
16425 # This assumes that the test object file only shows up
16426 # once in the compiler output.
16427 if test "$p" = "conftest.$objext"; then
16428 pre_test_object_deps_done=yes
16429 continue
16430 fi
16431
16432 if test no = "$pre_test_object_deps_done"; then
16433 if test -z "$predep_objects_CXX"; then
16434 predep_objects_CXX=$p
16435 else
16436 predep_objects_CXX="$predep_objects_CXX $p"
16437 fi
16438 else
16439 if test -z "$postdep_objects_CXX"; then
16440 postdep_objects_CXX=$p
16441 else
16442 postdep_objects_CXX="$postdep_objects_CXX $p"
16443 fi
16444 fi
16445 ;;
16446
16447 *) ;; # Ignore the rest.
16448
16449 esac
16450 done
16451
16452 # Clean up.
16453 rm -f a.out a.exe
16454 else
16455 echo "libtool.m4: error: problem compiling CXX test program"
16456 fi
16457
16458 $RM -f confest.$objext
16459 CFLAGS=$_lt_libdeps_save_CFLAGS
16460
16461 # PORTME: override above test on systems where it is broken
16462 case $host_os in
16463 interix[3-9]*)
16464 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16465 # hack all around it, let's just trust "g++" to DTRT.
16466 predep_objects_CXX=
16467 postdep_objects_CXX=
16468 postdeps_CXX=
16469 ;;
16470 esac
16471
16472
16473 case " $postdeps_CXX " in
16474 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16475 esac
16476 compiler_lib_search_dirs_CXX=
16477 if test -n "${compiler_lib_search_path_CXX}"; then
16478 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16479 fi
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511 lt_prog_compiler_wl_CXX=
16512 lt_prog_compiler_pic_CXX=
16513 lt_prog_compiler_static_CXX=
16514
16515
16516 # C++ specific cases for pic, static, wl, etc.
16517 if test yes = "$GXX"; then
16518 lt_prog_compiler_wl_CXX='-Wl,'
16519 lt_prog_compiler_static_CXX='-static'
16520
16521 case $host_os in
16522 aix*)
16523 # All AIX code is PIC.
16524 if test ia64 = "$host_cpu"; then
16525 # AIX 5 now supports IA64 processor
16526 lt_prog_compiler_static_CXX='-Bstatic'
16527 fi
16528 lt_prog_compiler_pic_CXX='-fPIC'
16529 ;;
16530
16531 amigaos*)
16532 case $host_cpu in
16533 powerpc)
16534 # see comment about AmigaOS4 .so support
16535 lt_prog_compiler_pic_CXX='-fPIC'
16536 ;;
16537 m68k)
16538 # FIXME: we need at least 68020 code to build shared libraries, but
16539 # adding the '-m68020' flag to GCC prevents building anything better,
16540 # like '-m68040'.
16541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16542 ;;
16543 esac
16544 ;;
16545
16546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16547 # PIC is the default for these OSes.
16548 ;;
16549 mingw* | cygwin* | os2* | pw32* | cegcc*)
16550 # This hack is so that the source file can tell whether it is being
16551 # built for inclusion in a dll (and should export symbols for example).
16552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16553 # (--disable-auto-import) libraries
16554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16555 case $host_os in
16556 os2*)
16557 lt_prog_compiler_static_CXX='$wl-static'
16558 ;;
16559 esac
16560 ;;
16561 darwin* | rhapsody*)
16562 # PIC is the default on this platform
16563 # Common symbols not allowed in MH_DYLIB files
16564 lt_prog_compiler_pic_CXX='-fno-common'
16565 ;;
16566 *djgpp*)
16567 # DJGPP does not support shared libraries at all
16568 lt_prog_compiler_pic_CXX=
16569 ;;
16570 haiku*)
16571 # PIC is the default for Haiku.
16572 # The "-static" flag exists, but is broken.
16573 lt_prog_compiler_static_CXX=
16574 ;;
16575 interix[3-9]*)
16576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16577 # Instead, we relocate shared libraries at runtime.
16578 ;;
16579 sysv4*MP*)
16580 if test -d /usr/nec; then
16581 lt_prog_compiler_pic_CXX=-Kconform_pic
16582 fi
16583 ;;
16584 hpux*)
16585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16587 # sets the default TLS model and affects inlining.
16588 case $host_cpu in
16589 hppa*64*)
16590 ;;
16591 *)
16592 lt_prog_compiler_pic_CXX='-fPIC'
16593 ;;
16594 esac
16595 ;;
16596 *qnx* | *nto*)
16597 # QNX uses GNU C++, but need to define -shared option too, otherwise
16598 # it will coredump.
16599 lt_prog_compiler_pic_CXX='-fPIC -shared'
16600 ;;
16601 *)
16602 lt_prog_compiler_pic_CXX='-fPIC'
16603 ;;
16604 esac
16605 else
16606 case $host_os in
16607 aix[4-9]*)
16608 # All AIX code is PIC.
16609 if test ia64 = "$host_cpu"; then
16610 # AIX 5 now supports IA64 processor
16611 lt_prog_compiler_static_CXX='-Bstatic'
16612 else
16613 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16614 fi
16615 ;;
16616 chorus*)
16617 case $cc_basename in
16618 cxch68*)
16619 # Green Hills C++ Compiler
16620 # _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"
16621 ;;
16622 esac
16623 ;;
16624 mingw* | cygwin* | os2* | pw32* | cegcc*)
16625 # This hack is so that the source file can tell whether it is being
16626 # built for inclusion in a dll (and should export symbols for example).
16627 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16628 ;;
16629 dgux*)
16630 case $cc_basename in
16631 ec++*)
16632 lt_prog_compiler_pic_CXX='-KPIC'
16633 ;;
16634 ghcx*)
16635 # Green Hills C++ Compiler
16636 lt_prog_compiler_pic_CXX='-pic'
16637 ;;
16638 *)
16639 ;;
16640 esac
16641 ;;
16642 freebsd* | dragonfly*)
16643 # FreeBSD uses GNU C++
16644 ;;
16645 hpux9* | hpux10* | hpux11*)
16646 case $cc_basename in
16647 CC*)
16648 lt_prog_compiler_wl_CXX='-Wl,'
16649 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16650 if test ia64 != "$host_cpu"; then
16651 lt_prog_compiler_pic_CXX='+Z'
16652 fi
16653 ;;
16654 aCC*)
16655 lt_prog_compiler_wl_CXX='-Wl,'
16656 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16657 case $host_cpu in
16658 hppa*64*|ia64*)
16659 # +Z the default
16660 ;;
16661 *)
16662 lt_prog_compiler_pic_CXX='+Z'
16663 ;;
16664 esac
16665 ;;
16666 *)
16667 ;;
16668 esac
16669 ;;
16670 interix*)
16671 # This is c89, which is MS Visual C++ (no shared libs)
16672 # Anyone wants to do a port?
16673 ;;
16674 irix5* | irix6* | nonstopux*)
16675 case $cc_basename in
16676 CC*)
16677 lt_prog_compiler_wl_CXX='-Wl,'
16678 lt_prog_compiler_static_CXX='-non_shared'
16679 # CC pic flag -KPIC is the default.
16680 ;;
16681 *)
16682 ;;
16683 esac
16684 ;;
16685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16686 case $cc_basename in
16687 KCC*)
16688 # KAI C++ Compiler
16689 lt_prog_compiler_wl_CXX='--backend -Wl,'
16690 lt_prog_compiler_pic_CXX='-fPIC'
16691 ;;
16692 ecpc* )
16693 # old Intel C++ for x86_64, which still supported -KPIC.
16694 lt_prog_compiler_wl_CXX='-Wl,'
16695 lt_prog_compiler_pic_CXX='-KPIC'
16696 lt_prog_compiler_static_CXX='-static'
16697 ;;
16698 icpc* )
16699 # Intel C++, used to be incompatible with GCC.
16700 # ICC 10 doesn't accept -KPIC any more.
16701 lt_prog_compiler_wl_CXX='-Wl,'
16702 lt_prog_compiler_pic_CXX='-fPIC'
16703 lt_prog_compiler_static_CXX='-static'
16704 ;;
16705 pgCC* | pgcpp*)
16706 # Portland Group C++ compiler
16707 lt_prog_compiler_wl_CXX='-Wl,'
16708 lt_prog_compiler_pic_CXX='-fpic'
16709 lt_prog_compiler_static_CXX='-Bstatic'
16710 ;;
16711 cxx*)
16712 # Compaq C++
16713 # Make sure the PIC flag is empty. It appears that all Alpha
16714 # Linux and Compaq Tru64 Unix objects are PIC.
16715 lt_prog_compiler_pic_CXX=
16716 lt_prog_compiler_static_CXX='-non_shared'
16717 ;;
16718 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16719 # IBM XL 8.0, 9.0 on PPC and BlueGene
16720 lt_prog_compiler_wl_CXX='-Wl,'
16721 lt_prog_compiler_pic_CXX='-qpic'
16722 lt_prog_compiler_static_CXX='-qstaticlink'
16723 ;;
16724 *)
16725 case `$CC -V 2>&1 | sed 5q` in
16726 *Sun\ C*)
16727 # Sun C++ 5.9
16728 lt_prog_compiler_pic_CXX='-KPIC'
16729 lt_prog_compiler_static_CXX='-Bstatic'
16730 lt_prog_compiler_wl_CXX='-Qoption ld '
16731 ;;
16732 esac
16733 ;;
16734 esac
16735 ;;
16736 lynxos*)
16737 ;;
16738 m88k*)
16739 ;;
16740 mvs*)
16741 case $cc_basename in
16742 cxx*)
16743 lt_prog_compiler_pic_CXX='-W c,exportall'
16744 ;;
16745 *)
16746 ;;
16747 esac
16748 ;;
16749 netbsd*)
16750 ;;
16751 *qnx* | *nto*)
16752 # QNX uses GNU C++, but need to define -shared option too, otherwise
16753 # it will coredump.
16754 lt_prog_compiler_pic_CXX='-fPIC -shared'
16755 ;;
16756 osf3* | osf4* | osf5*)
16757 case $cc_basename in
16758 KCC*)
16759 lt_prog_compiler_wl_CXX='--backend -Wl,'
16760 ;;
16761 RCC*)
16762 # Rational C++ 2.4.1
16763 lt_prog_compiler_pic_CXX='-pic'
16764 ;;
16765 cxx*)
16766 # Digital/Compaq C++
16767 lt_prog_compiler_wl_CXX='-Wl,'
16768 # Make sure the PIC flag is empty. It appears that all Alpha
16769 # Linux and Compaq Tru64 Unix objects are PIC.
16770 lt_prog_compiler_pic_CXX=
16771 lt_prog_compiler_static_CXX='-non_shared'
16772 ;;
16773 *)
16774 ;;
16775 esac
16776 ;;
16777 psos*)
16778 ;;
16779 solaris*)
16780 case $cc_basename in
16781 CC* | sunCC*)
16782 # Sun C++ 4.2, 5.x and Centerline C++
16783 lt_prog_compiler_pic_CXX='-KPIC'
16784 lt_prog_compiler_static_CXX='-Bstatic'
16785 lt_prog_compiler_wl_CXX='-Qoption ld '
16786 ;;
16787 gcx*)
16788 # Green Hills C++ Compiler
16789 lt_prog_compiler_pic_CXX='-PIC'
16790 ;;
16791 *)
16792 ;;
16793 esac
16794 ;;
16795 sunos4*)
16796 case $cc_basename in
16797 CC*)
16798 # Sun C++ 4.x
16799 lt_prog_compiler_pic_CXX='-pic'
16800 lt_prog_compiler_static_CXX='-Bstatic'
16801 ;;
16802 lcc*)
16803 # Lucid
16804 lt_prog_compiler_pic_CXX='-pic'
16805 ;;
16806 *)
16807 ;;
16808 esac
16809 ;;
16810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16811 case $cc_basename in
16812 CC*)
16813 lt_prog_compiler_wl_CXX='-Wl,'
16814 lt_prog_compiler_pic_CXX='-KPIC'
16815 lt_prog_compiler_static_CXX='-Bstatic'
16816 ;;
16817 esac
16818 ;;
16819 tandem*)
16820 case $cc_basename in
16821 NCC*)
16822 # NonStop-UX NCC 3.20
16823 lt_prog_compiler_pic_CXX='-KPIC'
16824 ;;
16825 *)
16826 ;;
16827 esac
16828 ;;
16829 vxworks*)
16830 ;;
16831 *)
16832 lt_prog_compiler_can_build_shared_CXX=no
16833 ;;
16834 esac
16835 fi
16836
16837 case $host_os in
16838 # For platforms that do not support PIC, -DPIC is meaningless:
16839 *djgpp*)
16840 lt_prog_compiler_pic_CXX=
16841 ;;
16842 *)
16843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16844 ;;
16845 esac
16846
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16848 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16849 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16855 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16856 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16857
16858 #
16859 # Check to make sure the PIC flag actually works.
16860 #
16861 if test -n "$lt_prog_compiler_pic_CXX"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16863 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16864 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 lt_cv_prog_compiler_pic_works_CXX=no
16868 ac_outfile=conftest.$ac_objext
16869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16870 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16871 # Insert the option either (1) after the last *FLAGS variable, or
16872 # (2) before a word containing "conftest.", or (3) at the end.
16873 # Note that $ac_compile itself does not contain backslashes and begins
16874 # with a dollar sign (not a hyphen), so the echo should work correctly.
16875 # The option is referenced via a variable to avoid confusing sed.
16876 lt_compile=`echo "$ac_compile" | $SED \
16877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879 -e 's:$: $lt_compiler_flag:'`
16880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16881 (eval "$lt_compile" 2>conftest.err)
16882 ac_status=$?
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 if (exit $ac_status) && test -s "$ac_outfile"; then
16886 # The compiler can only warn and ignore the option if not recognized
16887 # So say no if there are warnings other than the usual output.
16888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16891 lt_cv_prog_compiler_pic_works_CXX=yes
16892 fi
16893 fi
16894 $RM -r conftest*
16895
16896 fi
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16898 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16899
16900 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16901 case $lt_prog_compiler_pic_CXX in
16902 "" | " "*) ;;
16903 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16904 esac
16905 else
16906 lt_prog_compiler_pic_CXX=
16907 lt_prog_compiler_can_build_shared_CXX=no
16908 fi
16909
16910 fi
16911
16912
16913
16914
16915
16916 #
16917 # Check to make sure the static flag actually works.
16918 #
16919 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16921 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16922 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16923 $as_echo_n "(cached) " >&6
16924 else
16925 lt_cv_prog_compiler_static_works_CXX=no
16926 save_LDFLAGS=$LDFLAGS
16927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16930 # The linker can only warn and ignore the option if not recognized
16931 # So say no if there are warnings
16932 if test -s conftest.err; then
16933 # Append any errors to the config.log.
16934 cat conftest.err 1>&5
16935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16937 if diff conftest.exp conftest.er2 >/dev/null; then
16938 lt_cv_prog_compiler_static_works_CXX=yes
16939 fi
16940 else
16941 lt_cv_prog_compiler_static_works_CXX=yes
16942 fi
16943 fi
16944 $RM -r conftest*
16945 LDFLAGS=$save_LDFLAGS
16946
16947 fi
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16949 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16950
16951 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16952 :
16953 else
16954 lt_prog_compiler_static_CXX=
16955 fi
16956
16957
16958
16959
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16962 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 lt_cv_prog_compiler_c_o_CXX=no
16966 $RM -r conftest 2>/dev/null
16967 mkdir conftest
16968 cd conftest
16969 mkdir out
16970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16971
16972 lt_compiler_flag="-o out/conftest2.$ac_objext"
16973 # Insert the option either (1) after the last *FLAGS variable, or
16974 # (2) before a word containing "conftest.", or (3) at the end.
16975 # Note that $ac_compile itself does not contain backslashes and begins
16976 # with a dollar sign (not a hyphen), so the echo should work correctly.
16977 lt_compile=`echo "$ac_compile" | $SED \
16978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16980 -e 's:$: $lt_compiler_flag:'`
16981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16982 (eval "$lt_compile" 2>out/conftest.err)
16983 ac_status=$?
16984 cat out/conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16987 then
16988 # The compiler can only warn and ignore the option if not recognized
16989 # So say no if there are warnings
16990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16993 lt_cv_prog_compiler_c_o_CXX=yes
16994 fi
16995 fi
16996 chmod u+w . 2>&5
16997 $RM -r conftest*
16998 # SGI C++ compiler will create directory out/ii_files/ for
16999 # template instantiation
17000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17001 $RM out/* && rmdir out
17002 cd ..
17003 $RM -r conftest
17004 $RM -r conftest*
17005
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17008 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17009
17010
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17013 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17014 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17015 $as_echo_n "(cached) " >&6
17016 else
17017 lt_cv_prog_compiler_c_o_CXX=no
17018 $RM -r conftest 2>/dev/null
17019 mkdir conftest
17020 cd conftest
17021 mkdir out
17022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17023
17024 lt_compiler_flag="-o out/conftest2.$ac_objext"
17025 # Insert the option either (1) after the last *FLAGS variable, or
17026 # (2) before a word containing "conftest.", or (3) at the end.
17027 # Note that $ac_compile itself does not contain backslashes and begins
17028 # with a dollar sign (not a hyphen), so the echo should work correctly.
17029 lt_compile=`echo "$ac_compile" | $SED \
17030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17032 -e 's:$: $lt_compiler_flag:'`
17033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17034 (eval "$lt_compile" 2>out/conftest.err)
17035 ac_status=$?
17036 cat out/conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17039 then
17040 # The compiler can only warn and ignore the option if not recognized
17041 # So say no if there are warnings
17042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17045 lt_cv_prog_compiler_c_o_CXX=yes
17046 fi
17047 fi
17048 chmod u+w . 2>&5
17049 $RM -r conftest*
17050 # SGI C++ compiler will create directory out/ii_files/ for
17051 # template instantiation
17052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17053 $RM out/* && rmdir out
17054 cd ..
17055 $RM -r conftest
17056 $RM -r conftest*
17057
17058 fi
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17060 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17061
17062
17063
17064
17065 hard_links=nottested
17066 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17067 # do not overwrite the value of need_locks provided by the user
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17069 $as_echo_n "checking if we can lock with hard links... " >&6; }
17070 hard_links=yes
17071 $RM -r conftest*
17072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17073 touch conftest.a
17074 ln conftest.a conftest.b 2>&5 || hard_links=no
17075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17077 $as_echo "$hard_links" >&6; }
17078 if test no = "$hard_links"; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17080 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17081 need_locks=warn
17082 fi
17083 else
17084 need_locks=no
17085 fi
17086
17087
17088
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17090 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17091
17092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17093 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17094 case $host_os in
17095 aix[4-9]*)
17096 # If we're using GNU nm, then we don't want the "-C" option.
17097 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17098 # Without the "-l" option, or with the "-B" option, AIX nm treats
17099 # weak defined symbols like other global defined symbols, whereas
17100 # GNU nm marks them as "W".
17101 # While the 'weak' keyword is ignored in the Export File, we need
17102 # it in the Import File for the 'aix-soname' feature, so we have
17103 # to replace the "-B" option with "-P" for AIX nm.
17104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17105 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17106 else
17107 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17108 fi
17109 ;;
17110 pw32*)
17111 export_symbols_cmds_CXX=$ltdll_cmds
17112 ;;
17113 cygwin* | mingw* | cegcc*)
17114 case $cc_basename in
17115 cl*)
17116 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17117 ;;
17118 *)
17119 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'
17120 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17121 ;;
17122 esac
17123 ;;
17124 *)
17125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17126 ;;
17127 esac
17128
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17130 $as_echo "$ld_shlibs_CXX" >&6; }
17131 test no = "$ld_shlibs_CXX" && can_build_shared=no
17132
17133 with_gnu_ld_CXX=$with_gnu_ld
17134
17135
17136
17137
17138
17139
17140 #
17141 # Do we need to explicitly link libc?
17142 #
17143 case "x$archive_cmds_need_lc_CXX" in
17144 x|xyes)
17145 # Assume -lc should be added
17146 archive_cmds_need_lc_CXX=yes
17147
17148 if test yes,yes = "$GCC,$enable_shared"; then
17149 case $archive_cmds_CXX in
17150 *'~'*)
17151 # FIXME: we may have to deal with multi-command sequences.
17152 ;;
17153 '$CC '*)
17154 # Test whether the compiler implicitly links with -lc since on some
17155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17156 # to ld, don't add -lc before -lgcc.
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17158 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17159 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17160 $as_echo_n "(cached) " >&6
17161 else
17162 $RM -r conftest*
17163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17164
17165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17166 (eval $ac_compile) 2>&5
17167 ac_status=$?
17168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; } 2>conftest.err; then
17170 soname=conftest
17171 lib=conftest
17172 libobjs=conftest.$ac_objext
17173 deplibs=
17174 wl=$lt_prog_compiler_wl_CXX
17175 pic_flag=$lt_prog_compiler_pic_CXX
17176 compiler_flags=-v
17177 linker_flags=-v
17178 verstring=
17179 output_objdir=.
17180 libname=conftest
17181 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17182 allow_undefined_flag_CXX=
17183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17184 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }
17188 then
17189 lt_cv_archive_cmds_need_lc_CXX=no
17190 else
17191 lt_cv_archive_cmds_need_lc_CXX=yes
17192 fi
17193 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17194 else
17195 cat conftest.err 1>&5
17196 fi
17197 $RM -r conftest*
17198
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17201 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17202 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17203 ;;
17204 esac
17205 fi
17206 ;;
17207 esac
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17271 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17272
17273 library_names_spec=
17274 libname_spec='lib$name'
17275 soname_spec=
17276 shrext_cmds=.so
17277 postinstall_cmds=
17278 postuninstall_cmds=
17279 finish_cmds=
17280 finish_eval=
17281 shlibpath_var=
17282 shlibpath_overrides_runpath=unknown
17283 version_type=none
17284 dynamic_linker="$host_os ld.so"
17285 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17286 need_lib_prefix=unknown
17287 hardcode_into_libs=no
17288
17289 # when you set need_version to no, make sure it does not cause -set_version
17290 # flags to be left without arguments
17291 need_version=unknown
17292
17293
17294
17295 case $host_os in
17296 aix3*)
17297 version_type=linux # correct to gnu/linux during the next big refactor
17298 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17299 shlibpath_var=LIBPATH
17300
17301 # AIX 3 has no versioning support, so we append a major version to the name.
17302 soname_spec='$libname$release$shared_ext$major'
17303 ;;
17304
17305 aix[4-9]*)
17306 version_type=linux # correct to gnu/linux during the next big refactor
17307 need_lib_prefix=no
17308 need_version=no
17309 hardcode_into_libs=yes
17310 if test ia64 = "$host_cpu"; then
17311 # AIX 5 supports IA64
17312 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 else
17315 # With GCC up to 2.95.x, collect2 would create an import file
17316 # for dependence libraries. The import file would start with
17317 # the line '#! .'. This would cause the generated library to
17318 # depend on '.', always an invalid library. This was fixed in
17319 # development snapshots of GCC prior to 3.0.
17320 case $host_os in
17321 aix4 | aix4.[01] | aix4.[01].*)
17322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17323 echo ' yes '
17324 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17325 :
17326 else
17327 can_build_shared=no
17328 fi
17329 ;;
17330 esac
17331 # Using Import Files as archive members, it is possible to support
17332 # filename-based versioning of shared library archives on AIX. While
17333 # this would work for both with and without runtime linking, it will
17334 # prevent static linking of such archives. So we do filename-based
17335 # shared library versioning with .so extension only, which is used
17336 # when both runtime linking and shared linking is enabled.
17337 # Unfortunately, runtime linking may impact performance, so we do
17338 # not want this to be the default eventually. Also, we use the
17339 # versioned .so libs for executables only if there is the -brtl
17340 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17341 # To allow for filename-based versioning support, we need to create
17342 # libNAME.so.V as an archive file, containing:
17343 # *) an Import File, referring to the versioned filename of the
17344 # archive as well as the shared archive member, telling the
17345 # bitwidth (32 or 64) of that shared object, and providing the
17346 # list of exported symbols of that shared object, eventually
17347 # decorated with the 'weak' keyword
17348 # *) the shared object with the F_LOADONLY flag set, to really avoid
17349 # it being seen by the linker.
17350 # At run time we better use the real file rather than another symlink,
17351 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17352
17353 case $with_aix_soname,$aix_use_runtimelinking in
17354 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17355 # soname into executable. Probably we can add versioning support to
17356 # collect2, so additional links can be useful in future.
17357 aix,yes) # traditional libtool
17358 dynamic_linker='AIX unversionable lib.so'
17359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17360 # instead of lib<name>.a to let people know that these are not
17361 # typical AIX shared libraries.
17362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17363 ;;
17364 aix,no) # traditional AIX only
17365 dynamic_linker='AIX lib.a(lib.so.V)'
17366 # We preserve .a as extension for shared libraries through AIX4.2
17367 # and later when we are not doing run time linking.
17368 library_names_spec='$libname$release.a $libname.a'
17369 soname_spec='$libname$release$shared_ext$major'
17370 ;;
17371 svr4,*) # full svr4 only
17372 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17373 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17374 # We do not specify a path in Import Files, so LIBPATH fires.
17375 shlibpath_overrides_runpath=yes
17376 ;;
17377 *,yes) # both, prefer svr4
17378 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17379 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17380 # unpreferred sharedlib libNAME.a needs extra handling
17381 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17382 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17383 # We do not specify a path in Import Files, so LIBPATH fires.
17384 shlibpath_overrides_runpath=yes
17385 ;;
17386 *,no) # both, prefer aix
17387 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17388 library_names_spec='$libname$release.a $libname.a'
17389 soname_spec='$libname$release$shared_ext$major'
17390 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17391 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17392 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17393 ;;
17394 esac
17395 shlibpath_var=LIBPATH
17396 fi
17397 ;;
17398
17399 amigaos*)
17400 case $host_cpu in
17401 powerpc)
17402 # Since July 2007 AmigaOS4 officially supports .so libraries.
17403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17405 ;;
17406 m68k)
17407 library_names_spec='$libname.ixlibrary $libname.a'
17408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17409 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17410 ;;
17411 esac
17412 ;;
17413
17414 beos*)
17415 library_names_spec='$libname$shared_ext'
17416 dynamic_linker="$host_os ld.so"
17417 shlibpath_var=LIBRARY_PATH
17418 ;;
17419
17420 bsdi[45]*)
17421 version_type=linux # correct to gnu/linux during the next big refactor
17422 need_version=no
17423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424 soname_spec='$libname$release$shared_ext$major'
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17429 # the default ld.so.conf also contains /usr/contrib/lib and
17430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17431 # libtool to hard-code these into programs
17432 ;;
17433
17434 cygwin* | mingw* | pw32* | cegcc*)
17435 version_type=windows
17436 shrext_cmds=.dll
17437 need_version=no
17438 need_lib_prefix=no
17439
17440 case $GCC,$cc_basename in
17441 yes,*)
17442 # gcc
17443 library_names_spec='$libname.dll.a'
17444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17445 postinstall_cmds='base_file=`basename \$file`~
17446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17447 dldir=$destdir/`dirname \$dlpath`~
17448 test -d \$dldir || mkdir -p \$dldir~
17449 $install_prog $dir/$dlname \$dldir/$dlname~
17450 chmod a+x \$dldir/$dlname~
17451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17453 fi'
17454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17455 dlpath=$dir/\$dldll~
17456 $RM \$dlpath'
17457 shlibpath_overrides_runpath=yes
17458
17459 case $host_os in
17460 cygwin*)
17461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17462 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17463
17464 ;;
17465 mingw* | cegcc*)
17466 # MinGW DLLs use traditional 'lib' prefix
17467 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17468 ;;
17469 pw32*)
17470 # pw32 DLLs use 'pw' prefix rather than 'lib'
17471 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17472 ;;
17473 esac
17474 dynamic_linker='Win32 ld.exe'
17475 ;;
17476
17477 *,cl*)
17478 # Native MSVC
17479 libname_spec='$name'
17480 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17481 library_names_spec='$libname.dll.lib'
17482
17483 case $build_os in
17484 mingw*)
17485 sys_lib_search_path_spec=
17486 lt_save_ifs=$IFS
17487 IFS=';'
17488 for lt_path in $LIB
17489 do
17490 IFS=$lt_save_ifs
17491 # Let DOS variable expansion print the short 8.3 style file name.
17492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17494 done
17495 IFS=$lt_save_ifs
17496 # Convert to MSYS style.
17497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17498 ;;
17499 cygwin*)
17500 # Convert to unix form, then to dos form, then back to unix form
17501 # but this time dos style (no spaces!) so that the unix form looks
17502 # like /cygdrive/c/PROGRA~1:/cygdr...
17503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17506 ;;
17507 *)
17508 sys_lib_search_path_spec=$LIB
17509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17510 # It is most probably a Windows format PATH.
17511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17512 else
17513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17514 fi
17515 # FIXME: find the short name or the path components, as spaces are
17516 # common. (e.g. "Program Files" -> "PROGRA~1")
17517 ;;
17518 esac
17519
17520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17521 postinstall_cmds='base_file=`basename \$file`~
17522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17523 dldir=$destdir/`dirname \$dlpath`~
17524 test -d \$dldir || mkdir -p \$dldir~
17525 $install_prog $dir/$dlname \$dldir/$dlname'
17526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17527 dlpath=$dir/\$dldll~
17528 $RM \$dlpath'
17529 shlibpath_overrides_runpath=yes
17530 dynamic_linker='Win32 link.exe'
17531 ;;
17532
17533 *)
17534 # Assume MSVC wrapper
17535 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17536 dynamic_linker='Win32 ld.exe'
17537 ;;
17538 esac
17539 # FIXME: first we should search . and the directory the executable is in
17540 shlibpath_var=PATH
17541 ;;
17542
17543 darwin* | rhapsody*)
17544 dynamic_linker="$host_os dyld"
17545 version_type=darwin
17546 need_lib_prefix=no
17547 need_version=no
17548 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17549 soname_spec='$libname$release$major$shared_ext'
17550 shlibpath_overrides_runpath=yes
17551 shlibpath_var=DYLD_LIBRARY_PATH
17552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17553
17554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17555 ;;
17556
17557 dgux*)
17558 version_type=linux # correct to gnu/linux during the next big refactor
17559 need_lib_prefix=no
17560 need_version=no
17561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17562 soname_spec='$libname$release$shared_ext$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 ;;
17565
17566 freebsd* | dragonfly*)
17567 # DragonFly does not have aout. When/if they implement a new
17568 # versioning mechanism, adjust this.
17569 if test -x /usr/bin/objformat; then
17570 objformat=`/usr/bin/objformat`
17571 else
17572 case $host_os in
17573 freebsd[23].*) objformat=aout ;;
17574 *) objformat=elf ;;
17575 esac
17576 fi
17577 version_type=freebsd-$objformat
17578 case $version_type in
17579 freebsd-elf*)
17580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17581 soname_spec='$libname$release$shared_ext$major'
17582 need_version=no
17583 need_lib_prefix=no
17584 ;;
17585 freebsd-*)
17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17587 need_version=yes
17588 ;;
17589 esac
17590 shlibpath_var=LD_LIBRARY_PATH
17591 case $host_os in
17592 freebsd2.*)
17593 shlibpath_overrides_runpath=yes
17594 ;;
17595 freebsd3.[01]* | freebsdelf3.[01]*)
17596 shlibpath_overrides_runpath=yes
17597 hardcode_into_libs=yes
17598 ;;
17599 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17600 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17603 ;;
17604 *) # from 4.6 on, and DragonFly
17605 shlibpath_overrides_runpath=yes
17606 hardcode_into_libs=yes
17607 ;;
17608 esac
17609 ;;
17610
17611 haiku*)
17612 version_type=linux # correct to gnu/linux during the next big refactor
17613 need_lib_prefix=no
17614 need_version=no
17615 dynamic_linker="$host_os runtime_loader"
17616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617 soname_spec='$libname$release$shared_ext$major'
17618 shlibpath_var=LIBRARY_PATH
17619 shlibpath_overrides_runpath=no
17620 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17621 hardcode_into_libs=yes
17622 ;;
17623
17624 hpux9* | hpux10* | hpux11*)
17625 # Give a soname corresponding to the major version so that dld.sl refuses to
17626 # link against other versions.
17627 version_type=sunos
17628 need_lib_prefix=no
17629 need_version=no
17630 case $host_cpu in
17631 ia64*)
17632 shrext_cmds='.so'
17633 hardcode_into_libs=yes
17634 dynamic_linker="$host_os dld.so"
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638 soname_spec='$libname$release$shared_ext$major'
17639 if test 32 = "$HPUX_IA64_MODE"; then
17640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17641 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17642 else
17643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17644 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17645 fi
17646 ;;
17647 hppa*64*)
17648 shrext_cmds='.sl'
17649 hardcode_into_libs=yes
17650 dynamic_linker="$host_os dld.sl"
17651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654 soname_spec='$libname$release$shared_ext$major'
17655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17657 ;;
17658 *)
17659 shrext_cmds='.sl'
17660 dynamic_linker="$host_os dld.sl"
17661 shlibpath_var=SHLIB_PATH
17662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17664 soname_spec='$libname$release$shared_ext$major'
17665 ;;
17666 esac
17667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17668 postinstall_cmds='chmod 555 $lib'
17669 # or fails outright, so override atomically:
17670 install_override_mode=555
17671 ;;
17672
17673 interix[3-9]*)
17674 version_type=linux # correct to gnu/linux during the next big refactor
17675 need_lib_prefix=no
17676 need_version=no
17677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17678 soname_spec='$libname$release$shared_ext$major'
17679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath=no
17682 hardcode_into_libs=yes
17683 ;;
17684
17685 irix5* | irix6* | nonstopux*)
17686 case $host_os in
17687 nonstopux*) version_type=nonstopux ;;
17688 *)
17689 if test yes = "$lt_cv_prog_gnu_ld"; then
17690 version_type=linux # correct to gnu/linux during the next big refactor
17691 else
17692 version_type=irix
17693 fi ;;
17694 esac
17695 need_lib_prefix=no
17696 need_version=no
17697 soname_spec='$libname$release$shared_ext$major'
17698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17699 case $host_os in
17700 irix5* | nonstopux*)
17701 libsuff= shlibsuff=
17702 ;;
17703 *)
17704 case $LD in # libtool.m4 will add one of these switches to LD
17705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17706 libsuff= shlibsuff= libmagic=32-bit;;
17707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17708 libsuff=32 shlibsuff=N32 libmagic=N32;;
17709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17711 *) libsuff= shlibsuff= libmagic=never-match;;
17712 esac
17713 ;;
17714 esac
17715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17716 shlibpath_overrides_runpath=no
17717 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17718 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17719 hardcode_into_libs=yes
17720 ;;
17721
17722 # No shared lib support for Linux oldld, aout, or coff.
17723 linux*oldld* | linux*aout* | linux*coff*)
17724 dynamic_linker=no
17725 ;;
17726
17727 linux*android*)
17728 version_type=none # Android doesn't support versioned libraries.
17729 need_lib_prefix=no
17730 need_version=no
17731 library_names_spec='$libname$release$shared_ext'
17732 soname_spec='$libname$release$shared_ext'
17733 finish_cmds=
17734 shlibpath_var=LD_LIBRARY_PATH
17735 shlibpath_overrides_runpath=yes
17736
17737 # This implies no fast_install, which is unacceptable.
17738 # Some rework will be needed to allow for fast_install
17739 # before this can be enabled.
17740 hardcode_into_libs=yes
17741
17742 dynamic_linker='Android linker'
17743 # Don't embed -rpath directories since the linker doesn't support them.
17744 hardcode_libdir_flag_spec_CXX='-L$libdir'
17745 ;;
17746
17747 # This must be glibc/ELF.
17748 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17749 version_type=linux # correct to gnu/linux during the next big refactor
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17753 soname_spec='$libname$release$shared_ext$major'
17754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=no
17757
17758 # Some binutils ld are patched to set DT_RUNPATH
17759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761 else
17762 lt_cv_shlibpath_overrides_runpath=no
17763 save_LDFLAGS=$LDFLAGS
17764 save_libdir=$libdir
17765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17769
17770 int
17771 main ()
17772 {
17773
17774 ;
17775 return 0;
17776 }
17777 _ACEOF
17778 if ac_fn_cxx_try_link "$LINENO"; then :
17779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17780 lt_cv_shlibpath_overrides_runpath=yes
17781 fi
17782 fi
17783 rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LDFLAGS=$save_LDFLAGS
17786 libdir=$save_libdir
17787
17788 fi
17789
17790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17791
17792 # This implies no fast_install, which is unacceptable.
17793 # Some rework will be needed to allow for fast_install
17794 # before this can be enabled.
17795 hardcode_into_libs=yes
17796
17797 # Ideally, we could use ldconfig to report *all* directores which are
17798 # searched for libraries, however this is still not possible. Aside from not
17799 # being certain /sbin/ldconfig is available, command
17800 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17801 # even though it is searched at run-time. Try to do the best guess by
17802 # appending ld.so.conf contents (and includes) to the search path.
17803 if test -f /etc/ld.so.conf; then
17804 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' ' '`
17805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17806 fi
17807
17808 # We used to test for /lib/ld.so.1 and disable shared libraries on
17809 # powerpc, because MkLinux only supported shared libraries with the
17810 # GNU dynamic linker. Since this was broken with cross compilers,
17811 # most powerpc-linux boxes support dynamic linking these days and
17812 # people can always --disable-shared, the test was removed, and we
17813 # assume the GNU/Linux dynamic linker is in use.
17814 dynamic_linker='GNU/Linux ld.so'
17815 ;;
17816
17817 netbsd*)
17818 version_type=sunos
17819 need_lib_prefix=no
17820 need_version=no
17821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17824 dynamic_linker='NetBSD (a.out) ld.so'
17825 else
17826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17827 soname_spec='$libname$release$shared_ext$major'
17828 dynamic_linker='NetBSD ld.elf_so'
17829 fi
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17832 hardcode_into_libs=yes
17833 ;;
17834
17835 newsos6)
17836 version_type=linux # correct to gnu/linux during the next big refactor
17837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17838 shlibpath_var=LD_LIBRARY_PATH
17839 shlibpath_overrides_runpath=yes
17840 ;;
17841
17842 *nto* | *qnx*)
17843 version_type=qnx
17844 need_lib_prefix=no
17845 need_version=no
17846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847 soname_spec='$libname$release$shared_ext$major'
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=no
17850 hardcode_into_libs=yes
17851 dynamic_linker='ldqnx.so'
17852 ;;
17853
17854 openbsd* | bitrig*)
17855 version_type=sunos
17856 sys_lib_dlsearch_path_spec=/usr/lib
17857 need_lib_prefix=no
17858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17859 need_version=no
17860 else
17861 need_version=yes
17862 fi
17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17865 shlibpath_var=LD_LIBRARY_PATH
17866 shlibpath_overrides_runpath=yes
17867 ;;
17868
17869 os2*)
17870 libname_spec='$name'
17871 version_type=windows
17872 shrext_cmds=.dll
17873 need_version=no
17874 need_lib_prefix=no
17875 # OS/2 can only load a DLL with a base name of 8 characters or less.
17876 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17877 v=$($ECHO $release$versuffix | tr -d .-);
17878 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17879 $ECHO $n$v`$shared_ext'
17880 library_names_spec='${libname}_dll.$libext'
17881 dynamic_linker='OS/2 ld.exe'
17882 shlibpath_var=BEGINLIBPATH
17883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17885 postinstall_cmds='base_file=`basename \$file`~
17886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17887 dldir=$destdir/`dirname \$dlpath`~
17888 test -d \$dldir || mkdir -p \$dldir~
17889 $install_prog $dir/$dlname \$dldir/$dlname~
17890 chmod a+x \$dldir/$dlname~
17891 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17892 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17893 fi'
17894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17895 dlpath=$dir/\$dldll~
17896 $RM \$dlpath'
17897 ;;
17898
17899 osf3* | osf4* | osf5*)
17900 version_type=osf
17901 need_lib_prefix=no
17902 need_version=no
17903 soname_spec='$libname$release$shared_ext$major'
17904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17908 ;;
17909
17910 rdos*)
17911 dynamic_linker=no
17912 ;;
17913
17914 solaris*)
17915 version_type=linux # correct to gnu/linux during the next big refactor
17916 need_lib_prefix=no
17917 need_version=no
17918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17919 soname_spec='$libname$release$shared_ext$major'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath=yes
17922 hardcode_into_libs=yes
17923 # ldd complains unless libraries are executable
17924 postinstall_cmds='chmod +x $lib'
17925 ;;
17926
17927 sunos4*)
17928 version_type=sunos
17929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 shlibpath_overrides_runpath=yes
17933 if test yes = "$with_gnu_ld"; then
17934 need_lib_prefix=no
17935 fi
17936 need_version=yes
17937 ;;
17938
17939 sysv4 | sysv4.3*)
17940 version_type=linux # correct to gnu/linux during the next big refactor
17941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17942 soname_spec='$libname$release$shared_ext$major'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 case $host_vendor in
17945 sni)
17946 shlibpath_overrides_runpath=no
17947 need_lib_prefix=no
17948 runpath_var=LD_RUN_PATH
17949 ;;
17950 siemens)
17951 need_lib_prefix=no
17952 ;;
17953 motorola)
17954 need_lib_prefix=no
17955 need_version=no
17956 shlibpath_overrides_runpath=no
17957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17958 ;;
17959 esac
17960 ;;
17961
17962 sysv4*MP*)
17963 if test -d /usr/nec; then
17964 version_type=linux # correct to gnu/linux during the next big refactor
17965 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17966 soname_spec='$libname$shared_ext.$major'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 fi
17969 ;;
17970
17971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17972 version_type=sco
17973 need_lib_prefix=no
17974 need_version=no
17975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17976 soname_spec='$libname$release$shared_ext$major'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes
17979 hardcode_into_libs=yes
17980 if test yes = "$with_gnu_ld"; then
17981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17982 else
17983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17984 case $host_os in
17985 sco3.2v5*)
17986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17987 ;;
17988 esac
17989 fi
17990 sys_lib_dlsearch_path_spec='/usr/lib'
17991 ;;
17992
17993 tpf*)
17994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17995 version_type=linux # correct to gnu/linux during the next big refactor
17996 need_lib_prefix=no
17997 need_version=no
17998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=no
18001 hardcode_into_libs=yes
18002 ;;
18003
18004 uts4*)
18005 version_type=linux # correct to gnu/linux during the next big refactor
18006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18007 soname_spec='$libname$release$shared_ext$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 ;;
18010
18011 *)
18012 dynamic_linker=no
18013 ;;
18014 esac
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18016 $as_echo "$dynamic_linker" >&6; }
18017 test no = "$dynamic_linker" && can_build_shared=no
18018
18019 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18020 if test yes = "$GCC"; then
18021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18022 fi
18023
18024 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18025 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18026 fi
18027
18028 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18029 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18030 fi
18031
18032 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18033 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18034
18035 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18036 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18037
18038 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18039 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18081 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18082 hardcode_action_CXX=
18083 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18084 test -n "$runpath_var_CXX" ||
18085 test yes = "$hardcode_automatic_CXX"; then
18086
18087 # We can hardcode non-existent directories.
18088 if test no != "$hardcode_direct_CXX" &&
18089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090 # have to relink, otherwise we might link with an installed library
18091 # when we should be linking with a yet-to-be-installed one
18092 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18093 test no != "$hardcode_minus_L_CXX"; then
18094 # Linking always hardcodes the temporary library directory.
18095 hardcode_action_CXX=relink
18096 else
18097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098 hardcode_action_CXX=immediate
18099 fi
18100 else
18101 # We cannot hardcode anything, or else we can only hardcode existing
18102 # directories.
18103 hardcode_action_CXX=unsupported
18104 fi
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18106 $as_echo "$hardcode_action_CXX" >&6; }
18107
18108 if test relink = "$hardcode_action_CXX" ||
18109 test yes = "$inherit_rpath_CXX"; then
18110 # Fast installation is not supported
18111 enable_fast_install=no
18112 elif test yes = "$shlibpath_overrides_runpath" ||
18113 test no = "$enable_shared"; then
18114 # Fast installation is not necessary
18115 enable_fast_install=needless
18116 fi
18117
18118
18119
18120
18121
18122
18123
18124 fi # test -n "$compiler"
18125
18126 CC=$lt_save_CC
18127 CFLAGS=$lt_save_CFLAGS
18128 LDCXX=$LD
18129 LD=$lt_save_LD
18130 GCC=$lt_save_GCC
18131 with_gnu_ld=$lt_save_with_gnu_ld
18132 lt_cv_path_LDCXX=$lt_cv_path_LD
18133 lt_cv_path_LD=$lt_save_path_LD
18134 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18135 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18136 fi # test yes != "$_lt_caught_CXX_error"
18137
18138 ac_ext=c
18139 ac_cpp='$CPP $CPPFLAGS'
18140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158 ac_config_commands="$ac_config_commands libtool"
18159
18160
18161
18162
18163 # Only expand once:
18164
18165
18166
18167 ac_ext=cpp
18168 ac_cpp='$CXXCPP $CPPFLAGS'
18169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18172
18173
18174 ax_cxx_compile_cxx11_required=true
18175 ac_ext=cpp
18176 ac_cpp='$CXXCPP $CPPFLAGS'
18177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18180 ac_success=no
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18182 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18183 if ${ax_cv_cxx_compile_cxx11+:} false; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188
18189 template <typename T>
18190 struct check
18191 {
18192 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18193 };
18194
18195 struct Base {
18196 virtual void f() {}
18197 };
18198 struct Child : public Base {
18199 virtual void f() override {}
18200 };
18201
18202 typedef check<check<bool>> right_angle_brackets;
18203
18204 int a;
18205 decltype(a) b;
18206
18207 typedef check<int> check_type;
18208 check_type c;
18209 check_type&& cr = static_cast<check_type&&>(c);
18210
18211 auto d = a;
18212 auto l = [](){};
18213
18214 _ACEOF
18215 if ac_fn_cxx_try_compile "$LINENO"; then :
18216 ax_cv_cxx_compile_cxx11=yes
18217 else
18218 ax_cv_cxx_compile_cxx11=no
18219 fi
18220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221 fi
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18223 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18224 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18225 ac_success=yes
18226 fi
18227
18228 if test x$ac_success = xno; then
18229 for switch in -std=gnu++11 -std=gnu++0x; do
18230 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18232 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18233 if eval \${$cachevar+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 ac_save_CXXFLAGS="$CXXFLAGS"
18237 CXXFLAGS="$CXXFLAGS $switch"
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240
18241 template <typename T>
18242 struct check
18243 {
18244 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18245 };
18246
18247 struct Base {
18248 virtual void f() {}
18249 };
18250 struct Child : public Base {
18251 virtual void f() override {}
18252 };
18253
18254 typedef check<check<bool>> right_angle_brackets;
18255
18256 int a;
18257 decltype(a) b;
18258
18259 typedef check<int> check_type;
18260 check_type c;
18261 check_type&& cr = static_cast<check_type&&>(c);
18262
18263 auto d = a;
18264 auto l = [](){};
18265
18266 _ACEOF
18267 if ac_fn_cxx_try_compile "$LINENO"; then :
18268 eval $cachevar=yes
18269 else
18270 eval $cachevar=no
18271 fi
18272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273 CXXFLAGS="$ac_save_CXXFLAGS"
18274 fi
18275 eval ac_res=\$$cachevar
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18277 $as_echo "$ac_res" >&6; }
18278 if eval test x\$$cachevar = xyes; then
18279 CXXFLAGS="$CXXFLAGS $switch"
18280 ac_success=yes
18281 break
18282 fi
18283 done
18284 fi
18285
18286
18287 ac_ext=cpp
18288 ac_cpp='$CXXCPP $CPPFLAGS'
18289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18292
18293 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18294 if test x$ac_success = xno; then
18295 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18296 fi
18297 else
18298 if test x$ac_success = xno; then
18299 HAVE_CXX11=0
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18301 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18302 else
18303 HAVE_CXX11=1
18304
18305 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18306
18307 fi
18308
18309
18310 fi
18311
18312 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18313
18314
18315
18316
18317
18318
18319
18320
18321 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18322 if test -n "$ac_tool_prefix"; then
18323 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18324 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18326 $as_echo_n "checking for $ac_word... " >&6; }
18327 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18328 $as_echo_n "(cached) " >&6
18329 else
18330 case $PKG_CONFIG in
18331 [\\/]* | ?:[\\/]*)
18332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18333 ;;
18334 *)
18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336 for as_dir in $PATH
18337 do
18338 IFS=$as_save_IFS
18339 test -z "$as_dir" && as_dir=.
18340 for ac_exec_ext in '' $ac_executable_extensions; do
18341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18344 break 2
18345 fi
18346 done
18347 done
18348 IFS=$as_save_IFS
18349
18350 ;;
18351 esac
18352 fi
18353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18354 if test -n "$PKG_CONFIG"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18356 $as_echo "$PKG_CONFIG" >&6; }
18357 else
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359 $as_echo "no" >&6; }
18360 fi
18361
18362
18363 fi
18364 if test -z "$ac_cv_path_PKG_CONFIG"; then
18365 ac_pt_PKG_CONFIG=$PKG_CONFIG
18366 # Extract the first word of "pkg-config", so it can be a program name with args.
18367 set dummy pkg-config; ac_word=$2
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18369 $as_echo_n "checking for $ac_word... " >&6; }
18370 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 case $ac_pt_PKG_CONFIG in
18374 [\\/]* | ?:[\\/]*)
18375 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18376 ;;
18377 *)
18378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379 for as_dir in $PATH
18380 do
18381 IFS=$as_save_IFS
18382 test -z "$as_dir" && as_dir=.
18383 for ac_exec_ext in '' $ac_executable_extensions; do
18384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18387 break 2
18388 fi
18389 done
18390 done
18391 IFS=$as_save_IFS
18392
18393 ;;
18394 esac
18395 fi
18396 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18397 if test -n "$ac_pt_PKG_CONFIG"; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18399 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18400 else
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18403 fi
18404
18405 if test "x$ac_pt_PKG_CONFIG" = x; then
18406 PKG_CONFIG=""
18407 else
18408 case $cross_compiling:$ac_tool_warned in
18409 yes:)
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18412 ac_tool_warned=yes ;;
18413 esac
18414 PKG_CONFIG=$ac_pt_PKG_CONFIG
18415 fi
18416 else
18417 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18418 fi
18419
18420 fi
18421 if test -n "$PKG_CONFIG"; then
18422 _pkg_min_version=0.22
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18424 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18425 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18427 $as_echo "yes" >&6; }
18428 else
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18430 $as_echo "no" >&6; }
18431 PKG_CONFIG=""
18432 fi
18433 fi
18434
18435 # Extract the first word of "git", so it can be a program name with args.
18436 set dummy git; ac_word=$2
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18438 $as_echo_n "checking for $ac_word... " >&6; }
18439 if ${ac_cv_path_GIT+:} false; then :
18440 $as_echo_n "(cached) " >&6
18441 else
18442 case $GIT in
18443 [\\/]* | ?:[\\/]*)
18444 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18445 ;;
18446 *)
18447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18448 for as_dir in $PATH
18449 do
18450 IFS=$as_save_IFS
18451 test -z "$as_dir" && as_dir=.
18452 for ac_exec_ext in '' $ac_executable_extensions; do
18453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18454 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18456 break 2
18457 fi
18458 done
18459 done
18460 IFS=$as_save_IFS
18461
18462 ;;
18463 esac
18464 fi
18465 GIT=$ac_cv_path_GIT
18466 if test -n "$GIT"; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18468 $as_echo "$GIT" >&6; }
18469 else
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471 $as_echo "no" >&6; }
18472 fi
18473
18474
18475 # Extract the first word of "time", so it can be a program name with args.
18476 set dummy time; ac_word=$2
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18478 $as_echo_n "checking for $ac_word... " >&6; }
18479 if ${ac_cv_path_TIME+:} false; then :
18480 $as_echo_n "(cached) " >&6
18481 else
18482 case $TIME in
18483 [\\/]* | ?:[\\/]*)
18484 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18485 ;;
18486 *)
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488 for as_dir in $PATH
18489 do
18490 IFS=$as_save_IFS
18491 test -z "$as_dir" && as_dir=.
18492 for ac_exec_ext in '' $ac_executable_extensions; do
18493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18494 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18496 break 2
18497 fi
18498 done
18499 done
18500 IFS=$as_save_IFS
18501
18502 ;;
18503 esac
18504 fi
18505 TIME=$ac_cv_path_TIME
18506 if test -n "$TIME"; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18508 $as_echo "$TIME" >&6; }
18509 else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511 $as_echo "no" >&6; }
18512 fi
18513
18514
18515
18516
18517
18518
18519
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18521 $as_echo_n "checking for bison >= 3.0... " >&6; }
18522 if test -z "$BISON"; then
18523 ac_path_BISON_found=false
18524 # Loop through the user's path and test for each of PROGNAME-LIST
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526 for as_dir in $PATH
18527 do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_prog in bison; do
18531 for ac_exec_ext in '' $ac_executable_extensions; do
18532 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18533 as_fn_executable_p "$ac_path_BISON" || continue
18534 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18535 if ${version:+false} :; then :
18536
18537 else
18538 as_awk_strverscmp='
18539 # Use only awk features that work with 7th edition Unix awk (1978).
18540 # My, what an old awk you have, Mr. Solaris!
18541 END {
18542 while (length(v1) && length(v2)) {
18543 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18544 # Normally this is a single character, but if v1 and v2 contain digits,
18545 # compare them as integers and fractions as strverscmp does.
18546 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18547 # Split v1 and v2 into their leading digit string components d1 and d2,
18548 # and advance v1 and v2 past the leading digit strings.
18549 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18550 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18551 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18552 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18553 if (d1 ~ /^0/) {
18554 if (d2 ~ /^0/) {
18555 # Compare two fractions.
18556 while (d1 ~ /^0/ && d2 ~ /^0/) {
18557 d1 = substr(d1, 2); len1--
18558 d2 = substr(d2, 2); len2--
18559 }
18560 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18561 # The two components differ in length, and the common prefix
18562 # contains only leading zeros. Consider the longer to be less.
18563 d1 = -len1
18564 d2 = -len2
18565 } else {
18566 # Otherwise, compare as strings.
18567 d1 = "x" d1
18568 d2 = "x" d2
18569 }
18570 } else {
18571 # A fraction is less than an integer.
18572 exit 1
18573 }
18574 } else {
18575 if (d2 ~ /^0/) {
18576 # An integer is greater than a fraction.
18577 exit 2
18578 } else {
18579 # Compare two integers.
18580 d1 += 0
18581 d2 += 0
18582 }
18583 }
18584 } else {
18585 # The normal case, without worrying about digits.
18586 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18587 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18588 }
18589 if (d1 < d2) exit 1
18590 if (d1 > d2) exit 2
18591 }
18592 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18593 # which mishandles some comparisons of empty strings to integers.
18594 if (length(v2)) exit 1
18595 if (length(v1)) exit 2
18596 }
18597 '
18598 as_arg_v1=$version
18599 as_arg_v2=3.0
18600 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18601 case $? in #(
18602 1) :
18603 ;; #(
18604 0) :
18605 ac_cv_path_BISON=$ac_path_BISON ;; #(
18606 2) :
18607 ac_cv_path_BISON=$ac_path_BISON ;; #(
18608 *) :
18609 ;;
18610 esac
18611 fi
18612
18613 $ac_path_BISON_found && break 3
18614 done
18615 done
18616 done
18617 IFS=$as_save_IFS
18618 if test -z "$ac_cv_path_BISON"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620 $as_echo "no" >&6; }
18621 fi
18622 else
18623 ac_cv_path_BISON=$BISON
18624 fi
18625
18626
18627 if true; then :
18628
18629 BISON=$ac_cv_path_BISON
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18632 $as_echo "$BISON" >&6; }
18633
18634 else
18635 if true; then :
18636
18637 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
18638
18639 else
18640
18641 BISON=:
18642
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645
18646 fi
18647 fi
18648
18649
18650
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18653 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
18654 if test -z "$FLEX"; then
18655 ac_path_FLEX_found=false
18656 # Loop through the user's path and test for each of PROGNAME-LIST
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658 for as_dir in $PATH
18659 do
18660 IFS=$as_save_IFS
18661 test -z "$as_dir" && as_dir=.
18662 for ac_prog in flex; do
18663 for ac_exec_ext in '' $ac_executable_extensions; do
18664 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18665 as_fn_executable_p "$ac_path_FLEX" || continue
18666 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18667 if ${version:+false} :; then :
18668
18669 else
18670 as_arg_v1=$version
18671 as_arg_v2=2.5.33
18672 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18673 case $? in #(
18674 1) :
18675 ;; #(
18676 0) :
18677 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18678 2) :
18679 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18680 *) :
18681 ;;
18682 esac
18683 fi
18684
18685 $ac_path_FLEX_found && break 3
18686 done
18687 done
18688 done
18689 IFS=$as_save_IFS
18690 if test -z "$ac_cv_path_FLEX"; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693 fi
18694 else
18695 ac_cv_path_FLEX=$FLEX
18696 fi
18697
18698
18699 if true; then :
18700
18701 FLEX=$ac_cv_path_FLEX
18702
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18704 $as_echo "$FLEX" >&6; }
18705
18706 else
18707 if true; then :
18708
18709 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
18710
18711 else
18712
18713 FLEX=:
18714
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717
18718 fi
18719 fi
18720
18721
18722
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18725 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18726 if test -z "$GPERF"; then
18727 ac_path_GPERF_found=false
18728 # Loop through the user's path and test for each of PROGNAME-LIST
18729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18730 for as_dir in $PATH
18731 do
18732 IFS=$as_save_IFS
18733 test -z "$as_dir" && as_dir=.
18734 for ac_prog in gperf; do
18735 for ac_exec_ext in '' $ac_executable_extensions; do
18736 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18737 as_fn_executable_p "$ac_path_GPERF" || continue
18738 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18739 if ${version:+false} :; then :
18740
18741 else
18742 as_arg_v1=$version
18743 as_arg_v2=3.0.3
18744 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18745 case $? in #(
18746 1) :
18747 ;; #(
18748 0) :
18749 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18750 2) :
18751 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18752 *) :
18753 ;;
18754 esac
18755 fi
18756
18757 $ac_path_GPERF_found && break 3
18758 done
18759 done
18760 done
18761 IFS=$as_save_IFS
18762 if test -z "$ac_cv_path_GPERF"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18765 fi
18766 else
18767 ac_cv_path_GPERF=$GPERF
18768 fi
18769
18770
18771 if true; then :
18772
18773 GPERF=$ac_cv_path_GPERF
18774
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18776 $as_echo "$GPERF" >&6; }
18777
18778 else
18779 if true; then :
18780
18781 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18782
18783 else
18784
18785 GPERF=:
18786
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788 $as_echo "no" >&6; }
18789
18790 fi
18791 fi
18792
18793
18794
18795
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18797 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18798 if test -z "$GNUTAR"; then
18799 ac_path_GNUTAR_found=false
18800 # Loop through the user's path and test for each of PROGNAME-LIST
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802 for as_dir in $PATH
18803 do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_prog in tar gtar gnutar; do
18807 for ac_exec_ext in '' $ac_executable_extensions; do
18808 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18809 as_fn_executable_p "$ac_path_GNUTAR" || continue
18810 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18811 if ${version:+false} :; then :
18812
18813 else
18814 as_arg_v1=$version
18815 as_arg_v2=1.19
18816 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18817 case $? in #(
18818 1) :
18819 ;; #(
18820 0) :
18821 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18822 2) :
18823 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18824 *) :
18825 ;;
18826 esac
18827 fi
18828
18829 $ac_path_GNUTAR_found && break 3
18830 done
18831 done
18832 done
18833 IFS=$as_save_IFS
18834 if test -z "$ac_cv_path_GNUTAR"; then
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 $as_echo "no" >&6; }
18837 fi
18838 else
18839 ac_cv_path_GNUTAR=$GNUTAR
18840 fi
18841
18842
18843 if true; then :
18844
18845 GNUTAR=$ac_cv_path_GNUTAR
18846
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18848 $as_echo "$GNUTAR" >&6; }
18849
18850 else
18851 if true; then :
18852
18853 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
18854
18855 else
18856
18857 GNUTAR=:
18858
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860 $as_echo "no" >&6; }
18861
18862 fi
18863 fi
18864
18865
18866
18867
18868
18869
18870
18871 if test "x$LFLAGS" = x; then :
18872 LFLAGS="--full --ecs"
18873 fi
18874
18875
18876
18877
18878
18879 ac_ext=c
18880 ac_cpp='$CPP $CPPFLAGS'
18881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18884
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18886 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18887 if ${ac_cv_cflags_warn_all+:} false; then :
18888 $as_echo_n "(cached) " >&6
18889 else
18890 ac_cv_cflags_warn_all="no, unknown"
18891 ac_save_CFLAGS="$CFLAGS"
18892 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" #
18893 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895 /* end confdefs.h. */
18896
18897 int
18898 main ()
18899 {
18900
18901 ;
18902 return 0;
18903 }
18904 _ACEOF
18905 if ac_fn_c_try_compile "$LINENO"; then :
18906 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18907 fi
18908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18909 done
18910 CFLAGS="$ac_save_CFLAGS"
18911
18912 fi
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18914 $as_echo "$ac_cv_cflags_warn_all" >&6; }
18915
18916
18917 case ".$ac_cv_cflags_warn_all" in
18918 .ok|.ok,*) ;;
18919 .|.no|.no,*) ;;
18920 *) if ${CFLAGS+:} false; then :
18921 case " $CFLAGS " in
18922 *" $ac_cv_cflags_warn_all "*)
18923 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18924 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18925 ac_status=$?
18926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927 test $ac_status = 0; }
18928 ;;
18929 *)
18930 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18931 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18932 ac_status=$?
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; }
18935 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18936 ;;
18937 esac
18938 else
18939 CFLAGS="$ac_cv_cflags_warn_all"
18940 fi
18941 ;;
18942 esac
18943
18944 ac_ext=cpp
18945 ac_cpp='$CXXCPP $CPPFLAGS'
18946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18949
18950
18951 ac_ext=cpp
18952 ac_cpp='$CXXCPP $CPPFLAGS'
18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18958 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18959 if ${ac_cv_cxxflags_warn_all+:} false; then :
18960 $as_echo_n "(cached) " >&6
18961 else
18962 ac_cv_cxxflags_warn_all="no, unknown"
18963 ac_save_CXXFLAGS="$CXXFLAGS"
18964 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" #
18965 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18968
18969 int
18970 main ()
18971 {
18972
18973 ;
18974 return 0;
18975 }
18976 _ACEOF
18977 if ac_fn_cxx_try_compile "$LINENO"; then :
18978 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18979 fi
18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 done
18982 CXXFLAGS="$ac_save_CXXFLAGS"
18983
18984 fi
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
18986 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
18987
18988
18989 case ".$ac_cv_cxxflags_warn_all" in
18990 .ok|.ok,*) ;;
18991 .|.no|.no,*) ;;
18992 *) if ${CXXFLAGS+:} false; then :
18993 case " $CXXFLAGS " in
18994 *" $ac_cv_cxxflags_warn_all "*)
18995 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
18996 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
18997 ac_status=$?
18998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18999 test $ac_status = 0; }
19000 ;;
19001 *)
19002 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19003 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19004 ac_status=$?
19005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19006 test $ac_status = 0; }
19007 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19008 ;;
19009 esac
19010 else
19011 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19012 fi
19013 ;;
19014 esac
19015
19016 ac_ext=cpp
19017 ac_cpp='$CXXCPP $CPPFLAGS'
19018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19021
19022
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19024 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19025 if ${ac_cv_cxxflags_warn_all+:} false; then :
19026 $as_echo_n "(cached) " >&6
19027 else
19028 ac_cv_cxxflags_warn_all="no, unknown"
19029 ac_save_CXXFLAGS="$CXXFLAGS"
19030 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" #
19031 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19034
19035 int
19036 main ()
19037 {
19038
19039 ;
19040 return 0;
19041 }
19042 _ACEOF
19043 if ac_fn_cxx_try_compile "$LINENO"; then :
19044 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19047 done
19048 CXXFLAGS="$ac_save_CXXFLAGS"
19049
19050 fi
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19052 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19053
19054
19055 case ".$ac_cv_cxxflags_warn_all" in
19056 .ok|.ok,*) ;;
19057 .|.no|.no,*) ;;
19058 *) if ${CXXFLAGS+:} false; then :
19059 case " $CXXFLAGS " in
19060 *" $ac_cv_cxxflags_warn_all "*)
19061 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19062 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19063 ac_status=$?
19064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19065 test $ac_status = 0; }
19066 ;;
19067 *)
19068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19069 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19070 ac_status=$?
19071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19072 test $ac_status = 0; }
19073 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19074 ;;
19075 esac
19076 else
19077 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19078 fi
19079 ;;
19080 esac
19081
19082
19083
19084
19085
19086 ac_ext=c
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19093 $as_echo_n "checking for cc -Werror... " >&6; }
19094
19095 cy_save=$CFLAGS
19096
19097 for element in -Werror; do
19098 haveit=
19099 for x in $CFLAGS; do
19100
19101 acl_save_prefix="$prefix"
19102 prefix="$acl_final_prefix"
19103 acl_save_exec_prefix="$exec_prefix"
19104 exec_prefix="$acl_final_exec_prefix"
19105 eval x=\"$x\"
19106 exec_prefix="$acl_save_exec_prefix"
19107 prefix="$acl_save_prefix"
19108
19109 if test "X$x" = "X$element"; then
19110 haveit=yes
19111 break
19112 fi
19113 done
19114 if test -z "$haveit"; then
19115 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19116 fi
19117 done
19118
19119
19120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19121 /* end confdefs.h. */
19122
19123 _ACEOF
19124 if ac_fn_c_try_compile "$LINENO"; then :
19125 cy_good=1
19126 else
19127 cy_good=0
19128 fi
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130
19131 CFLAGS=$cy_save
19132 if test "x$cy_good" = x1; then :
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19134 $as_echo "yes" >&6; }
19135
19136 for element in -Werror; do
19137 haveit=
19138 for x in $CFLAGS; do
19139
19140 acl_save_prefix="$prefix"
19141 prefix="$acl_final_prefix"
19142 acl_save_exec_prefix="$exec_prefix"
19143 exec_prefix="$acl_final_exec_prefix"
19144 eval x=\"$x\"
19145 exec_prefix="$acl_save_exec_prefix"
19146 prefix="$acl_save_prefix"
19147
19148 if test "X$x" = "X$element"; then
19149 haveit=yes
19150 break
19151 fi
19152 done
19153 if test -z "$haveit"; then
19154 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19155 fi
19156 done
19157
19158
19159 else
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 $as_echo "no" >&6; }
19162 fi
19163
19164 ac_ext=cpp
19165 ac_cpp='$CXXCPP $CPPFLAGS'
19166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19169
19170
19171
19172 ac_ext=cpp
19173 ac_cpp='$CXXCPP $CPPFLAGS'
19174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19177
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19179 $as_echo_n "checking for c++ -Werror... " >&6; }
19180
19181 cy_save=$CXXFLAGS
19182
19183 for element in -Werror; do
19184 haveit=
19185 for x in $CXXFLAGS; do
19186
19187 acl_save_prefix="$prefix"
19188 prefix="$acl_final_prefix"
19189 acl_save_exec_prefix="$exec_prefix"
19190 exec_prefix="$acl_final_exec_prefix"
19191 eval x=\"$x\"
19192 exec_prefix="$acl_save_exec_prefix"
19193 prefix="$acl_save_prefix"
19194
19195 if test "X$x" = "X$element"; then
19196 haveit=yes
19197 break
19198 fi
19199 done
19200 if test -z "$haveit"; then
19201 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19202 fi
19203 done
19204
19205
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208
19209 _ACEOF
19210 if ac_fn_cxx_try_compile "$LINENO"; then :
19211 cy_good=1
19212 else
19213 cy_good=0
19214 fi
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216
19217 CXXFLAGS=$cy_save
19218 if test "x$cy_good" = x1; then :
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220 $as_echo "yes" >&6; }
19221
19222 for element in -Werror; do
19223 haveit=
19224 for x in $CXXFLAGS; do
19225
19226 acl_save_prefix="$prefix"
19227 prefix="$acl_final_prefix"
19228 acl_save_exec_prefix="$exec_prefix"
19229 exec_prefix="$acl_final_exec_prefix"
19230 eval x=\"$x\"
19231 exec_prefix="$acl_save_exec_prefix"
19232 prefix="$acl_save_prefix"
19233
19234 if test "X$x" = "X$element"; then
19235 haveit=yes
19236 break
19237 fi
19238 done
19239 if test -z "$haveit"; then
19240 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19241 fi
19242 done
19243
19244
19245 else
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19247 $as_echo "no" >&6; }
19248 fi
19249
19250 ac_ext=cpp
19251 ac_cpp='$CXXCPP $CPPFLAGS'
19252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255
19256
19257
19258 ac_ext=mm
19259 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19260 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19261 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19262 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19263
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19265 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
19266
19267 cy_save=$OBJCXXFLAGS
19268
19269 for element in -Werror; do
19270 haveit=
19271 for x in $OBJCXXFLAGS; do
19272
19273 acl_save_prefix="$prefix"
19274 prefix="$acl_final_prefix"
19275 acl_save_exec_prefix="$exec_prefix"
19276 exec_prefix="$acl_final_exec_prefix"
19277 eval x=\"$x\"
19278 exec_prefix="$acl_save_exec_prefix"
19279 prefix="$acl_save_prefix"
19280
19281 if test "X$x" = "X$element"; then
19282 haveit=yes
19283 break
19284 fi
19285 done
19286 if test -z "$haveit"; then
19287 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19288 fi
19289 done
19290
19291
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19294
19295 _ACEOF
19296 if ac_fn_objcxx_try_compile "$LINENO"; then :
19297 cy_good=1
19298 else
19299 cy_good=0
19300 fi
19301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302
19303 OBJCXXFLAGS=$cy_save
19304 if test "x$cy_good" = x1; then :
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19306 $as_echo "yes" >&6; }
19307
19308 for element in -Werror; do
19309 haveit=
19310 for x in $OBJCXXFLAGS; do
19311
19312 acl_save_prefix="$prefix"
19313 prefix="$acl_final_prefix"
19314 acl_save_exec_prefix="$exec_prefix"
19315 exec_prefix="$acl_final_exec_prefix"
19316 eval x=\"$x\"
19317 exec_prefix="$acl_save_exec_prefix"
19318 prefix="$acl_save_prefix"
19319
19320 if test "X$x" = "X$element"; then
19321 haveit=yes
19322 break
19323 fi
19324 done
19325 if test -z "$haveit"; then
19326 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19327 fi
19328 done
19329
19330
19331 else
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 $as_echo "no" >&6; }
19334 fi
19335
19336 ac_ext=cpp
19337 ac_cpp='$CXXCPP $CPPFLAGS'
19338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19341
19342
19343
19344
19345
19346
19347 ac_ext=c
19348 ac_cpp='$CPP $CPPFLAGS'
19349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19354 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
19355
19356 cy_save=$CFLAGS
19357
19358 for element in -Wno-deprecated-declarations; do
19359 haveit=
19360 for x in $CFLAGS; do
19361
19362 acl_save_prefix="$prefix"
19363 prefix="$acl_final_prefix"
19364 acl_save_exec_prefix="$exec_prefix"
19365 exec_prefix="$acl_final_exec_prefix"
19366 eval x=\"$x\"
19367 exec_prefix="$acl_save_exec_prefix"
19368 prefix="$acl_save_prefix"
19369
19370 if test "X$x" = "X$element"; then
19371 haveit=yes
19372 break
19373 fi
19374 done
19375 if test -z "$haveit"; then
19376 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19377 fi
19378 done
19379
19380
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19383
19384 _ACEOF
19385 if ac_fn_c_try_compile "$LINENO"; then :
19386 cy_good=1
19387 else
19388 cy_good=0
19389 fi
19390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391
19392 CFLAGS=$cy_save
19393 if test "x$cy_good" = x1; then :
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395 $as_echo "yes" >&6; }
19396
19397 for element in -Wno-deprecated-declarations; do
19398 haveit=
19399 for x in $CFLAGS; do
19400
19401 acl_save_prefix="$prefix"
19402 prefix="$acl_final_prefix"
19403 acl_save_exec_prefix="$exec_prefix"
19404 exec_prefix="$acl_final_exec_prefix"
19405 eval x=\"$x\"
19406 exec_prefix="$acl_save_exec_prefix"
19407 prefix="$acl_save_prefix"
19408
19409 if test "X$x" = "X$element"; then
19410 haveit=yes
19411 break
19412 fi
19413 done
19414 if test -z "$haveit"; then
19415 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19416 fi
19417 done
19418
19419
19420 else
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422 $as_echo "no" >&6; }
19423 fi
19424
19425 ac_ext=cpp
19426 ac_cpp='$CXXCPP $CPPFLAGS'
19427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430
19431
19432
19433 ac_ext=cpp
19434 ac_cpp='$CXXCPP $CPPFLAGS'
19435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19438
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19440 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
19441
19442 cy_save=$CXXFLAGS
19443
19444 for element in -Wno-deprecated-declarations; do
19445 haveit=
19446 for x in $CXXFLAGS; do
19447
19448 acl_save_prefix="$prefix"
19449 prefix="$acl_final_prefix"
19450 acl_save_exec_prefix="$exec_prefix"
19451 exec_prefix="$acl_final_exec_prefix"
19452 eval x=\"$x\"
19453 exec_prefix="$acl_save_exec_prefix"
19454 prefix="$acl_save_prefix"
19455
19456 if test "X$x" = "X$element"; then
19457 haveit=yes
19458 break
19459 fi
19460 done
19461 if test -z "$haveit"; then
19462 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19463 fi
19464 done
19465
19466
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h. */
19469
19470 _ACEOF
19471 if ac_fn_cxx_try_compile "$LINENO"; then :
19472 cy_good=1
19473 else
19474 cy_good=0
19475 fi
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477
19478 CXXFLAGS=$cy_save
19479 if test "x$cy_good" = x1; then :
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481 $as_echo "yes" >&6; }
19482
19483 for element in -Wno-deprecated-declarations; do
19484 haveit=
19485 for x in $CXXFLAGS; do
19486
19487 acl_save_prefix="$prefix"
19488 prefix="$acl_final_prefix"
19489 acl_save_exec_prefix="$exec_prefix"
19490 exec_prefix="$acl_final_exec_prefix"
19491 eval x=\"$x\"
19492 exec_prefix="$acl_save_exec_prefix"
19493 prefix="$acl_save_prefix"
19494
19495 if test "X$x" = "X$element"; then
19496 haveit=yes
19497 break
19498 fi
19499 done
19500 if test -z "$haveit"; then
19501 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19502 fi
19503 done
19504
19505
19506 else
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19508 $as_echo "no" >&6; }
19509 fi
19510
19511 ac_ext=cpp
19512 ac_cpp='$CXXCPP $CPPFLAGS'
19513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516
19517
19518
19519 ac_ext=mm
19520 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19521 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19526 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
19527
19528 cy_save=$OBJCXXFLAGS
19529
19530 for element in -Wno-deprecated-declarations; do
19531 haveit=
19532 for x in $OBJCXXFLAGS; do
19533
19534 acl_save_prefix="$prefix"
19535 prefix="$acl_final_prefix"
19536 acl_save_exec_prefix="$exec_prefix"
19537 exec_prefix="$acl_final_exec_prefix"
19538 eval x=\"$x\"
19539 exec_prefix="$acl_save_exec_prefix"
19540 prefix="$acl_save_prefix"
19541
19542 if test "X$x" = "X$element"; then
19543 haveit=yes
19544 break
19545 fi
19546 done
19547 if test -z "$haveit"; then
19548 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19549 fi
19550 done
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554 /* end confdefs.h. */
19555
19556 _ACEOF
19557 if ac_fn_objcxx_try_compile "$LINENO"; then :
19558 cy_good=1
19559 else
19560 cy_good=0
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563
19564 OBJCXXFLAGS=$cy_save
19565 if test "x$cy_good" = x1; then :
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19567 $as_echo "yes" >&6; }
19568
19569 for element in -Wno-deprecated-declarations; do
19570 haveit=
19571 for x in $OBJCXXFLAGS; do
19572
19573 acl_save_prefix="$prefix"
19574 prefix="$acl_final_prefix"
19575 acl_save_exec_prefix="$exec_prefix"
19576 exec_prefix="$acl_final_exec_prefix"
19577 eval x=\"$x\"
19578 exec_prefix="$acl_save_exec_prefix"
19579 prefix="$acl_save_prefix"
19580
19581 if test "X$x" = "X$element"; then
19582 haveit=yes
19583 break
19584 fi
19585 done
19586 if test -z "$haveit"; then
19587 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19588 fi
19589 done
19590
19591
19592 else
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594 $as_echo "no" >&6; }
19595 fi
19596
19597 ac_ext=cpp
19598 ac_cpp='$CXXCPP $CPPFLAGS'
19599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19602
19603
19604
19605
19606
19607
19608 ac_ext=c
19609 ac_cpp='$CPP $CPPFLAGS'
19610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19613
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19615 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
19616
19617 cy_save=$CFLAGS
19618
19619 for element in -Wno-dangling-else; do
19620 haveit=
19621 for x in $CFLAGS; do
19622
19623 acl_save_prefix="$prefix"
19624 prefix="$acl_final_prefix"
19625 acl_save_exec_prefix="$exec_prefix"
19626 exec_prefix="$acl_final_exec_prefix"
19627 eval x=\"$x\"
19628 exec_prefix="$acl_save_exec_prefix"
19629 prefix="$acl_save_prefix"
19630
19631 if test "X$x" = "X$element"; then
19632 haveit=yes
19633 break
19634 fi
19635 done
19636 if test -z "$haveit"; then
19637 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19638 fi
19639 done
19640
19641
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644
19645 _ACEOF
19646 if ac_fn_c_try_compile "$LINENO"; then :
19647 cy_good=1
19648 else
19649 cy_good=0
19650 fi
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652
19653 CFLAGS=$cy_save
19654 if test "x$cy_good" = x1; then :
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656 $as_echo "yes" >&6; }
19657
19658 for element in -Wno-dangling-else; do
19659 haveit=
19660 for x in $CFLAGS; do
19661
19662 acl_save_prefix="$prefix"
19663 prefix="$acl_final_prefix"
19664 acl_save_exec_prefix="$exec_prefix"
19665 exec_prefix="$acl_final_exec_prefix"
19666 eval x=\"$x\"
19667 exec_prefix="$acl_save_exec_prefix"
19668 prefix="$acl_save_prefix"
19669
19670 if test "X$x" = "X$element"; then
19671 haveit=yes
19672 break
19673 fi
19674 done
19675 if test -z "$haveit"; then
19676 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19677 fi
19678 done
19679
19680
19681 else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683 $as_echo "no" >&6; }
19684 fi
19685
19686 ac_ext=cpp
19687 ac_cpp='$CXXCPP $CPPFLAGS'
19688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691
19692
19693
19694 ac_ext=cpp
19695 ac_cpp='$CXXCPP $CPPFLAGS'
19696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19699
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19701 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
19702
19703 cy_save=$CXXFLAGS
19704
19705 for element in -Wno-dangling-else; do
19706 haveit=
19707 for x in $CXXFLAGS; do
19708
19709 acl_save_prefix="$prefix"
19710 prefix="$acl_final_prefix"
19711 acl_save_exec_prefix="$exec_prefix"
19712 exec_prefix="$acl_final_exec_prefix"
19713 eval x=\"$x\"
19714 exec_prefix="$acl_save_exec_prefix"
19715 prefix="$acl_save_prefix"
19716
19717 if test "X$x" = "X$element"; then
19718 haveit=yes
19719 break
19720 fi
19721 done
19722 if test -z "$haveit"; then
19723 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19724 fi
19725 done
19726
19727
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729 /* end confdefs.h. */
19730
19731 _ACEOF
19732 if ac_fn_cxx_try_compile "$LINENO"; then :
19733 cy_good=1
19734 else
19735 cy_good=0
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738
19739 CXXFLAGS=$cy_save
19740 if test "x$cy_good" = x1; then :
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19742 $as_echo "yes" >&6; }
19743
19744 for element in -Wno-dangling-else; do
19745 haveit=
19746 for x in $CXXFLAGS; do
19747
19748 acl_save_prefix="$prefix"
19749 prefix="$acl_final_prefix"
19750 acl_save_exec_prefix="$exec_prefix"
19751 exec_prefix="$acl_final_exec_prefix"
19752 eval x=\"$x\"
19753 exec_prefix="$acl_save_exec_prefix"
19754 prefix="$acl_save_prefix"
19755
19756 if test "X$x" = "X$element"; then
19757 haveit=yes
19758 break
19759 fi
19760 done
19761 if test -z "$haveit"; then
19762 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19763 fi
19764 done
19765
19766
19767 else
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769 $as_echo "no" >&6; }
19770 fi
19771
19772 ac_ext=cpp
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778
19779
19780 ac_ext=mm
19781 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19782 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19785
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19787 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
19788
19789 cy_save=$OBJCXXFLAGS
19790
19791 for element in -Wno-dangling-else; do
19792 haveit=
19793 for x in $OBJCXXFLAGS; do
19794
19795 acl_save_prefix="$prefix"
19796 prefix="$acl_final_prefix"
19797 acl_save_exec_prefix="$exec_prefix"
19798 exec_prefix="$acl_final_exec_prefix"
19799 eval x=\"$x\"
19800 exec_prefix="$acl_save_exec_prefix"
19801 prefix="$acl_save_prefix"
19802
19803 if test "X$x" = "X$element"; then
19804 haveit=yes
19805 break
19806 fi
19807 done
19808 if test -z "$haveit"; then
19809 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19810 fi
19811 done
19812
19813
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19816
19817 _ACEOF
19818 if ac_fn_objcxx_try_compile "$LINENO"; then :
19819 cy_good=1
19820 else
19821 cy_good=0
19822 fi
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824
19825 OBJCXXFLAGS=$cy_save
19826 if test "x$cy_good" = x1; then :
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19828 $as_echo "yes" >&6; }
19829
19830 for element in -Wno-dangling-else; do
19831 haveit=
19832 for x in $OBJCXXFLAGS; do
19833
19834 acl_save_prefix="$prefix"
19835 prefix="$acl_final_prefix"
19836 acl_save_exec_prefix="$exec_prefix"
19837 exec_prefix="$acl_final_exec_prefix"
19838 eval x=\"$x\"
19839 exec_prefix="$acl_save_exec_prefix"
19840 prefix="$acl_save_prefix"
19841
19842 if test "X$x" = "X$element"; then
19843 haveit=yes
19844 break
19845 fi
19846 done
19847 if test -z "$haveit"; then
19848 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19849 fi
19850 done
19851
19852
19853 else
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19855 $as_echo "no" >&6; }
19856 fi
19857
19858 ac_ext=cpp
19859 ac_cpp='$CXXCPP $CPPFLAGS'
19860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19863
19864
19865
19866
19867
19868 ac_ext=c
19869 ac_cpp='$CPP $CPPFLAGS'
19870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19873
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19875 $as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19876
19877 cy_save=$CFLAGS
19878
19879 for element in -Wno-empty-body; do
19880 haveit=
19881 for x in $CFLAGS; do
19882
19883 acl_save_prefix="$prefix"
19884 prefix="$acl_final_prefix"
19885 acl_save_exec_prefix="$exec_prefix"
19886 exec_prefix="$acl_final_exec_prefix"
19887 eval x=\"$x\"
19888 exec_prefix="$acl_save_exec_prefix"
19889 prefix="$acl_save_prefix"
19890
19891 if test "X$x" = "X$element"; then
19892 haveit=yes
19893 break
19894 fi
19895 done
19896 if test -z "$haveit"; then
19897 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19898 fi
19899 done
19900
19901
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904
19905 _ACEOF
19906 if ac_fn_c_try_compile "$LINENO"; then :
19907 cy_good=1
19908 else
19909 cy_good=0
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913 CFLAGS=$cy_save
19914 if test "x$cy_good" = x1; then :
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19916 $as_echo "yes" >&6; }
19917
19918 for element in -Wno-empty-body; do
19919 haveit=
19920 for x in $CFLAGS; do
19921
19922 acl_save_prefix="$prefix"
19923 prefix="$acl_final_prefix"
19924 acl_save_exec_prefix="$exec_prefix"
19925 exec_prefix="$acl_final_exec_prefix"
19926 eval x=\"$x\"
19927 exec_prefix="$acl_save_exec_prefix"
19928 prefix="$acl_save_prefix"
19929
19930 if test "X$x" = "X$element"; then
19931 haveit=yes
19932 break
19933 fi
19934 done
19935 if test -z "$haveit"; then
19936 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19937 fi
19938 done
19939
19940
19941 else
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943 $as_echo "no" >&6; }
19944 fi
19945
19946 ac_ext=cpp
19947 ac_cpp='$CXXCPP $CPPFLAGS'
19948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951
19952
19953
19954 ac_ext=cpp
19955 ac_cpp='$CXXCPP $CPPFLAGS'
19956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19959
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19961 $as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19962
19963 cy_save=$CXXFLAGS
19964
19965 for element in -Wno-empty-body; do
19966 haveit=
19967 for x in $CXXFLAGS; do
19968
19969 acl_save_prefix="$prefix"
19970 prefix="$acl_final_prefix"
19971 acl_save_exec_prefix="$exec_prefix"
19972 exec_prefix="$acl_final_exec_prefix"
19973 eval x=\"$x\"
19974 exec_prefix="$acl_save_exec_prefix"
19975 prefix="$acl_save_prefix"
19976
19977 if test "X$x" = "X$element"; then
19978 haveit=yes
19979 break
19980 fi
19981 done
19982 if test -z "$haveit"; then
19983 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19984 fi
19985 done
19986
19987
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19990
19991 _ACEOF
19992 if ac_fn_cxx_try_compile "$LINENO"; then :
19993 cy_good=1
19994 else
19995 cy_good=0
19996 fi
19997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998
19999 CXXFLAGS=$cy_save
20000 if test "x$cy_good" = x1; then :
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002 $as_echo "yes" >&6; }
20003
20004 for element in -Wno-empty-body; do
20005 haveit=
20006 for x in $CXXFLAGS; do
20007
20008 acl_save_prefix="$prefix"
20009 prefix="$acl_final_prefix"
20010 acl_save_exec_prefix="$exec_prefix"
20011 exec_prefix="$acl_final_exec_prefix"
20012 eval x=\"$x\"
20013 exec_prefix="$acl_save_exec_prefix"
20014 prefix="$acl_save_prefix"
20015
20016 if test "X$x" = "X$element"; then
20017 haveit=yes
20018 break
20019 fi
20020 done
20021 if test -z "$haveit"; then
20022 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20023 fi
20024 done
20025
20026
20027 else
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20030 fi
20031
20032 ac_ext=cpp
20033 ac_cpp='$CXXCPP $CPPFLAGS'
20034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037
20038
20039
20040 ac_ext=mm
20041 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20042 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20047 $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20048
20049 cy_save=$OBJCXXFLAGS
20050
20051 for element in -Wno-empty-body; do
20052 haveit=
20053 for x in $OBJCXXFLAGS; do
20054
20055 acl_save_prefix="$prefix"
20056 prefix="$acl_final_prefix"
20057 acl_save_exec_prefix="$exec_prefix"
20058 exec_prefix="$acl_final_exec_prefix"
20059 eval x=\"$x\"
20060 exec_prefix="$acl_save_exec_prefix"
20061 prefix="$acl_save_prefix"
20062
20063 if test "X$x" = "X$element"; then
20064 haveit=yes
20065 break
20066 fi
20067 done
20068 if test -z "$haveit"; then
20069 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20070 fi
20071 done
20072
20073
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20076
20077 _ACEOF
20078 if ac_fn_objcxx_try_compile "$LINENO"; then :
20079 cy_good=1
20080 else
20081 cy_good=0
20082 fi
20083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084
20085 OBJCXXFLAGS=$cy_save
20086 if test "x$cy_good" = x1; then :
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20088 $as_echo "yes" >&6; }
20089
20090 for element in -Wno-empty-body; do
20091 haveit=
20092 for x in $OBJCXXFLAGS; do
20093
20094 acl_save_prefix="$prefix"
20095 prefix="$acl_final_prefix"
20096 acl_save_exec_prefix="$exec_prefix"
20097 exec_prefix="$acl_final_exec_prefix"
20098 eval x=\"$x\"
20099 exec_prefix="$acl_save_exec_prefix"
20100 prefix="$acl_save_prefix"
20101
20102 if test "X$x" = "X$element"; then
20103 haveit=yes
20104 break
20105 fi
20106 done
20107 if test -z "$haveit"; then
20108 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20109 fi
20110 done
20111
20112
20113 else
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20115 $as_echo "no" >&6; }
20116 fi
20117
20118 ac_ext=cpp
20119 ac_cpp='$CXXCPP $CPPFLAGS'
20120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20123
20124
20125
20126
20127
20128 ac_ext=c
20129 ac_cpp='$CPP $CPPFLAGS'
20130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20135 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
20136
20137 cy_save=$CFLAGS
20138
20139 for element in -Wno-overloaded-virtual; do
20140 haveit=
20141 for x in $CFLAGS; do
20142
20143 acl_save_prefix="$prefix"
20144 prefix="$acl_final_prefix"
20145 acl_save_exec_prefix="$exec_prefix"
20146 exec_prefix="$acl_final_exec_prefix"
20147 eval x=\"$x\"
20148 exec_prefix="$acl_save_exec_prefix"
20149 prefix="$acl_save_prefix"
20150
20151 if test "X$x" = "X$element"; then
20152 haveit=yes
20153 break
20154 fi
20155 done
20156 if test -z "$haveit"; then
20157 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20158 fi
20159 done
20160
20161
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20164
20165 _ACEOF
20166 if ac_fn_c_try_compile "$LINENO"; then :
20167 cy_good=1
20168 else
20169 cy_good=0
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172
20173 CFLAGS=$cy_save
20174 if test "x$cy_good" = x1; then :
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20176 $as_echo "yes" >&6; }
20177
20178 for element in -Wno-overloaded-virtual; do
20179 haveit=
20180 for x in $CFLAGS; do
20181
20182 acl_save_prefix="$prefix"
20183 prefix="$acl_final_prefix"
20184 acl_save_exec_prefix="$exec_prefix"
20185 exec_prefix="$acl_final_exec_prefix"
20186 eval x=\"$x\"
20187 exec_prefix="$acl_save_exec_prefix"
20188 prefix="$acl_save_prefix"
20189
20190 if test "X$x" = "X$element"; then
20191 haveit=yes
20192 break
20193 fi
20194 done
20195 if test -z "$haveit"; then
20196 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20197 fi
20198 done
20199
20200
20201 else
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20203 $as_echo "no" >&6; }
20204 fi
20205
20206 ac_ext=cpp
20207 ac_cpp='$CXXCPP $CPPFLAGS'
20208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20211
20212
20213
20214 ac_ext=cpp
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20219
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20221 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
20222
20223 cy_save=$CXXFLAGS
20224
20225 for element in -Wno-overloaded-virtual; do
20226 haveit=
20227 for x in $CXXFLAGS; do
20228
20229 acl_save_prefix="$prefix"
20230 prefix="$acl_final_prefix"
20231 acl_save_exec_prefix="$exec_prefix"
20232 exec_prefix="$acl_final_exec_prefix"
20233 eval x=\"$x\"
20234 exec_prefix="$acl_save_exec_prefix"
20235 prefix="$acl_save_prefix"
20236
20237 if test "X$x" = "X$element"; then
20238 haveit=yes
20239 break
20240 fi
20241 done
20242 if test -z "$haveit"; then
20243 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20244 fi
20245 done
20246
20247
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249 /* end confdefs.h. */
20250
20251 _ACEOF
20252 if ac_fn_cxx_try_compile "$LINENO"; then :
20253 cy_good=1
20254 else
20255 cy_good=0
20256 fi
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258
20259 CXXFLAGS=$cy_save
20260 if test "x$cy_good" = x1; then :
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20262 $as_echo "yes" >&6; }
20263
20264 for element in -Wno-overloaded-virtual; do
20265 haveit=
20266 for x in $CXXFLAGS; do
20267
20268 acl_save_prefix="$prefix"
20269 prefix="$acl_final_prefix"
20270 acl_save_exec_prefix="$exec_prefix"
20271 exec_prefix="$acl_final_exec_prefix"
20272 eval x=\"$x\"
20273 exec_prefix="$acl_save_exec_prefix"
20274 prefix="$acl_save_prefix"
20275
20276 if test "X$x" = "X$element"; then
20277 haveit=yes
20278 break
20279 fi
20280 done
20281 if test -z "$haveit"; then
20282 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20283 fi
20284 done
20285
20286
20287 else
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20289 $as_echo "no" >&6; }
20290 fi
20291
20292 ac_ext=cpp
20293 ac_cpp='$CXXCPP $CPPFLAGS'
20294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20297
20298
20299
20300 ac_ext=mm
20301 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20302 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20305
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20307 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
20308
20309 cy_save=$OBJCXXFLAGS
20310
20311 for element in -Wno-overloaded-virtual; do
20312 haveit=
20313 for x in $OBJCXXFLAGS; do
20314
20315 acl_save_prefix="$prefix"
20316 prefix="$acl_final_prefix"
20317 acl_save_exec_prefix="$exec_prefix"
20318 exec_prefix="$acl_final_exec_prefix"
20319 eval x=\"$x\"
20320 exec_prefix="$acl_save_exec_prefix"
20321 prefix="$acl_save_prefix"
20322
20323 if test "X$x" = "X$element"; then
20324 haveit=yes
20325 break
20326 fi
20327 done
20328 if test -z "$haveit"; then
20329 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20330 fi
20331 done
20332
20333
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20336
20337 _ACEOF
20338 if ac_fn_objcxx_try_compile "$LINENO"; then :
20339 cy_good=1
20340 else
20341 cy_good=0
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344
20345 OBJCXXFLAGS=$cy_save
20346 if test "x$cy_good" = x1; then :
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20348 $as_echo "yes" >&6; }
20349
20350 for element in -Wno-overloaded-virtual; do
20351 haveit=
20352 for x in $OBJCXXFLAGS; do
20353
20354 acl_save_prefix="$prefix"
20355 prefix="$acl_final_prefix"
20356 acl_save_exec_prefix="$exec_prefix"
20357 exec_prefix="$acl_final_exec_prefix"
20358 eval x=\"$x\"
20359 exec_prefix="$acl_save_exec_prefix"
20360 prefix="$acl_save_prefix"
20361
20362 if test "X$x" = "X$element"; then
20363 haveit=yes
20364 break
20365 fi
20366 done
20367 if test -z "$haveit"; then
20368 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20369 fi
20370 done
20371
20372
20373 else
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20376 fi
20377
20378 ac_ext=cpp
20379 ac_cpp='$CXXCPP $CPPFLAGS'
20380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383
20384
20385
20386
20387
20388 ac_ext=c
20389 ac_cpp='$CPP $CPPFLAGS'
20390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20395 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
20396
20397 cy_save=$CFLAGS
20398
20399 for element in -Wno-parentheses; do
20400 haveit=
20401 for x in $CFLAGS; do
20402
20403 acl_save_prefix="$prefix"
20404 prefix="$acl_final_prefix"
20405 acl_save_exec_prefix="$exec_prefix"
20406 exec_prefix="$acl_final_exec_prefix"
20407 eval x=\"$x\"
20408 exec_prefix="$acl_save_exec_prefix"
20409 prefix="$acl_save_prefix"
20410
20411 if test "X$x" = "X$element"; then
20412 haveit=yes
20413 break
20414 fi
20415 done
20416 if test -z "$haveit"; then
20417 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20418 fi
20419 done
20420
20421
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20424
20425 _ACEOF
20426 if ac_fn_c_try_compile "$LINENO"; then :
20427 cy_good=1
20428 else
20429 cy_good=0
20430 fi
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432
20433 CFLAGS=$cy_save
20434 if test "x$cy_good" = x1; then :
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20436 $as_echo "yes" >&6; }
20437
20438 for element in -Wno-parentheses; do
20439 haveit=
20440 for x in $CFLAGS; do
20441
20442 acl_save_prefix="$prefix"
20443 prefix="$acl_final_prefix"
20444 acl_save_exec_prefix="$exec_prefix"
20445 exec_prefix="$acl_final_exec_prefix"
20446 eval x=\"$x\"
20447 exec_prefix="$acl_save_exec_prefix"
20448 prefix="$acl_save_prefix"
20449
20450 if test "X$x" = "X$element"; then
20451 haveit=yes
20452 break
20453 fi
20454 done
20455 if test -z "$haveit"; then
20456 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20457 fi
20458 done
20459
20460
20461 else
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20463 $as_echo "no" >&6; }
20464 fi
20465
20466 ac_ext=cpp
20467 ac_cpp='$CXXCPP $CPPFLAGS'
20468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20471
20472
20473
20474 ac_ext=cpp
20475 ac_cpp='$CXXCPP $CPPFLAGS'
20476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20479
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20481 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
20482
20483 cy_save=$CXXFLAGS
20484
20485 for element in -Wno-parentheses; do
20486 haveit=
20487 for x in $CXXFLAGS; do
20488
20489 acl_save_prefix="$prefix"
20490 prefix="$acl_final_prefix"
20491 acl_save_exec_prefix="$exec_prefix"
20492 exec_prefix="$acl_final_exec_prefix"
20493 eval x=\"$x\"
20494 exec_prefix="$acl_save_exec_prefix"
20495 prefix="$acl_save_prefix"
20496
20497 if test "X$x" = "X$element"; then
20498 haveit=yes
20499 break
20500 fi
20501 done
20502 if test -z "$haveit"; then
20503 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20504 fi
20505 done
20506
20507
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20510
20511 _ACEOF
20512 if ac_fn_cxx_try_compile "$LINENO"; then :
20513 cy_good=1
20514 else
20515 cy_good=0
20516 fi
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518
20519 CXXFLAGS=$cy_save
20520 if test "x$cy_good" = x1; then :
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20522 $as_echo "yes" >&6; }
20523
20524 for element in -Wno-parentheses; do
20525 haveit=
20526 for x in $CXXFLAGS; do
20527
20528 acl_save_prefix="$prefix"
20529 prefix="$acl_final_prefix"
20530 acl_save_exec_prefix="$exec_prefix"
20531 exec_prefix="$acl_final_exec_prefix"
20532 eval x=\"$x\"
20533 exec_prefix="$acl_save_exec_prefix"
20534 prefix="$acl_save_prefix"
20535
20536 if test "X$x" = "X$element"; then
20537 haveit=yes
20538 break
20539 fi
20540 done
20541 if test -z "$haveit"; then
20542 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20543 fi
20544 done
20545
20546
20547 else
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20549 $as_echo "no" >&6; }
20550 fi
20551
20552 ac_ext=cpp
20553 ac_cpp='$CXXCPP $CPPFLAGS'
20554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20557
20558
20559
20560 ac_ext=mm
20561 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20562 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20565
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20567 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
20568
20569 cy_save=$OBJCXXFLAGS
20570
20571 for element in -Wno-parentheses; do
20572 haveit=
20573 for x in $OBJCXXFLAGS; do
20574
20575 acl_save_prefix="$prefix"
20576 prefix="$acl_final_prefix"
20577 acl_save_exec_prefix="$exec_prefix"
20578 exec_prefix="$acl_final_exec_prefix"
20579 eval x=\"$x\"
20580 exec_prefix="$acl_save_exec_prefix"
20581 prefix="$acl_save_prefix"
20582
20583 if test "X$x" = "X$element"; then
20584 haveit=yes
20585 break
20586 fi
20587 done
20588 if test -z "$haveit"; then
20589 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20590 fi
20591 done
20592
20593
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20596
20597 _ACEOF
20598 if ac_fn_objcxx_try_compile "$LINENO"; then :
20599 cy_good=1
20600 else
20601 cy_good=0
20602 fi
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604
20605 OBJCXXFLAGS=$cy_save
20606 if test "x$cy_good" = x1; then :
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20608 $as_echo "yes" >&6; }
20609
20610 for element in -Wno-parentheses; do
20611 haveit=
20612 for x in $OBJCXXFLAGS; do
20613
20614 acl_save_prefix="$prefix"
20615 prefix="$acl_final_prefix"
20616 acl_save_exec_prefix="$exec_prefix"
20617 exec_prefix="$acl_final_exec_prefix"
20618 eval x=\"$x\"
20619 exec_prefix="$acl_save_exec_prefix"
20620 prefix="$acl_save_prefix"
20621
20622 if test "X$x" = "X$element"; then
20623 haveit=yes
20624 break
20625 fi
20626 done
20627 if test -z "$haveit"; then
20628 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20629 fi
20630 done
20631
20632
20633 else
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20635 $as_echo "no" >&6; }
20636 fi
20637
20638 ac_ext=cpp
20639 ac_cpp='$CXXCPP $CPPFLAGS'
20640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20643
20644
20645
20646
20647
20648 ac_ext=c
20649 ac_cpp='$CPP $CPPFLAGS'
20650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20653
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20655 $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20656
20657 cy_save=$CFLAGS
20658
20659 for element in -Wno-tautological-undefined-compare; do
20660 haveit=
20661 for x in $CFLAGS; do
20662
20663 acl_save_prefix="$prefix"
20664 prefix="$acl_final_prefix"
20665 acl_save_exec_prefix="$exec_prefix"
20666 exec_prefix="$acl_final_exec_prefix"
20667 eval x=\"$x\"
20668 exec_prefix="$acl_save_exec_prefix"
20669 prefix="$acl_save_prefix"
20670
20671 if test "X$x" = "X$element"; then
20672 haveit=yes
20673 break
20674 fi
20675 done
20676 if test -z "$haveit"; then
20677 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20678 fi
20679 done
20680
20681
20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683 /* end confdefs.h. */
20684
20685 _ACEOF
20686 if ac_fn_c_try_compile "$LINENO"; then :
20687 cy_good=1
20688 else
20689 cy_good=0
20690 fi
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692
20693 CFLAGS=$cy_save
20694 if test "x$cy_good" = x1; then :
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20696 $as_echo "yes" >&6; }
20697
20698 for element in -Wno-tautological-undefined-compare; do
20699 haveit=
20700 for x in $CFLAGS; do
20701
20702 acl_save_prefix="$prefix"
20703 prefix="$acl_final_prefix"
20704 acl_save_exec_prefix="$exec_prefix"
20705 exec_prefix="$acl_final_exec_prefix"
20706 eval x=\"$x\"
20707 exec_prefix="$acl_save_exec_prefix"
20708 prefix="$acl_save_prefix"
20709
20710 if test "X$x" = "X$element"; then
20711 haveit=yes
20712 break
20713 fi
20714 done
20715 if test -z "$haveit"; then
20716 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20717 fi
20718 done
20719
20720
20721 else
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20723 $as_echo "no" >&6; }
20724 fi
20725
20726 ac_ext=cpp
20727 ac_cpp='$CXXCPP $CPPFLAGS'
20728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20731
20732
20733
20734 ac_ext=cpp
20735 ac_cpp='$CXXCPP $CPPFLAGS'
20736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20741 $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20742
20743 cy_save=$CXXFLAGS
20744
20745 for element in -Wno-tautological-undefined-compare; do
20746 haveit=
20747 for x in $CXXFLAGS; do
20748
20749 acl_save_prefix="$prefix"
20750 prefix="$acl_final_prefix"
20751 acl_save_exec_prefix="$exec_prefix"
20752 exec_prefix="$acl_final_exec_prefix"
20753 eval x=\"$x\"
20754 exec_prefix="$acl_save_exec_prefix"
20755 prefix="$acl_save_prefix"
20756
20757 if test "X$x" = "X$element"; then
20758 haveit=yes
20759 break
20760 fi
20761 done
20762 if test -z "$haveit"; then
20763 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20764 fi
20765 done
20766
20767
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h. */
20770
20771 _ACEOF
20772 if ac_fn_cxx_try_compile "$LINENO"; then :
20773 cy_good=1
20774 else
20775 cy_good=0
20776 fi
20777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778
20779 CXXFLAGS=$cy_save
20780 if test "x$cy_good" = x1; then :
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20782 $as_echo "yes" >&6; }
20783
20784 for element in -Wno-tautological-undefined-compare; do
20785 haveit=
20786 for x in $CXXFLAGS; do
20787
20788 acl_save_prefix="$prefix"
20789 prefix="$acl_final_prefix"
20790 acl_save_exec_prefix="$exec_prefix"
20791 exec_prefix="$acl_final_exec_prefix"
20792 eval x=\"$x\"
20793 exec_prefix="$acl_save_exec_prefix"
20794 prefix="$acl_save_prefix"
20795
20796 if test "X$x" = "X$element"; then
20797 haveit=yes
20798 break
20799 fi
20800 done
20801 if test -z "$haveit"; then
20802 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20803 fi
20804 done
20805
20806
20807 else
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809 $as_echo "no" >&6; }
20810 fi
20811
20812 ac_ext=cpp
20813 ac_cpp='$CXXCPP $CPPFLAGS'
20814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20817
20818
20819
20820 ac_ext=mm
20821 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20822 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20827 $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20828
20829 cy_save=$OBJCXXFLAGS
20830
20831 for element in -Wno-tautological-undefined-compare; do
20832 haveit=
20833 for x in $OBJCXXFLAGS; do
20834
20835 acl_save_prefix="$prefix"
20836 prefix="$acl_final_prefix"
20837 acl_save_exec_prefix="$exec_prefix"
20838 exec_prefix="$acl_final_exec_prefix"
20839 eval x=\"$x\"
20840 exec_prefix="$acl_save_exec_prefix"
20841 prefix="$acl_save_prefix"
20842
20843 if test "X$x" = "X$element"; then
20844 haveit=yes
20845 break
20846 fi
20847 done
20848 if test -z "$haveit"; then
20849 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20850 fi
20851 done
20852
20853
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855 /* end confdefs.h. */
20856
20857 _ACEOF
20858 if ac_fn_objcxx_try_compile "$LINENO"; then :
20859 cy_good=1
20860 else
20861 cy_good=0
20862 fi
20863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864
20865 OBJCXXFLAGS=$cy_save
20866 if test "x$cy_good" = x1; then :
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20868 $as_echo "yes" >&6; }
20869
20870 for element in -Wno-tautological-undefined-compare; do
20871 haveit=
20872 for x in $OBJCXXFLAGS; do
20873
20874 acl_save_prefix="$prefix"
20875 prefix="$acl_final_prefix"
20876 acl_save_exec_prefix="$exec_prefix"
20877 exec_prefix="$acl_final_exec_prefix"
20878 eval x=\"$x\"
20879 exec_prefix="$acl_save_exec_prefix"
20880 prefix="$acl_save_prefix"
20881
20882 if test "X$x" = "X$element"; then
20883 haveit=yes
20884 break
20885 fi
20886 done
20887 if test -z "$haveit"; then
20888 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20889 fi
20890 done
20891
20892
20893 else
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20895 $as_echo "no" >&6; }
20896 fi
20897
20898 ac_ext=cpp
20899 ac_cpp='$CXXCPP $CPPFLAGS'
20900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20903
20904
20905
20906
20907
20908 ac_ext=c
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20915 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20916
20917 cy_save=$CFLAGS
20918
20919 for element in -Wno-unneeded-internal-declaration; do
20920 haveit=
20921 for x in $CFLAGS; do
20922
20923 acl_save_prefix="$prefix"
20924 prefix="$acl_final_prefix"
20925 acl_save_exec_prefix="$exec_prefix"
20926 exec_prefix="$acl_final_exec_prefix"
20927 eval x=\"$x\"
20928 exec_prefix="$acl_save_exec_prefix"
20929 prefix="$acl_save_prefix"
20930
20931 if test "X$x" = "X$element"; then
20932 haveit=yes
20933 break
20934 fi
20935 done
20936 if test -z "$haveit"; then
20937 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20938 fi
20939 done
20940
20941
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20943 /* end confdefs.h. */
20944
20945 _ACEOF
20946 if ac_fn_c_try_compile "$LINENO"; then :
20947 cy_good=1
20948 else
20949 cy_good=0
20950 fi
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952
20953 CFLAGS=$cy_save
20954 if test "x$cy_good" = x1; then :
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20956 $as_echo "yes" >&6; }
20957
20958 for element in -Wno-unneeded-internal-declaration; do
20959 haveit=
20960 for x in $CFLAGS; do
20961
20962 acl_save_prefix="$prefix"
20963 prefix="$acl_final_prefix"
20964 acl_save_exec_prefix="$exec_prefix"
20965 exec_prefix="$acl_final_exec_prefix"
20966 eval x=\"$x\"
20967 exec_prefix="$acl_save_exec_prefix"
20968 prefix="$acl_save_prefix"
20969
20970 if test "X$x" = "X$element"; then
20971 haveit=yes
20972 break
20973 fi
20974 done
20975 if test -z "$haveit"; then
20976 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20977 fi
20978 done
20979
20980
20981 else
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20983 $as_echo "no" >&6; }
20984 fi
20985
20986 ac_ext=cpp
20987 ac_cpp='$CXXCPP $CPPFLAGS'
20988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20991
20992
20993
20994 ac_ext=cpp
20995 ac_cpp='$CXXCPP $CPPFLAGS'
20996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20999
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21001 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
21002
21003 cy_save=$CXXFLAGS
21004
21005 for element in -Wno-unneeded-internal-declaration; do
21006 haveit=
21007 for x in $CXXFLAGS; do
21008
21009 acl_save_prefix="$prefix"
21010 prefix="$acl_final_prefix"
21011 acl_save_exec_prefix="$exec_prefix"
21012 exec_prefix="$acl_final_exec_prefix"
21013 eval x=\"$x\"
21014 exec_prefix="$acl_save_exec_prefix"
21015 prefix="$acl_save_prefix"
21016
21017 if test "X$x" = "X$element"; then
21018 haveit=yes
21019 break
21020 fi
21021 done
21022 if test -z "$haveit"; then
21023 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21024 fi
21025 done
21026
21027
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21030
21031 _ACEOF
21032 if ac_fn_cxx_try_compile "$LINENO"; then :
21033 cy_good=1
21034 else
21035 cy_good=0
21036 fi
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038
21039 CXXFLAGS=$cy_save
21040 if test "x$cy_good" = x1; then :
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21042 $as_echo "yes" >&6; }
21043
21044 for element in -Wno-unneeded-internal-declaration; do
21045 haveit=
21046 for x in $CXXFLAGS; do
21047
21048 acl_save_prefix="$prefix"
21049 prefix="$acl_final_prefix"
21050 acl_save_exec_prefix="$exec_prefix"
21051 exec_prefix="$acl_final_exec_prefix"
21052 eval x=\"$x\"
21053 exec_prefix="$acl_save_exec_prefix"
21054 prefix="$acl_save_prefix"
21055
21056 if test "X$x" = "X$element"; then
21057 haveit=yes
21058 break
21059 fi
21060 done
21061 if test -z "$haveit"; then
21062 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21063 fi
21064 done
21065
21066
21067 else
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069 $as_echo "no" >&6; }
21070 fi
21071
21072 ac_ext=cpp
21073 ac_cpp='$CXXCPP $CPPFLAGS'
21074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21077
21078
21079
21080 ac_ext=mm
21081 ac_cpp='$OBJCXXCPP $CPPFLAGS'
21082 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21085
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21087 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
21088
21089 cy_save=$OBJCXXFLAGS
21090
21091 for element in -Wno-unneeded-internal-declaration; do
21092 haveit=
21093 for x in $OBJCXXFLAGS; do
21094
21095 acl_save_prefix="$prefix"
21096 prefix="$acl_final_prefix"
21097 acl_save_exec_prefix="$exec_prefix"
21098 exec_prefix="$acl_final_exec_prefix"
21099 eval x=\"$x\"
21100 exec_prefix="$acl_save_exec_prefix"
21101 prefix="$acl_save_prefix"
21102
21103 if test "X$x" = "X$element"; then
21104 haveit=yes
21105 break
21106 fi
21107 done
21108 if test -z "$haveit"; then
21109 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21110 fi
21111 done
21112
21113
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116
21117 _ACEOF
21118 if ac_fn_objcxx_try_compile "$LINENO"; then :
21119 cy_good=1
21120 else
21121 cy_good=0
21122 fi
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124
21125 OBJCXXFLAGS=$cy_save
21126 if test "x$cy_good" = x1; then :
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21128 $as_echo "yes" >&6; }
21129
21130 for element in -Wno-unneeded-internal-declaration; do
21131 haveit=
21132 for x in $OBJCXXFLAGS; do
21133
21134 acl_save_prefix="$prefix"
21135 prefix="$acl_final_prefix"
21136 acl_save_exec_prefix="$exec_prefix"
21137 exec_prefix="$acl_final_exec_prefix"
21138 eval x=\"$x\"
21139 exec_prefix="$acl_save_exec_prefix"
21140 prefix="$acl_save_prefix"
21141
21142 if test "X$x" = "X$element"; then
21143 haveit=yes
21144 break
21145 fi
21146 done
21147 if test -z "$haveit"; then
21148 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21149 fi
21150 done
21151
21152
21153 else
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21155 $as_echo "no" >&6; }
21156 fi
21157
21158 ac_ext=cpp
21159 ac_cpp='$CXXCPP $CPPFLAGS'
21160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21163
21164
21165
21166
21167
21168
21169
21170 ac_ext=c
21171 ac_cpp='$CPP $CPPFLAGS'
21172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21175
21176 ax_pthread_ok=no
21177
21178 # We used to check for pthread.h first, but this fails if pthread.h
21179 # requires special compiler flags (e.g. on Tru64 or Sequent).
21180 # It gets checked for in the link test anyway.
21181
21182 # First of all, check if the user has set any of the PTHREAD_LIBS,
21183 # etcetera environment variables, and if threads linking works using
21184 # them:
21185 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21186 save_CFLAGS="$CFLAGS"
21187 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21188 save_LIBS="$LIBS"
21189 LIBS="$PTHREAD_LIBS $LIBS"
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21191 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
21192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193 /* end confdefs.h. */
21194
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char pthread_join ();
21202 int
21203 main ()
21204 {
21205 return pthread_join ();
21206 ;
21207 return 0;
21208 }
21209 _ACEOF
21210 if ac_fn_c_try_link "$LINENO"; then :
21211 ax_pthread_ok=yes
21212 fi
21213 rm -f core conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21216 $as_echo "$ax_pthread_ok" >&6; }
21217 if test x"$ax_pthread_ok" = xno; then
21218 PTHREAD_LIBS=""
21219 PTHREAD_CFLAGS=""
21220 fi
21221 LIBS="$save_LIBS"
21222 CFLAGS="$save_CFLAGS"
21223 fi
21224
21225 # We must check for the threads library under a number of different
21226 # names; the ordering is very important because some systems
21227 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21228 # libraries is broken (non-POSIX).
21229
21230 # Create a list of thread flags to try. Items starting with a "-" are
21231 # C compiler flags, and other items are library names, except for "none"
21232 # which indicates that we try without any flags at all, and "pthread-config"
21233 # which is a program returning the flags for the Pth emulation library.
21234
21235 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
21236
21237 # The ordering *is* (sometimes) important. Some notes on the
21238 # individual items follow:
21239
21240 # pthreads: AIX (must check this before -lpthread)
21241 # none: in case threads are in libc; should be tried before -Kthread and
21242 # other compiler flags to prevent continual compiler warnings
21243 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21244 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21245 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21246 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
21247 # -pthreads: Solaris/gcc
21248 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21249 # doesn't hurt to check since this sometimes defines pthreads and
21250 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
21251 # is present but should not be used directly)
21252 # -mthreads: Mingw32/gcc, Lynx/gcc
21253 # pthread: Linux, etcetera
21254 # --thread-safe: KAI C++
21255 # pthread-config: use pthread-config program (for GNU Pth library)
21256
21257 case $host_os in
21258
21259 hpux*)
21260
21261 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21262 # multi-threading and also sets -lpthread."
21263
21264 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21265 ;;
21266
21267 openedition*)
21268
21269 # IBM z/OS requires a feature-test macro to be defined in order to
21270 # enable POSIX threads at all, so give the user a hint if this is
21271 # not set. (We don't define these ourselves, as they can affect
21272 # other portions of the system API in unpredictable ways.)
21273
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21276
21277 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21278 AX_PTHREAD_ZOS_MISSING
21279 # endif
21280
21281 _ACEOF
21282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21283 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21285 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21286 fi
21287 rm -f conftest*
21288
21289 ;;
21290
21291 solaris*)
21292
21293 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21294 # check that first. On some older versions, libc contains stubbed
21295 # (non-functional) versions of the pthreads routines, so link-based
21296 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21297 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21298 # a function called by this macro, so we could check for that, but
21299 # who knows whether they'll stub that too in a future libc.) So
21300 # we'll look for -pthreads and -lpthread shortly thereafter.
21301
21302 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
21303 ;;
21304 esac
21305
21306 # Older versions of Clang only give a warning instead of an error for an
21307 # unrecognized option, unless we specify -Werror. (We throw in some extra
21308 # Clang warning flags for good measure.)
21309
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21311 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21312 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21316 save_CFLAGS="$CFLAGS"
21317 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21318 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21321 int foo(void);
21322 int
21323 main ()
21324 {
21325 foo()
21326 ;
21327 return 0;
21328 }
21329 _ACEOF
21330 if ac_fn_c_try_compile "$LINENO"; then :
21331 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
21332 else
21333 ax_cv_PTHREAD_REJECT_UNKNOWN=no
21334 fi
21335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21336 CFLAGS="$save_CFLAGS"
21337
21338 fi
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21340 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21341 ax_pthread_extra_flags=
21342 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21343 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21344 fi
21345
21346 if test x"$ax_pthread_ok" = xno; then
21347 for flag in $ax_pthread_flags; do
21348
21349 case $flag in
21350 none)
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21352 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
21353 ;;
21354
21355 -mt,pthread)
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21357 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21358 PTHREAD_CFLAGS="-mt"
21359 PTHREAD_LIBS="-lpthread"
21360 ;;
21361
21362 -*)
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21364 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
21365 PTHREAD_CFLAGS="$flag"
21366 ;;
21367
21368 pthread-config)
21369 # Extract the first word of "pthread-config", so it can be a program name with args.
21370 set dummy pthread-config; ac_word=$2
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21372 $as_echo_n "checking for $ac_word... " >&6; }
21373 if ${ac_cv_prog_ax_pthread_config+:} false; then :
21374 $as_echo_n "(cached) " >&6
21375 else
21376 if test -n "$ax_pthread_config"; then
21377 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21378 else
21379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21380 for as_dir in $PATH
21381 do
21382 IFS=$as_save_IFS
21383 test -z "$as_dir" && as_dir=.
21384 for ac_exec_ext in '' $ac_executable_extensions; do
21385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21386 ac_cv_prog_ax_pthread_config="yes"
21387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21388 break 2
21389 fi
21390 done
21391 done
21392 IFS=$as_save_IFS
21393
21394 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21395 fi
21396 fi
21397 ax_pthread_config=$ac_cv_prog_ax_pthread_config
21398 if test -n "$ax_pthread_config"; then
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21400 $as_echo "$ax_pthread_config" >&6; }
21401 else
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21403 $as_echo "no" >&6; }
21404 fi
21405
21406
21407 if test x"$ax_pthread_config" = xno; then continue; fi
21408 PTHREAD_CFLAGS="`pthread-config --cflags`"
21409 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21410 ;;
21411
21412 *)
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21414 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21415 PTHREAD_LIBS="-l$flag"
21416 ;;
21417 esac
21418
21419 save_LIBS="$LIBS"
21420 save_CFLAGS="$CFLAGS"
21421 LIBS="$PTHREAD_LIBS $LIBS"
21422 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21423
21424 # Check for various functions. We must include pthread.h,
21425 # since some functions may be macros. (On the Sequent, we
21426 # need a special flag -Kthread to make this header compile.)
21427 # We check for pthread_join because it is in -lpthread on IRIX
21428 # while pthread_create is in libc. We check for pthread_attr_init
21429 # due to DEC craziness with -lpthreads. We check for
21430 # pthread_cleanup_push because it is one of the few pthread
21431 # functions on Solaris that doesn't have a non-functional libc stub.
21432 # We try pthread_create on general principles.
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21435 #include <pthread.h>
21436 static void routine(void *a) { a = 0; }
21437 static void *start_routine(void *a) { return a; }
21438 int
21439 main ()
21440 {
21441 pthread_t th; pthread_attr_t attr;
21442 pthread_create(&th, 0, start_routine, 0);
21443 pthread_join(th, 0);
21444 pthread_attr_init(&attr);
21445 pthread_cleanup_push(routine, 0);
21446 pthread_cleanup_pop(0) /* ; */
21447 ;
21448 return 0;
21449 }
21450 _ACEOF
21451 if ac_fn_c_try_link "$LINENO"; then :
21452 ax_pthread_ok=yes
21453 fi
21454 rm -f core conftest.err conftest.$ac_objext \
21455 conftest$ac_exeext conftest.$ac_ext
21456
21457 LIBS="$save_LIBS"
21458 CFLAGS="$save_CFLAGS"
21459
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21461 $as_echo "$ax_pthread_ok" >&6; }
21462 if test "x$ax_pthread_ok" = xyes; then
21463 break;
21464 fi
21465
21466 PTHREAD_LIBS=""
21467 PTHREAD_CFLAGS=""
21468 done
21469 fi
21470
21471 # Various other checks:
21472 if test "x$ax_pthread_ok" = xyes; then
21473 save_LIBS="$LIBS"
21474 LIBS="$PTHREAD_LIBS $LIBS"
21475 save_CFLAGS="$CFLAGS"
21476 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21477
21478 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21480 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21481 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21482 $as_echo_n "(cached) " >&6
21483 else
21484 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21485 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21488 #include <pthread.h>
21489 int
21490 main ()
21491 {
21492 int attr = $attr; return attr /* ; */
21493 ;
21494 return 0;
21495 }
21496 _ACEOF
21497 if ac_fn_c_try_link "$LINENO"; then :
21498 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
21499 fi
21500 rm -f core conftest.err conftest.$ac_objext \
21501 conftest$ac_exeext conftest.$ac_ext
21502 done
21503
21504 fi
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21506 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21507 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21508 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
21509
21510 cat >>confdefs.h <<_ACEOF
21511 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
21512 _ACEOF
21513
21514 fi
21515
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21517 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21518 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21522 ax_pthread_special_flags_added=no
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21525
21526 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21527 AX_PTHREAD_NEED_SPECIAL_FLAG
21528 # endif
21529
21530 _ACEOF
21531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21533 case $host_os in
21534 aix* | freebsd*)
21535 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21536 ;;
21537 darwin* | hpux* | osf* | solaris*)
21538 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21539 ;;
21540 esac
21541
21542 fi
21543 rm -f conftest*
21544
21545
21546 fi
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21548 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21549 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21550 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21551 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21552 ax_pthread_special_flags_added=yes
21553 fi
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21556 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21557 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21558 $as_echo_n "(cached) " >&6
21559 else
21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21561 /* end confdefs.h. */
21562 #include <pthread.h>
21563 int
21564 main ()
21565 {
21566 int i = PTHREAD_PRIO_INHERIT;
21567 ;
21568 return 0;
21569 }
21570 _ACEOF
21571 if ac_fn_c_try_link "$LINENO"; then :
21572 ax_cv_PTHREAD_PRIO_INHERIT=yes
21573 else
21574 ax_cv_PTHREAD_PRIO_INHERIT=no
21575 fi
21576 rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21578
21579 fi
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21581 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21582 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21583
21584 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21585
21586 fi
21587
21588 LIBS="$save_LIBS"
21589 CFLAGS="$save_CFLAGS"
21590
21591 # More AIX lossage: compile with *_r variant
21592 if test "x$GCC" != xyes; then
21593 case $host_os in
21594 aix*)
21595 case "x/$CC" in #(
21596 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21597 #handle absolute path differently from PATH based program lookup
21598 case "x$CC" in #(
21599 x/*) :
21600 if as_fn_executable_p ${CC}_r; then :
21601 PTHREAD_CC="${CC}_r"
21602 fi ;; #(
21603 *) :
21604 for ac_prog in ${CC}_r
21605 do
21606 # Extract the first word of "$ac_prog", so it can be a program name with args.
21607 set dummy $ac_prog; ac_word=$2
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21609 $as_echo_n "checking for $ac_word... " >&6; }
21610 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21611 $as_echo_n "(cached) " >&6
21612 else
21613 if test -n "$PTHREAD_CC"; then
21614 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21615 else
21616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21617 for as_dir in $PATH
21618 do
21619 IFS=$as_save_IFS
21620 test -z "$as_dir" && as_dir=.
21621 for ac_exec_ext in '' $ac_executable_extensions; do
21622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21623 ac_cv_prog_PTHREAD_CC="$ac_prog"
21624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21625 break 2
21626 fi
21627 done
21628 done
21629 IFS=$as_save_IFS
21630
21631 fi
21632 fi
21633 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21634 if test -n "$PTHREAD_CC"; then
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21636 $as_echo "$PTHREAD_CC" >&6; }
21637 else
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21640 fi
21641
21642
21643 test -n "$PTHREAD_CC" && break
21644 done
21645 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21646 ;;
21647 esac ;; #(
21648 *) :
21649 ;;
21650 esac
21651 ;;
21652 esac
21653 fi
21654 fi
21655
21656 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21657
21658
21659
21660
21661
21662 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21663 if test x"$ax_pthread_ok" = xyes; then
21664
21665 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21666
21667 :
21668 else
21669 ax_pthread_ok=no
21670
21671 fi
21672 ac_ext=cpp
21673 ac_cpp='$CXXCPP $CPPFLAGS'
21674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686 # Check whether --enable-javascript was given.
21687 if test "${enable_javascript+set}" = set; then :
21688 enableval=$enable_javascript;
21689 case $enableval in #(
21690 yes) :
21691
21692
21693
21694
21695 cy_save=$LIBS
21696 LIBS=
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21698 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21699 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21700 $as_echo_n "(cached) " >&6
21701 else
21702 ac_func_search_save_LIBS=$LIBS
21703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704 /* end confdefs.h. */
21705
21706 /* Override any GCC internal prototype to avoid an error.
21707 Use char because int might match the return type of a GCC
21708 builtin and then its argument prototype would still apply. */
21709 #ifdef __cplusplus
21710 extern "C"
21711 #endif
21712 char JSEvaluateScript ();
21713 int
21714 main ()
21715 {
21716 return JSEvaluateScript ();
21717 ;
21718 return 0;
21719 }
21720 _ACEOF
21721 for ac_lib in '' JavaScriptCore; do
21722 if test -z "$ac_lib"; then
21723 ac_res="none required"
21724 else
21725 ac_res=-l$ac_lib
21726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21727 fi
21728 if ac_fn_cxx_try_link "$LINENO"; then :
21729 ac_cv_search_JSEvaluateScript=$ac_res
21730 fi
21731 rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext
21733 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21734 break
21735 fi
21736 done
21737 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21738
21739 else
21740 ac_cv_search_JSEvaluateScript=no
21741 fi
21742 rm conftest.$ac_ext
21743 LIBS=$ac_func_search_save_LIBS
21744 fi
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21746 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21747 ac_res=$ac_cv_search_JSEvaluateScript
21748 if test "$ac_res" != no; then :
21749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21750
21751 CY_EXECUTE=1
21752
21753
21754 else
21755
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21757 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
21758 if ${ac_cv_framework_JavaScriptCore+:} false; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761
21762 ac_check_framework_save_LIBS=$LIBS
21763 LIBS="-framework JavaScriptCore $LIBS"
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h. */
21766
21767 #include <JavaScriptCore/JSBase.h>
21768
21769 int
21770 main ()
21771 {
21772
21773 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21774
21775 ;
21776 return 0;
21777 }
21778 _ACEOF
21779 if ac_fn_cxx_try_link "$LINENO"; then :
21780
21781 ac_cv_framework_JavaScriptCore=yes
21782
21783 else
21784 ac_cv_framework_JavaScriptCore=no
21785 fi
21786 rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_framework_save_LIBS
21789
21790 fi
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21792 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21793 if test $ac_cv_framework_JavaScriptCore = yes; then :
21794
21795
21796 for element in "-framework JavaScriptCore"; do
21797 haveit=
21798 for x in $LIBS; do
21799
21800 acl_save_prefix="$prefix"
21801 prefix="$acl_final_prefix"
21802 acl_save_exec_prefix="$exec_prefix"
21803 exec_prefix="$acl_final_exec_prefix"
21804 eval x=\"$x\"
21805 exec_prefix="$acl_save_exec_prefix"
21806 prefix="$acl_save_prefix"
21807
21808 if test "X$x" = "X$element"; then
21809 haveit=yes
21810 break
21811 fi
21812 done
21813 if test -z "$haveit"; then
21814 LIBS="${LIBS}${LIBS:+ }$element"
21815 fi
21816 done
21817
21818
21819 CY_EXECUTE=1
21820
21821
21822
21823 else
21824
21825 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
21826
21827 pkg_failed=no
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
21829 $as_echo_n "checking for WEBKIT... " >&6; }
21830
21831 if test -n "$WEBKIT_CFLAGS"; then
21832 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21833 elif test -n "$PKG_CONFIG"; then
21834 if test -n "$PKG_CONFIG" && \
21835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21836 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; then
21840 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
21841 test "x$?" != "x0" && pkg_failed=yes
21842 else
21843 pkg_failed=yes
21844 fi
21845 else
21846 pkg_failed=untried
21847 fi
21848 if test -n "$WEBKIT_LIBS"; then
21849 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21850 elif test -n "$PKG_CONFIG"; then
21851 if test -n "$PKG_CONFIG" && \
21852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21853 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21854 ac_status=$?
21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856 test $ac_status = 0; }; then
21857 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
21858 test "x$?" != "x0" && pkg_failed=yes
21859 else
21860 pkg_failed=yes
21861 fi
21862 else
21863 pkg_failed=untried
21864 fi
21865
21866
21867
21868 if test $pkg_failed = yes; then
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870 $as_echo "no" >&6; }
21871
21872 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21873 _pkg_short_errors_supported=yes
21874 else
21875 _pkg_short_errors_supported=no
21876 fi
21877 if test $_pkg_short_errors_supported = yes; then
21878 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21879 else
21880 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
21881 fi
21882 # Put the nasty error message in config.log where it belongs
21883 echo "$WEBKIT_PKG_ERRORS" >&5
21884
21885 :
21886 elif test $pkg_failed = untried; then
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21888 $as_echo "no" >&6; }
21889 :
21890 else
21891 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21892 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21894 $as_echo "yes" >&6; }
21895
21896 CY_EXECUTE=1
21897
21898
21899 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21900 haveit=
21901 for x in $CPPFLAGS; do
21902
21903 acl_save_prefix="$prefix"
21904 prefix="$acl_final_prefix"
21905 acl_save_exec_prefix="$exec_prefix"
21906 exec_prefix="$acl_final_exec_prefix"
21907 eval x=\"$x\"
21908 exec_prefix="$acl_save_exec_prefix"
21909 prefix="$acl_save_prefix"
21910
21911 if test "X$x" = "X$element"; then
21912 haveit=yes
21913 break
21914 fi
21915 done
21916 if test -z "$haveit"; then
21917 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21918 fi
21919 done
21920
21921
21922 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
21923 haveit=
21924 for x in $LIBS; do
21925
21926 acl_save_prefix="$prefix"
21927 prefix="$acl_final_prefix"
21928 acl_save_exec_prefix="$exec_prefix"
21929 exec_prefix="$acl_final_exec_prefix"
21930 eval x=\"$x\"
21931 exec_prefix="$acl_save_exec_prefix"
21932 prefix="$acl_save_prefix"
21933
21934 if test "X$x" = "X$element"; then
21935 haveit=yes
21936 break
21937 fi
21938 done
21939 if test -z "$haveit"; then
21940 LIBS="${LIBS}${LIBS:+ }$element"
21941 fi
21942 done
21943
21944
21945 fi; if test "x$CY_EXECUTE" = x1; then break; fi
21946 done
21947
21948 fi
21949 fi
21950
21951 LTJAVASCRIPTCORE=$LIBS
21952 LIBS=$cy_save
21953
21954
21955 ;; #(
21956 no) :
21957
21958 CY_EXECUTE=0
21959 ;; #(
21960 JavaScriptCore) :
21961
21962
21963
21964 cy_save=$LIBS
21965 LIBS=
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21967 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21968 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21969 $as_echo_n "(cached) " >&6
21970 else
21971 ac_func_search_save_LIBS=$LIBS
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21974
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char JSEvaluateScript ();
21982 int
21983 main ()
21984 {
21985 return JSEvaluateScript ();
21986 ;
21987 return 0;
21988 }
21989 _ACEOF
21990 for ac_lib in '' JavaScriptCore; do
21991 if test -z "$ac_lib"; then
21992 ac_res="none required"
21993 else
21994 ac_res=-l$ac_lib
21995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21996 fi
21997 if ac_fn_cxx_try_link "$LINENO"; then :
21998 ac_cv_search_JSEvaluateScript=$ac_res
21999 fi
22000 rm -f core conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext
22002 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22003 break
22004 fi
22005 done
22006 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22007
22008 else
22009 ac_cv_search_JSEvaluateScript=no
22010 fi
22011 rm conftest.$ac_ext
22012 LIBS=$ac_func_search_save_LIBS
22013 fi
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22015 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22016 ac_res=$ac_cv_search_JSEvaluateScript
22017 if test "$ac_res" != no; then :
22018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22019
22020 CY_EXECUTE=1
22021
22022
22023 else
22024
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22026 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
22027 if ${ac_cv_framework_JavaScriptCore+:} false; then :
22028 $as_echo_n "(cached) " >&6
22029 else
22030
22031 ac_check_framework_save_LIBS=$LIBS
22032 LIBS="-framework JavaScriptCore $LIBS"
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22035
22036 #include <JavaScriptCore/JSBase.h>
22037
22038 int
22039 main ()
22040 {
22041
22042 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22043
22044 ;
22045 return 0;
22046 }
22047 _ACEOF
22048 if ac_fn_cxx_try_link "$LINENO"; then :
22049
22050 ac_cv_framework_JavaScriptCore=yes
22051
22052 else
22053 ac_cv_framework_JavaScriptCore=no
22054 fi
22055 rm -f core conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
22057 LIBS=$ac_check_framework_save_LIBS
22058
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22061 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22062 if test $ac_cv_framework_JavaScriptCore = yes; then :
22063
22064
22065 for element in "-framework JavaScriptCore"; do
22066 haveit=
22067 for x in $LIBS; do
22068
22069 acl_save_prefix="$prefix"
22070 prefix="$acl_final_prefix"
22071 acl_save_exec_prefix="$exec_prefix"
22072 exec_prefix="$acl_final_exec_prefix"
22073 eval x=\"$x\"
22074 exec_prefix="$acl_save_exec_prefix"
22075 prefix="$acl_save_prefix"
22076
22077 if test "X$x" = "X$element"; then
22078 haveit=yes
22079 break
22080 fi
22081 done
22082 if test -z "$haveit"; then
22083 LIBS="${LIBS}${LIBS:+ }$element"
22084 fi
22085 done
22086
22087
22088 CY_EXECUTE=1
22089
22090
22091
22092 else
22093
22094 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22095
22096 pkg_failed=no
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22098 $as_echo_n "checking for WEBKIT... " >&6; }
22099
22100 if test -n "$WEBKIT_CFLAGS"; then
22101 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22102 elif test -n "$PKG_CONFIG"; then
22103 if test -n "$PKG_CONFIG" && \
22104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22105 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22106 ac_status=$?
22107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22108 test $ac_status = 0; }; then
22109 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22110 test "x$?" != "x0" && pkg_failed=yes
22111 else
22112 pkg_failed=yes
22113 fi
22114 else
22115 pkg_failed=untried
22116 fi
22117 if test -n "$WEBKIT_LIBS"; then
22118 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22119 elif test -n "$PKG_CONFIG"; then
22120 if test -n "$PKG_CONFIG" && \
22121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22122 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22123 ac_status=$?
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; then
22126 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22127 test "x$?" != "x0" && pkg_failed=yes
22128 else
22129 pkg_failed=yes
22130 fi
22131 else
22132 pkg_failed=untried
22133 fi
22134
22135
22136
22137 if test $pkg_failed = yes; then
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139 $as_echo "no" >&6; }
22140
22141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22142 _pkg_short_errors_supported=yes
22143 else
22144 _pkg_short_errors_supported=no
22145 fi
22146 if test $_pkg_short_errors_supported = yes; then
22147 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22148 else
22149 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22150 fi
22151 # Put the nasty error message in config.log where it belongs
22152 echo "$WEBKIT_PKG_ERRORS" >&5
22153
22154 :
22155 elif test $pkg_failed = untried; then
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157 $as_echo "no" >&6; }
22158 :
22159 else
22160 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22161 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163 $as_echo "yes" >&6; }
22164
22165 CY_EXECUTE=1
22166
22167
22168 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22169 haveit=
22170 for x in $CPPFLAGS; do
22171
22172 acl_save_prefix="$prefix"
22173 prefix="$acl_final_prefix"
22174 acl_save_exec_prefix="$exec_prefix"
22175 exec_prefix="$acl_final_exec_prefix"
22176 eval x=\"$x\"
22177 exec_prefix="$acl_save_exec_prefix"
22178 prefix="$acl_save_prefix"
22179
22180 if test "X$x" = "X$element"; then
22181 haveit=yes
22182 break
22183 fi
22184 done
22185 if test -z "$haveit"; then
22186 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22187 fi
22188 done
22189
22190
22191 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22192 haveit=
22193 for x in $LIBS; do
22194
22195 acl_save_prefix="$prefix"
22196 prefix="$acl_final_prefix"
22197 acl_save_exec_prefix="$exec_prefix"
22198 exec_prefix="$acl_final_exec_prefix"
22199 eval x=\"$x\"
22200 exec_prefix="$acl_save_exec_prefix"
22201 prefix="$acl_save_prefix"
22202
22203 if test "X$x" = "X$element"; then
22204 haveit=yes
22205 break
22206 fi
22207 done
22208 if test -z "$haveit"; then
22209 LIBS="${LIBS}${LIBS:+ }$element"
22210 fi
22211 done
22212
22213
22214 fi; if test "x$CY_EXECUTE" = x1; then break; fi
22215 done
22216
22217 fi
22218 fi
22219
22220 LTJAVASCRIPTCORE=$LIBS
22221 LIBS=$cy_save
22222
22223
22224 ;; #(
22225 *) :
22226 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22227 esac
22228
22229 else
22230
22231
22232
22233 cy_save=$LIBS
22234 LIBS=
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22236 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22237 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 ac_func_search_save_LIBS=$LIBS
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243
22244 /* Override any GCC internal prototype to avoid an error.
22245 Use char because int might match the return type of a GCC
22246 builtin and then its argument prototype would still apply. */
22247 #ifdef __cplusplus
22248 extern "C"
22249 #endif
22250 char JSEvaluateScript ();
22251 int
22252 main ()
22253 {
22254 return JSEvaluateScript ();
22255 ;
22256 return 0;
22257 }
22258 _ACEOF
22259 for ac_lib in '' JavaScriptCore; do
22260 if test -z "$ac_lib"; then
22261 ac_res="none required"
22262 else
22263 ac_res=-l$ac_lib
22264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22265 fi
22266 if ac_fn_cxx_try_link "$LINENO"; then :
22267 ac_cv_search_JSEvaluateScript=$ac_res
22268 fi
22269 rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext
22271 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22272 break
22273 fi
22274 done
22275 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22276
22277 else
22278 ac_cv_search_JSEvaluateScript=no
22279 fi
22280 rm conftest.$ac_ext
22281 LIBS=$ac_func_search_save_LIBS
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22284 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22285 ac_res=$ac_cv_search_JSEvaluateScript
22286 if test "$ac_res" != no; then :
22287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22288
22289 CY_EXECUTE=1
22290
22291
22292 else
22293
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22295 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
22296 if ${ac_cv_framework_JavaScriptCore+:} false; then :
22297 $as_echo_n "(cached) " >&6
22298 else
22299
22300 ac_check_framework_save_LIBS=$LIBS
22301 LIBS="-framework JavaScriptCore $LIBS"
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h. */
22304
22305 #include <JavaScriptCore/JSBase.h>
22306
22307 int
22308 main ()
22309 {
22310
22311 JSEvaluateScript(0, 0, 0, 0, 0, 0);
22312
22313 ;
22314 return 0;
22315 }
22316 _ACEOF
22317 if ac_fn_cxx_try_link "$LINENO"; then :
22318
22319 ac_cv_framework_JavaScriptCore=yes
22320
22321 else
22322 ac_cv_framework_JavaScriptCore=no
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_framework_save_LIBS
22327
22328 fi
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22330 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22331 if test $ac_cv_framework_JavaScriptCore = yes; then :
22332
22333
22334 for element in "-framework JavaScriptCore"; do
22335 haveit=
22336 for x in $LIBS; do
22337
22338 acl_save_prefix="$prefix"
22339 prefix="$acl_final_prefix"
22340 acl_save_exec_prefix="$exec_prefix"
22341 exec_prefix="$acl_final_exec_prefix"
22342 eval x=\"$x\"
22343 exec_prefix="$acl_save_exec_prefix"
22344 prefix="$acl_save_prefix"
22345
22346 if test "X$x" = "X$element"; then
22347 haveit=yes
22348 break
22349 fi
22350 done
22351 if test -z "$haveit"; then
22352 LIBS="${LIBS}${LIBS:+ }$element"
22353 fi
22354 done
22355
22356
22357 CY_EXECUTE=1
22358
22359
22360
22361 else
22362
22363 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
22364
22365 pkg_failed=no
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22367 $as_echo_n "checking for WEBKIT... " >&6; }
22368
22369 if test -n "$WEBKIT_CFLAGS"; then
22370 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22371 elif test -n "$PKG_CONFIG"; then
22372 if test -n "$PKG_CONFIG" && \
22373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22374 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22375 ac_status=$?
22376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22377 test $ac_status = 0; }; then
22378 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
22379 test "x$?" != "x0" && pkg_failed=yes
22380 else
22381 pkg_failed=yes
22382 fi
22383 else
22384 pkg_failed=untried
22385 fi
22386 if test -n "$WEBKIT_LIBS"; then
22387 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22388 elif test -n "$PKG_CONFIG"; then
22389 if test -n "$PKG_CONFIG" && \
22390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22391 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22392 ac_status=$?
22393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22394 test $ac_status = 0; }; then
22395 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
22396 test "x$?" != "x0" && pkg_failed=yes
22397 else
22398 pkg_failed=yes
22399 fi
22400 else
22401 pkg_failed=untried
22402 fi
22403
22404
22405
22406 if test $pkg_failed = yes; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22409
22410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22411 _pkg_short_errors_supported=yes
22412 else
22413 _pkg_short_errors_supported=no
22414 fi
22415 if test $_pkg_short_errors_supported = yes; then
22416 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22417 else
22418 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
22419 fi
22420 # Put the nasty error message in config.log where it belongs
22421 echo "$WEBKIT_PKG_ERRORS" >&5
22422
22423 :
22424 elif test $pkg_failed = untried; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427 :
22428 else
22429 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22430 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22432 $as_echo "yes" >&6; }
22433
22434 CY_EXECUTE=1
22435
22436
22437 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22438 haveit=
22439 for x in $CPPFLAGS; do
22440
22441 acl_save_prefix="$prefix"
22442 prefix="$acl_final_prefix"
22443 acl_save_exec_prefix="$exec_prefix"
22444 exec_prefix="$acl_final_exec_prefix"
22445 eval x=\"$x\"
22446 exec_prefix="$acl_save_exec_prefix"
22447 prefix="$acl_save_prefix"
22448
22449 if test "X$x" = "X$element"; then
22450 haveit=yes
22451 break
22452 fi
22453 done
22454 if test -z "$haveit"; then
22455 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22456 fi
22457 done
22458
22459
22460 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22461 haveit=
22462 for x in $LIBS; do
22463
22464 acl_save_prefix="$prefix"
22465 prefix="$acl_final_prefix"
22466 acl_save_exec_prefix="$exec_prefix"
22467 exec_prefix="$acl_final_exec_prefix"
22468 eval x=\"$x\"
22469 exec_prefix="$acl_save_exec_prefix"
22470 prefix="$acl_save_prefix"
22471
22472 if test "X$x" = "X$element"; then
22473 haveit=yes
22474 break
22475 fi
22476 done
22477 if test -z "$haveit"; then
22478 LIBS="${LIBS}${LIBS:+ }$element"
22479 fi
22480 done
22481
22482
22483 fi; if test "x$CY_EXECUTE" = x1; then break; fi
22484 done
22485
22486 fi
22487 fi
22488
22489 LTJAVASCRIPTCORE=$LIBS
22490 LIBS=$cy_save
22491
22492
22493
22494 fi
22495
22496
22497 # Check whether --enable-console was given.
22498 if test "${enable_console+set}" = set; then :
22499 enableval=$enable_console;
22500 fi
22501
22502 if test "x$enable_console" != "xno"; then
22503 CY_CONSOLE_TRUE=
22504 CY_CONSOLE_FALSE='#'
22505 else
22506 CY_CONSOLE_TRUE='#'
22507 CY_CONSOLE_FALSE=
22508 fi
22509
22510
22511 # Check whether --enable-attach was given.
22512 if test "${enable_attach+set}" = set; then :
22513 enableval=$enable_attach;
22514 fi
22515
22516 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22517 CY_ATTACH_TRUE=
22518 CY_ATTACH_FALSE='#'
22519 else
22520 CY_ATTACH_TRUE='#'
22521 CY_ATTACH_FALSE=
22522 fi
22523
22524
22525
22526
22527 if test "x$CY_EXECUTE" = x1; then
22528 CY_EXECUTE_TRUE=
22529 CY_EXECUTE_FALSE='#'
22530 else
22531 CY_EXECUTE_TRUE='#'
22532 CY_EXECUTE_FALSE=
22533 fi
22534
22535
22536 if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22537
22538
22539
22540 case $CY_EXECUTE in #(
22541 1) :
22542
22543
22544 cy_save=$LIBS
22545 LIBS=
22546 for ac_header in uv.h
22547 do :
22548 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22549 if test "x$ac_cv_header_uv_h" = xyes; then :
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_UV_H 1
22552 _ACEOF
22553
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22555 $as_echo_n "checking for library containing uv_loop_init... " >&6; }
22556 if ${ac_cv_search_uv_loop_init+:} false; then :
22557 $as_echo_n "(cached) " >&6
22558 else
22559 ac_func_search_save_LIBS=$LIBS
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22562
22563 /* Override any GCC internal prototype to avoid an error.
22564 Use char because int might match the return type of a GCC
22565 builtin and then its argument prototype would still apply. */
22566 #ifdef __cplusplus
22567 extern "C"
22568 #endif
22569 char uv_loop_init ();
22570 int
22571 main ()
22572 {
22573 return uv_loop_init ();
22574 ;
22575 return 0;
22576 }
22577 _ACEOF
22578 for ac_lib in '' uv; do
22579 if test -z "$ac_lib"; then
22580 ac_res="none required"
22581 else
22582 ac_res=-l$ac_lib
22583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22584 fi
22585 if ac_fn_cxx_try_link "$LINENO"; then :
22586 ac_cv_search_uv_loop_init=$ac_res
22587 fi
22588 rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext
22590 if ${ac_cv_search_uv_loop_init+:} false; then :
22591 break
22592 fi
22593 done
22594 if ${ac_cv_search_uv_loop_init+:} false; then :
22595
22596 else
22597 ac_cv_search_uv_loop_init=no
22598 fi
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22603 $as_echo "$ac_cv_search_uv_loop_init" >&6; }
22604 ac_res=$ac_cv_search_uv_loop_init
22605 if test "$ac_res" != no; then :
22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607
22608 fi
22609
22610
22611 fi
22612
22613 done
22614
22615 LTLIBUV=$LIBS
22616 LIBS=$cy_save
22617
22618
22619
22620
22621 cy_save=$LIBS
22622 LIBS=
22623 for ac_header in sqlite3.h
22624 do :
22625 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22626 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22627 cat >>confdefs.h <<_ACEOF
22628 #define HAVE_SQLITE3_H 1
22629 _ACEOF
22630
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22632 $as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22633 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22634 $as_echo_n "(cached) " >&6
22635 else
22636 ac_func_search_save_LIBS=$LIBS
22637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h. */
22639
22640 /* Override any GCC internal prototype to avoid an error.
22641 Use char because int might match the return type of a GCC
22642 builtin and then its argument prototype would still apply. */
22643 #ifdef __cplusplus
22644 extern "C"
22645 #endif
22646 char sqlite3_open_v2 ();
22647 int
22648 main ()
22649 {
22650 return sqlite3_open_v2 ();
22651 ;
22652 return 0;
22653 }
22654 _ACEOF
22655 for ac_lib in '' sqlite3; do
22656 if test -z "$ac_lib"; then
22657 ac_res="none required"
22658 else
22659 ac_res=-l$ac_lib
22660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22661 fi
22662 if ac_fn_cxx_try_link "$LINENO"; then :
22663 ac_cv_search_sqlite3_open_v2=$ac_res
22664 fi
22665 rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext
22667 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22668 break
22669 fi
22670 done
22671 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22672
22673 else
22674 ac_cv_search_sqlite3_open_v2=no
22675 fi
22676 rm conftest.$ac_ext
22677 LIBS=$ac_func_search_save_LIBS
22678 fi
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22680 $as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22681 ac_res=$ac_cv_search_sqlite3_open_v2
22682 if test "$ac_res" != no; then :
22683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22684
22685 fi
22686
22687
22688 fi
22689
22690 done
22691
22692 LTLIBSQLITE3=$LIBS
22693 LIBS=$cy_save
22694
22695
22696
22697 for ac_header in ffi.h ffi/ffi.h
22698 do :
22699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22700 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22702 cat >>confdefs.h <<_ACEOF
22703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22704 _ACEOF
22705 break
22706 fi
22707
22708 done
22709
22710
22711
22712 cy_save=$LIBS
22713 LIBS=
22714 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
22715
22716
22717
22718 pkg_failed=no
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22720 $as_echo_n "checking for LIBFFI... " >&6; }
22721
22722 if test -n "$LIBFFI_CFLAGS"; then
22723 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22724 elif test -n "$PKG_CONFIG"; then
22725 if test -n "$PKG_CONFIG" && \
22726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22727 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22728 ac_status=$?
22729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730 test $ac_status = 0; }; then
22731 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22732 test "x$?" != "x0" && pkg_failed=yes
22733 else
22734 pkg_failed=yes
22735 fi
22736 else
22737 pkg_failed=untried
22738 fi
22739 if test -n "$LIBFFI_LIBS"; then
22740 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22741 elif test -n "$PKG_CONFIG"; then
22742 if test -n "$PKG_CONFIG" && \
22743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22744 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22745 ac_status=$?
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; then
22748 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22749 test "x$?" != "x0" && pkg_failed=yes
22750 else
22751 pkg_failed=yes
22752 fi
22753 else
22754 pkg_failed=untried
22755 fi
22756
22757
22758
22759 if test $pkg_failed = yes; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22762
22763 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22764 _pkg_short_errors_supported=yes
22765 else
22766 _pkg_short_errors_supported=no
22767 fi
22768 if test $_pkg_short_errors_supported = yes; then
22769 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22770 else
22771 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22772 fi
22773 # Put the nasty error message in config.log where it belongs
22774 echo "$LIBFFI_PKG_ERRORS" >&5
22775
22776 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22777 elif test $pkg_failed = untried; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22779 $as_echo "no" >&6; }
22780 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22781 else
22782 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22783 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22785 $as_echo "yes" >&6; }
22786
22787
22788 for element in `$PKG_CONFIG --cflags libffi`; do
22789 haveit=
22790 for x in $CPPFLAGS; do
22791
22792 acl_save_prefix="$prefix"
22793 prefix="$acl_final_prefix"
22794 acl_save_exec_prefix="$exec_prefix"
22795 exec_prefix="$acl_final_exec_prefix"
22796 eval x=\"$x\"
22797 exec_prefix="$acl_save_exec_prefix"
22798 prefix="$acl_save_prefix"
22799
22800 if test "X$x" = "X$element"; then
22801 haveit=yes
22802 break
22803 fi
22804 done
22805 if test -z "$haveit"; then
22806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22807 fi
22808 done
22809
22810
22811 for element in `$PKG_CONFIG --libs libffi`; do
22812 haveit=
22813 for x in $LIBS; do
22814
22815 acl_save_prefix="$prefix"
22816 prefix="$acl_final_prefix"
22817 acl_save_exec_prefix="$exec_prefix"
22818 exec_prefix="$acl_final_exec_prefix"
22819 eval x=\"$x\"
22820 exec_prefix="$acl_save_exec_prefix"
22821 prefix="$acl_save_prefix"
22822
22823 if test "X$x" = "X$element"; then
22824 haveit=yes
22825 break
22826 fi
22827 done
22828 if test -z "$haveit"; then
22829 LIBS="${LIBS}${LIBS:+ }$element"
22830 fi
22831 done
22832
22833
22834 fi
22835
22836 else
22837
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22839 $as_echo_n "checking for library containing ffi_call... " >&6; }
22840 if ${ac_cv_search_ffi_call+:} false; then :
22841 $as_echo_n "(cached) " >&6
22842 else
22843 ac_func_search_save_LIBS=$LIBS
22844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22845 /* end confdefs.h. */
22846
22847 /* Override any GCC internal prototype to avoid an error.
22848 Use char because int might match the return type of a GCC
22849 builtin and then its argument prototype would still apply. */
22850 #ifdef __cplusplus
22851 extern "C"
22852 #endif
22853 char ffi_call ();
22854 int
22855 main ()
22856 {
22857 return ffi_call ();
22858 ;
22859 return 0;
22860 }
22861 _ACEOF
22862 for ac_lib in '' ffi; do
22863 if test -z "$ac_lib"; then
22864 ac_res="none required"
22865 else
22866 ac_res=-l$ac_lib
22867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22868 fi
22869 if ac_fn_cxx_try_link "$LINENO"; then :
22870 ac_cv_search_ffi_call=$ac_res
22871 fi
22872 rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext
22874 if ${ac_cv_search_ffi_call+:} false; then :
22875 break
22876 fi
22877 done
22878 if ${ac_cv_search_ffi_call+:} false; then :
22879
22880 else
22881 ac_cv_search_ffi_call=no
22882 fi
22883 rm conftest.$ac_ext
22884 LIBS=$ac_func_search_save_LIBS
22885 fi
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22887 $as_echo "$ac_cv_search_ffi_call" >&6; }
22888 ac_res=$ac_cv_search_ffi_call
22889 if test "$ac_res" != no; then :
22890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22891
22892 fi
22893
22894 case $ac_cv_search_ffi_call in #(
22895 no) :
22896
22897
22898 pkg_failed=no
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22900 $as_echo_n "checking for LIBFFI... " >&6; }
22901
22902 if test -n "$LIBFFI_CFLAGS"; then
22903 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
22904 elif test -n "$PKG_CONFIG"; then
22905 if test -n "$PKG_CONFIG" && \
22906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22907 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22908 ac_status=$?
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; then
22911 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
22912 test "x$?" != "x0" && pkg_failed=yes
22913 else
22914 pkg_failed=yes
22915 fi
22916 else
22917 pkg_failed=untried
22918 fi
22919 if test -n "$LIBFFI_LIBS"; then
22920 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
22921 elif test -n "$PKG_CONFIG"; then
22922 if test -n "$PKG_CONFIG" && \
22923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22924 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
22925 ac_status=$?
22926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22927 test $ac_status = 0; }; then
22928 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
22929 test "x$?" != "x0" && pkg_failed=yes
22930 else
22931 pkg_failed=yes
22932 fi
22933 else
22934 pkg_failed=untried
22935 fi
22936
22937
22938
22939 if test $pkg_failed = yes; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22941 $as_echo "no" >&6; }
22942
22943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22944 _pkg_short_errors_supported=yes
22945 else
22946 _pkg_short_errors_supported=no
22947 fi
22948 if test $_pkg_short_errors_supported = yes; then
22949 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
22950 else
22951 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
22952 fi
22953 # Put the nasty error message in config.log where it belongs
22954 echo "$LIBFFI_PKG_ERRORS" >&5
22955
22956 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22957 elif test $pkg_failed = untried; then
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22961 else
22962 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22963 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22965 $as_echo "yes" >&6; }
22966
22967
22968 for element in `$PKG_CONFIG --cflags libffi`; do
22969 haveit=
22970 for x in $CPPFLAGS; do
22971
22972 acl_save_prefix="$prefix"
22973 prefix="$acl_final_prefix"
22974 acl_save_exec_prefix="$exec_prefix"
22975 exec_prefix="$acl_final_exec_prefix"
22976 eval x=\"$x\"
22977 exec_prefix="$acl_save_exec_prefix"
22978 prefix="$acl_save_prefix"
22979
22980 if test "X$x" = "X$element"; then
22981 haveit=yes
22982 break
22983 fi
22984 done
22985 if test -z "$haveit"; then
22986 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22987 fi
22988 done
22989
22990
22991 for element in `$PKG_CONFIG --libs libffi`; do
22992 haveit=
22993 for x in $LIBS; do
22994
22995 acl_save_prefix="$prefix"
22996 prefix="$acl_final_prefix"
22997 acl_save_exec_prefix="$exec_prefix"
22998 exec_prefix="$acl_final_exec_prefix"
22999 eval x=\"$x\"
23000 exec_prefix="$acl_save_exec_prefix"
23001 prefix="$acl_save_prefix"
23002
23003 if test "X$x" = "X$element"; then
23004 haveit=yes
23005 break
23006 fi
23007 done
23008 if test -z "$haveit"; then
23009 LIBS="${LIBS}${LIBS:+ }$element"
23010 fi
23011 done
23012
23013
23014 fi ;; #(
23015 *) :
23016 ;;
23017 esac
23018 for ac_func in ffi_prep_cif_var
23019 do :
23020 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23021 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_FFI_PREP_CIF_VAR 1
23024 _ACEOF
23025
23026 fi
23027 done
23028
23029
23030 fi
23031 LTLIBFFI=$LIBS
23032 LIBS=$cy_save
23033
23034
23035
23036
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23038 $as_echo_n "checking for framework JavaVM... " >&6; }
23039 if ${ac_cv_framework_JavaVM+:} false; then :
23040 $as_echo_n "(cached) " >&6
23041 else
23042
23043 ac_check_framework_save_LIBS=$LIBS
23044 LIBS="-framework JavaVM $LIBS"
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h. */
23047
23048 #include <JavaVM/jni.h>
23049
23050 int
23051 main ()
23052 {
23053 JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23054 ;
23055 return 0;
23056 }
23057 _ACEOF
23058 if ac_fn_cxx_try_link "$LINENO"; then :
23059
23060 ac_cv_framework_JavaVM=yes
23061
23062 else
23063 ac_cv_framework_JavaVM=no
23064 fi
23065 rm -f core conftest.err conftest.$ac_objext \
23066 conftest$ac_exeext conftest.$ac_ext
23067 LIBS=$ac_check_framework_save_LIBS
23068
23069 fi
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23071 $as_echo "$ac_cv_framework_JavaVM" >&6; }
23072 if test $ac_cv_framework_JavaVM = yes; then :
23073
23074
23075 for element in "-framework JavaVM"; do
23076 haveit=
23077 for x in $LIBS; do
23078
23079 acl_save_prefix="$prefix"
23080 prefix="$acl_final_prefix"
23081 acl_save_exec_prefix="$exec_prefix"
23082 exec_prefix="$acl_final_exec_prefix"
23083 eval x=\"$x\"
23084 exec_prefix="$acl_save_exec_prefix"
23085 prefix="$acl_save_prefix"
23086
23087 if test "X$x" = "X$element"; then
23088 haveit=yes
23089 break
23090 fi
23091 done
23092 if test -z "$haveit"; then
23093 LIBS="${LIBS}${LIBS:+ }$element"
23094 fi
23095 done
23096
23097
23098 CY_JAVA=1
23099
23100
23101
23102 else
23103 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
23104 if test "x$ac_cv_header_jni_h" = xyes; then :
23105
23106 CY_JAVA=1
23107
23108
23109 cy_save=$LIBS
23110 LIBS=
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
23112 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
23113 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115 else
23116 ac_func_search_save_LIBS=$LIBS
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23119
23120 /* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 char JNI_GetCreatedJavaVMs ();
23127 int
23128 main ()
23129 {
23130 return JNI_GetCreatedJavaVMs ();
23131 ;
23132 return 0;
23133 }
23134 _ACEOF
23135 for ac_lib in '' dvm; do
23136 if test -z "$ac_lib"; then
23137 ac_res="none required"
23138 else
23139 ac_res=-l$ac_lib
23140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23141 fi
23142 if ac_fn_cxx_try_link "$LINENO"; then :
23143 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
23144 fi
23145 rm -f core conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext
23147 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23148 break
23149 fi
23150 done
23151 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23152
23153 else
23154 ac_cv_search_JNI_GetCreatedJavaVMs=no
23155 fi
23156 rm conftest.$ac_ext
23157 LIBS=$ac_func_search_save_LIBS
23158 fi
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
23160 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
23161 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
23162 if test "$ac_res" != no; then :
23163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23164
23165
23166 fi
23167
23168 LTJAVA=$LIBS
23169 LIBS=$cy_save
23170
23171
23172
23173 else
23174
23175 CY_JAVA=0
23176
23177
23178 fi
23179
23180
23181 fi
23182
23183 ac_ext=mm
23184 ac_cpp='$OBJCXXCPP $CPPFLAGS'
23185 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23186 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23187 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23188
23189
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23191 $as_echo_n "checking if we really have Objective C++... " >&6; }
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193 /* end confdefs.h. */
23194
23195 _ACEOF
23196 if ac_fn_objcxx_try_compile "$LINENO"; then :
23197
23198 CY_OBJECTIVEC=1
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200 $as_echo "yes" >&6; }
23201
23202 else
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23204 $as_echo "no" >&6; }
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207
23208 if test "x$CY_OBJECTIVEC" = x1; then :
23209
23210
23211 cy_save=$LIBS
23212 LIBS=
23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23215 $as_echo_n "checking for framework CoreFoundation... " >&6; }
23216 if ${ac_cv_framework_CoreFoundation+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219
23220 ac_check_framework_save_LIBS=$LIBS
23221 LIBS="-framework CoreFoundation $LIBS"
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225 #include <CoreFoundation/CFBase.h>
23226
23227 int
23228 main ()
23229 {
23230 CFAllocatorGetDefault();
23231 ;
23232 return 0;
23233 }
23234 _ACEOF
23235 if ac_fn_objcxx_try_link "$LINENO"; then :
23236
23237 ac_cv_framework_CoreFoundation=yes
23238
23239 else
23240 ac_cv_framework_CoreFoundation=no
23241 fi
23242 rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_framework_save_LIBS
23245
23246 fi
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23248 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23249 if test $ac_cv_framework_CoreFoundation = yes; then :
23250
23251
23252 for element in "-framework CoreFoundation"; do
23253 haveit=
23254 for x in $LIBS; do
23255
23256 acl_save_prefix="$prefix"
23257 prefix="$acl_final_prefix"
23258 acl_save_exec_prefix="$exec_prefix"
23259 exec_prefix="$acl_final_exec_prefix"
23260 eval x=\"$x\"
23261 exec_prefix="$acl_save_exec_prefix"
23262 prefix="$acl_save_prefix"
23263
23264 if test "X$x" = "X$element"; then
23265 haveit=yes
23266 break
23267 fi
23268 done
23269 if test -z "$haveit"; then
23270 LIBS="${LIBS}${LIBS:+ }$element"
23271 fi
23272 done
23273
23274
23275
23276
23277
23278
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23280 $as_echo_n "checking for framework Foundation... " >&6; }
23281 if ${ac_cv_framework_Foundation+:} false; then :
23282 $as_echo_n "(cached) " >&6
23283 else
23284
23285 ac_check_framework_save_LIBS=$LIBS
23286 LIBS="-framework Foundation $LIBS"
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288 /* end confdefs.h. */
23289
23290 #include <Foundation/NSObject.h>
23291
23292 int
23293 main ()
23294 {
23295 [[NSObject alloc] init];
23296 ;
23297 return 0;
23298 }
23299 _ACEOF
23300 if ac_fn_objcxx_try_link "$LINENO"; then :
23301
23302 ac_cv_framework_Foundation=yes
23303
23304 else
23305 ac_cv_framework_Foundation=no
23306 fi
23307 rm -f core conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23309 LIBS=$ac_check_framework_save_LIBS
23310
23311 fi
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23313 $as_echo "$ac_cv_framework_Foundation" >&6; }
23314 if test $ac_cv_framework_Foundation = yes; then :
23315
23316
23317 for element in "-framework Foundation"; do
23318 haveit=
23319 for x in $LIBS; do
23320
23321 acl_save_prefix="$prefix"
23322 prefix="$acl_final_prefix"
23323 acl_save_exec_prefix="$exec_prefix"
23324 exec_prefix="$acl_final_exec_prefix"
23325 eval x=\"$x\"
23326 exec_prefix="$acl_save_exec_prefix"
23327 prefix="$acl_save_prefix"
23328
23329 if test "X$x" = "X$element"; then
23330 haveit=yes
23331 break
23332 fi
23333 done
23334 if test -z "$haveit"; then
23335 LIBS="${LIBS}${LIBS:+ }$element"
23336 fi
23337 done
23338
23339 cat >>confdefs.h <<_ACEOF
23340 #define HAVE_FRAMEWORK_FOUNDATION 1
23341 _ACEOF
23342
23343
23344 fi
23345
23346
23347 else
23348
23349
23350 for ac_prog in gnustep-config
23351 do
23352 # Extract the first word of "$ac_prog", so it can be a program name with args.
23353 set dummy $ac_prog; ac_word=$2
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23355 $as_echo_n "checking for $ac_word... " >&6; }
23356 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 if test -n "$GNUSTEP_CONFIG"; then
23360 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
23361 else
23362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23363 for as_dir in $PATH
23364 do
23365 IFS=$as_save_IFS
23366 test -z "$as_dir" && as_dir=.
23367 for ac_exec_ext in '' $ac_executable_extensions; do
23368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23369 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23371 break 2
23372 fi
23373 done
23374 done
23375 IFS=$as_save_IFS
23376
23377 fi
23378 fi
23379 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23380 if test -n "$GNUSTEP_CONFIG"; then
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23382 $as_echo "$GNUSTEP_CONFIG" >&6; }
23383 else
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23385 $as_echo "no" >&6; }
23386 fi
23387
23388
23389 test -n "$GNUSTEP_CONFIG" && break
23390 done
23391
23392
23393 if test "x$GNUSTEP_CONFIG" != x; then :
23394
23395
23396
23397 for element in `$GNUSTEP_CONFIG --objc-flags`; do
23398 haveit=
23399 for x in $OBJCXXFLAGS; do
23400
23401 acl_save_prefix="$prefix"
23402 prefix="$acl_final_prefix"
23403 acl_save_exec_prefix="$exec_prefix"
23404 exec_prefix="$acl_final_exec_prefix"
23405 eval x=\"$x\"
23406 exec_prefix="$acl_save_exec_prefix"
23407 prefix="$acl_save_prefix"
23408
23409 if test "X$x" = "X$element"; then
23410 haveit=yes
23411 break
23412 fi
23413 done
23414 if test -z "$haveit"; then
23415 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23416 fi
23417 done
23418
23419
23420 for element in `$GNUSTEP_CONFIG --base-libs`; do
23421 haveit=
23422 for x in $LIBS; do
23423
23424 acl_save_prefix="$prefix"
23425 prefix="$acl_final_prefix"
23426 acl_save_exec_prefix="$exec_prefix"
23427 exec_prefix="$acl_final_exec_prefix"
23428 eval x=\"$x\"
23429 exec_prefix="$acl_save_exec_prefix"
23430 prefix="$acl_save_prefix"
23431
23432 if test "X$x" = "X$element"; then
23433 haveit=yes
23434 break
23435 fi
23436 done
23437 if test -z "$haveit"; then
23438 LIBS="${LIBS}${LIBS:+ }$element"
23439 fi
23440 done
23441
23442
23443 else
23444 CY_OBJECTIVEC=0
23445
23446 fi
23447
23448 fi
23449 LTOBJECTIVEC=$LIBS
23450 LIBS=$cy_save
23451
23452
23453
23454 fi
23455
23456 ac_ext=cpp
23457 ac_cpp='$CXXCPP $CPPFLAGS'
23458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23461
23462 ;; #(
23463 *) :
23464 ;;
23465 esac
23466
23467 if test "x$CY_JAVA" = x1; then
23468 CY_JAVA_TRUE=
23469 CY_JAVA_FALSE='#'
23470 else
23471 CY_JAVA_TRUE='#'
23472 CY_JAVA_FALSE=
23473 fi
23474
23475 if test "x$CY_OBJECTIVEC" = x1; then
23476 CY_OBJECTIVEC_TRUE=
23477 CY_OBJECTIVEC_FALSE='#'
23478 else
23479 CY_OBJECTIVEC_TRUE='#'
23480 CY_OBJECTIVEC_FALSE=
23481 fi
23482
23483
23484
23485 # Check whether --with-libclang was given.
23486 if test "${with_libclang+set}" = set; then :
23487 withval=$with_libclang;
23488 else
23489 with_libclang=no
23490 fi
23491
23492
23493 if test "x$with_libclang" != "xno"; then :
23494
23495 CY_LIBCLANG="$with_libclang"
23496
23497 fi
23498 if test "x$with_libclang" != "xno"; then
23499 CY_PRELINK_TRUE=
23500 CY_PRELINK_FALSE='#'
23501 else
23502 CY_PRELINK_TRUE='#'
23503 CY_PRELINK_FALSE=
23504 fi
23505
23506
23507
23508 cy_save=$LIBS
23509 LIBS=
23510
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
23512 $as_echo_n "checking for a readline compatible library... " >&6; }
23513 if ${ax_cv_lib_readline+:} false; then :
23514 $as_echo_n "(cached) " >&6
23515 else
23516
23517 ORIG_LIBS="$LIBS"
23518 for readline_lib in readline edit editline; do
23519 for termcap_lib in "" termcap curses ncurses; do
23520 if test -z "$termcap_lib"; then
23521 TRY_LIB="-l$readline_lib"
23522 else
23523 TRY_LIB="-l$readline_lib -l$termcap_lib"
23524 fi
23525 LIBS="$ORIG_LIBS $TRY_LIB"
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528
23529 /* Override any GCC internal prototype to avoid an error.
23530 Use char because int might match the return type of a GCC
23531 builtin and then its argument prototype would still apply. */
23532 #ifdef __cplusplus
23533 extern "C"
23534 #endif
23535 char readline ();
23536 int
23537 main ()
23538 {
23539 return readline ();
23540 ;
23541 return 0;
23542 }
23543 _ACEOF
23544 if ac_fn_cxx_try_link "$LINENO"; then :
23545 ax_cv_lib_readline="$TRY_LIB"
23546 fi
23547 rm -f core conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
23549 if test -n "$ax_cv_lib_readline"; then
23550 break
23551 fi
23552 done
23553 if test -n "$ax_cv_lib_readline"; then
23554 break
23555 fi
23556 done
23557 if test -z "$ax_cv_lib_readline"; then
23558 ax_cv_lib_readline="no"
23559 fi
23560 LIBS="$ORIG_LIBS"
23561
23562 fi
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
23564 $as_echo "$ax_cv_lib_readline" >&6; }
23565
23566 if test "$ax_cv_lib_readline" != "no"; then
23567 LIBS="$LIBS $ax_cv_lib_readline"
23568
23569 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
23570
23571 for ac_header in readline.h readline/readline.h
23572 do :
23573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23574 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23576 cat >>confdefs.h <<_ACEOF
23577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23578 _ACEOF
23579
23580 fi
23581
23582 done
23583
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
23585 $as_echo_n "checking whether readline supports history... " >&6; }
23586 if ${ax_cv_lib_readline_history+:} false; then :
23587 $as_echo_n "(cached) " >&6
23588 else
23589
23590 ax_cv_lib_readline_history="no"
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592 /* end confdefs.h. */
23593
23594 /* Override any GCC internal prototype to avoid an error.
23595 Use char because int might match the return type of a GCC
23596 builtin and then its argument prototype would still apply. */
23597 #ifdef __cplusplus
23598 extern "C"
23599 #endif
23600 char add_history ();
23601 int
23602 main ()
23603 {
23604 return add_history ();
23605 ;
23606 return 0;
23607 }
23608 _ACEOF
23609 if ac_fn_cxx_try_link "$LINENO"; then :
23610 ax_cv_lib_readline_history="yes"
23611 fi
23612 rm -f core conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
23614
23615 fi
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
23617 $as_echo "$ax_cv_lib_readline_history" >&6; }
23618 if test "$ax_cv_lib_readline_history" = "yes"; then
23619
23620 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
23621
23622 for ac_header in history.h readline/history.h
23623 do :
23624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23625 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23626 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23627 cat >>confdefs.h <<_ACEOF
23628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23629 _ACEOF
23630
23631 fi
23632
23633 done
23634
23635 fi
23636 fi
23637
23638 LTLIBREADLINE=$LIBS
23639 LIBS=$cy_save
23640
23641
23642 case $ax_cv_lib_readline in #(
23643 no) :
23644 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
23645 *) :
23646 ;;
23647 esac
23648
23649
23650 cy_save=$LIBS
23651 LIBS=
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
23653 $as_echo_n "checking for library containing cur_term... " >&6; }
23654 if ${ac_cv_search_cur_term+:} false; then :
23655 $as_echo_n "(cached) " >&6
23656 else
23657 ac_func_search_save_LIBS=$LIBS
23658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23659 /* end confdefs.h. */
23660
23661 /* Override any GCC internal prototype to avoid an error.
23662 Use char because int might match the return type of a GCC
23663 builtin and then its argument prototype would still apply. */
23664 #ifdef __cplusplus
23665 extern "C"
23666 #endif
23667 char cur_term ();
23668 int
23669 main ()
23670 {
23671 return cur_term ();
23672 ;
23673 return 0;
23674 }
23675 _ACEOF
23676 for ac_lib in '' termcap ncurses; do
23677 if test -z "$ac_lib"; then
23678 ac_res="none required"
23679 else
23680 ac_res=-l$ac_lib
23681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23682 fi
23683 if ac_fn_cxx_try_link "$LINENO"; then :
23684 ac_cv_search_cur_term=$ac_res
23685 fi
23686 rm -f core conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext
23688 if ${ac_cv_search_cur_term+:} false; then :
23689 break
23690 fi
23691 done
23692 if ${ac_cv_search_cur_term+:} false; then :
23693
23694 else
23695 ac_cv_search_cur_term=no
23696 fi
23697 rm conftest.$ac_ext
23698 LIBS=$ac_func_search_save_LIBS
23699 fi
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
23701 $as_echo "$ac_cv_search_cur_term" >&6; }
23702 ac_res=$ac_cv_search_cur_term
23703 if test "$ac_res" != no; then :
23704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23705
23706 fi
23707
23708 LTLIBTERMCAP=$LIBS
23709 LIBS=$cy_save
23710
23711
23712
23713
23714
23715
23716 SO=$acl_shlibext
23717
23718
23719 ac_config_files="$ac_config_files Makefile"
23720
23721 cat >confcache <<\_ACEOF
23722 # This file is a shell script that caches the results of configure
23723 # tests run on this system so they can be shared between configure
23724 # scripts and configure runs, see configure's option --config-cache.
23725 # It is not useful on other systems. If it contains results you don't
23726 # want to keep, you may remove or edit it.
23727 #
23728 # config.status only pays attention to the cache file if you give it
23729 # the --recheck option to rerun configure.
23730 #
23731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23733 # following values.
23734
23735 _ACEOF
23736
23737 # The following way of writing the cache mishandles newlines in values,
23738 # but we know of no workaround that is simple, portable, and efficient.
23739 # So, we kill variables containing newlines.
23740 # Ultrix sh set writes to stderr and can't be redirected directly,
23741 # and sets the high bit in the cache file unless we assign to the vars.
23742 (
23743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23744 eval ac_val=\$$ac_var
23745 case $ac_val in #(
23746 *${as_nl}*)
23747 case $ac_var in #(
23748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23750 esac
23751 case $ac_var in #(
23752 _ | IFS | as_nl) ;; #(
23753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23754 *) { eval $ac_var=; unset $ac_var;} ;;
23755 esac ;;
23756 esac
23757 done
23758
23759 (set) 2>&1 |
23760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23761 *${as_nl}ac_space=\ *)
23762 # `set' does not quote correctly, so add quotes: double-quote
23763 # substitution turns \\\\ into \\, and sed turns \\ into \.
23764 sed -n \
23765 "s/'/'\\\\''/g;
23766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23767 ;; #(
23768 *)
23769 # `set' quotes correctly as required by POSIX, so do not add quotes.
23770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23771 ;;
23772 esac |
23773 sort
23774 ) |
23775 sed '
23776 /^ac_cv_env_/b end
23777 t clear
23778 :clear
23779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23780 t end
23781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23782 :end' >>confcache
23783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23784 if test -w "$cache_file"; then
23785 if test "x$cache_file" != "x/dev/null"; then
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23787 $as_echo "$as_me: updating cache $cache_file" >&6;}
23788 if test ! -f "$cache_file" || test -h "$cache_file"; then
23789 cat confcache >"$cache_file"
23790 else
23791 case $cache_file in #(
23792 */* | ?:*)
23793 mv -f confcache "$cache_file"$$ &&
23794 mv -f "$cache_file"$$ "$cache_file" ;; #(
23795 *)
23796 mv -f confcache "$cache_file" ;;
23797 esac
23798 fi
23799 fi
23800 else
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23803 fi
23804 fi
23805 rm -f confcache
23806
23807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23808 # Let make expand exec_prefix.
23809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23810
23811 DEFS=-DHAVE_CONFIG_H
23812
23813 ac_libobjs=
23814 ac_ltlibobjs=
23815 U=
23816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23817 # 1. Remove the extension, and $U if already installed.
23818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23819 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23821 # will be set to the directory where LIBOBJS objects are built.
23822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23824 done
23825 LIBOBJS=$ac_libobjs
23826
23827 LTLIBOBJS=$ac_ltlibobjs
23828
23829
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23831 $as_echo_n "checking that generated files are newer than configure... " >&6; }
23832 if test -n "$am_sleep_pid"; then
23833 # Hide warnings about reused PIDs.
23834 wait $am_sleep_pid 2>/dev/null
23835 fi
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23837 $as_echo "done" >&6; }
23838 if test -n "$EXEEXT"; then
23839 am__EXEEXT_TRUE=
23840 am__EXEEXT_FALSE='#'
23841 else
23842 am__EXEEXT_TRUE='#'
23843 am__EXEEXT_FALSE=
23844 fi
23845
23846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23847 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23849 fi
23850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23851 as_fn_error $? "conditional \"AMDEP\" was never defined.
23852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23853 fi
23854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23855 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23857 fi
23858 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23859 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23861 fi
23862 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
23863 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
23864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23865 fi
23866 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23867 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23869 fi
23870 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23871 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23873 fi
23874 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
23875 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
23876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23877 fi
23878 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
23879 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
23880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23881 fi
23882 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
23883 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
23884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23885 fi
23886 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
23887 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
23888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23889 fi
23890 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
23891 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
23892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23893 fi
23894 if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
23895 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
23896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23897 fi
23898
23899 : "${CONFIG_STATUS=./config.status}"
23900 ac_write_fail=0
23901 ac_clean_files_save=$ac_clean_files
23902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23904 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23905 as_write_fail=0
23906 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23907 #! $SHELL
23908 # Generated by $as_me.
23909 # Run this file to recreate the current configuration.
23910 # Compiler output produced by configure, useful for debugging
23911 # configure, is in config.log if it exists.
23912
23913 debug=false
23914 ac_cs_recheck=false
23915 ac_cs_silent=false
23916
23917 SHELL=\${CONFIG_SHELL-$SHELL}
23918 export SHELL
23919 _ASEOF
23920 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23921 ## -------------------- ##
23922 ## M4sh Initialization. ##
23923 ## -------------------- ##
23924
23925 # Be more Bourne compatible
23926 DUALCASE=1; export DUALCASE # for MKS sh
23927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23928 emulate sh
23929 NULLCMD=:
23930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23931 # is contrary to our usage. Disable this feature.
23932 alias -g '${1+"$@"}'='"$@"'
23933 setopt NO_GLOB_SUBST
23934 else
23935 case `(set -o) 2>/dev/null` in #(
23936 *posix*) :
23937 set -o posix ;; #(
23938 *) :
23939 ;;
23940 esac
23941 fi
23942
23943
23944 as_nl='
23945 '
23946 export as_nl
23947 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23948 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23951 # Prefer a ksh shell builtin over an external printf program on Solaris,
23952 # but without wasting forks for bash or zsh.
23953 if test -z "$BASH_VERSION$ZSH_VERSION" \
23954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23955 as_echo='print -r --'
23956 as_echo_n='print -rn --'
23957 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23958 as_echo='printf %s\n'
23959 as_echo_n='printf %s'
23960 else
23961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23962 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23963 as_echo_n='/usr/ucb/echo -n'
23964 else
23965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23966 as_echo_n_body='eval
23967 arg=$1;
23968 case $arg in #(
23969 *"$as_nl"*)
23970 expr "X$arg" : "X\\(.*\\)$as_nl";
23971 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23972 esac;
23973 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23974 '
23975 export as_echo_n_body
23976 as_echo_n='sh -c $as_echo_n_body as_echo'
23977 fi
23978 export as_echo_body
23979 as_echo='sh -c $as_echo_body as_echo'
23980 fi
23981
23982 # The user is always right.
23983 if test "${PATH_SEPARATOR+set}" != set; then
23984 PATH_SEPARATOR=:
23985 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23986 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23987 PATH_SEPARATOR=';'
23988 }
23989 fi
23990
23991
23992 # IFS
23993 # We need space, tab and new line, in precisely that order. Quoting is
23994 # there to prevent editors from complaining about space-tab.
23995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23996 # splitting by setting IFS to empty value.)
23997 IFS=" "" $as_nl"
23998
23999 # Find who we are. Look in the path if we contain no directory separator.
24000 as_myself=
24001 case $0 in #((
24002 *[\\/]* ) as_myself=$0 ;;
24003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24004 for as_dir in $PATH
24005 do
24006 IFS=$as_save_IFS
24007 test -z "$as_dir" && as_dir=.
24008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24009 done
24010 IFS=$as_save_IFS
24011
24012 ;;
24013 esac
24014 # We did not find ourselves, most probably we were run as `sh COMMAND'
24015 # in which case we are not to be found in the path.
24016 if test "x$as_myself" = x; then
24017 as_myself=$0
24018 fi
24019 if test ! -f "$as_myself"; then
24020 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24021 exit 1
24022 fi
24023
24024 # Unset variables that we do not need and which cause bugs (e.g. in
24025 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24026 # suppresses any "Segmentation fault" message there. '((' could
24027 # trigger a bug in pdksh 5.2.14.
24028 for as_var in BASH_ENV ENV MAIL MAILPATH
24029 do eval test x\${$as_var+set} = xset \
24030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24031 done
24032 PS1='$ '
24033 PS2='> '
24034 PS4='+ '
24035
24036 # NLS nuisances.
24037 LC_ALL=C
24038 export LC_ALL
24039 LANGUAGE=C
24040 export LANGUAGE
24041
24042 # CDPATH.
24043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24044
24045
24046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24047 # ----------------------------------------
24048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24050 # script with STATUS, using 1 if that was 0.
24051 as_fn_error ()
24052 {
24053 as_status=$1; test $as_status -eq 0 && as_status=1
24054 if test "$4"; then
24055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24056 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24057 fi
24058 $as_echo "$as_me: error: $2" >&2
24059 as_fn_exit $as_status
24060 } # as_fn_error
24061
24062
24063 # as_fn_set_status STATUS
24064 # -----------------------
24065 # Set $? to STATUS, without forking.
24066 as_fn_set_status ()
24067 {
24068 return $1
24069 } # as_fn_set_status
24070
24071 # as_fn_exit STATUS
24072 # -----------------
24073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24074 as_fn_exit ()
24075 {
24076 set +e
24077 as_fn_set_status $1
24078 exit $1
24079 } # as_fn_exit
24080
24081 # as_fn_unset VAR
24082 # ---------------
24083 # Portably unset VAR.
24084 as_fn_unset ()
24085 {
24086 { eval $1=; unset $1;}
24087 }
24088 as_unset=as_fn_unset
24089 # as_fn_append VAR VALUE
24090 # ----------------------
24091 # Append the text in VALUE to the end of the definition contained in VAR. Take
24092 # advantage of any shell optimizations that allow amortized linear growth over
24093 # repeated appends, instead of the typical quadratic growth present in naive
24094 # implementations.
24095 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24096 eval 'as_fn_append ()
24097 {
24098 eval $1+=\$2
24099 }'
24100 else
24101 as_fn_append ()
24102 {
24103 eval $1=\$$1\$2
24104 }
24105 fi # as_fn_append
24106
24107 # as_fn_arith ARG...
24108 # ------------------
24109 # Perform arithmetic evaluation on the ARGs, and store the result in the
24110 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24111 # must be portable across $(()) and expr.
24112 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24113 eval 'as_fn_arith ()
24114 {
24115 as_val=$(( $* ))
24116 }'
24117 else
24118 as_fn_arith ()
24119 {
24120 as_val=`expr "$@" || test $? -eq 1`
24121 }
24122 fi # as_fn_arith
24123
24124
24125 if expr a : '\(a\)' >/dev/null 2>&1 &&
24126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24127 as_expr=expr
24128 else
24129 as_expr=false
24130 fi
24131
24132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24133 as_basename=basename
24134 else
24135 as_basename=false
24136 fi
24137
24138 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24139 as_dirname=dirname
24140 else
24141 as_dirname=false
24142 fi
24143
24144 as_me=`$as_basename -- "$0" ||
24145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24146 X"$0" : 'X\(//\)$' \| \
24147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24148 $as_echo X/"$0" |
24149 sed '/^.*\/\([^/][^/]*\)\/*$/{
24150 s//\1/
24151 q
24152 }
24153 /^X\/\(\/\/\)$/{
24154 s//\1/
24155 q
24156 }
24157 /^X\/\(\/\).*/{
24158 s//\1/
24159 q
24160 }
24161 s/.*/./; q'`
24162
24163 # Avoid depending upon Character Ranges.
24164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24167 as_cr_digits='0123456789'
24168 as_cr_alnum=$as_cr_Letters$as_cr_digits
24169
24170 ECHO_C= ECHO_N= ECHO_T=
24171 case `echo -n x` in #(((((
24172 -n*)
24173 case `echo 'xy\c'` in
24174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24175 xy) ECHO_C='\c';;
24176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24177 ECHO_T=' ';;
24178 esac;;
24179 *)
24180 ECHO_N='-n';;
24181 esac
24182
24183 rm -f conf$$ conf$$.exe conf$$.file
24184 if test -d conf$$.dir; then
24185 rm -f conf$$.dir/conf$$.file
24186 else
24187 rm -f conf$$.dir
24188 mkdir conf$$.dir 2>/dev/null
24189 fi
24190 if (echo >conf$$.file) 2>/dev/null; then
24191 if ln -s conf$$.file conf$$ 2>/dev/null; then
24192 as_ln_s='ln -s'
24193 # ... but there are two gotchas:
24194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24196 # In both cases, we have to default to `cp -pR'.
24197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24198 as_ln_s='cp -pR'
24199 elif ln conf$$.file conf$$ 2>/dev/null; then
24200 as_ln_s=ln
24201 else
24202 as_ln_s='cp -pR'
24203 fi
24204 else
24205 as_ln_s='cp -pR'
24206 fi
24207 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24208 rmdir conf$$.dir 2>/dev/null
24209
24210
24211 # as_fn_mkdir_p
24212 # -------------
24213 # Create "$as_dir" as a directory, including parents if necessary.
24214 as_fn_mkdir_p ()
24215 {
24216
24217 case $as_dir in #(
24218 -*) as_dir=./$as_dir;;
24219 esac
24220 test -d "$as_dir" || eval $as_mkdir_p || {
24221 as_dirs=
24222 while :; do
24223 case $as_dir in #(
24224 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24225 *) as_qdir=$as_dir;;
24226 esac
24227 as_dirs="'$as_qdir' $as_dirs"
24228 as_dir=`$as_dirname -- "$as_dir" ||
24229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24230 X"$as_dir" : 'X\(//\)[^/]' \| \
24231 X"$as_dir" : 'X\(//\)$' \| \
24232 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24233 $as_echo X"$as_dir" |
24234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24235 s//\1/
24236 q
24237 }
24238 /^X\(\/\/\)[^/].*/{
24239 s//\1/
24240 q
24241 }
24242 /^X\(\/\/\)$/{
24243 s//\1/
24244 q
24245 }
24246 /^X\(\/\).*/{
24247 s//\1/
24248 q
24249 }
24250 s/.*/./; q'`
24251 test -d "$as_dir" && break
24252 done
24253 test -z "$as_dirs" || eval "mkdir $as_dirs"
24254 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24255
24256
24257 } # as_fn_mkdir_p
24258 if mkdir -p . 2>/dev/null; then
24259 as_mkdir_p='mkdir -p "$as_dir"'
24260 else
24261 test -d ./-p && rmdir ./-p
24262 as_mkdir_p=false
24263 fi
24264
24265
24266 # as_fn_executable_p FILE
24267 # -----------------------
24268 # Test if FILE is an executable regular file.
24269 as_fn_executable_p ()
24270 {
24271 test -f "$1" && test -x "$1"
24272 } # as_fn_executable_p
24273 as_test_x='test -x'
24274 as_executable_p=as_fn_executable_p
24275
24276 # Sed expression to map a string onto a valid CPP name.
24277 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24278
24279 # Sed expression to map a string onto a valid variable name.
24280 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24281
24282
24283 exec 6>&1
24284 ## ----------------------------------- ##
24285 ## Main body of $CONFIG_STATUS script. ##
24286 ## ----------------------------------- ##
24287 _ASEOF
24288 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24289
24290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24291 # Save the log message, to keep $0 and so on meaningful, and to
24292 # report actual input values of CONFIG_FILES etc. instead of their
24293 # values after options handling.
24294 ac_log="
24295 This file was extended by Cycript $as_me 0.9, which was
24296 generated by GNU Autoconf 2.69. Invocation command line was
24297
24298 CONFIG_FILES = $CONFIG_FILES
24299 CONFIG_HEADERS = $CONFIG_HEADERS
24300 CONFIG_LINKS = $CONFIG_LINKS
24301 CONFIG_COMMANDS = $CONFIG_COMMANDS
24302 $ $0 $@
24303
24304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24305 "
24306
24307 _ACEOF
24308
24309 case $ac_config_files in *"
24310 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24311 esac
24312
24313 case $ac_config_headers in *"
24314 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24315 esac
24316
24317
24318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24319 # Files that config.status was made for.
24320 config_files="$ac_config_files"
24321 config_headers="$ac_config_headers"
24322 config_commands="$ac_config_commands"
24323
24324 _ACEOF
24325
24326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24327 ac_cs_usage="\
24328 \`$as_me' instantiates files and other configuration actions
24329 from templates according to the current configuration. Unless the files
24330 and actions are specified as TAGs, all are instantiated by default.
24331
24332 Usage: $0 [OPTION]... [TAG]...
24333
24334 -h, --help print this help, then exit
24335 -V, --version print version number and configuration settings, then exit
24336 --config print configuration, then exit
24337 -q, --quiet, --silent
24338 do not print progress messages
24339 -d, --debug don't remove temporary files
24340 --recheck update $as_me by reconfiguring in the same conditions
24341 --file=FILE[:TEMPLATE]
24342 instantiate the configuration file FILE
24343 --header=FILE[:TEMPLATE]
24344 instantiate the configuration header FILE
24345
24346 Configuration files:
24347 $config_files
24348
24349 Configuration headers:
24350 $config_headers
24351
24352 Configuration commands:
24353 $config_commands
24354
24355 Report bugs to <saurik@saurik.com>.
24356 Cycript home page: <http://www.cycript.org/>."
24357
24358 _ACEOF
24359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24360 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24361 ac_cs_version="\\
24362 Cycript config.status 0.9
24363 configured by $0, generated by GNU Autoconf 2.69,
24364 with options \\"\$ac_cs_config\\"
24365
24366 Copyright (C) 2012 Free Software Foundation, Inc.
24367 This config.status script is free software; the Free Software Foundation
24368 gives unlimited permission to copy, distribute and modify it."
24369
24370 ac_pwd='$ac_pwd'
24371 srcdir='$srcdir'
24372 INSTALL='$INSTALL'
24373 MKDIR_P='$MKDIR_P'
24374 AWK='$AWK'
24375 test -n "\$AWK" || AWK=awk
24376 _ACEOF
24377
24378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24379 # The default lists apply if the user does not specify any file.
24380 ac_need_defaults=:
24381 while test $# != 0
24382 do
24383 case $1 in
24384 --*=?*)
24385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24387 ac_shift=:
24388 ;;
24389 --*=)
24390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24391 ac_optarg=
24392 ac_shift=:
24393 ;;
24394 *)
24395 ac_option=$1
24396 ac_optarg=$2
24397 ac_shift=shift
24398 ;;
24399 esac
24400
24401 case $ac_option in
24402 # Handling of the options.
24403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24404 ac_cs_recheck=: ;;
24405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24406 $as_echo "$ac_cs_version"; exit ;;
24407 --config | --confi | --conf | --con | --co | --c )
24408 $as_echo "$ac_cs_config"; exit ;;
24409 --debug | --debu | --deb | --de | --d | -d )
24410 debug=: ;;
24411 --file | --fil | --fi | --f )
24412 $ac_shift
24413 case $ac_optarg in
24414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24415 '') as_fn_error $? "missing file argument" ;;
24416 esac
24417 as_fn_append CONFIG_FILES " '$ac_optarg'"
24418 ac_need_defaults=false;;
24419 --header | --heade | --head | --hea )
24420 $ac_shift
24421 case $ac_optarg in
24422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24423 esac
24424 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24425 ac_need_defaults=false;;
24426 --he | --h)
24427 # Conflict between --help and --header
24428 as_fn_error $? "ambiguous option: \`$1'
24429 Try \`$0 --help' for more information.";;
24430 --help | --hel | -h )
24431 $as_echo "$ac_cs_usage"; exit ;;
24432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24434 ac_cs_silent=: ;;
24435
24436 # This is an error.
24437 -*) as_fn_error $? "unrecognized option: \`$1'
24438 Try \`$0 --help' for more information." ;;
24439
24440 *) as_fn_append ac_config_targets " $1"
24441 ac_need_defaults=false ;;
24442
24443 esac
24444 shift
24445 done
24446
24447 ac_configure_extra_args=
24448
24449 if $ac_cs_silent; then
24450 exec 6>/dev/null
24451 ac_configure_extra_args="$ac_configure_extra_args --silent"
24452 fi
24453
24454 _ACEOF
24455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24456 if \$ac_cs_recheck; then
24457 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24458 shift
24459 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24460 CONFIG_SHELL='$SHELL'
24461 export CONFIG_SHELL
24462 exec "\$@"
24463 fi
24464
24465 _ACEOF
24466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24467 exec 5>>config.log
24468 {
24469 echo
24470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24471 ## Running $as_me. ##
24472 _ASBOX
24473 $as_echo "$ac_log"
24474 } >&5
24475
24476 _ACEOF
24477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24478 #
24479 # INIT-COMMANDS
24480 #
24481 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24482
24483
24484 # The HP-UX ksh and POSIX shell print the target directory to stdout
24485 # if CDPATH is set.
24486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24487
24488 sed_quote_subst='$sed_quote_subst'
24489 double_quote_subst='$double_quote_subst'
24490 delay_variable_subst='$delay_variable_subst'
24491 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24492 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24493 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24494 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24495 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24496 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24497 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24498 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24499 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24500 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24501 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24502 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24503 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24504 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24505 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24506 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24507 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24508 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24509 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24510 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24511 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24512 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24513 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24514 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24515 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24516 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24517 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24518 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24519 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24520 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24521 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24522 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24523 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24524 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24525 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24526 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24527 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24528 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24529 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24530 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24531 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24532 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24533 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24534 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24535 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24536 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24537 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24538 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24539 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24540 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24541 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24542 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24543 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24544 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24545 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24546 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24547 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24548 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24549 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"`'
24550 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24551 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24552 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24553 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24554 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24555 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24556 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24557 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24558 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24559 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24560 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24561 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24562 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24563 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24564 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24565 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24566 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24567 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24568 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24569 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24570 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24571 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24572 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24573 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24574 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24575 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24576 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24577 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24578 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24579 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24580 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24581 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24582 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24583 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24584 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24585 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24586 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24587 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24588 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24589 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24590 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24591 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24592 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24593 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24594 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24595 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24596 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24597 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24598 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24599 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24600 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24601 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24602 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24603 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24604 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24605 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24606 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24607 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24608 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24609 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24610 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24611 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24612 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24613 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24614 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24615 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24616 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24617 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24618 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24619 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24620 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24621 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24622 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24623 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24624 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24625 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24626 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24627 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24628 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24629 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24630 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24631 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24632 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24633 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24634 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24635 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24636 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24637 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24638 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24639 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24640 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24641 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24642 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24643 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24644 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24645 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24646 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24647 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24648 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24649 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24650 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24651 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24652 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24653 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24654 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24655 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24656 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24657 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24658 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24659 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24660 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24661 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24662 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24663 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24664 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24665 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24666 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24667 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24668 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24669 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24670 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24671 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24672 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24673 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24674 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24675 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24676 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24677 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24678 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24679 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24680
24681 LTCC='$LTCC'
24682 LTCFLAGS='$LTCFLAGS'
24683 compiler='$compiler_DEFAULT'
24684
24685 # A function that is used when there is no print builtin or printf.
24686 func_fallback_echo ()
24687 {
24688 eval 'cat <<_LTECHO_EOF
24689 \$1
24690 _LTECHO_EOF'
24691 }
24692
24693 # Quote evaled strings.
24694 for var in SHELL \
24695 ECHO \
24696 PATH_SEPARATOR \
24697 SED \
24698 GREP \
24699 EGREP \
24700 FGREP \
24701 LD \
24702 NM \
24703 LN_S \
24704 lt_SP2NL \
24705 lt_NL2SP \
24706 reload_flag \
24707 OBJDUMP \
24708 deplibs_check_method \
24709 file_magic_cmd \
24710 file_magic_glob \
24711 want_nocaseglob \
24712 DLLTOOL \
24713 sharedlib_from_linklib_cmd \
24714 AR \
24715 AR_FLAGS \
24716 archiver_list_spec \
24717 STRIP \
24718 RANLIB \
24719 CC \
24720 CFLAGS \
24721 compiler \
24722 lt_cv_sys_global_symbol_pipe \
24723 lt_cv_sys_global_symbol_to_cdecl \
24724 lt_cv_sys_global_symbol_to_import \
24725 lt_cv_sys_global_symbol_to_c_name_address \
24726 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24727 lt_cv_nm_interface \
24728 nm_file_list_spec \
24729 lt_cv_truncate_bin \
24730 lt_prog_compiler_no_builtin_flag \
24731 lt_prog_compiler_pic \
24732 lt_prog_compiler_wl \
24733 lt_prog_compiler_static \
24734 lt_cv_prog_compiler_c_o \
24735 need_locks \
24736 MANIFEST_TOOL \
24737 DSYMUTIL \
24738 NMEDIT \
24739 LIPO \
24740 OTOOL \
24741 OTOOL64 \
24742 shrext_cmds \
24743 export_dynamic_flag_spec \
24744 whole_archive_flag_spec \
24745 compiler_needs_object \
24746 with_gnu_ld \
24747 allow_undefined_flag \
24748 no_undefined_flag \
24749 hardcode_libdir_flag_spec \
24750 hardcode_libdir_separator \
24751 exclude_expsyms \
24752 include_expsyms \
24753 file_list_spec \
24754 variables_saved_for_relink \
24755 libname_spec \
24756 library_names_spec \
24757 soname_spec \
24758 install_override_mode \
24759 finish_eval \
24760 old_striplib \
24761 striplib \
24762 compiler_lib_search_dirs \
24763 predep_objects \
24764 postdep_objects \
24765 predeps \
24766 postdeps \
24767 compiler_lib_search_path \
24768 LD_CXX \
24769 reload_flag_CXX \
24770 compiler_CXX \
24771 lt_prog_compiler_no_builtin_flag_CXX \
24772 lt_prog_compiler_pic_CXX \
24773 lt_prog_compiler_wl_CXX \
24774 lt_prog_compiler_static_CXX \
24775 lt_cv_prog_compiler_c_o_CXX \
24776 export_dynamic_flag_spec_CXX \
24777 whole_archive_flag_spec_CXX \
24778 compiler_needs_object_CXX \
24779 with_gnu_ld_CXX \
24780 allow_undefined_flag_CXX \
24781 no_undefined_flag_CXX \
24782 hardcode_libdir_flag_spec_CXX \
24783 hardcode_libdir_separator_CXX \
24784 exclude_expsyms_CXX \
24785 include_expsyms_CXX \
24786 file_list_spec_CXX \
24787 compiler_lib_search_dirs_CXX \
24788 predep_objects_CXX \
24789 postdep_objects_CXX \
24790 predeps_CXX \
24791 postdeps_CXX \
24792 compiler_lib_search_path_CXX; do
24793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24794 *[\\\\\\\`\\"\\\$]*)
24795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24796 ;;
24797 *)
24798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24799 ;;
24800 esac
24801 done
24802
24803 # Double-quote double-evaled strings.
24804 for var in reload_cmds \
24805 old_postinstall_cmds \
24806 old_postuninstall_cmds \
24807 old_archive_cmds \
24808 extract_expsyms_cmds \
24809 old_archive_from_new_cmds \
24810 old_archive_from_expsyms_cmds \
24811 archive_cmds \
24812 archive_expsym_cmds \
24813 module_cmds \
24814 module_expsym_cmds \
24815 export_symbols_cmds \
24816 prelink_cmds \
24817 postlink_cmds \
24818 postinstall_cmds \
24819 postuninstall_cmds \
24820 finish_cmds \
24821 sys_lib_search_path_spec \
24822 configure_time_dlsearch_path \
24823 configure_time_lt_sys_library_path \
24824 reload_cmds_CXX \
24825 old_archive_cmds_CXX \
24826 old_archive_from_new_cmds_CXX \
24827 old_archive_from_expsyms_cmds_CXX \
24828 archive_cmds_CXX \
24829 archive_expsym_cmds_CXX \
24830 module_cmds_CXX \
24831 module_expsym_cmds_CXX \
24832 export_symbols_cmds_CXX \
24833 prelink_cmds_CXX \
24834 postlink_cmds_CXX; do
24835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24836 *[\\\\\\\`\\"\\\$]*)
24837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24838 ;;
24839 *)
24840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24841 ;;
24842 esac
24843 done
24844
24845 ac_aux_dir='$ac_aux_dir'
24846
24847 # See if we are running on zsh, and set the options that allow our
24848 # commands through without removal of \ escapes INIT.
24849 if test -n "\${ZSH_VERSION+set}"; then
24850 setopt NO_GLOB_SUBST
24851 fi
24852
24853
24854 PACKAGE='$PACKAGE'
24855 VERSION='$VERSION'
24856 RM='$RM'
24857 ofile='$ofile'
24858
24859
24860
24861
24862
24863
24864 _ACEOF
24865
24866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24867
24868 # Handling of arguments.
24869 for ac_config_target in $ac_config_targets
24870 do
24871 case $ac_config_target in
24872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24873 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24874 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24875 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24876
24877 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24878 esac
24879 done
24880
24881
24882 # If the user did not use the arguments to specify the items to instantiate,
24883 # then the envvar interface is used. Set only those that are not.
24884 # We use the long form for the default assignment because of an extremely
24885 # bizarre bug on SunOS 4.1.3.
24886 if $ac_need_defaults; then
24887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24890 fi
24891
24892 # Have a temporary directory for convenience. Make it in the build tree
24893 # simply because there is no reason against having it here, and in addition,
24894 # creating and moving files from /tmp can sometimes cause problems.
24895 # Hook for its removal unless debugging.
24896 # Note that there is a small window in which the directory will not be cleaned:
24897 # after its creation but before its name has been assigned to `$tmp'.
24898 $debug ||
24899 {
24900 tmp= ac_tmp=
24901 trap 'exit_status=$?
24902 : "${ac_tmp:=$tmp}"
24903 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24904 ' 0
24905 trap 'as_fn_exit 1' 1 2 13 15
24906 }
24907 # Create a (secure) tmp directory for tmp files.
24908
24909 {
24910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24911 test -d "$tmp"
24912 } ||
24913 {
24914 tmp=./conf$$-$RANDOM
24915 (umask 077 && mkdir "$tmp")
24916 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24917 ac_tmp=$tmp
24918
24919 # Set up the scripts for CONFIG_FILES section.
24920 # No need to generate them if there are no CONFIG_FILES.
24921 # This happens for instance with `./config.status config.h'.
24922 if test -n "$CONFIG_FILES"; then
24923
24924
24925 ac_cr=`echo X | tr X '\015'`
24926 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24927 # But we know of no other shell where ac_cr would be empty at this
24928 # point, so we can use a bashism as a fallback.
24929 if test "x$ac_cr" = x; then
24930 eval ac_cr=\$\'\\r\'
24931 fi
24932 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24933 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24934 ac_cs_awk_cr='\\r'
24935 else
24936 ac_cs_awk_cr=$ac_cr
24937 fi
24938
24939 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24940 _ACEOF
24941
24942
24943 {
24944 echo "cat >conf$$subs.awk <<_ACEOF" &&
24945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24946 echo "_ACEOF"
24947 } >conf$$subs.sh ||
24948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24949 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24950 ac_delim='%!_!# '
24951 for ac_last_try in false false false false false :; do
24952 . ./conf$$subs.sh ||
24953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24954
24955 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24956 if test $ac_delim_n = $ac_delim_num; then
24957 break
24958 elif $ac_last_try; then
24959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24960 else
24961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24962 fi
24963 done
24964 rm -f conf$$subs.sh
24965
24966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24967 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24968 _ACEOF
24969 sed -n '
24970 h
24971 s/^/S["/; s/!.*/"]=/
24972 p
24973 g
24974 s/^[^!]*!//
24975 :repl
24976 t repl
24977 s/'"$ac_delim"'$//
24978 t delim
24979 :nl
24980 h
24981 s/\(.\{148\}\)..*/\1/
24982 t more1
24983 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24984 p
24985 n
24986 b repl
24987 :more1
24988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24989 p
24990 g
24991 s/.\{148\}//
24992 t nl
24993 :delim
24994 h
24995 s/\(.\{148\}\)..*/\1/
24996 t more2
24997 s/["\\]/\\&/g; s/^/"/; s/$/"/
24998 p
24999 b
25000 :more2
25001 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25002 p
25003 g
25004 s/.\{148\}//
25005 t delim
25006 ' <conf$$subs.awk | sed '
25007 /^[^""]/{
25008 N
25009 s/\n//
25010 }
25011 ' >>$CONFIG_STATUS || ac_write_fail=1
25012 rm -f conf$$subs.awk
25013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25014 _ACAWK
25015 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25016 for (key in S) S_is_set[key] = 1
25017 FS = "\a"
25018
25019 }
25020 {
25021 line = $ 0
25022 nfields = split(line, field, "@")
25023 substed = 0
25024 len = length(field[1])
25025 for (i = 2; i < nfields; i++) {
25026 key = field[i]
25027 keylen = length(key)
25028 if (S_is_set[key]) {
25029 value = S[key]
25030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25031 len += length(value) + length(field[++i])
25032 substed = 1
25033 } else
25034 len += 1 + keylen
25035 }
25036
25037 print line
25038 }
25039
25040 _ACAWK
25041 _ACEOF
25042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25043 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25045 else
25046 cat
25047 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25048 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25049 _ACEOF
25050
25051 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25052 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25053 # trailing colons and then remove the whole line if VPATH becomes empty
25054 # (actually we leave an empty line to preserve line numbers).
25055 if test "x$srcdir" = x.; then
25056 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25057 h
25058 s///
25059 s/^/:/
25060 s/[ ]*$/:/
25061 s/:\$(srcdir):/:/g
25062 s/:\${srcdir}:/:/g
25063 s/:@srcdir@:/:/g
25064 s/^:*//
25065 s/:*$//
25066 x
25067 s/\(=[ ]*\).*/\1/
25068 G
25069 s/\n//
25070 s/^[^=]*=[ ]*$//
25071 }'
25072 fi
25073
25074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25075 fi # test -n "$CONFIG_FILES"
25076
25077 # Set up the scripts for CONFIG_HEADERS section.
25078 # No need to generate them if there are no CONFIG_HEADERS.
25079 # This happens for instance with `./config.status Makefile'.
25080 if test -n "$CONFIG_HEADERS"; then
25081 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25082 BEGIN {
25083 _ACEOF
25084
25085 # Transform confdefs.h into an awk script `defines.awk', embedded as
25086 # here-document in config.status, that substitutes the proper values into
25087 # config.h.in to produce config.h.
25088
25089 # Create a delimiter string that does not exist in confdefs.h, to ease
25090 # handling of long lines.
25091 ac_delim='%!_!# '
25092 for ac_last_try in false false :; do
25093 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25094 if test -z "$ac_tt"; then
25095 break
25096 elif $ac_last_try; then
25097 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25098 else
25099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25100 fi
25101 done
25102
25103 # For the awk script, D is an array of macro values keyed by name,
25104 # likewise P contains macro parameters if any. Preserve backslash
25105 # newline sequences.
25106
25107 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25108 sed -n '
25109 s/.\{148\}/&'"$ac_delim"'/g
25110 t rset
25111 :rset
25112 s/^[ ]*#[ ]*define[ ][ ]*/ /
25113 t def
25114 d
25115 :def
25116 s/\\$//
25117 t bsnl
25118 s/["\\]/\\&/g
25119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25120 D["\1"]=" \3"/p
25121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25122 d
25123 :bsnl
25124 s/["\\]/\\&/g
25125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25126 D["\1"]=" \3\\\\\\n"\\/p
25127 t cont
25128 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25129 t cont
25130 d
25131 :cont
25132 n
25133 s/.\{148\}/&'"$ac_delim"'/g
25134 t clear
25135 :clear
25136 s/\\$//
25137 t bsnlc
25138 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25139 d
25140 :bsnlc
25141 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25142 b cont
25143 ' <confdefs.h | sed '
25144 s/'"$ac_delim"'/"\\\
25145 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25146
25147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25148 for (key in D) D_is_set[key] = 1
25149 FS = "\a"
25150 }
25151 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25152 line = \$ 0
25153 split(line, arg, " ")
25154 if (arg[1] == "#") {
25155 defundef = arg[2]
25156 mac1 = arg[3]
25157 } else {
25158 defundef = substr(arg[1], 2)
25159 mac1 = arg[2]
25160 }
25161 split(mac1, mac2, "(") #)
25162 macro = mac2[1]
25163 prefix = substr(line, 1, index(line, defundef) - 1)
25164 if (D_is_set[macro]) {
25165 # Preserve the white space surrounding the "#".
25166 print prefix "define", macro P[macro] D[macro]
25167 next
25168 } else {
25169 # Replace #undef with comments. This is necessary, for example,
25170 # in the case of _POSIX_SOURCE, which is predefined and required
25171 # on some systems where configure will not decide to define it.
25172 if (defundef == "undef") {
25173 print "/*", prefix defundef, macro, "*/"
25174 next
25175 }
25176 }
25177 }
25178 { print }
25179 _ACAWK
25180 _ACEOF
25181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25182 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25183 fi # test -n "$CONFIG_HEADERS"
25184
25185
25186 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25187 shift
25188 for ac_tag
25189 do
25190 case $ac_tag in
25191 :[FHLC]) ac_mode=$ac_tag; continue;;
25192 esac
25193 case $ac_mode$ac_tag in
25194 :[FHL]*:*);;
25195 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25196 :[FH]-) ac_tag=-:-;;
25197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25198 esac
25199 ac_save_IFS=$IFS
25200 IFS=:
25201 set x $ac_tag
25202 IFS=$ac_save_IFS
25203 shift
25204 ac_file=$1
25205 shift
25206
25207 case $ac_mode in
25208 :L) ac_source=$1;;
25209 :[FH])
25210 ac_file_inputs=
25211 for ac_f
25212 do
25213 case $ac_f in
25214 -) ac_f="$ac_tmp/stdin";;
25215 *) # Look for the file first in the build tree, then in the source tree
25216 # (if the path is not absolute). The absolute path cannot be DOS-style,
25217 # because $ac_f cannot contain `:'.
25218 test -f "$ac_f" ||
25219 case $ac_f in
25220 [\\/$]*) false;;
25221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25222 esac ||
25223 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25224 esac
25225 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25226 as_fn_append ac_file_inputs " '$ac_f'"
25227 done
25228
25229 # Let's still pretend it is `configure' which instantiates (i.e., don't
25230 # use $as_me), people would be surprised to read:
25231 # /* config.h. Generated by config.status. */
25232 configure_input='Generated from '`
25233 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25234 `' by configure.'
25235 if test x"$ac_file" != x-; then
25236 configure_input="$ac_file. $configure_input"
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25238 $as_echo "$as_me: creating $ac_file" >&6;}
25239 fi
25240 # Neutralize special characters interpreted by sed in replacement strings.
25241 case $configure_input in #(
25242 *\&* | *\|* | *\\* )
25243 ac_sed_conf_input=`$as_echo "$configure_input" |
25244 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25245 *) ac_sed_conf_input=$configure_input;;
25246 esac
25247
25248 case $ac_tag in
25249 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25251 esac
25252 ;;
25253 esac
25254
25255 ac_dir=`$as_dirname -- "$ac_file" ||
25256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25257 X"$ac_file" : 'X\(//\)[^/]' \| \
25258 X"$ac_file" : 'X\(//\)$' \| \
25259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25260 $as_echo X"$ac_file" |
25261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25262 s//\1/
25263 q
25264 }
25265 /^X\(\/\/\)[^/].*/{
25266 s//\1/
25267 q
25268 }
25269 /^X\(\/\/\)$/{
25270 s//\1/
25271 q
25272 }
25273 /^X\(\/\).*/{
25274 s//\1/
25275 q
25276 }
25277 s/.*/./; q'`
25278 as_dir="$ac_dir"; as_fn_mkdir_p
25279 ac_builddir=.
25280
25281 case "$ac_dir" in
25282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25283 *)
25284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25285 # A ".." for each directory in $ac_dir_suffix.
25286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25287 case $ac_top_builddir_sub in
25288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25290 esac ;;
25291 esac
25292 ac_abs_top_builddir=$ac_pwd
25293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25294 # for backward compatibility:
25295 ac_top_builddir=$ac_top_build_prefix
25296
25297 case $srcdir in
25298 .) # We are building in place.
25299 ac_srcdir=.
25300 ac_top_srcdir=$ac_top_builddir_sub
25301 ac_abs_top_srcdir=$ac_pwd ;;
25302 [\\/]* | ?:[\\/]* ) # Absolute name.
25303 ac_srcdir=$srcdir$ac_dir_suffix;
25304 ac_top_srcdir=$srcdir
25305 ac_abs_top_srcdir=$srcdir ;;
25306 *) # Relative name.
25307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25308 ac_top_srcdir=$ac_top_build_prefix$srcdir
25309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25310 esac
25311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25312
25313
25314 case $ac_mode in
25315 :F)
25316 #
25317 # CONFIG_FILE
25318 #
25319
25320 case $INSTALL in
25321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25322 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25323 esac
25324 ac_MKDIR_P=$MKDIR_P
25325 case $MKDIR_P in
25326 [\\/$]* | ?:[\\/]* ) ;;
25327 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25328 esac
25329 _ACEOF
25330
25331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25332 # If the template does not know about datarootdir, expand it.
25333 # FIXME: This hack should be removed a few years after 2.60.
25334 ac_datarootdir_hack=; ac_datarootdir_seen=
25335 ac_sed_dataroot='
25336 /datarootdir/ {
25337 p
25338 q
25339 }
25340 /@datadir@/p
25341 /@docdir@/p
25342 /@infodir@/p
25343 /@localedir@/p
25344 /@mandir@/p'
25345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25346 *datarootdir*) ac_datarootdir_seen=yes;;
25347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25350 _ACEOF
25351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25352 ac_datarootdir_hack='
25353 s&@datadir@&$datadir&g
25354 s&@docdir@&$docdir&g
25355 s&@infodir@&$infodir&g
25356 s&@localedir@&$localedir&g
25357 s&@mandir@&$mandir&g
25358 s&\\\${datarootdir}&$datarootdir&g' ;;
25359 esac
25360 _ACEOF
25361
25362 # Neutralize VPATH when `$srcdir' = `.'.
25363 # Shell code in configure.ac might set extrasub.
25364 # FIXME: do we really want to maintain this feature?
25365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25366 ac_sed_extra="$ac_vpsub
25367 $extrasub
25368 _ACEOF
25369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25370 :t
25371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25372 s|@configure_input@|$ac_sed_conf_input|;t t
25373 s&@top_builddir@&$ac_top_builddir_sub&;t t
25374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25375 s&@srcdir@&$ac_srcdir&;t t
25376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25377 s&@top_srcdir@&$ac_top_srcdir&;t t
25378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25379 s&@builddir@&$ac_builddir&;t t
25380 s&@abs_builddir@&$ac_abs_builddir&;t t
25381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25382 s&@INSTALL@&$ac_INSTALL&;t t
25383 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25384 $ac_datarootdir_hack
25385 "
25386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25388
25389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25392 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25394 which seems to be undefined. Please make sure it is defined" >&5
25395 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25396 which seems to be undefined. Please make sure it is defined" >&2;}
25397
25398 rm -f "$ac_tmp/stdin"
25399 case $ac_file in
25400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25402 esac \
25403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25404 ;;
25405 :H)
25406 #
25407 # CONFIG_HEADER
25408 #
25409 if test x"$ac_file" != x-; then
25410 {
25411 $as_echo "/* $configure_input */" \
25412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25413 } >"$ac_tmp/config.h" \
25414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25417 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25418 else
25419 rm -f "$ac_file"
25420 mv "$ac_tmp/config.h" "$ac_file" \
25421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25422 fi
25423 else
25424 $as_echo "/* $configure_input */" \
25425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25426 || as_fn_error $? "could not create -" "$LINENO" 5
25427 fi
25428 # Compute "$ac_file"'s index in $config_headers.
25429 _am_arg="$ac_file"
25430 _am_stamp_count=1
25431 for _am_header in $config_headers :; do
25432 case $_am_header in
25433 $_am_arg | $_am_arg:* )
25434 break ;;
25435 * )
25436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25437 esac
25438 done
25439 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25440 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25441 X"$_am_arg" : 'X\(//\)[^/]' \| \
25442 X"$_am_arg" : 'X\(//\)$' \| \
25443 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25444 $as_echo X"$_am_arg" |
25445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25446 s//\1/
25447 q
25448 }
25449 /^X\(\/\/\)[^/].*/{
25450 s//\1/
25451 q
25452 }
25453 /^X\(\/\/\)$/{
25454 s//\1/
25455 q
25456 }
25457 /^X\(\/\).*/{
25458 s//\1/
25459 q
25460 }
25461 s/.*/./; q'`/stamp-h$_am_stamp_count
25462 ;;
25463
25464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25465 $as_echo "$as_me: executing $ac_file commands" >&6;}
25466 ;;
25467 esac
25468
25469
25470 case $ac_file$ac_mode in
25471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25472 # Older Autoconf quotes --file arguments for eval, but not when files
25473 # are listed without --file. Let's play safe and only enable the eval
25474 # if we detect the quoting.
25475 case $CONFIG_FILES in
25476 *\'*) eval set x "$CONFIG_FILES" ;;
25477 *) set x $CONFIG_FILES ;;
25478 esac
25479 shift
25480 for mf
25481 do
25482 # Strip MF so we end up with the name of the file.
25483 mf=`echo "$mf" | sed -e 's/:.*$//'`
25484 # Check whether this is an Automake generated Makefile or not.
25485 # We used to match only the files named 'Makefile.in', but
25486 # some people rename them; so instead we look at the file content.
25487 # Grep'ing the first line is not enough: some people post-process
25488 # each Makefile.in and add a new line on top of each file to say so.
25489 # Grep'ing the whole file is not good either: AIX grep has a line
25490 # limit of 2048, but all sed's we know have understand at least 4000.
25491 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25492 dirpart=`$as_dirname -- "$mf" ||
25493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25494 X"$mf" : 'X\(//\)[^/]' \| \
25495 X"$mf" : 'X\(//\)$' \| \
25496 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25497 $as_echo X"$mf" |
25498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25499 s//\1/
25500 q
25501 }
25502 /^X\(\/\/\)[^/].*/{
25503 s//\1/
25504 q
25505 }
25506 /^X\(\/\/\)$/{
25507 s//\1/
25508 q
25509 }
25510 /^X\(\/\).*/{
25511 s//\1/
25512 q
25513 }
25514 s/.*/./; q'`
25515 else
25516 continue
25517 fi
25518 # Extract the definition of DEPDIR, am__include, and am__quote
25519 # from the Makefile without running 'make'.
25520 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25521 test -z "$DEPDIR" && continue
25522 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25523 test -z "$am__include" && continue
25524 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25525 # Find all dependency output files, they are included files with
25526 # $(DEPDIR) in their names. We invoke sed twice because it is the
25527 # simplest approach to changing $(DEPDIR) to its actual value in the
25528 # expansion.
25529 for file in `sed -n "
25530 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25531 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25532 # Make sure the directory exists.
25533 test -f "$dirpart/$file" && continue
25534 fdir=`$as_dirname -- "$file" ||
25535 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25536 X"$file" : 'X\(//\)[^/]' \| \
25537 X"$file" : 'X\(//\)$' \| \
25538 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25539 $as_echo X"$file" |
25540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25541 s//\1/
25542 q
25543 }
25544 /^X\(\/\/\)[^/].*/{
25545 s//\1/
25546 q
25547 }
25548 /^X\(\/\/\)$/{
25549 s//\1/
25550 q
25551 }
25552 /^X\(\/\).*/{
25553 s//\1/
25554 q
25555 }
25556 s/.*/./; q'`
25557 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25558 # echo "creating $dirpart/$file"
25559 echo '# dummy' > "$dirpart/$file"
25560 done
25561 done
25562 }
25563 ;;
25564 "libtool":C)
25565
25566 # See if we are running on zsh, and set the options that allow our
25567 # commands through without removal of \ escapes.
25568 if test -n "${ZSH_VERSION+set}"; then
25569 setopt NO_GLOB_SUBST
25570 fi
25571
25572 cfgfile=${ofile}T
25573 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25574 $RM "$cfgfile"
25575
25576 cat <<_LT_EOF >> "$cfgfile"
25577 #! $SHELL
25578 # Generated automatically by $as_me ($PACKAGE) $VERSION
25579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25581
25582 # Provide generalized library-building support services.
25583 # Written by Gordon Matzigkeit, 1996
25584
25585 # Copyright (C) 2014 Free Software Foundation, Inc.
25586 # This is free software; see the source for copying conditions. There is NO
25587 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25588
25589 # GNU Libtool is free software; you can redistribute it and/or modify
25590 # it under the terms of the GNU General Public License as published by
25591 # the Free Software Foundation; either version 2 of of the License, or
25592 # (at your option) any later version.
25593 #
25594 # As a special exception to the GNU General Public License, if you
25595 # distribute this file as part of a program or library that is built
25596 # using GNU Libtool, you may include this file under the same
25597 # distribution terms that you use for the rest of that program.
25598 #
25599 # GNU Libtool is distributed in the hope that it will be useful, but
25600 # WITHOUT ANY WARRANTY; without even the implied warranty of
25601 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25602 # GNU General Public License for more details.
25603 #
25604 # You should have received a copy of the GNU General Public License
25605 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25606
25607
25608 # The names of the tagged configurations supported by this script.
25609 available_tags='CXX '
25610
25611 # Configured defaults for sys_lib_dlsearch_path munging.
25612 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25613
25614 # ### BEGIN LIBTOOL CONFIG
25615
25616 # Which release of libtool.m4 was used?
25617 macro_version=$macro_version
25618 macro_revision=$macro_revision
25619
25620 # Whether or not to build static libraries.
25621 build_old_libs=$enable_static
25622
25623 # Whether or not to build shared libraries.
25624 build_libtool_libs=$enable_shared
25625
25626 # What type of objects to build.
25627 pic_mode=$pic_mode
25628
25629 # Whether or not to optimize for fast installation.
25630 fast_install=$enable_fast_install
25631
25632 # Shared archive member basename,for filename based shared library versioning on AIX.
25633 shared_archive_member_spec=$shared_archive_member_spec
25634
25635 # Shell to use when invoking shell scripts.
25636 SHELL=$lt_SHELL
25637
25638 # An echo program that protects backslashes.
25639 ECHO=$lt_ECHO
25640
25641 # The PATH separator for the build system.
25642 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25643
25644 # The host system.
25645 host_alias=$host_alias
25646 host=$host
25647 host_os=$host_os
25648
25649 # The build system.
25650 build_alias=$build_alias
25651 build=$build
25652 build_os=$build_os
25653
25654 # A sed program that does not truncate output.
25655 SED=$lt_SED
25656
25657 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25658 Xsed="\$SED -e 1s/^X//"
25659
25660 # A grep program that handles long lines.
25661 GREP=$lt_GREP
25662
25663 # An ERE matcher.
25664 EGREP=$lt_EGREP
25665
25666 # A literal string matcher.
25667 FGREP=$lt_FGREP
25668
25669 # A BSD- or MS-compatible name lister.
25670 NM=$lt_NM
25671
25672 # Whether we need soft or hard links.
25673 LN_S=$lt_LN_S
25674
25675 # What is the maximum length of a command?
25676 max_cmd_len=$max_cmd_len
25677
25678 # Object file suffix (normally "o").
25679 objext=$ac_objext
25680
25681 # Executable file suffix (normally "").
25682 exeext=$exeext
25683
25684 # whether the shell understands "unset".
25685 lt_unset=$lt_unset
25686
25687 # turn spaces into newlines.
25688 SP2NL=$lt_lt_SP2NL
25689
25690 # turn newlines into spaces.
25691 NL2SP=$lt_lt_NL2SP
25692
25693 # convert \$build file names to \$host format.
25694 to_host_file_cmd=$lt_cv_to_host_file_cmd
25695
25696 # convert \$build files to toolchain format.
25697 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25698
25699 # An object symbol dumper.
25700 OBJDUMP=$lt_OBJDUMP
25701
25702 # Method to check whether dependent libraries are shared objects.
25703 deplibs_check_method=$lt_deplibs_check_method
25704
25705 # Command to use when deplibs_check_method = "file_magic".
25706 file_magic_cmd=$lt_file_magic_cmd
25707
25708 # How to find potential files when deplibs_check_method = "file_magic".
25709 file_magic_glob=$lt_file_magic_glob
25710
25711 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25712 want_nocaseglob=$lt_want_nocaseglob
25713
25714 # DLL creation program.
25715 DLLTOOL=$lt_DLLTOOL
25716
25717 # Command to associate shared and link libraries.
25718 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25719
25720 # The archiver.
25721 AR=$lt_AR
25722
25723 # Flags to create an archive.
25724 AR_FLAGS=$lt_AR_FLAGS
25725
25726 # How to feed a file listing to the archiver.
25727 archiver_list_spec=$lt_archiver_list_spec
25728
25729 # A symbol stripping program.
25730 STRIP=$lt_STRIP
25731
25732 # Commands used to install an old-style archive.
25733 RANLIB=$lt_RANLIB
25734 old_postinstall_cmds=$lt_old_postinstall_cmds
25735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25736
25737 # Whether to use a lock for old archive extraction.
25738 lock_old_archive_extraction=$lock_old_archive_extraction
25739
25740 # A C compiler.
25741 LTCC=$lt_CC
25742
25743 # LTCC compiler flags.
25744 LTCFLAGS=$lt_CFLAGS
25745
25746 # Take the output of nm and produce a listing of raw symbols and C names.
25747 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25748
25749 # Transform the output of nm in a proper C declaration.
25750 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25751
25752 # Transform the output of nm into a list of symbols to manually relocate.
25753 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25754
25755 # Transform the output of nm in a C name address pair.
25756 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25757
25758 # Transform the output of nm in a C name address pair when lib prefix is needed.
25759 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25760
25761 # The name lister interface.
25762 nm_interface=$lt_lt_cv_nm_interface
25763
25764 # Specify filename containing input files for \$NM.
25765 nm_file_list_spec=$lt_nm_file_list_spec
25766
25767 # The root where to search for dependent libraries,and where our libraries should be installed.
25768 lt_sysroot=$lt_sysroot
25769
25770 # Command to truncate a binary pipe.
25771 lt_truncate_bin=$lt_lt_cv_truncate_bin
25772
25773 # The name of the directory that contains temporary libtool files.
25774 objdir=$objdir
25775
25776 # Used to examine libraries when file_magic_cmd begins with "file".
25777 MAGIC_CMD=$MAGIC_CMD
25778
25779 # Must we lock files when doing compilation?
25780 need_locks=$lt_need_locks
25781
25782 # Manifest tool.
25783 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25784
25785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25786 DSYMUTIL=$lt_DSYMUTIL
25787
25788 # Tool to change global to local symbols on Mac OS X.
25789 NMEDIT=$lt_NMEDIT
25790
25791 # Tool to manipulate fat objects and archives on Mac OS X.
25792 LIPO=$lt_LIPO
25793
25794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25795 OTOOL=$lt_OTOOL
25796
25797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25798 OTOOL64=$lt_OTOOL64
25799
25800 # Old archive suffix (normally "a").
25801 libext=$libext
25802
25803 # Shared library suffix (normally ".so").
25804 shrext_cmds=$lt_shrext_cmds
25805
25806 # The commands to extract the exported symbol list from a shared archive.
25807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25808
25809 # Variables whose values should be saved in libtool wrapper scripts and
25810 # restored at link time.
25811 variables_saved_for_relink=$lt_variables_saved_for_relink
25812
25813 # Do we need the "lib" prefix for modules?
25814 need_lib_prefix=$need_lib_prefix
25815
25816 # Do we need a version for libraries?
25817 need_version=$need_version
25818
25819 # Library versioning type.
25820 version_type=$version_type
25821
25822 # Shared library runtime path variable.
25823 runpath_var=$runpath_var
25824
25825 # Shared library path variable.
25826 shlibpath_var=$shlibpath_var
25827
25828 # Is shlibpath searched before the hard-coded library search path?
25829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25830
25831 # Format of library name prefix.
25832 libname_spec=$lt_libname_spec
25833
25834 # List of archive names. First name is the real one, the rest are links.
25835 # The last name is the one that the linker finds with -lNAME
25836 library_names_spec=$lt_library_names_spec
25837
25838 # The coded name of the library, if different from the real name.
25839 soname_spec=$lt_soname_spec
25840
25841 # Permission mode override for installation of shared libraries.
25842 install_override_mode=$lt_install_override_mode
25843
25844 # Command to use after installation of a shared archive.
25845 postinstall_cmds=$lt_postinstall_cmds
25846
25847 # Command to use after uninstallation of a shared archive.
25848 postuninstall_cmds=$lt_postuninstall_cmds
25849
25850 # Commands used to finish a libtool library installation in a directory.
25851 finish_cmds=$lt_finish_cmds
25852
25853 # As "finish_cmds", except a single script fragment to be evaled but
25854 # not shown.
25855 finish_eval=$lt_finish_eval
25856
25857 # Whether we should hardcode library paths into libraries.
25858 hardcode_into_libs=$hardcode_into_libs
25859
25860 # Compile-time system search path for libraries.
25861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25862
25863 # Detected run-time system search path for libraries.
25864 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25865
25866 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25867 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25868
25869 # Whether dlopen is supported.
25870 dlopen_support=$enable_dlopen
25871
25872 # Whether dlopen of programs is supported.
25873 dlopen_self=$enable_dlopen_self
25874
25875 # Whether dlopen of statically linked programs is supported.
25876 dlopen_self_static=$enable_dlopen_self_static
25877
25878 # Commands to strip libraries.
25879 old_striplib=$lt_old_striplib
25880 striplib=$lt_striplib
25881
25882
25883 # The linker used to build libraries.
25884 LD=$lt_LD
25885
25886 # How to create reloadable object files.
25887 reload_flag=$lt_reload_flag
25888 reload_cmds=$lt_reload_cmds
25889
25890 # Commands used to build an old-style archive.
25891 old_archive_cmds=$lt_old_archive_cmds
25892
25893 # A language specific compiler.
25894 CC=$lt_compiler
25895
25896 # Is the compiler the GNU compiler?
25897 with_gcc=$GCC
25898
25899 # Compiler flag to turn off builtin functions.
25900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25901
25902 # Additional compiler flags for building library objects.
25903 pic_flag=$lt_lt_prog_compiler_pic
25904
25905 # How to pass a linker flag through the compiler.
25906 wl=$lt_lt_prog_compiler_wl
25907
25908 # Compiler flag to prevent dynamic linking.
25909 link_static_flag=$lt_lt_prog_compiler_static
25910
25911 # Does compiler simultaneously support -c and -o options?
25912 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25913
25914 # Whether or not to add -lc for building shared libraries.
25915 build_libtool_need_lc=$archive_cmds_need_lc
25916
25917 # Whether or not to disallow shared libs when runtime libs are static.
25918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25919
25920 # Compiler flag to allow reflexive dlopens.
25921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25922
25923 # Compiler flag to generate shared objects directly from archives.
25924 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25925
25926 # Whether the compiler copes with passing no objects directly.
25927 compiler_needs_object=$lt_compiler_needs_object
25928
25929 # Create an old-style archive from a shared archive.
25930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25931
25932 # Create a temporary old-style archive to link instead of a shared archive.
25933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25934
25935 # Commands used to build a shared archive.
25936 archive_cmds=$lt_archive_cmds
25937 archive_expsym_cmds=$lt_archive_expsym_cmds
25938
25939 # Commands used to build a loadable module if different from building
25940 # a shared archive.
25941 module_cmds=$lt_module_cmds
25942 module_expsym_cmds=$lt_module_expsym_cmds
25943
25944 # Whether we are building with GNU ld or not.
25945 with_gnu_ld=$lt_with_gnu_ld
25946
25947 # Flag that allows shared libraries with undefined symbols to be built.
25948 allow_undefined_flag=$lt_allow_undefined_flag
25949
25950 # Flag that enforces no undefined symbols.
25951 no_undefined_flag=$lt_no_undefined_flag
25952
25953 # Flag to hardcode \$libdir into a binary during linking.
25954 # This must work even if \$libdir does not exist
25955 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25956
25957 # Whether we need a single "-rpath" flag with a separated argument.
25958 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25959
25960 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25961 # DIR into the resulting binary.
25962 hardcode_direct=$hardcode_direct
25963
25964 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25965 # DIR into the resulting binary and the resulting library dependency is
25966 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25967 # library is relocated.
25968 hardcode_direct_absolute=$hardcode_direct_absolute
25969
25970 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25971 # into the resulting binary.
25972 hardcode_minus_L=$hardcode_minus_L
25973
25974 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25975 # into the resulting binary.
25976 hardcode_shlibpath_var=$hardcode_shlibpath_var
25977
25978 # Set to "yes" if building a shared library automatically hardcodes DIR
25979 # into the library and all subsequent libraries and executables linked
25980 # against it.
25981 hardcode_automatic=$hardcode_automatic
25982
25983 # Set to yes if linker adds runtime paths of dependent libraries
25984 # to runtime path list.
25985 inherit_rpath=$inherit_rpath
25986
25987 # Whether libtool must link a program against all its dependency libraries.
25988 link_all_deplibs=$link_all_deplibs
25989
25990 # Set to "yes" if exported symbols are required.
25991 always_export_symbols=$always_export_symbols
25992
25993 # The commands to list exported symbols.
25994 export_symbols_cmds=$lt_export_symbols_cmds
25995
25996 # Symbols that should not be listed in the preloaded symbols.
25997 exclude_expsyms=$lt_exclude_expsyms
25998
25999 # Symbols that must always be exported.
26000 include_expsyms=$lt_include_expsyms
26001
26002 # Commands necessary for linking programs (against libraries) with templates.
26003 prelink_cmds=$lt_prelink_cmds
26004
26005 # Commands necessary for finishing linking programs.
26006 postlink_cmds=$lt_postlink_cmds
26007
26008 # Specify filename containing input files.
26009 file_list_spec=$lt_file_list_spec
26010
26011 # How to hardcode a shared library path into an executable.
26012 hardcode_action=$hardcode_action
26013
26014 # The directories searched by this compiler when creating a shared library.
26015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26016
26017 # Dependencies to place before and after the objects being linked to
26018 # create a shared library.
26019 predep_objects=$lt_predep_objects
26020 postdep_objects=$lt_postdep_objects
26021 predeps=$lt_predeps
26022 postdeps=$lt_postdeps
26023
26024 # The library search path used internally by the compiler when linking
26025 # a shared library.
26026 compiler_lib_search_path=$lt_compiler_lib_search_path
26027
26028 # ### END LIBTOOL CONFIG
26029
26030 _LT_EOF
26031
26032 cat <<'_LT_EOF' >> "$cfgfile"
26033
26034 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26035
26036 # func_munge_path_list VARIABLE PATH
26037 # -----------------------------------
26038 # VARIABLE is name of variable containing _space_ separated list of
26039 # directories to be munged by the contents of PATH, which is string
26040 # having a format:
26041 # "DIR[:DIR]:"
26042 # string "DIR[ DIR]" will be prepended to VARIABLE
26043 # ":DIR[:DIR]"
26044 # string "DIR[ DIR]" will be appended to VARIABLE
26045 # "DIRP[:DIRP]::[DIRA:]DIRA"
26046 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26047 # "DIRA[ DIRA]" will be appended to VARIABLE
26048 # "DIR[:DIR]"
26049 # VARIABLE will be replaced by "DIR[ DIR]"
26050 func_munge_path_list ()
26051 {
26052 case x$2 in
26053 x)
26054 ;;
26055 *:)
26056 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26057 ;;
26058 x:*)
26059 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26060 ;;
26061 *::*)
26062 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26063 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26064 ;;
26065 *)
26066 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26067 ;;
26068 esac
26069 }
26070
26071
26072 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26073 func_cc_basename ()
26074 {
26075 for cc_temp in $*""; do
26076 case $cc_temp in
26077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26079 \-*) ;;
26080 *) break;;
26081 esac
26082 done
26083 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26084 }
26085
26086
26087 # ### END FUNCTIONS SHARED WITH CONFIGURE
26088
26089 _LT_EOF
26090
26091 case $host_os in
26092 aix3*)
26093 cat <<\_LT_EOF >> "$cfgfile"
26094 # AIX sometimes has problems with the GCC collect2 program. For some
26095 # reason, if we set the COLLECT_NAMES environment variable, the problems
26096 # vanish in a puff of smoke.
26097 if test set != "${COLLECT_NAMES+set}"; then
26098 COLLECT_NAMES=
26099 export COLLECT_NAMES
26100 fi
26101 _LT_EOF
26102 ;;
26103 esac
26104
26105
26106 ltmain=$ac_aux_dir/ltmain.sh
26107
26108
26109 # We use sed instead of cat because bash on DJGPP gets confused if
26110 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26111 # text mode, it properly converts lines to CR/LF. This bash problem
26112 # is reportedly fixed, but why not run on old versions too?
26113 sed '$q' "$ltmain" >> "$cfgfile" \
26114 || (rm -f "$cfgfile"; exit 1)
26115
26116 mv -f "$cfgfile" "$ofile" ||
26117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26118 chmod +x "$ofile"
26119
26120
26121 cat <<_LT_EOF >> "$ofile"
26122
26123 # ### BEGIN LIBTOOL TAG CONFIG: CXX
26124
26125 # The linker used to build libraries.
26126 LD=$lt_LD_CXX
26127
26128 # How to create reloadable object files.
26129 reload_flag=$lt_reload_flag_CXX
26130 reload_cmds=$lt_reload_cmds_CXX
26131
26132 # Commands used to build an old-style archive.
26133 old_archive_cmds=$lt_old_archive_cmds_CXX
26134
26135 # A language specific compiler.
26136 CC=$lt_compiler_CXX
26137
26138 # Is the compiler the GNU compiler?
26139 with_gcc=$GCC_CXX
26140
26141 # Compiler flag to turn off builtin functions.
26142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
26143
26144 # Additional compiler flags for building library objects.
26145 pic_flag=$lt_lt_prog_compiler_pic_CXX
26146
26147 # How to pass a linker flag through the compiler.
26148 wl=$lt_lt_prog_compiler_wl_CXX
26149
26150 # Compiler flag to prevent dynamic linking.
26151 link_static_flag=$lt_lt_prog_compiler_static_CXX
26152
26153 # Does compiler simultaneously support -c and -o options?
26154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
26155
26156 # Whether or not to add -lc for building shared libraries.
26157 build_libtool_need_lc=$archive_cmds_need_lc_CXX
26158
26159 # Whether or not to disallow shared libs when runtime libs are static.
26160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
26161
26162 # Compiler flag to allow reflexive dlopens.
26163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
26164
26165 # Compiler flag to generate shared objects directly from archives.
26166 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
26167
26168 # Whether the compiler copes with passing no objects directly.
26169 compiler_needs_object=$lt_compiler_needs_object_CXX
26170
26171 # Create an old-style archive from a shared archive.
26172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
26173
26174 # Create a temporary old-style archive to link instead of a shared archive.
26175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
26176
26177 # Commands used to build a shared archive.
26178 archive_cmds=$lt_archive_cmds_CXX
26179 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
26180
26181 # Commands used to build a loadable module if different from building
26182 # a shared archive.
26183 module_cmds=$lt_module_cmds_CXX
26184 module_expsym_cmds=$lt_module_expsym_cmds_CXX
26185
26186 # Whether we are building with GNU ld or not.
26187 with_gnu_ld=$lt_with_gnu_ld_CXX
26188
26189 # Flag that allows shared libraries with undefined symbols to be built.
26190 allow_undefined_flag=$lt_allow_undefined_flag_CXX
26191
26192 # Flag that enforces no undefined symbols.
26193 no_undefined_flag=$lt_no_undefined_flag_CXX
26194
26195 # Flag to hardcode \$libdir into a binary during linking.
26196 # This must work even if \$libdir does not exist
26197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
26198
26199 # Whether we need a single "-rpath" flag with a separated argument.
26200 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
26201
26202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26203 # DIR into the resulting binary.
26204 hardcode_direct=$hardcode_direct_CXX
26205
26206 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
26207 # DIR into the resulting binary and the resulting library dependency is
26208 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
26209 # library is relocated.
26210 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
26211
26212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26213 # into the resulting binary.
26214 hardcode_minus_L=$hardcode_minus_L_CXX
26215
26216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26217 # into the resulting binary.
26218 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
26219
26220 # Set to "yes" if building a shared library automatically hardcodes DIR
26221 # into the library and all subsequent libraries and executables linked
26222 # against it.
26223 hardcode_automatic=$hardcode_automatic_CXX
26224
26225 # Set to yes if linker adds runtime paths of dependent libraries
26226 # to runtime path list.
26227 inherit_rpath=$inherit_rpath_CXX
26228
26229 # Whether libtool must link a program against all its dependency libraries.
26230 link_all_deplibs=$link_all_deplibs_CXX
26231
26232 # Set to "yes" if exported symbols are required.
26233 always_export_symbols=$always_export_symbols_CXX
26234
26235 # The commands to list exported symbols.
26236 export_symbols_cmds=$lt_export_symbols_cmds_CXX
26237
26238 # Symbols that should not be listed in the preloaded symbols.
26239 exclude_expsyms=$lt_exclude_expsyms_CXX
26240
26241 # Symbols that must always be exported.
26242 include_expsyms=$lt_include_expsyms_CXX
26243
26244 # Commands necessary for linking programs (against libraries) with templates.
26245 prelink_cmds=$lt_prelink_cmds_CXX
26246
26247 # Commands necessary for finishing linking programs.
26248 postlink_cmds=$lt_postlink_cmds_CXX
26249
26250 # Specify filename containing input files.
26251 file_list_spec=$lt_file_list_spec_CXX
26252
26253 # How to hardcode a shared library path into an executable.
26254 hardcode_action=$hardcode_action_CXX
26255
26256 # The directories searched by this compiler when creating a shared library.
26257 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
26258
26259 # Dependencies to place before and after the objects being linked to
26260 # create a shared library.
26261 predep_objects=$lt_predep_objects_CXX
26262 postdep_objects=$lt_postdep_objects_CXX
26263 predeps=$lt_predeps_CXX
26264 postdeps=$lt_postdeps_CXX
26265
26266 # The library search path used internally by the compiler when linking
26267 # a shared library.
26268 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26269
26270 # ### END LIBTOOL TAG CONFIG: CXX
26271 _LT_EOF
26272
26273 ;;
26274
26275 esac
26276 done # for ac_tag
26277
26278
26279 as_fn_exit 0
26280 _ACEOF
26281 ac_clean_files=$ac_clean_files_save
26282
26283 test $ac_write_fail = 0 ||
26284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26285
26286
26287 # configure is writing to config.log, and then calls config.status.
26288 # config.status does its own redirection, appending to config.log.
26289 # Unfortunately, on DOS this fails, as config.log is still kept open
26290 # by configure, so config.status won't be able to write to it; its
26291 # output is simply discarded. So we exec the FD to /dev/null,
26292 # effectively closing config.log, so it can be properly (re)opened and
26293 # appended to by config.status. When coming back to configure, we
26294 # need to make the FD available again.
26295 if test "$no_create" != yes; then
26296 ac_cs_success=:
26297 ac_config_status_args=
26298 test "$silent" = yes &&
26299 ac_config_status_args="$ac_config_status_args --quiet"
26300 exec 5>/dev/null
26301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26302 exec 5>>config.log
26303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26304 # would make configure fail if this is the last instruction.
26305 $ac_cs_success || as_fn_exit 1
26306 fi
26307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26309 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26310 fi
26311