]> git.saurik.com Git - cycript.git/blob - configure
Compress lexer tables for usual download in Cydia.
[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_OBJECTIVEC_FALSE
647 CY_OBJECTIVEC_TRUE
648 CY_JAVA_FALSE
649 CY_JAVA_TRUE
650 LTOBJECTIVEC
651 GNUSTEP_CONFIG
652 CY_OBJECTIVEC
653 LTJAVA
654 CY_JAVA
655 LTLIBFFI
656 LIBFFI_LIBS
657 LIBFFI_CFLAGS
658 CY_EXECUTE_FALSE
659 CY_EXECUTE_TRUE
660 CY_ATTACH_FALSE
661 CY_ATTACH_TRUE
662 CY_CONSOLE_FALSE
663 CY_CONSOLE_TRUE
664 LTJAVASCRIPTCORE
665 WEBKIT_LIBS
666 WEBKIT_CFLAGS
667 CY_EXECUTE
668 PTHREAD_CFLAGS
669 PTHREAD_LIBS
670 PTHREAD_CC
671 ax_pthread_config
672 LFLAGS
673 GNUTAR
674 GPERF
675 FLEX
676 BISON
677 TIME
678 GIT
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 HAVE_CXX11
683 CXXCPP
684 CPP
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 ac_ct_AR
714 AR
715 am__fastdepOBJCXX_FALSE
716 am__fastdepOBJCXX_TRUE
717 OBJCXXDEPMODE
718 ac_ct_OBJCXX
719 OBJCXXFLAGS
720 OBJCXX
721 am__fastdepCXX_FALSE
722 am__fastdepCXX_TRUE
723 CXXDEPMODE
724 ac_ct_CXX
725 CXXFLAGS
726 CXX
727 am__fastdepCC_FALSE
728 am__fastdepCC_TRUE
729 CCDEPMODE
730 am__nodep
731 AMDEPBACKSLASH
732 AMDEP_FALSE
733 AMDEP_TRUE
734 am__quote
735 am__include
736 DEPDIR
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 AM_BACKSLASH
748 AM_DEFAULT_VERBOSITY
749 AM_DEFAULT_V
750 AM_V
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 AWK
757 mkdir_p
758 MKDIR_P
759 INSTALL_STRIP_PROGRAM
760 STRIP
761 install_sh
762 MAKEINFO
763 AUTOHEADER
764 AUTOMAKE
765 AUTOCONF
766 ACLOCAL
767 VERSION
768 PACKAGE
769 CYGPATH_W
770 am__isrc
771 INSTALL_DATA
772 INSTALL_SCRIPT
773 INSTALL_PROGRAM
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_static
819 enable_shared
820 with_pic
821 enable_fast_install
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_javascript
827 enable_console
828 enable_attach
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CXX
839 CXXFLAGS
840 CCC
841 OBJCXX
842 OBJCXXFLAGS
843 LT_SYS_LIBRARY_PATH
844 CPP
845 CXXCPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 BISON
850 FLEX
851 GPERF
852 GNUTAR
853 LFLAGS
854 WEBKIT_CFLAGS
855 WEBKIT_LIBS
856 LIBFFI_CFLAGS
857 LIBFFI_LIBS
858 GNUSTEP_CONFIG'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of Cycript 0.9:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful (and
1481 sometimes confusing) to the casual installer
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --enable-static[=PKGS] build static libraries [default=no]
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-javascript[=ENGINE]
1492 use a JavaScript runtime (currently the only
1493 available option for ENGINE is JavaScriptCore)
1494 [default=yes]
1495 --disable-console disable console
1496 --disable-attach disable attach
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 both]
1503 --with-aix-soname=aix|svr4|both
1504 shared library versioning (aka "SONAME") variant to
1505 provide on AIX, [default=aix].
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1508 compiler's sysroot if not specified).
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 OBJCXX Objective C++ compiler command
1521 OBJCXXFLAGS Objective C++ compiler flags
1522 LT_SYS_LIBRARY_PATH
1523 User-defined run-time library search path.
1524 CPP C preprocessor
1525 CXXCPP C++ preprocessor
1526 PKG_CONFIG path to pkg-config utility
1527 PKG_CONFIG_PATH
1528 directories to add to pkg-config's search path
1529 PKG_CONFIG_LIBDIR
1530 path overriding pkg-config's built-in search path
1531 BISON GNU Project parser generator (yacc replacement)
1532 FLEX the fast lexical analyser generator
1533 GPERF perfect hash function generator
1534 GNUTAR a very sticky lump of files
1535 LFLAGS flex flags
1536 WEBKIT_CFLAGS
1537 C compiler flags for WEBKIT, overriding pkg-config
1538 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1539 GNUSTEP_CONFIG
1540 prints information about the current gnustep installation
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <saurik@saurik.com>.
1546 Cycript home page: <http://www.cycript.org/>.
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1558
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *)
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1574
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1604 fi
1605
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 Cycript configure 0.9
1610 generated by GNU Autoconf 2.69
1611
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615
1616 Copyright (C) 2009-2015 Jay Freeman (saurik)
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_cxx_try_compile LINENO
1664 # ----------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_cxx_try_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_cxx_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_cxx_try_compile
1700
1701 # ac_fn_objcxx_try_compile LINENO
1702 # -------------------------------
1703 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_objcxx_try_compile ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext
1708 if { { ac_try="$ac_compile"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_compile") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_objcxx_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest.$ac_objext; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_objcxx_try_compile
1738
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 test -x conftest$ac_exeext
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777 # interfere with the next link command; also delete a directory that is
1778 # left behind by Apple's compiler. We do this before executing the actions.
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_link
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_try_cpp LINENO
1817 # ----------------------
1818 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_cpp ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_cpp conftest.$ac_ext"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } > conftest.i && {
1838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 }; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847 fi
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_cpp
1852
1853 # ac_fn_c_try_run LINENO
1854 # ----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1856 # that executables *can* be run.
1857 ac_fn_c_try_run ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>&5
1868 ac_status=$?
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1871 { { case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_try") 2>&5
1878 ac_status=$?
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; }; }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: program exited with status $ac_status" >&5
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=$ac_status
1888 fi
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_run
1894
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1911
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1916
1917 #ifdef __STDC__
1918 # include <limits.h>
1919 #else
1920 # include <assert.h>
1921 #endif
1922
1923 #undef $2
1924
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1928 #ifdef __cplusplus
1929 extern "C"
1930 #endif
1931 char $2 ();
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1936 choke me
1937 #endif
1938
1939 int
1940 main ()
1941 {
1942 return $2 ();
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_link "$LINENO"; then :
1948 eval "$3=yes"
1949 else
1950 eval "$3=no"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1954 fi
1955 eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960 } # ac_fn_c_check_func
1961
1962 # ac_fn_cxx_try_cpp LINENO
1963 # ------------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965 ac_fn_cxx_try_cpp ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_cpp conftest.$ac_ext"
1969 case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } > conftest.i && {
1984 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 }; then :
1987 ac_retval=0
1988 else
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1991
1992 ac_retval=1
1993 fi
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1996
1997 } # ac_fn_cxx_try_cpp
1998
1999 # ac_fn_cxx_try_link LINENO
2000 # -------------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded.
2002 ac_fn_cxx_try_link ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 rm -f conftest.$ac_objext conftest$ac_exeext
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>conftest.err
2014 ac_status=$?
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2019 fi
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && {
2022 test -z "$ac_cxx_werror_flag" ||
2023 test ! -s conftest.err
2024 } && test -s conftest$ac_exeext && {
2025 test "$cross_compiling" = yes ||
2026 test -x conftest$ac_exeext
2027 }; then :
2028 ac_retval=0
2029 else
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 ac_retval=1
2034 fi
2035 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037 # interfere with the next link command; also delete a directory that is
2038 # left behind by Apple's compiler. We do this before executing the actions.
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2042
2043 } # ac_fn_cxx_try_link
2044
2045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # ---------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2049 # accordingly.
2050 ac_fn_cxx_check_header_mongrel ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if eval \${$3+:} false; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 else
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 #include <$2>
2070 _ACEOF
2071 if ac_fn_cxx_try_compile "$LINENO"; then :
2072 ac_header_compiler=yes
2073 else
2074 ac_header_compiler=no
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2079
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_cxx_try_cpp "$LINENO"; then :
2088 ac_header_preproc=yes
2089 else
2090 ac_header_preproc=no
2091 fi
2092 rm -f conftest.err conftest.i conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2095
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2098 yes:no: )
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104 no:yes:* )
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 ( $as_echo "## -------------------------------- ##
2116 ## Report this to saurik@saurik.com ##
2117 ## -------------------------------- ##"
2118 ) | sed "s/^/$as_me: WARNING: /" >&2
2119 ;;
2120 esac
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=\$ac_header_compiler"
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 fi
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_cxx_check_header_mongrel
2135
2136 # ac_fn_objcxx_try_link LINENO
2137 # ----------------------------
2138 # Try to link conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_objcxx_try_link ()
2140 {
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 rm -f conftest.$ac_objext conftest$ac_exeext
2143 if { { ac_try="$ac_link"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 $as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_link") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2156 fi
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && {
2159 test -z "$ac_objcxx_werror_flag" ||
2160 test ! -s conftest.err
2161 } && test -s conftest$ac_exeext && {
2162 test "$cross_compiling" = yes ||
2163 test -x conftest$ac_exeext
2164 }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171 fi
2172 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2173 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2174 # interfere with the next link command; also delete a directory that is
2175 # left behind by Apple's compiler. We do this before executing the actions.
2176 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 as_fn_set_status $ac_retval
2179
2180 } # ac_fn_objcxx_try_link
2181 cat >config.log <<_ACEOF
2182 This file contains any messages produced by compilers while
2183 running configure, to aid debugging if configure makes a mistake.
2184
2185 It was created by Cycript $as_me 0.9, which was
2186 generated by GNU Autoconf 2.69. Invocation command line was
2187
2188 $ $0 $@
2189
2190 _ACEOF
2191 exec 5>>config.log
2192 {
2193 cat <<_ASUNAME
2194 ## --------- ##
2195 ## Platform. ##
2196 ## --------- ##
2197
2198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2203
2204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2205 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2206
2207 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2208 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2210 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2211 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2212 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2213 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2214
2215 _ASUNAME
2216
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 $as_echo "PATH: $as_dir"
2223 done
2224 IFS=$as_save_IFS
2225
2226 } >&5
2227
2228 cat >&5 <<_ACEOF
2229
2230
2231 ## ----------- ##
2232 ## Core tests. ##
2233 ## ----------- ##
2234
2235 _ACEOF
2236
2237
2238 # Keep a trace of the command line.
2239 # Strip out --no-create and --no-recursion so they do not pile up.
2240 # Strip out --silent because we don't want to record it for future runs.
2241 # Also quote any args containing shell meta-characters.
2242 # Make two passes to allow for proper duplicate-argument suppression.
2243 ac_configure_args=
2244 ac_configure_args0=
2245 ac_configure_args1=
2246 ac_must_keep_next=false
2247 for ac_pass in 1 2
2248 do
2249 for ac_arg
2250 do
2251 case $ac_arg in
2252 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2254 | -silent | --silent | --silen | --sile | --sil)
2255 continue ;;
2256 *\'*)
2257 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 esac
2259 case $ac_pass in
2260 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2261 2)
2262 as_fn_append ac_configure_args1 " '$ac_arg'"
2263 if test $ac_must_keep_next = true; then
2264 ac_must_keep_next=false # Got value, back to normal.
2265 else
2266 case $ac_arg in
2267 *=* | --config-cache | -C | -disable-* | --disable-* \
2268 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2269 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2270 | -with-* | --with-* | -without-* | --without-* | --x)
2271 case "$ac_configure_args0 " in
2272 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2273 esac
2274 ;;
2275 -* ) ac_must_keep_next=true ;;
2276 esac
2277 fi
2278 as_fn_append ac_configure_args " '$ac_arg'"
2279 ;;
2280 esac
2281 done
2282 done
2283 { ac_configure_args0=; unset ac_configure_args0;}
2284 { ac_configure_args1=; unset ac_configure_args1;}
2285
2286 # When interrupted or exit'd, cleanup temporary files, and complete
2287 # config.log. We remove comments because anyway the quotes in there
2288 # would cause problems or look ugly.
2289 # WARNING: Use '\'' to represent an apostrophe within the trap.
2290 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2291 trap 'exit_status=$?
2292 # Save into config.log some information that might help in debugging.
2293 {
2294 echo
2295
2296 $as_echo "## ---------------- ##
2297 ## Cache variables. ##
2298 ## ---------------- ##"
2299 echo
2300 # The following way of writing the cache mishandles newlines in values,
2301 (
2302 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2303 eval ac_val=\$$ac_var
2304 case $ac_val in #(
2305 *${as_nl}*)
2306 case $ac_var in #(
2307 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2308 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2309 esac
2310 case $ac_var in #(
2311 _ | IFS | as_nl) ;; #(
2312 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2313 *) { eval $ac_var=; unset $ac_var;} ;;
2314 esac ;;
2315 esac
2316 done
2317 (set) 2>&1 |
2318 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2319 *${as_nl}ac_space=\ *)
2320 sed -n \
2321 "s/'\''/'\''\\\\'\'''\''/g;
2322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2323 ;; #(
2324 *)
2325 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2326 ;;
2327 esac |
2328 sort
2329 )
2330 echo
2331
2332 $as_echo "## ----------------- ##
2333 ## Output variables. ##
2334 ## ----------------- ##"
2335 echo
2336 for ac_var in $ac_subst_vars
2337 do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in
2340 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 esac
2342 $as_echo "$ac_var='\''$ac_val'\''"
2343 done | sort
2344 echo
2345
2346 if test -n "$ac_subst_files"; then
2347 $as_echo "## ------------------- ##
2348 ## File substitutions. ##
2349 ## ------------------- ##"
2350 echo
2351 for ac_var in $ac_subst_files
2352 do
2353 eval ac_val=\$$ac_var
2354 case $ac_val in
2355 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 esac
2357 $as_echo "$ac_var='\''$ac_val'\''"
2358 done | sort
2359 echo
2360 fi
2361
2362 if test -s confdefs.h; then
2363 $as_echo "## ----------- ##
2364 ## confdefs.h. ##
2365 ## ----------- ##"
2366 echo
2367 cat confdefs.h
2368 echo
2369 fi
2370 test "$ac_signal" != 0 &&
2371 $as_echo "$as_me: caught signal $ac_signal"
2372 $as_echo "$as_me: exit $exit_status"
2373 } >&5
2374 rm -f core *.core core.conftest.* &&
2375 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2376 exit $exit_status
2377 ' 0
2378 for ac_signal in 1 2 13 15; do
2379 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 done
2381 ac_signal=0
2382
2383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2384 rm -f -r conftest* confdefs.h
2385
2386 $as_echo "/* confdefs.h */" > confdefs.h
2387
2388 # Predefined preprocessor variables.
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_NAME "$PACKAGE_NAME"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_STRING "$PACKAGE_STRING"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_URL "$PACKAGE_URL"
2412 _ACEOF
2413
2414
2415 # Let the site file select an alternate cache file if it wants to.
2416 # Prefer an explicitly selected file to automatically selected ones.
2417 ac_site_file1=NONE
2418 ac_site_file2=NONE
2419 if test -n "$CONFIG_SITE"; then
2420 # We do not want a PATH search for config.site.
2421 case $CONFIG_SITE in #((
2422 -*) ac_site_file1=./$CONFIG_SITE;;
2423 */*) ac_site_file1=$CONFIG_SITE;;
2424 *) ac_site_file1=./$CONFIG_SITE;;
2425 esac
2426 elif test "x$prefix" != xNONE; then
2427 ac_site_file1=$prefix/share/config.site
2428 ac_site_file2=$prefix/etc/config.site
2429 else
2430 ac_site_file1=$ac_default_prefix/share/config.site
2431 ac_site_file2=$ac_default_prefix/etc/config.site
2432 fi
2433 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2434 do
2435 test "x$ac_site_file" = xNONE && continue
2436 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2438 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2439 sed 's/^/| /' "$ac_site_file" >&5
2440 . "$ac_site_file" \
2441 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 as_fn_error $? "failed to load site script $ac_site_file
2444 See \`config.log' for more details" "$LINENO" 5; }
2445 fi
2446 done
2447
2448 if test -r "$cache_file"; then
2449 # Some versions of bash will fail to source /dev/null (special files
2450 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2451 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2453 $as_echo "$as_me: loading cache $cache_file" >&6;}
2454 case $cache_file in
2455 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2456 *) . "./$cache_file";;
2457 esac
2458 fi
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2461 $as_echo "$as_me: creating cache $cache_file" >&6;}
2462 >$cache_file
2463 fi
2464
2465 # Check that the precious variables saved in the cache have kept the same
2466 # value.
2467 ac_cache_corrupted=false
2468 for ac_var in $ac_precious_vars; do
2469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470 eval ac_new_set=\$ac_env_${ac_var}_set
2471 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472 eval ac_new_val=\$ac_env_${ac_var}_value
2473 case $ac_old_set,$ac_new_set in
2474 set,)
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477 ac_cache_corrupted=: ;;
2478 ,set)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,);;
2483 *)
2484 if test "x$ac_old_val" != "x$ac_new_val"; then
2485 # differences in whitespace do not lead to failure.
2486 ac_old_val_w=`echo x $ac_old_val`
2487 ac_new_val_w=`echo x $ac_new_val`
2488 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491 ac_cache_corrupted=:
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495 eval $ac_var=\$ac_old_val
2496 fi
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2498 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2500 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 fi;;
2502 esac
2503 # Pass precious variables to config.status.
2504 if test "$ac_new_set" = set; then
2505 case $ac_new_val in
2506 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507 *) ac_arg=$ac_var=$ac_new_val ;;
2508 esac
2509 case " $ac_configure_args " in
2510 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2511 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2512 esac
2513 fi
2514 done
2515 if $ac_cache_corrupted; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2521 fi
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2525
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534
2535
2536 ac_aux_dir=
2537 for ac_dir in . "$srcdir"/.; do
2538 if test -f "$ac_dir/install-sh"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/install-sh -c"
2541 break
2542 elif test -f "$ac_dir/install.sh"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/install.sh -c"
2545 break
2546 elif test -f "$ac_dir/shtool"; then
2547 ac_aux_dir=$ac_dir
2548 ac_install_sh="$ac_aux_dir/shtool install -c"
2549 break
2550 fi
2551 done
2552 if test -z "$ac_aux_dir"; then
2553 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2554 fi
2555
2556 # These three variables are undocumented and unsupported,
2557 # and are intended to be withdrawn in a future Autoconf release.
2558 # They can cause serious problems if a builder's source tree is in a directory
2559 # whose full name contains unusual characters.
2560 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563
2564
2565
2566 ac_config_headers="$ac_config_headers config.h"
2567
2568
2569 am__api_version='1.15'
2570
2571 # Find a good install program. We prefer a C program (faster),
2572 # so one script is as good as another. But avoid the broken or
2573 # incompatible versions:
2574 # SysV /etc/install, /usr/sbin/install
2575 # SunOS /usr/etc/install
2576 # IRIX /sbin/install
2577 # AIX /bin/install
2578 # AmigaOS /C/install, which installs bootblocks on floppy discs
2579 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2580 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2581 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2582 # OS/2's system install, which has a completely different semantic
2583 # ./install, which can be erroneously created by make from ./install.sh.
2584 # Reject install programs that cannot install multiple files.
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2586 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2587 if test -z "$INSTALL"; then
2588 if ${ac_cv_path_install+:} false; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 # Account for people who put trailing slashes in PATH elements.
2597 case $as_dir/ in #((
2598 ./ | .// | /[cC]/* | \
2599 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2600 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2601 /usr/ucb/* ) ;;
2602 *)
2603 # OSF1 and SCO ODT 3.0 have their own names for install.
2604 # Don't use installbsd from OSF since it installs stuff as root
2605 # by default.
2606 for ac_prog in ginstall scoinst install; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2609 if test $ac_prog = install &&
2610 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611 # AIX install. It has an incompatible calling convention.
2612 :
2613 elif test $ac_prog = install &&
2614 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615 # program-specific install script used by HP pwplus--don't use.
2616 :
2617 else
2618 rm -rf conftest.one conftest.two conftest.dir
2619 echo one > conftest.one
2620 echo two > conftest.two
2621 mkdir conftest.dir
2622 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2623 test -s conftest.one && test -s conftest.two &&
2624 test -s conftest.dir/conftest.one &&
2625 test -s conftest.dir/conftest.two
2626 then
2627 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2628 break 3
2629 fi
2630 fi
2631 fi
2632 done
2633 done
2634 ;;
2635 esac
2636
2637 done
2638 IFS=$as_save_IFS
2639
2640 rm -rf conftest.one conftest.two conftest.dir
2641
2642 fi
2643 if test "${ac_cv_path_install+set}" = set; then
2644 INSTALL=$ac_cv_path_install
2645 else
2646 # As a last resort, use the slow shell script. Don't cache a
2647 # value for INSTALL within a source directory, because that will
2648 # break other packages using the cache if that directory is
2649 # removed, or if the value is a relative name.
2650 INSTALL=$ac_install_sh
2651 fi
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2654 $as_echo "$INSTALL" >&6; }
2655
2656 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2657 # It thinks the first close brace ends the variable substitution.
2658 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2659
2660 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2661
2662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2665 $as_echo_n "checking whether build environment is sane... " >&6; }
2666 # Reject unsafe characters in $srcdir or the absolute working directory
2667 # name. Accept space and tab only in the latter.
2668 am_lf='
2669 '
2670 case `pwd` in
2671 *[\\\"\#\$\&\'\`$am_lf]*)
2672 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2673 esac
2674 case $srcdir in
2675 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2676 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2677 esac
2678
2679 # Do 'set' in a subshell so we don't clobber the current shell's
2680 # arguments. Must try -L first in case configure is actually a
2681 # symlink; some systems play weird games with the mod time of symlinks
2682 # (eg FreeBSD returns the mod time of the symlink's containing
2683 # directory).
2684 if (
2685 am_has_slept=no
2686 for am_try in 1 2; do
2687 echo "timestamp, slept: $am_has_slept" > conftest.file
2688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2689 if test "$*" = "X"; then
2690 # -L didn't work.
2691 set X `ls -t "$srcdir/configure" conftest.file`
2692 fi
2693 if test "$*" != "X $srcdir/configure conftest.file" \
2694 && test "$*" != "X conftest.file $srcdir/configure"; then
2695
2696 # If neither matched, then we have a broken ls. This can happen
2697 # if, for instance, CONFIG_SHELL is bash and it inherits a
2698 # broken ls alias from the environment. This has actually
2699 # happened. Such a system could not be considered "sane".
2700 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2701 alias in your environment" "$LINENO" 5
2702 fi
2703 if test "$2" = conftest.file || test $am_try -eq 2; then
2704 break
2705 fi
2706 # Just in case.
2707 sleep 1
2708 am_has_slept=yes
2709 done
2710 test "$2" = conftest.file
2711 )
2712 then
2713 # Ok.
2714 :
2715 else
2716 as_fn_error $? "newly created file is older than distributed files!
2717 Check your system clock" "$LINENO" 5
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 # If we didn't sleep, we still need to ensure time stamps of config.status and
2722 # generated files are strictly newer.
2723 am_sleep_pid=
2724 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2725 ( sleep 1 ) &
2726 am_sleep_pid=$!
2727 fi
2728
2729 rm -f conftest.file
2730
2731 test "$program_prefix" != NONE &&
2732 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2733 # Use a double $ so make ignores it.
2734 test "$program_suffix" != NONE &&
2735 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2736 # Double any \ or $.
2737 # By default was `s,x,x', remove it if useless.
2738 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2739 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2740
2741 # Expand $ac_aux_dir to an absolute path.
2742 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2743
2744 if test x"${MISSING+set}" != xset; then
2745 case $am_aux_dir in
2746 *\ * | *\ *)
2747 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2748 *)
2749 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2750 esac
2751 fi
2752 # Use eval to expand $SHELL
2753 if eval "$MISSING --is-lightweight"; then
2754 am_missing_run="$MISSING "
2755 else
2756 am_missing_run=
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2758 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2759 fi
2760
2761 if test x"${install_sh+set}" != xset; then
2762 case $am_aux_dir in
2763 *\ * | *\ *)
2764 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2765 *)
2766 install_sh="\${SHELL} $am_aux_dir/install-sh"
2767 esac
2768 fi
2769
2770 # Installed binaries are usually stripped using 'strip' when the user
2771 # run "make install-strip". However 'strip' might not be the right
2772 # tool to use in cross-compilation environments, therefore Automake
2773 # will honor the 'STRIP' environment variable to overrule this program.
2774 if test "$cross_compiling" != no; then
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}strip; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_STRIP+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$STRIP"; then
2784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 STRIP=$ac_cv_prog_STRIP
2804 if test -n "$STRIP"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2806 $as_echo "$STRIP" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 if test -z "$ac_cv_prog_STRIP"; then
2815 ac_ct_STRIP=$STRIP
2816 # Extract the first word of "strip", so it can be a program name with args.
2817 set dummy strip; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$ac_ct_STRIP"; then
2824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_ac_ct_STRIP="strip"
2834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2836 fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2844 if test -n "$ac_ct_STRIP"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2846 $as_echo "$ac_ct_STRIP" >&6; }
2847 else
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852 if test "x$ac_ct_STRIP" = x; then
2853 STRIP=":"
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861 STRIP=$ac_ct_STRIP
2862 fi
2863 else
2864 STRIP="$ac_cv_prog_STRIP"
2865 fi
2866
2867 fi
2868 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2871 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2872 if test -z "$MKDIR_P"; then
2873 if ${ac_cv_path_mkdir+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_prog in mkdir gmkdir; do
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2884 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2885 'mkdir (GNU coreutils) '* | \
2886 'mkdir (coreutils) '* | \
2887 'mkdir (fileutils) '4.1*)
2888 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2889 break 3;;
2890 esac
2891 done
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897
2898 test -d ./--version && rmdir ./--version
2899 if test "${ac_cv_path_mkdir+set}" = set; then
2900 MKDIR_P="$ac_cv_path_mkdir -p"
2901 else
2902 # As a last resort, use the slow shell script. Don't cache a
2903 # value for MKDIR_P within a source directory, because that will
2904 # break other packages using the cache if that directory is
2905 # removed, or if the value is a relative name.
2906 MKDIR_P="$ac_install_sh -d"
2907 fi
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2910 $as_echo "$MKDIR_P" >&6; }
2911
2912 for ac_prog in gawk mawk nawk awk
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if ${ac_cv_prog_AWK+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_AWK="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 AWK=$ac_cv_prog_AWK
2942 if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944 $as_echo "$AWK" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 test -n "$AWK" && break
2952 done
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2955 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2956 set x ${MAKE-make}
2957 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2958 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 cat >conftest.make <<\_ACEOF
2962 SHELL = /bin/sh
2963 all:
2964 @echo '@@@%%%=$(MAKE)=@@@%%%'
2965 _ACEOF
2966 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2967 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2968 *@@@%%%=?*=@@@%%%*)
2969 eval ac_cv_prog_make_${ac_make}_set=yes;;
2970 *)
2971 eval ac_cv_prog_make_${ac_make}_set=no;;
2972 esac
2973 rm -f conftest.make
2974 fi
2975 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2977 $as_echo "yes" >&6; }
2978 SET_MAKE=
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 SET_MAKE="MAKE=${MAKE-make}"
2983 fi
2984
2985 rm -rf .tst 2>/dev/null
2986 mkdir .tst 2>/dev/null
2987 if test -d .tst; then
2988 am__leading_dot=.
2989 else
2990 am__leading_dot=_
2991 fi
2992 rmdir .tst 2>/dev/null
2993
2994 # Check whether --enable-silent-rules was given.
2995 if test "${enable_silent_rules+set}" = set; then :
2996 enableval=$enable_silent_rules;
2997 fi
2998
2999 case $enable_silent_rules in # (((
3000 yes) AM_DEFAULT_VERBOSITY=0;;
3001 no) AM_DEFAULT_VERBOSITY=1;;
3002 *) AM_DEFAULT_VERBOSITY=1;;
3003 esac
3004 am_make=${MAKE-make}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3006 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3007 if ${am_cv_make_support_nested_variables+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if $as_echo 'TRUE=$(BAR$(V))
3011 BAR0=false
3012 BAR1=true
3013 V=1
3014 am__doit:
3015 @$(TRUE)
3016 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3017 am_cv_make_support_nested_variables=yes
3018 else
3019 am_cv_make_support_nested_variables=no
3020 fi
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3023 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3024 if test $am_cv_make_support_nested_variables = yes; then
3025 AM_V='$(V)'
3026 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3027 else
3028 AM_V=$AM_DEFAULT_VERBOSITY
3029 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3030 fi
3031 AM_BACKSLASH='\'
3032
3033 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3034 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3035 # is not polluted with repeated "-I."
3036 am__isrc=' -I$(srcdir)'
3037 # test to see if srcdir already configured
3038 if test -f $srcdir/config.status; then
3039 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3040 fi
3041 fi
3042
3043 # test whether we have cygpath
3044 if test -z "$CYGPATH_W"; then
3045 if (cygpath --version) >/dev/null 2>/dev/null; then
3046 CYGPATH_W='cygpath -w'
3047 else
3048 CYGPATH_W=echo
3049 fi
3050 fi
3051
3052
3053 # Define the identity of the package.
3054 PACKAGE='cycript'
3055 VERSION='0.9'
3056
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE "$PACKAGE"
3060 _ACEOF
3061
3062
3063 cat >>confdefs.h <<_ACEOF
3064 #define VERSION "$VERSION"
3065 _ACEOF
3066
3067 # Some tools Automake needs.
3068
3069 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3070
3071
3072 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3073
3074
3075 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3076
3077
3078 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3079
3080
3081 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3082
3083 # For better backward compatibility. To be removed once Automake 1.9.x
3084 # dies out for good. For more background, see:
3085 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3087 mkdir_p='$(MKDIR_P)'
3088
3089 # We need awk for the "check" target (and possibly the TAP driver). The
3090 # system "awk" is bad on some platforms.
3091 # Always define AMTAR for backward compatibility. Yes, it's still used
3092 # in the wild :-( We should find a proper way to deprecate it ...
3093 AMTAR='$${TAR-tar}'
3094
3095
3096 # We'll loop over all known methods to create a tar archive until one works.
3097 _am_tools='gnutar pax cpio none'
3098
3099 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3100
3101
3102
3103
3104
3105
3106 # POSIX will say in a future version that running "rm -f" with no argument
3107 # is OK; and we want to be able to make that assumption in our Makefile
3108 # recipes. So use an aggressive probe to check that the usage we want is
3109 # actually supported "in the wild" to an acceptable degree.
3110 # See automake bug#10828.
3111 # To make any issue more visible, cause the running configure to be aborted
3112 # by default if the 'rm' program in use doesn't match our expectations; the
3113 # user can still override this though.
3114 if rm -f && rm -fr && rm -rf; then : OK; else
3115 cat >&2 <<'END'
3116 Oops!
3117
3118 Your 'rm' program seems unable to run without file operands specified
3119 on the command line, even when the '-f' option is present. This is contrary
3120 to the behaviour of most rm programs out there, and not conforming with
3121 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3122
3123 Please tell bug-automake@gnu.org about your system, including the value
3124 of your $PATH and any error possibly output before this message. This
3125 can help us improve future automake versions.
3126
3127 END
3128 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3129 echo 'Configuration will proceed anyway, since you have set the' >&2
3130 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3131 echo >&2
3132 else
3133 cat >&2 <<'END'
3134 Aborting the configuration process, to ensure you take notice of the issue.
3135
3136 You can download and install GNU coreutils to get an 'rm' implementation
3137 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3138
3139 If you want to complete the configuration process using your problematic
3140 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3141 to "yes", and re-run configure.
3142
3143 END
3144 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3145 fi
3146 fi
3147
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3150 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3151 # Check whether --enable-maintainer-mode was given.
3152 if test "${enable_maintainer_mode+set}" = set; then :
3153 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3154 else
3155 USE_MAINTAINER_MODE=no
3156 fi
3157
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3159 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3160 if test $USE_MAINTAINER_MODE = yes; then
3161 MAINTAINER_MODE_TRUE=
3162 MAINTAINER_MODE_FALSE='#'
3163 else
3164 MAINTAINER_MODE_TRUE='#'
3165 MAINTAINER_MODE_FALSE=
3166 fi
3167
3168 MAINT=$MAINTAINER_MODE_TRUE
3169
3170
3171
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3190 do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215 fi
3216 if test -z "$ac_cv_prog_CC"; then
3217 ac_ct_CC=$CC
3218 # Extract the first word of "gcc", so it can be a program name with args.
3219 set dummy gcc; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_CC="gcc"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254 if test "x$ac_ct_CC" = x; then
3255 CC=""
3256 else
3257 case $cross_compiling:$ac_tool_warned in
3258 yes:)
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261 ac_tool_warned=yes ;;
3262 esac
3263 CC=$ac_ct_CC
3264 fi
3265 else
3266 CC="$ac_cv_prog_CC"
3267 fi
3268
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}cc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 fi
3309 fi
3310 if test -z "$CC"; then
3311 # Extract the first word of "cc", so it can be a program name with args.
3312 set dummy cc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 ac_prog_rejected=no
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3330 ac_prog_rejected=yes
3331 continue
3332 fi
3333 ac_cv_prog_CC="cc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341 if test $ac_prog_rejected = yes; then
3342 # We found a bogon in the path, so make sure we never use it.
3343 set dummy $ac_cv_prog_CC
3344 shift
3345 if test $# != 0; then
3346 # We chose a different compiler from the bogus one.
3347 # However, it has the same basename, so the bogon will be chosen
3348 # first if we set CC to just the basename; use the full file name.
3349 shift
3350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3351 fi
3352 fi
3353 fi
3354 fi
3355 CC=$ac_cv_prog_CC
3356 if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358 $as_echo "$CC" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 fi
3363
3364
3365 fi
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 for ac_prog in cl.exe
3369 do
3370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 test -n "$CC" && break
3408 done
3409 fi
3410 if test -z "$CC"; then
3411 ac_ct_CC=$CC
3412 for ac_prog in cl.exe
3413 do
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415 set dummy $ac_prog; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_ac_ct_CC="$ac_prog"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 test -n "$ac_ct_CC" && break
3452 done
3453
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 CC=$ac_ct_CC
3464 fi
3465 fi
3466
3467 fi
3468
3469
3470 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "no acceptable C compiler found in \$PATH
3473 See \`config.log' for more details" "$LINENO" 5; }
3474
3475 # Provide some information about the compiler.
3476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3477 set X $ac_compile
3478 ac_compiler=$2
3479 for ac_option in --version -v -V -qversion; do
3480 { { ac_try="$ac_compiler $ac_option >&5"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3488 ac_status=$?
3489 if test -s conftest.err; then
3490 sed '10a\
3491 ... rest of stderr output deleted ...
3492 10q' conftest.err >conftest.er1
3493 cat conftest.er1 >&5
3494 fi
3495 rm -f conftest.er1 conftest.err
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }
3498 done
3499
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 ac_clean_files_save=$ac_clean_files
3512 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3513 # Try to create an executable without -o first, disregard a.out.
3514 # It will help us diagnose broken compilers, and finding out an intuition
3515 # of exeext.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3517 $as_echo_n "checking whether the C compiler works... " >&6; }
3518 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3519
3520 # The possible output files:
3521 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3522
3523 ac_rmfiles=
3524 for ac_file in $ac_files
3525 do
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3529 esac
3530 done
3531 rm -f $ac_rmfiles
3532
3533 if { { ac_try="$ac_link_default"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_link_default") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3545 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3546 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3547 # so that the user can short-circuit this test for compilers unknown to
3548 # Autoconf.
3549 for ac_file in $ac_files ''
3550 do
3551 test -f "$ac_file" || continue
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3554 ;;
3555 [ab].out )
3556 # We found the default executable, but exeext='' is most
3557 # certainly right.
3558 break;;
3559 *.* )
3560 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3561 then :; else
3562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563 fi
3564 # We set ac_cv_exeext here because the later test for it is not
3565 # safe: cross compilers may not add the suffix if given an `-o'
3566 # argument, so we may need to know it at that point already.
3567 # Even if this section looks crufty: it has the advantage of
3568 # actually working.
3569 break;;
3570 * )
3571 break;;
3572 esac
3573 done
3574 test "$ac_cv_exeext" = no && ac_cv_exeext=
3575
3576 else
3577 ac_file=''
3578 fi
3579 if test -z "$ac_file"; then :
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3582 $as_echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error 77 "C compiler cannot create executables
3588 See \`config.log' for more details" "$LINENO" 5; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591 $as_echo "yes" >&6; }
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3594 $as_echo_n "checking for C compiler default output file name... " >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3596 $as_echo "$ac_file" >&6; }
3597 ac_exeext=$ac_cv_exeext
3598
3599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3600 ac_clean_files=$ac_clean_files_save
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3602 $as_echo_n "checking for suffix of executables... " >&6; }
3603 if { { ac_try="$ac_link"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_link") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; then :
3614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3616 # work properly (i.e., refer to `conftest.exe'), while it won't with
3617 # `rm'.
3618 for ac_file in conftest.exe conftest conftest.*; do
3619 test -f "$ac_file" || continue
3620 case $ac_file in
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 break;;
3624 * ) break;;
3625 esac
3626 done
3627 else
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3631 See \`config.log' for more details" "$LINENO" 5; }
3632 fi
3633 rm -f conftest conftest$ac_cv_exeext
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3635 $as_echo "$ac_cv_exeext" >&6; }
3636
3637 rm -f conftest.$ac_ext
3638 EXEEXT=$ac_cv_exeext
3639 ac_exeext=$EXEEXT
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 #include <stdio.h>
3643 int
3644 main ()
3645 {
3646 FILE *f = fopen ("conftest.out", "w");
3647 return ferror (f) || fclose (f) != 0;
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files="$ac_clean_files conftest.out"
3654 # Check that the compiler produces executables we can run. If not, either
3655 # the compiler is broken, or we cross compile.
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3657 $as_echo_n "checking whether we are cross compiling... " >&6; }
3658 if test "$cross_compiling" != yes; then
3659 { { ac_try="$ac_link"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }
3670 if { ac_try='./conftest$ac_cv_exeext'
3671 { { case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_try") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; }; then
3681 cross_compiling=no
3682 else
3683 if test "$cross_compiling" = maybe; then
3684 cross_compiling=yes
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $? "cannot run C compiled programs.
3689 If you meant to cross compile, use \`--host'.
3690 See \`config.log' for more details" "$LINENO" 5; }
3691 fi
3692 fi
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3695 $as_echo "$cross_compiling" >&6; }
3696
3697 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3698 ac_clean_files=$ac_clean_files_save
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700 $as_echo_n "checking for suffix of object files... " >&6; }
3701 if ${ac_cv_objext+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.o conftest.obj
3716 if { { ac_try="$ac_compile"
3717 case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compile") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; then :
3727 for ac_file in conftest.o conftest.obj conftest.*; do
3728 test -f "$ac_file" || continue;
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732 break;;
3733 esac
3734 done
3735 else
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error $? "cannot compute suffix of object files: cannot compile
3742 See \`config.log' for more details" "$LINENO" 5; }
3743 fi
3744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747 $as_echo "$ac_cv_objext" >&6; }
3748 OBJEXT=$ac_cv_objext
3749 ac_objext=$OBJEXT
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752 if ${ac_cv_c_compiler_gnu+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main ()
3760 {
3761 #ifndef __GNUC__
3762 choke me
3763 #endif
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_compiler_gnu=yes
3771 else
3772 ac_compiler_gnu=no
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3780 if test $ac_compiler_gnu = yes; then
3781 GCC=yes
3782 else
3783 GCC=
3784 fi
3785 ac_test_CFLAGS=${CFLAGS+set}
3786 ac_save_CFLAGS=$CFLAGS
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3789 if ${ac_cv_prog_cc_g+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_save_c_werror_flag=$ac_c_werror_flag
3793 ac_c_werror_flag=yes
3794 ac_cv_prog_cc_g=no
3795 CFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
3809 else
3810 CFLAGS=""
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823
3824 else
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3826 CFLAGS="-g"
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829
3830 int
3831 main ()
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_prog_cc_g=yes
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849 $as_echo "$ac_cv_prog_cc_g" >&6; }
3850 if test "$ac_test_CFLAGS" = set; then
3851 CFLAGS=$ac_save_CFLAGS
3852 elif test $ac_cv_prog_cc_g = yes; then
3853 if test "$GCC" = yes; then
3854 CFLAGS="-g -O2"
3855 else
3856 CFLAGS="-g"
3857 fi
3858 else
3859 if test "$GCC" = yes; then
3860 CFLAGS="-O2"
3861 else
3862 CFLAGS=
3863 fi
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867 if ${ac_cv_prog_cc_c89+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 ac_cv_prog_cc_c89=no
3871 ac_save_CC=$CC
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874 #include <stdarg.h>
3875 #include <stdio.h>
3876 struct stat;
3877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3878 struct buf { int x; };
3879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3880 static char *e (p, i)
3881 char **p;
3882 int i;
3883 {
3884 return p[i];
3885 }
3886 static char *f (char * (*g) (char **, int), char **p, ...)
3887 {
3888 char *s;
3889 va_list v;
3890 va_start (v,p);
3891 s = g (p, va_arg (v,int));
3892 va_end (v);
3893 return s;
3894 }
3895
3896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3897 function prototypes and stuff, but not '\xHH' hex character constants.
3898 These don't provoke an error unfortunately, instead are silently treated
3899 as 'x'. The following induces an error, until -std is added to get
3900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3901 array size at least. It's necessary to write '\x00'==0 to get something
3902 that's true only with -std. */
3903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3904
3905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3906 inside strings and character constants. */
3907 #define FOO(x) 'x'
3908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3909
3910 int test (int i, double x);
3911 struct s1 {int (*f) (int a);};
3912 struct s2 {int (*f) (double a);};
3913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3914 int argc;
3915 char **argv;
3916 int
3917 main ()
3918 {
3919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3926 do
3927 CC="$ac_save_CC $ac_arg"
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_c89=$ac_arg
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext
3932 test "x$ac_cv_prog_cc_c89" != "xno" && break
3933 done
3934 rm -f conftest.$ac_ext
3935 CC=$ac_save_CC
3936
3937 fi
3938 # AC_CACHE_VAL
3939 case "x$ac_cv_prog_cc_c89" in
3940 x)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3942 $as_echo "none needed" >&6; } ;;
3943 xno)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3945 $as_echo "unsupported" >&6; } ;;
3946 *)
3947 CC="$CC $ac_cv_prog_cc_c89"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 esac
3951 if test "x$ac_cv_prog_cc_c89" != xno; then :
3952
3953 fi
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3967 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3968 if ${am_cv_prog_cc_c_o+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973
3974 int
3975 main ()
3976 {
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 # Make sure it works both with $CC and with simple cc.
3983 # Following AC_PROG_CC_C_O, we do the test twice because some
3984 # compilers refuse to overwrite an existing .o file with -o,
3985 # though they will create one.
3986 am_cv_prog_cc_c_o=yes
3987 for am_i in 1 2; do
3988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } \
3993 && test -f conftest2.$ac_objext; then
3994 : OK
3995 else
3996 am_cv_prog_cc_c_o=no
3997 break
3998 fi
3999 done
4000 rm -f core conftest*
4001 unset am_i
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4004 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4005 if test "$am_cv_prog_cc_c_o" != yes; then
4006 # Losing compiler, so override with the script.
4007 # FIXME: It is wrong to rewrite CC.
4008 # But if we don't then we get into trouble of one sort or another.
4009 # A longer-term fix would be to have automake use am__CC in this case,
4010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4011 CC="$am_aux_dir/compile $CC"
4012 fi
4013 ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 DEPDIR="${am__leading_dot}deps"
4020
4021 ac_config_commands="$ac_config_commands depfiles"
4022
4023
4024 am_make=${MAKE-make}
4025 cat > confinc << 'END'
4026 am__doit:
4027 @echo this is the am__doit target
4028 .PHONY: am__doit
4029 END
4030 # If we don't find an include directive, just comment out the code.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4032 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4033 am__include="#"
4034 am__quote=
4035 _am_result=none
4036 # First try GNU make style include.
4037 echo "include confinc" > confmf
4038 # Ignore all kinds of additional output from 'make'.
4039 case `$am_make -s -f confmf 2> /dev/null` in #(
4040 *the\ am__doit\ target*)
4041 am__include=include
4042 am__quote=
4043 _am_result=GNU
4044 ;;
4045 esac
4046 # Now try BSD make style include.
4047 if test "$am__include" = "#"; then
4048 echo '.include "confinc"' > confmf
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4051 am__include=.include
4052 am__quote="\""
4053 _am_result=BSD
4054 ;;
4055 esac
4056 fi
4057
4058
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4060 $as_echo "$_am_result" >&6; }
4061 rm -f confinc confmf
4062
4063 # Check whether --enable-dependency-tracking was given.
4064 if test "${enable_dependency_tracking+set}" = set; then :
4065 enableval=$enable_dependency_tracking;
4066 fi
4067
4068 if test "x$enable_dependency_tracking" != xno; then
4069 am_depcomp="$ac_aux_dir/depcomp"
4070 AMDEPBACKSLASH='\'
4071 am__nodep='_no'
4072 fi
4073 if test "x$enable_dependency_tracking" != xno; then
4074 AMDEP_TRUE=
4075 AMDEP_FALSE='#'
4076 else
4077 AMDEP_TRUE='#'
4078 AMDEP_FALSE=
4079 fi
4080
4081
4082
4083 depcc="$CC" am_compiler_list=
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086 $as_echo_n "checking dependency style of $depcc... " >&6; }
4087 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091 # We make a subdir and do the tests there. Otherwise we can end up
4092 # making bogus files that we don't know about and never remove. For
4093 # instance it was reported that on HP-UX the gcc test will end up
4094 # making a dummy file named 'D' -- because '-MD' means "put the output
4095 # in D".
4096 rm -rf conftest.dir
4097 mkdir conftest.dir
4098 # Copy depcomp to subdir because otherwise we won't find it if we're
4099 # using a relative directory.
4100 cp "$am_depcomp" conftest.dir
4101 cd conftest.dir
4102 # We will build objects and dependencies in a subdirectory because
4103 # it helps to detect inapplicable dependency modes. For instance
4104 # both Tru64's cc and ICC support -MD to output dependencies as a
4105 # side effect of compilation, but ICC will put the dependencies in
4106 # the current directory while Tru64 will put them in the object
4107 # directory.
4108 mkdir sub
4109
4110 am_cv_CC_dependencies_compiler_type=none
4111 if test "$am_compiler_list" = ""; then
4112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 fi
4114 am__universal=false
4115 case " $depcc " in #(
4116 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117 esac
4118
4119 for depmode in $am_compiler_list; do
4120 # Setup a source with many dependencies, because some compilers
4121 # like to wrap large dependency lists on column 80 (with \), and
4122 # we should not choose a depcomp mode which is confused by this.
4123 #
4124 # We need to recreate these files for each test, as the compiler may
4125 # overwrite some of them when testing with obscure command lines.
4126 # This happens at least with the AIX C compiler.
4127 : > sub/conftest.c
4128 for i in 1 2 3 4 5 6; do
4129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4131 # Solaris 10 /bin/sh.
4132 echo '/* dummy */' > sub/conftst$i.h
4133 done
4134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135
4136 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4137 # mode. It turns out that the SunPro C++ compiler does not properly
4138 # handle '-M -o', and we need to detect this. Also, some Intel
4139 # versions had trouble with output in subdirs.
4140 am__obj=sub/conftest.${OBJEXT-o}
4141 am__minus_obj="-o $am__obj"
4142 case $depmode in
4143 gcc)
4144 # This depmode causes a compiler race in universal mode.
4145 test "$am__universal" = false || continue
4146 ;;
4147 nosideeffect)
4148 # After this tag, mechanisms are not by side-effect, so they'll
4149 # only be used when explicitly requested.
4150 if test "x$enable_dependency_tracking" = xyes; then
4151 continue
4152 else
4153 break
4154 fi
4155 ;;
4156 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4157 # This compiler won't grok '-c -o', but also, the minuso test has
4158 # not run yet. These depmodes are late enough in the game, and
4159 # so weak that their functioning should not be impacted.
4160 am__obj=conftest.${OBJEXT-o}
4161 am__minus_obj=
4162 ;;
4163 none) break ;;
4164 esac
4165 if depmode=$depmode \
4166 source=sub/conftest.c object=$am__obj \
4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4169 >/dev/null 2>conftest.err &&
4170 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4174 # icc doesn't choke on unknown options, it will just issue warnings
4175 # or remarks (even with -Werror). So we grep stderr for any message
4176 # that says an option was ignored or not supported.
4177 # When given -MP, icc 7.0 and 7.1 complain thusly:
4178 # icc: Command line warning: ignoring option '-M'; no argument required
4179 # The diagnosis changed in icc 8.0:
4180 # icc: Command line remark: option '-MP' not supported
4181 if (grep 'ignoring option' conftest.err ||
4182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4183 am_cv_CC_dependencies_compiler_type=$depmode
4184 break
4185 fi
4186 fi
4187 done
4188
4189 cd ..
4190 rm -rf conftest.dir
4191 else
4192 am_cv_CC_dependencies_compiler_type=none
4193 fi
4194
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4197 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4198 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4199
4200 if
4201 test "x$enable_dependency_tracking" != xno \
4202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203 am__fastdepCC_TRUE=
4204 am__fastdepCC_FALSE='#'
4205 else
4206 am__fastdepCC_TRUE='#'
4207 am__fastdepCC_FALSE=
4208 fi
4209
4210
4211 ac_ext=cpp
4212 ac_cpp='$CXXCPP $CPPFLAGS'
4213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4216 if test -z "$CXX"; then
4217 if test -n "$CCC"; then
4218 CXX=$CCC
4219 else
4220 if test -n "$ac_tool_prefix"; then
4221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4222 do
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_CXX+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$CXX"; then
4231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 CXX=$ac_cv_prog_CXX
4251 if test -n "$CXX"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4253 $as_echo "$CXX" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260 test -n "$CXX" && break
4261 done
4262 fi
4263 if test -z "$CXX"; then
4264 ac_ct_CXX=$CXX
4265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4266 do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$ac_ct_CXX"; then
4275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_ac_ct_CXX="$ac_prog"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 fi
4293 fi
4294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4295 if test -n "$ac_ct_CXX"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4297 $as_echo "$ac_ct_CXX" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4301 fi
4302
4303
4304 test -n "$ac_ct_CXX" && break
4305 done
4306
4307 if test "x$ac_ct_CXX" = x; then
4308 CXX="g++"
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311 yes:)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314 ac_tool_warned=yes ;;
4315 esac
4316 CXX=$ac_ct_CXX
4317 fi
4318 fi
4319
4320 fi
4321 fi
4322 # Provide some information about the compiler.
4323 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4324 set X $ac_compile
4325 ac_compiler=$2
4326 for ac_option in --version -v -V -qversion; do
4327 { { ac_try="$ac_compiler $ac_option >&5"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4335 ac_status=$?
4336 if test -s conftest.err; then
4337 sed '10a\
4338 ... rest of stderr output deleted ...
4339 10q' conftest.err >conftest.er1
4340 cat conftest.er1 >&5
4341 fi
4342 rm -f conftest.er1 conftest.err
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345 done
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4348 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4349 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354
4355 int
4356 main ()
4357 {
4358 #ifndef __GNUC__
4359 choke me
4360 #endif
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_cxx_try_compile "$LINENO"; then :
4367 ac_compiler_gnu=yes
4368 else
4369 ac_compiler_gnu=no
4370 fi
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4373
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4376 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4377 if test $ac_compiler_gnu = yes; then
4378 GXX=yes
4379 else
4380 GXX=
4381 fi
4382 ac_test_CXXFLAGS=${CXXFLAGS+set}
4383 ac_save_CXXFLAGS=$CXXFLAGS
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4385 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4386 if ${ac_cv_prog_cxx_g+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4390 ac_cxx_werror_flag=yes
4391 ac_cv_prog_cxx_g=no
4392 CXXFLAGS="-g"
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395
4396 int
4397 main ()
4398 {
4399
4400 ;
4401 return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_cxx_try_compile "$LINENO"; then :
4405 ac_cv_prog_cxx_g=yes
4406 else
4407 CXXFLAGS=""
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410
4411 int
4412 main ()
4413 {
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_cxx_try_compile "$LINENO"; then :
4420
4421 else
4422 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4423 CXXFLAGS="-g"
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426
4427 int
4428 main ()
4429 {
4430
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 if ac_fn_cxx_try_compile "$LINENO"; then :
4436 ac_cv_prog_cxx_g=yes
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 fi
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4446 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4447 if test "$ac_test_CXXFLAGS" = set; then
4448 CXXFLAGS=$ac_save_CXXFLAGS
4449 elif test $ac_cv_prog_cxx_g = yes; then
4450 if test "$GXX" = yes; then
4451 CXXFLAGS="-g -O2"
4452 else
4453 CXXFLAGS="-g"
4454 fi
4455 else
4456 if test "$GXX" = yes; then
4457 CXXFLAGS="-O2"
4458 else
4459 CXXFLAGS=
4460 fi
4461 fi
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467
4468 depcc="$CXX" am_compiler_list=
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4471 $as_echo_n "checking dependency style of $depcc... " >&6; }
4472 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476 # We make a subdir and do the tests there. Otherwise we can end up
4477 # making bogus files that we don't know about and never remove. For
4478 # instance it was reported that on HP-UX the gcc test will end up
4479 # making a dummy file named 'D' -- because '-MD' means "put the output
4480 # in D".
4481 rm -rf conftest.dir
4482 mkdir conftest.dir
4483 # Copy depcomp to subdir because otherwise we won't find it if we're
4484 # using a relative directory.
4485 cp "$am_depcomp" conftest.dir
4486 cd conftest.dir
4487 # We will build objects and dependencies in a subdirectory because
4488 # it helps to detect inapplicable dependency modes. For instance
4489 # both Tru64's cc and ICC support -MD to output dependencies as a
4490 # side effect of compilation, but ICC will put the dependencies in
4491 # the current directory while Tru64 will put them in the object
4492 # directory.
4493 mkdir sub
4494
4495 am_cv_CXX_dependencies_compiler_type=none
4496 if test "$am_compiler_list" = ""; then
4497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4498 fi
4499 am__universal=false
4500 case " $depcc " in #(
4501 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4502 esac
4503
4504 for depmode in $am_compiler_list; do
4505 # Setup a source with many dependencies, because some compilers
4506 # like to wrap large dependency lists on column 80 (with \), and
4507 # we should not choose a depcomp mode which is confused by this.
4508 #
4509 # We need to recreate these files for each test, as the compiler may
4510 # overwrite some of them when testing with obscure command lines.
4511 # This happens at least with the AIX C compiler.
4512 : > sub/conftest.c
4513 for i in 1 2 3 4 5 6; do
4514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4515 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4516 # Solaris 10 /bin/sh.
4517 echo '/* dummy */' > sub/conftst$i.h
4518 done
4519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4520
4521 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4522 # mode. It turns out that the SunPro C++ compiler does not properly
4523 # handle '-M -o', and we need to detect this. Also, some Intel
4524 # versions had trouble with output in subdirs.
4525 am__obj=sub/conftest.${OBJEXT-o}
4526 am__minus_obj="-o $am__obj"
4527 case $depmode in
4528 gcc)
4529 # This depmode causes a compiler race in universal mode.
4530 test "$am__universal" = false || continue
4531 ;;
4532 nosideeffect)
4533 # After this tag, mechanisms are not by side-effect, so they'll
4534 # only be used when explicitly requested.
4535 if test "x$enable_dependency_tracking" = xyes; then
4536 continue
4537 else
4538 break
4539 fi
4540 ;;
4541 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4542 # This compiler won't grok '-c -o', but also, the minuso test has
4543 # not run yet. These depmodes are late enough in the game, and
4544 # so weak that their functioning should not be impacted.
4545 am__obj=conftest.${OBJEXT-o}
4546 am__minus_obj=
4547 ;;
4548 none) break ;;
4549 esac
4550 if depmode=$depmode \
4551 source=sub/conftest.c object=$am__obj \
4552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4553 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4554 >/dev/null 2>conftest.err &&
4555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4559 # icc doesn't choke on unknown options, it will just issue warnings
4560 # or remarks (even with -Werror). So we grep stderr for any message
4561 # that says an option was ignored or not supported.
4562 # When given -MP, icc 7.0 and 7.1 complain thusly:
4563 # icc: Command line warning: ignoring option '-M'; no argument required
4564 # The diagnosis changed in icc 8.0:
4565 # icc: Command line remark: option '-MP' not supported
4566 if (grep 'ignoring option' conftest.err ||
4567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4568 am_cv_CXX_dependencies_compiler_type=$depmode
4569 break
4570 fi
4571 fi
4572 done
4573
4574 cd ..
4575 rm -rf conftest.dir
4576 else
4577 am_cv_CXX_dependencies_compiler_type=none
4578 fi
4579
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4582 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4583 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4584
4585 if
4586 test "x$enable_dependency_tracking" != xno \
4587 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4588 am__fastdepCXX_TRUE=
4589 am__fastdepCXX_FALSE='#'
4590 else
4591 am__fastdepCXX_TRUE='#'
4592 am__fastdepCXX_FALSE=
4593 fi
4594
4595
4596 ac_ext=mm
4597 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4598 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4601 if test -n "$ac_tool_prefix"; then
4602 for ac_prog in g++ objc++ objcxx c++ CXX
4603 do
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_OBJCXX+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$OBJCXX"; then
4612 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 OBJCXX=$ac_cv_prog_OBJCXX
4632 if test -n "$OBJCXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4634 $as_echo "$OBJCXX" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 test -n "$OBJCXX" && break
4642 done
4643 fi
4644 if test -z "$OBJCXX"; then
4645 ac_ct_OBJCXX=$OBJCXX
4646 for ac_prog in g++ objc++ objcxx c++ CXX
4647 do
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$ac_ct_OBJCXX"; then
4656 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669 done
4670 done
4671 IFS=$as_save_IFS
4672
4673 fi
4674 fi
4675 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4676 if test -n "$ac_ct_OBJCXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4678 $as_echo "$ac_ct_OBJCXX" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685 test -n "$ac_ct_OBJCXX" && break
4686 done
4687
4688 if test "x$ac_ct_OBJCXX" = x; then
4689 OBJCXX="g++"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 OBJCXX=$ac_ct_OBJCXX
4698 fi
4699 fi
4700
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4703 set X $ac_compile
4704 ac_compiler=$2
4705 for ac_option in --version -v -V -qversion; do
4706 { { ac_try="$ac_compiler $ac_option >&5"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4714 ac_status=$?
4715 if test -s conftest.err; then
4716 sed '10a\
4717 ... rest of stderr output deleted ...
4718 10q' conftest.err >conftest.er1
4719 cat conftest.er1 >&5
4720 fi
4721 rm -f conftest.er1 conftest.err
4722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4723 test $ac_status = 0; }
4724 done
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4727 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4728 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main ()
4736 {
4737 #ifndef __GNUC__
4738 choke me
4739 #endif
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_objcxx_try_compile "$LINENO"; then :
4746 ac_compiler_gnu=yes
4747 else
4748 ac_compiler_gnu=no
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4755 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4756 if test $ac_compiler_gnu = yes; then
4757 GOBJCXX=yes
4758 else
4759 GOBJCXX=
4760 fi
4761 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4762 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4764 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4765 if ${ac_cv_prog_objcxx_g+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4769 ac_objcxx_werror_flag=yes
4770 ac_cv_prog_objcxx_g=no
4771 OBJCXXFLAGS="-g"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_objcxx_try_compile "$LINENO"; then :
4784 ac_cv_prog_objcxx_g=yes
4785 else
4786 OBJCXXFLAGS=""
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_objcxx_try_compile "$LINENO"; then :
4799
4800 else
4801 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4802 OBJCXXFLAGS="-g"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 if ac_fn_objcxx_try_compile "$LINENO"; then :
4815 ac_cv_prog_objcxx_g=yes
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4825 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4826 if test "$ac_test_OBJCXXFLAGS" = set; then
4827 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4828 elif test $ac_cv_prog_objcxx_g = yes; then
4829 if test "$GOBJCXX" = yes; then
4830 OBJCXXFLAGS="-g -O2"
4831 else
4832 OBJCXXFLAGS="-g"
4833 fi
4834 else
4835 if test "$GOBJCXX" = yes; then
4836 OBJCXXFLAGS="-O2"
4837 else
4838 OBJCXXFLAGS=
4839 fi
4840 fi
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850 $as_echo_n "checking dependency style of $depcc... " >&6; }
4851 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855 # We make a subdir and do the tests there. Otherwise we can end up
4856 # making bogus files that we don't know about and never remove. For
4857 # instance it was reported that on HP-UX the gcc test will end up
4858 # making a dummy file named 'D' -- because '-MD' means "put the output
4859 # in D".
4860 rm -rf conftest.dir
4861 mkdir conftest.dir
4862 # Copy depcomp to subdir because otherwise we won't find it if we're
4863 # using a relative directory.
4864 cp "$am_depcomp" conftest.dir
4865 cd conftest.dir
4866 # We will build objects and dependencies in a subdirectory because
4867 # it helps to detect inapplicable dependency modes. For instance
4868 # both Tru64's cc and ICC support -MD to output dependencies as a
4869 # side effect of compilation, but ICC will put the dependencies in
4870 # the current directory while Tru64 will put them in the object
4871 # directory.
4872 mkdir sub
4873
4874 am_cv_OBJCXX_dependencies_compiler_type=none
4875 if test "$am_compiler_list" = ""; then
4876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 fi
4878 am__universal=false
4879
4880
4881 for depmode in $am_compiler_list; do
4882 # Setup a source with many dependencies, because some compilers
4883 # like to wrap large dependency lists on column 80 (with \), and
4884 # we should not choose a depcomp mode which is confused by this.
4885 #
4886 # We need to recreate these files for each test, as the compiler may
4887 # overwrite some of them when testing with obscure command lines.
4888 # This happens at least with the AIX C compiler.
4889 : > sub/conftest.c
4890 for i in 1 2 3 4 5 6; do
4891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4893 # Solaris 10 /bin/sh.
4894 echo '/* dummy */' > sub/conftst$i.h
4895 done
4896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897
4898 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4899 # mode. It turns out that the SunPro C++ compiler does not properly
4900 # handle '-M -o', and we need to detect this. Also, some Intel
4901 # versions had trouble with output in subdirs.
4902 am__obj=sub/conftest.${OBJEXT-o}
4903 am__minus_obj="-o $am__obj"
4904 case $depmode in
4905 gcc)
4906 # This depmode causes a compiler race in universal mode.
4907 test "$am__universal" = false || continue
4908 ;;
4909 nosideeffect)
4910 # After this tag, mechanisms are not by side-effect, so they'll
4911 # only be used when explicitly requested.
4912 if test "x$enable_dependency_tracking" = xyes; then
4913 continue
4914 else
4915 break
4916 fi
4917 ;;
4918 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4919 # This compiler won't grok '-c -o', but also, the minuso test has
4920 # not run yet. These depmodes are late enough in the game, and
4921 # so weak that their functioning should not be impacted.
4922 am__obj=conftest.${OBJEXT-o}
4923 am__minus_obj=
4924 ;;
4925 none) break ;;
4926 esac
4927 if depmode=$depmode \
4928 source=sub/conftest.c object=$am__obj \
4929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4931 >/dev/null 2>conftest.err &&
4932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4936 # icc doesn't choke on unknown options, it will just issue warnings
4937 # or remarks (even with -Werror). So we grep stderr for any message
4938 # that says an option was ignored or not supported.
4939 # When given -MP, icc 7.0 and 7.1 complain thusly:
4940 # icc: Command line warning: ignoring option '-M'; no argument required
4941 # The diagnosis changed in icc 8.0:
4942 # icc: Command line remark: option '-MP' not supported
4943 if (grep 'ignoring option' conftest.err ||
4944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4945 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4946 break
4947 fi
4948 fi
4949 done
4950
4951 cd ..
4952 rm -rf conftest.dir
4953 else
4954 am_cv_OBJCXX_dependencies_compiler_type=none
4955 fi
4956
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4959 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4960 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4961
4962 if
4963 test "x$enable_dependency_tracking" != xno \
4964 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4965 am__fastdepOBJCXX_TRUE=
4966 am__fastdepOBJCXX_FALSE='#'
4967 else
4968 am__fastdepOBJCXX_TRUE='#'
4969 am__fastdepOBJCXX_FALSE=
4970 fi
4971
4972
4973
4974
4975 if test -n "$ac_tool_prefix"; then
4976 for ac_prog in ar lib "link -lib"
4977 do
4978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_AR+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$AR"; then
4986 ac_cv_prog_AR="$AR" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 AR=$ac_cv_prog_AR
5006 if test -n "$AR"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5008 $as_echo "$AR" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 test -n "$AR" && break
5016 done
5017 fi
5018 if test -z "$AR"; then
5019 ac_ct_AR=$AR
5020 for ac_prog in ar lib "link -lib"
5021 do
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_AR"; then
5030 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_ac_ct_AR="$ac_prog"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5050 if test -n "$ac_ct_AR"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5052 $as_echo "$ac_ct_AR" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 test -n "$ac_ct_AR" && break
5060 done
5061
5062 if test "x$ac_ct_AR" = x; then
5063 AR="false"
5064 else
5065 case $cross_compiling:$ac_tool_warned in
5066 yes:)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069 ac_tool_warned=yes ;;
5070 esac
5071 AR=$ac_ct_AR
5072 fi
5073 fi
5074
5075 : ${AR=ar}
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5078 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5079 if ${am_cv_ar_interface+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 am_cv_ar_interface=ar
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 int some_variable = 0;
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5096 (eval $am_ar_try) 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; }
5100 if test "$ac_status" -eq 0; then
5101 am_cv_ar_interface=ar
5102 else
5103 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5105 (eval $am_ar_try) 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }
5109 if test "$ac_status" -eq 0; then
5110 am_cv_ar_interface=lib
5111 else
5112 am_cv_ar_interface=unknown
5113 fi
5114 fi
5115 rm -f conftest.lib libconftest.a
5116
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5127 $as_echo "$am_cv_ar_interface" >&6; }
5128
5129 case $am_cv_ar_interface in
5130 ar)
5131 ;;
5132 lib)
5133 # Microsoft lib, so override with the ar-lib wrapper script.
5134 # FIXME: It is wrong to rewrite AR.
5135 # But if we don't then we get into trouble of one sort or another.
5136 # A longer-term fix would be to have automake use am__AR in this case,
5137 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5138 # similar.
5139 AR="$am_aux_dir/ar-lib $AR"
5140 ;;
5141 unknown)
5142 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5143 ;;
5144 esac
5145
5146
5147
5148 case `pwd` in
5149 *\ * | *\ *)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5151 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5152 esac
5153
5154
5155
5156 macro_version='2.4.6'
5157 macro_revision='2.4.6'
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171 ltmain=$ac_aux_dir/ltmain.sh
5172
5173 # Make sure we can run config.sub.
5174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5175 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5178 $as_echo_n "checking build system type... " >&6; }
5179 if ${ac_cv_build+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 ac_build_alias=$build_alias
5183 test "x$ac_build_alias" = x &&
5184 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5185 test "x$ac_build_alias" = x &&
5186 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5187 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5189
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5192 $as_echo "$ac_cv_build" >&6; }
5193 case $ac_cv_build in
5194 *-*-*) ;;
5195 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5196 esac
5197 build=$ac_cv_build
5198 ac_save_IFS=$IFS; IFS='-'
5199 set x $ac_cv_build
5200 shift
5201 build_cpu=$1
5202 build_vendor=$2
5203 shift; shift
5204 # Remember, the first character of IFS is used to create $*,
5205 # except with old shells:
5206 build_os=$*
5207 IFS=$ac_save_IFS
5208 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5209
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5212 $as_echo_n "checking host system type... " >&6; }
5213 if ${ac_cv_host+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test "x$host_alias" = x; then
5217 ac_cv_host=$ac_cv_build
5218 else
5219 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5220 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5221 fi
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5225 $as_echo "$ac_cv_host" >&6; }
5226 case $ac_cv_host in
5227 *-*-*) ;;
5228 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5229 esac
5230 host=$ac_cv_host
5231 ac_save_IFS=$IFS; IFS='-'
5232 set x $ac_cv_host
5233 shift
5234 host_cpu=$1
5235 host_vendor=$2
5236 shift; shift
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5239 host_os=$*
5240 IFS=$ac_save_IFS
5241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5242
5243
5244 # Backslashify metacharacters that are still active within
5245 # double-quoted strings.
5246 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5247
5248 # Same as above, but do not quote variable references.
5249 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5250
5251 # Sed substitution to delay expansion of an escaped shell variable in a
5252 # double_quote_subst'ed string.
5253 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5254
5255 # Sed substitution to delay expansion of an escaped single quote.
5256 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5257
5258 # Sed substitution to avoid accidental globbing in evaled expressions
5259 no_glob_subst='s/\*/\\\*/g'
5260
5261 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5262 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5263 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5266 $as_echo_n "checking how to print strings... " >&6; }
5267 # Test print first, because it will be a builtin if present.
5268 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5269 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5270 ECHO='print -r --'
5271 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5272 ECHO='printf %s\n'
5273 else
5274 # Use this function as a fallback that always works.
5275 func_fallback_echo ()
5276 {
5277 eval 'cat <<_LTECHO_EOF
5278 $1
5279 _LTECHO_EOF'
5280 }
5281 ECHO='func_fallback_echo'
5282 fi
5283
5284 # func_echo_all arg...
5285 # Invoke $ECHO with all args, space-separated.
5286 func_echo_all ()
5287 {
5288 $ECHO ""
5289 }
5290
5291 case $ECHO in
5292 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5293 $as_echo "printf" >&6; } ;;
5294 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5295 $as_echo "print -r" >&6; } ;;
5296 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5297 $as_echo "cat" >&6; } ;;
5298 esac
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5314 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5315 if ${ac_cv_path_SED+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5319 for ac_i in 1 2 3 4 5 6 7; do
5320 ac_script="$ac_script$as_nl$ac_script"
5321 done
5322 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5323 { ac_script=; unset ac_script;}
5324 if test -z "$SED"; then
5325 ac_path_SED_found=false
5326 # Loop through the user's path and test for each of PROGNAME-LIST
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_prog in sed gsed; do
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5335 as_fn_executable_p "$ac_path_SED" || continue
5336 # Check for GNU ac_path_SED and select it if it is found.
5337 # Check for GNU $ac_path_SED
5338 case `"$ac_path_SED" --version 2>&1` in
5339 *GNU*)
5340 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5341 *)
5342 ac_count=0
5343 $as_echo_n 0123456789 >"conftest.in"
5344 while :
5345 do
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 $as_echo '' >> "conftest.nl"
5350 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352 as_fn_arith $ac_count + 1 && ac_count=$as_val
5353 if test $ac_count -gt ${ac_path_SED_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_SED="$ac_path_SED"
5356 ac_path_SED_max=$ac_count
5357 fi
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
5360 done
5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362 esac
5363
5364 $ac_path_SED_found && break 3
5365 done
5366 done
5367 done
5368 IFS=$as_save_IFS
5369 if test -z "$ac_cv_path_SED"; then
5370 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5371 fi
5372 else
5373 ac_cv_path_SED=$SED
5374 fi
5375
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5378 $as_echo "$ac_cv_path_SED" >&6; }
5379 SED="$ac_cv_path_SED"
5380 rm -f conftest.sed
5381
5382 test -z "$SED" && SED=sed
5383 Xsed="$SED -e 1s/^X//"
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5397 if ${ac_cv_path_GREP+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -z "$GREP"; then
5401 ac_path_GREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_prog in grep ggrep; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_GREP" || continue
5412 # Check for GNU ac_path_GREP and select it if it is found.
5413 # Check for GNU $ac_path_GREP
5414 case `"$ac_path_GREP" --version 2>&1` in
5415 *GNU*)
5416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5417 *)
5418 ac_count=0
5419 $as_echo_n 0123456789 >"conftest.in"
5420 while :
5421 do
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'GREP' >> "conftest.nl"
5426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_GREP="$ac_path_GREP"
5432 ac_path_GREP_max=$ac_count
5433 fi
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5439
5440 $ac_path_GREP_found && break 3
5441 done
5442 done
5443 done
5444 IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_GREP"; then
5446 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5447 fi
5448 else
5449 ac_cv_path_GREP=$GREP
5450 fi
5451
5452 fi
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5454 $as_echo "$ac_cv_path_GREP" >&6; }
5455 GREP="$ac_cv_path_GREP"
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5459 $as_echo_n "checking for egrep... " >&6; }
5460 if ${ac_cv_path_EGREP+:} false; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5464 then ac_cv_path_EGREP="$GREP -E"
5465 else
5466 if test -z "$EGREP"; then
5467 ac_path_EGREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_prog in egrep; do
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5477 as_fn_executable_p "$ac_path_EGREP" || continue
5478 # Check for GNU ac_path_EGREP and select it if it is found.
5479 # Check for GNU $ac_path_EGREP
5480 case `"$ac_path_EGREP" --version 2>&1` in
5481 *GNU*)
5482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5483 *)
5484 ac_count=0
5485 $as_echo_n 0123456789 >"conftest.in"
5486 while :
5487 do
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo 'EGREP' >> "conftest.nl"
5492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 as_fn_arith $ac_count + 1 && ac_count=$as_val
5495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_EGREP="$ac_path_EGREP"
5498 ac_path_EGREP_max=$ac_count
5499 fi
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
5502 done
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 esac
5505
5506 $ac_path_EGREP_found && break 3
5507 done
5508 done
5509 done
5510 IFS=$as_save_IFS
5511 if test -z "$ac_cv_path_EGREP"; then
5512 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513 fi
5514 else
5515 ac_cv_path_EGREP=$EGREP
5516 fi
5517
5518 fi
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5521 $as_echo "$ac_cv_path_EGREP" >&6; }
5522 EGREP="$ac_cv_path_EGREP"
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5526 $as_echo_n "checking for fgrep... " >&6; }
5527 if ${ac_cv_path_FGREP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5531 then ac_cv_path_FGREP="$GREP -F"
5532 else
5533 if test -z "$FGREP"; then
5534 ac_path_FGREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5538 do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_prog in fgrep; do
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5544 as_fn_executable_p "$ac_path_FGREP" || continue
5545 # Check for GNU ac_path_FGREP and select it if it is found.
5546 # Check for GNU $ac_path_FGREP
5547 case `"$ac_path_FGREP" --version 2>&1` in
5548 *GNU*)
5549 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5550 *)
5551 ac_count=0
5552 $as_echo_n 0123456789 >"conftest.in"
5553 while :
5554 do
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 $as_echo 'FGREP' >> "conftest.nl"
5559 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5561 as_fn_arith $ac_count + 1 && ac_count=$as_val
5562 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_FGREP="$ac_path_FGREP"
5565 ac_path_FGREP_max=$ac_count
5566 fi
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5569 done
5570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5571 esac
5572
5573 $ac_path_FGREP_found && break 3
5574 done
5575 done
5576 done
5577 IFS=$as_save_IFS
5578 if test -z "$ac_cv_path_FGREP"; then
5579 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5580 fi
5581 else
5582 ac_cv_path_FGREP=$FGREP
5583 fi
5584
5585 fi
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5588 $as_echo "$ac_cv_path_FGREP" >&6; }
5589 FGREP="$ac_cv_path_FGREP"
5590
5591
5592 test -z "$GREP" && GREP=grep
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 # Check whether --with-gnu-ld was given.
5613 if test "${with_gnu_ld+set}" = set; then :
5614 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5615 else
5616 with_gnu_ld=no
5617 fi
5618
5619 ac_prog=ld
5620 if test yes = "$GCC"; then
5621 # Check if gcc -print-prog-name=ld gives a path.
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5623 $as_echo_n "checking for ld used by $CC... " >&6; }
5624 case $host in
5625 *-*-mingw*)
5626 # gcc leaves a trailing carriage return, which upsets mingw
5627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5628 *)
5629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5630 esac
5631 case $ac_prog in
5632 # Accept absolute paths.
5633 [\\/]* | ?:[\\/]*)
5634 re_direlt='/[^/][^/]*/\.\./'
5635 # Canonicalize the pathname of ld
5636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5639 done
5640 test -z "$LD" && LD=$ac_prog
5641 ;;
5642 "")
5643 # If it fails, then pretend we aren't using GCC.
5644 ac_prog=ld
5645 ;;
5646 *)
5647 # If it is relative, then search for the first ld in PATH.
5648 with_gnu_ld=unknown
5649 ;;
5650 esac
5651 elif test yes = "$with_gnu_ld"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5653 $as_echo_n "checking for GNU ld... " >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5656 $as_echo_n "checking for non-GNU ld... " >&6; }
5657 fi
5658 if ${lt_cv_path_LD+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -z "$LD"; then
5662 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5663 for ac_dir in $PATH; do
5664 IFS=$lt_save_ifs
5665 test -z "$ac_dir" && ac_dir=.
5666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5667 lt_cv_path_LD=$ac_dir/$ac_prog
5668 # Check to see if the program is GNU ld. I'd rather use --version,
5669 # but apparently some variants of GNU ld only accept -v.
5670 # Break only if it was the GNU/non-GNU ld that we prefer.
5671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5672 *GNU* | *'with BFD'*)
5673 test no != "$with_gnu_ld" && break
5674 ;;
5675 *)
5676 test yes != "$with_gnu_ld" && break
5677 ;;
5678 esac
5679 fi
5680 done
5681 IFS=$lt_save_ifs
5682 else
5683 lt_cv_path_LD=$LD # Let the user override the test with a path.
5684 fi
5685 fi
5686
5687 LD=$lt_cv_path_LD
5688 if test -n "$LD"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5690 $as_echo "$LD" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5698 if ${lt_cv_prog_gnu_ld+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5702 case `$LD -v 2>&1 </dev/null` in
5703 *GNU* | *'with BFD'*)
5704 lt_cv_prog_gnu_ld=yes
5705 ;;
5706 *)
5707 lt_cv_prog_gnu_ld=no
5708 ;;
5709 esac
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5712 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5713 with_gnu_ld=$lt_cv_prog_gnu_ld
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5724 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5725 if ${lt_cv_path_NM+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$NM"; then
5729 # Let the user override the test.
5730 lt_cv_path_NM=$NM
5731 else
5732 lt_nm_to_check=${ac_tool_prefix}nm
5733 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5734 lt_nm_to_check="$lt_nm_to_check nm"
5735 fi
5736 for lt_tmp_nm in $lt_nm_to_check; do
5737 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5738 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5739 IFS=$lt_save_ifs
5740 test -z "$ac_dir" && ac_dir=.
5741 tmp_nm=$ac_dir/$lt_tmp_nm
5742 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5743 # Check to see if the nm accepts a BSD-compat flag.
5744 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5745 # nm: unknown option "B" ignored
5746 # Tru64's nm complains that /dev/null is an invalid object file
5747 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5748 case $build_os in
5749 mingw*) lt_bad_file=conftest.nm/nofile ;;
5750 *) lt_bad_file=/dev/null ;;
5751 esac
5752 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5753 *$lt_bad_file* | *'Invalid file or object type'*)
5754 lt_cv_path_NM="$tmp_nm -B"
5755 break 2
5756 ;;
5757 *)
5758 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5759 */dev/null*)
5760 lt_cv_path_NM="$tmp_nm -p"
5761 break 2
5762 ;;
5763 *)
5764 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5765 continue # so that we can try to find one that supports BSD flags
5766 ;;
5767 esac
5768 ;;
5769 esac
5770 fi
5771 done
5772 IFS=$lt_save_ifs
5773 done
5774 : ${lt_cv_path_NM=no}
5775 fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5778 $as_echo "$lt_cv_path_NM" >&6; }
5779 if test no != "$lt_cv_path_NM"; then
5780 NM=$lt_cv_path_NM
5781 else
5782 # Didn't find any BSD compatible name lister, look for dumpbin.
5783 if test -n "$DUMPBIN"; then :
5784 # Let the user override the test.
5785 else
5786 if test -n "$ac_tool_prefix"; then
5787 for ac_prog in dumpbin "link -dump"
5788 do
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_DUMPBIN+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 if test -n "$DUMPBIN"; then
5797 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 DUMPBIN=$ac_cv_prog_DUMPBIN
5817 if test -n "$DUMPBIN"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5819 $as_echo "$DUMPBIN" >&6; }
5820 else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826 test -n "$DUMPBIN" && break
5827 done
5828 fi
5829 if test -z "$DUMPBIN"; then
5830 ac_ct_DUMPBIN=$DUMPBIN
5831 for ac_prog in dumpbin "link -dump"
5832 do
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy $ac_prog; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_DUMPBIN"; then
5841 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5861 if test -n "$ac_ct_DUMPBIN"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5863 $as_echo "$ac_ct_DUMPBIN" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869
5870 test -n "$ac_ct_DUMPBIN" && break
5871 done
5872
5873 if test "x$ac_ct_DUMPBIN" = x; then
5874 DUMPBIN=":"
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5881 esac
5882 DUMPBIN=$ac_ct_DUMPBIN
5883 fi
5884 fi
5885
5886 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5887 *COFF*)
5888 DUMPBIN="$DUMPBIN -symbols -headers"
5889 ;;
5890 *)
5891 DUMPBIN=:
5892 ;;
5893 esac
5894 fi
5895
5896 if test : != "$DUMPBIN"; then
5897 NM=$DUMPBIN
5898 fi
5899 fi
5900 test -z "$NM" && NM=nm
5901
5902
5903
5904
5905
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5908 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5909 if ${lt_cv_nm_interface+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 lt_cv_nm_interface="BSD nm"
5913 echo "int some_variable = 0;" > conftest.$ac_ext
5914 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5915 (eval "$ac_compile" 2>conftest.err)
5916 cat conftest.err >&5
5917 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5918 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5921 cat conftest.out >&5
5922 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5923 lt_cv_nm_interface="MS dumpbin"
5924 fi
5925 rm -rf conftest*
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5928 $as_echo "$lt_cv_nm_interface" >&6; }
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5931 $as_echo_n "checking whether ln -s works... " >&6; }
5932 LN_S=$as_ln_s
5933 if test "$LN_S" = "ln -s"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935 $as_echo "yes" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5938 $as_echo "no, using $LN_S" >&6; }
5939 fi
5940
5941 # find the maximum length of command line arguments
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5943 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5944 if ${lt_cv_sys_max_cmd_len+:} false; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 i=0
5948 teststring=ABCD
5949
5950 case $build_os in
5951 msdosdjgpp*)
5952 # On DJGPP, this test can blow up pretty badly due to problems in libc
5953 # (any single argument exceeding 2000 bytes causes a buffer overrun
5954 # during glob expansion). Even if it were fixed, the result of this
5955 # check would be larger than it should be.
5956 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5957 ;;
5958
5959 gnu*)
5960 # Under GNU Hurd, this test is not required because there is
5961 # no limit to the length of command line arguments.
5962 # Libtool will interpret -1 as no limit whatsoever
5963 lt_cv_sys_max_cmd_len=-1;
5964 ;;
5965
5966 cygwin* | mingw* | cegcc*)
5967 # On Win9x/ME, this test blows up -- it succeeds, but takes
5968 # about 5 minutes as the teststring grows exponentially.
5969 # Worse, since 9x/ME are not pre-emptively multitasking,
5970 # you end up with a "frozen" computer, even though with patience
5971 # the test eventually succeeds (with a max line length of 256k).
5972 # Instead, let's just punt: use the minimum linelength reported by
5973 # all of the supported platforms: 8192 (on NT/2K/XP).
5974 lt_cv_sys_max_cmd_len=8192;
5975 ;;
5976
5977 mint*)
5978 # On MiNT this can take a long time and run out of memory.
5979 lt_cv_sys_max_cmd_len=8192;
5980 ;;
5981
5982 amigaos*)
5983 # On AmigaOS with pdksh, this test takes hours, literally.
5984 # So we just punt and use a minimum line length of 8192.
5985 lt_cv_sys_max_cmd_len=8192;
5986 ;;
5987
5988 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5989 # This has been around since 386BSD, at least. Likely further.
5990 if test -x /sbin/sysctl; then
5991 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5992 elif test -x /usr/sbin/sysctl; then
5993 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5994 else
5995 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5996 fi
5997 # And add a safety zone
5998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6000 ;;
6001
6002 interix*)
6003 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6004 lt_cv_sys_max_cmd_len=196608
6005 ;;
6006
6007 os2*)
6008 # The test takes a long time on OS/2.
6009 lt_cv_sys_max_cmd_len=8192
6010 ;;
6011
6012 osf*)
6013 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6014 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6015 # nice to cause kernel panics so lets avoid the loop below.
6016 # First set a reasonable default.
6017 lt_cv_sys_max_cmd_len=16384
6018 #
6019 if test -x /sbin/sysconfig; then
6020 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6021 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6022 esac
6023 fi
6024 ;;
6025 sco3.2v5*)
6026 lt_cv_sys_max_cmd_len=102400
6027 ;;
6028 sysv5* | sco5v6* | sysv4.2uw2*)
6029 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6030 if test -n "$kargmax"; then
6031 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6032 else
6033 lt_cv_sys_max_cmd_len=32768
6034 fi
6035 ;;
6036 *)
6037 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6038 if test -n "$lt_cv_sys_max_cmd_len" && \
6039 test undefined != "$lt_cv_sys_max_cmd_len"; then
6040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6042 else
6043 # Make teststring a little bigger before we do anything with it.
6044 # a 1K string should be a reasonable start.
6045 for i in 1 2 3 4 5 6 7 8; do
6046 teststring=$teststring$teststring
6047 done
6048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6049 # If test is not a shell built-in, we'll probably end up computing a
6050 # maximum length that is only half of the actual maximum length, but
6051 # we can't tell.
6052 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6054 test 17 != "$i" # 1/2 MB should be enough
6055 do
6056 i=`expr $i + 1`
6057 teststring=$teststring$teststring
6058 done
6059 # Only check the string length outside the loop.
6060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6061 teststring=
6062 # Add a significant safety factor because C++ compilers can tack on
6063 # massive amounts of additional arguments before passing them to the
6064 # linker. It appears as though 1/2 is a usable value.
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6066 fi
6067 ;;
6068 esac
6069
6070 fi
6071
6072 if test -n "$lt_cv_sys_max_cmd_len"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6077 $as_echo "none" >&6; }
6078 fi
6079 max_cmd_len=$lt_cv_sys_max_cmd_len
6080
6081
6082
6083
6084
6085
6086 : ${CP="cp -f"}
6087 : ${MV="mv -f"}
6088 : ${RM="rm -f"}
6089
6090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6091 lt_unset=unset
6092 else
6093 lt_unset=false
6094 fi
6095
6096
6097
6098
6099
6100 # test EBCDIC or ASCII
6101 case `echo X|tr X '\101'` in
6102 A) # ASCII based system
6103 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6104 lt_SP2NL='tr \040 \012'
6105 lt_NL2SP='tr \015\012 \040\040'
6106 ;;
6107 *) # EBCDIC based system
6108 lt_SP2NL='tr \100 \n'
6109 lt_NL2SP='tr \r\n \100\100'
6110 ;;
6111 esac
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6122 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6123 if ${lt_cv_to_host_file_cmd+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 case $host in
6127 *-*-mingw* )
6128 case $build in
6129 *-*-mingw* ) # actually msys
6130 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6131 ;;
6132 *-*-cygwin* )
6133 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6134 ;;
6135 * ) # otherwise, assume *nix
6136 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6137 ;;
6138 esac
6139 ;;
6140 *-*-cygwin* )
6141 case $build in
6142 *-*-mingw* ) # actually msys
6143 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6144 ;;
6145 *-*-cygwin* )
6146 lt_cv_to_host_file_cmd=func_convert_file_noop
6147 ;;
6148 * ) # otherwise, assume *nix
6149 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6150 ;;
6151 esac
6152 ;;
6153 * ) # unhandled hosts (and "normal" native builds)
6154 lt_cv_to_host_file_cmd=func_convert_file_noop
6155 ;;
6156 esac
6157
6158 fi
6159
6160 to_host_file_cmd=$lt_cv_to_host_file_cmd
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6162 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6163
6164
6165
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6169 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6170 if ${lt_cv_to_tool_file_cmd+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 #assume ordinary cross tools, or native build.
6174 lt_cv_to_tool_file_cmd=func_convert_file_noop
6175 case $host in
6176 *-*-mingw* )
6177 case $build in
6178 *-*-mingw* ) # actually msys
6179 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6180 ;;
6181 esac
6182 ;;
6183 esac
6184
6185 fi
6186
6187 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6189 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6190
6191
6192
6193
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6196 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6197 if ${lt_cv_ld_reload_flag+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 lt_cv_ld_reload_flag='-r'
6201 fi
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6203 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6204 reload_flag=$lt_cv_ld_reload_flag
6205 case $reload_flag in
6206 "" | " "*) ;;
6207 *) reload_flag=" $reload_flag" ;;
6208 esac
6209 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6210 case $host_os in
6211 cygwin* | mingw* | pw32* | cegcc*)
6212 if test yes != "$GCC"; then
6213 reload_cmds=false
6214 fi
6215 ;;
6216 darwin*)
6217 if test yes = "$GCC"; then
6218 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6219 else
6220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221 fi
6222 ;;
6223 esac
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_OBJDUMP+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$OBJDUMP"; then
6242 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 OBJDUMP=$ac_cv_prog_OBJDUMP
6262 if test -n "$OBJDUMP"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6264 $as_echo "$OBJDUMP" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270
6271 fi
6272 if test -z "$ac_cv_prog_OBJDUMP"; then
6273 ac_ct_OBJDUMP=$OBJDUMP
6274 # Extract the first word of "objdump", so it can be a program name with args.
6275 set dummy objdump; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$ac_ct_OBJDUMP"; then
6282 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6302 if test -n "$ac_ct_OBJDUMP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6304 $as_echo "$ac_ct_OBJDUMP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310 if test "x$ac_ct_OBJDUMP" = x; then
6311 OBJDUMP="false"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314 yes:)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 OBJDUMP=$ac_ct_OBJDUMP
6320 fi
6321 else
6322 OBJDUMP="$ac_cv_prog_OBJDUMP"
6323 fi
6324
6325 test -z "$OBJDUMP" && OBJDUMP=objdump
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6336 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6337 if ${lt_cv_deplibs_check_method+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 lt_cv_file_magic_cmd='$MAGIC_CMD'
6341 lt_cv_file_magic_test_file=
6342 lt_cv_deplibs_check_method='unknown'
6343 # Need to set the preceding variable on all platforms that support
6344 # interlibrary dependencies.
6345 # 'none' -- dependencies not supported.
6346 # 'unknown' -- same as none, but documents that we really don't know.
6347 # 'pass_all' -- all dependencies passed with no checks.
6348 # 'test_compile' -- check by making test program.
6349 # 'file_magic [[regex]]' -- check by looking for files in library path
6350 # that responds to the $file_magic_cmd with a given extended regex.
6351 # If you have 'file' or equivalent on your system and you're not sure
6352 # whether 'pass_all' will *always* work, you probably want this one.
6353
6354 case $host_os in
6355 aix[4-9]*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 beos*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
6362
6363 bsdi[45]*)
6364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6365 lt_cv_file_magic_cmd='/usr/bin/file -L'
6366 lt_cv_file_magic_test_file=/shlib/libc.so
6367 ;;
6368
6369 cygwin*)
6370 # func_win32_libid is a shell function defined in ltmain.sh
6371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6372 lt_cv_file_magic_cmd='func_win32_libid'
6373 ;;
6374
6375 mingw* | pw32*)
6376 # Base MSYS/MinGW do not provide the 'file' command needed by
6377 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6378 # unless we find 'file', for example because we are cross-compiling.
6379 if ( file / ) >/dev/null 2>&1; then
6380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381 lt_cv_file_magic_cmd='func_win32_libid'
6382 else
6383 # Keep this pattern in sync with the one in func_win32_libid.
6384 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6385 lt_cv_file_magic_cmd='$OBJDUMP -f'
6386 fi
6387 ;;
6388
6389 cegcc*)
6390 # use the weaker test based on 'objdump'. See mingw*.
6391 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6392 lt_cv_file_magic_cmd='$OBJDUMP -f'
6393 ;;
6394
6395 darwin* | rhapsody*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
6398
6399 freebsd* | dragonfly*)
6400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6401 case $host_cpu in
6402 i*86 )
6403 # Not sure whether the presence of OpenBSD here was a mistake.
6404 # Let's accept both of them until this is cleared up.
6405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6406 lt_cv_file_magic_cmd=/usr/bin/file
6407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6408 ;;
6409 esac
6410 else
6411 lt_cv_deplibs_check_method=pass_all
6412 fi
6413 ;;
6414
6415 haiku*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
6418
6419 hpux10.20* | hpux11*)
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 case $host_cpu in
6422 ia64*)
6423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6425 ;;
6426 hppa*64*)
6427 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]'
6428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6429 ;;
6430 *)
6431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6433 ;;
6434 esac
6435 ;;
6436
6437 interix[3-9]*)
6438 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6440 ;;
6441
6442 irix5* | irix6* | nonstopux*)
6443 case $LD in
6444 *-32|*"-32 ") libmagic=32-bit;;
6445 *-n32|*"-n32 ") libmagic=N32;;
6446 *-64|*"-64 ") libmagic=64-bit;;
6447 *) libmagic=never-match;;
6448 esac
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451
6452 # This must be glibc/ELF.
6453 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456
6457 netbsd*)
6458 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6460 else
6461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6462 fi
6463 ;;
6464
6465 newos6*)
6466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6467 lt_cv_file_magic_cmd=/usr/bin/file
6468 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6469 ;;
6470
6471 *nto* | *qnx*)
6472 lt_cv_deplibs_check_method=pass_all
6473 ;;
6474
6475 openbsd* | bitrig*)
6476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6478 else
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480 fi
6481 ;;
6482
6483 osf3* | osf4* | osf5*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487 rdos*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 solaris*)
6492 lt_cv_deplibs_check_method=pass_all
6493 ;;
6494
6495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498
6499 sysv4 | sysv4.3*)
6500 case $host_vendor in
6501 motorola)
6502 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]'
6503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6504 ;;
6505 ncr)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508 sequent)
6509 lt_cv_file_magic_cmd='/bin/file'
6510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6511 ;;
6512 sni)
6513 lt_cv_file_magic_cmd='/bin/file'
6514 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6515 lt_cv_file_magic_test_file=/lib/libc.so
6516 ;;
6517 siemens)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 pc)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 esac
6524 ;;
6525
6526 tpf*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 os2*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532 esac
6533
6534 fi
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6536 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6537
6538 file_magic_glob=
6539 want_nocaseglob=no
6540 if test "$build" = "$host"; then
6541 case $host_os in
6542 mingw* | pw32*)
6543 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6544 want_nocaseglob=yes
6545 else
6546 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6547 fi
6548 ;;
6549 esac
6550 fi
6551
6552 file_magic_cmd=$lt_cv_file_magic_cmd
6553 deplibs_check_method=$lt_cv_deplibs_check_method
6554 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_DLLTOOL+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$DLLTOOL"; then
6586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599 done
6600 done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 DLLTOOL=$ac_cv_prog_DLLTOOL
6606 if test -n "$DLLTOOL"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6608 $as_echo "$DLLTOOL" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614
6615 fi
6616 if test -z "$ac_cv_prog_DLLTOOL"; then
6617 ac_ct_DLLTOOL=$DLLTOOL
6618 # Extract the first word of "dlltool", so it can be a program name with args.
6619 set dummy dlltool; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if test -n "$ac_ct_DLLTOOL"; then
6626 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643 fi
6644 fi
6645 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6646 if test -n "$ac_ct_DLLTOOL"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6648 $as_echo "$ac_ct_DLLTOOL" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6652 fi
6653
6654 if test "x$ac_ct_DLLTOOL" = x; then
6655 DLLTOOL="false"
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663 DLLTOOL=$ac_ct_DLLTOOL
6664 fi
6665 else
6666 DLLTOOL="$ac_cv_prog_DLLTOOL"
6667 fi
6668
6669 test -z "$DLLTOOL" && DLLTOOL=dlltool
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6681 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6682 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 lt_cv_sharedlib_from_linklib_cmd='unknown'
6686
6687 case $host_os in
6688 cygwin* | mingw* | pw32* | cegcc*)
6689 # two different shell functions defined in ltmain.sh;
6690 # decide which one to use based on capabilities of $DLLTOOL
6691 case `$DLLTOOL --help 2>&1` in
6692 *--identify-strict*)
6693 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6694 ;;
6695 *)
6696 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6697 ;;
6698 esac
6699 ;;
6700 *)
6701 # fallback: assume linklib IS sharedlib
6702 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6703 ;;
6704 esac
6705
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6708 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6709 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6710 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6711
6712
6713
6714
6715
6716
6717
6718 if test -n "$ac_tool_prefix"; then
6719 for ac_prog in ar
6720 do
6721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_AR+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$AR"; then
6729 ac_cv_prog_AR="$AR" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 AR=$ac_cv_prog_AR
6749 if test -n "$AR"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6751 $as_echo "$AR" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 test -n "$AR" && break
6759 done
6760 fi
6761 if test -z "$AR"; then
6762 ac_ct_AR=$AR
6763 for ac_prog in ar
6764 do
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766 set dummy $ac_prog; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_AR"; then
6773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_ac_ct_AR="$ac_prog"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786 done
6787 done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6793 if test -n "$ac_ct_AR"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6795 $as_echo "$ac_ct_AR" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801
6802 test -n "$ac_ct_AR" && break
6803 done
6804
6805 if test "x$ac_ct_AR" = x; then
6806 AR="false"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814 AR=$ac_ct_AR
6815 fi
6816 fi
6817
6818 : ${AR=ar}
6819 : ${AR_FLAGS=cru}
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6832 $as_echo_n "checking for archiver @FILE support... " >&6; }
6833 if ${lt_cv_ar_at_file+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 lt_cv_ar_at_file=no
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839
6840 int
6841 main ()
6842 {
6843
6844 ;
6845 return 0;
6846 }
6847 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"; then :
6849 echo conftest.$ac_objext > conftest.lst
6850 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6852 (eval $lt_ar_try) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }
6856 if test 0 -eq "$ac_status"; then
6857 # Ensure the archiver fails upon bogus file names.
6858 rm -f conftest.$ac_objext libconftest.a
6859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6860 (eval $lt_ar_try) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863 test $ac_status = 0; }
6864 if test 0 -ne "$ac_status"; then
6865 lt_cv_ar_at_file=@
6866 fi
6867 fi
6868 rm -f conftest.* libconftest.a
6869
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6875 $as_echo "$lt_cv_ar_at_file" >&6; }
6876
6877 if test no = "$lt_cv_ar_at_file"; then
6878 archiver_list_spec=
6879 else
6880 archiver_list_spec=$lt_cv_ar_at_file
6881 fi
6882
6883
6884
6885
6886
6887
6888
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}strip; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_STRIP+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$STRIP"; then
6898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 STRIP=$ac_cv_prog_STRIP
6918 if test -n "$STRIP"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6920 $as_echo "$STRIP" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926
6927 fi
6928 if test -z "$ac_cv_prog_STRIP"; then
6929 ac_ct_STRIP=$STRIP
6930 # Extract the first word of "strip", so it can be a program name with args.
6931 set dummy strip; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_STRIP"; then
6938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947 ac_cv_prog_ac_ct_STRIP="strip"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955 fi
6956 fi
6957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6958 if test -n "$ac_ct_STRIP"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6960 $as_echo "$ac_ct_STRIP" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966 if test "x$ac_ct_STRIP" = x; then
6967 STRIP=":"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 STRIP=$ac_ct_STRIP
6976 fi
6977 else
6978 STRIP="$ac_cv_prog_STRIP"
6979 fi
6980
6981 test -z "$STRIP" && STRIP=:
6982
6983
6984
6985
6986
6987
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_RANLIB+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$RANLIB"; then
6997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 RANLIB=$ac_cv_prog_RANLIB
7017 if test -n "$RANLIB"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7019 $as_echo "$RANLIB" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_RANLIB"; then
7028 ac_ct_RANLIB=$RANLIB
7029 # Extract the first word of "ranlib", so it can be a program name with args.
7030 set dummy ranlib; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$ac_ct_RANLIB"; then
7037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_ac_ct_RANLIB="ranlib"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7057 if test -n "$ac_ct_RANLIB"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7059 $as_echo "$ac_ct_RANLIB" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065 if test "x$ac_ct_RANLIB" = x; then
7066 RANLIB=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074 RANLIB=$ac_ct_RANLIB
7075 fi
7076 else
7077 RANLIB="$ac_cv_prog_RANLIB"
7078 fi
7079
7080 test -z "$RANLIB" && RANLIB=:
7081
7082
7083
7084
7085
7086
7087 # Determine commands to create old-style static archives.
7088 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7089 old_postinstall_cmds='chmod 644 $oldlib'
7090 old_postuninstall_cmds=
7091
7092 if test -n "$RANLIB"; then
7093 case $host_os in
7094 bitrig* | openbsd*)
7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7096 ;;
7097 *)
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7099 ;;
7100 esac
7101 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7102 fi
7103
7104 case $host_os in
7105 darwin*)
7106 lock_old_archive_extraction=yes ;;
7107 *)
7108 lock_old_archive_extraction=no ;;
7109 esac
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149 # If no C compiler was specified, use CC.
7150 LTCC=${LTCC-"$CC"}
7151
7152 # If no C compiler flags were specified, use CFLAGS.
7153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155 # Allow CC to be a program name with arguments.
7156 compiler=$CC
7157
7158
7159 # Check for command to grab the raw symbol name followed by C symbol from nm.
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7161 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7162 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165
7166 # These are sane defaults that work on at least a few old systems.
7167 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7168
7169 # Character class describing NM global symbol codes.
7170 symcode='[BCDEGRST]'
7171
7172 # Regexp to match symbols that can be accessed directly from C.
7173 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7174
7175 # Define system-specific variables.
7176 case $host_os in
7177 aix*)
7178 symcode='[BCDT]'
7179 ;;
7180 cygwin* | mingw* | pw32* | cegcc*)
7181 symcode='[ABCDGISTW]'
7182 ;;
7183 hpux*)
7184 if test ia64 = "$host_cpu"; then
7185 symcode='[ABCDEGRST]'
7186 fi
7187 ;;
7188 irix* | nonstopux*)
7189 symcode='[BCDEGRST]'
7190 ;;
7191 osf*)
7192 symcode='[BCDEGQRST]'
7193 ;;
7194 solaris*)
7195 symcode='[BDRT]'
7196 ;;
7197 sco3.2v5*)
7198 symcode='[DT]'
7199 ;;
7200 sysv4.2uw2*)
7201 symcode='[DT]'
7202 ;;
7203 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7204 symcode='[ABDT]'
7205 ;;
7206 sysv4)
7207 symcode='[DFNSTU]'
7208 ;;
7209 esac
7210
7211 # If we're using GNU nm, then use its standard symbol codes.
7212 case `$NM -V 2>&1` in
7213 *GNU* | *'with BFD'*)
7214 symcode='[ABCDGIRSTW]' ;;
7215 esac
7216
7217 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7218 # Gets list of data symbols to import.
7219 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7220 # Adjust the below global symbol transforms to fixup imported variables.
7221 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7222 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7223 lt_c_name_lib_hook="\
7224 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7225 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7226 else
7227 # Disable hooks by default.
7228 lt_cv_sys_global_symbol_to_import=
7229 lt_cdecl_hook=
7230 lt_c_name_hook=
7231 lt_c_name_lib_hook=
7232 fi
7233
7234 # Transform an extracted symbol line into a proper C declaration.
7235 # Some systems (esp. on ia64) link data and code symbols differently,
7236 # so use this general approach.
7237 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7238 $lt_cdecl_hook\
7239 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7240 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7241
7242 # Transform an extracted symbol line into symbol name and symbol address
7243 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7244 $lt_c_name_hook\
7245 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7246 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7247
7248 # Transform an extracted symbol line into symbol name with lib prefix and
7249 # symbol address.
7250 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7251 $lt_c_name_lib_hook\
7252 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7253 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7254 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7255
7256 # Handle CRLF in mingw tool chain
7257 opt_cr=
7258 case $build_os in
7259 mingw*)
7260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7261 ;;
7262 esac
7263
7264 # Try without a prefix underscore, then with it.
7265 for ac_symprfx in "" "_"; do
7266
7267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7268 symxfrm="\\1 $ac_symprfx\\2 \\2"
7269
7270 # Write the raw and C identifiers.
7271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7272 # Fake it for dumpbin and say T for any non-static function,
7273 # D for any global variable and I for any imported variable.
7274 # Also find C++ and __fastcall symbols from MSVC++,
7275 # which start with @ or ?.
7276 lt_cv_sys_global_symbol_pipe="$AWK '"\
7277 " {last_section=section; section=\$ 3};"\
7278 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7279 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7280 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7281 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7282 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7283 " \$ 0!~/External *\|/{next};"\
7284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7285 " {if(hide[section]) next};"\
7286 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7287 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7288 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7289 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7290 " ' prfx=^$ac_symprfx"
7291 else
7292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7293 fi
7294 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7295
7296 # Check to see that the pipe works correctly.
7297 pipe_works=no
7298
7299 rm -rf conftest*
7300 cat > conftest.$ac_ext <<_LT_EOF
7301 #ifdef __cplusplus
7302 extern "C" {
7303 #endif
7304 char nm_test_var;
7305 void nm_test_func(void);
7306 void nm_test_func(void){}
7307 #ifdef __cplusplus
7308 }
7309 #endif
7310 int main(){nm_test_var='a';nm_test_func();return(0);}
7311 _LT_EOF
7312
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314 (eval $ac_compile) 2>&5
7315 ac_status=$?
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 # Now try to grab the symbols.
7319 nlist=conftest.nm
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7321 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } && test -s "$nlist"; then
7325 # Try sorting and uniquifying the output.
7326 if sort "$nlist" | uniq > "$nlist"T; then
7327 mv -f "$nlist"T "$nlist"
7328 else
7329 rm -f "$nlist"T
7330 fi
7331
7332 # Make sure that we snagged all the symbols we need.
7333 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7335 cat <<_LT_EOF > conftest.$ac_ext
7336 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7337 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7338 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7339 relocations are performed -- see ld's documentation on pseudo-relocs. */
7340 # define LT_DLSYM_CONST
7341 #elif defined __osf__
7342 /* This system does not cope well with relocations in const data. */
7343 # define LT_DLSYM_CONST
7344 #else
7345 # define LT_DLSYM_CONST const
7346 #endif
7347
7348 #ifdef __cplusplus
7349 extern "C" {
7350 #endif
7351
7352 _LT_EOF
7353 # Now generate the symbol file.
7354 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7355
7356 cat <<_LT_EOF >> conftest.$ac_ext
7357
7358 /* The mapping between symbol names and symbols. */
7359 LT_DLSYM_CONST struct {
7360 const char *name;
7361 void *address;
7362 }
7363 lt__PROGRAM__LTX_preloaded_symbols[] =
7364 {
7365 { "@PROGRAM@", (void *) 0 },
7366 _LT_EOF
7367 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7368 cat <<\_LT_EOF >> conftest.$ac_ext
7369 {0, (void *) 0}
7370 };
7371
7372 /* This works around a problem in FreeBSD linker */
7373 #ifdef FREEBSD_WORKAROUND
7374 static const void *lt_preloaded_setup() {
7375 return lt__PROGRAM__LTX_preloaded_symbols;
7376 }
7377 #endif
7378
7379 #ifdef __cplusplus
7380 }
7381 #endif
7382 _LT_EOF
7383 # Now try linking the two files.
7384 mv conftest.$ac_objext conftstm.$ac_objext
7385 lt_globsym_save_LIBS=$LIBS
7386 lt_globsym_save_CFLAGS=$CFLAGS
7387 LIBS=conftstm.$ac_objext
7388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7390 (eval $ac_link) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7394 pipe_works=yes
7395 fi
7396 LIBS=$lt_globsym_save_LIBS
7397 CFLAGS=$lt_globsym_save_CFLAGS
7398 else
7399 echo "cannot find nm_test_func in $nlist" >&5
7400 fi
7401 else
7402 echo "cannot find nm_test_var in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7406 fi
7407 else
7408 echo "$progname: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 fi
7411 rm -rf conftest* conftst*
7412
7413 # Do not use the global_symbol_pipe unless it works.
7414 if test yes = "$pipe_works"; then
7415 break
7416 else
7417 lt_cv_sys_global_symbol_pipe=
7418 fi
7419 done
7420
7421 fi
7422
7423 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7424 lt_cv_sys_global_symbol_to_cdecl=
7425 fi
7426 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7428 $as_echo "failed" >&6; }
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7431 $as_echo "ok" >&6; }
7432 fi
7433
7434 # Response file support.
7435 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7436 nm_file_list_spec='@'
7437 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7438 nm_file_list_spec='@'
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7478 $as_echo_n "checking for sysroot... " >&6; }
7479
7480 # Check whether --with-sysroot was given.
7481 if test "${with_sysroot+set}" = set; then :
7482 withval=$with_sysroot;
7483 else
7484 with_sysroot=no
7485 fi
7486
7487
7488 lt_sysroot=
7489 case $with_sysroot in #(
7490 yes)
7491 if test yes = "$GCC"; then
7492 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7493 fi
7494 ;; #(
7495 /*)
7496 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7497 ;; #(
7498 no|'')
7499 ;; #(
7500 *)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7502 $as_echo "$with_sysroot" >&6; }
7503 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7504 ;;
7505 esac
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7508 $as_echo "${lt_sysroot:-no}" >&6; }
7509
7510
7511
7512
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7515 $as_echo_n "checking for a working dd... " >&6; }
7516 if ${ac_cv_path_lt_DD+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 printf 0123456789abcdef0123456789abcdef >conftest.i
7520 cat conftest.i conftest.i >conftest2.i
7521 : ${lt_DD:=$DD}
7522 if test -z "$lt_DD"; then
7523 ac_path_lt_DD_found=false
7524 # Loop through the user's path and test for each of PROGNAME-LIST
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_prog in dd; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7533 as_fn_executable_p "$ac_path_lt_DD" || continue
7534 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7535 cmp -s conftest.i conftest.out \
7536 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7537 fi
7538 $ac_path_lt_DD_found && break 3
7539 done
7540 done
7541 done
7542 IFS=$as_save_IFS
7543 if test -z "$ac_cv_path_lt_DD"; then
7544 :
7545 fi
7546 else
7547 ac_cv_path_lt_DD=$lt_DD
7548 fi
7549
7550 rm -f conftest.i conftest2.i conftest.out
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7553 $as_echo "$ac_cv_path_lt_DD" >&6; }
7554
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7557 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7558 if ${lt_cv_truncate_bin+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 printf 0123456789abcdef0123456789abcdef >conftest.i
7562 cat conftest.i conftest.i >conftest2.i
7563 lt_cv_truncate_bin=
7564 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7565 cmp -s conftest.i conftest.out \
7566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7567 fi
7568 rm -f conftest.i conftest2.i conftest.out
7569 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7572 $as_echo "$lt_cv_truncate_bin" >&6; }
7573
7574
7575
7576
7577
7578
7579
7580 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7581 func_cc_basename ()
7582 {
7583 for cc_temp in $*""; do
7584 case $cc_temp in
7585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7587 \-*) ;;
7588 *) break;;
7589 esac
7590 done
7591 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7592 }
7593
7594 # Check whether --enable-libtool-lock was given.
7595 if test "${enable_libtool_lock+set}" = set; then :
7596 enableval=$enable_libtool_lock;
7597 fi
7598
7599 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7600
7601 # Some flags need to be propagated to the compiler or linker for good
7602 # libtool support.
7603 case $host in
7604 ia64-*-hpux*)
7605 # Find out what ABI is being produced by ac_compile, and set mode
7606 # options accordingly.
7607 echo 'int i;' > conftest.$ac_ext
7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7609 (eval $ac_compile) 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; }; then
7613 case `/usr/bin/file conftest.$ac_objext` in
7614 *ELF-32*)
7615 HPUX_IA64_MODE=32
7616 ;;
7617 *ELF-64*)
7618 HPUX_IA64_MODE=64
7619 ;;
7620 esac
7621 fi
7622 rm -rf conftest*
7623 ;;
7624 *-*-irix6*)
7625 # Find out what ABI is being produced by ac_compile, and set linker
7626 # options accordingly.
7627 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
7633 if test yes = "$lt_cv_prog_gnu_ld"; then
7634 case `/usr/bin/file conftest.$ac_objext` in
7635 *32-bit*)
7636 LD="${LD-ld} -melf32bsmip"
7637 ;;
7638 *N32*)
7639 LD="${LD-ld} -melf32bmipn32"
7640 ;;
7641 *64-bit*)
7642 LD="${LD-ld} -melf64bmip"
7643 ;;
7644 esac
7645 else
7646 case `/usr/bin/file conftest.$ac_objext` in
7647 *32-bit*)
7648 LD="${LD-ld} -32"
7649 ;;
7650 *N32*)
7651 LD="${LD-ld} -n32"
7652 ;;
7653 *64-bit*)
7654 LD="${LD-ld} -64"
7655 ;;
7656 esac
7657 fi
7658 fi
7659 rm -rf conftest*
7660 ;;
7661
7662 mips64*-*linux*)
7663 # Find out what ABI is being produced by ac_compile, and set linker
7664 # options accordingly.
7665 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }; then
7671 emul=elf
7672 case `/usr/bin/file conftest.$ac_objext` in
7673 *32-bit*)
7674 emul="${emul}32"
7675 ;;
7676 *64-bit*)
7677 emul="${emul}64"
7678 ;;
7679 esac
7680 case `/usr/bin/file conftest.$ac_objext` in
7681 *MSB*)
7682 emul="${emul}btsmip"
7683 ;;
7684 *LSB*)
7685 emul="${emul}ltsmip"
7686 ;;
7687 esac
7688 case `/usr/bin/file conftest.$ac_objext` in
7689 *N32*)
7690 emul="${emul}n32"
7691 ;;
7692 esac
7693 LD="${LD-ld} -m $emul"
7694 fi
7695 rm -rf conftest*
7696 ;;
7697
7698 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7699 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7700 # Find out what ABI is being produced by ac_compile, and set linker
7701 # options accordingly. Note that the listed cases only cover the
7702 # situations where additional linker options are needed (such as when
7703 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7704 # vice versa); the common cases where no linker options are needed do
7705 # not appear in the list.
7706 echo 'int i;' > conftest.$ac_ext
7707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708 (eval $ac_compile) 2>&5
7709 ac_status=$?
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 case `/usr/bin/file conftest.o` in
7713 *32-bit*)
7714 case $host in
7715 x86_64-*kfreebsd*-gnu)
7716 LD="${LD-ld} -m elf_i386_fbsd"
7717 ;;
7718 x86_64-*linux*)
7719 case `/usr/bin/file conftest.o` in
7720 *x86-64*)
7721 LD="${LD-ld} -m elf32_x86_64"
7722 ;;
7723 *)
7724 LD="${LD-ld} -m elf_i386"
7725 ;;
7726 esac
7727 ;;
7728 powerpc64le-*linux*)
7729 LD="${LD-ld} -m elf32lppclinux"
7730 ;;
7731 powerpc64-*linux*)
7732 LD="${LD-ld} -m elf32ppclinux"
7733 ;;
7734 s390x-*linux*)
7735 LD="${LD-ld} -m elf_s390"
7736 ;;
7737 sparc64-*linux*)
7738 LD="${LD-ld} -m elf32_sparc"
7739 ;;
7740 esac
7741 ;;
7742 *64-bit*)
7743 case $host in
7744 x86_64-*kfreebsd*-gnu)
7745 LD="${LD-ld} -m elf_x86_64_fbsd"
7746 ;;
7747 x86_64-*linux*)
7748 LD="${LD-ld} -m elf_x86_64"
7749 ;;
7750 powerpcle-*linux*)
7751 LD="${LD-ld} -m elf64lppc"
7752 ;;
7753 powerpc-*linux*)
7754 LD="${LD-ld} -m elf64ppc"
7755 ;;
7756 s390*-*linux*|s390*-*tpf*)
7757 LD="${LD-ld} -m elf64_s390"
7758 ;;
7759 sparc*-*linux*)
7760 LD="${LD-ld} -m elf64_sparc"
7761 ;;
7762 esac
7763 ;;
7764 esac
7765 fi
7766 rm -rf conftest*
7767 ;;
7768
7769 *-*-sco3.2v5*)
7770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7771 SAVE_CFLAGS=$CFLAGS
7772 CFLAGS="$CFLAGS -belf"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7774 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7775 if ${lt_cv_cc_needs_belf+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_ext=c
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786
7787 int
7788 main ()
7789 {
7790
7791 ;
7792 return 0;
7793 }
7794 _ACEOF
7795 if ac_fn_c_try_link "$LINENO"; then :
7796 lt_cv_cc_needs_belf=yes
7797 else
7798 lt_cv_cc_needs_belf=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7810 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7811 if test yes != "$lt_cv_cc_needs_belf"; then
7812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7813 CFLAGS=$SAVE_CFLAGS
7814 fi
7815 ;;
7816 *-*solaris*)
7817 # Find out what ABI is being produced by ac_compile, and set linker
7818 # options accordingly.
7819 echo 'int i;' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7822 ac_status=$?
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 case `/usr/bin/file conftest.o` in
7826 *64-bit*)
7827 case $lt_cv_prog_gnu_ld in
7828 yes*)
7829 case $host in
7830 i?86-*-solaris*|x86_64-*-solaris*)
7831 LD="${LD-ld} -m elf_x86_64"
7832 ;;
7833 sparc*-*-solaris*)
7834 LD="${LD-ld} -m elf64_sparc"
7835 ;;
7836 esac
7837 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7838 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7839 LD=${LD-ld}_sol2
7840 fi
7841 ;;
7842 *)
7843 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7844 LD="${LD-ld} -64"
7845 fi
7846 ;;
7847 esac
7848 ;;
7849 esac
7850 fi
7851 rm -rf conftest*
7852 ;;
7853 esac
7854
7855 need_locks=$enable_libtool_lock
7856
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}mt; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$MANIFEST_TOOL"; then
7866 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879 done
7880 done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7886 if test -n "$MANIFEST_TOOL"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7888 $as_echo "$MANIFEST_TOOL" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894
7895 fi
7896 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7897 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7898 # Extract the first word of "mt", so it can be a program name with args.
7899 set dummy mt; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$ac_ct_MANIFEST_TOOL"; then
7906 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923 fi
7924 fi
7925 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7926 if test -n "$ac_ct_MANIFEST_TOOL"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7928 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 fi
7933
7934 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7935 MANIFEST_TOOL=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7944 fi
7945 else
7946 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7947 fi
7948
7949 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7951 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7952 if ${lt_cv_path_mainfest_tool+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 lt_cv_path_mainfest_tool=no
7956 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7957 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7958 cat conftest.err >&5
7959 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7960 lt_cv_path_mainfest_tool=yes
7961 fi
7962 rm -rf conftest*
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7965 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7966 if test yes != "$lt_cv_path_mainfest_tool"; then
7967 MANIFEST_TOOL=:
7968 fi
7969
7970
7971
7972
7973
7974
7975 case $host_os in
7976 rhapsody* | darwin*)
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$DSYMUTIL"; then
7986 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8006 if test -n "$DSYMUTIL"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8008 $as_echo "$DSYMUTIL" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 fi
8016 if test -z "$ac_cv_prog_DSYMUTIL"; then
8017 ac_ct_DSYMUTIL=$DSYMUTIL
8018 # Extract the first word of "dsymutil", so it can be a program name with args.
8019 set dummy dsymutil; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -n "$ac_ct_DSYMUTIL"; then
8026 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8027 else
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8030 do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039 done
8040 done
8041 IFS=$as_save_IFS
8042
8043 fi
8044 fi
8045 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8046 if test -n "$ac_ct_DSYMUTIL"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8048 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054 if test "x$ac_ct_DSYMUTIL" = x; then
8055 DSYMUTIL=":"
8056 else
8057 case $cross_compiling:$ac_tool_warned in
8058 yes:)
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061 ac_tool_warned=yes ;;
8062 esac
8063 DSYMUTIL=$ac_ct_DSYMUTIL
8064 fi
8065 else
8066 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8067 fi
8068
8069 if test -n "$ac_tool_prefix"; then
8070 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8071 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if ${ac_cv_prog_NMEDIT+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$NMEDIT"; then
8078 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 NMEDIT=$ac_cv_prog_NMEDIT
8098 if test -n "$NMEDIT"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8100 $as_echo "$NMEDIT" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 fi
8105
8106
8107 fi
8108 if test -z "$ac_cv_prog_NMEDIT"; then
8109 ac_ct_NMEDIT=$NMEDIT
8110 # Extract the first word of "nmedit", so it can be a program name with args.
8111 set dummy nmedit; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 if test -n "$ac_ct_NMEDIT"; then
8118 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8122 do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131 done
8132 done
8133 IFS=$as_save_IFS
8134
8135 fi
8136 fi
8137 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8138 if test -n "$ac_ct_NMEDIT"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8140 $as_echo "$ac_ct_NMEDIT" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145
8146 if test "x$ac_ct_NMEDIT" = x; then
8147 NMEDIT=":"
8148 else
8149 case $cross_compiling:$ac_tool_warned in
8150 yes:)
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153 ac_tool_warned=yes ;;
8154 esac
8155 NMEDIT=$ac_ct_NMEDIT
8156 fi
8157 else
8158 NMEDIT="$ac_cv_prog_NMEDIT"
8159 fi
8160
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if ${ac_cv_prog_LIPO+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 if test -n "$LIPO"; then
8170 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183 done
8184 done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 LIPO=$ac_cv_prog_LIPO
8190 if test -n "$LIPO"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8192 $as_echo "$LIPO" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199 fi
8200 if test -z "$ac_cv_prog_LIPO"; then
8201 ac_ct_LIPO=$LIPO
8202 # Extract the first word of "lipo", so it can be a program name with args.
8203 set dummy lipo; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$ac_ct_LIPO"; then
8210 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_ac_ct_LIPO="lipo"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8230 if test -n "$ac_ct_LIPO"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8232 $as_echo "$ac_ct_LIPO" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238 if test "x$ac_ct_LIPO" = x; then
8239 LIPO=":"
8240 else
8241 case $cross_compiling:$ac_tool_warned in
8242 yes:)
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245 ac_tool_warned=yes ;;
8246 esac
8247 LIPO=$ac_ct_LIPO
8248 fi
8249 else
8250 LIPO="$ac_cv_prog_LIPO"
8251 fi
8252
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}otool; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_OTOOL+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 if test -n "$OTOOL"; then
8262 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8274 fi
8275 done
8276 done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 OTOOL=$ac_cv_prog_OTOOL
8282 if test -n "$OTOOL"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8284 $as_echo "$OTOOL" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290
8291 fi
8292 if test -z "$ac_cv_prog_OTOOL"; then
8293 ac_ct_OTOOL=$OTOOL
8294 # Extract the first word of "otool", so it can be a program name with args.
8295 set dummy otool; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$ac_ct_OTOOL"; then
8302 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_ac_ct_OTOOL="otool"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8322 if test -n "$ac_ct_OTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8324 $as_echo "$ac_ct_OTOOL" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330 if test "x$ac_ct_OTOOL" = x; then
8331 OTOOL=":"
8332 else
8333 case $cross_compiling:$ac_tool_warned in
8334 yes:)
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8338 esac
8339 OTOOL=$ac_ct_OTOOL
8340 fi
8341 else
8342 OTOOL="$ac_cv_prog_OTOOL"
8343 fi
8344
8345 if test -n "$ac_tool_prefix"; then
8346 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8347 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if ${ac_cv_prog_OTOOL64+:} false; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8353 if test -n "$OTOOL64"; then
8354 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8355 else
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi
8372 fi
8373 OTOOL64=$ac_cv_prog_OTOOL64
8374 if test -n "$OTOOL64"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8376 $as_echo "$OTOOL64" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383 fi
8384 if test -z "$ac_cv_prog_OTOOL64"; then
8385 ac_ct_OTOOL64=$OTOOL64
8386 # Extract the first word of "otool64", so it can be a program name with args.
8387 set dummy otool64; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$ac_ct_OTOOL64"; then
8394 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_ac_ct_OTOOL64="otool64"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8414 if test -n "$ac_ct_OTOOL64"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8416 $as_echo "$ac_ct_OTOOL64" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422 if test "x$ac_ct_OTOOL64" = x; then
8423 OTOOL64=":"
8424 else
8425 case $cross_compiling:$ac_tool_warned in
8426 yes:)
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8429 ac_tool_warned=yes ;;
8430 esac
8431 OTOOL64=$ac_ct_OTOOL64
8432 fi
8433 else
8434 OTOOL64="$ac_cv_prog_OTOOL64"
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8464 $as_echo_n "checking for -single_module linker flag... " >&6; }
8465 if ${lt_cv_apple_cc_single_mod+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 lt_cv_apple_cc_single_mod=no
8469 if test -z "$LT_MULTI_MODULE"; then
8470 # By default we will add the -single_module flag. You can override
8471 # by either setting the environment variable LT_MULTI_MODULE
8472 # non-empty at configure time, or by adding -multi_module to the
8473 # link flags.
8474 rm -rf libconftest.dylib*
8475 echo "int foo(void){return 1;}" > conftest.c
8476 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477 -dynamiclib -Wl,-single_module conftest.c" >&5
8478 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8480 _lt_result=$?
8481 # If there is a non-empty error log, and "single_module"
8482 # appears in it, assume the flag caused a linker warning
8483 if test -s conftest.err && $GREP single_module conftest.err; then
8484 cat conftest.err >&5
8485 # Otherwise, if the output was created with a 0 exit code from
8486 # the compiler, it worked.
8487 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8488 lt_cv_apple_cc_single_mod=yes
8489 else
8490 cat conftest.err >&5
8491 fi
8492 rm -rf libconftest.dylib*
8493 rm -f conftest.*
8494 fi
8495 fi
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8497 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8500 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8501 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_ld_exported_symbols_list=no
8505 save_LDFLAGS=$LDFLAGS
8506 echo "_main" > conftest.sym
8507 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 int
8512 main ()
8513 {
8514
8515 ;
8516 return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_link "$LINENO"; then :
8520 lt_cv_ld_exported_symbols_list=yes
8521 else
8522 lt_cv_ld_exported_symbols_list=no
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8526 LDFLAGS=$save_LDFLAGS
8527
8528 fi
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8530 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8531
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8533 $as_echo_n "checking for -force_load linker flag... " >&6; }
8534 if ${lt_cv_ld_force_load+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_ld_force_load=no
8538 cat > conftest.c << _LT_EOF
8539 int forced_loaded() { return 2;}
8540 _LT_EOF
8541 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8542 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8543 echo "$AR cru libconftest.a conftest.o" >&5
8544 $AR cru libconftest.a conftest.o 2>&5
8545 echo "$RANLIB libconftest.a" >&5
8546 $RANLIB libconftest.a 2>&5
8547 cat > conftest.c << _LT_EOF
8548 int main() { return 0;}
8549 _LT_EOF
8550 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8551 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8552 _lt_result=$?
8553 if test -s conftest.err && $GREP force_load conftest.err; then
8554 cat conftest.err >&5
8555 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8556 lt_cv_ld_force_load=yes
8557 else
8558 cat conftest.err >&5
8559 fi
8560 rm -f conftest.err libconftest.a conftest conftest.c
8561 rm -rf conftest.dSYM
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8565 $as_echo "$lt_cv_ld_force_load" >&6; }
8566 case $host_os in
8567 rhapsody* | darwin1.[012])
8568 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8569 darwin1.*)
8570 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8571 darwin*) # darwin 5.x on
8572 # if running on 10.5 or later, the deployment target defaults
8573 # to the OS version, if on x86, and 10.4, the deployment
8574 # target defaults to 10.4. Don't you love it?
8575 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8576 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8577 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8578 10.[012][,.]*)
8579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8580 10.*)
8581 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8582 esac
8583 ;;
8584 esac
8585 if test yes = "$lt_cv_apple_cc_single_mod"; then
8586 _lt_dar_single_mod='$single_module'
8587 fi
8588 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8589 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8590 else
8591 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8592 fi
8593 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8594 _lt_dsymutil='~$DSYMUTIL $lib || :'
8595 else
8596 _lt_dsymutil=
8597 fi
8598 ;;
8599 esac
8600
8601 # func_munge_path_list VARIABLE PATH
8602 # -----------------------------------
8603 # VARIABLE is name of variable containing _space_ separated list of
8604 # directories to be munged by the contents of PATH, which is string
8605 # having a format:
8606 # "DIR[:DIR]:"
8607 # string "DIR[ DIR]" will be prepended to VARIABLE
8608 # ":DIR[:DIR]"
8609 # string "DIR[ DIR]" will be appended to VARIABLE
8610 # "DIRP[:DIRP]::[DIRA:]DIRA"
8611 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8612 # "DIRA[ DIRA]" will be appended to VARIABLE
8613 # "DIR[:DIR]"
8614 # VARIABLE will be replaced by "DIR[ DIR]"
8615 func_munge_path_list ()
8616 {
8617 case x$2 in
8618 x)
8619 ;;
8620 *:)
8621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8622 ;;
8623 x:*)
8624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8625 ;;
8626 *::*)
8627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8629 ;;
8630 *)
8631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8632 ;;
8633 esac
8634 }
8635
8636 ac_ext=c
8637 ac_cpp='$CPP $CPPFLAGS'
8638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8642 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8643 # On Suns, sometimes $CPP names a directory.
8644 if test -n "$CPP" && test -d "$CPP"; then
8645 CPP=
8646 fi
8647 if test -z "$CPP"; then
8648 if ${ac_cv_prog_CPP+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 # Double quotes because CPP needs to be expanded
8652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8653 do
8654 ac_preproc_ok=false
8655 for ac_c_preproc_warn_flag in '' yes
8656 do
8657 # Use a header file that comes with gcc, so configuring glibc
8658 # with a fresh cross-compiler works.
8659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8660 # <limits.h> exists even on freestanding compilers.
8661 # On the NeXT, cc -E runs the code through the compiler's parser,
8662 # not just through cpp. "Syntax error" is here to catch this case.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 #ifdef __STDC__
8666 # include <limits.h>
8667 #else
8668 # include <assert.h>
8669 #endif
8670 Syntax error
8671 _ACEOF
8672 if ac_fn_c_try_cpp "$LINENO"; then :
8673
8674 else
8675 # Broken: fails on valid input.
8676 continue
8677 fi
8678 rm -f conftest.err conftest.i conftest.$ac_ext
8679
8680 # OK, works on sane cases. Now check whether nonexistent headers
8681 # can be detected and how.
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <ac_nonexistent.h>
8685 _ACEOF
8686 if ac_fn_c_try_cpp "$LINENO"; then :
8687 # Broken: success on invalid input.
8688 continue
8689 else
8690 # Passes both tests.
8691 ac_preproc_ok=:
8692 break
8693 fi
8694 rm -f conftest.err conftest.i conftest.$ac_ext
8695
8696 done
8697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8698 rm -f conftest.i conftest.err conftest.$ac_ext
8699 if $ac_preproc_ok; then :
8700 break
8701 fi
8702
8703 done
8704 ac_cv_prog_CPP=$CPP
8705
8706 fi
8707 CPP=$ac_cv_prog_CPP
8708 else
8709 ac_cv_prog_CPP=$CPP
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8712 $as_echo "$CPP" >&6; }
8713 ac_preproc_ok=false
8714 for ac_c_preproc_warn_flag in '' yes
8715 do
8716 # Use a header file that comes with gcc, so configuring glibc
8717 # with a fresh cross-compiler works.
8718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 # <limits.h> exists even on freestanding compilers.
8720 # On the NeXT, cc -E runs the code through the compiler's parser,
8721 # not just through cpp. "Syntax error" is here to catch this case.
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #ifdef __STDC__
8725 # include <limits.h>
8726 #else
8727 # include <assert.h>
8728 #endif
8729 Syntax error
8730 _ACEOF
8731 if ac_fn_c_try_cpp "$LINENO"; then :
8732
8733 else
8734 # Broken: fails on valid input.
8735 continue
8736 fi
8737 rm -f conftest.err conftest.i conftest.$ac_ext
8738
8739 # OK, works on sane cases. Now check whether nonexistent headers
8740 # can be detected and how.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <ac_nonexistent.h>
8744 _ACEOF
8745 if ac_fn_c_try_cpp "$LINENO"; then :
8746 # Broken: success on invalid input.
8747 continue
8748 else
8749 # Passes both tests.
8750 ac_preproc_ok=:
8751 break
8752 fi
8753 rm -f conftest.err conftest.i conftest.$ac_ext
8754
8755 done
8756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8757 rm -f conftest.i conftest.err conftest.$ac_ext
8758 if $ac_preproc_ok; then :
8759
8760 else
8761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8763 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8764 See \`config.log' for more details" "$LINENO" 5; }
8765 fi
8766
8767 ac_ext=c
8768 ac_cpp='$CPP $CPPFLAGS'
8769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8772
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8775 $as_echo_n "checking for ANSI C header files... " >&6; }
8776 if ${ac_cv_header_stdc+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <stdlib.h>
8782 #include <stdarg.h>
8783 #include <string.h>
8784 #include <float.h>
8785
8786 int
8787 main ()
8788 {
8789
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 ac_cv_header_stdc=yes
8796 else
8797 ac_cv_header_stdc=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800
8801 if test $ac_cv_header_stdc = yes; then
8802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 #include <string.h>
8806
8807 _ACEOF
8808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 $EGREP "memchr" >/dev/null 2>&1; then :
8810
8811 else
8812 ac_cv_header_stdc=no
8813 fi
8814 rm -f conftest*
8815
8816 fi
8817
8818 if test $ac_cv_header_stdc = yes; then
8819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #include <stdlib.h>
8823
8824 _ACEOF
8825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826 $EGREP "free" >/dev/null 2>&1; then :
8827
8828 else
8829 ac_cv_header_stdc=no
8830 fi
8831 rm -f conftest*
8832
8833 fi
8834
8835 if test $ac_cv_header_stdc = yes; then
8836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8837 if test "$cross_compiling" = yes; then :
8838 :
8839 else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <ctype.h>
8843 #include <stdlib.h>
8844 #if ((' ' & 0x0FF) == 0x020)
8845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8847 #else
8848 # define ISLOWER(c) \
8849 (('a' <= (c) && (c) <= 'i') \
8850 || ('j' <= (c) && (c) <= 'r') \
8851 || ('s' <= (c) && (c) <= 'z'))
8852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8853 #endif
8854
8855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8856 int
8857 main ()
8858 {
8859 int i;
8860 for (i = 0; i < 256; i++)
8861 if (XOR (islower (i), ISLOWER (i))
8862 || toupper (i) != TOUPPER (i))
8863 return 2;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_run "$LINENO"; then :
8868
8869 else
8870 ac_cv_header_stdc=no
8871 fi
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 fi
8875
8876 fi
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8879 $as_echo "$ac_cv_header_stdc" >&6; }
8880 if test $ac_cv_header_stdc = yes; then
8881
8882 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8883
8884 fi
8885
8886 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8888 inttypes.h stdint.h unistd.h
8889 do :
8890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8892 "
8893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8894 cat >>confdefs.h <<_ACEOF
8895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 _ACEOF
8897
8898 fi
8899
8900 done
8901
8902
8903 for ac_header in dlfcn.h
8904 do :
8905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8906 "
8907 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_DLFCN_H 1
8910 _ACEOF
8911
8912 fi
8913
8914 done
8915
8916
8917
8918
8919 func_stripname_cnf ()
8920 {
8921 case $2 in
8922 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8923 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8924 esac
8925 } # func_stripname_cnf
8926
8927
8928
8929
8930
8931 # Set options
8932 # Check whether --enable-static was given.
8933 if test "${enable_static+set}" = set; then :
8934 enableval=$enable_static; p=${PACKAGE-default}
8935 case $enableval in
8936 yes) enable_static=yes ;;
8937 no) enable_static=no ;;
8938 *)
8939 enable_static=no
8940 # Look at the argument we got. We use all the common list separators.
8941 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8942 for pkg in $enableval; do
8943 IFS=$lt_save_ifs
8944 if test "X$pkg" = "X$p"; then
8945 enable_static=yes
8946 fi
8947 done
8948 IFS=$lt_save_ifs
8949 ;;
8950 esac
8951 else
8952 enable_static=no
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964 enable_dlopen=no
8965
8966
8967 enable_win32_dll=no
8968
8969
8970 # Check whether --enable-shared was given.
8971 if test "${enable_shared+set}" = set; then :
8972 enableval=$enable_shared; p=${PACKAGE-default}
8973 case $enableval in
8974 yes) enable_shared=yes ;;
8975 no) enable_shared=no ;;
8976 *)
8977 enable_shared=no
8978 # Look at the argument we got. We use all the common list separators.
8979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8980 for pkg in $enableval; do
8981 IFS=$lt_save_ifs
8982 if test "X$pkg" = "X$p"; then
8983 enable_shared=yes
8984 fi
8985 done
8986 IFS=$lt_save_ifs
8987 ;;
8988 esac
8989 else
8990 enable_shared=yes
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003 # Check whether --with-pic was given.
9004 if test "${with_pic+set}" = set; then :
9005 withval=$with_pic; lt_p=${PACKAGE-default}
9006 case $withval in
9007 yes|no) pic_mode=$withval ;;
9008 *)
9009 pic_mode=default
9010 # Look at the argument we got. We use all the common list separators.
9011 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9012 for lt_pkg in $withval; do
9013 IFS=$lt_save_ifs
9014 if test "X$lt_pkg" = "X$lt_p"; then
9015 pic_mode=yes
9016 fi
9017 done
9018 IFS=$lt_save_ifs
9019 ;;
9020 esac
9021 else
9022 pic_mode=default
9023 fi
9024
9025
9026
9027
9028
9029
9030
9031
9032 # Check whether --enable-fast-install was given.
9033 if test "${enable_fast_install+set}" = set; then :
9034 enableval=$enable_fast_install; p=${PACKAGE-default}
9035 case $enableval in
9036 yes) enable_fast_install=yes ;;
9037 no) enable_fast_install=no ;;
9038 *)
9039 enable_fast_install=no
9040 # Look at the argument we got. We use all the common list separators.
9041 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9042 for pkg in $enableval; do
9043 IFS=$lt_save_ifs
9044 if test "X$pkg" = "X$p"; then
9045 enable_fast_install=yes
9046 fi
9047 done
9048 IFS=$lt_save_ifs
9049 ;;
9050 esac
9051 else
9052 enable_fast_install=yes
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061
9062 shared_archive_member_spec=
9063 case $host,$enable_shared in
9064 power*-*-aix[5-9]*,yes)
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9066 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9067
9068 # Check whether --with-aix-soname was given.
9069 if test "${with_aix_soname+set}" = set; then :
9070 withval=$with_aix_soname; case $withval in
9071 aix|svr4|both)
9072 ;;
9073 *)
9074 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9075 ;;
9076 esac
9077 lt_cv_with_aix_soname=$with_aix_soname
9078 else
9079 if ${lt_cv_with_aix_soname+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 lt_cv_with_aix_soname=aix
9083 fi
9084
9085 with_aix_soname=$lt_cv_with_aix_soname
9086 fi
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9089 $as_echo "$with_aix_soname" >&6; }
9090 if test aix != "$with_aix_soname"; then
9091 # For the AIX way of multilib, we name the shared archive member
9092 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9093 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9094 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9095 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9096 if test 64 = "${OBJECT_MODE-32}"; then
9097 shared_archive_member_spec=shr_64
9098 else
9099 shared_archive_member_spec=shr
9100 fi
9101 fi
9102 ;;
9103 *)
9104 with_aix_soname=aix
9105 ;;
9106 esac
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117 # This can be used to rebuild libtool when needed
9118 LIBTOOL_DEPS=$ltmain
9119
9120 # Always use our own libtool.
9121 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 test -z "$LN_S" && LN_S="ln -s"
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 if test -n "${ZSH_VERSION+set}"; then
9168 setopt NO_GLOB_SUBST
9169 fi
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9172 $as_echo_n "checking for objdir... " >&6; }
9173 if ${lt_cv_objdir+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 rm -f .libs 2>/dev/null
9177 mkdir .libs 2>/dev/null
9178 if test -d .libs; then
9179 lt_cv_objdir=.libs
9180 else
9181 # MS-DOS does not allow filenames that begin with a dot.
9182 lt_cv_objdir=_libs
9183 fi
9184 rmdir .libs 2>/dev/null
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9187 $as_echo "$lt_cv_objdir" >&6; }
9188 objdir=$lt_cv_objdir
9189
9190
9191
9192
9193
9194 cat >>confdefs.h <<_ACEOF
9195 #define LT_OBJDIR "$lt_cv_objdir/"
9196 _ACEOF
9197
9198
9199
9200
9201 case $host_os in
9202 aix3*)
9203 # AIX sometimes has problems with the GCC collect2 program. For some
9204 # reason, if we set the COLLECT_NAMES environment variable, the problems
9205 # vanish in a puff of smoke.
9206 if test set != "${COLLECT_NAMES+set}"; then
9207 COLLECT_NAMES=
9208 export COLLECT_NAMES
9209 fi
9210 ;;
9211 esac
9212
9213 # Global variables:
9214 ofile=libtool
9215 can_build_shared=yes
9216
9217 # All known linkers require a '.a' archive for static linking (except MSVC,
9218 # which needs '.lib').
9219 libext=a
9220
9221 with_gnu_ld=$lt_cv_prog_gnu_ld
9222
9223 old_CC=$CC
9224 old_CFLAGS=$CFLAGS
9225
9226 # Set sane defaults for various variables
9227 test -z "$CC" && CC=cc
9228 test -z "$LTCC" && LTCC=$CC
9229 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9230 test -z "$LD" && LD=ld
9231 test -z "$ac_objext" && ac_objext=o
9232
9233 func_cc_basename $compiler
9234 cc_basename=$func_cc_basename_result
9235
9236
9237 # Only perform the check for file, if the check method requires it
9238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9239 case $deplibs_check_method in
9240 file_magic*)
9241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9243 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9244 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 case $MAGIC_CMD in
9248 [\\/*] | ?:[\\/]*)
9249 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9250 ;;
9251 *)
9252 lt_save_MAGIC_CMD=$MAGIC_CMD
9253 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9255 for ac_dir in $ac_dummy; do
9256 IFS=$lt_save_ifs
9257 test -z "$ac_dir" && ac_dir=.
9258 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9259 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9260 if test -n "$file_magic_test_file"; then
9261 case $deplibs_check_method in
9262 "file_magic "*)
9263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9264 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9266 $EGREP "$file_magic_regex" > /dev/null; then
9267 :
9268 else
9269 cat <<_LT_EOF 1>&2
9270
9271 *** Warning: the command libtool uses to detect shared libraries,
9272 *** $file_magic_cmd, produces output that libtool cannot recognize.
9273 *** The result is that libtool may fail to recognize shared libraries
9274 *** as such. This will affect the creation of libtool libraries that
9275 *** depend on shared libraries, but programs linked with such libtool
9276 *** libraries will work regardless of this problem. Nevertheless, you
9277 *** may want to report the problem to your system manager and/or to
9278 *** bug-libtool@gnu.org
9279
9280 _LT_EOF
9281 fi ;;
9282 esac
9283 fi
9284 break
9285 fi
9286 done
9287 IFS=$lt_save_ifs
9288 MAGIC_CMD=$lt_save_MAGIC_CMD
9289 ;;
9290 esac
9291 fi
9292
9293 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9294 if test -n "$MAGIC_CMD"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9296 $as_echo "$MAGIC_CMD" >&6; }
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302
9303
9304
9305
9306 if test -z "$lt_cv_path_MAGIC_CMD"; then
9307 if test -n "$ac_tool_prefix"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9309 $as_echo_n "checking for file... " >&6; }
9310 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 case $MAGIC_CMD in
9314 [\\/*] | ?:[\\/]*)
9315 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9316 ;;
9317 *)
9318 lt_save_MAGIC_CMD=$MAGIC_CMD
9319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9321 for ac_dir in $ac_dummy; do
9322 IFS=$lt_save_ifs
9323 test -z "$ac_dir" && ac_dir=.
9324 if test -f "$ac_dir/file"; then
9325 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9326 if test -n "$file_magic_test_file"; then
9327 case $deplibs_check_method in
9328 "file_magic "*)
9329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9330 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9332 $EGREP "$file_magic_regex" > /dev/null; then
9333 :
9334 else
9335 cat <<_LT_EOF 1>&2
9336
9337 *** Warning: the command libtool uses to detect shared libraries,
9338 *** $file_magic_cmd, produces output that libtool cannot recognize.
9339 *** The result is that libtool may fail to recognize shared libraries
9340 *** as such. This will affect the creation of libtool libraries that
9341 *** depend on shared libraries, but programs linked with such libtool
9342 *** libraries will work regardless of this problem. Nevertheless, you
9343 *** may want to report the problem to your system manager and/or to
9344 *** bug-libtool@gnu.org
9345
9346 _LT_EOF
9347 fi ;;
9348 esac
9349 fi
9350 break
9351 fi
9352 done
9353 IFS=$lt_save_ifs
9354 MAGIC_CMD=$lt_save_MAGIC_CMD
9355 ;;
9356 esac
9357 fi
9358
9359 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9360 if test -n "$MAGIC_CMD"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9362 $as_echo "$MAGIC_CMD" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9366 fi
9367
9368
9369 else
9370 MAGIC_CMD=:
9371 fi
9372 fi
9373
9374 fi
9375 ;;
9376 esac
9377
9378 # Use C for the default configuration in the libtool script
9379
9380 lt_save_CC=$CC
9381 ac_ext=c
9382 ac_cpp='$CPP $CPPFLAGS'
9383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9386
9387
9388 # Source file extension for C test sources.
9389 ac_ext=c
9390
9391 # Object file extension for compiled C test sources.
9392 objext=o
9393 objext=$objext
9394
9395 # Code to be used in simple compile tests
9396 lt_simple_compile_test_code="int some_variable = 0;"
9397
9398 # Code to be used in simple link tests
9399 lt_simple_link_test_code='int main(){return(0);}'
9400
9401
9402
9403
9404
9405
9406
9407 # If no C compiler was specified, use CC.
9408 LTCC=${LTCC-"$CC"}
9409
9410 # If no C compiler flags were specified, use CFLAGS.
9411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9412
9413 # Allow CC to be a program name with arguments.
9414 compiler=$CC
9415
9416 # Save the default compiler, since it gets overwritten when the other
9417 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9418 compiler_DEFAULT=$CC
9419
9420 # save warnings/boilerplate of simple test code
9421 ac_outfile=conftest.$ac_objext
9422 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9424 _lt_compiler_boilerplate=`cat conftest.err`
9425 $RM -r conftest*
9426
9427 ac_outfile=conftest.$ac_objext
9428 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9430 _lt_linker_boilerplate=`cat conftest.err`
9431 $RM -r conftest*
9432
9433
9434 ## CAVEAT EMPTOR:
9435 ## There is no encapsulation within the following macros, do not change
9436 ## the running order or otherwise move them around unless you know exactly
9437 ## what you are doing...
9438 if test -n "$compiler"; then
9439
9440 lt_prog_compiler_no_builtin_flag=
9441
9442 if test yes = "$GCC"; then
9443 case $cc_basename in
9444 nvcc*)
9445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9446 *)
9447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9448 esac
9449
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9451 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9452 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 lt_cv_prog_compiler_rtti_exceptions=no
9456 ac_outfile=conftest.$ac_objext
9457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9458 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9459 # Insert the option either (1) after the last *FLAGS variable, or
9460 # (2) before a word containing "conftest.", or (3) at the end.
9461 # Note that $ac_compile itself does not contain backslashes and begins
9462 # with a dollar sign (not a hyphen), so the echo should work correctly.
9463 # The option is referenced via a variable to avoid confusing sed.
9464 lt_compile=`echo "$ac_compile" | $SED \
9465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9467 -e 's:$: $lt_compiler_flag:'`
9468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9469 (eval "$lt_compile" 2>conftest.err)
9470 ac_status=$?
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 if (exit $ac_status) && test -s "$ac_outfile"; then
9474 # The compiler can only warn and ignore the option if not recognized
9475 # So say no if there are warnings other than the usual output.
9476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9479 lt_cv_prog_compiler_rtti_exceptions=yes
9480 fi
9481 fi
9482 $RM -r conftest*
9483
9484 fi
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9486 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9487
9488 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9490 else
9491 :
9492 fi
9493
9494 fi
9495
9496
9497
9498
9499
9500
9501 lt_prog_compiler_wl=
9502 lt_prog_compiler_pic=
9503 lt_prog_compiler_static=
9504
9505
9506 if test yes = "$GCC"; then
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_static='-static'
9509
9510 case $host_os in
9511 aix*)
9512 # All AIX code is PIC.
9513 if test ia64 = "$host_cpu"; then
9514 # AIX 5 now supports IA64 processor
9515 lt_prog_compiler_static='-Bstatic'
9516 fi
9517 lt_prog_compiler_pic='-fPIC'
9518 ;;
9519
9520 amigaos*)
9521 case $host_cpu in
9522 powerpc)
9523 # see comment about AmigaOS4 .so support
9524 lt_prog_compiler_pic='-fPIC'
9525 ;;
9526 m68k)
9527 # FIXME: we need at least 68020 code to build shared libraries, but
9528 # adding the '-m68020' flag to GCC prevents building anything better,
9529 # like '-m68040'.
9530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9531 ;;
9532 esac
9533 ;;
9534
9535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9536 # PIC is the default for these OSes.
9537 ;;
9538
9539 mingw* | cygwin* | pw32* | os2* | cegcc*)
9540 # This hack is so that the source file can tell whether it is being
9541 # built for inclusion in a dll (and should export symbols for example).
9542 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9543 # (--disable-auto-import) libraries
9544 lt_prog_compiler_pic='-DDLL_EXPORT'
9545 case $host_os in
9546 os2*)
9547 lt_prog_compiler_static='$wl-static'
9548 ;;
9549 esac
9550 ;;
9551
9552 darwin* | rhapsody*)
9553 # PIC is the default on this platform
9554 # Common symbols not allowed in MH_DYLIB files
9555 lt_prog_compiler_pic='-fno-common'
9556 ;;
9557
9558 haiku*)
9559 # PIC is the default for Haiku.
9560 # The "-static" flag exists, but is broken.
9561 lt_prog_compiler_static=
9562 ;;
9563
9564 hpux*)
9565 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9566 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9567 # sets the default TLS model and affects inlining.
9568 case $host_cpu in
9569 hppa*64*)
9570 # +Z the default
9571 ;;
9572 *)
9573 lt_prog_compiler_pic='-fPIC'
9574 ;;
9575 esac
9576 ;;
9577
9578 interix[3-9]*)
9579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9580 # Instead, we relocate shared libraries at runtime.
9581 ;;
9582
9583 msdosdjgpp*)
9584 # Just because we use GCC doesn't mean we suddenly get shared libraries
9585 # on systems that don't support them.
9586 lt_prog_compiler_can_build_shared=no
9587 enable_shared=no
9588 ;;
9589
9590 *nto* | *qnx*)
9591 # QNX uses GNU C++, but need to define -shared option too, otherwise
9592 # it will coredump.
9593 lt_prog_compiler_pic='-fPIC -shared'
9594 ;;
9595
9596 sysv4*MP*)
9597 if test -d /usr/nec; then
9598 lt_prog_compiler_pic=-Kconform_pic
9599 fi
9600 ;;
9601
9602 *)
9603 lt_prog_compiler_pic='-fPIC'
9604 ;;
9605 esac
9606
9607 case $cc_basename in
9608 nvcc*) # Cuda Compiler Driver 2.2
9609 lt_prog_compiler_wl='-Xlinker '
9610 if test -n "$lt_prog_compiler_pic"; then
9611 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9612 fi
9613 ;;
9614 esac
9615 else
9616 # PORTME Check for flag to pass linker flags through the system compiler.
9617 case $host_os in
9618 aix*)
9619 lt_prog_compiler_wl='-Wl,'
9620 if test ia64 = "$host_cpu"; then
9621 # AIX 5 now supports IA64 processor
9622 lt_prog_compiler_static='-Bstatic'
9623 else
9624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9625 fi
9626 ;;
9627
9628 darwin* | rhapsody*)
9629 # PIC is the default on this platform
9630 # Common symbols not allowed in MH_DYLIB files
9631 lt_prog_compiler_pic='-fno-common'
9632 case $cc_basename in
9633 nagfor*)
9634 # NAG Fortran compiler
9635 lt_prog_compiler_wl='-Wl,-Wl,,'
9636 lt_prog_compiler_pic='-PIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
9639 esac
9640 ;;
9641
9642 mingw* | cygwin* | pw32* | os2* | cegcc*)
9643 # This hack is so that the source file can tell whether it is being
9644 # built for inclusion in a dll (and should export symbols for example).
9645 lt_prog_compiler_pic='-DDLL_EXPORT'
9646 case $host_os in
9647 os2*)
9648 lt_prog_compiler_static='$wl-static'
9649 ;;
9650 esac
9651 ;;
9652
9653 hpux9* | hpux10* | hpux11*)
9654 lt_prog_compiler_wl='-Wl,'
9655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9656 # not for PA HP-UX.
9657 case $host_cpu in
9658 hppa*64*|ia64*)
9659 # +Z the default
9660 ;;
9661 *)
9662 lt_prog_compiler_pic='+Z'
9663 ;;
9664 esac
9665 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9666 lt_prog_compiler_static='$wl-a ${wl}archive'
9667 ;;
9668
9669 irix5* | irix6* | nonstopux*)
9670 lt_prog_compiler_wl='-Wl,'
9671 # PIC (with -KPIC) is the default.
9672 lt_prog_compiler_static='-non_shared'
9673 ;;
9674
9675 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9676 case $cc_basename in
9677 # old Intel for x86_64, which still supported -KPIC.
9678 ecc*)
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-static'
9682 ;;
9683 # icc used to be incompatible with GCC.
9684 # ICC 10 doesn't accept -KPIC any more.
9685 icc* | ifort*)
9686 lt_prog_compiler_wl='-Wl,'
9687 lt_prog_compiler_pic='-fPIC'
9688 lt_prog_compiler_static='-static'
9689 ;;
9690 # Lahey Fortran 8.1.
9691 lf95*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='--shared'
9694 lt_prog_compiler_static='--static'
9695 ;;
9696 nagfor*)
9697 # NAG Fortran compiler
9698 lt_prog_compiler_wl='-Wl,-Wl,,'
9699 lt_prog_compiler_pic='-PIC'
9700 lt_prog_compiler_static='-Bstatic'
9701 ;;
9702 tcc*)
9703 # Fabrice Bellard et al's Tiny C Compiler
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_pic='-fPIC'
9706 lt_prog_compiler_static='-static'
9707 ;;
9708 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9709 # Portland Group compilers (*not* the Pentium gcc compiler,
9710 # which looks to be a dead project)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_pic='-fpic'
9713 lt_prog_compiler_static='-Bstatic'
9714 ;;
9715 ccc*)
9716 lt_prog_compiler_wl='-Wl,'
9717 # All Alpha code is PIC.
9718 lt_prog_compiler_static='-non_shared'
9719 ;;
9720 xl* | bgxl* | bgf* | mpixl*)
9721 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-qpic'
9724 lt_prog_compiler_static='-qstaticlink'
9725 ;;
9726 *)
9727 case `$CC -V 2>&1 | sed 5q` in
9728 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9729 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9730 lt_prog_compiler_pic='-KPIC'
9731 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_wl=''
9733 ;;
9734 *Sun\ F* | *Sun*Fortran*)
9735 lt_prog_compiler_pic='-KPIC'
9736 lt_prog_compiler_static='-Bstatic'
9737 lt_prog_compiler_wl='-Qoption ld '
9738 ;;
9739 *Sun\ C*)
9740 # Sun C 5.9
9741 lt_prog_compiler_pic='-KPIC'
9742 lt_prog_compiler_static='-Bstatic'
9743 lt_prog_compiler_wl='-Wl,'
9744 ;;
9745 *Intel*\ [CF]*Compiler*)
9746 lt_prog_compiler_wl='-Wl,'
9747 lt_prog_compiler_pic='-fPIC'
9748 lt_prog_compiler_static='-static'
9749 ;;
9750 *Portland\ Group*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-fpic'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755 esac
9756 ;;
9757 esac
9758 ;;
9759
9760 newsos6)
9761 lt_prog_compiler_pic='-KPIC'
9762 lt_prog_compiler_static='-Bstatic'
9763 ;;
9764
9765 *nto* | *qnx*)
9766 # QNX uses GNU C++, but need to define -shared option too, otherwise
9767 # it will coredump.
9768 lt_prog_compiler_pic='-fPIC -shared'
9769 ;;
9770
9771 osf3* | osf4* | osf5*)
9772 lt_prog_compiler_wl='-Wl,'
9773 # All OSF/1 code is PIC.
9774 lt_prog_compiler_static='-non_shared'
9775 ;;
9776
9777 rdos*)
9778 lt_prog_compiler_static='-non_shared'
9779 ;;
9780
9781 solaris*)
9782 lt_prog_compiler_pic='-KPIC'
9783 lt_prog_compiler_static='-Bstatic'
9784 case $cc_basename in
9785 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9786 lt_prog_compiler_wl='-Qoption ld ';;
9787 *)
9788 lt_prog_compiler_wl='-Wl,';;
9789 esac
9790 ;;
9791
9792 sunos4*)
9793 lt_prog_compiler_wl='-Qoption ld '
9794 lt_prog_compiler_pic='-PIC'
9795 lt_prog_compiler_static='-Bstatic'
9796 ;;
9797
9798 sysv4 | sysv4.2uw2* | sysv4.3*)
9799 lt_prog_compiler_wl='-Wl,'
9800 lt_prog_compiler_pic='-KPIC'
9801 lt_prog_compiler_static='-Bstatic'
9802 ;;
9803
9804 sysv4*MP*)
9805 if test -d /usr/nec; then
9806 lt_prog_compiler_pic='-Kconform_pic'
9807 lt_prog_compiler_static='-Bstatic'
9808 fi
9809 ;;
9810
9811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9812 lt_prog_compiler_wl='-Wl,'
9813 lt_prog_compiler_pic='-KPIC'
9814 lt_prog_compiler_static='-Bstatic'
9815 ;;
9816
9817 unicos*)
9818 lt_prog_compiler_wl='-Wl,'
9819 lt_prog_compiler_can_build_shared=no
9820 ;;
9821
9822 uts4*)
9823 lt_prog_compiler_pic='-pic'
9824 lt_prog_compiler_static='-Bstatic'
9825 ;;
9826
9827 *)
9828 lt_prog_compiler_can_build_shared=no
9829 ;;
9830 esac
9831 fi
9832
9833 case $host_os in
9834 # For platforms that do not support PIC, -DPIC is meaningless:
9835 *djgpp*)
9836 lt_prog_compiler_pic=
9837 ;;
9838 *)
9839 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9840 ;;
9841 esac
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9844 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9845 if ${lt_cv_prog_compiler_pic+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9851 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9852 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9853
9854 #
9855 # Check to make sure the PIC flag actually works.
9856 #
9857 if test -n "$lt_prog_compiler_pic"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9859 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9860 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 lt_cv_prog_compiler_pic_works=no
9864 ac_outfile=conftest.$ac_objext
9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 # The option is referenced via a variable to avoid confusing sed.
9872 lt_compile=`echo "$ac_compile" | $SED \
9873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9875 -e 's:$: $lt_compiler_flag:'`
9876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9877 (eval "$lt_compile" 2>conftest.err)
9878 ac_status=$?
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 if (exit $ac_status) && test -s "$ac_outfile"; then
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings other than the usual output.
9884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_pic_works=yes
9888 fi
9889 fi
9890 $RM -r conftest*
9891
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9894 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9895
9896 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9897 case $lt_prog_compiler_pic in
9898 "" | " "*) ;;
9899 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9900 esac
9901 else
9902 lt_prog_compiler_pic=
9903 lt_prog_compiler_can_build_shared=no
9904 fi
9905
9906 fi
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918 #
9919 # Check to make sure the static flag actually works.
9920 #
9921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9923 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9924 if ${lt_cv_prog_compiler_static_works+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 lt_cv_prog_compiler_static_works=no
9928 save_LDFLAGS=$LDFLAGS
9929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9930 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9932 # The linker can only warn and ignore the option if not recognized
9933 # So say no if there are warnings
9934 if test -s conftest.err; then
9935 # Append any errors to the config.log.
9936 cat conftest.err 1>&5
9937 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9939 if diff conftest.exp conftest.er2 >/dev/null; then
9940 lt_cv_prog_compiler_static_works=yes
9941 fi
9942 else
9943 lt_cv_prog_compiler_static_works=yes
9944 fi
9945 fi
9946 $RM -r conftest*
9947 LDFLAGS=$save_LDFLAGS
9948
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9951 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9952
9953 if test yes = "$lt_cv_prog_compiler_static_works"; then
9954 :
9955 else
9956 lt_prog_compiler_static=
9957 fi
9958
9959
9960
9961
9962
9963
9964
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9967 if ${lt_cv_prog_compiler_c_o+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 lt_cv_prog_compiler_c_o=no
9971 $RM -r conftest 2>/dev/null
9972 mkdir conftest
9973 cd conftest
9974 mkdir out
9975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9976
9977 lt_compiler_flag="-o out/conftest2.$ac_objext"
9978 # Insert the option either (1) after the last *FLAGS variable, or
9979 # (2) before a word containing "conftest.", or (3) at the end.
9980 # Note that $ac_compile itself does not contain backslashes and begins
9981 # with a dollar sign (not a hyphen), so the echo should work correctly.
9982 lt_compile=`echo "$ac_compile" | $SED \
9983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9985 -e 's:$: $lt_compiler_flag:'`
9986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9987 (eval "$lt_compile" 2>out/conftest.err)
9988 ac_status=$?
9989 cat out/conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9992 then
9993 # The compiler can only warn and ignore the option if not recognized
9994 # So say no if there are warnings
9995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9998 lt_cv_prog_compiler_c_o=yes
9999 fi
10000 fi
10001 chmod u+w . 2>&5
10002 $RM -r conftest*
10003 # SGI C++ compiler will create directory out/ii_files/ for
10004 # template instantiation
10005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10006 $RM out/* && rmdir out
10007 cd ..
10008 $RM -r conftest
10009 $RM -r conftest*
10010
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10013 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10014
10015
10016
10017
10018
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10022 if ${lt_cv_prog_compiler_c_o+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 lt_cv_prog_compiler_c_o=no
10026 $RM -r conftest 2>/dev/null
10027 mkdir conftest
10028 cd conftest
10029 mkdir out
10030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031
10032 lt_compiler_flag="-o out/conftest2.$ac_objext"
10033 # Insert the option either (1) after the last *FLAGS variable, or
10034 # (2) before a word containing "conftest.", or (3) at the end.
10035 # Note that $ac_compile itself does not contain backslashes and begins
10036 # with a dollar sign (not a hyphen), so the echo should work correctly.
10037 lt_compile=`echo "$ac_compile" | $SED \
10038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040 -e 's:$: $lt_compiler_flag:'`
10041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10042 (eval "$lt_compile" 2>out/conftest.err)
10043 ac_status=$?
10044 cat out/conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10047 then
10048 # The compiler can only warn and ignore the option if not recognized
10049 # So say no if there are warnings
10050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10053 lt_cv_prog_compiler_c_o=yes
10054 fi
10055 fi
10056 chmod u+w . 2>&5
10057 $RM -r conftest*
10058 # SGI C++ compiler will create directory out/ii_files/ for
10059 # template instantiation
10060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10061 $RM out/* && rmdir out
10062 cd ..
10063 $RM -r conftest
10064 $RM -r conftest*
10065
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10069
10070
10071
10072
10073 hard_links=nottested
10074 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10075 # do not overwrite the value of need_locks provided by the user
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10077 $as_echo_n "checking if we can lock with hard links... " >&6; }
10078 hard_links=yes
10079 $RM -r conftest*
10080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081 touch conftest.a
10082 ln conftest.a conftest.b 2>&5 || hard_links=no
10083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10085 $as_echo "$hard_links" >&6; }
10086 if test no = "$hard_links"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10088 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10089 need_locks=warn
10090 fi
10091 else
10092 need_locks=no
10093 fi
10094
10095
10096
10097
10098
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10102
10103 runpath_var=
10104 allow_undefined_flag=
10105 always_export_symbols=no
10106 archive_cmds=
10107 archive_expsym_cmds=
10108 compiler_needs_object=no
10109 enable_shared_with_static_runtimes=no
10110 export_dynamic_flag_spec=
10111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10112 hardcode_automatic=no
10113 hardcode_direct=no
10114 hardcode_direct_absolute=no
10115 hardcode_libdir_flag_spec=
10116 hardcode_libdir_separator=
10117 hardcode_minus_L=no
10118 hardcode_shlibpath_var=unsupported
10119 inherit_rpath=no
10120 link_all_deplibs=unknown
10121 module_cmds=
10122 module_expsym_cmds=
10123 old_archive_from_new_cmds=
10124 old_archive_from_expsyms_cmds=
10125 thread_safe_flag_spec=
10126 whole_archive_flag_spec=
10127 # include_expsyms should be a list of space-separated symbols to be *always*
10128 # included in the symbol list
10129 include_expsyms=
10130 # exclude_expsyms can be an extended regexp of symbols to exclude
10131 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10132 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10133 # as well as any symbol that contains 'd'.
10134 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10135 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10136 # platforms (ab)use it in PIC code, but their linkers get confused if
10137 # the symbol is explicitly referenced. Since portable code cannot
10138 # rely on this symbol name, it's probably fine to never include it in
10139 # preloaded symbol tables.
10140 # Exclude shared library initialization/finalization symbols.
10141 extract_expsyms_cmds=
10142
10143 case $host_os in
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10146 # When not using gcc, we currently assume that we are using
10147 # Microsoft Visual C++.
10148 if test yes != "$GCC"; then
10149 with_gnu_ld=no
10150 fi
10151 ;;
10152 interix*)
10153 # we just hope/assume this is gcc and not c89 (= MSVC++)
10154 with_gnu_ld=yes
10155 ;;
10156 openbsd* | bitrig*)
10157 with_gnu_ld=no
10158 ;;
10159 esac
10160
10161 ld_shlibs=yes
10162
10163 # On some targets, GNU ld is compatible enough with the native linker
10164 # that we're better off using the native interface for both.
10165 lt_use_gnu_ld_interface=no
10166 if test yes = "$with_gnu_ld"; then
10167 case $host_os in
10168 aix*)
10169 # The AIX port of GNU ld has always aspired to compatibility
10170 # with the native linker. However, as the warning in the GNU ld
10171 # block says, versions before 2.19.5* couldn't really create working
10172 # shared libraries, regardless of the interface used.
10173 case `$LD -v 2>&1` in
10174 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10175 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10176 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10177 *)
10178 lt_use_gnu_ld_interface=yes
10179 ;;
10180 esac
10181 ;;
10182 *)
10183 lt_use_gnu_ld_interface=yes
10184 ;;
10185 esac
10186 fi
10187
10188 if test yes = "$lt_use_gnu_ld_interface"; then
10189 # If archive_cmds runs LD, not CC, wlarc should be empty
10190 wlarc='$wl'
10191
10192 # Set some defaults for GNU ld with shared library support. These
10193 # are reset later if shared libraries are not supported. Putting them
10194 # here allows them to be overridden if necessary.
10195 runpath_var=LD_RUN_PATH
10196 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10197 export_dynamic_flag_spec='$wl--export-dynamic'
10198 # ancient GNU ld didn't support --whole-archive et. al.
10199 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10200 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10201 else
10202 whole_archive_flag_spec=
10203 fi
10204 supports_anon_versioning=no
10205 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10206 *GNU\ gold*) supports_anon_versioning=yes ;;
10207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10210 *\ 2.11.*) ;; # other 2.11 versions
10211 *) supports_anon_versioning=yes ;;
10212 esac
10213
10214 # See if GNU ld supports shared libraries.
10215 case $host_os in
10216 aix[3-9]*)
10217 # On AIX/PPC, the GNU linker is very broken
10218 if test ia64 != "$host_cpu"; then
10219 ld_shlibs=no
10220 cat <<_LT_EOF 1>&2
10221
10222 *** Warning: the GNU linker, at least up to release 2.19, is reported
10223 *** to be unable to reliably create shared libraries on AIX.
10224 *** Therefore, libtool is disabling shared libraries support. If you
10225 *** really care for shared libraries, you may want to install binutils
10226 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10227 *** You will then need to restart the configuration process.
10228
10229 _LT_EOF
10230 fi
10231 ;;
10232
10233 amigaos*)
10234 case $host_cpu in
10235 powerpc)
10236 # see comment about AmigaOS4 .so support
10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10238 archive_expsym_cmds=''
10239 ;;
10240 m68k)
10241 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)'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_minus_L=yes
10244 ;;
10245 esac
10246 ;;
10247
10248 beos*)
10249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250 allow_undefined_flag=unsupported
10251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10252 # support --undefined. This deserves some investigation. FIXME
10253 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10254 else
10255 ld_shlibs=no
10256 fi
10257 ;;
10258
10259 cygwin* | mingw* | pw32* | cegcc*)
10260 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10261 # as there is no search path for DLLs.
10262 hardcode_libdir_flag_spec='-L$libdir'
10263 export_dynamic_flag_spec='$wl--export-all-symbols'
10264 allow_undefined_flag=unsupported
10265 always_export_symbols=no
10266 enable_shared_with_static_runtimes=yes
10267 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'
10268 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10269
10270 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10272 # If the export-symbols file already is a .def file, use it as
10273 # is; otherwise, prepend EXPORTS...
10274 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10275 cp $export_symbols $output_objdir/$soname.def;
10276 else
10277 echo EXPORTS > $output_objdir/$soname.def;
10278 cat $export_symbols >> $output_objdir/$soname.def;
10279 fi~
10280 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10281 else
10282 ld_shlibs=no
10283 fi
10284 ;;
10285
10286 haiku*)
10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10288 link_all_deplibs=yes
10289 ;;
10290
10291 os2*)
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_minus_L=yes
10294 allow_undefined_flag=unsupported
10295 shrext_cmds=.dll
10296 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10297 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10298 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10299 $ECHO EXPORTS >> $output_objdir/$libname.def~
10300 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10301 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10302 emximp -o $lib $output_objdir/$libname.def'
10303 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10304 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10305 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10306 $ECHO EXPORTS >> $output_objdir/$libname.def~
10307 prefix_cmds="$SED"~
10308 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10309 prefix_cmds="$prefix_cmds -e 1d";
10310 fi~
10311 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10312 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10313 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10314 emximp -o $lib $output_objdir/$libname.def'
10315 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10316 enable_shared_with_static_runtimes=yes
10317 ;;
10318
10319 interix[3-9]*)
10320 hardcode_direct=no
10321 hardcode_shlibpath_var=no
10322 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10323 export_dynamic_flag_spec='$wl-E'
10324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10325 # Instead, shared libraries are loaded at an image base (0x10000000 by
10326 # default) and relocated if they conflict, which is a slow very memory
10327 # consuming and fragmenting process. To avoid this, we pick a random,
10328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10331 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'
10332 ;;
10333
10334 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10335 tmp_diet=no
10336 if test linux-dietlibc = "$host_os"; then
10337 case $cc_basename in
10338 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10339 esac
10340 fi
10341 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10342 && test no = "$tmp_diet"
10343 then
10344 tmp_addflag=' $pic_flag'
10345 tmp_sharedflag='-shared'
10346 case $cc_basename,$host_cpu in
10347 pgcc*) # Portland Group C compiler
10348 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'
10349 tmp_addflag=' $pic_flag'
10350 ;;
10351 pgf77* | pgf90* | pgf95* | pgfortran*)
10352 # Portland Group f77 and f90 compilers
10353 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'
10354 tmp_addflag=' $pic_flag -Mnomain' ;;
10355 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10356 tmp_addflag=' -i_dynamic' ;;
10357 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10358 tmp_addflag=' -i_dynamic -nofor_main' ;;
10359 ifc* | ifort*) # Intel Fortran compiler
10360 tmp_addflag=' -nofor_main' ;;
10361 lf95*) # Lahey Fortran 8.1
10362 whole_archive_flag_spec=
10363 tmp_sharedflag='--shared' ;;
10364 nagfor*) # NAGFOR 5.3
10365 tmp_sharedflag='-Wl,-shared' ;;
10366 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10367 tmp_sharedflag='-qmkshrobj'
10368 tmp_addflag= ;;
10369 nvcc*) # Cuda Compiler Driver 2.2
10370 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'
10371 compiler_needs_object=yes
10372 ;;
10373 esac
10374 case `$CC -V 2>&1 | sed 5q` in
10375 *Sun\ C*) # Sun C 5.9
10376 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'
10377 compiler_needs_object=yes
10378 tmp_sharedflag='-G' ;;
10379 *Sun\ F*) # Sun Fortran 8.3
10380 tmp_sharedflag='-G' ;;
10381 esac
10382 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10383
10384 if test yes = "$supports_anon_versioning"; then
10385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10387 echo "local: *; };" >> $output_objdir/$libname.ver~
10388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10389 fi
10390
10391 case $cc_basename in
10392 tcc*)
10393 export_dynamic_flag_spec='-rdynamic'
10394 ;;
10395 xlf* | bgf* | bgxlf* | mpixlf*)
10396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10399 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10400 if test yes = "$supports_anon_versioning"; then
10401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10403 echo "local: *; };" >> $output_objdir/$libname.ver~
10404 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10405 fi
10406 ;;
10407 esac
10408 else
10409 ld_shlibs=no
10410 fi
10411 ;;
10412
10413 netbsd*)
10414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10416 wlarc=
10417 else
10418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10419 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10420 fi
10421 ;;
10422
10423 solaris*)
10424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10425 ld_shlibs=no
10426 cat <<_LT_EOF 1>&2
10427
10428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10429 *** create shared libraries on Solaris systems. Therefore, libtool
10430 *** is disabling shared libraries support. We urge you to upgrade GNU
10431 *** binutils to release 2.9.1 or newer. Another option is to modify
10432 *** your PATH or compiler configuration so that the native linker is
10433 *** used, and then restart.
10434
10435 _LT_EOF
10436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10439 else
10440 ld_shlibs=no
10441 fi
10442 ;;
10443
10444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10445 case `$LD -v 2>&1` in
10446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10447 ld_shlibs=no
10448 cat <<_LT_EOF 1>&2
10449
10450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10451 *** reliably create shared libraries on SCO systems. Therefore, libtool
10452 *** is disabling shared libraries support. We urge you to upgrade GNU
10453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10454 *** your PATH or compiler configuration so that the native linker is
10455 *** used, and then restart.
10456
10457 _LT_EOF
10458 ;;
10459 *)
10460 # For security reasons, it is highly recommended that you always
10461 # use absolute paths for naming shared libraries, and exclude the
10462 # DT_RUNPATH tag from executables and libraries. But doing so
10463 # requires that you compile everything twice, which is a pain.
10464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10465 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10468 else
10469 ld_shlibs=no
10470 fi
10471 ;;
10472 esac
10473 ;;
10474
10475 sunos4*)
10476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10477 wlarc=
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10480 ;;
10481
10482 *)
10483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10485 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10486 else
10487 ld_shlibs=no
10488 fi
10489 ;;
10490 esac
10491
10492 if test no = "$ld_shlibs"; then
10493 runpath_var=
10494 hardcode_libdir_flag_spec=
10495 export_dynamic_flag_spec=
10496 whole_archive_flag_spec=
10497 fi
10498 else
10499 # PORTME fill in a description of your system's linker (not GNU ld)
10500 case $host_os in
10501 aix3*)
10502 allow_undefined_flag=unsupported
10503 always_export_symbols=yes
10504 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'
10505 # Note: this linker hardcodes the directories in LIBPATH if there
10506 # are no directories specified by -L.
10507 hardcode_minus_L=yes
10508 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10509 # Neither direct hardcoding nor static linking is supported with a
10510 # broken collect2.
10511 hardcode_direct=unsupported
10512 fi
10513 ;;
10514
10515 aix[4-9]*)
10516 if test ia64 = "$host_cpu"; then
10517 # On IA64, the linker does run time linking by default, so we don't
10518 # have to do anything special.
10519 aix_use_runtimelinking=no
10520 exp_sym_flag='-Bexport'
10521 no_entry_flag=
10522 else
10523 # If we're using GNU nm, then we don't want the "-C" option.
10524 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10525 # Without the "-l" option, or with the "-B" option, AIX nm treats
10526 # weak defined symbols like other global defined symbols, whereas
10527 # GNU nm marks them as "W".
10528 # While the 'weak' keyword is ignored in the Export File, we need
10529 # it in the Import File for the 'aix-soname' feature, so we have
10530 # to replace the "-B" option with "-P" for AIX nm.
10531 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10532 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'
10533 else
10534 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'
10535 fi
10536 aix_use_runtimelinking=no
10537
10538 # Test if we are trying to use run time linking or normal
10539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10540 # have runtime linking enabled, and use it for executables.
10541 # For shared libraries, we enable/disable runtime linking
10542 # depending on the kind of the shared library created -
10543 # when "with_aix_soname,aix_use_runtimelinking" is:
10544 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10545 # "aix,yes" lib.so shared, rtl:yes, for executables
10546 # lib.a static archive
10547 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10548 # lib.a(lib.so.V) shared, rtl:no, for executables
10549 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10550 # lib.a(lib.so.V) shared, rtl:no
10551 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10552 # lib.a static archive
10553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10554 for ld_flag in $LDFLAGS; do
10555 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10556 aix_use_runtimelinking=yes
10557 break
10558 fi
10559 done
10560 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10561 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10562 # so we don't have lib.a shared libs to link our executables.
10563 # We have to force runtime linking in this case.
10564 aix_use_runtimelinking=yes
10565 LDFLAGS="$LDFLAGS -Wl,-brtl"
10566 fi
10567 ;;
10568 esac
10569
10570 exp_sym_flag='-bexport'
10571 no_entry_flag='-bnoentry'
10572 fi
10573
10574 # When large executables or shared objects are built, AIX ld can
10575 # have problems creating the table of contents. If linking a library
10576 # or program results in "error TOC overflow" add -mminimal-toc to
10577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10579
10580 archive_cmds=''
10581 hardcode_direct=yes
10582 hardcode_direct_absolute=yes
10583 hardcode_libdir_separator=':'
10584 link_all_deplibs=yes
10585 file_list_spec='$wl-f,'
10586 case $with_aix_soname,$aix_use_runtimelinking in
10587 aix,*) ;; # traditional, no import file
10588 svr4,* | *,yes) # use import file
10589 # The Import File defines what to hardcode.
10590 hardcode_direct=no
10591 hardcode_direct_absolute=no
10592 ;;
10593 esac
10594
10595 if test yes = "$GCC"; then
10596 case $host_os in aix4.[012]|aix4.[012].*)
10597 # We only want to do this on AIX 4.2 and lower, the check
10598 # below for broken collect2 doesn't work under 4.3+
10599 collect2name=`$CC -print-prog-name=collect2`
10600 if test -f "$collect2name" &&
10601 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10602 then
10603 # We have reworked collect2
10604 :
10605 else
10606 # We have old collect2
10607 hardcode_direct=unsupported
10608 # It fails to find uninstalled libraries when the uninstalled
10609 # path is not listed in the libpath. Setting hardcode_minus_L
10610 # to unsupported forces relinking
10611 hardcode_minus_L=yes
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_libdir_separator=
10614 fi
10615 ;;
10616 esac
10617 shared_flag='-shared'
10618 if test yes = "$aix_use_runtimelinking"; then
10619 shared_flag="$shared_flag "'$wl-G'
10620 fi
10621 # Need to ensure runtime linking is disabled for the traditional
10622 # shared library, or the linker may eventually find shared libraries
10623 # /with/ Import File - we do not want to mix them.
10624 shared_flag_aix='-shared'
10625 shared_flag_svr4='-shared $wl-G'
10626 else
10627 # not using gcc
10628 if test ia64 = "$host_cpu"; then
10629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10630 # chokes on -Wl,-G. The following line is correct:
10631 shared_flag='-G'
10632 else
10633 if test yes = "$aix_use_runtimelinking"; then
10634 shared_flag='$wl-G'
10635 else
10636 shared_flag='$wl-bM:SRE'
10637 fi
10638 shared_flag_aix='$wl-bM:SRE'
10639 shared_flag_svr4='$wl-G'
10640 fi
10641 fi
10642
10643 export_dynamic_flag_spec='$wl-bexpall'
10644 # It seems that -bexpall does not export symbols beginning with
10645 # underscore (_), so it is better to generate a list of symbols to export.
10646 always_export_symbols=yes
10647 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10648 # Warning - without using the other runtime loading flags (-brtl),
10649 # -berok will link without error, but may produce a broken library.
10650 allow_undefined_flag='-berok'
10651 # Determine the default libpath from the value encoded in an
10652 # empty executable.
10653 if test set = "${lt_cv_aix_libpath+set}"; then
10654 aix_libpath=$lt_cv_aix_libpath
10655 else
10656 if ${lt_cv_aix_libpath_+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661
10662 int
10663 main ()
10664 {
10665
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671
10672 lt_aix_libpath_sed='
10673 /Import File Strings/,/^$/ {
10674 /^0/ {
10675 s/^0 *\([^ ]*\) *$/\1/
10676 p
10677 }
10678 }'
10679 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 # Check for a 64-bit object if we didn't find anything.
10681 if test -z "$lt_cv_aix_libpath_"; then
10682 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 fi
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 if test -z "$lt_cv_aix_libpath_"; then
10688 lt_cv_aix_libpath_=/usr/lib:/lib
10689 fi
10690
10691 fi
10692
10693 aix_libpath=$lt_cv_aix_libpath_
10694 fi
10695
10696 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10697 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
10698 else
10699 if test ia64 = "$host_cpu"; then
10700 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10701 allow_undefined_flag="-z nodefs"
10702 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"
10703 else
10704 # Determine the default libpath from the value encoded in an
10705 # empty executable.
10706 if test set = "${lt_cv_aix_libpath+set}"; then
10707 aix_libpath=$lt_cv_aix_libpath
10708 else
10709 if ${lt_cv_aix_libpath_+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714
10715 int
10716 main ()
10717 {
10718
10719 ;
10720 return 0;
10721 }
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724
10725 lt_aix_libpath_sed='
10726 /Import File Strings/,/^$/ {
10727 /^0/ {
10728 s/^0 *\([^ ]*\) *$/\1/
10729 p
10730 }
10731 }'
10732 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 # Check for a 64-bit object if we didn't find anything.
10734 if test -z "$lt_cv_aix_libpath_"; then
10735 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 fi
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 if test -z "$lt_cv_aix_libpath_"; then
10741 lt_cv_aix_libpath_=/usr/lib:/lib
10742 fi
10743
10744 fi
10745
10746 aix_libpath=$lt_cv_aix_libpath_
10747 fi
10748
10749 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10750 # Warning - without using the other run time loading flags,
10751 # -berok will link without error, but may produce a broken library.
10752 no_undefined_flag=' $wl-bernotok'
10753 allow_undefined_flag=' $wl-berok'
10754 if test yes = "$with_gnu_ld"; then
10755 # We only use this code for GNU lds that support --whole-archive.
10756 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10757 else
10758 # Exported symbols can be pulled into shared objects from archives
10759 whole_archive_flag_spec='$convenience'
10760 fi
10761 archive_cmds_need_lc=yes
10762 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10763 # -brtl affects multiple linker settings, -berok does not and is overridden later
10764 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10765 if test svr4 != "$with_aix_soname"; then
10766 # This is similar to how AIX traditionally builds its shared libraries.
10767 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'
10768 fi
10769 if test aix != "$with_aix_soname"; then
10770 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'
10771 else
10772 # used by -dlpreopen to get the symbols
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10774 fi
10775 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10776 fi
10777 fi
10778 ;;
10779
10780 amigaos*)
10781 case $host_cpu in
10782 powerpc)
10783 # see comment about AmigaOS4 .so support
10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10785 archive_expsym_cmds=''
10786 ;;
10787 m68k)
10788 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)'
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_minus_L=yes
10791 ;;
10792 esac
10793 ;;
10794
10795 bsdi[45]*)
10796 export_dynamic_flag_spec=-rdynamic
10797 ;;
10798
10799 cygwin* | mingw* | pw32* | cegcc*)
10800 # When not using gcc, we currently assume that we are using
10801 # Microsoft Visual C++.
10802 # hardcode_libdir_flag_spec is actually meaningless, as there is
10803 # no search path for DLLs.
10804 case $cc_basename in
10805 cl*)
10806 # Native MSVC
10807 hardcode_libdir_flag_spec=' '
10808 allow_undefined_flag=unsupported
10809 always_export_symbols=yes
10810 file_list_spec='@'
10811 # Tell ltmain to make .lib files, not .a files.
10812 libext=lib
10813 # Tell ltmain to make .dll files, not .so files.
10814 shrext_cmds=.dll
10815 # FIXME: Setting linknames here is a bad hack.
10816 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10817 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10818 cp "$export_symbols" "$output_objdir/$soname.def";
10819 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10820 else
10821 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10822 fi~
10823 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10824 linknames='
10825 # The linker will not automatically build a static lib if we build a DLL.
10826 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10827 enable_shared_with_static_runtimes=yes
10828 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10830 # Don't use ranlib
10831 old_postinstall_cmds='chmod 644 $oldlib'
10832 postlink_cmds='lt_outputfile="@OUTPUT@"~
10833 lt_tool_outputfile="@TOOL_OUTPUT@"~
10834 case $lt_outputfile in
10835 *.exe|*.EXE) ;;
10836 *)
10837 lt_outputfile=$lt_outputfile.exe
10838 lt_tool_outputfile=$lt_tool_outputfile.exe
10839 ;;
10840 esac~
10841 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10842 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10843 $RM "$lt_outputfile.manifest";
10844 fi'
10845 ;;
10846 *)
10847 # Assume MSVC wrapper
10848 hardcode_libdir_flag_spec=' '
10849 allow_undefined_flag=unsupported
10850 # Tell ltmain to make .lib files, not .a files.
10851 libext=lib
10852 # Tell ltmain to make .dll files, not .so files.
10853 shrext_cmds=.dll
10854 # FIXME: Setting linknames here is a bad hack.
10855 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10856 # The linker will automatically build a .lib file if we build a DLL.
10857 old_archive_from_new_cmds='true'
10858 # FIXME: Should let the user specify the lib program.
10859 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10860 enable_shared_with_static_runtimes=yes
10861 ;;
10862 esac
10863 ;;
10864
10865 darwin* | rhapsody*)
10866
10867
10868 archive_cmds_need_lc=no
10869 hardcode_direct=no
10870 hardcode_automatic=yes
10871 hardcode_shlibpath_var=unsupported
10872 if test yes = "$lt_cv_ld_force_load"; then
10873 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\"`'
10874
10875 else
10876 whole_archive_flag_spec=''
10877 fi
10878 link_all_deplibs=yes
10879 allow_undefined_flag=$_lt_dar_allow_undefined
10880 case $cc_basename in
10881 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10882 *) _lt_dar_can_shared=$GCC ;;
10883 esac
10884 if test yes = "$_lt_dar_can_shared"; then
10885 output_verbose_link_cmd=func_echo_all
10886 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10887 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10888 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"
10889 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"
10890
10891 else
10892 ld_shlibs=no
10893 fi
10894
10895 ;;
10896
10897 dgux*)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_shlibpath_var=no
10901 ;;
10902
10903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10904 # support. Future versions do this automatically, but an explicit c++rt0.o
10905 # does not break anything, and helps significantly (at the cost of a little
10906 # extra space).
10907 freebsd2.2*)
10908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10909 hardcode_libdir_flag_spec='-R$libdir'
10910 hardcode_direct=yes
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10915 freebsd2.*)
10916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_direct=yes
10918 hardcode_minus_L=yes
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10923 freebsd* | dragonfly*)
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 hpux9*)
10931 if test yes = "$GCC"; then
10932 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'
10933 else
10934 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'
10935 fi
10936 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10937 hardcode_libdir_separator=:
10938 hardcode_direct=yes
10939
10940 # hardcode_minus_L: Not really in the search PATH,
10941 # but as the default location of the library.
10942 hardcode_minus_L=yes
10943 export_dynamic_flag_spec='$wl-E'
10944 ;;
10945
10946 hpux10*)
10947 if test yes,no = "$GCC,$with_gnu_ld"; then
10948 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10949 else
10950 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10951 fi
10952 if test no = "$with_gnu_ld"; then
10953 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10954 hardcode_libdir_separator=:
10955 hardcode_direct=yes
10956 hardcode_direct_absolute=yes
10957 export_dynamic_flag_spec='$wl-E'
10958 # hardcode_minus_L: Not really in the search PATH,
10959 # but as the default location of the library.
10960 hardcode_minus_L=yes
10961 fi
10962 ;;
10963
10964 hpux11*)
10965 if test yes,no = "$GCC,$with_gnu_ld"; then
10966 case $host_cpu in
10967 hppa*64*)
10968 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 ia64*)
10971 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10972 ;;
10973 *)
10974 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10975 ;;
10976 esac
10977 else
10978 case $host_cpu in
10979 hppa*64*)
10980 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 ;;
10982 ia64*)
10983 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10984 ;;
10985 *)
10986
10987 # Older versions of the 11.00 compiler do not understand -b yet
10988 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10990 $as_echo_n "checking if $CC understands -b... " >&6; }
10991 if ${lt_cv_prog_compiler__b+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 lt_cv_prog_compiler__b=no
10995 save_LDFLAGS=$LDFLAGS
10996 LDFLAGS="$LDFLAGS -b"
10997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10999 # The linker can only warn and ignore the option if not recognized
11000 # So say no if there are warnings
11001 if test -s conftest.err; then
11002 # Append any errors to the config.log.
11003 cat conftest.err 1>&5
11004 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11006 if diff conftest.exp conftest.er2 >/dev/null; then
11007 lt_cv_prog_compiler__b=yes
11008 fi
11009 else
11010 lt_cv_prog_compiler__b=yes
11011 fi
11012 fi
11013 $RM -r conftest*
11014 LDFLAGS=$save_LDFLAGS
11015
11016 fi
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11018 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11019
11020 if test yes = "$lt_cv_prog_compiler__b"; then
11021 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11022 else
11023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11024 fi
11025
11026 ;;
11027 esac
11028 fi
11029 if test no = "$with_gnu_ld"; then
11030 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11031 hardcode_libdir_separator=:
11032
11033 case $host_cpu in
11034 hppa*64*|ia64*)
11035 hardcode_direct=no
11036 hardcode_shlibpath_var=no
11037 ;;
11038 *)
11039 hardcode_direct=yes
11040 hardcode_direct_absolute=yes
11041 export_dynamic_flag_spec='$wl-E'
11042
11043 # hardcode_minus_L: Not really in the search PATH,
11044 # but as the default location of the library.
11045 hardcode_minus_L=yes
11046 ;;
11047 esac
11048 fi
11049 ;;
11050
11051 irix5* | irix6* | nonstopux*)
11052 if test yes = "$GCC"; then
11053 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'
11054 # Try to use the -exported_symbol ld option, if it does not
11055 # work, assume that -exports_file does not work either and
11056 # implicitly export all symbols.
11057 # This should be the same for all languages, so no per-tag cache variable.
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11059 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11060 if ${lt_cv_irix_exported_symbol+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 save_LDFLAGS=$LDFLAGS
11064 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067 int foo (void) { return 0; }
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 lt_cv_irix_exported_symbol=yes
11071 else
11072 lt_cv_irix_exported_symbol=no
11073 fi
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LDFLAGS=$save_LDFLAGS
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11079 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11080 if test yes = "$lt_cv_irix_exported_symbol"; then
11081 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'
11082 fi
11083 else
11084 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'
11085 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'
11086 fi
11087 archive_cmds_need_lc='no'
11088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11089 hardcode_libdir_separator=:
11090 inherit_rpath=yes
11091 link_all_deplibs=yes
11092 ;;
11093
11094 linux*)
11095 case $cc_basename in
11096 tcc*)
11097 # Fabrice Bellard et al's Tiny C Compiler
11098 ld_shlibs=yes
11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11100 ;;
11101 esac
11102 ;;
11103
11104 netbsd*)
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11107 else
11108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11109 fi
11110 hardcode_libdir_flag_spec='-R$libdir'
11111 hardcode_direct=yes
11112 hardcode_shlibpath_var=no
11113 ;;
11114
11115 newsos6)
11116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117 hardcode_direct=yes
11118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11119 hardcode_libdir_separator=:
11120 hardcode_shlibpath_var=no
11121 ;;
11122
11123 *nto* | *qnx*)
11124 ;;
11125
11126 openbsd* | bitrig*)
11127 if test -f /usr/libexec/ld.so; then
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11130 hardcode_direct_absolute=yes
11131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11134 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11135 export_dynamic_flag_spec='$wl-E'
11136 else
11137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11139 fi
11140 else
11141 ld_shlibs=no
11142 fi
11143 ;;
11144
11145 os2*)
11146 hardcode_libdir_flag_spec='-L$libdir'
11147 hardcode_minus_L=yes
11148 allow_undefined_flag=unsupported
11149 shrext_cmds=.dll
11150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11153 $ECHO EXPORTS >> $output_objdir/$libname.def~
11154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11156 emximp -o $lib $output_objdir/$libname.def'
11157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11160 $ECHO EXPORTS >> $output_objdir/$libname.def~
11161 prefix_cmds="$SED"~
11162 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11163 prefix_cmds="$prefix_cmds -e 1d";
11164 fi~
11165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11168 emximp -o $lib $output_objdir/$libname.def'
11169 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11170 enable_shared_with_static_runtimes=yes
11171 ;;
11172
11173 osf3*)
11174 if test yes = "$GCC"; then
11175 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11176 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'
11177 else
11178 allow_undefined_flag=' -expect_unresolved \*'
11179 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'
11180 fi
11181 archive_cmds_need_lc='no'
11182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11183 hardcode_libdir_separator=:
11184 ;;
11185
11186 osf4* | osf5*) # as osf3* with the addition of -msym flag
11187 if test yes = "$GCC"; then
11188 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11189 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'
11190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11191 else
11192 allow_undefined_flag=' -expect_unresolved \*'
11193 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'
11194 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~
11195 $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'
11196
11197 # Both c and cxx compiler support -rpath directly
11198 hardcode_libdir_flag_spec='-rpath $libdir'
11199 fi
11200 archive_cmds_need_lc='no'
11201 hardcode_libdir_separator=:
11202 ;;
11203
11204 solaris*)
11205 no_undefined_flag=' -z defs'
11206 if test yes = "$GCC"; then
11207 wlarc='$wl'
11208 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11210 $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'
11211 else
11212 case `$CC -V 2>&1` in
11213 *"Compilers 5.0"*)
11214 wlarc=''
11215 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11217 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11218 ;;
11219 *)
11220 wlarc='$wl'
11221 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11223 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11224 ;;
11225 esac
11226 fi
11227 hardcode_libdir_flag_spec='-R$libdir'
11228 hardcode_shlibpath_var=no
11229 case $host_os in
11230 solaris2.[0-5] | solaris2.[0-5].*) ;;
11231 *)
11232 # The compiler driver will combine and reorder linker options,
11233 # but understands '-z linker_flag'. GCC discards it without '$wl',
11234 # but is careful enough not to reorder.
11235 # Supported since Solaris 2.6 (maybe 2.5.1?)
11236 if test yes = "$GCC"; then
11237 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11238 else
11239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11240 fi
11241 ;;
11242 esac
11243 link_all_deplibs=yes
11244 ;;
11245
11246 sunos4*)
11247 if test sequent = "$host_vendor"; then
11248 # Use $CC to link under sequent, because it throws in some extra .o
11249 # files that make .init and .fini sections work.
11250 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11251 else
11252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11253 fi
11254 hardcode_libdir_flag_spec='-L$libdir'
11255 hardcode_direct=yes
11256 hardcode_minus_L=yes
11257 hardcode_shlibpath_var=no
11258 ;;
11259
11260 sysv4)
11261 case $host_vendor in
11262 sni)
11263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264 hardcode_direct=yes # is this really true???
11265 ;;
11266 siemens)
11267 ## LD is ld it makes a PLAMLIB
11268 ## CC just makes a GrossModule.
11269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11270 reload_cmds='$CC -r -o $output$reload_objs'
11271 hardcode_direct=no
11272 ;;
11273 motorola)
11274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11276 ;;
11277 esac
11278 runpath_var='LD_RUN_PATH'
11279 hardcode_shlibpath_var=no
11280 ;;
11281
11282 sysv4.3*)
11283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11284 hardcode_shlibpath_var=no
11285 export_dynamic_flag_spec='-Bexport'
11286 ;;
11287
11288 sysv4*MP*)
11289 if test -d /usr/nec; then
11290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_shlibpath_var=no
11292 runpath_var=LD_RUN_PATH
11293 hardcode_runpath_var=yes
11294 ld_shlibs=yes
11295 fi
11296 ;;
11297
11298 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11299 no_undefined_flag='$wl-z,text'
11300 archive_cmds_need_lc=no
11301 hardcode_shlibpath_var=no
11302 runpath_var='LD_RUN_PATH'
11303
11304 if test yes = "$GCC"; then
11305 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 else
11308 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 fi
11311 ;;
11312
11313 sysv5* | sco3.2v5* | sco5v6*)
11314 # Note: We CANNOT use -z defs as we might desire, because we do not
11315 # link with -lc, and that would cause any symbols used from libc to
11316 # always be unresolved, which means just about no library would
11317 # ever link correctly. If we're not using GNU ld we use -z text
11318 # though, which does catch some bad symbols but isn't as heavy-handed
11319 # as -z defs.
11320 no_undefined_flag='$wl-z,text'
11321 allow_undefined_flag='$wl-z,nodefs'
11322 archive_cmds_need_lc=no
11323 hardcode_shlibpath_var=no
11324 hardcode_libdir_flag_spec='$wl-R,$libdir'
11325 hardcode_libdir_separator=':'
11326 link_all_deplibs=yes
11327 export_dynamic_flag_spec='$wl-Bexport'
11328 runpath_var='LD_RUN_PATH'
11329
11330 if test yes = "$GCC"; then
11331 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 else
11334 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 fi
11337 ;;
11338
11339 uts4*)
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_shlibpath_var=no
11343 ;;
11344
11345 *)
11346 ld_shlibs=no
11347 ;;
11348 esac
11349
11350 if test sni = "$host_vendor"; then
11351 case $host in
11352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11353 export_dynamic_flag_spec='$wl-Blargedynsym'
11354 ;;
11355 esac
11356 fi
11357 fi
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11360 $as_echo "$ld_shlibs" >&6; }
11361 test no = "$ld_shlibs" && can_build_shared=no
11362
11363 with_gnu_ld=$with_gnu_ld
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379 #
11380 # Do we need to explicitly link libc?
11381 #
11382 case "x$archive_cmds_need_lc" in
11383 x|xyes)
11384 # Assume -lc should be added
11385 archive_cmds_need_lc=yes
11386
11387 if test yes,yes = "$GCC,$enable_shared"; then
11388 case $archive_cmds in
11389 *'~'*)
11390 # FIXME: we may have to deal with multi-command sequences.
11391 ;;
11392 '$CC '*)
11393 # Test whether the compiler implicitly links with -lc since on some
11394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11395 # to ld, don't add -lc before -lgcc.
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11397 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11398 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 $RM -r conftest*
11402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11403
11404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11405 (eval $ac_compile) 2>&5
11406 ac_status=$?
11407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11408 test $ac_status = 0; } 2>conftest.err; then
11409 soname=conftest
11410 lib=conftest
11411 libobjs=conftest.$ac_objext
11412 deplibs=
11413 wl=$lt_prog_compiler_wl
11414 pic_flag=$lt_prog_compiler_pic
11415 compiler_flags=-v
11416 linker_flags=-v
11417 verstring=
11418 output_objdir=.
11419 libname=conftest
11420 lt_save_allow_undefined_flag=$allow_undefined_flag
11421 allow_undefined_flag=
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11423 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11424 ac_status=$?
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }
11427 then
11428 lt_cv_archive_cmds_need_lc=no
11429 else
11430 lt_cv_archive_cmds_need_lc=yes
11431 fi
11432 allow_undefined_flag=$lt_save_allow_undefined_flag
11433 else
11434 cat conftest.err 1>&5
11435 fi
11436 $RM -r conftest*
11437
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11440 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11441 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11442 ;;
11443 esac
11444 fi
11445 ;;
11446 esac
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11601
11602 if test yes = "$GCC"; then
11603 case $host_os in
11604 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11605 *) lt_awk_arg='/^libraries:/' ;;
11606 esac
11607 case $host_os in
11608 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11609 *) lt_sed_strip_eq='s|=/|/|g' ;;
11610 esac
11611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11612 case $lt_search_path_spec in
11613 *\;*)
11614 # if the path contains ";" then we assume it to be the separator
11615 # otherwise default to the standard path separator (i.e. ":") - it is
11616 # assumed that no part of a normal pathname contains ";" but that should
11617 # okay in the real world where ";" in dirpaths is itself problematic.
11618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11619 ;;
11620 *)
11621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11622 ;;
11623 esac
11624 # Ok, now we have the path, separated by spaces, we can step through it
11625 # and add multilib dir if necessary...
11626 lt_tmp_lt_search_path_spec=
11627 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11628 # ...but if some path component already ends with the multilib dir we assume
11629 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11630 case "$lt_multi_os_dir; $lt_search_path_spec " in
11631 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11632 lt_multi_os_dir=
11633 ;;
11634 esac
11635 for lt_sys_path in $lt_search_path_spec; do
11636 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11638 elif test -n "$lt_multi_os_dir"; then
11639 test -d "$lt_sys_path" && \
11640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11641 fi
11642 done
11643 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11644 BEGIN {RS = " "; FS = "/|\n";} {
11645 lt_foo = "";
11646 lt_count = 0;
11647 for (lt_i = NF; lt_i > 0; lt_i--) {
11648 if ($lt_i != "" && $lt_i != ".") {
11649 if ($lt_i == "..") {
11650 lt_count++;
11651 } else {
11652 if (lt_count == 0) {
11653 lt_foo = "/" $lt_i lt_foo;
11654 } else {
11655 lt_count--;
11656 }
11657 }
11658 }
11659 }
11660 if (lt_foo != "") { lt_freq[lt_foo]++; }
11661 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11662 }'`
11663 # AWK program above erroneously prepends '/' to C:/dos/paths
11664 # for these hosts.
11665 case $host_os in
11666 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11667 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11668 esac
11669 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11670 else
11671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11672 fi
11673 library_names_spec=
11674 libname_spec='lib$name'
11675 soname_spec=
11676 shrext_cmds=.so
11677 postinstall_cmds=
11678 postuninstall_cmds=
11679 finish_cmds=
11680 finish_eval=
11681 shlibpath_var=
11682 shlibpath_overrides_runpath=unknown
11683 version_type=none
11684 dynamic_linker="$host_os ld.so"
11685 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11686 need_lib_prefix=unknown
11687 hardcode_into_libs=no
11688
11689 # when you set need_version to no, make sure it does not cause -set_version
11690 # flags to be left without arguments
11691 need_version=unknown
11692
11693
11694
11695 case $host_os in
11696 aix3*)
11697 version_type=linux # correct to gnu/linux during the next big refactor
11698 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11699 shlibpath_var=LIBPATH
11700
11701 # AIX 3 has no versioning support, so we append a major version to the name.
11702 soname_spec='$libname$release$shared_ext$major'
11703 ;;
11704
11705 aix[4-9]*)
11706 version_type=linux # correct to gnu/linux during the next big refactor
11707 need_lib_prefix=no
11708 need_version=no
11709 hardcode_into_libs=yes
11710 if test ia64 = "$host_cpu"; then
11711 # AIX 5 supports IA64
11712 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 else
11715 # With GCC up to 2.95.x, collect2 would create an import file
11716 # for dependence libraries. The import file would start with
11717 # the line '#! .'. This would cause the generated library to
11718 # depend on '.', always an invalid library. This was fixed in
11719 # development snapshots of GCC prior to 3.0.
11720 case $host_os in
11721 aix4 | aix4.[01] | aix4.[01].*)
11722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723 echo ' yes '
11724 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11725 :
11726 else
11727 can_build_shared=no
11728 fi
11729 ;;
11730 esac
11731 # Using Import Files as archive members, it is possible to support
11732 # filename-based versioning of shared library archives on AIX. While
11733 # this would work for both with and without runtime linking, it will
11734 # prevent static linking of such archives. So we do filename-based
11735 # shared library versioning with .so extension only, which is used
11736 # when both runtime linking and shared linking is enabled.
11737 # Unfortunately, runtime linking may impact performance, so we do
11738 # not want this to be the default eventually. Also, we use the
11739 # versioned .so libs for executables only if there is the -brtl
11740 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11741 # To allow for filename-based versioning support, we need to create
11742 # libNAME.so.V as an archive file, containing:
11743 # *) an Import File, referring to the versioned filename of the
11744 # archive as well as the shared archive member, telling the
11745 # bitwidth (32 or 64) of that shared object, and providing the
11746 # list of exported symbols of that shared object, eventually
11747 # decorated with the 'weak' keyword
11748 # *) the shared object with the F_LOADONLY flag set, to really avoid
11749 # it being seen by the linker.
11750 # At run time we better use the real file rather than another symlink,
11751 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11752
11753 case $with_aix_soname,$aix_use_runtimelinking in
11754 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11755 # soname into executable. Probably we can add versioning support to
11756 # collect2, so additional links can be useful in future.
11757 aix,yes) # traditional libtool
11758 dynamic_linker='AIX unversionable lib.so'
11759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11760 # instead of lib<name>.a to let people know that these are not
11761 # typical AIX shared libraries.
11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763 ;;
11764 aix,no) # traditional AIX only
11765 dynamic_linker='AIX lib.a(lib.so.V)'
11766 # We preserve .a as extension for shared libraries through AIX4.2
11767 # and later when we are not doing run time linking.
11768 library_names_spec='$libname$release.a $libname.a'
11769 soname_spec='$libname$release$shared_ext$major'
11770 ;;
11771 svr4,*) # full svr4 only
11772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11774 # We do not specify a path in Import Files, so LIBPATH fires.
11775 shlibpath_overrides_runpath=yes
11776 ;;
11777 *,yes) # both, prefer svr4
11778 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11779 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11780 # unpreferred sharedlib libNAME.a needs extra handling
11781 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"'
11782 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"'
11783 # We do not specify a path in Import Files, so LIBPATH fires.
11784 shlibpath_overrides_runpath=yes
11785 ;;
11786 *,no) # both, prefer aix
11787 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11788 library_names_spec='$libname$release.a $libname.a'
11789 soname_spec='$libname$release$shared_ext$major'
11790 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11791 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)'
11792 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"'
11793 ;;
11794 esac
11795 shlibpath_var=LIBPATH
11796 fi
11797 ;;
11798
11799 amigaos*)
11800 case $host_cpu in
11801 powerpc)
11802 # Since July 2007 AmigaOS4 officially supports .so libraries.
11803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 ;;
11806 m68k)
11807 library_names_spec='$libname.ixlibrary $libname.a'
11808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11809 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'
11810 ;;
11811 esac
11812 ;;
11813
11814 beos*)
11815 library_names_spec='$libname$shared_ext'
11816 dynamic_linker="$host_os ld.so"
11817 shlibpath_var=LIBRARY_PATH
11818 ;;
11819
11820 bsdi[45]*)
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 need_version=no
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11824 soname_spec='$libname$release$shared_ext$major'
11825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11829 # the default ld.so.conf also contains /usr/contrib/lib and
11830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11831 # libtool to hard-code these into programs
11832 ;;
11833
11834 cygwin* | mingw* | pw32* | cegcc*)
11835 version_type=windows
11836 shrext_cmds=.dll
11837 need_version=no
11838 need_lib_prefix=no
11839
11840 case $GCC,$cc_basename in
11841 yes,*)
11842 # gcc
11843 library_names_spec='$libname.dll.a'
11844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11845 postinstall_cmds='base_file=`basename \$file`~
11846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11847 dldir=$destdir/`dirname \$dlpath`~
11848 test -d \$dldir || mkdir -p \$dldir~
11849 $install_prog $dir/$dlname \$dldir/$dlname~
11850 chmod a+x \$dldir/$dlname~
11851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11853 fi'
11854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11855 dlpath=$dir/\$dldll~
11856 $RM \$dlpath'
11857 shlibpath_overrides_runpath=yes
11858
11859 case $host_os in
11860 cygwin*)
11861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11862 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11863
11864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11865 ;;
11866 mingw* | cegcc*)
11867 # MinGW DLLs use traditional 'lib' prefix
11868 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11869 ;;
11870 pw32*)
11871 # pw32 DLLs use 'pw' prefix rather than 'lib'
11872 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11873 ;;
11874 esac
11875 dynamic_linker='Win32 ld.exe'
11876 ;;
11877
11878 *,cl*)
11879 # Native MSVC
11880 libname_spec='$name'
11881 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11882 library_names_spec='$libname.dll.lib'
11883
11884 case $build_os in
11885 mingw*)
11886 sys_lib_search_path_spec=
11887 lt_save_ifs=$IFS
11888 IFS=';'
11889 for lt_path in $LIB
11890 do
11891 IFS=$lt_save_ifs
11892 # Let DOS variable expansion print the short 8.3 style file name.
11893 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11894 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11895 done
11896 IFS=$lt_save_ifs
11897 # Convert to MSYS style.
11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11899 ;;
11900 cygwin*)
11901 # Convert to unix form, then to dos form, then back to unix form
11902 # but this time dos style (no spaces!) so that the unix form looks
11903 # like /cygdrive/c/PROGRA~1:/cygdr...
11904 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11905 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11906 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11907 ;;
11908 *)
11909 sys_lib_search_path_spec=$LIB
11910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11911 # It is most probably a Windows format PATH.
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11913 else
11914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11915 fi
11916 # FIXME: find the short name or the path components, as spaces are
11917 # common. (e.g. "Program Files" -> "PROGRA~1")
11918 ;;
11919 esac
11920
11921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11922 postinstall_cmds='base_file=`basename \$file`~
11923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11924 dldir=$destdir/`dirname \$dlpath`~
11925 test -d \$dldir || mkdir -p \$dldir~
11926 $install_prog $dir/$dlname \$dldir/$dlname'
11927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11928 dlpath=$dir/\$dldll~
11929 $RM \$dlpath'
11930 shlibpath_overrides_runpath=yes
11931 dynamic_linker='Win32 link.exe'
11932 ;;
11933
11934 *)
11935 # Assume MSVC wrapper
11936 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11937 dynamic_linker='Win32 ld.exe'
11938 ;;
11939 esac
11940 # FIXME: first we should search . and the directory the executable is in
11941 shlibpath_var=PATH
11942 ;;
11943
11944 darwin* | rhapsody*)
11945 dynamic_linker="$host_os dyld"
11946 version_type=darwin
11947 need_lib_prefix=no
11948 need_version=no
11949 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11950 soname_spec='$libname$release$major$shared_ext'
11951 shlibpath_overrides_runpath=yes
11952 shlibpath_var=DYLD_LIBRARY_PATH
11953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11954
11955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11957 ;;
11958
11959 dgux*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 need_lib_prefix=no
11962 need_version=no
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 soname_spec='$libname$release$shared_ext$major'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 ;;
11967
11968 freebsd* | dragonfly*)
11969 # DragonFly does not have aout. When/if they implement a new
11970 # versioning mechanism, adjust this.
11971 if test -x /usr/bin/objformat; then
11972 objformat=`/usr/bin/objformat`
11973 else
11974 case $host_os in
11975 freebsd[23].*) objformat=aout ;;
11976 *) objformat=elf ;;
11977 esac
11978 fi
11979 version_type=freebsd-$objformat
11980 case $version_type in
11981 freebsd-elf*)
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 soname_spec='$libname$release$shared_ext$major'
11984 need_version=no
11985 need_lib_prefix=no
11986 ;;
11987 freebsd-*)
11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11989 need_version=yes
11990 ;;
11991 esac
11992 shlibpath_var=LD_LIBRARY_PATH
11993 case $host_os in
11994 freebsd2.*)
11995 shlibpath_overrides_runpath=yes
11996 ;;
11997 freebsd3.[01]* | freebsdelf3.[01]*)
11998 shlibpath_overrides_runpath=yes
11999 hardcode_into_libs=yes
12000 ;;
12001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12003 shlibpath_overrides_runpath=no
12004 hardcode_into_libs=yes
12005 ;;
12006 *) # from 4.6 on, and DragonFly
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12009 ;;
12010 esac
12011 ;;
12012
12013 haiku*)
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 need_lib_prefix=no
12016 need_version=no
12017 dynamic_linker="$host_os runtime_loader"
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019 soname_spec='$libname$release$shared_ext$major'
12020 shlibpath_var=LIBRARY_PATH
12021 shlibpath_overrides_runpath=no
12022 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12023 hardcode_into_libs=yes
12024 ;;
12025
12026 hpux9* | hpux10* | hpux11*)
12027 # Give a soname corresponding to the major version so that dld.sl refuses to
12028 # link against other versions.
12029 version_type=sunos
12030 need_lib_prefix=no
12031 need_version=no
12032 case $host_cpu in
12033 ia64*)
12034 shrext_cmds='.so'
12035 hardcode_into_libs=yes
12036 dynamic_linker="$host_os dld.so"
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 if test 32 = "$HPUX_IA64_MODE"; then
12042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12043 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12044 else
12045 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12046 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12047 fi
12048 ;;
12049 hppa*64*)
12050 shrext_cmds='.sl'
12051 hardcode_into_libs=yes
12052 dynamic_linker="$host_os dld.sl"
12053 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext$major'
12057 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 ;;
12060 *)
12061 shrext_cmds='.sl'
12062 dynamic_linker="$host_os dld.sl"
12063 shlibpath_var=SHLIB_PATH
12064 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066 soname_spec='$libname$release$shared_ext$major'
12067 ;;
12068 esac
12069 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12070 postinstall_cmds='chmod 555 $lib'
12071 # or fails outright, so override atomically:
12072 install_override_mode=555
12073 ;;
12074
12075 interix[3-9]*)
12076 version_type=linux # correct to gnu/linux during the next big refactor
12077 need_lib_prefix=no
12078 need_version=no
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080 soname_spec='$libname$release$shared_ext$major'
12081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=no
12084 hardcode_into_libs=yes
12085 ;;
12086
12087 irix5* | irix6* | nonstopux*)
12088 case $host_os in
12089 nonstopux*) version_type=nonstopux ;;
12090 *)
12091 if test yes = "$lt_cv_prog_gnu_ld"; then
12092 version_type=linux # correct to gnu/linux during the next big refactor
12093 else
12094 version_type=irix
12095 fi ;;
12096 esac
12097 need_lib_prefix=no
12098 need_version=no
12099 soname_spec='$libname$release$shared_ext$major'
12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12101 case $host_os in
12102 irix5* | nonstopux*)
12103 libsuff= shlibsuff=
12104 ;;
12105 *)
12106 case $LD in # libtool.m4 will add one of these switches to LD
12107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12108 libsuff= shlibsuff= libmagic=32-bit;;
12109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12110 libsuff=32 shlibsuff=N32 libmagic=N32;;
12111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12113 *) libsuff= shlibsuff= libmagic=never-match;;
12114 esac
12115 ;;
12116 esac
12117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12118 shlibpath_overrides_runpath=no
12119 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12120 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12121 hardcode_into_libs=yes
12122 ;;
12123
12124 # No shared lib support for Linux oldld, aout, or coff.
12125 linux*oldld* | linux*aout* | linux*coff*)
12126 dynamic_linker=no
12127 ;;
12128
12129 linux*android*)
12130 version_type=none # Android doesn't support versioned libraries.
12131 need_lib_prefix=no
12132 need_version=no
12133 library_names_spec='$libname$release$shared_ext'
12134 soname_spec='$libname$release$shared_ext'
12135 finish_cmds=
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes
12138
12139 # This implies no fast_install, which is unacceptable.
12140 # Some rework will be needed to allow for fast_install
12141 # before this can be enabled.
12142 hardcode_into_libs=yes
12143
12144 dynamic_linker='Android linker'
12145 # Don't embed -rpath directories since the linker doesn't support them.
12146 hardcode_libdir_flag_spec='-L$libdir'
12147 ;;
12148
12149 # This must be glibc/ELF.
12150 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12151 version_type=linux # correct to gnu/linux during the next big refactor
12152 need_lib_prefix=no
12153 need_version=no
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
12156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12157 shlibpath_var=LD_LIBRARY_PATH
12158 shlibpath_overrides_runpath=no
12159
12160 # Some binutils ld are patched to set DT_RUNPATH
12161 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 lt_cv_shlibpath_overrides_runpath=no
12165 save_LDFLAGS=$LDFLAGS
12166 save_libdir=$libdir
12167 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12168 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171
12172 int
12173 main ()
12174 {
12175
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12182 lt_cv_shlibpath_overrides_runpath=yes
12183 fi
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LDFLAGS=$save_LDFLAGS
12188 libdir=$save_libdir
12189
12190 fi
12191
12192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12193
12194 # This implies no fast_install, which is unacceptable.
12195 # Some rework will be needed to allow for fast_install
12196 # before this can be enabled.
12197 hardcode_into_libs=yes
12198
12199 # Ideally, we could use ldconfig to report *all* directores which are
12200 # searched for libraries, however this is still not possible. Aside from not
12201 # being certain /sbin/ldconfig is available, command
12202 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12203 # even though it is searched at run-time. Try to do the best guess by
12204 # appending ld.so.conf contents (and includes) to the search path.
12205 if test -f /etc/ld.so.conf; then
12206 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' ' '`
12207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12208 fi
12209
12210 # We used to test for /lib/ld.so.1 and disable shared libraries on
12211 # powerpc, because MkLinux only supported shared libraries with the
12212 # GNU dynamic linker. Since this was broken with cross compilers,
12213 # most powerpc-linux boxes support dynamic linking these days and
12214 # people can always --disable-shared, the test was removed, and we
12215 # assume the GNU/Linux dynamic linker is in use.
12216 dynamic_linker='GNU/Linux ld.so'
12217 ;;
12218
12219 netbsd*)
12220 version_type=sunos
12221 need_lib_prefix=no
12222 need_version=no
12223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12226 dynamic_linker='NetBSD (a.out) ld.so'
12227 else
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 dynamic_linker='NetBSD ld.elf_so'
12231 fi
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12235 ;;
12236
12237 newsos6)
12238 version_type=linux # correct to gnu/linux during the next big refactor
12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12240 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=yes
12242 ;;
12243
12244 *nto* | *qnx*)
12245 version_type=qnx
12246 need_lib_prefix=no
12247 need_version=no
12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249 soname_spec='$libname$release$shared_ext$major'
12250 shlibpath_var=LD_LIBRARY_PATH
12251 shlibpath_overrides_runpath=no
12252 hardcode_into_libs=yes
12253 dynamic_linker='ldqnx.so'
12254 ;;
12255
12256 openbsd* | bitrig*)
12257 version_type=sunos
12258 sys_lib_dlsearch_path_spec=/usr/lib
12259 need_lib_prefix=no
12260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12261 need_version=no
12262 else
12263 need_version=yes
12264 fi
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=yes
12269 ;;
12270
12271 os2*)
12272 libname_spec='$name'
12273 version_type=windows
12274 shrext_cmds=.dll
12275 need_version=no
12276 need_lib_prefix=no
12277 # OS/2 can only load a DLL with a base name of 8 characters or less.
12278 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12279 v=$($ECHO $release$versuffix | tr -d .-);
12280 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12281 $ECHO $n$v`$shared_ext'
12282 library_names_spec='${libname}_dll.$libext'
12283 dynamic_linker='OS/2 ld.exe'
12284 shlibpath_var=BEGINLIBPATH
12285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12287 postinstall_cmds='base_file=`basename \$file`~
12288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12289 dldir=$destdir/`dirname \$dlpath`~
12290 test -d \$dldir || mkdir -p \$dldir~
12291 $install_prog $dir/$dlname \$dldir/$dlname~
12292 chmod a+x \$dldir/$dlname~
12293 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12294 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12295 fi'
12296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12297 dlpath=$dir/\$dldll~
12298 $RM \$dlpath'
12299 ;;
12300
12301 osf3* | osf4* | osf5*)
12302 version_type=osf
12303 need_lib_prefix=no
12304 need_version=no
12305 soname_spec='$libname$release$shared_ext$major'
12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12310 ;;
12311
12312 rdos*)
12313 dynamic_linker=no
12314 ;;
12315
12316 solaris*)
12317 version_type=linux # correct to gnu/linux during the next big refactor
12318 need_lib_prefix=no
12319 need_version=no
12320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321 soname_spec='$libname$release$shared_ext$major'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12324 hardcode_into_libs=yes
12325 # ldd complains unless libraries are executable
12326 postinstall_cmds='chmod +x $lib'
12327 ;;
12328
12329 sunos4*)
12330 version_type=sunos
12331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 shlibpath_overrides_runpath=yes
12335 if test yes = "$with_gnu_ld"; then
12336 need_lib_prefix=no
12337 fi
12338 need_version=yes
12339 ;;
12340
12341 sysv4 | sysv4.3*)
12342 version_type=linux # correct to gnu/linux during the next big refactor
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12344 soname_spec='$libname$release$shared_ext$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 case $host_vendor in
12347 sni)
12348 shlibpath_overrides_runpath=no
12349 need_lib_prefix=no
12350 runpath_var=LD_RUN_PATH
12351 ;;
12352 siemens)
12353 need_lib_prefix=no
12354 ;;
12355 motorola)
12356 need_lib_prefix=no
12357 need_version=no
12358 shlibpath_overrides_runpath=no
12359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12360 ;;
12361 esac
12362 ;;
12363
12364 sysv4*MP*)
12365 if test -d /usr/nec; then
12366 version_type=linux # correct to gnu/linux during the next big refactor
12367 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12368 soname_spec='$libname$shared_ext.$major'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 fi
12371 ;;
12372
12373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12374 version_type=sco
12375 need_lib_prefix=no
12376 need_version=no
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12378 soname_spec='$libname$release$shared_ext$major'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes
12381 hardcode_into_libs=yes
12382 if test yes = "$with_gnu_ld"; then
12383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12384 else
12385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12386 case $host_os in
12387 sco3.2v5*)
12388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12389 ;;
12390 esac
12391 fi
12392 sys_lib_dlsearch_path_spec='/usr/lib'
12393 ;;
12394
12395 tpf*)
12396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12397 version_type=linux # correct to gnu/linux during the next big refactor
12398 need_lib_prefix=no
12399 need_version=no
12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=no
12403 hardcode_into_libs=yes
12404 ;;
12405
12406 uts4*)
12407 version_type=linux # correct to gnu/linux during the next big refactor
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 soname_spec='$libname$release$shared_ext$major'
12410 shlibpath_var=LD_LIBRARY_PATH
12411 ;;
12412
12413 *)
12414 dynamic_linker=no
12415 ;;
12416 esac
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12418 $as_echo "$dynamic_linker" >&6; }
12419 test no = "$dynamic_linker" && can_build_shared=no
12420
12421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12422 if test yes = "$GCC"; then
12423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12424 fi
12425
12426 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12427 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12428 fi
12429
12430 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12431 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12432 fi
12433
12434 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12435 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12436
12437 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12438 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12439
12440 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12441 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12540 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12541 hardcode_action=
12542 if test -n "$hardcode_libdir_flag_spec" ||
12543 test -n "$runpath_var" ||
12544 test yes = "$hardcode_automatic"; then
12545
12546 # We can hardcode non-existent directories.
12547 if test no != "$hardcode_direct" &&
12548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12549 # have to relink, otherwise we might link with an installed library
12550 # when we should be linking with a yet-to-be-installed one
12551 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12552 test no != "$hardcode_minus_L"; then
12553 # Linking always hardcodes the temporary library directory.
12554 hardcode_action=relink
12555 else
12556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12557 hardcode_action=immediate
12558 fi
12559 else
12560 # We cannot hardcode anything, or else we can only hardcode existing
12561 # directories.
12562 hardcode_action=unsupported
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12565 $as_echo "$hardcode_action" >&6; }
12566
12567 if test relink = "$hardcode_action" ||
12568 test yes = "$inherit_rpath"; then
12569 # Fast installation is not supported
12570 enable_fast_install=no
12571 elif test yes = "$shlibpath_overrides_runpath" ||
12572 test no = "$enable_shared"; then
12573 # Fast installation is not necessary
12574 enable_fast_install=needless
12575 fi
12576
12577
12578
12579
12580
12581
12582 if test yes != "$enable_dlopen"; then
12583 enable_dlopen=unknown
12584 enable_dlopen_self=unknown
12585 enable_dlopen_self_static=unknown
12586 else
12587 lt_cv_dlopen=no
12588 lt_cv_dlopen_libs=
12589
12590 case $host_os in
12591 beos*)
12592 lt_cv_dlopen=load_add_on
12593 lt_cv_dlopen_libs=
12594 lt_cv_dlopen_self=yes
12595 ;;
12596
12597 mingw* | pw32* | cegcc*)
12598 lt_cv_dlopen=LoadLibrary
12599 lt_cv_dlopen_libs=
12600 ;;
12601
12602 cygwin*)
12603 lt_cv_dlopen=dlopen
12604 lt_cv_dlopen_libs=
12605 ;;
12606
12607 darwin*)
12608 # if libdl is installed we need to link against it
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12610 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12611 if ${ac_cv_lib_dl_dlopen+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 ac_check_lib_save_LIBS=$LIBS
12615 LIBS="-ldl $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char dlopen ();
12626 int
12627 main ()
12628 {
12629 return dlopen ();
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_lib_dl_dlopen=yes
12636 else
12637 ac_cv_lib_dl_dlopen=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12645 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12646 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12647 else
12648
12649 lt_cv_dlopen=dyld
12650 lt_cv_dlopen_libs=
12651 lt_cv_dlopen_self=yes
12652
12653 fi
12654
12655 ;;
12656
12657 tpf*)
12658 # Don't try to run any link tests for TPF. We know it's impossible
12659 # because TPF is a cross-compiler, and we know how we open DSOs.
12660 lt_cv_dlopen=dlopen
12661 lt_cv_dlopen_libs=
12662 lt_cv_dlopen_self=no
12663 ;;
12664
12665 *)
12666 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12667 if test "x$ac_cv_func_shl_load" = xyes; then :
12668 lt_cv_dlopen=shl_load
12669 else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12671 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12672 if ${ac_cv_lib_dld_shl_load+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-ldld $LIBS"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char shl_load ();
12687 int
12688 main ()
12689 {
12690 return shl_load ();
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_dld_shl_load=yes
12697 else
12698 ac_cv_lib_dld_shl_load=no
12699 fi
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12705 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12706 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12707 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12708 else
12709 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12710 if test "x$ac_cv_func_dlopen" = xyes; then :
12711 lt_cv_dlopen=dlopen
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12714 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12715 if ${ac_cv_lib_dl_dlopen+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-ldl $LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char dlopen ();
12730 int
12731 main ()
12732 {
12733 return dlopen ();
12734 ;
12735 return 0;
12736 }
12737 _ACEOF
12738 if ac_fn_c_try_link "$LINENO"; then :
12739 ac_cv_lib_dl_dlopen=yes
12740 else
12741 ac_cv_lib_dl_dlopen=no
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12749 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12750 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12753 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12754 if ${ac_cv_lib_svld_dlopen+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-lsvld $LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char dlopen ();
12769 int
12770 main ()
12771 {
12772 return dlopen ();
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_svld_dlopen=yes
12779 else
12780 ac_cv_lib_svld_dlopen=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12785 fi
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12787 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12788 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12789 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12790 else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12792 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12793 if ${ac_cv_lib_dld_dld_link+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldld $LIBS"
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800
12801 /* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804 #ifdef __cplusplus
12805 extern "C"
12806 #endif
12807 char dld_link ();
12808 int
12809 main ()
12810 {
12811 return dld_link ();
12812 ;
12813 return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_dld_dld_link=yes
12818 else
12819 ac_cv_lib_dld_dld_link=no
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12826 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12827 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12828 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12829 fi
12830
12831
12832 fi
12833
12834
12835 fi
12836
12837
12838 fi
12839
12840
12841 fi
12842
12843
12844 fi
12845
12846 ;;
12847 esac
12848
12849 if test no = "$lt_cv_dlopen"; then
12850 enable_dlopen=no
12851 else
12852 enable_dlopen=yes
12853 fi
12854
12855 case $lt_cv_dlopen in
12856 dlopen)
12857 save_CPPFLAGS=$CPPFLAGS
12858 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12859
12860 save_LDFLAGS=$LDFLAGS
12861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12862
12863 save_LIBS=$LIBS
12864 LIBS="$lt_cv_dlopen_libs $LIBS"
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12867 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12868 if ${lt_cv_dlopen_self+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 if test yes = "$cross_compiling"; then :
12872 lt_cv_dlopen_self=cross
12873 else
12874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12875 lt_status=$lt_dlunknown
12876 cat > conftest.$ac_ext <<_LT_EOF
12877 #line $LINENO "configure"
12878 #include "confdefs.h"
12879
12880 #if HAVE_DLFCN_H
12881 #include <dlfcn.h>
12882 #endif
12883
12884 #include <stdio.h>
12885
12886 #ifdef RTLD_GLOBAL
12887 # define LT_DLGLOBAL RTLD_GLOBAL
12888 #else
12889 # ifdef DL_GLOBAL
12890 # define LT_DLGLOBAL DL_GLOBAL
12891 # else
12892 # define LT_DLGLOBAL 0
12893 # endif
12894 #endif
12895
12896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12897 find out it does not work in some platform. */
12898 #ifndef LT_DLLAZY_OR_NOW
12899 # ifdef RTLD_LAZY
12900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12901 # else
12902 # ifdef DL_LAZY
12903 # define LT_DLLAZY_OR_NOW DL_LAZY
12904 # else
12905 # ifdef RTLD_NOW
12906 # define LT_DLLAZY_OR_NOW RTLD_NOW
12907 # else
12908 # ifdef DL_NOW
12909 # define LT_DLLAZY_OR_NOW DL_NOW
12910 # else
12911 # define LT_DLLAZY_OR_NOW 0
12912 # endif
12913 # endif
12914 # endif
12915 # endif
12916 #endif
12917
12918 /* When -fvisibility=hidden is used, assume the code has been annotated
12919 correspondingly for the symbols needed. */
12920 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12921 int fnord () __attribute__((visibility("default")));
12922 #endif
12923
12924 int fnord () { return 42; }
12925 int main ()
12926 {
12927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928 int status = $lt_dlunknown;
12929
12930 if (self)
12931 {
12932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12933 else
12934 {
12935 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12936 else puts (dlerror ());
12937 }
12938 /* dlclose (self); */
12939 }
12940 else
12941 puts (dlerror ());
12942
12943 return status;
12944 }
12945 _LT_EOF
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12951 (./conftest; exit; ) >&5 2>/dev/null
12952 lt_status=$?
12953 case x$lt_status in
12954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12957 esac
12958 else :
12959 # compilation failed
12960 lt_cv_dlopen_self=no
12961 fi
12962 fi
12963 rm -fr conftest*
12964
12965
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12968 $as_echo "$lt_cv_dlopen_self" >&6; }
12969
12970 if test yes = "$lt_cv_dlopen_self"; then
12971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12973 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12974 if ${lt_cv_dlopen_self_static+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 if test yes = "$cross_compiling"; then :
12978 lt_cv_dlopen_self_static=cross
12979 else
12980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12981 lt_status=$lt_dlunknown
12982 cat > conftest.$ac_ext <<_LT_EOF
12983 #line $LINENO "configure"
12984 #include "confdefs.h"
12985
12986 #if HAVE_DLFCN_H
12987 #include <dlfcn.h>
12988 #endif
12989
12990 #include <stdio.h>
12991
12992 #ifdef RTLD_GLOBAL
12993 # define LT_DLGLOBAL RTLD_GLOBAL
12994 #else
12995 # ifdef DL_GLOBAL
12996 # define LT_DLGLOBAL DL_GLOBAL
12997 # else
12998 # define LT_DLGLOBAL 0
12999 # endif
13000 #endif
13001
13002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13003 find out it does not work in some platform. */
13004 #ifndef LT_DLLAZY_OR_NOW
13005 # ifdef RTLD_LAZY
13006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13007 # else
13008 # ifdef DL_LAZY
13009 # define LT_DLLAZY_OR_NOW DL_LAZY
13010 # else
13011 # ifdef RTLD_NOW
13012 # define LT_DLLAZY_OR_NOW RTLD_NOW
13013 # else
13014 # ifdef DL_NOW
13015 # define LT_DLLAZY_OR_NOW DL_NOW
13016 # else
13017 # define LT_DLLAZY_OR_NOW 0
13018 # endif
13019 # endif
13020 # endif
13021 # endif
13022 #endif
13023
13024 /* When -fvisibility=hidden is used, assume the code has been annotated
13025 correspondingly for the symbols needed. */
13026 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13027 int fnord () __attribute__((visibility("default")));
13028 #endif
13029
13030 int fnord () { return 42; }
13031 int main ()
13032 {
13033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13034 int status = $lt_dlunknown;
13035
13036 if (self)
13037 {
13038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13039 else
13040 {
13041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13042 else puts (dlerror ());
13043 }
13044 /* dlclose (self); */
13045 }
13046 else
13047 puts (dlerror ());
13048
13049 return status;
13050 }
13051 _LT_EOF
13052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13053 (eval $ac_link) 2>&5
13054 ac_status=$?
13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13057 (./conftest; exit; ) >&5 2>/dev/null
13058 lt_status=$?
13059 case x$lt_status in
13060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13062 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13063 esac
13064 else :
13065 # compilation failed
13066 lt_cv_dlopen_self_static=no
13067 fi
13068 fi
13069 rm -fr conftest*
13070
13071
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13074 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13075 fi
13076
13077 CPPFLAGS=$save_CPPFLAGS
13078 LDFLAGS=$save_LDFLAGS
13079 LIBS=$save_LIBS
13080 ;;
13081 esac
13082
13083 case $lt_cv_dlopen_self in
13084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13085 *) enable_dlopen_self=unknown ;;
13086 esac
13087
13088 case $lt_cv_dlopen_self_static in
13089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13090 *) enable_dlopen_self_static=unknown ;;
13091 esac
13092 fi
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110 striplib=
13111 old_striplib=
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13113 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13114 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13115 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13116 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13119 else
13120 # FIXME - insert some real tests, host_os isn't really good enough
13121 case $host_os in
13122 darwin*)
13123 if test -n "$STRIP"; then
13124 striplib="$STRIP -x"
13125 old_striplib="$STRIP -S"
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127 $as_echo "yes" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 fi
13132 ;;
13133 *)
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 ;;
13137 esac
13138 fi
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151 # Report what library types will actually be built
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13153 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13155 $as_echo "$can_build_shared" >&6; }
13156
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13158 $as_echo_n "checking whether to build shared libraries... " >&6; }
13159 test no = "$can_build_shared" && enable_shared=no
13160
13161 # On AIX, shared libraries and static libraries use the same namespace, and
13162 # are all built from PIC.
13163 case $host_os in
13164 aix3*)
13165 test yes = "$enable_shared" && enable_static=no
13166 if test -n "$RANLIB"; then
13167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168 postinstall_cmds='$RANLIB $lib'
13169 fi
13170 ;;
13171
13172 aix[4-9]*)
13173 if test ia64 != "$host_cpu"; then
13174 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13175 yes,aix,yes) ;; # shared object as lib.so file only
13176 yes,svr4,*) ;; # shared object as lib.so archive member only
13177 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13178 esac
13179 fi
13180 ;;
13181 esac
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13183 $as_echo "$enable_shared" >&6; }
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13186 $as_echo_n "checking whether to build static libraries... " >&6; }
13187 # Make sure either enable_shared or enable_static is yes.
13188 test yes = "$enable_shared" || enable_static=yes
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13190 $as_echo "$enable_static" >&6; }
13191
13192
13193
13194
13195 fi
13196 ac_ext=c
13197 ac_cpp='$CPP $CPPFLAGS'
13198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
13202 CC=$lt_save_CC
13203
13204 if test -n "$CXX" && ( test no != "$CXX" &&
13205 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13206 (test g++ != "$CXX"))); then
13207 ac_ext=cpp
13208 ac_cpp='$CXXCPP $CPPFLAGS'
13209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13213 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13214 if test -z "$CXXCPP"; then
13215 if ${ac_cv_prog_CXXCPP+:} false; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 # Double quotes because CXXCPP needs to be expanded
13219 for CXXCPP in "$CXX -E" "/lib/cpp"
13220 do
13221 ac_preproc_ok=false
13222 for ac_cxx_preproc_warn_flag in '' yes
13223 do
13224 # Use a header file that comes with gcc, so configuring glibc
13225 # with a fresh cross-compiler works.
13226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13227 # <limits.h> exists even on freestanding compilers.
13228 # On the NeXT, cc -E runs the code through the compiler's parser,
13229 # not just through cpp. "Syntax error" is here to catch this case.
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13232 #ifdef __STDC__
13233 # include <limits.h>
13234 #else
13235 # include <assert.h>
13236 #endif
13237 Syntax error
13238 _ACEOF
13239 if ac_fn_cxx_try_cpp "$LINENO"; then :
13240
13241 else
13242 # Broken: fails on valid input.
13243 continue
13244 fi
13245 rm -f conftest.err conftest.i conftest.$ac_ext
13246
13247 # OK, works on sane cases. Now check whether nonexistent headers
13248 # can be detected and how.
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 #include <ac_nonexistent.h>
13252 _ACEOF
13253 if ac_fn_cxx_try_cpp "$LINENO"; then :
13254 # Broken: success on invalid input.
13255 continue
13256 else
13257 # Passes both tests.
13258 ac_preproc_ok=:
13259 break
13260 fi
13261 rm -f conftest.err conftest.i conftest.$ac_ext
13262
13263 done
13264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13265 rm -f conftest.i conftest.err conftest.$ac_ext
13266 if $ac_preproc_ok; then :
13267 break
13268 fi
13269
13270 done
13271 ac_cv_prog_CXXCPP=$CXXCPP
13272
13273 fi
13274 CXXCPP=$ac_cv_prog_CXXCPP
13275 else
13276 ac_cv_prog_CXXCPP=$CXXCPP
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13279 $as_echo "$CXXCPP" >&6; }
13280 ac_preproc_ok=false
13281 for ac_cxx_preproc_warn_flag in '' yes
13282 do
13283 # Use a header file that comes with gcc, so configuring glibc
13284 # with a fresh cross-compiler works.
13285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13286 # <limits.h> exists even on freestanding compilers.
13287 # On the NeXT, cc -E runs the code through the compiler's parser,
13288 # not just through cpp. "Syntax error" is here to catch this case.
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291 #ifdef __STDC__
13292 # include <limits.h>
13293 #else
13294 # include <assert.h>
13295 #endif
13296 Syntax error
13297 _ACEOF
13298 if ac_fn_cxx_try_cpp "$LINENO"; then :
13299
13300 else
13301 # Broken: fails on valid input.
13302 continue
13303 fi
13304 rm -f conftest.err conftest.i conftest.$ac_ext
13305
13306 # OK, works on sane cases. Now check whether nonexistent headers
13307 # can be detected and how.
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310 #include <ac_nonexistent.h>
13311 _ACEOF
13312 if ac_fn_cxx_try_cpp "$LINENO"; then :
13313 # Broken: success on invalid input.
13314 continue
13315 else
13316 # Passes both tests.
13317 ac_preproc_ok=:
13318 break
13319 fi
13320 rm -f conftest.err conftest.i conftest.$ac_ext
13321
13322 done
13323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13324 rm -f conftest.i conftest.err conftest.$ac_ext
13325 if $ac_preproc_ok; then :
13326
13327 else
13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13330 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13331 See \`config.log' for more details" "$LINENO" 5; }
13332 fi
13333
13334 ac_ext=c
13335 ac_cpp='$CPP $CPPFLAGS'
13336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13339
13340 else
13341 _lt_caught_CXX_error=yes
13342 fi
13343
13344 ac_ext=cpp
13345 ac_cpp='$CXXCPP $CPPFLAGS'
13346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13349
13350 archive_cmds_need_lc_CXX=no
13351 allow_undefined_flag_CXX=
13352 always_export_symbols_CXX=no
13353 archive_expsym_cmds_CXX=
13354 compiler_needs_object_CXX=no
13355 export_dynamic_flag_spec_CXX=
13356 hardcode_direct_CXX=no
13357 hardcode_direct_absolute_CXX=no
13358 hardcode_libdir_flag_spec_CXX=
13359 hardcode_libdir_separator_CXX=
13360 hardcode_minus_L_CXX=no
13361 hardcode_shlibpath_var_CXX=unsupported
13362 hardcode_automatic_CXX=no
13363 inherit_rpath_CXX=no
13364 module_cmds_CXX=
13365 module_expsym_cmds_CXX=
13366 link_all_deplibs_CXX=unknown
13367 old_archive_cmds_CXX=$old_archive_cmds
13368 reload_flag_CXX=$reload_flag
13369 reload_cmds_CXX=$reload_cmds
13370 no_undefined_flag_CXX=
13371 whole_archive_flag_spec_CXX=
13372 enable_shared_with_static_runtimes_CXX=no
13373
13374 # Source file extension for C++ test sources.
13375 ac_ext=cpp
13376
13377 # Object file extension for compiled C++ test sources.
13378 objext=o
13379 objext_CXX=$objext
13380
13381 # No sense in running all these tests if we already determined that
13382 # the CXX compiler isn't working. Some variables (like enable_shared)
13383 # are currently assumed to apply to all compilers on this platform,
13384 # and will be corrupted by setting them based on a non-working compiler.
13385 if test yes != "$_lt_caught_CXX_error"; then
13386 # Code to be used in simple compile tests
13387 lt_simple_compile_test_code="int some_variable = 0;"
13388
13389 # Code to be used in simple link tests
13390 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13391
13392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13393
13394
13395
13396
13397
13398
13399 # If no C compiler was specified, use CC.
13400 LTCC=${LTCC-"$CC"}
13401
13402 # If no C compiler flags were specified, use CFLAGS.
13403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13404
13405 # Allow CC to be a program name with arguments.
13406 compiler=$CC
13407
13408
13409 # save warnings/boilerplate of simple test code
13410 ac_outfile=conftest.$ac_objext
13411 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13412 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13413 _lt_compiler_boilerplate=`cat conftest.err`
13414 $RM -r conftest*
13415
13416 ac_outfile=conftest.$ac_objext
13417 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13418 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13419 _lt_linker_boilerplate=`cat conftest.err`
13420 $RM -r conftest*
13421
13422
13423 # Allow CC to be a program name with arguments.
13424 lt_save_CC=$CC
13425 lt_save_CFLAGS=$CFLAGS
13426 lt_save_LD=$LD
13427 lt_save_GCC=$GCC
13428 GCC=$GXX
13429 lt_save_with_gnu_ld=$with_gnu_ld
13430 lt_save_path_LD=$lt_cv_path_LD
13431 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13432 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13433 else
13434 $as_unset lt_cv_prog_gnu_ld
13435 fi
13436 if test -n "${lt_cv_path_LDCXX+set}"; then
13437 lt_cv_path_LD=$lt_cv_path_LDCXX
13438 else
13439 $as_unset lt_cv_path_LD
13440 fi
13441 test -z "${LDCXX+set}" || LD=$LDCXX
13442 CC=${CXX-"c++"}
13443 CFLAGS=$CXXFLAGS
13444 compiler=$CC
13445 compiler_CXX=$CC
13446 func_cc_basename $compiler
13447 cc_basename=$func_cc_basename_result
13448
13449
13450 if test -n "$compiler"; then
13451 # We don't want -fno-exception when compiling C++ code, so set the
13452 # no_builtin_flag separately
13453 if test yes = "$GXX"; then
13454 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13455 else
13456 lt_prog_compiler_no_builtin_flag_CXX=
13457 fi
13458
13459 if test yes = "$GXX"; then
13460 # Set up default GNU C++ configuration
13461
13462
13463
13464 # Check whether --with-gnu-ld was given.
13465 if test "${with_gnu_ld+set}" = set; then :
13466 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13467 else
13468 with_gnu_ld=no
13469 fi
13470
13471 ac_prog=ld
13472 if test yes = "$GCC"; then
13473 # Check if gcc -print-prog-name=ld gives a path.
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13475 $as_echo_n "checking for ld used by $CC... " >&6; }
13476 case $host in
13477 *-*-mingw*)
13478 # gcc leaves a trailing carriage return, which upsets mingw
13479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13480 *)
13481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13482 esac
13483 case $ac_prog in
13484 # Accept absolute paths.
13485 [\\/]* | ?:[\\/]*)
13486 re_direlt='/[^/][^/]*/\.\./'
13487 # Canonicalize the pathname of ld
13488 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13489 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13490 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13491 done
13492 test -z "$LD" && LD=$ac_prog
13493 ;;
13494 "")
13495 # If it fails, then pretend we aren't using GCC.
13496 ac_prog=ld
13497 ;;
13498 *)
13499 # If it is relative, then search for the first ld in PATH.
13500 with_gnu_ld=unknown
13501 ;;
13502 esac
13503 elif test yes = "$with_gnu_ld"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13505 $as_echo_n "checking for GNU ld... " >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13508 $as_echo_n "checking for non-GNU ld... " >&6; }
13509 fi
13510 if ${lt_cv_path_LD+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 if test -z "$LD"; then
13514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13515 for ac_dir in $PATH; do
13516 IFS=$lt_save_ifs
13517 test -z "$ac_dir" && ac_dir=.
13518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13519 lt_cv_path_LD=$ac_dir/$ac_prog
13520 # Check to see if the program is GNU ld. I'd rather use --version,
13521 # but apparently some variants of GNU ld only accept -v.
13522 # Break only if it was the GNU/non-GNU ld that we prefer.
13523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13524 *GNU* | *'with BFD'*)
13525 test no != "$with_gnu_ld" && break
13526 ;;
13527 *)
13528 test yes != "$with_gnu_ld" && break
13529 ;;
13530 esac
13531 fi
13532 done
13533 IFS=$lt_save_ifs
13534 else
13535 lt_cv_path_LD=$LD # Let the user override the test with a path.
13536 fi
13537 fi
13538
13539 LD=$lt_cv_path_LD
13540 if test -n "$LD"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13542 $as_echo "$LD" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13549 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13550 if ${lt_cv_prog_gnu_ld+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13554 case `$LD -v 2>&1 </dev/null` in
13555 *GNU* | *'with BFD'*)
13556 lt_cv_prog_gnu_ld=yes
13557 ;;
13558 *)
13559 lt_cv_prog_gnu_ld=no
13560 ;;
13561 esac
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13564 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13565 with_gnu_ld=$lt_cv_prog_gnu_ld
13566
13567
13568
13569
13570
13571
13572
13573 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13574 # archiving commands below assume that GNU ld is being used.
13575 if test yes = "$with_gnu_ld"; then
13576 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13577 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'
13578
13579 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13580 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13581
13582 # If archive_cmds runs LD, not CC, wlarc should be empty
13583 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13584 # investigate it a little bit more. (MM)
13585 wlarc='$wl'
13586
13587 # ancient GNU ld didn't support --whole-archive et. al.
13588 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13589 $GREP 'no-whole-archive' > /dev/null; then
13590 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13591 else
13592 whole_archive_flag_spec_CXX=
13593 fi
13594 else
13595 with_gnu_ld=no
13596 wlarc=
13597
13598 # A generic and very simple default shared library creation
13599 # command for GNU C++ for the case where it uses the native
13600 # linker, instead of GNU ld. If possible, this setting should
13601 # overridden to take advantage of the native linker features on
13602 # the platform it is being used on.
13603 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13604 fi
13605
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13610
13611 else
13612 GXX=no
13613 with_gnu_ld=no
13614 wlarc=
13615 fi
13616
13617 # PORTME: fill in a description of your system's C++ link characteristics
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13619 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13620 ld_shlibs_CXX=yes
13621 case $host_os in
13622 aix3*)
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13625 ;;
13626 aix[4-9]*)
13627 if test ia64 = "$host_cpu"; then
13628 # On IA64, the linker does run time linking by default, so we don't
13629 # have to do anything special.
13630 aix_use_runtimelinking=no
13631 exp_sym_flag='-Bexport'
13632 no_entry_flag=
13633 else
13634 aix_use_runtimelinking=no
13635
13636 # Test if we are trying to use run time linking or normal
13637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13638 # have runtime linking enabled, and use it for executables.
13639 # For shared libraries, we enable/disable runtime linking
13640 # depending on the kind of the shared library created -
13641 # when "with_aix_soname,aix_use_runtimelinking" is:
13642 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13643 # "aix,yes" lib.so shared, rtl:yes, for executables
13644 # lib.a static archive
13645 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13646 # lib.a(lib.so.V) shared, rtl:no, for executables
13647 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13648 # lib.a(lib.so.V) shared, rtl:no
13649 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13650 # lib.a static archive
13651 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13652 for ld_flag in $LDFLAGS; do
13653 case $ld_flag in
13654 *-brtl*)
13655 aix_use_runtimelinking=yes
13656 break
13657 ;;
13658 esac
13659 done
13660 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13661 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13662 # so we don't have lib.a shared libs to link our executables.
13663 # We have to force runtime linking in this case.
13664 aix_use_runtimelinking=yes
13665 LDFLAGS="$LDFLAGS -Wl,-brtl"
13666 fi
13667 ;;
13668 esac
13669
13670 exp_sym_flag='-bexport'
13671 no_entry_flag='-bnoentry'
13672 fi
13673
13674 # When large executables or shared objects are built, AIX ld can
13675 # have problems creating the table of contents. If linking a library
13676 # or program results in "error TOC overflow" add -mminimal-toc to
13677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13679
13680 archive_cmds_CXX=''
13681 hardcode_direct_CXX=yes
13682 hardcode_direct_absolute_CXX=yes
13683 hardcode_libdir_separator_CXX=':'
13684 link_all_deplibs_CXX=yes
13685 file_list_spec_CXX='$wl-f,'
13686 case $with_aix_soname,$aix_use_runtimelinking in
13687 aix,*) ;; # no import file
13688 svr4,* | *,yes) # use import file
13689 # The Import File defines what to hardcode.
13690 hardcode_direct_CXX=no
13691 hardcode_direct_absolute_CXX=no
13692 ;;
13693 esac
13694
13695 if test yes = "$GXX"; then
13696 case $host_os in aix4.[012]|aix4.[012].*)
13697 # We only want to do this on AIX 4.2 and lower, the check
13698 # below for broken collect2 doesn't work under 4.3+
13699 collect2name=`$CC -print-prog-name=collect2`
13700 if test -f "$collect2name" &&
13701 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13702 then
13703 # We have reworked collect2
13704 :
13705 else
13706 # We have old collect2
13707 hardcode_direct_CXX=unsupported
13708 # It fails to find uninstalled libraries when the uninstalled
13709 # path is not listed in the libpath. Setting hardcode_minus_L
13710 # to unsupported forces relinking
13711 hardcode_minus_L_CXX=yes
13712 hardcode_libdir_flag_spec_CXX='-L$libdir'
13713 hardcode_libdir_separator_CXX=
13714 fi
13715 esac
13716 shared_flag='-shared'
13717 if test yes = "$aix_use_runtimelinking"; then
13718 shared_flag=$shared_flag' $wl-G'
13719 fi
13720 # Need to ensure runtime linking is disabled for the traditional
13721 # shared library, or the linker may eventually find shared libraries
13722 # /with/ Import File - we do not want to mix them.
13723 shared_flag_aix='-shared'
13724 shared_flag_svr4='-shared $wl-G'
13725 else
13726 # not using gcc
13727 if test ia64 = "$host_cpu"; then
13728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13729 # chokes on -Wl,-G. The following line is correct:
13730 shared_flag='-G'
13731 else
13732 if test yes = "$aix_use_runtimelinking"; then
13733 shared_flag='$wl-G'
13734 else
13735 shared_flag='$wl-bM:SRE'
13736 fi
13737 shared_flag_aix='$wl-bM:SRE'
13738 shared_flag_svr4='$wl-G'
13739 fi
13740 fi
13741
13742 export_dynamic_flag_spec_CXX='$wl-bexpall'
13743 # It seems that -bexpall does not export symbols beginning with
13744 # underscore (_), so it is better to generate a list of symbols to
13745 # export.
13746 always_export_symbols_CXX=yes
13747 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13748 # Warning - without using the other runtime loading flags (-brtl),
13749 # -berok will link without error, but may produce a broken library.
13750 # The "-G" linker flag allows undefined symbols.
13751 no_undefined_flag_CXX='-bernotok'
13752 # Determine the default libpath from the value encoded in an empty
13753 # executable.
13754 if test set = "${lt_cv_aix_libpath+set}"; then
13755 aix_libpath=$lt_cv_aix_libpath
13756 else
13757 if ${lt_cv_aix_libpath__CXX+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762
13763 int
13764 main ()
13765 {
13766
13767 ;
13768 return 0;
13769 }
13770 _ACEOF
13771 if ac_fn_cxx_try_link "$LINENO"; then :
13772
13773 lt_aix_libpath_sed='
13774 /Import File Strings/,/^$/ {
13775 /^0/ {
13776 s/^0 *\([^ ]*\) *$/\1/
13777 p
13778 }
13779 }'
13780 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781 # Check for a 64-bit object if we didn't find anything.
13782 if test -z "$lt_cv_aix_libpath__CXX"; then
13783 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 fi
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 if test -z "$lt_cv_aix_libpath__CXX"; then
13789 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13790 fi
13791
13792 fi
13793
13794 aix_libpath=$lt_cv_aix_libpath__CXX
13795 fi
13796
13797 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13798
13799 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
13800 else
13801 if test ia64 = "$host_cpu"; then
13802 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13803 allow_undefined_flag_CXX="-z nodefs"
13804 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"
13805 else
13806 # Determine the default libpath from the value encoded in an
13807 # empty executable.
13808 if test set = "${lt_cv_aix_libpath+set}"; then
13809 aix_libpath=$lt_cv_aix_libpath
13810 else
13811 if ${lt_cv_aix_libpath__CXX+:} false; then :
13812 $as_echo_n "(cached) " >&6
13813 else
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816
13817 int
13818 main ()
13819 {
13820
13821 ;
13822 return 0;
13823 }
13824 _ACEOF
13825 if ac_fn_cxx_try_link "$LINENO"; then :
13826
13827 lt_aix_libpath_sed='
13828 /Import File Strings/,/^$/ {
13829 /^0/ {
13830 s/^0 *\([^ ]*\) *$/\1/
13831 p
13832 }
13833 }'
13834 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13835 # Check for a 64-bit object if we didn't find anything.
13836 if test -z "$lt_cv_aix_libpath__CXX"; then
13837 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13838 fi
13839 fi
13840 rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 if test -z "$lt_cv_aix_libpath__CXX"; then
13843 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13844 fi
13845
13846 fi
13847
13848 aix_libpath=$lt_cv_aix_libpath__CXX
13849 fi
13850
13851 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13852 # Warning - without using the other run time loading flags,
13853 # -berok will link without error, but may produce a broken library.
13854 no_undefined_flag_CXX=' $wl-bernotok'
13855 allow_undefined_flag_CXX=' $wl-berok'
13856 if test yes = "$with_gnu_ld"; then
13857 # We only use this code for GNU lds that support --whole-archive.
13858 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13859 else
13860 # Exported symbols can be pulled into shared objects from archives
13861 whole_archive_flag_spec_CXX='$convenience'
13862 fi
13863 archive_cmds_need_lc_CXX=yes
13864 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13865 # -brtl affects multiple linker settings, -berok does not and is overridden later
13866 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13867 if test svr4 != "$with_aix_soname"; then
13868 # This is similar to how AIX traditionally builds its shared
13869 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13870 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'
13871 fi
13872 if test aix != "$with_aix_soname"; then
13873 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'
13874 else
13875 # used by -dlpreopen to get the symbols
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13877 fi
13878 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13879 fi
13880 fi
13881 ;;
13882
13883 beos*)
13884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13885 allow_undefined_flag_CXX=unsupported
13886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13887 # support --undefined. This deserves some investigation. FIXME
13888 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13889 else
13890 ld_shlibs_CXX=no
13891 fi
13892 ;;
13893
13894 chorus*)
13895 case $cc_basename in
13896 *)
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13899 ;;
13900 esac
13901 ;;
13902
13903 cygwin* | mingw* | pw32* | cegcc*)
13904 case $GXX,$cc_basename in
13905 ,cl* | no,cl*)
13906 # Native MSVC
13907 # hardcode_libdir_flag_spec is actually meaningless, as there is
13908 # no search path for DLLs.
13909 hardcode_libdir_flag_spec_CXX=' '
13910 allow_undefined_flag_CXX=unsupported
13911 always_export_symbols_CXX=yes
13912 file_list_spec_CXX='@'
13913 # Tell ltmain to make .lib files, not .a files.
13914 libext=lib
13915 # Tell ltmain to make .dll files, not .so files.
13916 shrext_cmds=.dll
13917 # FIXME: Setting linknames here is a bad hack.
13918 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13919 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13920 cp "$export_symbols" "$output_objdir/$soname.def";
13921 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13922 else
13923 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13924 fi~
13925 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13926 linknames='
13927 # The linker will not automatically build a static lib if we build a DLL.
13928 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13929 enable_shared_with_static_runtimes_CXX=yes
13930 # Don't use ranlib
13931 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13932 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13933 lt_tool_outputfile="@TOOL_OUTPUT@"~
13934 case $lt_outputfile in
13935 *.exe|*.EXE) ;;
13936 *)
13937 lt_outputfile=$lt_outputfile.exe
13938 lt_tool_outputfile=$lt_tool_outputfile.exe
13939 ;;
13940 esac~
13941 func_to_tool_file "$lt_outputfile"~
13942 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13943 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13944 $RM "$lt_outputfile.manifest";
13945 fi'
13946 ;;
13947 *)
13948 # g++
13949 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13950 # as there is no search path for DLLs.
13951 hardcode_libdir_flag_spec_CXX='-L$libdir'
13952 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13953 allow_undefined_flag_CXX=unsupported
13954 always_export_symbols_CXX=no
13955 enable_shared_with_static_runtimes_CXX=yes
13956
13957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13958 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'
13959 # If the export-symbols file already is a .def file, use it as
13960 # is; otherwise, prepend EXPORTS...
13961 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13962 cp $export_symbols $output_objdir/$soname.def;
13963 else
13964 echo EXPORTS > $output_objdir/$soname.def;
13965 cat $export_symbols >> $output_objdir/$soname.def;
13966 fi~
13967 $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'
13968 else
13969 ld_shlibs_CXX=no
13970 fi
13971 ;;
13972 esac
13973 ;;
13974 darwin* | rhapsody*)
13975
13976
13977 archive_cmds_need_lc_CXX=no
13978 hardcode_direct_CXX=no
13979 hardcode_automatic_CXX=yes
13980 hardcode_shlibpath_var_CXX=unsupported
13981 if test yes = "$lt_cv_ld_force_load"; then
13982 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\"`'
13983
13984 else
13985 whole_archive_flag_spec_CXX=''
13986 fi
13987 link_all_deplibs_CXX=yes
13988 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13989 case $cc_basename in
13990 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13991 *) _lt_dar_can_shared=$GCC ;;
13992 esac
13993 if test yes = "$_lt_dar_can_shared"; then
13994 output_verbose_link_cmd=func_echo_all
13995 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"
13996 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13997 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"
13998 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"
13999 if test yes != "$lt_cv_apple_cc_single_mod"; then
14000 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"
14001 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"
14002 fi
14003
14004 else
14005 ld_shlibs_CXX=no
14006 fi
14007
14008 ;;
14009
14010 os2*)
14011 hardcode_libdir_flag_spec_CXX='-L$libdir'
14012 hardcode_minus_L_CXX=yes
14013 allow_undefined_flag_CXX=unsupported
14014 shrext_cmds=.dll
14015 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14018 $ECHO EXPORTS >> $output_objdir/$libname.def~
14019 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14021 emximp -o $lib $output_objdir/$libname.def'
14022 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14025 $ECHO EXPORTS >> $output_objdir/$libname.def~
14026 prefix_cmds="$SED"~
14027 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14028 prefix_cmds="$prefix_cmds -e 1d";
14029 fi~
14030 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14031 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14033 emximp -o $lib $output_objdir/$libname.def'
14034 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14035 enable_shared_with_static_runtimes_CXX=yes
14036 ;;
14037
14038 dgux*)
14039 case $cc_basename in
14040 ec++*)
14041 # FIXME: insert proper C++ library support
14042 ld_shlibs_CXX=no
14043 ;;
14044 ghcx*)
14045 # Green Hills C++ Compiler
14046 # FIXME: insert proper C++ library support
14047 ld_shlibs_CXX=no
14048 ;;
14049 *)
14050 # FIXME: insert proper C++ library support
14051 ld_shlibs_CXX=no
14052 ;;
14053 esac
14054 ;;
14055
14056 freebsd2.*)
14057 # C++ shared libraries reported to be fairly broken before
14058 # switch to ELF
14059 ld_shlibs_CXX=no
14060 ;;
14061
14062 freebsd-elf*)
14063 archive_cmds_need_lc_CXX=no
14064 ;;
14065
14066 freebsd* | dragonfly*)
14067 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14068 # conventions
14069 ld_shlibs_CXX=yes
14070 ;;
14071
14072 haiku*)
14073 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14074 link_all_deplibs_CXX=yes
14075 ;;
14076
14077 hpux9*)
14078 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14079 hardcode_libdir_separator_CXX=:
14080 export_dynamic_flag_spec_CXX='$wl-E'
14081 hardcode_direct_CXX=yes
14082 hardcode_minus_L_CXX=yes # Not in the search PATH,
14083 # but as the default
14084 # location of the library.
14085
14086 case $cc_basename in
14087 CC*)
14088 # FIXME: insert proper C++ library support
14089 ld_shlibs_CXX=no
14090 ;;
14091 aCC*)
14092 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'
14093 # Commands to make compiler produce verbose output that lists
14094 # what "hidden" libraries, object files and flags are used when
14095 # linking a shared library.
14096 #
14097 # There doesn't appear to be a way to prevent this compiler from
14098 # explicitly linking system object files so we need to strip them
14099 # from the output so that they don't get included in the library
14100 # dependencies.
14101 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"'
14102 ;;
14103 *)
14104 if test yes = "$GXX"; then
14105 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'
14106 else
14107 # FIXME: insert proper C++ library support
14108 ld_shlibs_CXX=no
14109 fi
14110 ;;
14111 esac
14112 ;;
14113
14114 hpux10*|hpux11*)
14115 if test no = "$with_gnu_ld"; then
14116 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14117 hardcode_libdir_separator_CXX=:
14118
14119 case $host_cpu in
14120 hppa*64*|ia64*)
14121 ;;
14122 *)
14123 export_dynamic_flag_spec_CXX='$wl-E'
14124 ;;
14125 esac
14126 fi
14127 case $host_cpu in
14128 hppa*64*|ia64*)
14129 hardcode_direct_CXX=no
14130 hardcode_shlibpath_var_CXX=no
14131 ;;
14132 *)
14133 hardcode_direct_CXX=yes
14134 hardcode_direct_absolute_CXX=yes
14135 hardcode_minus_L_CXX=yes # Not in the search PATH,
14136 # but as the default
14137 # location of the library.
14138 ;;
14139 esac
14140
14141 case $cc_basename in
14142 CC*)
14143 # FIXME: insert proper C++ library support
14144 ld_shlibs_CXX=no
14145 ;;
14146 aCC*)
14147 case $host_cpu in
14148 hppa*64*)
14149 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14150 ;;
14151 ia64*)
14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14153 ;;
14154 *)
14155 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14156 ;;
14157 esac
14158 # Commands to make compiler produce verbose output that lists
14159 # what "hidden" libraries, object files and flags are used when
14160 # linking a shared library.
14161 #
14162 # There doesn't appear to be a way to prevent this compiler from
14163 # explicitly linking system object files so we need to strip them
14164 # from the output so that they don't get included in the library
14165 # dependencies.
14166 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"'
14167 ;;
14168 *)
14169 if test yes = "$GXX"; then
14170 if test no = "$with_gnu_ld"; then
14171 case $host_cpu in
14172 hppa*64*)
14173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14174 ;;
14175 ia64*)
14176 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14177 ;;
14178 *)
14179 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'
14180 ;;
14181 esac
14182 fi
14183 else
14184 # FIXME: insert proper C++ library support
14185 ld_shlibs_CXX=no
14186 fi
14187 ;;
14188 esac
14189 ;;
14190
14191 interix[3-9]*)
14192 hardcode_direct_CXX=no
14193 hardcode_shlibpath_var_CXX=no
14194 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14195 export_dynamic_flag_spec_CXX='$wl-E'
14196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14197 # Instead, shared libraries are loaded at an image base (0x10000000 by
14198 # default) and relocated if they conflict, which is a slow very memory
14199 # consuming and fragmenting process. To avoid this, we pick a random,
14200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14202 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'
14203 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'
14204 ;;
14205 irix5* | irix6*)
14206 case $cc_basename in
14207 CC*)
14208 # SGI C++
14209 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'
14210
14211 # Archives containing C++ object files must be created using
14212 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14213 # necessary to make sure instantiated templates are included
14214 # in the archive.
14215 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14216 ;;
14217 *)
14218 if test yes = "$GXX"; then
14219 if test no = "$with_gnu_ld"; then
14220 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'
14221 else
14222 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'
14223 fi
14224 fi
14225 link_all_deplibs_CXX=yes
14226 ;;
14227 esac
14228 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14229 hardcode_libdir_separator_CXX=:
14230 inherit_rpath_CXX=yes
14231 ;;
14232
14233 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14234 case $cc_basename in
14235 KCC*)
14236 # Kuck and Associates, Inc. (KAI) C++ Compiler
14237
14238 # KCC will only create a shared library if the output file
14239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14240 # to its proper name (with version) after linking.
14241 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'
14242 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'
14243 # Commands to make compiler produce verbose output that lists
14244 # what "hidden" libraries, object files and flags are used when
14245 # linking a shared library.
14246 #
14247 # There doesn't appear to be a way to prevent this compiler from
14248 # explicitly linking system object files so we need to strip them
14249 # from the output so that they don't get included in the library
14250 # dependencies.
14251 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"'
14252
14253 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14254 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14255
14256 # Archives containing C++ object files must be created using
14257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14259 ;;
14260 icpc* | ecpc* )
14261 # Intel C++
14262 with_gnu_ld=yes
14263 # version 8.0 and above of icpc choke on multiply defined symbols
14264 # if we add $predep_objects and $postdep_objects, however 7.1 and
14265 # earlier do not add the objects themselves.
14266 case `$CC -V 2>&1` in
14267 *"Version 7."*)
14268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14269 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'
14270 ;;
14271 *) # Version 8.0 or newer
14272 tmp_idyn=
14273 case $host_cpu in
14274 ia64*) tmp_idyn=' -i_dynamic';;
14275 esac
14276 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14277 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'
14278 ;;
14279 esac
14280 archive_cmds_need_lc_CXX=no
14281 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14282 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14283 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14284 ;;
14285 pgCC* | pgcpp*)
14286 # Portland Group C++ compiler
14287 case `$CC -V` in
14288 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14289 prelink_cmds_CXX='tpldir=Template.dir~
14290 rm -rf $tpldir~
14291 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14292 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14293 old_archive_cmds_CXX='tpldir=Template.dir~
14294 rm -rf $tpldir~
14295 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14296 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14297 $RANLIB $oldlib'
14298 archive_cmds_CXX='tpldir=Template.dir~
14299 rm -rf $tpldir~
14300 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14301 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14302 archive_expsym_cmds_CXX='tpldir=Template.dir~
14303 rm -rf $tpldir~
14304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14305 $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'
14306 ;;
14307 *) # Version 6 and above use weak symbols
14308 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14309 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'
14310 ;;
14311 esac
14312
14313 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14314 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14315 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'
14316 ;;
14317 cxx*)
14318 # Compaq C++
14319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14320 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'
14321
14322 runpath_var=LD_RUN_PATH
14323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14324 hardcode_libdir_separator_CXX=:
14325
14326 # Commands to make compiler produce verbose output that lists
14327 # what "hidden" libraries, object files and flags are used when
14328 # linking a shared library.
14329 #
14330 # There doesn't appear to be a way to prevent this compiler from
14331 # explicitly linking system object files so we need to strip them
14332 # from the output so that they don't get included in the library
14333 # dependencies.
14334 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'
14335 ;;
14336 xl* | mpixl* | bgxl*)
14337 # IBM XL 8.0 on PPC, with GNU ld
14338 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14339 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14340 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14341 if test yes = "$supports_anon_versioning"; then
14342 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14344 echo "local: *; };" >> $output_objdir/$libname.ver~
14345 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14346 fi
14347 ;;
14348 *)
14349 case `$CC -V 2>&1 | sed 5q` in
14350 *Sun\ C*)
14351 # Sun C++ 5.9
14352 no_undefined_flag_CXX=' -zdefs'
14353 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14354 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'
14355 hardcode_libdir_flag_spec_CXX='-R$libdir'
14356 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'
14357 compiler_needs_object_CXX=yes
14358
14359 # Not sure whether something based on
14360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14361 # would be better.
14362 output_verbose_link_cmd='func_echo_all'
14363
14364 # Archives containing C++ object files must be created using
14365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14366 # necessary to make sure instantiated templates are included
14367 # in the archive.
14368 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14369 ;;
14370 esac
14371 ;;
14372 esac
14373 ;;
14374
14375 lynxos*)
14376 # FIXME: insert proper C++ library support
14377 ld_shlibs_CXX=no
14378 ;;
14379
14380 m88k*)
14381 # FIXME: insert proper C++ library support
14382 ld_shlibs_CXX=no
14383 ;;
14384
14385 mvs*)
14386 case $cc_basename in
14387 cxx*)
14388 # FIXME: insert proper C++ library support
14389 ld_shlibs_CXX=no
14390 ;;
14391 *)
14392 # FIXME: insert proper C++ library support
14393 ld_shlibs_CXX=no
14394 ;;
14395 esac
14396 ;;
14397
14398 netbsd*)
14399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14401 wlarc=
14402 hardcode_libdir_flag_spec_CXX='-R$libdir'
14403 hardcode_direct_CXX=yes
14404 hardcode_shlibpath_var_CXX=no
14405 fi
14406 # Workaround some broken pre-1.5 toolchains
14407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14408 ;;
14409
14410 *nto* | *qnx*)
14411 ld_shlibs_CXX=yes
14412 ;;
14413
14414 openbsd* | bitrig*)
14415 if test -f /usr/libexec/ld.so; then
14416 hardcode_direct_CXX=yes
14417 hardcode_shlibpath_var_CXX=no
14418 hardcode_direct_absolute_CXX=yes
14419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14420 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14422 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14423 export_dynamic_flag_spec_CXX='$wl-E'
14424 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14425 fi
14426 output_verbose_link_cmd=func_echo_all
14427 else
14428 ld_shlibs_CXX=no
14429 fi
14430 ;;
14431
14432 osf3* | osf4* | osf5*)
14433 case $cc_basename in
14434 KCC*)
14435 # Kuck and Associates, Inc. (KAI) C++ Compiler
14436
14437 # KCC will only create a shared library if the output file
14438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14439 # to its proper name (with version) after linking.
14440 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'
14441
14442 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14443 hardcode_libdir_separator_CXX=:
14444
14445 # Archives containing C++ object files must be created using
14446 # the KAI C++ compiler.
14447 case $host in
14448 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14449 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14450 esac
14451 ;;
14452 RCC*)
14453 # Rational C++ 2.4.1
14454 # FIXME: insert proper C++ library support
14455 ld_shlibs_CXX=no
14456 ;;
14457 cxx*)
14458 case $host in
14459 osf3*)
14460 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14461 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'
14462 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14463 ;;
14464 *)
14465 allow_undefined_flag_CXX=' -expect_unresolved \*'
14466 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'
14467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14468 echo "-hidden">> $lib.exp~
14469 $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~
14470 $RM $lib.exp'
14471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14472 ;;
14473 esac
14474
14475 hardcode_libdir_separator_CXX=:
14476
14477 # Commands to make compiler produce verbose output that lists
14478 # what "hidden" libraries, object files and flags are used when
14479 # linking a shared library.
14480 #
14481 # There doesn't appear to be a way to prevent this compiler from
14482 # explicitly linking system object files so we need to strip them
14483 # from the output so that they don't get included in the library
14484 # dependencies.
14485 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"'
14486 ;;
14487 *)
14488 if test yes,no = "$GXX,$with_gnu_ld"; then
14489 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14490 case $host in
14491 osf3*)
14492 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'
14493 ;;
14494 *)
14495 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'
14496 ;;
14497 esac
14498
14499 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14500 hardcode_libdir_separator_CXX=:
14501
14502 # Commands to make compiler produce verbose output that lists
14503 # what "hidden" libraries, object files and flags are used when
14504 # linking a shared library.
14505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14506
14507 else
14508 # FIXME: insert proper C++ library support
14509 ld_shlibs_CXX=no
14510 fi
14511 ;;
14512 esac
14513 ;;
14514
14515 psos*)
14516 # FIXME: insert proper C++ library support
14517 ld_shlibs_CXX=no
14518 ;;
14519
14520 sunos4*)
14521 case $cc_basename in
14522 CC*)
14523 # Sun C++ 4.x
14524 # FIXME: insert proper C++ library support
14525 ld_shlibs_CXX=no
14526 ;;
14527 lcc*)
14528 # Lucid
14529 # FIXME: insert proper C++ library support
14530 ld_shlibs_CXX=no
14531 ;;
14532 *)
14533 # FIXME: insert proper C++ library support
14534 ld_shlibs_CXX=no
14535 ;;
14536 esac
14537 ;;
14538
14539 solaris*)
14540 case $cc_basename in
14541 CC* | sunCC*)
14542 # Sun C++ 4.2, 5.x and Centerline C++
14543 archive_cmds_need_lc_CXX=yes
14544 no_undefined_flag_CXX=' -zdefs'
14545 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14547 $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'
14548
14549 hardcode_libdir_flag_spec_CXX='-R$libdir'
14550 hardcode_shlibpath_var_CXX=no
14551 case $host_os in
14552 solaris2.[0-5] | solaris2.[0-5].*) ;;
14553 *)
14554 # The compiler driver will combine and reorder linker options,
14555 # but understands '-z linker_flag'.
14556 # Supported since Solaris 2.6 (maybe 2.5.1?)
14557 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14558 ;;
14559 esac
14560 link_all_deplibs_CXX=yes
14561
14562 output_verbose_link_cmd='func_echo_all'
14563
14564 # Archives containing C++ object files must be created using
14565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14566 # necessary to make sure instantiated templates are included
14567 # in the archive.
14568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14569 ;;
14570 gcx*)
14571 # Green Hills C++ Compiler
14572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14573
14574 # The C++ compiler must be used to create the archive.
14575 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14576 ;;
14577 *)
14578 # GNU C++ compiler with Solaris linker
14579 if test yes,no = "$GXX,$with_gnu_ld"; then
14580 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14581 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14582 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14584 $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'
14585
14586 # Commands to make compiler produce verbose output that lists
14587 # what "hidden" libraries, object files and flags are used when
14588 # linking a shared library.
14589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14590 else
14591 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14592 # platform.
14593 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14595 $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'
14596
14597 # Commands to make compiler produce verbose output that lists
14598 # what "hidden" libraries, object files and flags are used when
14599 # linking a shared library.
14600 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14601 fi
14602
14603 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14604 case $host_os in
14605 solaris2.[0-5] | solaris2.[0-5].*) ;;
14606 *)
14607 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14608 ;;
14609 esac
14610 fi
14611 ;;
14612 esac
14613 ;;
14614
14615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14616 no_undefined_flag_CXX='$wl-z,text'
14617 archive_cmds_need_lc_CXX=no
14618 hardcode_shlibpath_var_CXX=no
14619 runpath_var='LD_RUN_PATH'
14620
14621 case $cc_basename in
14622 CC*)
14623 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 ;;
14626 *)
14627 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14629 ;;
14630 esac
14631 ;;
14632
14633 sysv5* | sco3.2v5* | sco5v6*)
14634 # Note: We CANNOT use -z defs as we might desire, because we do not
14635 # link with -lc, and that would cause any symbols used from libc to
14636 # always be unresolved, which means just about no library would
14637 # ever link correctly. If we're not using GNU ld we use -z text
14638 # though, which does catch some bad symbols but isn't as heavy-handed
14639 # as -z defs.
14640 no_undefined_flag_CXX='$wl-z,text'
14641 allow_undefined_flag_CXX='$wl-z,nodefs'
14642 archive_cmds_need_lc_CXX=no
14643 hardcode_shlibpath_var_CXX=no
14644 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14645 hardcode_libdir_separator_CXX=':'
14646 link_all_deplibs_CXX=yes
14647 export_dynamic_flag_spec_CXX='$wl-Bexport'
14648 runpath_var='LD_RUN_PATH'
14649
14650 case $cc_basename in
14651 CC*)
14652 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14655 '"$old_archive_cmds_CXX"
14656 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14657 '"$reload_cmds_CXX"
14658 ;;
14659 *)
14660 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14661 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14662 ;;
14663 esac
14664 ;;
14665
14666 tandem*)
14667 case $cc_basename in
14668 NCC*)
14669 # NonStop-UX NCC 3.20
14670 # FIXME: insert proper C++ library support
14671 ld_shlibs_CXX=no
14672 ;;
14673 *)
14674 # FIXME: insert proper C++ library support
14675 ld_shlibs_CXX=no
14676 ;;
14677 esac
14678 ;;
14679
14680 vxworks*)
14681 # FIXME: insert proper C++ library support
14682 ld_shlibs_CXX=no
14683 ;;
14684
14685 *)
14686 # FIXME: insert proper C++ library support
14687 ld_shlibs_CXX=no
14688 ;;
14689 esac
14690
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14692 $as_echo "$ld_shlibs_CXX" >&6; }
14693 test no = "$ld_shlibs_CXX" && can_build_shared=no
14694
14695 GCC_CXX=$GXX
14696 LD_CXX=$LD
14697
14698 ## CAVEAT EMPTOR:
14699 ## There is no encapsulation within the following macros, do not change
14700 ## the running order or otherwise move them around unless you know exactly
14701 ## what you are doing...
14702 # Dependencies to place before and after the object being linked:
14703 predep_objects_CXX=
14704 postdep_objects_CXX=
14705 predeps_CXX=
14706 postdeps_CXX=
14707 compiler_lib_search_path_CXX=
14708
14709 cat > conftest.$ac_ext <<_LT_EOF
14710 class Foo
14711 {
14712 public:
14713 Foo (void) { a = 0; }
14714 private:
14715 int a;
14716 };
14717 _LT_EOF
14718
14719
14720 _lt_libdeps_save_CFLAGS=$CFLAGS
14721 case "$CC $CFLAGS " in #(
14722 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14723 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14724 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14725 esac
14726
14727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731 test $ac_status = 0; }; then
14732 # Parse the compiler output and extract the necessary
14733 # objects, libraries and library flags.
14734
14735 # Sentinel used to keep track of whether or not we are before
14736 # the conftest object file.
14737 pre_test_object_deps_done=no
14738
14739 for p in `eval "$output_verbose_link_cmd"`; do
14740 case $prev$p in
14741
14742 -L* | -R* | -l*)
14743 # Some compilers place space between "-{L,R}" and the path.
14744 # Remove the space.
14745 if test x-L = "$p" ||
14746 test x-R = "$p"; then
14747 prev=$p
14748 continue
14749 fi
14750
14751 # Expand the sysroot to ease extracting the directories later.
14752 if test -z "$prev"; then
14753 case $p in
14754 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14755 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14756 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14757 esac
14758 fi
14759 case $p in
14760 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14761 esac
14762 if test no = "$pre_test_object_deps_done"; then
14763 case $prev in
14764 -L | -R)
14765 # Internal compiler library paths should come after those
14766 # provided the user. The postdeps already come after the
14767 # user supplied libs so there is no need to process them.
14768 if test -z "$compiler_lib_search_path_CXX"; then
14769 compiler_lib_search_path_CXX=$prev$p
14770 else
14771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14772 fi
14773 ;;
14774 # The "-l" case would never come before the object being
14775 # linked, so don't bother handling this case.
14776 esac
14777 else
14778 if test -z "$postdeps_CXX"; then
14779 postdeps_CXX=$prev$p
14780 else
14781 postdeps_CXX="${postdeps_CXX} $prev$p"
14782 fi
14783 fi
14784 prev=
14785 ;;
14786
14787 *.lto.$objext) ;; # Ignore GCC LTO objects
14788 *.$objext)
14789 # This assumes that the test object file only shows up
14790 # once in the compiler output.
14791 if test "$p" = "conftest.$objext"; then
14792 pre_test_object_deps_done=yes
14793 continue
14794 fi
14795
14796 if test no = "$pre_test_object_deps_done"; then
14797 if test -z "$predep_objects_CXX"; then
14798 predep_objects_CXX=$p
14799 else
14800 predep_objects_CXX="$predep_objects_CXX $p"
14801 fi
14802 else
14803 if test -z "$postdep_objects_CXX"; then
14804 postdep_objects_CXX=$p
14805 else
14806 postdep_objects_CXX="$postdep_objects_CXX $p"
14807 fi
14808 fi
14809 ;;
14810
14811 *) ;; # Ignore the rest.
14812
14813 esac
14814 done
14815
14816 # Clean up.
14817 rm -f a.out a.exe
14818 else
14819 echo "libtool.m4: error: problem compiling CXX test program"
14820 fi
14821
14822 $RM -f confest.$objext
14823 CFLAGS=$_lt_libdeps_save_CFLAGS
14824
14825 # PORTME: override above test on systems where it is broken
14826 case $host_os in
14827 interix[3-9]*)
14828 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14829 # hack all around it, let's just trust "g++" to DTRT.
14830 predep_objects_CXX=
14831 postdep_objects_CXX=
14832 postdeps_CXX=
14833 ;;
14834 esac
14835
14836
14837 case " $postdeps_CXX " in
14838 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14839 esac
14840 compiler_lib_search_dirs_CXX=
14841 if test -n "${compiler_lib_search_path_CXX}"; then
14842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14843 fi
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875 lt_prog_compiler_wl_CXX=
14876 lt_prog_compiler_pic_CXX=
14877 lt_prog_compiler_static_CXX=
14878
14879
14880 # C++ specific cases for pic, static, wl, etc.
14881 if test yes = "$GXX"; then
14882 lt_prog_compiler_wl_CXX='-Wl,'
14883 lt_prog_compiler_static_CXX='-static'
14884
14885 case $host_os in
14886 aix*)
14887 # All AIX code is PIC.
14888 if test ia64 = "$host_cpu"; then
14889 # AIX 5 now supports IA64 processor
14890 lt_prog_compiler_static_CXX='-Bstatic'
14891 fi
14892 lt_prog_compiler_pic_CXX='-fPIC'
14893 ;;
14894
14895 amigaos*)
14896 case $host_cpu in
14897 powerpc)
14898 # see comment about AmigaOS4 .so support
14899 lt_prog_compiler_pic_CXX='-fPIC'
14900 ;;
14901 m68k)
14902 # FIXME: we need at least 68020 code to build shared libraries, but
14903 # adding the '-m68020' flag to GCC prevents building anything better,
14904 # like '-m68040'.
14905 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14906 ;;
14907 esac
14908 ;;
14909
14910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14911 # PIC is the default for these OSes.
14912 ;;
14913 mingw* | cygwin* | os2* | pw32* | cegcc*)
14914 # This hack is so that the source file can tell whether it is being
14915 # built for inclusion in a dll (and should export symbols for example).
14916 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14917 # (--disable-auto-import) libraries
14918 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14919 case $host_os in
14920 os2*)
14921 lt_prog_compiler_static_CXX='$wl-static'
14922 ;;
14923 esac
14924 ;;
14925 darwin* | rhapsody*)
14926 # PIC is the default on this platform
14927 # Common symbols not allowed in MH_DYLIB files
14928 lt_prog_compiler_pic_CXX='-fno-common'
14929 ;;
14930 *djgpp*)
14931 # DJGPP does not support shared libraries at all
14932 lt_prog_compiler_pic_CXX=
14933 ;;
14934 haiku*)
14935 # PIC is the default for Haiku.
14936 # The "-static" flag exists, but is broken.
14937 lt_prog_compiler_static_CXX=
14938 ;;
14939 interix[3-9]*)
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14942 ;;
14943 sysv4*MP*)
14944 if test -d /usr/nec; then
14945 lt_prog_compiler_pic_CXX=-Kconform_pic
14946 fi
14947 ;;
14948 hpux*)
14949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14951 # sets the default TLS model and affects inlining.
14952 case $host_cpu in
14953 hppa*64*)
14954 ;;
14955 *)
14956 lt_prog_compiler_pic_CXX='-fPIC'
14957 ;;
14958 esac
14959 ;;
14960 *qnx* | *nto*)
14961 # QNX uses GNU C++, but need to define -shared option too, otherwise
14962 # it will coredump.
14963 lt_prog_compiler_pic_CXX='-fPIC -shared'
14964 ;;
14965 *)
14966 lt_prog_compiler_pic_CXX='-fPIC'
14967 ;;
14968 esac
14969 else
14970 case $host_os in
14971 aix[4-9]*)
14972 # All AIX code is PIC.
14973 if test ia64 = "$host_cpu"; then
14974 # AIX 5 now supports IA64 processor
14975 lt_prog_compiler_static_CXX='-Bstatic'
14976 else
14977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14978 fi
14979 ;;
14980 chorus*)
14981 case $cc_basename in
14982 cxch68*)
14983 # Green Hills C++ Compiler
14984 # _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"
14985 ;;
14986 esac
14987 ;;
14988 mingw* | cygwin* | os2* | pw32* | cegcc*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14992 ;;
14993 dgux*)
14994 case $cc_basename in
14995 ec++*)
14996 lt_prog_compiler_pic_CXX='-KPIC'
14997 ;;
14998 ghcx*)
14999 # Green Hills C++ Compiler
15000 lt_prog_compiler_pic_CXX='-pic'
15001 ;;
15002 *)
15003 ;;
15004 esac
15005 ;;
15006 freebsd* | dragonfly*)
15007 # FreeBSD uses GNU C++
15008 ;;
15009 hpux9* | hpux10* | hpux11*)
15010 case $cc_basename in
15011 CC*)
15012 lt_prog_compiler_wl_CXX='-Wl,'
15013 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15014 if test ia64 != "$host_cpu"; then
15015 lt_prog_compiler_pic_CXX='+Z'
15016 fi
15017 ;;
15018 aCC*)
15019 lt_prog_compiler_wl_CXX='-Wl,'
15020 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15021 case $host_cpu in
15022 hppa*64*|ia64*)
15023 # +Z the default
15024 ;;
15025 *)
15026 lt_prog_compiler_pic_CXX='+Z'
15027 ;;
15028 esac
15029 ;;
15030 *)
15031 ;;
15032 esac
15033 ;;
15034 interix*)
15035 # This is c89, which is MS Visual C++ (no shared libs)
15036 # Anyone wants to do a port?
15037 ;;
15038 irix5* | irix6* | nonstopux*)
15039 case $cc_basename in
15040 CC*)
15041 lt_prog_compiler_wl_CXX='-Wl,'
15042 lt_prog_compiler_static_CXX='-non_shared'
15043 # CC pic flag -KPIC is the default.
15044 ;;
15045 *)
15046 ;;
15047 esac
15048 ;;
15049 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15050 case $cc_basename in
15051 KCC*)
15052 # KAI C++ Compiler
15053 lt_prog_compiler_wl_CXX='--backend -Wl,'
15054 lt_prog_compiler_pic_CXX='-fPIC'
15055 ;;
15056 ecpc* )
15057 # old Intel C++ for x86_64, which still supported -KPIC.
15058 lt_prog_compiler_wl_CXX='-Wl,'
15059 lt_prog_compiler_pic_CXX='-KPIC'
15060 lt_prog_compiler_static_CXX='-static'
15061 ;;
15062 icpc* )
15063 # Intel C++, used to be incompatible with GCC.
15064 # ICC 10 doesn't accept -KPIC any more.
15065 lt_prog_compiler_wl_CXX='-Wl,'
15066 lt_prog_compiler_pic_CXX='-fPIC'
15067 lt_prog_compiler_static_CXX='-static'
15068 ;;
15069 pgCC* | pgcpp*)
15070 # Portland Group C++ compiler
15071 lt_prog_compiler_wl_CXX='-Wl,'
15072 lt_prog_compiler_pic_CXX='-fpic'
15073 lt_prog_compiler_static_CXX='-Bstatic'
15074 ;;
15075 cxx*)
15076 # Compaq C++
15077 # Make sure the PIC flag is empty. It appears that all Alpha
15078 # Linux and Compaq Tru64 Unix objects are PIC.
15079 lt_prog_compiler_pic_CXX=
15080 lt_prog_compiler_static_CXX='-non_shared'
15081 ;;
15082 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15083 # IBM XL 8.0, 9.0 on PPC and BlueGene
15084 lt_prog_compiler_wl_CXX='-Wl,'
15085 lt_prog_compiler_pic_CXX='-qpic'
15086 lt_prog_compiler_static_CXX='-qstaticlink'
15087 ;;
15088 *)
15089 case `$CC -V 2>&1 | sed 5q` in
15090 *Sun\ C*)
15091 # Sun C++ 5.9
15092 lt_prog_compiler_pic_CXX='-KPIC'
15093 lt_prog_compiler_static_CXX='-Bstatic'
15094 lt_prog_compiler_wl_CXX='-Qoption ld '
15095 ;;
15096 esac
15097 ;;
15098 esac
15099 ;;
15100 lynxos*)
15101 ;;
15102 m88k*)
15103 ;;
15104 mvs*)
15105 case $cc_basename in
15106 cxx*)
15107 lt_prog_compiler_pic_CXX='-W c,exportall'
15108 ;;
15109 *)
15110 ;;
15111 esac
15112 ;;
15113 netbsd*)
15114 ;;
15115 *qnx* | *nto*)
15116 # QNX uses GNU C++, but need to define -shared option too, otherwise
15117 # it will coredump.
15118 lt_prog_compiler_pic_CXX='-fPIC -shared'
15119 ;;
15120 osf3* | osf4* | osf5*)
15121 case $cc_basename in
15122 KCC*)
15123 lt_prog_compiler_wl_CXX='--backend -Wl,'
15124 ;;
15125 RCC*)
15126 # Rational C++ 2.4.1
15127 lt_prog_compiler_pic_CXX='-pic'
15128 ;;
15129 cxx*)
15130 # Digital/Compaq C++
15131 lt_prog_compiler_wl_CXX='-Wl,'
15132 # Make sure the PIC flag is empty. It appears that all Alpha
15133 # Linux and Compaq Tru64 Unix objects are PIC.
15134 lt_prog_compiler_pic_CXX=
15135 lt_prog_compiler_static_CXX='-non_shared'
15136 ;;
15137 *)
15138 ;;
15139 esac
15140 ;;
15141 psos*)
15142 ;;
15143 solaris*)
15144 case $cc_basename in
15145 CC* | sunCC*)
15146 # Sun C++ 4.2, 5.x and Centerline C++
15147 lt_prog_compiler_pic_CXX='-KPIC'
15148 lt_prog_compiler_static_CXX='-Bstatic'
15149 lt_prog_compiler_wl_CXX='-Qoption ld '
15150 ;;
15151 gcx*)
15152 # Green Hills C++ Compiler
15153 lt_prog_compiler_pic_CXX='-PIC'
15154 ;;
15155 *)
15156 ;;
15157 esac
15158 ;;
15159 sunos4*)
15160 case $cc_basename in
15161 CC*)
15162 # Sun C++ 4.x
15163 lt_prog_compiler_pic_CXX='-pic'
15164 lt_prog_compiler_static_CXX='-Bstatic'
15165 ;;
15166 lcc*)
15167 # Lucid
15168 lt_prog_compiler_pic_CXX='-pic'
15169 ;;
15170 *)
15171 ;;
15172 esac
15173 ;;
15174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15175 case $cc_basename in
15176 CC*)
15177 lt_prog_compiler_wl_CXX='-Wl,'
15178 lt_prog_compiler_pic_CXX='-KPIC'
15179 lt_prog_compiler_static_CXX='-Bstatic'
15180 ;;
15181 esac
15182 ;;
15183 tandem*)
15184 case $cc_basename in
15185 NCC*)
15186 # NonStop-UX NCC 3.20
15187 lt_prog_compiler_pic_CXX='-KPIC'
15188 ;;
15189 *)
15190 ;;
15191 esac
15192 ;;
15193 vxworks*)
15194 ;;
15195 *)
15196 lt_prog_compiler_can_build_shared_CXX=no
15197 ;;
15198 esac
15199 fi
15200
15201 case $host_os in
15202 # For platforms that do not support PIC, -DPIC is meaningless:
15203 *djgpp*)
15204 lt_prog_compiler_pic_CXX=
15205 ;;
15206 *)
15207 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15208 ;;
15209 esac
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15212 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15213 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15219 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15220 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15221
15222 #
15223 # Check to make sure the PIC flag actually works.
15224 #
15225 if test -n "$lt_prog_compiler_pic_CXX"; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15227 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15228 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15229 $as_echo_n "(cached) " >&6
15230 else
15231 lt_cv_prog_compiler_pic_works_CXX=no
15232 ac_outfile=conftest.$ac_objext
15233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15234 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15235 # Insert the option either (1) after the last *FLAGS variable, or
15236 # (2) before a word containing "conftest.", or (3) at the end.
15237 # Note that $ac_compile itself does not contain backslashes and begins
15238 # with a dollar sign (not a hyphen), so the echo should work correctly.
15239 # The option is referenced via a variable to avoid confusing sed.
15240 lt_compile=`echo "$ac_compile" | $SED \
15241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15243 -e 's:$: $lt_compiler_flag:'`
15244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15245 (eval "$lt_compile" 2>conftest.err)
15246 ac_status=$?
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 if (exit $ac_status) && test -s "$ac_outfile"; then
15250 # The compiler can only warn and ignore the option if not recognized
15251 # So say no if there are warnings other than the usual output.
15252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15255 lt_cv_prog_compiler_pic_works_CXX=yes
15256 fi
15257 fi
15258 $RM -r conftest*
15259
15260 fi
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15262 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15263
15264 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15265 case $lt_prog_compiler_pic_CXX in
15266 "" | " "*) ;;
15267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15268 esac
15269 else
15270 lt_prog_compiler_pic_CXX=
15271 lt_prog_compiler_can_build_shared_CXX=no
15272 fi
15273
15274 fi
15275
15276
15277
15278
15279
15280 #
15281 # Check to make sure the static flag actually works.
15282 #
15283 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15286 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15287 $as_echo_n "(cached) " >&6
15288 else
15289 lt_cv_prog_compiler_static_works_CXX=no
15290 save_LDFLAGS=$LDFLAGS
15291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15294 # The linker can only warn and ignore the option if not recognized
15295 # So say no if there are warnings
15296 if test -s conftest.err; then
15297 # Append any errors to the config.log.
15298 cat conftest.err 1>&5
15299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15301 if diff conftest.exp conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_static_works_CXX=yes
15303 fi
15304 else
15305 lt_cv_prog_compiler_static_works_CXX=yes
15306 fi
15307 fi
15308 $RM -r conftest*
15309 LDFLAGS=$save_LDFLAGS
15310
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15313 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15314
15315 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15316 :
15317 else
15318 lt_prog_compiler_static_CXX=
15319 fi
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15326 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 lt_cv_prog_compiler_c_o_CXX=no
15330 $RM -r conftest 2>/dev/null
15331 mkdir conftest
15332 cd conftest
15333 mkdir out
15334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336 lt_compiler_flag="-o out/conftest2.$ac_objext"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 lt_compile=`echo "$ac_compile" | $SED \
15342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344 -e 's:$: $lt_compiler_flag:'`
15345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15346 (eval "$lt_compile" 2>out/conftest.err)
15347 ac_status=$?
15348 cat out/conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351 then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_c_o_CXX=yes
15358 fi
15359 fi
15360 chmod u+w . 2>&5
15361 $RM -r conftest*
15362 # SGI C++ compiler will create directory out/ii_files/ for
15363 # template instantiation
15364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15365 $RM out/* && rmdir out
15366 cd ..
15367 $RM -r conftest
15368 $RM -r conftest*
15369
15370 fi
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15372 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15373
15374
15375
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15378 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15379 $as_echo_n "(cached) " >&6
15380 else
15381 lt_cv_prog_compiler_c_o_CXX=no
15382 $RM -r conftest 2>/dev/null
15383 mkdir conftest
15384 cd conftest
15385 mkdir out
15386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15387
15388 lt_compiler_flag="-o out/conftest2.$ac_objext"
15389 # Insert the option either (1) after the last *FLAGS variable, or
15390 # (2) before a word containing "conftest.", or (3) at the end.
15391 # Note that $ac_compile itself does not contain backslashes and begins
15392 # with a dollar sign (not a hyphen), so the echo should work correctly.
15393 lt_compile=`echo "$ac_compile" | $SED \
15394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396 -e 's:$: $lt_compiler_flag:'`
15397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15398 (eval "$lt_compile" 2>out/conftest.err)
15399 ac_status=$?
15400 cat out/conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15403 then
15404 # The compiler can only warn and ignore the option if not recognized
15405 # So say no if there are warnings
15406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15409 lt_cv_prog_compiler_c_o_CXX=yes
15410 fi
15411 fi
15412 chmod u+w . 2>&5
15413 $RM -r conftest*
15414 # SGI C++ compiler will create directory out/ii_files/ for
15415 # template instantiation
15416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15417 $RM out/* && rmdir out
15418 cd ..
15419 $RM -r conftest
15420 $RM -r conftest*
15421
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15425
15426
15427
15428
15429 hard_links=nottested
15430 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15431 # do not overwrite the value of need_locks provided by the user
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15433 $as_echo_n "checking if we can lock with hard links... " >&6; }
15434 hard_links=yes
15435 $RM -r conftest*
15436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437 touch conftest.a
15438 ln conftest.a conftest.b 2>&5 || hard_links=no
15439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15441 $as_echo "$hard_links" >&6; }
15442 if test no = "$hard_links"; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15444 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15445 need_locks=warn
15446 fi
15447 else
15448 need_locks=no
15449 fi
15450
15451
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15454 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15455
15456 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15457 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15458 case $host_os in
15459 aix[4-9]*)
15460 # If we're using GNU nm, then we don't want the "-C" option.
15461 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15462 # Without the "-l" option, or with the "-B" option, AIX nm treats
15463 # weak defined symbols like other global defined symbols, whereas
15464 # GNU nm marks them as "W".
15465 # While the 'weak' keyword is ignored in the Export File, we need
15466 # it in the Import File for the 'aix-soname' feature, so we have
15467 # to replace the "-B" option with "-P" for AIX nm.
15468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15469 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'
15470 else
15471 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'
15472 fi
15473 ;;
15474 pw32*)
15475 export_symbols_cmds_CXX=$ltdll_cmds
15476 ;;
15477 cygwin* | mingw* | cegcc*)
15478 case $cc_basename in
15479 cl*)
15480 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15481 ;;
15482 *)
15483 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'
15484 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15485 ;;
15486 esac
15487 ;;
15488 *)
15489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15490 ;;
15491 esac
15492
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15494 $as_echo "$ld_shlibs_CXX" >&6; }
15495 test no = "$ld_shlibs_CXX" && can_build_shared=no
15496
15497 with_gnu_ld_CXX=$with_gnu_ld
15498
15499
15500
15501
15502
15503
15504 #
15505 # Do we need to explicitly link libc?
15506 #
15507 case "x$archive_cmds_need_lc_CXX" in
15508 x|xyes)
15509 # Assume -lc should be added
15510 archive_cmds_need_lc_CXX=yes
15511
15512 if test yes,yes = "$GCC,$enable_shared"; then
15513 case $archive_cmds_CXX in
15514 *'~'*)
15515 # FIXME: we may have to deal with multi-command sequences.
15516 ;;
15517 '$CC '*)
15518 # Test whether the compiler implicitly links with -lc since on some
15519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15520 # to ld, don't add -lc before -lgcc.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15522 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15523 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 $RM -r conftest*
15527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15528
15529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15530 (eval $ac_compile) 2>&5
15531 ac_status=$?
15532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15533 test $ac_status = 0; } 2>conftest.err; then
15534 soname=conftest
15535 lib=conftest
15536 libobjs=conftest.$ac_objext
15537 deplibs=
15538 wl=$lt_prog_compiler_wl_CXX
15539 pic_flag=$lt_prog_compiler_pic_CXX
15540 compiler_flags=-v
15541 linker_flags=-v
15542 verstring=
15543 output_objdir=.
15544 libname=conftest
15545 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15546 allow_undefined_flag_CXX=
15547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15548 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15549 ac_status=$?
15550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15551 test $ac_status = 0; }
15552 then
15553 lt_cv_archive_cmds_need_lc_CXX=no
15554 else
15555 lt_cv_archive_cmds_need_lc_CXX=yes
15556 fi
15557 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15558 else
15559 cat conftest.err 1>&5
15560 fi
15561 $RM -r conftest*
15562
15563 fi
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15565 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15566 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15567 ;;
15568 esac
15569 fi
15570 ;;
15571 esac
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15635 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15636
15637 library_names_spec=
15638 libname_spec='lib$name'
15639 soname_spec=
15640 shrext_cmds=.so
15641 postinstall_cmds=
15642 postuninstall_cmds=
15643 finish_cmds=
15644 finish_eval=
15645 shlibpath_var=
15646 shlibpath_overrides_runpath=unknown
15647 version_type=none
15648 dynamic_linker="$host_os ld.so"
15649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15650 need_lib_prefix=unknown
15651 hardcode_into_libs=no
15652
15653 # when you set need_version to no, make sure it does not cause -set_version
15654 # flags to be left without arguments
15655 need_version=unknown
15656
15657
15658
15659 case $host_os in
15660 aix3*)
15661 version_type=linux # correct to gnu/linux during the next big refactor
15662 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15663 shlibpath_var=LIBPATH
15664
15665 # AIX 3 has no versioning support, so we append a major version to the name.
15666 soname_spec='$libname$release$shared_ext$major'
15667 ;;
15668
15669 aix[4-9]*)
15670 version_type=linux # correct to gnu/linux during the next big refactor
15671 need_lib_prefix=no
15672 need_version=no
15673 hardcode_into_libs=yes
15674 if test ia64 = "$host_cpu"; then
15675 # AIX 5 supports IA64
15676 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 else
15679 # With GCC up to 2.95.x, collect2 would create an import file
15680 # for dependence libraries. The import file would start with
15681 # the line '#! .'. This would cause the generated library to
15682 # depend on '.', always an invalid library. This was fixed in
15683 # development snapshots of GCC prior to 3.0.
15684 case $host_os in
15685 aix4 | aix4.[01] | aix4.[01].*)
15686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687 echo ' yes '
15688 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15689 :
15690 else
15691 can_build_shared=no
15692 fi
15693 ;;
15694 esac
15695 # Using Import Files as archive members, it is possible to support
15696 # filename-based versioning of shared library archives on AIX. While
15697 # this would work for both with and without runtime linking, it will
15698 # prevent static linking of such archives. So we do filename-based
15699 # shared library versioning with .so extension only, which is used
15700 # when both runtime linking and shared linking is enabled.
15701 # Unfortunately, runtime linking may impact performance, so we do
15702 # not want this to be the default eventually. Also, we use the
15703 # versioned .so libs for executables only if there is the -brtl
15704 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15705 # To allow for filename-based versioning support, we need to create
15706 # libNAME.so.V as an archive file, containing:
15707 # *) an Import File, referring to the versioned filename of the
15708 # archive as well as the shared archive member, telling the
15709 # bitwidth (32 or 64) of that shared object, and providing the
15710 # list of exported symbols of that shared object, eventually
15711 # decorated with the 'weak' keyword
15712 # *) the shared object with the F_LOADONLY flag set, to really avoid
15713 # it being seen by the linker.
15714 # At run time we better use the real file rather than another symlink,
15715 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15716
15717 case $with_aix_soname,$aix_use_runtimelinking in
15718 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15719 # soname into executable. Probably we can add versioning support to
15720 # collect2, so additional links can be useful in future.
15721 aix,yes) # traditional libtool
15722 dynamic_linker='AIX unversionable lib.so'
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
15726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15727 ;;
15728 aix,no) # traditional AIX only
15729 dynamic_linker='AIX lib.a(lib.so.V)'
15730 # We preserve .a as extension for shared libraries through AIX4.2
15731 # and later when we are not doing run time linking.
15732 library_names_spec='$libname$release.a $libname.a'
15733 soname_spec='$libname$release$shared_ext$major'
15734 ;;
15735 svr4,*) # full svr4 only
15736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15738 # We do not specify a path in Import Files, so LIBPATH fires.
15739 shlibpath_overrides_runpath=yes
15740 ;;
15741 *,yes) # both, prefer svr4
15742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15744 # unpreferred sharedlib libNAME.a needs extra handling
15745 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"'
15746 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"'
15747 # We do not specify a path in Import Files, so LIBPATH fires.
15748 shlibpath_overrides_runpath=yes
15749 ;;
15750 *,no) # both, prefer aix
15751 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15752 library_names_spec='$libname$release.a $libname.a'
15753 soname_spec='$libname$release$shared_ext$major'
15754 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15755 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)'
15756 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"'
15757 ;;
15758 esac
15759 shlibpath_var=LIBPATH
15760 fi
15761 ;;
15762
15763 amigaos*)
15764 case $host_cpu in
15765 powerpc)
15766 # Since July 2007 AmigaOS4 officially supports .so libraries.
15767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15769 ;;
15770 m68k)
15771 library_names_spec='$libname.ixlibrary $libname.a'
15772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15773 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'
15774 ;;
15775 esac
15776 ;;
15777
15778 beos*)
15779 library_names_spec='$libname$shared_ext'
15780 dynamic_linker="$host_os ld.so"
15781 shlibpath_var=LIBRARY_PATH
15782 ;;
15783
15784 bsdi[45]*)
15785 version_type=linux # correct to gnu/linux during the next big refactor
15786 need_version=no
15787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15788 soname_spec='$libname$release$shared_ext$major'
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15796 ;;
15797
15798 cygwin* | mingw* | pw32* | cegcc*)
15799 version_type=windows
15800 shrext_cmds=.dll
15801 need_version=no
15802 need_lib_prefix=no
15803
15804 case $GCC,$cc_basename in
15805 yes,*)
15806 # gcc
15807 library_names_spec='$libname.dll.a'
15808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15809 postinstall_cmds='base_file=`basename \$file`~
15810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15811 dldir=$destdir/`dirname \$dlpath`~
15812 test -d \$dldir || mkdir -p \$dldir~
15813 $install_prog $dir/$dlname \$dldir/$dlname~
15814 chmod a+x \$dldir/$dlname~
15815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15817 fi'
15818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15819 dlpath=$dir/\$dldll~
15820 $RM \$dlpath'
15821 shlibpath_overrides_runpath=yes
15822
15823 case $host_os in
15824 cygwin*)
15825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15826 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15827
15828 ;;
15829 mingw* | cegcc*)
15830 # MinGW DLLs use traditional 'lib' prefix
15831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15832 ;;
15833 pw32*)
15834 # pw32 DLLs use 'pw' prefix rather than 'lib'
15835 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15836 ;;
15837 esac
15838 dynamic_linker='Win32 ld.exe'
15839 ;;
15840
15841 *,cl*)
15842 # Native MSVC
15843 libname_spec='$name'
15844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15845 library_names_spec='$libname.dll.lib'
15846
15847 case $build_os in
15848 mingw*)
15849 sys_lib_search_path_spec=
15850 lt_save_ifs=$IFS
15851 IFS=';'
15852 for lt_path in $LIB
15853 do
15854 IFS=$lt_save_ifs
15855 # Let DOS variable expansion print the short 8.3 style file name.
15856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15858 done
15859 IFS=$lt_save_ifs
15860 # Convert to MSYS style.
15861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15862 ;;
15863 cygwin*)
15864 # Convert to unix form, then to dos form, then back to unix form
15865 # but this time dos style (no spaces!) so that the unix form looks
15866 # like /cygdrive/c/PROGRA~1:/cygdr...
15867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15870 ;;
15871 *)
15872 sys_lib_search_path_spec=$LIB
15873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15874 # It is most probably a Windows format PATH.
15875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15876 else
15877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15878 fi
15879 # FIXME: find the short name or the path components, as spaces are
15880 # common. (e.g. "Program Files" -> "PROGRA~1")
15881 ;;
15882 esac
15883
15884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15885 postinstall_cmds='base_file=`basename \$file`~
15886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15887 dldir=$destdir/`dirname \$dlpath`~
15888 test -d \$dldir || mkdir -p \$dldir~
15889 $install_prog $dir/$dlname \$dldir/$dlname'
15890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15891 dlpath=$dir/\$dldll~
15892 $RM \$dlpath'
15893 shlibpath_overrides_runpath=yes
15894 dynamic_linker='Win32 link.exe'
15895 ;;
15896
15897 *)
15898 # Assume MSVC wrapper
15899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15900 dynamic_linker='Win32 ld.exe'
15901 ;;
15902 esac
15903 # FIXME: first we should search . and the directory the executable is in
15904 shlibpath_var=PATH
15905 ;;
15906
15907 darwin* | rhapsody*)
15908 dynamic_linker="$host_os dyld"
15909 version_type=darwin
15910 need_lib_prefix=no
15911 need_version=no
15912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15913 soname_spec='$libname$release$major$shared_ext'
15914 shlibpath_overrides_runpath=yes
15915 shlibpath_var=DYLD_LIBRARY_PATH
15916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15917
15918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15919 ;;
15920
15921 dgux*)
15922 version_type=linux # correct to gnu/linux during the next big refactor
15923 need_lib_prefix=no
15924 need_version=no
15925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15926 soname_spec='$libname$release$shared_ext$major'
15927 shlibpath_var=LD_LIBRARY_PATH
15928 ;;
15929
15930 freebsd* | dragonfly*)
15931 # DragonFly does not have aout. When/if they implement a new
15932 # versioning mechanism, adjust this.
15933 if test -x /usr/bin/objformat; then
15934 objformat=`/usr/bin/objformat`
15935 else
15936 case $host_os in
15937 freebsd[23].*) objformat=aout ;;
15938 *) objformat=elf ;;
15939 esac
15940 fi
15941 version_type=freebsd-$objformat
15942 case $version_type in
15943 freebsd-elf*)
15944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15945 soname_spec='$libname$release$shared_ext$major'
15946 need_version=no
15947 need_lib_prefix=no
15948 ;;
15949 freebsd-*)
15950 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15951 need_version=yes
15952 ;;
15953 esac
15954 shlibpath_var=LD_LIBRARY_PATH
15955 case $host_os in
15956 freebsd2.*)
15957 shlibpath_overrides_runpath=yes
15958 ;;
15959 freebsd3.[01]* | freebsdelf3.[01]*)
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15962 ;;
15963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15965 shlibpath_overrides_runpath=no
15966 hardcode_into_libs=yes
15967 ;;
15968 *) # from 4.6 on, and DragonFly
15969 shlibpath_overrides_runpath=yes
15970 hardcode_into_libs=yes
15971 ;;
15972 esac
15973 ;;
15974
15975 haiku*)
15976 version_type=linux # correct to gnu/linux during the next big refactor
15977 need_lib_prefix=no
15978 need_version=no
15979 dynamic_linker="$host_os runtime_loader"
15980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15981 soname_spec='$libname$release$shared_ext$major'
15982 shlibpath_var=LIBRARY_PATH
15983 shlibpath_overrides_runpath=no
15984 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15985 hardcode_into_libs=yes
15986 ;;
15987
15988 hpux9* | hpux10* | hpux11*)
15989 # Give a soname corresponding to the major version so that dld.sl refuses to
15990 # link against other versions.
15991 version_type=sunos
15992 need_lib_prefix=no
15993 need_version=no
15994 case $host_cpu in
15995 ia64*)
15996 shrext_cmds='.so'
15997 hardcode_into_libs=yes
15998 dynamic_linker="$host_os dld.so"
15999 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16002 soname_spec='$libname$release$shared_ext$major'
16003 if test 32 = "$HPUX_IA64_MODE"; then
16004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16005 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16006 else
16007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16008 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16009 fi
16010 ;;
16011 hppa*64*)
16012 shrext_cmds='.sl'
16013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.sl"
16015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16018 soname_spec='$libname$release$shared_ext$major'
16019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021 ;;
16022 *)
16023 shrext_cmds='.sl'
16024 dynamic_linker="$host_os dld.sl"
16025 shlibpath_var=SHLIB_PATH
16026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16028 soname_spec='$libname$release$shared_ext$major'
16029 ;;
16030 esac
16031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16032 postinstall_cmds='chmod 555 $lib'
16033 # or fails outright, so override atomically:
16034 install_override_mode=555
16035 ;;
16036
16037 interix[3-9]*)
16038 version_type=linux # correct to gnu/linux during the next big refactor
16039 need_lib_prefix=no
16040 need_version=no
16041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16042 soname_spec='$libname$release$shared_ext$major'
16043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=no
16046 hardcode_into_libs=yes
16047 ;;
16048
16049 irix5* | irix6* | nonstopux*)
16050 case $host_os in
16051 nonstopux*) version_type=nonstopux ;;
16052 *)
16053 if test yes = "$lt_cv_prog_gnu_ld"; then
16054 version_type=linux # correct to gnu/linux during the next big refactor
16055 else
16056 version_type=irix
16057 fi ;;
16058 esac
16059 need_lib_prefix=no
16060 need_version=no
16061 soname_spec='$libname$release$shared_ext$major'
16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16063 case $host_os in
16064 irix5* | nonstopux*)
16065 libsuff= shlibsuff=
16066 ;;
16067 *)
16068 case $LD in # libtool.m4 will add one of these switches to LD
16069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16070 libsuff= shlibsuff= libmagic=32-bit;;
16071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16072 libsuff=32 shlibsuff=N32 libmagic=N32;;
16073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16075 *) libsuff= shlibsuff= libmagic=never-match;;
16076 esac
16077 ;;
16078 esac
16079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16080 shlibpath_overrides_runpath=no
16081 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16082 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16083 hardcode_into_libs=yes
16084 ;;
16085
16086 # No shared lib support for Linux oldld, aout, or coff.
16087 linux*oldld* | linux*aout* | linux*coff*)
16088 dynamic_linker=no
16089 ;;
16090
16091 linux*android*)
16092 version_type=none # Android doesn't support versioned libraries.
16093 need_lib_prefix=no
16094 need_version=no
16095 library_names_spec='$libname$release$shared_ext'
16096 soname_spec='$libname$release$shared_ext'
16097 finish_cmds=
16098 shlibpath_var=LD_LIBRARY_PATH
16099 shlibpath_overrides_runpath=yes
16100
16101 # This implies no fast_install, which is unacceptable.
16102 # Some rework will be needed to allow for fast_install
16103 # before this can be enabled.
16104 hardcode_into_libs=yes
16105
16106 dynamic_linker='Android linker'
16107 # Don't embed -rpath directories since the linker doesn't support them.
16108 hardcode_libdir_flag_spec_CXX='-L$libdir'
16109 ;;
16110
16111 # This must be glibc/ELF.
16112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16113 version_type=linux # correct to gnu/linux during the next big refactor
16114 need_lib_prefix=no
16115 need_version=no
16116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16117 soname_spec='$libname$release$shared_ext$major'
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
16121
16122 # Some binutils ld are patched to set DT_RUNPATH
16123 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 lt_cv_shlibpath_overrides_runpath=no
16127 save_LDFLAGS=$LDFLAGS
16128 save_libdir=$libdir
16129 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16130 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16133
16134 int
16135 main ()
16136 {
16137
16138 ;
16139 return 0;
16140 }
16141 _ACEOF
16142 if ac_fn_cxx_try_link "$LINENO"; then :
16143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16144 lt_cv_shlibpath_overrides_runpath=yes
16145 fi
16146 fi
16147 rm -f core conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
16149 LDFLAGS=$save_LDFLAGS
16150 libdir=$save_libdir
16151
16152 fi
16153
16154 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16155
16156 # This implies no fast_install, which is unacceptable.
16157 # Some rework will be needed to allow for fast_install
16158 # before this can be enabled.
16159 hardcode_into_libs=yes
16160
16161 # Ideally, we could use ldconfig to report *all* directores which are
16162 # searched for libraries, however this is still not possible. Aside from not
16163 # being certain /sbin/ldconfig is available, command
16164 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16165 # even though it is searched at run-time. Try to do the best guess by
16166 # appending ld.so.conf contents (and includes) to the search path.
16167 if test -f /etc/ld.so.conf; then
16168 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' ' '`
16169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16170 fi
16171
16172 # We used to test for /lib/ld.so.1 and disable shared libraries on
16173 # powerpc, because MkLinux only supported shared libraries with the
16174 # GNU dynamic linker. Since this was broken with cross compilers,
16175 # most powerpc-linux boxes support dynamic linking these days and
16176 # people can always --disable-shared, the test was removed, and we
16177 # assume the GNU/Linux dynamic linker is in use.
16178 dynamic_linker='GNU/Linux ld.so'
16179 ;;
16180
16181 netbsd*)
16182 version_type=sunos
16183 need_lib_prefix=no
16184 need_version=no
16185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16188 dynamic_linker='NetBSD (a.out) ld.so'
16189 else
16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16191 soname_spec='$libname$release$shared_ext$major'
16192 dynamic_linker='NetBSD ld.elf_so'
16193 fi
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
16197 ;;
16198
16199 newsos6)
16200 version_type=linux # correct to gnu/linux during the next big refactor
16201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=yes
16204 ;;
16205
16206 *nto* | *qnx*)
16207 version_type=qnx
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16211 soname_spec='$libname$release$shared_ext$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16215 dynamic_linker='ldqnx.so'
16216 ;;
16217
16218 openbsd* | bitrig*)
16219 version_type=sunos
16220 sys_lib_dlsearch_path_spec=/usr/lib
16221 need_lib_prefix=no
16222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16223 need_version=no
16224 else
16225 need_version=yes
16226 fi
16227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 ;;
16232
16233 os2*)
16234 libname_spec='$name'
16235 version_type=windows
16236 shrext_cmds=.dll
16237 need_version=no
16238 need_lib_prefix=no
16239 # OS/2 can only load a DLL with a base name of 8 characters or less.
16240 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16241 v=$($ECHO $release$versuffix | tr -d .-);
16242 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16243 $ECHO $n$v`$shared_ext'
16244 library_names_spec='${libname}_dll.$libext'
16245 dynamic_linker='OS/2 ld.exe'
16246 shlibpath_var=BEGINLIBPATH
16247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16249 postinstall_cmds='base_file=`basename \$file`~
16250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16251 dldir=$destdir/`dirname \$dlpath`~
16252 test -d \$dldir || mkdir -p \$dldir~
16253 $install_prog $dir/$dlname \$dldir/$dlname~
16254 chmod a+x \$dldir/$dlname~
16255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16257 fi'
16258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16259 dlpath=$dir/\$dldll~
16260 $RM \$dlpath'
16261 ;;
16262
16263 osf3* | osf4* | osf5*)
16264 version_type=osf
16265 need_lib_prefix=no
16266 need_version=no
16267 soname_spec='$libname$release$shared_ext$major'
16268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 ;;
16273
16274 rdos*)
16275 dynamic_linker=no
16276 ;;
16277
16278 solaris*)
16279 version_type=linux # correct to gnu/linux during the next big refactor
16280 need_lib_prefix=no
16281 need_version=no
16282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16283 soname_spec='$libname$release$shared_ext$major'
16284 shlibpath_var=LD_LIBRARY_PATH
16285 shlibpath_overrides_runpath=yes
16286 hardcode_into_libs=yes
16287 # ldd complains unless libraries are executable
16288 postinstall_cmds='chmod +x $lib'
16289 ;;
16290
16291 sunos4*)
16292 version_type=sunos
16293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16297 if test yes = "$with_gnu_ld"; then
16298 need_lib_prefix=no
16299 fi
16300 need_version=yes
16301 ;;
16302
16303 sysv4 | sysv4.3*)
16304 version_type=linux # correct to gnu/linux during the next big refactor
16305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16306 soname_spec='$libname$release$shared_ext$major'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 case $host_vendor in
16309 sni)
16310 shlibpath_overrides_runpath=no
16311 need_lib_prefix=no
16312 runpath_var=LD_RUN_PATH
16313 ;;
16314 siemens)
16315 need_lib_prefix=no
16316 ;;
16317 motorola)
16318 need_lib_prefix=no
16319 need_version=no
16320 shlibpath_overrides_runpath=no
16321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16322 ;;
16323 esac
16324 ;;
16325
16326 sysv4*MP*)
16327 if test -d /usr/nec; then
16328 version_type=linux # correct to gnu/linux during the next big refactor
16329 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16330 soname_spec='$libname$shared_ext.$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 fi
16333 ;;
16334
16335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16336 version_type=sco
16337 need_lib_prefix=no
16338 need_version=no
16339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16340 soname_spec='$libname$release$shared_ext$major'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16343 hardcode_into_libs=yes
16344 if test yes = "$with_gnu_ld"; then
16345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16346 else
16347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16348 case $host_os in
16349 sco3.2v5*)
16350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16351 ;;
16352 esac
16353 fi
16354 sys_lib_dlsearch_path_spec='/usr/lib'
16355 ;;
16356
16357 tpf*)
16358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16359 version_type=linux # correct to gnu/linux during the next big refactor
16360 need_lib_prefix=no
16361 need_version=no
16362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=no
16365 hardcode_into_libs=yes
16366 ;;
16367
16368 uts4*)
16369 version_type=linux # correct to gnu/linux during the next big refactor
16370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371 soname_spec='$libname$release$shared_ext$major'
16372 shlibpath_var=LD_LIBRARY_PATH
16373 ;;
16374
16375 *)
16376 dynamic_linker=no
16377 ;;
16378 esac
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16380 $as_echo "$dynamic_linker" >&6; }
16381 test no = "$dynamic_linker" && can_build_shared=no
16382
16383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16384 if test yes = "$GCC"; then
16385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16386 fi
16387
16388 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16389 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16390 fi
16391
16392 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16393 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16394 fi
16395
16396 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16397 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16398
16399 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16400 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16401
16402 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16403 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16446 hardcode_action_CXX=
16447 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16448 test -n "$runpath_var_CXX" ||
16449 test yes = "$hardcode_automatic_CXX"; then
16450
16451 # We can hardcode non-existent directories.
16452 if test no != "$hardcode_direct_CXX" &&
16453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16454 # have to relink, otherwise we might link with an installed library
16455 # when we should be linking with a yet-to-be-installed one
16456 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16457 test no != "$hardcode_minus_L_CXX"; then
16458 # Linking always hardcodes the temporary library directory.
16459 hardcode_action_CXX=relink
16460 else
16461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16462 hardcode_action_CXX=immediate
16463 fi
16464 else
16465 # We cannot hardcode anything, or else we can only hardcode existing
16466 # directories.
16467 hardcode_action_CXX=unsupported
16468 fi
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16470 $as_echo "$hardcode_action_CXX" >&6; }
16471
16472 if test relink = "$hardcode_action_CXX" ||
16473 test yes = "$inherit_rpath_CXX"; then
16474 # Fast installation is not supported
16475 enable_fast_install=no
16476 elif test yes = "$shlibpath_overrides_runpath" ||
16477 test no = "$enable_shared"; then
16478 # Fast installation is not necessary
16479 enable_fast_install=needless
16480 fi
16481
16482
16483
16484
16485
16486
16487
16488 fi # test -n "$compiler"
16489
16490 CC=$lt_save_CC
16491 CFLAGS=$lt_save_CFLAGS
16492 LDCXX=$LD
16493 LD=$lt_save_LD
16494 GCC=$lt_save_GCC
16495 with_gnu_ld=$lt_save_with_gnu_ld
16496 lt_cv_path_LDCXX=$lt_cv_path_LD
16497 lt_cv_path_LD=$lt_save_path_LD
16498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16500 fi # test yes != "$_lt_caught_CXX_error"
16501
16502 ac_ext=c
16503 ac_cpp='$CPP $CPPFLAGS'
16504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522 ac_config_commands="$ac_config_commands libtool"
16523
16524
16525
16526
16527 # Only expand once:
16528
16529
16530
16531 ac_ext=cpp
16532 ac_cpp='$CXXCPP $CPPFLAGS'
16533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16536
16537
16538 ax_cxx_compile_cxx11_required=true
16539 ac_ext=cpp
16540 ac_cpp='$CXXCPP $CPPFLAGS'
16541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16544 ac_success=no
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16546 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16547 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552
16553 template <typename T>
16554 struct check
16555 {
16556 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16557 };
16558
16559 struct Base {
16560 virtual void f() {}
16561 };
16562 struct Child : public Base {
16563 virtual void f() override {}
16564 };
16565
16566 typedef check<check<bool>> right_angle_brackets;
16567
16568 int a;
16569 decltype(a) b;
16570
16571 typedef check<int> check_type;
16572 check_type c;
16573 check_type&& cr = static_cast<check_type&&>(c);
16574
16575 auto d = a;
16576 auto l = [](){};
16577
16578 _ACEOF
16579 if ac_fn_cxx_try_compile "$LINENO"; then :
16580 ax_cv_cxx_compile_cxx11=yes
16581 else
16582 ax_cv_cxx_compile_cxx11=no
16583 fi
16584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16587 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16588 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16589 ac_success=yes
16590 fi
16591
16592 if test x$ac_success = xno; then
16593 for switch in -std=gnu++11 -std=gnu++0x; do
16594 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16596 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16597 if eval \${$cachevar+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 ac_save_CXXFLAGS="$CXXFLAGS"
16601 CXXFLAGS="$CXXFLAGS $switch"
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604
16605 template <typename T>
16606 struct check
16607 {
16608 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16609 };
16610
16611 struct Base {
16612 virtual void f() {}
16613 };
16614 struct Child : public Base {
16615 virtual void f() override {}
16616 };
16617
16618 typedef check<check<bool>> right_angle_brackets;
16619
16620 int a;
16621 decltype(a) b;
16622
16623 typedef check<int> check_type;
16624 check_type c;
16625 check_type&& cr = static_cast<check_type&&>(c);
16626
16627 auto d = a;
16628 auto l = [](){};
16629
16630 _ACEOF
16631 if ac_fn_cxx_try_compile "$LINENO"; then :
16632 eval $cachevar=yes
16633 else
16634 eval $cachevar=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 CXXFLAGS="$ac_save_CXXFLAGS"
16638 fi
16639 eval ac_res=\$$cachevar
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16641 $as_echo "$ac_res" >&6; }
16642 if eval test x\$$cachevar = xyes; then
16643 CXXFLAGS="$CXXFLAGS $switch"
16644 ac_success=yes
16645 break
16646 fi
16647 done
16648 fi
16649
16650
16651 ac_ext=cpp
16652 ac_cpp='$CXXCPP $CPPFLAGS'
16653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16658 if test x$ac_success = xno; then
16659 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16660 fi
16661 else
16662 if test x$ac_success = xno; then
16663 HAVE_CXX11=0
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16665 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16666 else
16667 HAVE_CXX11=1
16668
16669 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16670
16671 fi
16672
16673
16674 fi
16675
16676 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16677
16678
16679
16680
16681
16682
16683
16684
16685 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16686 if test -n "$ac_tool_prefix"; then
16687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16688 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16690 $as_echo_n "checking for $ac_word... " >&6; }
16691 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16692 $as_echo_n "(cached) " >&6
16693 else
16694 case $PKG_CONFIG in
16695 [\\/]* | ?:[\\/]*)
16696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16697 ;;
16698 *)
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700 for as_dir in $PATH
16701 do
16702 IFS=$as_save_IFS
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16708 break 2
16709 fi
16710 done
16711 done
16712 IFS=$as_save_IFS
16713
16714 ;;
16715 esac
16716 fi
16717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16718 if test -n "$PKG_CONFIG"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16720 $as_echo "$PKG_CONFIG" >&6; }
16721 else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 $as_echo "no" >&6; }
16724 fi
16725
16726
16727 fi
16728 if test -z "$ac_cv_path_PKG_CONFIG"; then
16729 ac_pt_PKG_CONFIG=$PKG_CONFIG
16730 # Extract the first word of "pkg-config", so it can be a program name with args.
16731 set dummy pkg-config; ac_word=$2
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16733 $as_echo_n "checking for $ac_word... " >&6; }
16734 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 case $ac_pt_PKG_CONFIG in
16738 [\\/]* | ?:[\\/]*)
16739 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16740 ;;
16741 *)
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16744 do
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16752 fi
16753 done
16754 done
16755 IFS=$as_save_IFS
16756
16757 ;;
16758 esac
16759 fi
16760 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16761 if test -n "$ac_pt_PKG_CONFIG"; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16763 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16764 else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766 $as_echo "no" >&6; }
16767 fi
16768
16769 if test "x$ac_pt_PKG_CONFIG" = x; then
16770 PKG_CONFIG=""
16771 else
16772 case $cross_compiling:$ac_tool_warned in
16773 yes:)
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16776 ac_tool_warned=yes ;;
16777 esac
16778 PKG_CONFIG=$ac_pt_PKG_CONFIG
16779 fi
16780 else
16781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16782 fi
16783
16784 fi
16785 if test -n "$PKG_CONFIG"; then
16786 _pkg_min_version=0.22
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16788 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16789 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791 $as_echo "yes" >&6; }
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16795 PKG_CONFIG=""
16796 fi
16797 fi
16798
16799 # Extract the first word of "git", so it can be a program name with args.
16800 set dummy git; ac_word=$2
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16802 $as_echo_n "checking for $ac_word... " >&6; }
16803 if ${ac_cv_path_GIT+:} false; then :
16804 $as_echo_n "(cached) " >&6
16805 else
16806 case $GIT in
16807 [\\/]* | ?:[\\/]*)
16808 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16809 ;;
16810 *)
16811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812 for as_dir in $PATH
16813 do
16814 IFS=$as_save_IFS
16815 test -z "$as_dir" && as_dir=.
16816 for ac_exec_ext in '' $ac_executable_extensions; do
16817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16818 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16820 break 2
16821 fi
16822 done
16823 done
16824 IFS=$as_save_IFS
16825
16826 ;;
16827 esac
16828 fi
16829 GIT=$ac_cv_path_GIT
16830 if test -n "$GIT"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16832 $as_echo "$GIT" >&6; }
16833 else
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835 $as_echo "no" >&6; }
16836 fi
16837
16838
16839 # Extract the first word of "time", so it can be a program name with args.
16840 set dummy time; ac_word=$2
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16842 $as_echo_n "checking for $ac_word... " >&6; }
16843 if ${ac_cv_path_TIME+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 case $TIME in
16847 [\\/]* | ?:[\\/]*)
16848 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16849 ;;
16850 *)
16851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852 for as_dir in $PATH
16853 do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
16856 for ac_exec_ext in '' $ac_executable_extensions; do
16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16858 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16860 break 2
16861 fi
16862 done
16863 done
16864 IFS=$as_save_IFS
16865
16866 ;;
16867 esac
16868 fi
16869 TIME=$ac_cv_path_TIME
16870 if test -n "$TIME"; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16872 $as_echo "$TIME" >&6; }
16873 else
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16875 $as_echo "no" >&6; }
16876 fi
16877
16878
16879
16880
16881
16882
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16885 $as_echo_n "checking for bison >= 3.0... " >&6; }
16886 if test -z "$BISON"; then
16887 ac_path_BISON_found=false
16888 # Loop through the user's path and test for each of PROGNAME-LIST
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16891 do
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_prog in bison; do
16895 for ac_exec_ext in '' $ac_executable_extensions; do
16896 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16897 as_fn_executable_p "$ac_path_BISON" || continue
16898 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16899 if ${version:+false} :; then :
16900
16901 else
16902 as_awk_strverscmp='
16903 # Use only awk features that work with 7th edition Unix awk (1978).
16904 # My, what an old awk you have, Mr. Solaris!
16905 END {
16906 while (length(v1) && length(v2)) {
16907 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16908 # Normally this is a single character, but if v1 and v2 contain digits,
16909 # compare them as integers and fractions as strverscmp does.
16910 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16911 # Split v1 and v2 into their leading digit string components d1 and d2,
16912 # and advance v1 and v2 past the leading digit strings.
16913 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16914 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16915 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16916 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16917 if (d1 ~ /^0/) {
16918 if (d2 ~ /^0/) {
16919 # Compare two fractions.
16920 while (d1 ~ /^0/ && d2 ~ /^0/) {
16921 d1 = substr(d1, 2); len1--
16922 d2 = substr(d2, 2); len2--
16923 }
16924 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16925 # The two components differ in length, and the common prefix
16926 # contains only leading zeros. Consider the longer to be less.
16927 d1 = -len1
16928 d2 = -len2
16929 } else {
16930 # Otherwise, compare as strings.
16931 d1 = "x" d1
16932 d2 = "x" d2
16933 }
16934 } else {
16935 # A fraction is less than an integer.
16936 exit 1
16937 }
16938 } else {
16939 if (d2 ~ /^0/) {
16940 # An integer is greater than a fraction.
16941 exit 2
16942 } else {
16943 # Compare two integers.
16944 d1 += 0
16945 d2 += 0
16946 }
16947 }
16948 } else {
16949 # The normal case, without worrying about digits.
16950 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16951 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16952 }
16953 if (d1 < d2) exit 1
16954 if (d1 > d2) exit 2
16955 }
16956 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16957 # which mishandles some comparisons of empty strings to integers.
16958 if (length(v2)) exit 1
16959 if (length(v1)) exit 2
16960 }
16961 '
16962 as_arg_v1=$version
16963 as_arg_v2=3.0
16964 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16965 case $? in #(
16966 1) :
16967 ;; #(
16968 0) :
16969 ac_cv_path_BISON=$ac_path_BISON ;; #(
16970 2) :
16971 ac_cv_path_BISON=$ac_path_BISON ;; #(
16972 *) :
16973 ;;
16974 esac
16975 fi
16976
16977 $ac_path_BISON_found && break 3
16978 done
16979 done
16980 done
16981 IFS=$as_save_IFS
16982 if test -z "$ac_cv_path_BISON"; then
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16985 fi
16986 else
16987 ac_cv_path_BISON=$BISON
16988 fi
16989
16990
16991 if true; then :
16992
16993 BISON=$ac_cv_path_BISON
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16996 $as_echo "$BISON" >&6; }
16997
16998 else
16999 if true; then :
17000
17001 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
17002
17003 else
17004
17005 BISON=:
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008 $as_echo "no" >&6; }
17009
17010 fi
17011 fi
17012
17013
17014
17015
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17017 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
17018 if test -z "$FLEX"; then
17019 ac_path_FLEX_found=false
17020 # Loop through the user's path and test for each of PROGNAME-LIST
17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022 for as_dir in $PATH
17023 do
17024 IFS=$as_save_IFS
17025 test -z "$as_dir" && as_dir=.
17026 for ac_prog in flex; do
17027 for ac_exec_ext in '' $ac_executable_extensions; do
17028 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17029 as_fn_executable_p "$ac_path_FLEX" || continue
17030 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17031 if ${version:+false} :; then :
17032
17033 else
17034 as_arg_v1=$version
17035 as_arg_v2=2.5.33
17036 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17037 case $? in #(
17038 1) :
17039 ;; #(
17040 0) :
17041 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17042 2) :
17043 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17044 *) :
17045 ;;
17046 esac
17047 fi
17048
17049 $ac_path_FLEX_found && break 3
17050 done
17051 done
17052 done
17053 IFS=$as_save_IFS
17054 if test -z "$ac_cv_path_FLEX"; then
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17056 $as_echo "no" >&6; }
17057 fi
17058 else
17059 ac_cv_path_FLEX=$FLEX
17060 fi
17061
17062
17063 if true; then :
17064
17065 FLEX=$ac_cv_path_FLEX
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17068 $as_echo "$FLEX" >&6; }
17069
17070 else
17071 if true; then :
17072
17073 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17074
17075 else
17076
17077 FLEX=:
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081
17082 fi
17083 fi
17084
17085
17086
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17089 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17090 if test -z "$GPERF"; then
17091 ac_path_GPERF_found=false
17092 # Loop through the user's path and test for each of PROGNAME-LIST
17093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17095 do
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 for ac_prog in gperf; do
17099 for ac_exec_ext in '' $ac_executable_extensions; do
17100 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17101 as_fn_executable_p "$ac_path_GPERF" || continue
17102 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17103 if ${version:+false} :; then :
17104
17105 else
17106 as_arg_v1=$version
17107 as_arg_v2=3.0.3
17108 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17109 case $? in #(
17110 1) :
17111 ;; #(
17112 0) :
17113 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17114 2) :
17115 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17116 *) :
17117 ;;
17118 esac
17119 fi
17120
17121 $ac_path_GPERF_found && break 3
17122 done
17123 done
17124 done
17125 IFS=$as_save_IFS
17126 if test -z "$ac_cv_path_GPERF"; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17129 fi
17130 else
17131 ac_cv_path_GPERF=$GPERF
17132 fi
17133
17134
17135 if true; then :
17136
17137 GPERF=$ac_cv_path_GPERF
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17140 $as_echo "$GPERF" >&6; }
17141
17142 else
17143 if true; then :
17144
17145 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17146
17147 else
17148
17149 GPERF=:
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17152 $as_echo "no" >&6; }
17153
17154 fi
17155 fi
17156
17157
17158
17159
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17161 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17162 if test -z "$GNUTAR"; then
17163 ac_path_GNUTAR_found=false
17164 # Loop through the user's path and test for each of PROGNAME-LIST
17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $PATH
17167 do
17168 IFS=$as_save_IFS
17169 test -z "$as_dir" && as_dir=.
17170 for ac_prog in tar gtar gnutar; do
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17173 as_fn_executable_p "$ac_path_GNUTAR" || continue
17174 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17175 if ${version:+false} :; then :
17176
17177 else
17178 as_arg_v1=$version
17179 as_arg_v2=1.19
17180 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17181 case $? in #(
17182 1) :
17183 ;; #(
17184 0) :
17185 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17186 2) :
17187 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17188 *) :
17189 ;;
17190 esac
17191 fi
17192
17193 $ac_path_GNUTAR_found && break 3
17194 done
17195 done
17196 done
17197 IFS=$as_save_IFS
17198 if test -z "$ac_cv_path_GNUTAR"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17201 fi
17202 else
17203 ac_cv_path_GNUTAR=$GNUTAR
17204 fi
17205
17206
17207 if true; then :
17208
17209 GNUTAR=$ac_cv_path_GNUTAR
17210
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17212 $as_echo "$GNUTAR" >&6; }
17213
17214 else
17215 if true; then :
17216
17217 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17218
17219 else
17220
17221 GNUTAR=:
17222
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225
17226 fi
17227 fi
17228
17229
17230
17231
17232
17233
17234
17235 if test "x$LFLAGS" = x; then :
17236 LFLAGS="--full --ecs"
17237 fi
17238
17239
17240
17241
17242
17243 ac_ext=c
17244 ac_cpp='$CPP $CPPFLAGS'
17245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17250 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17251 if ${ac_cv_cflags_warn_all+:} false; then :
17252 $as_echo_n "(cached) " >&6
17253 else
17254 ac_cv_cflags_warn_all="no, unknown"
17255 ac_save_CFLAGS="$CFLAGS"
17256 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" #
17257 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260
17261 int
17262 main ()
17263 {
17264
17265 ;
17266 return 0;
17267 }
17268 _ACEOF
17269 if ac_fn_c_try_compile "$LINENO"; then :
17270 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 done
17274 CFLAGS="$ac_save_CFLAGS"
17275
17276 fi
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17278 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17279
17280
17281 case ".$ac_cv_cflags_warn_all" in
17282 .ok|.ok,*) ;;
17283 .|.no|.no,*) ;;
17284 *) if ${CFLAGS+:} false; then :
17285 case " $CFLAGS " in
17286 *" $ac_cv_cflags_warn_all "*)
17287 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17288 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }
17292 ;;
17293 *)
17294 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17295 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17296 ac_status=$?
17297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17298 test $ac_status = 0; }
17299 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17300 ;;
17301 esac
17302 else
17303 CFLAGS="$ac_cv_cflags_warn_all"
17304 fi
17305 ;;
17306 esac
17307
17308 ac_ext=cpp
17309 ac_cpp='$CXXCPP $CPPFLAGS'
17310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17313
17314
17315 ac_ext=cpp
17316 ac_cpp='$CXXCPP $CPPFLAGS'
17317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17320
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17322 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17323 if ${ac_cv_cxxflags_warn_all+:} false; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 ac_cv_cxxflags_warn_all="no, unknown"
17327 ac_save_CXXFLAGS="$CXXFLAGS"
17328 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" #
17329 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17331 /* end confdefs.h. */
17332
17333 int
17334 main ()
17335 {
17336
17337 ;
17338 return 0;
17339 }
17340 _ACEOF
17341 if ac_fn_cxx_try_compile "$LINENO"; then :
17342 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17343 fi
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 done
17346 CXXFLAGS="$ac_save_CXXFLAGS"
17347
17348 fi
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17350 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17351
17352
17353 case ".$ac_cv_cxxflags_warn_all" in
17354 .ok|.ok,*) ;;
17355 .|.no|.no,*) ;;
17356 *) if ${CXXFLAGS+:} false; then :
17357 case " $CXXFLAGS " in
17358 *" $ac_cv_cxxflags_warn_all "*)
17359 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17360 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17361 ac_status=$?
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }
17364 ;;
17365 *)
17366 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17367 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17368 ac_status=$?
17369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370 test $ac_status = 0; }
17371 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17372 ;;
17373 esac
17374 else
17375 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17376 fi
17377 ;;
17378 esac
17379
17380 ac_ext=cpp
17381 ac_cpp='$CXXCPP $CPPFLAGS'
17382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17385
17386
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17388 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17389 if ${ac_cv_cxxflags_warn_all+:} false; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17392 ac_cv_cxxflags_warn_all="no, unknown"
17393 ac_save_CXXFLAGS="$CXXFLAGS"
17394 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" #
17395 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398
17399 int
17400 main ()
17401 {
17402
17403 ;
17404 return 0;
17405 }
17406 _ACEOF
17407 if ac_fn_cxx_try_compile "$LINENO"; then :
17408 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17409 fi
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 done
17412 CXXFLAGS="$ac_save_CXXFLAGS"
17413
17414 fi
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17416 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17417
17418
17419 case ".$ac_cv_cxxflags_warn_all" in
17420 .ok|.ok,*) ;;
17421 .|.no|.no,*) ;;
17422 *) if ${CXXFLAGS+:} false; then :
17423 case " $CXXFLAGS " in
17424 *" $ac_cv_cxxflags_warn_all "*)
17425 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17426 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17427 ac_status=$?
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }
17430 ;;
17431 *)
17432 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17433 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17434 ac_status=$?
17435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17436 test $ac_status = 0; }
17437 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17438 ;;
17439 esac
17440 else
17441 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17442 fi
17443 ;;
17444 esac
17445
17446
17447
17448
17449
17450 ac_ext=c
17451 ac_cpp='$CPP $CPPFLAGS'
17452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17457 $as_echo_n "checking for cc -Werror... " >&6; }
17458
17459 cy_save=$CFLAGS
17460
17461 for element in -Werror; do
17462 haveit=
17463 for x in $CFLAGS; do
17464
17465 acl_save_prefix="$prefix"
17466 prefix="$acl_final_prefix"
17467 acl_save_exec_prefix="$exec_prefix"
17468 exec_prefix="$acl_final_exec_prefix"
17469 eval x=\"$x\"
17470 exec_prefix="$acl_save_exec_prefix"
17471 prefix="$acl_save_prefix"
17472
17473 if test "X$x" = "X$element"; then
17474 haveit=yes
17475 break
17476 fi
17477 done
17478 if test -z "$haveit"; then
17479 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17480 fi
17481 done
17482
17483
17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17486
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489 cy_good=1
17490 else
17491 cy_good=0
17492 fi
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494
17495 CFLAGS=$cy_save
17496 if test "x$cy_good" = x1; then :
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17498 $as_echo "yes" >&6; }
17499
17500 for element in -Werror; do
17501 haveit=
17502 for x in $CFLAGS; do
17503
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17508 eval x=\"$x\"
17509 exec_prefix="$acl_save_exec_prefix"
17510 prefix="$acl_save_prefix"
17511
17512 if test "X$x" = "X$element"; then
17513 haveit=yes
17514 break
17515 fi
17516 done
17517 if test -z "$haveit"; then
17518 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17519 fi
17520 done
17521
17522
17523 else
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 $as_echo "no" >&6; }
17526 fi
17527
17528 ac_ext=cpp
17529 ac_cpp='$CXXCPP $CPPFLAGS'
17530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17533
17534
17535
17536 ac_ext=cpp
17537 ac_cpp='$CXXCPP $CPPFLAGS'
17538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17541
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17543 $as_echo_n "checking for c++ -Werror... " >&6; }
17544
17545 cy_save=$CXXFLAGS
17546
17547 for element in -Werror; do
17548 haveit=
17549 for x in $CXXFLAGS; do
17550
17551 acl_save_prefix="$prefix"
17552 prefix="$acl_final_prefix"
17553 acl_save_exec_prefix="$exec_prefix"
17554 exec_prefix="$acl_final_exec_prefix"
17555 eval x=\"$x\"
17556 exec_prefix="$acl_save_exec_prefix"
17557 prefix="$acl_save_prefix"
17558
17559 if test "X$x" = "X$element"; then
17560 haveit=yes
17561 break
17562 fi
17563 done
17564 if test -z "$haveit"; then
17565 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17566 fi
17567 done
17568
17569
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572
17573 _ACEOF
17574 if ac_fn_cxx_try_compile "$LINENO"; then :
17575 cy_good=1
17576 else
17577 cy_good=0
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580
17581 CXXFLAGS=$cy_save
17582 if test "x$cy_good" = x1; then :
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17584 $as_echo "yes" >&6; }
17585
17586 for element in -Werror; do
17587 haveit=
17588 for x in $CXXFLAGS; do
17589
17590 acl_save_prefix="$prefix"
17591 prefix="$acl_final_prefix"
17592 acl_save_exec_prefix="$exec_prefix"
17593 exec_prefix="$acl_final_exec_prefix"
17594 eval x=\"$x\"
17595 exec_prefix="$acl_save_exec_prefix"
17596 prefix="$acl_save_prefix"
17597
17598 if test "X$x" = "X$element"; then
17599 haveit=yes
17600 break
17601 fi
17602 done
17603 if test -z "$haveit"; then
17604 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17605 fi
17606 done
17607
17608
17609 else
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613
17614 ac_ext=cpp
17615 ac_cpp='$CXXCPP $CPPFLAGS'
17616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17619
17620
17621
17622 ac_ext=mm
17623 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17624 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17627
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17629 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17630
17631 cy_save=$OBJCXXFLAGS
17632
17633 for element in -Werror; do
17634 haveit=
17635 for x in $OBJCXXFLAGS; do
17636
17637 acl_save_prefix="$prefix"
17638 prefix="$acl_final_prefix"
17639 acl_save_exec_prefix="$exec_prefix"
17640 exec_prefix="$acl_final_exec_prefix"
17641 eval x=\"$x\"
17642 exec_prefix="$acl_save_exec_prefix"
17643 prefix="$acl_save_prefix"
17644
17645 if test "X$x" = "X$element"; then
17646 haveit=yes
17647 break
17648 fi
17649 done
17650 if test -z "$haveit"; then
17651 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17652 fi
17653 done
17654
17655
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658
17659 _ACEOF
17660 if ac_fn_objcxx_try_compile "$LINENO"; then :
17661 cy_good=1
17662 else
17663 cy_good=0
17664 fi
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666
17667 OBJCXXFLAGS=$cy_save
17668 if test "x$cy_good" = x1; then :
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17670 $as_echo "yes" >&6; }
17671
17672 for element in -Werror; do
17673 haveit=
17674 for x in $OBJCXXFLAGS; do
17675
17676 acl_save_prefix="$prefix"
17677 prefix="$acl_final_prefix"
17678 acl_save_exec_prefix="$exec_prefix"
17679 exec_prefix="$acl_final_exec_prefix"
17680 eval x=\"$x\"
17681 exec_prefix="$acl_save_exec_prefix"
17682 prefix="$acl_save_prefix"
17683
17684 if test "X$x" = "X$element"; then
17685 haveit=yes
17686 break
17687 fi
17688 done
17689 if test -z "$haveit"; then
17690 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17691 fi
17692 done
17693
17694
17695 else
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17697 $as_echo "no" >&6; }
17698 fi
17699
17700 ac_ext=cpp
17701 ac_cpp='$CXXCPP $CPPFLAGS'
17702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17705
17706
17707
17708
17709
17710
17711 ac_ext=c
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17718 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17719
17720 cy_save=$CFLAGS
17721
17722 for element in -Wno-deprecated-declarations; do
17723 haveit=
17724 for x in $CFLAGS; do
17725
17726 acl_save_prefix="$prefix"
17727 prefix="$acl_final_prefix"
17728 acl_save_exec_prefix="$exec_prefix"
17729 exec_prefix="$acl_final_exec_prefix"
17730 eval x=\"$x\"
17731 exec_prefix="$acl_save_exec_prefix"
17732 prefix="$acl_save_prefix"
17733
17734 if test "X$x" = "X$element"; then
17735 haveit=yes
17736 break
17737 fi
17738 done
17739 if test -z "$haveit"; then
17740 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17741 fi
17742 done
17743
17744
17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746 /* end confdefs.h. */
17747
17748 _ACEOF
17749 if ac_fn_c_try_compile "$LINENO"; then :
17750 cy_good=1
17751 else
17752 cy_good=0
17753 fi
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755
17756 CFLAGS=$cy_save
17757 if test "x$cy_good" = x1; then :
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759 $as_echo "yes" >&6; }
17760
17761 for element in -Wno-deprecated-declarations; do
17762 haveit=
17763 for x in $CFLAGS; do
17764
17765 acl_save_prefix="$prefix"
17766 prefix="$acl_final_prefix"
17767 acl_save_exec_prefix="$exec_prefix"
17768 exec_prefix="$acl_final_exec_prefix"
17769 eval x=\"$x\"
17770 exec_prefix="$acl_save_exec_prefix"
17771 prefix="$acl_save_prefix"
17772
17773 if test "X$x" = "X$element"; then
17774 haveit=yes
17775 break
17776 fi
17777 done
17778 if test -z "$haveit"; then
17779 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17780 fi
17781 done
17782
17783
17784 else
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786 $as_echo "no" >&6; }
17787 fi
17788
17789 ac_ext=cpp
17790 ac_cpp='$CXXCPP $CPPFLAGS'
17791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794
17795
17796
17797 ac_ext=cpp
17798 ac_cpp='$CXXCPP $CPPFLAGS'
17799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17802
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17804 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17805
17806 cy_save=$CXXFLAGS
17807
17808 for element in -Wno-deprecated-declarations; do
17809 haveit=
17810 for x in $CXXFLAGS; do
17811
17812 acl_save_prefix="$prefix"
17813 prefix="$acl_final_prefix"
17814 acl_save_exec_prefix="$exec_prefix"
17815 exec_prefix="$acl_final_exec_prefix"
17816 eval x=\"$x\"
17817 exec_prefix="$acl_save_exec_prefix"
17818 prefix="$acl_save_prefix"
17819
17820 if test "X$x" = "X$element"; then
17821 haveit=yes
17822 break
17823 fi
17824 done
17825 if test -z "$haveit"; then
17826 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17827 fi
17828 done
17829
17830
17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17833
17834 _ACEOF
17835 if ac_fn_cxx_try_compile "$LINENO"; then :
17836 cy_good=1
17837 else
17838 cy_good=0
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841
17842 CXXFLAGS=$cy_save
17843 if test "x$cy_good" = x1; then :
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17845 $as_echo "yes" >&6; }
17846
17847 for element in -Wno-deprecated-declarations; do
17848 haveit=
17849 for x in $CXXFLAGS; do
17850
17851 acl_save_prefix="$prefix"
17852 prefix="$acl_final_prefix"
17853 acl_save_exec_prefix="$exec_prefix"
17854 exec_prefix="$acl_final_exec_prefix"
17855 eval x=\"$x\"
17856 exec_prefix="$acl_save_exec_prefix"
17857 prefix="$acl_save_prefix"
17858
17859 if test "X$x" = "X$element"; then
17860 haveit=yes
17861 break
17862 fi
17863 done
17864 if test -z "$haveit"; then
17865 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17866 fi
17867 done
17868
17869
17870 else
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17873 fi
17874
17875 ac_ext=cpp
17876 ac_cpp='$CXXCPP $CPPFLAGS'
17877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17880
17881
17882
17883 ac_ext=mm
17884 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17885 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17888
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17890 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17891
17892 cy_save=$OBJCXXFLAGS
17893
17894 for element in -Wno-deprecated-declarations; do
17895 haveit=
17896 for x in $OBJCXXFLAGS; do
17897
17898 acl_save_prefix="$prefix"
17899 prefix="$acl_final_prefix"
17900 acl_save_exec_prefix="$exec_prefix"
17901 exec_prefix="$acl_final_exec_prefix"
17902 eval x=\"$x\"
17903 exec_prefix="$acl_save_exec_prefix"
17904 prefix="$acl_save_prefix"
17905
17906 if test "X$x" = "X$element"; then
17907 haveit=yes
17908 break
17909 fi
17910 done
17911 if test -z "$haveit"; then
17912 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17913 fi
17914 done
17915
17916
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17919
17920 _ACEOF
17921 if ac_fn_objcxx_try_compile "$LINENO"; then :
17922 cy_good=1
17923 else
17924 cy_good=0
17925 fi
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927
17928 OBJCXXFLAGS=$cy_save
17929 if test "x$cy_good" = x1; then :
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17931 $as_echo "yes" >&6; }
17932
17933 for element in -Wno-deprecated-declarations; do
17934 haveit=
17935 for x in $OBJCXXFLAGS; do
17936
17937 acl_save_prefix="$prefix"
17938 prefix="$acl_final_prefix"
17939 acl_save_exec_prefix="$exec_prefix"
17940 exec_prefix="$acl_final_exec_prefix"
17941 eval x=\"$x\"
17942 exec_prefix="$acl_save_exec_prefix"
17943 prefix="$acl_save_prefix"
17944
17945 if test "X$x" = "X$element"; then
17946 haveit=yes
17947 break
17948 fi
17949 done
17950 if test -z "$haveit"; then
17951 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17952 fi
17953 done
17954
17955
17956 else
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17958 $as_echo "no" >&6; }
17959 fi
17960
17961 ac_ext=cpp
17962 ac_cpp='$CXXCPP $CPPFLAGS'
17963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17966
17967
17968
17969
17970
17971
17972 ac_ext=c
17973 ac_cpp='$CPP $CPPFLAGS'
17974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17977
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17979 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17980
17981 cy_save=$CFLAGS
17982
17983 for element in -Wno-dangling-else; do
17984 haveit=
17985 for x in $CFLAGS; do
17986
17987 acl_save_prefix="$prefix"
17988 prefix="$acl_final_prefix"
17989 acl_save_exec_prefix="$exec_prefix"
17990 exec_prefix="$acl_final_exec_prefix"
17991 eval x=\"$x\"
17992 exec_prefix="$acl_save_exec_prefix"
17993 prefix="$acl_save_prefix"
17994
17995 if test "X$x" = "X$element"; then
17996 haveit=yes
17997 break
17998 fi
17999 done
18000 if test -z "$haveit"; then
18001 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18002 fi
18003 done
18004
18005
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18008
18009 _ACEOF
18010 if ac_fn_c_try_compile "$LINENO"; then :
18011 cy_good=1
18012 else
18013 cy_good=0
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016
18017 CFLAGS=$cy_save
18018 if test "x$cy_good" = x1; then :
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18020 $as_echo "yes" >&6; }
18021
18022 for element in -Wno-dangling-else; do
18023 haveit=
18024 for x in $CFLAGS; do
18025
18026 acl_save_prefix="$prefix"
18027 prefix="$acl_final_prefix"
18028 acl_save_exec_prefix="$exec_prefix"
18029 exec_prefix="$acl_final_exec_prefix"
18030 eval x=\"$x\"
18031 exec_prefix="$acl_save_exec_prefix"
18032 prefix="$acl_save_prefix"
18033
18034 if test "X$x" = "X$element"; then
18035 haveit=yes
18036 break
18037 fi
18038 done
18039 if test -z "$haveit"; then
18040 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18041 fi
18042 done
18043
18044
18045 else
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047 $as_echo "no" >&6; }
18048 fi
18049
18050 ac_ext=cpp
18051 ac_cpp='$CXXCPP $CPPFLAGS'
18052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056
18057
18058 ac_ext=cpp
18059 ac_cpp='$CXXCPP $CPPFLAGS'
18060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18063
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18065 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18066
18067 cy_save=$CXXFLAGS
18068
18069 for element in -Wno-dangling-else; do
18070 haveit=
18071 for x in $CXXFLAGS; do
18072
18073 acl_save_prefix="$prefix"
18074 prefix="$acl_final_prefix"
18075 acl_save_exec_prefix="$exec_prefix"
18076 exec_prefix="$acl_final_exec_prefix"
18077 eval x=\"$x\"
18078 exec_prefix="$acl_save_exec_prefix"
18079 prefix="$acl_save_prefix"
18080
18081 if test "X$x" = "X$element"; then
18082 haveit=yes
18083 break
18084 fi
18085 done
18086 if test -z "$haveit"; then
18087 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18088 fi
18089 done
18090
18091
18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h. */
18094
18095 _ACEOF
18096 if ac_fn_cxx_try_compile "$LINENO"; then :
18097 cy_good=1
18098 else
18099 cy_good=0
18100 fi
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102
18103 CXXFLAGS=$cy_save
18104 if test "x$cy_good" = x1; then :
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18106 $as_echo "yes" >&6; }
18107
18108 for element in -Wno-dangling-else; do
18109 haveit=
18110 for x in $CXXFLAGS; do
18111
18112 acl_save_prefix="$prefix"
18113 prefix="$acl_final_prefix"
18114 acl_save_exec_prefix="$exec_prefix"
18115 exec_prefix="$acl_final_exec_prefix"
18116 eval x=\"$x\"
18117 exec_prefix="$acl_save_exec_prefix"
18118 prefix="$acl_save_prefix"
18119
18120 if test "X$x" = "X$element"; then
18121 haveit=yes
18122 break
18123 fi
18124 done
18125 if test -z "$haveit"; then
18126 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18127 fi
18128 done
18129
18130
18131 else
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18133 $as_echo "no" >&6; }
18134 fi
18135
18136 ac_ext=cpp
18137 ac_cpp='$CXXCPP $CPPFLAGS'
18138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18141
18142
18143
18144 ac_ext=mm
18145 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18146 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18147 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18148 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18149
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18151 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18152
18153 cy_save=$OBJCXXFLAGS
18154
18155 for element in -Wno-dangling-else; do
18156 haveit=
18157 for x in $OBJCXXFLAGS; do
18158
18159 acl_save_prefix="$prefix"
18160 prefix="$acl_final_prefix"
18161 acl_save_exec_prefix="$exec_prefix"
18162 exec_prefix="$acl_final_exec_prefix"
18163 eval x=\"$x\"
18164 exec_prefix="$acl_save_exec_prefix"
18165 prefix="$acl_save_prefix"
18166
18167 if test "X$x" = "X$element"; then
18168 haveit=yes
18169 break
18170 fi
18171 done
18172 if test -z "$haveit"; then
18173 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18174 fi
18175 done
18176
18177
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180
18181 _ACEOF
18182 if ac_fn_objcxx_try_compile "$LINENO"; then :
18183 cy_good=1
18184 else
18185 cy_good=0
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18188
18189 OBJCXXFLAGS=$cy_save
18190 if test "x$cy_good" = x1; then :
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18193
18194 for element in -Wno-dangling-else; do
18195 haveit=
18196 for x in $OBJCXXFLAGS; do
18197
18198 acl_save_prefix="$prefix"
18199 prefix="$acl_final_prefix"
18200 acl_save_exec_prefix="$exec_prefix"
18201 exec_prefix="$acl_final_exec_prefix"
18202 eval x=\"$x\"
18203 exec_prefix="$acl_save_exec_prefix"
18204 prefix="$acl_save_prefix"
18205
18206 if test "X$x" = "X$element"; then
18207 haveit=yes
18208 break
18209 fi
18210 done
18211 if test -z "$haveit"; then
18212 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18213 fi
18214 done
18215
18216
18217 else
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18219 $as_echo "no" >&6; }
18220 fi
18221
18222 ac_ext=cpp
18223 ac_cpp='$CXXCPP $CPPFLAGS'
18224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18227
18228
18229
18230
18231
18232 ac_ext=c
18233 ac_cpp='$CPP $CPPFLAGS'
18234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18237
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
18239 $as_echo_n "checking for cc -Wno-empty-body... " >&6; }
18240
18241 cy_save=$CFLAGS
18242
18243 for element in -Wno-empty-body; do
18244 haveit=
18245 for x in $CFLAGS; do
18246
18247 acl_save_prefix="$prefix"
18248 prefix="$acl_final_prefix"
18249 acl_save_exec_prefix="$exec_prefix"
18250 exec_prefix="$acl_final_exec_prefix"
18251 eval x=\"$x\"
18252 exec_prefix="$acl_save_exec_prefix"
18253 prefix="$acl_save_prefix"
18254
18255 if test "X$x" = "X$element"; then
18256 haveit=yes
18257 break
18258 fi
18259 done
18260 if test -z "$haveit"; then
18261 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18262 fi
18263 done
18264
18265
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268
18269 _ACEOF
18270 if ac_fn_c_try_compile "$LINENO"; then :
18271 cy_good=1
18272 else
18273 cy_good=0
18274 fi
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276
18277 CFLAGS=$cy_save
18278 if test "x$cy_good" = x1; then :
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18280 $as_echo "yes" >&6; }
18281
18282 for element in -Wno-empty-body; do
18283 haveit=
18284 for x in $CFLAGS; do
18285
18286 acl_save_prefix="$prefix"
18287 prefix="$acl_final_prefix"
18288 acl_save_exec_prefix="$exec_prefix"
18289 exec_prefix="$acl_final_exec_prefix"
18290 eval x=\"$x\"
18291 exec_prefix="$acl_save_exec_prefix"
18292 prefix="$acl_save_prefix"
18293
18294 if test "X$x" = "X$element"; then
18295 haveit=yes
18296 break
18297 fi
18298 done
18299 if test -z "$haveit"; then
18300 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18301 fi
18302 done
18303
18304
18305 else
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18307 $as_echo "no" >&6; }
18308 fi
18309
18310 ac_ext=cpp
18311 ac_cpp='$CXXCPP $CPPFLAGS'
18312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18315
18316
18317
18318 ac_ext=cpp
18319 ac_cpp='$CXXCPP $CPPFLAGS'
18320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18323
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
18325 $as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
18326
18327 cy_save=$CXXFLAGS
18328
18329 for element in -Wno-empty-body; do
18330 haveit=
18331 for x in $CXXFLAGS; do
18332
18333 acl_save_prefix="$prefix"
18334 prefix="$acl_final_prefix"
18335 acl_save_exec_prefix="$exec_prefix"
18336 exec_prefix="$acl_final_exec_prefix"
18337 eval x=\"$x\"
18338 exec_prefix="$acl_save_exec_prefix"
18339 prefix="$acl_save_prefix"
18340
18341 if test "X$x" = "X$element"; then
18342 haveit=yes
18343 break
18344 fi
18345 done
18346 if test -z "$haveit"; then
18347 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18348 fi
18349 done
18350
18351
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18354
18355 _ACEOF
18356 if ac_fn_cxx_try_compile "$LINENO"; then :
18357 cy_good=1
18358 else
18359 cy_good=0
18360 fi
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362
18363 CXXFLAGS=$cy_save
18364 if test "x$cy_good" = x1; then :
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18366 $as_echo "yes" >&6; }
18367
18368 for element in -Wno-empty-body; do
18369 haveit=
18370 for x in $CXXFLAGS; do
18371
18372 acl_save_prefix="$prefix"
18373 prefix="$acl_final_prefix"
18374 acl_save_exec_prefix="$exec_prefix"
18375 exec_prefix="$acl_final_exec_prefix"
18376 eval x=\"$x\"
18377 exec_prefix="$acl_save_exec_prefix"
18378 prefix="$acl_save_prefix"
18379
18380 if test "X$x" = "X$element"; then
18381 haveit=yes
18382 break
18383 fi
18384 done
18385 if test -z "$haveit"; then
18386 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18387 fi
18388 done
18389
18390
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393 $as_echo "no" >&6; }
18394 fi
18395
18396 ac_ext=cpp
18397 ac_cpp='$CXXCPP $CPPFLAGS'
18398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18401
18402
18403
18404 ac_ext=mm
18405 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18406 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
18411 $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
18412
18413 cy_save=$OBJCXXFLAGS
18414
18415 for element in -Wno-empty-body; do
18416 haveit=
18417 for x in $OBJCXXFLAGS; do
18418
18419 acl_save_prefix="$prefix"
18420 prefix="$acl_final_prefix"
18421 acl_save_exec_prefix="$exec_prefix"
18422 exec_prefix="$acl_final_exec_prefix"
18423 eval x=\"$x\"
18424 exec_prefix="$acl_save_exec_prefix"
18425 prefix="$acl_save_prefix"
18426
18427 if test "X$x" = "X$element"; then
18428 haveit=yes
18429 break
18430 fi
18431 done
18432 if test -z "$haveit"; then
18433 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18434 fi
18435 done
18436
18437
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439 /* end confdefs.h. */
18440
18441 _ACEOF
18442 if ac_fn_objcxx_try_compile "$LINENO"; then :
18443 cy_good=1
18444 else
18445 cy_good=0
18446 fi
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448
18449 OBJCXXFLAGS=$cy_save
18450 if test "x$cy_good" = x1; then :
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18452 $as_echo "yes" >&6; }
18453
18454 for element in -Wno-empty-body; do
18455 haveit=
18456 for x in $OBJCXXFLAGS; do
18457
18458 acl_save_prefix="$prefix"
18459 prefix="$acl_final_prefix"
18460 acl_save_exec_prefix="$exec_prefix"
18461 exec_prefix="$acl_final_exec_prefix"
18462 eval x=\"$x\"
18463 exec_prefix="$acl_save_exec_prefix"
18464 prefix="$acl_save_prefix"
18465
18466 if test "X$x" = "X$element"; then
18467 haveit=yes
18468 break
18469 fi
18470 done
18471 if test -z "$haveit"; then
18472 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18473 fi
18474 done
18475
18476
18477 else
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18479 $as_echo "no" >&6; }
18480 fi
18481
18482 ac_ext=cpp
18483 ac_cpp='$CXXCPP $CPPFLAGS'
18484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18487
18488
18489
18490
18491
18492 ac_ext=c
18493 ac_cpp='$CPP $CPPFLAGS'
18494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18497
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18499 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18500
18501 cy_save=$CFLAGS
18502
18503 for element in -Wno-overloaded-virtual; do
18504 haveit=
18505 for x in $CFLAGS; do
18506
18507 acl_save_prefix="$prefix"
18508 prefix="$acl_final_prefix"
18509 acl_save_exec_prefix="$exec_prefix"
18510 exec_prefix="$acl_final_exec_prefix"
18511 eval x=\"$x\"
18512 exec_prefix="$acl_save_exec_prefix"
18513 prefix="$acl_save_prefix"
18514
18515 if test "X$x" = "X$element"; then
18516 haveit=yes
18517 break
18518 fi
18519 done
18520 if test -z "$haveit"; then
18521 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18522 fi
18523 done
18524
18525
18526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h. */
18528
18529 _ACEOF
18530 if ac_fn_c_try_compile "$LINENO"; then :
18531 cy_good=1
18532 else
18533 cy_good=0
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536
18537 CFLAGS=$cy_save
18538 if test "x$cy_good" = x1; then :
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18540 $as_echo "yes" >&6; }
18541
18542 for element in -Wno-overloaded-virtual; do
18543 haveit=
18544 for x in $CFLAGS; do
18545
18546 acl_save_prefix="$prefix"
18547 prefix="$acl_final_prefix"
18548 acl_save_exec_prefix="$exec_prefix"
18549 exec_prefix="$acl_final_exec_prefix"
18550 eval x=\"$x\"
18551 exec_prefix="$acl_save_exec_prefix"
18552 prefix="$acl_save_prefix"
18553
18554 if test "X$x" = "X$element"; then
18555 haveit=yes
18556 break
18557 fi
18558 done
18559 if test -z "$haveit"; then
18560 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18561 fi
18562 done
18563
18564
18565 else
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18568 fi
18569
18570 ac_ext=cpp
18571 ac_cpp='$CXXCPP $CPPFLAGS'
18572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18575
18576
18577
18578 ac_ext=cpp
18579 ac_cpp='$CXXCPP $CPPFLAGS'
18580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18585 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18586
18587 cy_save=$CXXFLAGS
18588
18589 for element in -Wno-overloaded-virtual; do
18590 haveit=
18591 for x in $CXXFLAGS; do
18592
18593 acl_save_prefix="$prefix"
18594 prefix="$acl_final_prefix"
18595 acl_save_exec_prefix="$exec_prefix"
18596 exec_prefix="$acl_final_exec_prefix"
18597 eval x=\"$x\"
18598 exec_prefix="$acl_save_exec_prefix"
18599 prefix="$acl_save_prefix"
18600
18601 if test "X$x" = "X$element"; then
18602 haveit=yes
18603 break
18604 fi
18605 done
18606 if test -z "$haveit"; then
18607 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18608 fi
18609 done
18610
18611
18612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18613 /* end confdefs.h. */
18614
18615 _ACEOF
18616 if ac_fn_cxx_try_compile "$LINENO"; then :
18617 cy_good=1
18618 else
18619 cy_good=0
18620 fi
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622
18623 CXXFLAGS=$cy_save
18624 if test "x$cy_good" = x1; then :
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18626 $as_echo "yes" >&6; }
18627
18628 for element in -Wno-overloaded-virtual; do
18629 haveit=
18630 for x in $CXXFLAGS; do
18631
18632 acl_save_prefix="$prefix"
18633 prefix="$acl_final_prefix"
18634 acl_save_exec_prefix="$exec_prefix"
18635 exec_prefix="$acl_final_exec_prefix"
18636 eval x=\"$x\"
18637 exec_prefix="$acl_save_exec_prefix"
18638 prefix="$acl_save_prefix"
18639
18640 if test "X$x" = "X$element"; then
18641 haveit=yes
18642 break
18643 fi
18644 done
18645 if test -z "$haveit"; then
18646 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18647 fi
18648 done
18649
18650
18651 else
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18653 $as_echo "no" >&6; }
18654 fi
18655
18656 ac_ext=cpp
18657 ac_cpp='$CXXCPP $CPPFLAGS'
18658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18661
18662
18663
18664 ac_ext=mm
18665 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18666 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18667 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18668 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18669
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18671 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18672
18673 cy_save=$OBJCXXFLAGS
18674
18675 for element in -Wno-overloaded-virtual; do
18676 haveit=
18677 for x in $OBJCXXFLAGS; do
18678
18679 acl_save_prefix="$prefix"
18680 prefix="$acl_final_prefix"
18681 acl_save_exec_prefix="$exec_prefix"
18682 exec_prefix="$acl_final_exec_prefix"
18683 eval x=\"$x\"
18684 exec_prefix="$acl_save_exec_prefix"
18685 prefix="$acl_save_prefix"
18686
18687 if test "X$x" = "X$element"; then
18688 haveit=yes
18689 break
18690 fi
18691 done
18692 if test -z "$haveit"; then
18693 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18694 fi
18695 done
18696
18697
18698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699 /* end confdefs.h. */
18700
18701 _ACEOF
18702 if ac_fn_objcxx_try_compile "$LINENO"; then :
18703 cy_good=1
18704 else
18705 cy_good=0
18706 fi
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708
18709 OBJCXXFLAGS=$cy_save
18710 if test "x$cy_good" = x1; then :
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18712 $as_echo "yes" >&6; }
18713
18714 for element in -Wno-overloaded-virtual; do
18715 haveit=
18716 for x in $OBJCXXFLAGS; do
18717
18718 acl_save_prefix="$prefix"
18719 prefix="$acl_final_prefix"
18720 acl_save_exec_prefix="$exec_prefix"
18721 exec_prefix="$acl_final_exec_prefix"
18722 eval x=\"$x\"
18723 exec_prefix="$acl_save_exec_prefix"
18724 prefix="$acl_save_prefix"
18725
18726 if test "X$x" = "X$element"; then
18727 haveit=yes
18728 break
18729 fi
18730 done
18731 if test -z "$haveit"; then
18732 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18733 fi
18734 done
18735
18736
18737 else
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18740 fi
18741
18742 ac_ext=cpp
18743 ac_cpp='$CXXCPP $CPPFLAGS'
18744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18747
18748
18749
18750
18751
18752 ac_ext=c
18753 ac_cpp='$CPP $CPPFLAGS'
18754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18757
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18759 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18760
18761 cy_save=$CFLAGS
18762
18763 for element in -Wno-parentheses; do
18764 haveit=
18765 for x in $CFLAGS; do
18766
18767 acl_save_prefix="$prefix"
18768 prefix="$acl_final_prefix"
18769 acl_save_exec_prefix="$exec_prefix"
18770 exec_prefix="$acl_final_exec_prefix"
18771 eval x=\"$x\"
18772 exec_prefix="$acl_save_exec_prefix"
18773 prefix="$acl_save_prefix"
18774
18775 if test "X$x" = "X$element"; then
18776 haveit=yes
18777 break
18778 fi
18779 done
18780 if test -z "$haveit"; then
18781 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18782 fi
18783 done
18784
18785
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18788
18789 _ACEOF
18790 if ac_fn_c_try_compile "$LINENO"; then :
18791 cy_good=1
18792 else
18793 cy_good=0
18794 fi
18795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796
18797 CFLAGS=$cy_save
18798 if test "x$cy_good" = x1; then :
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18800 $as_echo "yes" >&6; }
18801
18802 for element in -Wno-parentheses; do
18803 haveit=
18804 for x in $CFLAGS; do
18805
18806 acl_save_prefix="$prefix"
18807 prefix="$acl_final_prefix"
18808 acl_save_exec_prefix="$exec_prefix"
18809 exec_prefix="$acl_final_exec_prefix"
18810 eval x=\"$x\"
18811 exec_prefix="$acl_save_exec_prefix"
18812 prefix="$acl_save_prefix"
18813
18814 if test "X$x" = "X$element"; then
18815 haveit=yes
18816 break
18817 fi
18818 done
18819 if test -z "$haveit"; then
18820 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18821 fi
18822 done
18823
18824
18825 else
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827 $as_echo "no" >&6; }
18828 fi
18829
18830 ac_ext=cpp
18831 ac_cpp='$CXXCPP $CPPFLAGS'
18832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18835
18836
18837
18838 ac_ext=cpp
18839 ac_cpp='$CXXCPP $CPPFLAGS'
18840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18843
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18845 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18846
18847 cy_save=$CXXFLAGS
18848
18849 for element in -Wno-parentheses; do
18850 haveit=
18851 for x in $CXXFLAGS; do
18852
18853 acl_save_prefix="$prefix"
18854 prefix="$acl_final_prefix"
18855 acl_save_exec_prefix="$exec_prefix"
18856 exec_prefix="$acl_final_exec_prefix"
18857 eval x=\"$x\"
18858 exec_prefix="$acl_save_exec_prefix"
18859 prefix="$acl_save_prefix"
18860
18861 if test "X$x" = "X$element"; then
18862 haveit=yes
18863 break
18864 fi
18865 done
18866 if test -z "$haveit"; then
18867 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18868 fi
18869 done
18870
18871
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874
18875 _ACEOF
18876 if ac_fn_cxx_try_compile "$LINENO"; then :
18877 cy_good=1
18878 else
18879 cy_good=0
18880 fi
18881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882
18883 CXXFLAGS=$cy_save
18884 if test "x$cy_good" = x1; then :
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886 $as_echo "yes" >&6; }
18887
18888 for element in -Wno-parentheses; do
18889 haveit=
18890 for x in $CXXFLAGS; do
18891
18892 acl_save_prefix="$prefix"
18893 prefix="$acl_final_prefix"
18894 acl_save_exec_prefix="$exec_prefix"
18895 exec_prefix="$acl_final_exec_prefix"
18896 eval x=\"$x\"
18897 exec_prefix="$acl_save_exec_prefix"
18898 prefix="$acl_save_prefix"
18899
18900 if test "X$x" = "X$element"; then
18901 haveit=yes
18902 break
18903 fi
18904 done
18905 if test -z "$haveit"; then
18906 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18907 fi
18908 done
18909
18910
18911 else
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18914 fi
18915
18916 ac_ext=cpp
18917 ac_cpp='$CXXCPP $CPPFLAGS'
18918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18921
18922
18923
18924 ac_ext=mm
18925 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18926 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18927 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18928 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18929
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18931 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18932
18933 cy_save=$OBJCXXFLAGS
18934
18935 for element in -Wno-parentheses; do
18936 haveit=
18937 for x in $OBJCXXFLAGS; do
18938
18939 acl_save_prefix="$prefix"
18940 prefix="$acl_final_prefix"
18941 acl_save_exec_prefix="$exec_prefix"
18942 exec_prefix="$acl_final_exec_prefix"
18943 eval x=\"$x\"
18944 exec_prefix="$acl_save_exec_prefix"
18945 prefix="$acl_save_prefix"
18946
18947 if test "X$x" = "X$element"; then
18948 haveit=yes
18949 break
18950 fi
18951 done
18952 if test -z "$haveit"; then
18953 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18954 fi
18955 done
18956
18957
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18960
18961 _ACEOF
18962 if ac_fn_objcxx_try_compile "$LINENO"; then :
18963 cy_good=1
18964 else
18965 cy_good=0
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968
18969 OBJCXXFLAGS=$cy_save
18970 if test "x$cy_good" = x1; then :
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18972 $as_echo "yes" >&6; }
18973
18974 for element in -Wno-parentheses; do
18975 haveit=
18976 for x in $OBJCXXFLAGS; do
18977
18978 acl_save_prefix="$prefix"
18979 prefix="$acl_final_prefix"
18980 acl_save_exec_prefix="$exec_prefix"
18981 exec_prefix="$acl_final_exec_prefix"
18982 eval x=\"$x\"
18983 exec_prefix="$acl_save_exec_prefix"
18984 prefix="$acl_save_prefix"
18985
18986 if test "X$x" = "X$element"; then
18987 haveit=yes
18988 break
18989 fi
18990 done
18991 if test -z "$haveit"; then
18992 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18993 fi
18994 done
18995
18996
18997 else
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999 $as_echo "no" >&6; }
19000 fi
19001
19002 ac_ext=cpp
19003 ac_cpp='$CXXCPP $CPPFLAGS'
19004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19007
19008
19009
19010
19011
19012 ac_ext=c
19013 ac_cpp='$CPP $CPPFLAGS'
19014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19017
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
19019 $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
19020
19021 cy_save=$CFLAGS
19022
19023 for element in -Wno-tautological-undefined-compare; do
19024 haveit=
19025 for x in $CFLAGS; do
19026
19027 acl_save_prefix="$prefix"
19028 prefix="$acl_final_prefix"
19029 acl_save_exec_prefix="$exec_prefix"
19030 exec_prefix="$acl_final_exec_prefix"
19031 eval x=\"$x\"
19032 exec_prefix="$acl_save_exec_prefix"
19033 prefix="$acl_save_prefix"
19034
19035 if test "X$x" = "X$element"; then
19036 haveit=yes
19037 break
19038 fi
19039 done
19040 if test -z "$haveit"; then
19041 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19042 fi
19043 done
19044
19045
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048
19049 _ACEOF
19050 if ac_fn_c_try_compile "$LINENO"; then :
19051 cy_good=1
19052 else
19053 cy_good=0
19054 fi
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056
19057 CFLAGS=$cy_save
19058 if test "x$cy_good" = x1; then :
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19060 $as_echo "yes" >&6; }
19061
19062 for element in -Wno-tautological-undefined-compare; do
19063 haveit=
19064 for x in $CFLAGS; do
19065
19066 acl_save_prefix="$prefix"
19067 prefix="$acl_final_prefix"
19068 acl_save_exec_prefix="$exec_prefix"
19069 exec_prefix="$acl_final_exec_prefix"
19070 eval x=\"$x\"
19071 exec_prefix="$acl_save_exec_prefix"
19072 prefix="$acl_save_prefix"
19073
19074 if test "X$x" = "X$element"; then
19075 haveit=yes
19076 break
19077 fi
19078 done
19079 if test -z "$haveit"; then
19080 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19081 fi
19082 done
19083
19084
19085 else
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087 $as_echo "no" >&6; }
19088 fi
19089
19090 ac_ext=cpp
19091 ac_cpp='$CXXCPP $CPPFLAGS'
19092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19095
19096
19097
19098 ac_ext=cpp
19099 ac_cpp='$CXXCPP $CPPFLAGS'
19100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19103
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
19105 $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
19106
19107 cy_save=$CXXFLAGS
19108
19109 for element in -Wno-tautological-undefined-compare; do
19110 haveit=
19111 for x in $CXXFLAGS; do
19112
19113 acl_save_prefix="$prefix"
19114 prefix="$acl_final_prefix"
19115 acl_save_exec_prefix="$exec_prefix"
19116 exec_prefix="$acl_final_exec_prefix"
19117 eval x=\"$x\"
19118 exec_prefix="$acl_save_exec_prefix"
19119 prefix="$acl_save_prefix"
19120
19121 if test "X$x" = "X$element"; then
19122 haveit=yes
19123 break
19124 fi
19125 done
19126 if test -z "$haveit"; then
19127 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19128 fi
19129 done
19130
19131
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19134
19135 _ACEOF
19136 if ac_fn_cxx_try_compile "$LINENO"; then :
19137 cy_good=1
19138 else
19139 cy_good=0
19140 fi
19141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19142
19143 CXXFLAGS=$cy_save
19144 if test "x$cy_good" = x1; then :
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19146 $as_echo "yes" >&6; }
19147
19148 for element in -Wno-tautological-undefined-compare; do
19149 haveit=
19150 for x in $CXXFLAGS; do
19151
19152 acl_save_prefix="$prefix"
19153 prefix="$acl_final_prefix"
19154 acl_save_exec_prefix="$exec_prefix"
19155 exec_prefix="$acl_final_exec_prefix"
19156 eval x=\"$x\"
19157 exec_prefix="$acl_save_exec_prefix"
19158 prefix="$acl_save_prefix"
19159
19160 if test "X$x" = "X$element"; then
19161 haveit=yes
19162 break
19163 fi
19164 done
19165 if test -z "$haveit"; then
19166 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19167 fi
19168 done
19169
19170
19171 else
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19173 $as_echo "no" >&6; }
19174 fi
19175
19176 ac_ext=cpp
19177 ac_cpp='$CXXCPP $CPPFLAGS'
19178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19181
19182
19183
19184 ac_ext=mm
19185 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19186 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19189
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
19191 $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
19192
19193 cy_save=$OBJCXXFLAGS
19194
19195 for element in -Wno-tautological-undefined-compare; do
19196 haveit=
19197 for x in $OBJCXXFLAGS; do
19198
19199 acl_save_prefix="$prefix"
19200 prefix="$acl_final_prefix"
19201 acl_save_exec_prefix="$exec_prefix"
19202 exec_prefix="$acl_final_exec_prefix"
19203 eval x=\"$x\"
19204 exec_prefix="$acl_save_exec_prefix"
19205 prefix="$acl_save_prefix"
19206
19207 if test "X$x" = "X$element"; then
19208 haveit=yes
19209 break
19210 fi
19211 done
19212 if test -z "$haveit"; then
19213 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19214 fi
19215 done
19216
19217
19218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219 /* end confdefs.h. */
19220
19221 _ACEOF
19222 if ac_fn_objcxx_try_compile "$LINENO"; then :
19223 cy_good=1
19224 else
19225 cy_good=0
19226 fi
19227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228
19229 OBJCXXFLAGS=$cy_save
19230 if test "x$cy_good" = x1; then :
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233
19234 for element in -Wno-tautological-undefined-compare; do
19235 haveit=
19236 for x in $OBJCXXFLAGS; do
19237
19238 acl_save_prefix="$prefix"
19239 prefix="$acl_final_prefix"
19240 acl_save_exec_prefix="$exec_prefix"
19241 exec_prefix="$acl_final_exec_prefix"
19242 eval x=\"$x\"
19243 exec_prefix="$acl_save_exec_prefix"
19244 prefix="$acl_save_prefix"
19245
19246 if test "X$x" = "X$element"; then
19247 haveit=yes
19248 break
19249 fi
19250 done
19251 if test -z "$haveit"; then
19252 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19253 fi
19254 done
19255
19256
19257 else
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259 $as_echo "no" >&6; }
19260 fi
19261
19262 ac_ext=cpp
19263 ac_cpp='$CXXCPP $CPPFLAGS'
19264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19267
19268
19269
19270
19271
19272 ac_ext=c
19273 ac_cpp='$CPP $CPPFLAGS'
19274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19277
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
19279 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
19280
19281 cy_save=$CFLAGS
19282
19283 for element in -Wno-unneeded-internal-declaration; do
19284 haveit=
19285 for x in $CFLAGS; do
19286
19287 acl_save_prefix="$prefix"
19288 prefix="$acl_final_prefix"
19289 acl_save_exec_prefix="$exec_prefix"
19290 exec_prefix="$acl_final_exec_prefix"
19291 eval x=\"$x\"
19292 exec_prefix="$acl_save_exec_prefix"
19293 prefix="$acl_save_prefix"
19294
19295 if test "X$x" = "X$element"; then
19296 haveit=yes
19297 break
19298 fi
19299 done
19300 if test -z "$haveit"; then
19301 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19302 fi
19303 done
19304
19305
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19308
19309 _ACEOF
19310 if ac_fn_c_try_compile "$LINENO"; then :
19311 cy_good=1
19312 else
19313 cy_good=0
19314 fi
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316
19317 CFLAGS=$cy_save
19318 if test "x$cy_good" = x1; then :
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19320 $as_echo "yes" >&6; }
19321
19322 for element in -Wno-unneeded-internal-declaration; do
19323 haveit=
19324 for x in $CFLAGS; do
19325
19326 acl_save_prefix="$prefix"
19327 prefix="$acl_final_prefix"
19328 acl_save_exec_prefix="$exec_prefix"
19329 exec_prefix="$acl_final_exec_prefix"
19330 eval x=\"$x\"
19331 exec_prefix="$acl_save_exec_prefix"
19332 prefix="$acl_save_prefix"
19333
19334 if test "X$x" = "X$element"; then
19335 haveit=yes
19336 break
19337 fi
19338 done
19339 if test -z "$haveit"; then
19340 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19341 fi
19342 done
19343
19344
19345 else
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19347 $as_echo "no" >&6; }
19348 fi
19349
19350 ac_ext=cpp
19351 ac_cpp='$CXXCPP $CPPFLAGS'
19352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19355
19356
19357
19358 ac_ext=cpp
19359 ac_cpp='$CXXCPP $CPPFLAGS'
19360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19363
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
19365 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
19366
19367 cy_save=$CXXFLAGS
19368
19369 for element in -Wno-unneeded-internal-declaration; do
19370 haveit=
19371 for x in $CXXFLAGS; do
19372
19373 acl_save_prefix="$prefix"
19374 prefix="$acl_final_prefix"
19375 acl_save_exec_prefix="$exec_prefix"
19376 exec_prefix="$acl_final_exec_prefix"
19377 eval x=\"$x\"
19378 exec_prefix="$acl_save_exec_prefix"
19379 prefix="$acl_save_prefix"
19380
19381 if test "X$x" = "X$element"; then
19382 haveit=yes
19383 break
19384 fi
19385 done
19386 if test -z "$haveit"; then
19387 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19388 fi
19389 done
19390
19391
19392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h. */
19394
19395 _ACEOF
19396 if ac_fn_cxx_try_compile "$LINENO"; then :
19397 cy_good=1
19398 else
19399 cy_good=0
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402
19403 CXXFLAGS=$cy_save
19404 if test "x$cy_good" = x1; then :
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19406 $as_echo "yes" >&6; }
19407
19408 for element in -Wno-unneeded-internal-declaration; do
19409 haveit=
19410 for x in $CXXFLAGS; do
19411
19412 acl_save_prefix="$prefix"
19413 prefix="$acl_final_prefix"
19414 acl_save_exec_prefix="$exec_prefix"
19415 exec_prefix="$acl_final_exec_prefix"
19416 eval x=\"$x\"
19417 exec_prefix="$acl_save_exec_prefix"
19418 prefix="$acl_save_prefix"
19419
19420 if test "X$x" = "X$element"; then
19421 haveit=yes
19422 break
19423 fi
19424 done
19425 if test -z "$haveit"; then
19426 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19427 fi
19428 done
19429
19430
19431 else
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19433 $as_echo "no" >&6; }
19434 fi
19435
19436 ac_ext=cpp
19437 ac_cpp='$CXXCPP $CPPFLAGS'
19438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19441
19442
19443
19444 ac_ext=mm
19445 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19446 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19449
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
19451 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
19452
19453 cy_save=$OBJCXXFLAGS
19454
19455 for element in -Wno-unneeded-internal-declaration; do
19456 haveit=
19457 for x in $OBJCXXFLAGS; do
19458
19459 acl_save_prefix="$prefix"
19460 prefix="$acl_final_prefix"
19461 acl_save_exec_prefix="$exec_prefix"
19462 exec_prefix="$acl_final_exec_prefix"
19463 eval x=\"$x\"
19464 exec_prefix="$acl_save_exec_prefix"
19465 prefix="$acl_save_prefix"
19466
19467 if test "X$x" = "X$element"; then
19468 haveit=yes
19469 break
19470 fi
19471 done
19472 if test -z "$haveit"; then
19473 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19474 fi
19475 done
19476
19477
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19480
19481 _ACEOF
19482 if ac_fn_objcxx_try_compile "$LINENO"; then :
19483 cy_good=1
19484 else
19485 cy_good=0
19486 fi
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488
19489 OBJCXXFLAGS=$cy_save
19490 if test "x$cy_good" = x1; then :
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19492 $as_echo "yes" >&6; }
19493
19494 for element in -Wno-unneeded-internal-declaration; do
19495 haveit=
19496 for x in $OBJCXXFLAGS; do
19497
19498 acl_save_prefix="$prefix"
19499 prefix="$acl_final_prefix"
19500 acl_save_exec_prefix="$exec_prefix"
19501 exec_prefix="$acl_final_exec_prefix"
19502 eval x=\"$x\"
19503 exec_prefix="$acl_save_exec_prefix"
19504 prefix="$acl_save_prefix"
19505
19506 if test "X$x" = "X$element"; then
19507 haveit=yes
19508 break
19509 fi
19510 done
19511 if test -z "$haveit"; then
19512 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19513 fi
19514 done
19515
19516
19517 else
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19519 $as_echo "no" >&6; }
19520 fi
19521
19522 ac_ext=cpp
19523 ac_cpp='$CXXCPP $CPPFLAGS'
19524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19527
19528
19529
19530
19531
19532
19533
19534 ac_ext=c
19535 ac_cpp='$CPP $CPPFLAGS'
19536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539
19540 ax_pthread_ok=no
19541
19542 # We used to check for pthread.h first, but this fails if pthread.h
19543 # requires special compiler flags (e.g. on Tru64 or Sequent).
19544 # It gets checked for in the link test anyway.
19545
19546 # First of all, check if the user has set any of the PTHREAD_LIBS,
19547 # etcetera environment variables, and if threads linking works using
19548 # them:
19549 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19550 save_CFLAGS="$CFLAGS"
19551 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19552 save_LIBS="$LIBS"
19553 LIBS="$PTHREAD_LIBS $LIBS"
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19555 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 char pthread_join ();
19566 int
19567 main ()
19568 {
19569 return pthread_join ();
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 ax_pthread_ok=yes
19576 fi
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19580 $as_echo "$ax_pthread_ok" >&6; }
19581 if test x"$ax_pthread_ok" = xno; then
19582 PTHREAD_LIBS=""
19583 PTHREAD_CFLAGS=""
19584 fi
19585 LIBS="$save_LIBS"
19586 CFLAGS="$save_CFLAGS"
19587 fi
19588
19589 # We must check for the threads library under a number of different
19590 # names; the ordering is very important because some systems
19591 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19592 # libraries is broken (non-POSIX).
19593
19594 # Create a list of thread flags to try. Items starting with a "-" are
19595 # C compiler flags, and other items are library names, except for "none"
19596 # which indicates that we try without any flags at all, and "pthread-config"
19597 # which is a program returning the flags for the Pth emulation library.
19598
19599 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19600
19601 # The ordering *is* (sometimes) important. Some notes on the
19602 # individual items follow:
19603
19604 # pthreads: AIX (must check this before -lpthread)
19605 # none: in case threads are in libc; should be tried before -Kthread and
19606 # other compiler flags to prevent continual compiler warnings
19607 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19608 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19609 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19610 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19611 # -pthreads: Solaris/gcc
19612 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19613 # doesn't hurt to check since this sometimes defines pthreads and
19614 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19615 # is present but should not be used directly)
19616 # -mthreads: Mingw32/gcc, Lynx/gcc
19617 # pthread: Linux, etcetera
19618 # --thread-safe: KAI C++
19619 # pthread-config: use pthread-config program (for GNU Pth library)
19620
19621 case $host_os in
19622
19623 hpux*)
19624
19625 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19626 # multi-threading and also sets -lpthread."
19627
19628 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19629 ;;
19630
19631 openedition*)
19632
19633 # IBM z/OS requires a feature-test macro to be defined in order to
19634 # enable POSIX threads at all, so give the user a hint if this is
19635 # not set. (We don't define these ourselves, as they can affect
19636 # other portions of the system API in unpredictable ways.)
19637
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640
19641 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19642 AX_PTHREAD_ZOS_MISSING
19643 # endif
19644
19645 _ACEOF
19646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19647 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19649 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19650 fi
19651 rm -f conftest*
19652
19653 ;;
19654
19655 solaris*)
19656
19657 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19658 # check that first. On some older versions, libc contains stubbed
19659 # (non-functional) versions of the pthreads routines, so link-based
19660 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19661 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19662 # a function called by this macro, so we could check for that, but
19663 # who knows whether they'll stub that too in a future libc.) So
19664 # we'll look for -pthreads and -lpthread shortly thereafter.
19665
19666 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19667 ;;
19668 esac
19669
19670 # Older versions of Clang only give a warning instead of an error for an
19671 # unrecognized option, unless we specify -Werror. (We throw in some extra
19672 # Clang warning flags for good measure.)
19673
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19675 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19676 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19677 $as_echo_n "(cached) " >&6
19678 else
19679 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19680 save_CFLAGS="$CFLAGS"
19681 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19682 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19685 int foo(void);
19686 int
19687 main ()
19688 {
19689 foo()
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 if ac_fn_c_try_compile "$LINENO"; then :
19695 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19696 else
19697 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19698 fi
19699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19700 CFLAGS="$save_CFLAGS"
19701
19702 fi
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19704 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19705 ax_pthread_extra_flags=
19706 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19707 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19708 fi
19709
19710 if test x"$ax_pthread_ok" = xno; then
19711 for flag in $ax_pthread_flags; do
19712
19713 case $flag in
19714 none)
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19716 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19717 ;;
19718
19719 -mt,pthread)
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19721 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19722 PTHREAD_CFLAGS="-mt"
19723 PTHREAD_LIBS="-lpthread"
19724 ;;
19725
19726 -*)
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19728 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19729 PTHREAD_CFLAGS="$flag"
19730 ;;
19731
19732 pthread-config)
19733 # Extract the first word of "pthread-config", so it can be a program name with args.
19734 set dummy pthread-config; ac_word=$2
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19736 $as_echo_n "checking for $ac_word... " >&6; }
19737 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19738 $as_echo_n "(cached) " >&6
19739 else
19740 if test -n "$ax_pthread_config"; then
19741 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19742 else
19743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19744 for as_dir in $PATH
19745 do
19746 IFS=$as_save_IFS
19747 test -z "$as_dir" && as_dir=.
19748 for ac_exec_ext in '' $ac_executable_extensions; do
19749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19750 ac_cv_prog_ax_pthread_config="yes"
19751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19752 break 2
19753 fi
19754 done
19755 done
19756 IFS=$as_save_IFS
19757
19758 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19759 fi
19760 fi
19761 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19762 if test -n "$ax_pthread_config"; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19764 $as_echo "$ax_pthread_config" >&6; }
19765 else
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19767 $as_echo "no" >&6; }
19768 fi
19769
19770
19771 if test x"$ax_pthread_config" = xno; then continue; fi
19772 PTHREAD_CFLAGS="`pthread-config --cflags`"
19773 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19774 ;;
19775
19776 *)
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19778 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19779 PTHREAD_LIBS="-l$flag"
19780 ;;
19781 esac
19782
19783 save_LIBS="$LIBS"
19784 save_CFLAGS="$CFLAGS"
19785 LIBS="$PTHREAD_LIBS $LIBS"
19786 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19787
19788 # Check for various functions. We must include pthread.h,
19789 # since some functions may be macros. (On the Sequent, we
19790 # need a special flag -Kthread to make this header compile.)
19791 # We check for pthread_join because it is in -lpthread on IRIX
19792 # while pthread_create is in libc. We check for pthread_attr_init
19793 # due to DEC craziness with -lpthreads. We check for
19794 # pthread_cleanup_push because it is one of the few pthread
19795 # functions on Solaris that doesn't have a non-functional libc stub.
19796 # We try pthread_create on general principles.
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799 #include <pthread.h>
19800 static void routine(void *a) { a = 0; }
19801 static void *start_routine(void *a) { return a; }
19802 int
19803 main ()
19804 {
19805 pthread_t th; pthread_attr_t attr;
19806 pthread_create(&th, 0, start_routine, 0);
19807 pthread_join(th, 0);
19808 pthread_attr_init(&attr);
19809 pthread_cleanup_push(routine, 0);
19810 pthread_cleanup_pop(0) /* ; */
19811 ;
19812 return 0;
19813 }
19814 _ACEOF
19815 if ac_fn_c_try_link "$LINENO"; then :
19816 ax_pthread_ok=yes
19817 fi
19818 rm -f core conftest.err conftest.$ac_objext \
19819 conftest$ac_exeext conftest.$ac_ext
19820
19821 LIBS="$save_LIBS"
19822 CFLAGS="$save_CFLAGS"
19823
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19825 $as_echo "$ax_pthread_ok" >&6; }
19826 if test "x$ax_pthread_ok" = xyes; then
19827 break;
19828 fi
19829
19830 PTHREAD_LIBS=""
19831 PTHREAD_CFLAGS=""
19832 done
19833 fi
19834
19835 # Various other checks:
19836 if test "x$ax_pthread_ok" = xyes; then
19837 save_LIBS="$LIBS"
19838 LIBS="$PTHREAD_LIBS $LIBS"
19839 save_CFLAGS="$CFLAGS"
19840 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19841
19842 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19844 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19845 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19846 $as_echo_n "(cached) " >&6
19847 else
19848 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19849 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19852 #include <pthread.h>
19853 int
19854 main ()
19855 {
19856 int attr = $attr; return attr /* ; */
19857 ;
19858 return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_c_try_link "$LINENO"; then :
19862 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19863 fi
19864 rm -f core conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 done
19867
19868 fi
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19870 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19871 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19872 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19873
19874 cat >>confdefs.h <<_ACEOF
19875 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19876 _ACEOF
19877
19878 fi
19879
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19881 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19882 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19883 $as_echo_n "(cached) " >&6
19884 else
19885 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19886 ax_pthread_special_flags_added=no
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889
19890 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19891 AX_PTHREAD_NEED_SPECIAL_FLAG
19892 # endif
19893
19894 _ACEOF
19895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19896 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19897 case $host_os in
19898 aix* | freebsd*)
19899 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19900 ;;
19901 darwin* | hpux* | osf* | solaris*)
19902 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19903 ;;
19904 esac
19905
19906 fi
19907 rm -f conftest*
19908
19909
19910 fi
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19912 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19913 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19914 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19915 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19916 ax_pthread_special_flags_added=yes
19917 fi
19918
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19920 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19921 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19922 $as_echo_n "(cached) " >&6
19923 else
19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19926 #include <pthread.h>
19927 int
19928 main ()
19929 {
19930 int i = PTHREAD_PRIO_INHERIT;
19931 ;
19932 return 0;
19933 }
19934 _ACEOF
19935 if ac_fn_c_try_link "$LINENO"; then :
19936 ax_cv_PTHREAD_PRIO_INHERIT=yes
19937 else
19938 ax_cv_PTHREAD_PRIO_INHERIT=no
19939 fi
19940 rm -f core conftest.err conftest.$ac_objext \
19941 conftest$ac_exeext conftest.$ac_ext
19942
19943 fi
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19945 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19946 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19947
19948 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19949
19950 fi
19951
19952 LIBS="$save_LIBS"
19953 CFLAGS="$save_CFLAGS"
19954
19955 # More AIX lossage: compile with *_r variant
19956 if test "x$GCC" != xyes; then
19957 case $host_os in
19958 aix*)
19959 case "x/$CC" in #(
19960 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19961 #handle absolute path differently from PATH based program lookup
19962 case "x$CC" in #(
19963 x/*) :
19964 if as_fn_executable_p ${CC}_r; then :
19965 PTHREAD_CC="${CC}_r"
19966 fi ;; #(
19967 *) :
19968 for ac_prog in ${CC}_r
19969 do
19970 # Extract the first word of "$ac_prog", so it can be a program name with args.
19971 set dummy $ac_prog; ac_word=$2
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19973 $as_echo_n "checking for $ac_word... " >&6; }
19974 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19977 if test -n "$PTHREAD_CC"; then
19978 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19979 else
19980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19981 for as_dir in $PATH
19982 do
19983 IFS=$as_save_IFS
19984 test -z "$as_dir" && as_dir=.
19985 for ac_exec_ext in '' $ac_executable_extensions; do
19986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19987 ac_cv_prog_PTHREAD_CC="$ac_prog"
19988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19989 break 2
19990 fi
19991 done
19992 done
19993 IFS=$as_save_IFS
19994
19995 fi
19996 fi
19997 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19998 if test -n "$PTHREAD_CC"; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20000 $as_echo "$PTHREAD_CC" >&6; }
20001 else
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20003 $as_echo "no" >&6; }
20004 fi
20005
20006
20007 test -n "$PTHREAD_CC" && break
20008 done
20009 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20010 ;;
20011 esac ;; #(
20012 *) :
20013 ;;
20014 esac
20015 ;;
20016 esac
20017 fi
20018 fi
20019
20020 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20021
20022
20023
20024
20025
20026 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20027 if test x"$ax_pthread_ok" = xyes; then
20028
20029 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20030
20031 :
20032 else
20033 ax_pthread_ok=no
20034
20035 fi
20036 ac_ext=cpp
20037 ac_cpp='$CXXCPP $CPPFLAGS'
20038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050 # Check whether --enable-javascript was given.
20051 if test "${enable_javascript+set}" = set; then :
20052 enableval=$enable_javascript;
20053 case $enableval in #(
20054 yes) :
20055
20056
20057
20058
20059 cy_save=$LIBS
20060 LIBS=
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20062 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20063 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20064 $as_echo_n "(cached) " >&6
20065 else
20066 ac_func_search_save_LIBS=$LIBS
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20069
20070 /* Override any GCC internal prototype to avoid an error.
20071 Use char because int might match the return type of a GCC
20072 builtin and then its argument prototype would still apply. */
20073 #ifdef __cplusplus
20074 extern "C"
20075 #endif
20076 char JSEvaluateScript ();
20077 int
20078 main ()
20079 {
20080 return JSEvaluateScript ();
20081 ;
20082 return 0;
20083 }
20084 _ACEOF
20085 for ac_lib in '' JavaScriptCore; do
20086 if test -z "$ac_lib"; then
20087 ac_res="none required"
20088 else
20089 ac_res=-l$ac_lib
20090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20091 fi
20092 if ac_fn_cxx_try_link "$LINENO"; then :
20093 ac_cv_search_JSEvaluateScript=$ac_res
20094 fi
20095 rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext
20097 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20098 break
20099 fi
20100 done
20101 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20102
20103 else
20104 ac_cv_search_JSEvaluateScript=no
20105 fi
20106 rm conftest.$ac_ext
20107 LIBS=$ac_func_search_save_LIBS
20108 fi
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20110 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20111 ac_res=$ac_cv_search_JSEvaluateScript
20112 if test "$ac_res" != no; then :
20113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20114
20115 CY_EXECUTE=1
20116
20117
20118 else
20119
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20121 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20122 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20123 $as_echo_n "(cached) " >&6
20124 else
20125
20126 ac_check_framework_save_LIBS=$LIBS
20127 LIBS="-framework JavaScriptCore $LIBS"
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20130
20131 #include <JavaScriptCore/JSBase.h>
20132
20133 int
20134 main ()
20135 {
20136
20137 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20138
20139 ;
20140 return 0;
20141 }
20142 _ACEOF
20143 if ac_fn_cxx_try_link "$LINENO"; then :
20144
20145 ac_cv_framework_JavaScriptCore=yes
20146
20147 else
20148 ac_cv_framework_JavaScriptCore=no
20149 fi
20150 rm -f core conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_framework_save_LIBS
20153
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20156 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20157 if test $ac_cv_framework_JavaScriptCore = yes; then :
20158
20159
20160 for element in "-framework JavaScriptCore"; do
20161 haveit=
20162 for x in $LIBS; do
20163
20164 acl_save_prefix="$prefix"
20165 prefix="$acl_final_prefix"
20166 acl_save_exec_prefix="$exec_prefix"
20167 exec_prefix="$acl_final_exec_prefix"
20168 eval x=\"$x\"
20169 exec_prefix="$acl_save_exec_prefix"
20170 prefix="$acl_save_prefix"
20171
20172 if test "X$x" = "X$element"; then
20173 haveit=yes
20174 break
20175 fi
20176 done
20177 if test -z "$haveit"; then
20178 LIBS="${LIBS}${LIBS:+ }$element"
20179 fi
20180 done
20181
20182
20183 CY_EXECUTE=1
20184
20185
20186
20187 else
20188
20189 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20190
20191 pkg_failed=no
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20193 $as_echo_n "checking for WEBKIT... " >&6; }
20194
20195 if test -n "$WEBKIT_CFLAGS"; then
20196 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20197 elif test -n "$PKG_CONFIG"; then
20198 if test -n "$PKG_CONFIG" && \
20199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20200 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20201 ac_status=$?
20202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20203 test $ac_status = 0; }; then
20204 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20205 test "x$?" != "x0" && pkg_failed=yes
20206 else
20207 pkg_failed=yes
20208 fi
20209 else
20210 pkg_failed=untried
20211 fi
20212 if test -n "$WEBKIT_LIBS"; then
20213 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20214 elif test -n "$PKG_CONFIG"; then
20215 if test -n "$PKG_CONFIG" && \
20216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20217 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20218 ac_status=$?
20219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220 test $ac_status = 0; }; then
20221 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20222 test "x$?" != "x0" && pkg_failed=yes
20223 else
20224 pkg_failed=yes
20225 fi
20226 else
20227 pkg_failed=untried
20228 fi
20229
20230
20231
20232 if test $pkg_failed = yes; then
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20234 $as_echo "no" >&6; }
20235
20236 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20237 _pkg_short_errors_supported=yes
20238 else
20239 _pkg_short_errors_supported=no
20240 fi
20241 if test $_pkg_short_errors_supported = yes; then
20242 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20243 else
20244 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20245 fi
20246 # Put the nasty error message in config.log where it belongs
20247 echo "$WEBKIT_PKG_ERRORS" >&5
20248
20249 :
20250 elif test $pkg_failed = untried; then
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20252 $as_echo "no" >&6; }
20253 :
20254 else
20255 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20256 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20258 $as_echo "yes" >&6; }
20259
20260 CY_EXECUTE=1
20261
20262
20263 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20264 haveit=
20265 for x in $CPPFLAGS; do
20266
20267 acl_save_prefix="$prefix"
20268 prefix="$acl_final_prefix"
20269 acl_save_exec_prefix="$exec_prefix"
20270 exec_prefix="$acl_final_exec_prefix"
20271 eval x=\"$x\"
20272 exec_prefix="$acl_save_exec_prefix"
20273 prefix="$acl_save_prefix"
20274
20275 if test "X$x" = "X$element"; then
20276 haveit=yes
20277 break
20278 fi
20279 done
20280 if test -z "$haveit"; then
20281 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20282 fi
20283 done
20284
20285
20286 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20287 haveit=
20288 for x in $LIBS; do
20289
20290 acl_save_prefix="$prefix"
20291 prefix="$acl_final_prefix"
20292 acl_save_exec_prefix="$exec_prefix"
20293 exec_prefix="$acl_final_exec_prefix"
20294 eval x=\"$x\"
20295 exec_prefix="$acl_save_exec_prefix"
20296 prefix="$acl_save_prefix"
20297
20298 if test "X$x" = "X$element"; then
20299 haveit=yes
20300 break
20301 fi
20302 done
20303 if test -z "$haveit"; then
20304 LIBS="${LIBS}${LIBS:+ }$element"
20305 fi
20306 done
20307
20308
20309 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20310 done
20311
20312 fi
20313 fi
20314
20315 LTJAVASCRIPTCORE=$LIBS
20316 LIBS=$cy_save
20317
20318
20319 ;; #(
20320 no) :
20321
20322 CY_EXECUTE=0
20323 ;; #(
20324 JavaScriptCore) :
20325
20326
20327
20328 cy_save=$LIBS
20329 LIBS=
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20331 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20332 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 ac_func_search_save_LIBS=$LIBS
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20338
20339 /* Override any GCC internal prototype to avoid an error.
20340 Use char because int might match the return type of a GCC
20341 builtin and then its argument prototype would still apply. */
20342 #ifdef __cplusplus
20343 extern "C"
20344 #endif
20345 char JSEvaluateScript ();
20346 int
20347 main ()
20348 {
20349 return JSEvaluateScript ();
20350 ;
20351 return 0;
20352 }
20353 _ACEOF
20354 for ac_lib in '' JavaScriptCore; do
20355 if test -z "$ac_lib"; then
20356 ac_res="none required"
20357 else
20358 ac_res=-l$ac_lib
20359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20360 fi
20361 if ac_fn_cxx_try_link "$LINENO"; then :
20362 ac_cv_search_JSEvaluateScript=$ac_res
20363 fi
20364 rm -f core conftest.err conftest.$ac_objext \
20365 conftest$ac_exeext
20366 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20367 break
20368 fi
20369 done
20370 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20371
20372 else
20373 ac_cv_search_JSEvaluateScript=no
20374 fi
20375 rm conftest.$ac_ext
20376 LIBS=$ac_func_search_save_LIBS
20377 fi
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20379 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20380 ac_res=$ac_cv_search_JSEvaluateScript
20381 if test "$ac_res" != no; then :
20382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20383
20384 CY_EXECUTE=1
20385
20386
20387 else
20388
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20390 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20391 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20392 $as_echo_n "(cached) " >&6
20393 else
20394
20395 ac_check_framework_save_LIBS=$LIBS
20396 LIBS="-framework JavaScriptCore $LIBS"
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399
20400 #include <JavaScriptCore/JSBase.h>
20401
20402 int
20403 main ()
20404 {
20405
20406 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20407
20408 ;
20409 return 0;
20410 }
20411 _ACEOF
20412 if ac_fn_cxx_try_link "$LINENO"; then :
20413
20414 ac_cv_framework_JavaScriptCore=yes
20415
20416 else
20417 ac_cv_framework_JavaScriptCore=no
20418 fi
20419 rm -f core conftest.err conftest.$ac_objext \
20420 conftest$ac_exeext conftest.$ac_ext
20421 LIBS=$ac_check_framework_save_LIBS
20422
20423 fi
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20425 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20426 if test $ac_cv_framework_JavaScriptCore = yes; then :
20427
20428
20429 for element in "-framework JavaScriptCore"; do
20430 haveit=
20431 for x in $LIBS; do
20432
20433 acl_save_prefix="$prefix"
20434 prefix="$acl_final_prefix"
20435 acl_save_exec_prefix="$exec_prefix"
20436 exec_prefix="$acl_final_exec_prefix"
20437 eval x=\"$x\"
20438 exec_prefix="$acl_save_exec_prefix"
20439 prefix="$acl_save_prefix"
20440
20441 if test "X$x" = "X$element"; then
20442 haveit=yes
20443 break
20444 fi
20445 done
20446 if test -z "$haveit"; then
20447 LIBS="${LIBS}${LIBS:+ }$element"
20448 fi
20449 done
20450
20451
20452 CY_EXECUTE=1
20453
20454
20455
20456 else
20457
20458 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20459
20460 pkg_failed=no
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20462 $as_echo_n "checking for WEBKIT... " >&6; }
20463
20464 if test -n "$WEBKIT_CFLAGS"; then
20465 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20466 elif test -n "$PKG_CONFIG"; then
20467 if test -n "$PKG_CONFIG" && \
20468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20469 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20470 ac_status=$?
20471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20472 test $ac_status = 0; }; then
20473 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20474 test "x$?" != "x0" && pkg_failed=yes
20475 else
20476 pkg_failed=yes
20477 fi
20478 else
20479 pkg_failed=untried
20480 fi
20481 if test -n "$WEBKIT_LIBS"; then
20482 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20483 elif test -n "$PKG_CONFIG"; then
20484 if test -n "$PKG_CONFIG" && \
20485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20486 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20487 ac_status=$?
20488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20489 test $ac_status = 0; }; then
20490 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20491 test "x$?" != "x0" && pkg_failed=yes
20492 else
20493 pkg_failed=yes
20494 fi
20495 else
20496 pkg_failed=untried
20497 fi
20498
20499
20500
20501 if test $pkg_failed = yes; then
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20504
20505 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20506 _pkg_short_errors_supported=yes
20507 else
20508 _pkg_short_errors_supported=no
20509 fi
20510 if test $_pkg_short_errors_supported = yes; then
20511 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20512 else
20513 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20514 fi
20515 # Put the nasty error message in config.log where it belongs
20516 echo "$WEBKIT_PKG_ERRORS" >&5
20517
20518 :
20519 elif test $pkg_failed = untried; then
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20521 $as_echo "no" >&6; }
20522 :
20523 else
20524 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20525 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20527 $as_echo "yes" >&6; }
20528
20529 CY_EXECUTE=1
20530
20531
20532 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20533 haveit=
20534 for x in $CPPFLAGS; do
20535
20536 acl_save_prefix="$prefix"
20537 prefix="$acl_final_prefix"
20538 acl_save_exec_prefix="$exec_prefix"
20539 exec_prefix="$acl_final_exec_prefix"
20540 eval x=\"$x\"
20541 exec_prefix="$acl_save_exec_prefix"
20542 prefix="$acl_save_prefix"
20543
20544 if test "X$x" = "X$element"; then
20545 haveit=yes
20546 break
20547 fi
20548 done
20549 if test -z "$haveit"; then
20550 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20551 fi
20552 done
20553
20554
20555 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20556 haveit=
20557 for x in $LIBS; do
20558
20559 acl_save_prefix="$prefix"
20560 prefix="$acl_final_prefix"
20561 acl_save_exec_prefix="$exec_prefix"
20562 exec_prefix="$acl_final_exec_prefix"
20563 eval x=\"$x\"
20564 exec_prefix="$acl_save_exec_prefix"
20565 prefix="$acl_save_prefix"
20566
20567 if test "X$x" = "X$element"; then
20568 haveit=yes
20569 break
20570 fi
20571 done
20572 if test -z "$haveit"; then
20573 LIBS="${LIBS}${LIBS:+ }$element"
20574 fi
20575 done
20576
20577
20578 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20579 done
20580
20581 fi
20582 fi
20583
20584 LTJAVASCRIPTCORE=$LIBS
20585 LIBS=$cy_save
20586
20587
20588 ;; #(
20589 *) :
20590 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20591 esac
20592
20593 else
20594
20595
20596
20597 cy_save=$LIBS
20598 LIBS=
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20600 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20601 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20602 $as_echo_n "(cached) " >&6
20603 else
20604 ac_func_search_save_LIBS=$LIBS
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607
20608 /* Override any GCC internal prototype to avoid an error.
20609 Use char because int might match the return type of a GCC
20610 builtin and then its argument prototype would still apply. */
20611 #ifdef __cplusplus
20612 extern "C"
20613 #endif
20614 char JSEvaluateScript ();
20615 int
20616 main ()
20617 {
20618 return JSEvaluateScript ();
20619 ;
20620 return 0;
20621 }
20622 _ACEOF
20623 for ac_lib in '' JavaScriptCore; do
20624 if test -z "$ac_lib"; then
20625 ac_res="none required"
20626 else
20627 ac_res=-l$ac_lib
20628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20629 fi
20630 if ac_fn_cxx_try_link "$LINENO"; then :
20631 ac_cv_search_JSEvaluateScript=$ac_res
20632 fi
20633 rm -f core conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext
20635 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20636 break
20637 fi
20638 done
20639 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20640
20641 else
20642 ac_cv_search_JSEvaluateScript=no
20643 fi
20644 rm conftest.$ac_ext
20645 LIBS=$ac_func_search_save_LIBS
20646 fi
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20648 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20649 ac_res=$ac_cv_search_JSEvaluateScript
20650 if test "$ac_res" != no; then :
20651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20652
20653 CY_EXECUTE=1
20654
20655
20656 else
20657
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20659 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20660 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20661 $as_echo_n "(cached) " >&6
20662 else
20663
20664 ac_check_framework_save_LIBS=$LIBS
20665 LIBS="-framework JavaScriptCore $LIBS"
20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20668
20669 #include <JavaScriptCore/JSBase.h>
20670
20671 int
20672 main ()
20673 {
20674
20675 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20676
20677 ;
20678 return 0;
20679 }
20680 _ACEOF
20681 if ac_fn_cxx_try_link "$LINENO"; then :
20682
20683 ac_cv_framework_JavaScriptCore=yes
20684
20685 else
20686 ac_cv_framework_JavaScriptCore=no
20687 fi
20688 rm -f core conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690 LIBS=$ac_check_framework_save_LIBS
20691
20692 fi
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20694 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20695 if test $ac_cv_framework_JavaScriptCore = yes; then :
20696
20697
20698 for element in "-framework JavaScriptCore"; do
20699 haveit=
20700 for x in $LIBS; 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 LIBS="${LIBS}${LIBS:+ }$element"
20717 fi
20718 done
20719
20720
20721 CY_EXECUTE=1
20722
20723
20724
20725 else
20726
20727 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20728
20729 pkg_failed=no
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20731 $as_echo_n "checking for WEBKIT... " >&6; }
20732
20733 if test -n "$WEBKIT_CFLAGS"; then
20734 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20735 elif test -n "$PKG_CONFIG"; then
20736 if test -n "$PKG_CONFIG" && \
20737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20738 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20739 ac_status=$?
20740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20741 test $ac_status = 0; }; then
20742 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20743 test "x$?" != "x0" && pkg_failed=yes
20744 else
20745 pkg_failed=yes
20746 fi
20747 else
20748 pkg_failed=untried
20749 fi
20750 if test -n "$WEBKIT_LIBS"; then
20751 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20752 elif test -n "$PKG_CONFIG"; then
20753 if test -n "$PKG_CONFIG" && \
20754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20755 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20756 ac_status=$?
20757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20758 test $ac_status = 0; }; then
20759 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20760 test "x$?" != "x0" && pkg_failed=yes
20761 else
20762 pkg_failed=yes
20763 fi
20764 else
20765 pkg_failed=untried
20766 fi
20767
20768
20769
20770 if test $pkg_failed = yes; then
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20773
20774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20775 _pkg_short_errors_supported=yes
20776 else
20777 _pkg_short_errors_supported=no
20778 fi
20779 if test $_pkg_short_errors_supported = yes; then
20780 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20781 else
20782 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20783 fi
20784 # Put the nasty error message in config.log where it belongs
20785 echo "$WEBKIT_PKG_ERRORS" >&5
20786
20787 :
20788 elif test $pkg_failed = untried; then
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790 $as_echo "no" >&6; }
20791 :
20792 else
20793 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20794 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796 $as_echo "yes" >&6; }
20797
20798 CY_EXECUTE=1
20799
20800
20801 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20802 haveit=
20803 for x in $CPPFLAGS; do
20804
20805 acl_save_prefix="$prefix"
20806 prefix="$acl_final_prefix"
20807 acl_save_exec_prefix="$exec_prefix"
20808 exec_prefix="$acl_final_exec_prefix"
20809 eval x=\"$x\"
20810 exec_prefix="$acl_save_exec_prefix"
20811 prefix="$acl_save_prefix"
20812
20813 if test "X$x" = "X$element"; then
20814 haveit=yes
20815 break
20816 fi
20817 done
20818 if test -z "$haveit"; then
20819 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20820 fi
20821 done
20822
20823
20824 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20825 haveit=
20826 for x in $LIBS; do
20827
20828 acl_save_prefix="$prefix"
20829 prefix="$acl_final_prefix"
20830 acl_save_exec_prefix="$exec_prefix"
20831 exec_prefix="$acl_final_exec_prefix"
20832 eval x=\"$x\"
20833 exec_prefix="$acl_save_exec_prefix"
20834 prefix="$acl_save_prefix"
20835
20836 if test "X$x" = "X$element"; then
20837 haveit=yes
20838 break
20839 fi
20840 done
20841 if test -z "$haveit"; then
20842 LIBS="${LIBS}${LIBS:+ }$element"
20843 fi
20844 done
20845
20846
20847 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20848 done
20849
20850 fi
20851 fi
20852
20853 LTJAVASCRIPTCORE=$LIBS
20854 LIBS=$cy_save
20855
20856
20857
20858 fi
20859
20860
20861 # Check whether --enable-console was given.
20862 if test "${enable_console+set}" = set; then :
20863 enableval=$enable_console;
20864 fi
20865
20866 if test "x$enable_console" != "xno"; then
20867 CY_CONSOLE_TRUE=
20868 CY_CONSOLE_FALSE='#'
20869 else
20870 CY_CONSOLE_TRUE='#'
20871 CY_CONSOLE_FALSE=
20872 fi
20873
20874
20875 # Check whether --enable-attach was given.
20876 if test "${enable_attach+set}" = set; then :
20877 enableval=$enable_attach;
20878 fi
20879
20880 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20881 CY_ATTACH_TRUE=
20882 CY_ATTACH_FALSE='#'
20883 else
20884 CY_ATTACH_TRUE='#'
20885 CY_ATTACH_FALSE=
20886 fi
20887
20888
20889
20890
20891 if test "x$CY_EXECUTE" = x1; then
20892 CY_EXECUTE_TRUE=
20893 CY_EXECUTE_FALSE='#'
20894 else
20895 CY_EXECUTE_TRUE='#'
20896 CY_EXECUTE_FALSE=
20897 fi
20898
20899
20900
20901 case $CY_EXECUTE in #(
20902 1) :
20903
20904 for ac_header in ffi.h ffi/ffi.h
20905 do :
20906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20907 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20909 cat >>confdefs.h <<_ACEOF
20910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20911 _ACEOF
20912 break
20913 fi
20914
20915 done
20916
20917
20918
20919 cy_save=$LIBS
20920 LIBS=
20921 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20922
20923
20924 LIBFFI_CFLAGS
20925 C compiler flags for LIBFFI, overriding pkg-config
20926 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20927
20928 pkg_failed=no
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20930 $as_echo_n "checking for LIBFFI... " >&6; }
20931
20932 if test -n "$LIBFFI_CFLAGS"; then
20933 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20934 elif test -n "$PKG_CONFIG"; then
20935 if test -n "$PKG_CONFIG" && \
20936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20937 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20938 ac_status=$?
20939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20940 test $ac_status = 0; }; then
20941 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20942 test "x$?" != "x0" && pkg_failed=yes
20943 else
20944 pkg_failed=yes
20945 fi
20946 else
20947 pkg_failed=untried
20948 fi
20949 if test -n "$LIBFFI_LIBS"; then
20950 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20951 elif test -n "$PKG_CONFIG"; then
20952 if test -n "$PKG_CONFIG" && \
20953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20954 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20955 ac_status=$?
20956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20957 test $ac_status = 0; }; then
20958 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20959 test "x$?" != "x0" && pkg_failed=yes
20960 else
20961 pkg_failed=yes
20962 fi
20963 else
20964 pkg_failed=untried
20965 fi
20966
20967
20968
20969 if test $pkg_failed = yes; then
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20971 $as_echo "no" >&6; }
20972
20973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20974 _pkg_short_errors_supported=yes
20975 else
20976 _pkg_short_errors_supported=no
20977 fi
20978 if test $_pkg_short_errors_supported = yes; then
20979 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20980 else
20981 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20982 fi
20983 # Put the nasty error message in config.log where it belongs
20984 echo "$LIBFFI_PKG_ERRORS" >&5
20985
20986 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20987 elif test $pkg_failed = untried; then
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20989 $as_echo "no" >&6; }
20990 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20991 else
20992 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20993 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995 $as_echo "yes" >&6; }
20996
20997
20998 for element in `$PKG_CONFIG --cflags libffi`; do
20999 haveit=
21000 for x in $CPPFLAGS; do
21001
21002 acl_save_prefix="$prefix"
21003 prefix="$acl_final_prefix"
21004 acl_save_exec_prefix="$exec_prefix"
21005 exec_prefix="$acl_final_exec_prefix"
21006 eval x=\"$x\"
21007 exec_prefix="$acl_save_exec_prefix"
21008 prefix="$acl_save_prefix"
21009
21010 if test "X$x" = "X$element"; then
21011 haveit=yes
21012 break
21013 fi
21014 done
21015 if test -z "$haveit"; then
21016 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21017 fi
21018 done
21019
21020
21021 for element in `$PKG_CONFIG --libs libffi`; do
21022 haveit=
21023 for x in $LIBS; do
21024
21025 acl_save_prefix="$prefix"
21026 prefix="$acl_final_prefix"
21027 acl_save_exec_prefix="$exec_prefix"
21028 exec_prefix="$acl_final_exec_prefix"
21029 eval x=\"$x\"
21030 exec_prefix="$acl_save_exec_prefix"
21031 prefix="$acl_save_prefix"
21032
21033 if test "X$x" = "X$element"; then
21034 haveit=yes
21035 break
21036 fi
21037 done
21038 if test -z "$haveit"; then
21039 LIBS="${LIBS}${LIBS:+ }$element"
21040 fi
21041 done
21042
21043
21044 fi
21045
21046 else
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
21049 $as_echo_n "checking for library containing ffi_call... " >&6; }
21050 if ${ac_cv_search_ffi_call+:} false; then :
21051 $as_echo_n "(cached) " >&6
21052 else
21053 ac_func_search_save_LIBS=$LIBS
21054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21055 /* end confdefs.h. */
21056
21057 /* Override any GCC internal prototype to avoid an error.
21058 Use char because int might match the return type of a GCC
21059 builtin and then its argument prototype would still apply. */
21060 #ifdef __cplusplus
21061 extern "C"
21062 #endif
21063 char ffi_call ();
21064 int
21065 main ()
21066 {
21067 return ffi_call ();
21068 ;
21069 return 0;
21070 }
21071 _ACEOF
21072 for ac_lib in '' ffi; do
21073 if test -z "$ac_lib"; then
21074 ac_res="none required"
21075 else
21076 ac_res=-l$ac_lib
21077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21078 fi
21079 if ac_fn_cxx_try_link "$LINENO"; then :
21080 ac_cv_search_ffi_call=$ac_res
21081 fi
21082 rm -f core conftest.err conftest.$ac_objext \
21083 conftest$ac_exeext
21084 if ${ac_cv_search_ffi_call+:} false; then :
21085 break
21086 fi
21087 done
21088 if ${ac_cv_search_ffi_call+:} false; then :
21089
21090 else
21091 ac_cv_search_ffi_call=no
21092 fi
21093 rm conftest.$ac_ext
21094 LIBS=$ac_func_search_save_LIBS
21095 fi
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
21097 $as_echo "$ac_cv_search_ffi_call" >&6; }
21098 ac_res=$ac_cv_search_ffi_call
21099 if test "$ac_res" != no; then :
21100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21101
21102 fi
21103
21104 case $ac_cv_search_ffi_call in #(
21105 no) :
21106
21107
21108 pkg_failed=no
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21110 $as_echo_n "checking for LIBFFI... " >&6; }
21111
21112 if test -n "$LIBFFI_CFLAGS"; then
21113 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
21114 elif test -n "$PKG_CONFIG"; then
21115 if test -n "$PKG_CONFIG" && \
21116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21117 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21118 ac_status=$?
21119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120 test $ac_status = 0; }; then
21121 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
21122 test "x$?" != "x0" && pkg_failed=yes
21123 else
21124 pkg_failed=yes
21125 fi
21126 else
21127 pkg_failed=untried
21128 fi
21129 if test -n "$LIBFFI_LIBS"; then
21130 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
21131 elif test -n "$PKG_CONFIG"; then
21132 if test -n "$PKG_CONFIG" && \
21133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21134 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21135 ac_status=$?
21136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21137 test $ac_status = 0; }; then
21138 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
21139 test "x$?" != "x0" && pkg_failed=yes
21140 else
21141 pkg_failed=yes
21142 fi
21143 else
21144 pkg_failed=untried
21145 fi
21146
21147
21148
21149 if test $pkg_failed = yes; then
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21152
21153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21154 _pkg_short_errors_supported=yes
21155 else
21156 _pkg_short_errors_supported=no
21157 fi
21158 if test $_pkg_short_errors_supported = yes; then
21159 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
21160 else
21161 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
21162 fi
21163 # Put the nasty error message in config.log where it belongs
21164 echo "$LIBFFI_PKG_ERRORS" >&5
21165
21166 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21167 elif test $pkg_failed = untried; then
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21169 $as_echo "no" >&6; }
21170 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21171 else
21172 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21173 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21175 $as_echo "yes" >&6; }
21176
21177
21178 for element in `$PKG_CONFIG --cflags libffi`; do
21179 haveit=
21180 for x in $CPPFLAGS; do
21181
21182 acl_save_prefix="$prefix"
21183 prefix="$acl_final_prefix"
21184 acl_save_exec_prefix="$exec_prefix"
21185 exec_prefix="$acl_final_exec_prefix"
21186 eval x=\"$x\"
21187 exec_prefix="$acl_save_exec_prefix"
21188 prefix="$acl_save_prefix"
21189
21190 if test "X$x" = "X$element"; then
21191 haveit=yes
21192 break
21193 fi
21194 done
21195 if test -z "$haveit"; then
21196 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21197 fi
21198 done
21199
21200
21201 for element in `$PKG_CONFIG --libs libffi`; do
21202 haveit=
21203 for x in $LIBS; do
21204
21205 acl_save_prefix="$prefix"
21206 prefix="$acl_final_prefix"
21207 acl_save_exec_prefix="$exec_prefix"
21208 exec_prefix="$acl_final_exec_prefix"
21209 eval x=\"$x\"
21210 exec_prefix="$acl_save_exec_prefix"
21211 prefix="$acl_save_prefix"
21212
21213 if test "X$x" = "X$element"; then
21214 haveit=yes
21215 break
21216 fi
21217 done
21218 if test -z "$haveit"; then
21219 LIBS="${LIBS}${LIBS:+ }$element"
21220 fi
21221 done
21222
21223
21224 fi ;; #(
21225 *) :
21226 ;;
21227 esac
21228
21229 fi
21230 LTLIBFFI=$LIBS
21231 LIBS=$cy_save
21232
21233
21234
21235
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
21237 $as_echo_n "checking for framework JavaVM... " >&6; }
21238 if ${ac_cv_framework_JavaVM+:} false; then :
21239 $as_echo_n "(cached) " >&6
21240 else
21241
21242 ac_check_framework_save_LIBS=$LIBS
21243 LIBS="-framework JavaVM $LIBS"
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h. */
21246
21247 #include <JavaVM/jni.h>
21248
21249 int
21250 main ()
21251 {
21252 JNI_GetCreatedJavaVMs(NULL, 0, NULL);
21253 ;
21254 return 0;
21255 }
21256 _ACEOF
21257 if ac_fn_cxx_try_link "$LINENO"; then :
21258
21259 ac_cv_framework_JavaVM=yes
21260
21261 else
21262 ac_cv_framework_JavaVM=no
21263 fi
21264 rm -f core conftest.err conftest.$ac_objext \
21265 conftest$ac_exeext conftest.$ac_ext
21266 LIBS=$ac_check_framework_save_LIBS
21267
21268 fi
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
21270 $as_echo "$ac_cv_framework_JavaVM" >&6; }
21271 if test $ac_cv_framework_JavaVM = yes; then :
21272
21273
21274 for element in "-framework JavaVM"; do
21275 haveit=
21276 for x in $LIBS; do
21277
21278 acl_save_prefix="$prefix"
21279 prefix="$acl_final_prefix"
21280 acl_save_exec_prefix="$exec_prefix"
21281 exec_prefix="$acl_final_exec_prefix"
21282 eval x=\"$x\"
21283 exec_prefix="$acl_save_exec_prefix"
21284 prefix="$acl_save_prefix"
21285
21286 if test "X$x" = "X$element"; then
21287 haveit=yes
21288 break
21289 fi
21290 done
21291 if test -z "$haveit"; then
21292 LIBS="${LIBS}${LIBS:+ }$element"
21293 fi
21294 done
21295
21296
21297 CY_JAVA=1
21298
21299
21300
21301 else
21302 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
21303 if test "x$ac_cv_header_jni_h" = xyes; then :
21304
21305 CY_JAVA=1
21306
21307
21308 cy_save=$LIBS
21309 LIBS=
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
21311 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
21312 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ac_func_search_save_LIBS=$LIBS
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21318
21319 /* Override any GCC internal prototype to avoid an error.
21320 Use char because int might match the return type of a GCC
21321 builtin and then its argument prototype would still apply. */
21322 #ifdef __cplusplus
21323 extern "C"
21324 #endif
21325 char JNI_GetCreatedJavaVMs ();
21326 int
21327 main ()
21328 {
21329 return JNI_GetCreatedJavaVMs ();
21330 ;
21331 return 0;
21332 }
21333 _ACEOF
21334 for ac_lib in '' dvm; do
21335 if test -z "$ac_lib"; then
21336 ac_res="none required"
21337 else
21338 ac_res=-l$ac_lib
21339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21340 fi
21341 if ac_fn_cxx_try_link "$LINENO"; then :
21342 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
21343 fi
21344 rm -f core conftest.err conftest.$ac_objext \
21345 conftest$ac_exeext
21346 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21347 break
21348 fi
21349 done
21350 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21351
21352 else
21353 ac_cv_search_JNI_GetCreatedJavaVMs=no
21354 fi
21355 rm conftest.$ac_ext
21356 LIBS=$ac_func_search_save_LIBS
21357 fi
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
21359 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
21360 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
21361 if test "$ac_res" != no; then :
21362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21363
21364
21365 fi
21366
21367 LTJAVA=$LIBS
21368 LIBS=$cy_save
21369
21370
21371
21372 else
21373
21374 CY_JAVA=0
21375
21376
21377 fi
21378
21379
21380 fi
21381
21382 ac_ext=mm
21383 ac_cpp='$OBJCXXCPP $CPPFLAGS'
21384 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21387
21388
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
21390 $as_echo_n "checking if we really have Objective C++... " >&6; }
21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21393
21394 _ACEOF
21395 if ac_fn_objcxx_try_compile "$LINENO"; then :
21396
21397 CY_OBJECTIVEC=1
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399 $as_echo "yes" >&6; }
21400
21401 else
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21403 $as_echo "no" >&6; }
21404 fi
21405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21406
21407 if test "x$CY_OBJECTIVEC" = x1; then :
21408
21409
21410 cy_save=$LIBS
21411 LIBS=
21412
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
21414 $as_echo_n "checking for framework CoreFoundation... " >&6; }
21415 if ${ac_cv_framework_CoreFoundation+:} false; then :
21416 $as_echo_n "(cached) " >&6
21417 else
21418
21419 ac_check_framework_save_LIBS=$LIBS
21420 LIBS="-framework CoreFoundation $LIBS"
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21423
21424 #include <CoreFoundation/CFBase.h>
21425
21426 int
21427 main ()
21428 {
21429 CFAllocatorGetDefault();
21430 ;
21431 return 0;
21432 }
21433 _ACEOF
21434 if ac_fn_objcxx_try_link "$LINENO"; then :
21435
21436 ac_cv_framework_CoreFoundation=yes
21437
21438 else
21439 ac_cv_framework_CoreFoundation=no
21440 fi
21441 rm -f core conftest.err conftest.$ac_objext \
21442 conftest$ac_exeext conftest.$ac_ext
21443 LIBS=$ac_check_framework_save_LIBS
21444
21445 fi
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
21447 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
21448 if test $ac_cv_framework_CoreFoundation = yes; then :
21449
21450
21451 for element in "-framework CoreFoundation"; do
21452 haveit=
21453 for x in $LIBS; do
21454
21455 acl_save_prefix="$prefix"
21456 prefix="$acl_final_prefix"
21457 acl_save_exec_prefix="$exec_prefix"
21458 exec_prefix="$acl_final_exec_prefix"
21459 eval x=\"$x\"
21460 exec_prefix="$acl_save_exec_prefix"
21461 prefix="$acl_save_prefix"
21462
21463 if test "X$x" = "X$element"; then
21464 haveit=yes
21465 break
21466 fi
21467 done
21468 if test -z "$haveit"; then
21469 LIBS="${LIBS}${LIBS:+ }$element"
21470 fi
21471 done
21472
21473
21474
21475
21476
21477
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
21479 $as_echo_n "checking for framework Foundation... " >&6; }
21480 if ${ac_cv_framework_Foundation+:} false; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483
21484 ac_check_framework_save_LIBS=$LIBS
21485 LIBS="-framework Foundation $LIBS"
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21487 /* end confdefs.h. */
21488
21489 #include <Foundation/NSObject.h>
21490
21491 int
21492 main ()
21493 {
21494 [[NSObject alloc] init];
21495 ;
21496 return 0;
21497 }
21498 _ACEOF
21499 if ac_fn_objcxx_try_link "$LINENO"; then :
21500
21501 ac_cv_framework_Foundation=yes
21502
21503 else
21504 ac_cv_framework_Foundation=no
21505 fi
21506 rm -f core conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
21508 LIBS=$ac_check_framework_save_LIBS
21509
21510 fi
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21512 $as_echo "$ac_cv_framework_Foundation" >&6; }
21513 if test $ac_cv_framework_Foundation = yes; then :
21514
21515
21516 for element in "-framework Foundation"; do
21517 haveit=
21518 for x in $LIBS; do
21519
21520 acl_save_prefix="$prefix"
21521 prefix="$acl_final_prefix"
21522 acl_save_exec_prefix="$exec_prefix"
21523 exec_prefix="$acl_final_exec_prefix"
21524 eval x=\"$x\"
21525 exec_prefix="$acl_save_exec_prefix"
21526 prefix="$acl_save_prefix"
21527
21528 if test "X$x" = "X$element"; then
21529 haveit=yes
21530 break
21531 fi
21532 done
21533 if test -z "$haveit"; then
21534 LIBS="${LIBS}${LIBS:+ }$element"
21535 fi
21536 done
21537
21538 cat >>confdefs.h <<_ACEOF
21539 #define HAVE_FRAMEWORK_FOUNDATION 1
21540 _ACEOF
21541
21542
21543 fi
21544
21545
21546 else
21547
21548
21549 for ac_prog in gnustep-config
21550 do
21551 # Extract the first word of "$ac_prog", so it can be a program name with args.
21552 set dummy $ac_prog; ac_word=$2
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21554 $as_echo_n "checking for $ac_word... " >&6; }
21555 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21556 $as_echo_n "(cached) " >&6
21557 else
21558 if test -n "$GNUSTEP_CONFIG"; then
21559 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21560 else
21561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21562 for as_dir in $PATH
21563 do
21564 IFS=$as_save_IFS
21565 test -z "$as_dir" && as_dir=.
21566 for ac_exec_ext in '' $ac_executable_extensions; do
21567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21568 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21570 break 2
21571 fi
21572 done
21573 done
21574 IFS=$as_save_IFS
21575
21576 fi
21577 fi
21578 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21579 if test -n "$GNUSTEP_CONFIG"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21581 $as_echo "$GNUSTEP_CONFIG" >&6; }
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21585 fi
21586
21587
21588 test -n "$GNUSTEP_CONFIG" && break
21589 done
21590
21591
21592 if test "x$GNUSTEP_CONFIG" != x; then :
21593
21594
21595
21596 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21597 haveit=
21598 for x in $OBJCXXFLAGS; do
21599
21600 acl_save_prefix="$prefix"
21601 prefix="$acl_final_prefix"
21602 acl_save_exec_prefix="$exec_prefix"
21603 exec_prefix="$acl_final_exec_prefix"
21604 eval x=\"$x\"
21605 exec_prefix="$acl_save_exec_prefix"
21606 prefix="$acl_save_prefix"
21607
21608 if test "X$x" = "X$element"; then
21609 haveit=yes
21610 break
21611 fi
21612 done
21613 if test -z "$haveit"; then
21614 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21615 fi
21616 done
21617
21618
21619 for element in `$GNUSTEP_CONFIG --base-libs`; do
21620 haveit=
21621 for x in $LIBS; do
21622
21623 acl_save_prefix="$prefix"
21624 prefix="$acl_final_prefix"
21625 acl_save_exec_prefix="$exec_prefix"
21626 exec_prefix="$acl_final_exec_prefix"
21627 eval x=\"$x\"
21628 exec_prefix="$acl_save_exec_prefix"
21629 prefix="$acl_save_prefix"
21630
21631 if test "X$x" = "X$element"; then
21632 haveit=yes
21633 break
21634 fi
21635 done
21636 if test -z "$haveit"; then
21637 LIBS="${LIBS}${LIBS:+ }$element"
21638 fi
21639 done
21640
21641
21642 else
21643 CY_OBJECTIVEC=0
21644
21645 fi
21646
21647 fi
21648 LTOBJECTIVEC=$LIBS
21649 LIBS=$cy_save
21650
21651
21652
21653 fi
21654
21655 ac_ext=cpp
21656 ac_cpp='$CXXCPP $CPPFLAGS'
21657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21660
21661 ;; #(
21662 *) :
21663 ;;
21664 esac
21665
21666 if test "x$CY_JAVA" = x1; then
21667 CY_JAVA_TRUE=
21668 CY_JAVA_FALSE='#'
21669 else
21670 CY_JAVA_TRUE='#'
21671 CY_JAVA_FALSE=
21672 fi
21673
21674 if test "x$CY_OBJECTIVEC" = x1; then
21675 CY_OBJECTIVEC_TRUE=
21676 CY_OBJECTIVEC_FALSE='#'
21677 else
21678 CY_OBJECTIVEC_TRUE='#'
21679 CY_OBJECTIVEC_FALSE=
21680 fi
21681
21682
21683
21684 cy_save=$LIBS
21685 LIBS=
21686
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21688 $as_echo_n "checking for a readline compatible library... " >&6; }
21689 if ${ax_cv_lib_readline+:} false; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692
21693 ORIG_LIBS="$LIBS"
21694 for readline_lib in readline edit editline; do
21695 for termcap_lib in "" termcap curses ncurses; do
21696 if test -z "$termcap_lib"; then
21697 TRY_LIB="-l$readline_lib"
21698 else
21699 TRY_LIB="-l$readline_lib -l$termcap_lib"
21700 fi
21701 LIBS="$ORIG_LIBS $TRY_LIB"
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21704
21705 /* Override any GCC internal prototype to avoid an error.
21706 Use char because int might match the return type of a GCC
21707 builtin and then its argument prototype would still apply. */
21708 #ifdef __cplusplus
21709 extern "C"
21710 #endif
21711 char readline ();
21712 int
21713 main ()
21714 {
21715 return readline ();
21716 ;
21717 return 0;
21718 }
21719 _ACEOF
21720 if ac_fn_cxx_try_link "$LINENO"; then :
21721 ax_cv_lib_readline="$TRY_LIB"
21722 fi
21723 rm -f core conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21725 if test -n "$ax_cv_lib_readline"; then
21726 break
21727 fi
21728 done
21729 if test -n "$ax_cv_lib_readline"; then
21730 break
21731 fi
21732 done
21733 if test -z "$ax_cv_lib_readline"; then
21734 ax_cv_lib_readline="no"
21735 fi
21736 LIBS="$ORIG_LIBS"
21737
21738 fi
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21740 $as_echo "$ax_cv_lib_readline" >&6; }
21741
21742 if test "$ax_cv_lib_readline" != "no"; then
21743 LIBS="$LIBS $ax_cv_lib_readline"
21744
21745 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21746
21747 for ac_header in readline.h readline/readline.h
21748 do :
21749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21750 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21752 cat >>confdefs.h <<_ACEOF
21753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21754 _ACEOF
21755
21756 fi
21757
21758 done
21759
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21761 $as_echo_n "checking whether readline supports history... " >&6; }
21762 if ${ax_cv_lib_readline_history+:} false; then :
21763 $as_echo_n "(cached) " >&6
21764 else
21765
21766 ax_cv_lib_readline_history="no"
21767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768 /* end confdefs.h. */
21769
21770 /* Override any GCC internal prototype to avoid an error.
21771 Use char because int might match the return type of a GCC
21772 builtin and then its argument prototype would still apply. */
21773 #ifdef __cplusplus
21774 extern "C"
21775 #endif
21776 char add_history ();
21777 int
21778 main ()
21779 {
21780 return add_history ();
21781 ;
21782 return 0;
21783 }
21784 _ACEOF
21785 if ac_fn_cxx_try_link "$LINENO"; then :
21786 ax_cv_lib_readline_history="yes"
21787 fi
21788 rm -f core conftest.err conftest.$ac_objext \
21789 conftest$ac_exeext conftest.$ac_ext
21790
21791 fi
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21793 $as_echo "$ax_cv_lib_readline_history" >&6; }
21794 if test "$ax_cv_lib_readline_history" = "yes"; then
21795
21796 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21797
21798 for ac_header in history.h readline/history.h
21799 do :
21800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21801 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21803 cat >>confdefs.h <<_ACEOF
21804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21805 _ACEOF
21806
21807 fi
21808
21809 done
21810
21811 fi
21812 fi
21813
21814 LTLIBREADLINE=$LIBS
21815 LIBS=$cy_save
21816
21817
21818 case $ax_cv_lib_readline in #(
21819 no) :
21820 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21821 *) :
21822 ;;
21823 esac
21824
21825
21826 cy_save=$LIBS
21827 LIBS=
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21829 $as_echo_n "checking for library containing cur_term... " >&6; }
21830 if ${ac_cv_search_cur_term+:} false; then :
21831 $as_echo_n "(cached) " >&6
21832 else
21833 ac_func_search_save_LIBS=$LIBS
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21836
21837 /* Override any GCC internal prototype to avoid an error.
21838 Use char because int might match the return type of a GCC
21839 builtin and then its argument prototype would still apply. */
21840 #ifdef __cplusplus
21841 extern "C"
21842 #endif
21843 char cur_term ();
21844 int
21845 main ()
21846 {
21847 return cur_term ();
21848 ;
21849 return 0;
21850 }
21851 _ACEOF
21852 for ac_lib in '' termcap ncurses; do
21853 if test -z "$ac_lib"; then
21854 ac_res="none required"
21855 else
21856 ac_res=-l$ac_lib
21857 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21858 fi
21859 if ac_fn_cxx_try_link "$LINENO"; then :
21860 ac_cv_search_cur_term=$ac_res
21861 fi
21862 rm -f core conftest.err conftest.$ac_objext \
21863 conftest$ac_exeext
21864 if ${ac_cv_search_cur_term+:} false; then :
21865 break
21866 fi
21867 done
21868 if ${ac_cv_search_cur_term+:} false; then :
21869
21870 else
21871 ac_cv_search_cur_term=no
21872 fi
21873 rm conftest.$ac_ext
21874 LIBS=$ac_func_search_save_LIBS
21875 fi
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21877 $as_echo "$ac_cv_search_cur_term" >&6; }
21878 ac_res=$ac_cv_search_cur_term
21879 if test "$ac_res" != no; then :
21880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21881
21882 fi
21883
21884 LTLIBTERMCAP=$LIBS
21885 LIBS=$cy_save
21886
21887
21888
21889
21890
21891
21892 SO=$acl_shlibext
21893
21894
21895 ac_config_files="$ac_config_files Makefile"
21896
21897 cat >confcache <<\_ACEOF
21898 # This file is a shell script that caches the results of configure
21899 # tests run on this system so they can be shared between configure
21900 # scripts and configure runs, see configure's option --config-cache.
21901 # It is not useful on other systems. If it contains results you don't
21902 # want to keep, you may remove or edit it.
21903 #
21904 # config.status only pays attention to the cache file if you give it
21905 # the --recheck option to rerun configure.
21906 #
21907 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21908 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21909 # following values.
21910
21911 _ACEOF
21912
21913 # The following way of writing the cache mishandles newlines in values,
21914 # but we know of no workaround that is simple, portable, and efficient.
21915 # So, we kill variables containing newlines.
21916 # Ultrix sh set writes to stderr and can't be redirected directly,
21917 # and sets the high bit in the cache file unless we assign to the vars.
21918 (
21919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21920 eval ac_val=\$$ac_var
21921 case $ac_val in #(
21922 *${as_nl}*)
21923 case $ac_var in #(
21924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21926 esac
21927 case $ac_var in #(
21928 _ | IFS | as_nl) ;; #(
21929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21930 *) { eval $ac_var=; unset $ac_var;} ;;
21931 esac ;;
21932 esac
21933 done
21934
21935 (set) 2>&1 |
21936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21937 *${as_nl}ac_space=\ *)
21938 # `set' does not quote correctly, so add quotes: double-quote
21939 # substitution turns \\\\ into \\, and sed turns \\ into \.
21940 sed -n \
21941 "s/'/'\\\\''/g;
21942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21943 ;; #(
21944 *)
21945 # `set' quotes correctly as required by POSIX, so do not add quotes.
21946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21947 ;;
21948 esac |
21949 sort
21950 ) |
21951 sed '
21952 /^ac_cv_env_/b end
21953 t clear
21954 :clear
21955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21956 t end
21957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21958 :end' >>confcache
21959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21960 if test -w "$cache_file"; then
21961 if test "x$cache_file" != "x/dev/null"; then
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21963 $as_echo "$as_me: updating cache $cache_file" >&6;}
21964 if test ! -f "$cache_file" || test -h "$cache_file"; then
21965 cat confcache >"$cache_file"
21966 else
21967 case $cache_file in #(
21968 */* | ?:*)
21969 mv -f confcache "$cache_file"$$ &&
21970 mv -f "$cache_file"$$ "$cache_file" ;; #(
21971 *)
21972 mv -f confcache "$cache_file" ;;
21973 esac
21974 fi
21975 fi
21976 else
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21978 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21979 fi
21980 fi
21981 rm -f confcache
21982
21983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21984 # Let make expand exec_prefix.
21985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21986
21987 DEFS=-DHAVE_CONFIG_H
21988
21989 ac_libobjs=
21990 ac_ltlibobjs=
21991 U=
21992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21993 # 1. Remove the extension, and $U if already installed.
21994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21995 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21997 # will be set to the directory where LIBOBJS objects are built.
21998 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21999 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22000 done
22001 LIBOBJS=$ac_libobjs
22002
22003 LTLIBOBJS=$ac_ltlibobjs
22004
22005
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22007 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22008 if test -n "$am_sleep_pid"; then
22009 # Hide warnings about reused PIDs.
22010 wait $am_sleep_pid 2>/dev/null
22011 fi
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22013 $as_echo "done" >&6; }
22014 if test -n "$EXEEXT"; then
22015 am__EXEEXT_TRUE=
22016 am__EXEEXT_FALSE='#'
22017 else
22018 am__EXEEXT_TRUE='#'
22019 am__EXEEXT_FALSE=
22020 fi
22021
22022 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22023 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22025 fi
22026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22027 as_fn_error $? "conditional \"AMDEP\" was never defined.
22028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22029 fi
22030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22033 fi
22034 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22035 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22037 fi
22038 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22039 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22041 fi
22042 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
22043 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
22044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22045 fi
22046 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
22047 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
22048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22049 fi
22050 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22051 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22053 fi
22054 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
22055 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
22056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22057 fi
22058 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22059 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22061 fi
22062
22063 : "${CONFIG_STATUS=./config.status}"
22064 ac_write_fail=0
22065 ac_clean_files_save=$ac_clean_files
22066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22068 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22069 as_write_fail=0
22070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22071 #! $SHELL
22072 # Generated by $as_me.
22073 # Run this file to recreate the current configuration.
22074 # Compiler output produced by configure, useful for debugging
22075 # configure, is in config.log if it exists.
22076
22077 debug=false
22078 ac_cs_recheck=false
22079 ac_cs_silent=false
22080
22081 SHELL=\${CONFIG_SHELL-$SHELL}
22082 export SHELL
22083 _ASEOF
22084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22085 ## -------------------- ##
22086 ## M4sh Initialization. ##
22087 ## -------------------- ##
22088
22089 # Be more Bourne compatible
22090 DUALCASE=1; export DUALCASE # for MKS sh
22091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22092 emulate sh
22093 NULLCMD=:
22094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22095 # is contrary to our usage. Disable this feature.
22096 alias -g '${1+"$@"}'='"$@"'
22097 setopt NO_GLOB_SUBST
22098 else
22099 case `(set -o) 2>/dev/null` in #(
22100 *posix*) :
22101 set -o posix ;; #(
22102 *) :
22103 ;;
22104 esac
22105 fi
22106
22107
22108 as_nl='
22109 '
22110 export as_nl
22111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22115 # Prefer a ksh shell builtin over an external printf program on Solaris,
22116 # but without wasting forks for bash or zsh.
22117 if test -z "$BASH_VERSION$ZSH_VERSION" \
22118 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22119 as_echo='print -r --'
22120 as_echo_n='print -rn --'
22121 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22122 as_echo='printf %s\n'
22123 as_echo_n='printf %s'
22124 else
22125 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22126 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22127 as_echo_n='/usr/ucb/echo -n'
22128 else
22129 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22130 as_echo_n_body='eval
22131 arg=$1;
22132 case $arg in #(
22133 *"$as_nl"*)
22134 expr "X$arg" : "X\\(.*\\)$as_nl";
22135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22136 esac;
22137 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22138 '
22139 export as_echo_n_body
22140 as_echo_n='sh -c $as_echo_n_body as_echo'
22141 fi
22142 export as_echo_body
22143 as_echo='sh -c $as_echo_body as_echo'
22144 fi
22145
22146 # The user is always right.
22147 if test "${PATH_SEPARATOR+set}" != set; then
22148 PATH_SEPARATOR=:
22149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22151 PATH_SEPARATOR=';'
22152 }
22153 fi
22154
22155
22156 # IFS
22157 # We need space, tab and new line, in precisely that order. Quoting is
22158 # there to prevent editors from complaining about space-tab.
22159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22160 # splitting by setting IFS to empty value.)
22161 IFS=" "" $as_nl"
22162
22163 # Find who we are. Look in the path if we contain no directory separator.
22164 as_myself=
22165 case $0 in #((
22166 *[\\/]* ) as_myself=$0 ;;
22167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22169 do
22170 IFS=$as_save_IFS
22171 test -z "$as_dir" && as_dir=.
22172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22173 done
22174 IFS=$as_save_IFS
22175
22176 ;;
22177 esac
22178 # We did not find ourselves, most probably we were run as `sh COMMAND'
22179 # in which case we are not to be found in the path.
22180 if test "x$as_myself" = x; then
22181 as_myself=$0
22182 fi
22183 if test ! -f "$as_myself"; then
22184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22185 exit 1
22186 fi
22187
22188 # Unset variables that we do not need and which cause bugs (e.g. in
22189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22190 # suppresses any "Segmentation fault" message there. '((' could
22191 # trigger a bug in pdksh 5.2.14.
22192 for as_var in BASH_ENV ENV MAIL MAILPATH
22193 do eval test x\${$as_var+set} = xset \
22194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22195 done
22196 PS1='$ '
22197 PS2='> '
22198 PS4='+ '
22199
22200 # NLS nuisances.
22201 LC_ALL=C
22202 export LC_ALL
22203 LANGUAGE=C
22204 export LANGUAGE
22205
22206 # CDPATH.
22207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22208
22209
22210 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22211 # ----------------------------------------
22212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22214 # script with STATUS, using 1 if that was 0.
22215 as_fn_error ()
22216 {
22217 as_status=$1; test $as_status -eq 0 && as_status=1
22218 if test "$4"; then
22219 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22221 fi
22222 $as_echo "$as_me: error: $2" >&2
22223 as_fn_exit $as_status
22224 } # as_fn_error
22225
22226
22227 # as_fn_set_status STATUS
22228 # -----------------------
22229 # Set $? to STATUS, without forking.
22230 as_fn_set_status ()
22231 {
22232 return $1
22233 } # as_fn_set_status
22234
22235 # as_fn_exit STATUS
22236 # -----------------
22237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22238 as_fn_exit ()
22239 {
22240 set +e
22241 as_fn_set_status $1
22242 exit $1
22243 } # as_fn_exit
22244
22245 # as_fn_unset VAR
22246 # ---------------
22247 # Portably unset VAR.
22248 as_fn_unset ()
22249 {
22250 { eval $1=; unset $1;}
22251 }
22252 as_unset=as_fn_unset
22253 # as_fn_append VAR VALUE
22254 # ----------------------
22255 # Append the text in VALUE to the end of the definition contained in VAR. Take
22256 # advantage of any shell optimizations that allow amortized linear growth over
22257 # repeated appends, instead of the typical quadratic growth present in naive
22258 # implementations.
22259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22260 eval 'as_fn_append ()
22261 {
22262 eval $1+=\$2
22263 }'
22264 else
22265 as_fn_append ()
22266 {
22267 eval $1=\$$1\$2
22268 }
22269 fi # as_fn_append
22270
22271 # as_fn_arith ARG...
22272 # ------------------
22273 # Perform arithmetic evaluation on the ARGs, and store the result in the
22274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22275 # must be portable across $(()) and expr.
22276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22277 eval 'as_fn_arith ()
22278 {
22279 as_val=$(( $* ))
22280 }'
22281 else
22282 as_fn_arith ()
22283 {
22284 as_val=`expr "$@" || test $? -eq 1`
22285 }
22286 fi # as_fn_arith
22287
22288
22289 if expr a : '\(a\)' >/dev/null 2>&1 &&
22290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22291 as_expr=expr
22292 else
22293 as_expr=false
22294 fi
22295
22296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22297 as_basename=basename
22298 else
22299 as_basename=false
22300 fi
22301
22302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22303 as_dirname=dirname
22304 else
22305 as_dirname=false
22306 fi
22307
22308 as_me=`$as_basename -- "$0" ||
22309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22310 X"$0" : 'X\(//\)$' \| \
22311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22312 $as_echo X/"$0" |
22313 sed '/^.*\/\([^/][^/]*\)\/*$/{
22314 s//\1/
22315 q
22316 }
22317 /^X\/\(\/\/\)$/{
22318 s//\1/
22319 q
22320 }
22321 /^X\/\(\/\).*/{
22322 s//\1/
22323 q
22324 }
22325 s/.*/./; q'`
22326
22327 # Avoid depending upon Character Ranges.
22328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22331 as_cr_digits='0123456789'
22332 as_cr_alnum=$as_cr_Letters$as_cr_digits
22333
22334 ECHO_C= ECHO_N= ECHO_T=
22335 case `echo -n x` in #(((((
22336 -n*)
22337 case `echo 'xy\c'` in
22338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22339 xy) ECHO_C='\c';;
22340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22341 ECHO_T=' ';;
22342 esac;;
22343 *)
22344 ECHO_N='-n';;
22345 esac
22346
22347 rm -f conf$$ conf$$.exe conf$$.file
22348 if test -d conf$$.dir; then
22349 rm -f conf$$.dir/conf$$.file
22350 else
22351 rm -f conf$$.dir
22352 mkdir conf$$.dir 2>/dev/null
22353 fi
22354 if (echo >conf$$.file) 2>/dev/null; then
22355 if ln -s conf$$.file conf$$ 2>/dev/null; then
22356 as_ln_s='ln -s'
22357 # ... but there are two gotchas:
22358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22360 # In both cases, we have to default to `cp -pR'.
22361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22362 as_ln_s='cp -pR'
22363 elif ln conf$$.file conf$$ 2>/dev/null; then
22364 as_ln_s=ln
22365 else
22366 as_ln_s='cp -pR'
22367 fi
22368 else
22369 as_ln_s='cp -pR'
22370 fi
22371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22372 rmdir conf$$.dir 2>/dev/null
22373
22374
22375 # as_fn_mkdir_p
22376 # -------------
22377 # Create "$as_dir" as a directory, including parents if necessary.
22378 as_fn_mkdir_p ()
22379 {
22380
22381 case $as_dir in #(
22382 -*) as_dir=./$as_dir;;
22383 esac
22384 test -d "$as_dir" || eval $as_mkdir_p || {
22385 as_dirs=
22386 while :; do
22387 case $as_dir in #(
22388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22389 *) as_qdir=$as_dir;;
22390 esac
22391 as_dirs="'$as_qdir' $as_dirs"
22392 as_dir=`$as_dirname -- "$as_dir" ||
22393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22394 X"$as_dir" : 'X\(//\)[^/]' \| \
22395 X"$as_dir" : 'X\(//\)$' \| \
22396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22397 $as_echo X"$as_dir" |
22398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22399 s//\1/
22400 q
22401 }
22402 /^X\(\/\/\)[^/].*/{
22403 s//\1/
22404 q
22405 }
22406 /^X\(\/\/\)$/{
22407 s//\1/
22408 q
22409 }
22410 /^X\(\/\).*/{
22411 s//\1/
22412 q
22413 }
22414 s/.*/./; q'`
22415 test -d "$as_dir" && break
22416 done
22417 test -z "$as_dirs" || eval "mkdir $as_dirs"
22418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22419
22420
22421 } # as_fn_mkdir_p
22422 if mkdir -p . 2>/dev/null; then
22423 as_mkdir_p='mkdir -p "$as_dir"'
22424 else
22425 test -d ./-p && rmdir ./-p
22426 as_mkdir_p=false
22427 fi
22428
22429
22430 # as_fn_executable_p FILE
22431 # -----------------------
22432 # Test if FILE is an executable regular file.
22433 as_fn_executable_p ()
22434 {
22435 test -f "$1" && test -x "$1"
22436 } # as_fn_executable_p
22437 as_test_x='test -x'
22438 as_executable_p=as_fn_executable_p
22439
22440 # Sed expression to map a string onto a valid CPP name.
22441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22442
22443 # Sed expression to map a string onto a valid variable name.
22444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22445
22446
22447 exec 6>&1
22448 ## ----------------------------------- ##
22449 ## Main body of $CONFIG_STATUS script. ##
22450 ## ----------------------------------- ##
22451 _ASEOF
22452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22453
22454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22455 # Save the log message, to keep $0 and so on meaningful, and to
22456 # report actual input values of CONFIG_FILES etc. instead of their
22457 # values after options handling.
22458 ac_log="
22459 This file was extended by Cycript $as_me 0.9, which was
22460 generated by GNU Autoconf 2.69. Invocation command line was
22461
22462 CONFIG_FILES = $CONFIG_FILES
22463 CONFIG_HEADERS = $CONFIG_HEADERS
22464 CONFIG_LINKS = $CONFIG_LINKS
22465 CONFIG_COMMANDS = $CONFIG_COMMANDS
22466 $ $0 $@
22467
22468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22469 "
22470
22471 _ACEOF
22472
22473 case $ac_config_files in *"
22474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22475 esac
22476
22477 case $ac_config_headers in *"
22478 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22479 esac
22480
22481
22482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22483 # Files that config.status was made for.
22484 config_files="$ac_config_files"
22485 config_headers="$ac_config_headers"
22486 config_commands="$ac_config_commands"
22487
22488 _ACEOF
22489
22490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22491 ac_cs_usage="\
22492 \`$as_me' instantiates files and other configuration actions
22493 from templates according to the current configuration. Unless the files
22494 and actions are specified as TAGs, all are instantiated by default.
22495
22496 Usage: $0 [OPTION]... [TAG]...
22497
22498 -h, --help print this help, then exit
22499 -V, --version print version number and configuration settings, then exit
22500 --config print configuration, then exit
22501 -q, --quiet, --silent
22502 do not print progress messages
22503 -d, --debug don't remove temporary files
22504 --recheck update $as_me by reconfiguring in the same conditions
22505 --file=FILE[:TEMPLATE]
22506 instantiate the configuration file FILE
22507 --header=FILE[:TEMPLATE]
22508 instantiate the configuration header FILE
22509
22510 Configuration files:
22511 $config_files
22512
22513 Configuration headers:
22514 $config_headers
22515
22516 Configuration commands:
22517 $config_commands
22518
22519 Report bugs to <saurik@saurik.com>.
22520 Cycript home page: <http://www.cycript.org/>."
22521
22522 _ACEOF
22523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22524 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22525 ac_cs_version="\\
22526 Cycript config.status 0.9
22527 configured by $0, generated by GNU Autoconf 2.69,
22528 with options \\"\$ac_cs_config\\"
22529
22530 Copyright (C) 2012 Free Software Foundation, Inc.
22531 This config.status script is free software; the Free Software Foundation
22532 gives unlimited permission to copy, distribute and modify it."
22533
22534 ac_pwd='$ac_pwd'
22535 srcdir='$srcdir'
22536 INSTALL='$INSTALL'
22537 MKDIR_P='$MKDIR_P'
22538 AWK='$AWK'
22539 test -n "\$AWK" || AWK=awk
22540 _ACEOF
22541
22542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22543 # The default lists apply if the user does not specify any file.
22544 ac_need_defaults=:
22545 while test $# != 0
22546 do
22547 case $1 in
22548 --*=?*)
22549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22550 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22551 ac_shift=:
22552 ;;
22553 --*=)
22554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22555 ac_optarg=
22556 ac_shift=:
22557 ;;
22558 *)
22559 ac_option=$1
22560 ac_optarg=$2
22561 ac_shift=shift
22562 ;;
22563 esac
22564
22565 case $ac_option in
22566 # Handling of the options.
22567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22568 ac_cs_recheck=: ;;
22569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22570 $as_echo "$ac_cs_version"; exit ;;
22571 --config | --confi | --conf | --con | --co | --c )
22572 $as_echo "$ac_cs_config"; exit ;;
22573 --debug | --debu | --deb | --de | --d | -d )
22574 debug=: ;;
22575 --file | --fil | --fi | --f )
22576 $ac_shift
22577 case $ac_optarg in
22578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22579 '') as_fn_error $? "missing file argument" ;;
22580 esac
22581 as_fn_append CONFIG_FILES " '$ac_optarg'"
22582 ac_need_defaults=false;;
22583 --header | --heade | --head | --hea )
22584 $ac_shift
22585 case $ac_optarg in
22586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22587 esac
22588 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22589 ac_need_defaults=false;;
22590 --he | --h)
22591 # Conflict between --help and --header
22592 as_fn_error $? "ambiguous option: \`$1'
22593 Try \`$0 --help' for more information.";;
22594 --help | --hel | -h )
22595 $as_echo "$ac_cs_usage"; exit ;;
22596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22598 ac_cs_silent=: ;;
22599
22600 # This is an error.
22601 -*) as_fn_error $? "unrecognized option: \`$1'
22602 Try \`$0 --help' for more information." ;;
22603
22604 *) as_fn_append ac_config_targets " $1"
22605 ac_need_defaults=false ;;
22606
22607 esac
22608 shift
22609 done
22610
22611 ac_configure_extra_args=
22612
22613 if $ac_cs_silent; then
22614 exec 6>/dev/null
22615 ac_configure_extra_args="$ac_configure_extra_args --silent"
22616 fi
22617
22618 _ACEOF
22619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22620 if \$ac_cs_recheck; then
22621 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22622 shift
22623 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22624 CONFIG_SHELL='$SHELL'
22625 export CONFIG_SHELL
22626 exec "\$@"
22627 fi
22628
22629 _ACEOF
22630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22631 exec 5>>config.log
22632 {
22633 echo
22634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22635 ## Running $as_me. ##
22636 _ASBOX
22637 $as_echo "$ac_log"
22638 } >&5
22639
22640 _ACEOF
22641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22642 #
22643 # INIT-COMMANDS
22644 #
22645 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22646
22647
22648 # The HP-UX ksh and POSIX shell print the target directory to stdout
22649 # if CDPATH is set.
22650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22651
22652 sed_quote_subst='$sed_quote_subst'
22653 double_quote_subst='$double_quote_subst'
22654 delay_variable_subst='$delay_variable_subst'
22655 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22656 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22657 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22658 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22659 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22660 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22661 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22662 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22663 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22664 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22665 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22666 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22667 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22668 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22669 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22670 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22671 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22672 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22673 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22674 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22675 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22676 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22677 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22678 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22679 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22680 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22681 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22682 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22683 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22684 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22685 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22686 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22687 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22688 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22690 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22691 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22692 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22693 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22694 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22695 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22696 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22697 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22698 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22711 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22712 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22713 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"`'
22714 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22715 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22716 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22717 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22718 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22719 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22720 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22721 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22722 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22723 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22724 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22725 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22726 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22727 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22728 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22729 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22730 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22731 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22732 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22733 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22734 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22735 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22736 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22737 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22738 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22739 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22740 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22741 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22742 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22743 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22744 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22745 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22746 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22747 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22748 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22749 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22750 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22751 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22752 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22753 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22754 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22755 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22756 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22757 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22758 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22759 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22760 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22761 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22762 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22763 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22764 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22765 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22766 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22767 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22768 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22769 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22770 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22771 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22772 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22773 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22774 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22775 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22776 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22777 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22778 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22779 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22780 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22781 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22782 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22783 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22784 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22785 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22786 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22787 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22788 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22789 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22790 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22791 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22792 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22793 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22794 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22795 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22796 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22797 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22798 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22799 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22800 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22801 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22802 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22803 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22804 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22805 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22806 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22807 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22808 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22809 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22810 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22811 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22812 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22813 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22814 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22815 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22816 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22817 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22818 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22819 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22820 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22821 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22822 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22823 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22824 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22825 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22826 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22827 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22828 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22829 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22830 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22831 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22832 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22833 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22834 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22835 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22836 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22837 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22838 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22839 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22840 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22841 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22842 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22843 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22844
22845 LTCC='$LTCC'
22846 LTCFLAGS='$LTCFLAGS'
22847 compiler='$compiler_DEFAULT'
22848
22849 # A function that is used when there is no print builtin or printf.
22850 func_fallback_echo ()
22851 {
22852 eval 'cat <<_LTECHO_EOF
22853 \$1
22854 _LTECHO_EOF'
22855 }
22856
22857 # Quote evaled strings.
22858 for var in SHELL \
22859 ECHO \
22860 PATH_SEPARATOR \
22861 SED \
22862 GREP \
22863 EGREP \
22864 FGREP \
22865 LD \
22866 NM \
22867 LN_S \
22868 lt_SP2NL \
22869 lt_NL2SP \
22870 reload_flag \
22871 OBJDUMP \
22872 deplibs_check_method \
22873 file_magic_cmd \
22874 file_magic_glob \
22875 want_nocaseglob \
22876 DLLTOOL \
22877 sharedlib_from_linklib_cmd \
22878 AR \
22879 AR_FLAGS \
22880 archiver_list_spec \
22881 STRIP \
22882 RANLIB \
22883 CC \
22884 CFLAGS \
22885 compiler \
22886 lt_cv_sys_global_symbol_pipe \
22887 lt_cv_sys_global_symbol_to_cdecl \
22888 lt_cv_sys_global_symbol_to_import \
22889 lt_cv_sys_global_symbol_to_c_name_address \
22890 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22891 lt_cv_nm_interface \
22892 nm_file_list_spec \
22893 lt_cv_truncate_bin \
22894 lt_prog_compiler_no_builtin_flag \
22895 lt_prog_compiler_pic \
22896 lt_prog_compiler_wl \
22897 lt_prog_compiler_static \
22898 lt_cv_prog_compiler_c_o \
22899 need_locks \
22900 MANIFEST_TOOL \
22901 DSYMUTIL \
22902 NMEDIT \
22903 LIPO \
22904 OTOOL \
22905 OTOOL64 \
22906 shrext_cmds \
22907 export_dynamic_flag_spec \
22908 whole_archive_flag_spec \
22909 compiler_needs_object \
22910 with_gnu_ld \
22911 allow_undefined_flag \
22912 no_undefined_flag \
22913 hardcode_libdir_flag_spec \
22914 hardcode_libdir_separator \
22915 exclude_expsyms \
22916 include_expsyms \
22917 file_list_spec \
22918 variables_saved_for_relink \
22919 libname_spec \
22920 library_names_spec \
22921 soname_spec \
22922 install_override_mode \
22923 finish_eval \
22924 old_striplib \
22925 striplib \
22926 compiler_lib_search_dirs \
22927 predep_objects \
22928 postdep_objects \
22929 predeps \
22930 postdeps \
22931 compiler_lib_search_path \
22932 LD_CXX \
22933 reload_flag_CXX \
22934 compiler_CXX \
22935 lt_prog_compiler_no_builtin_flag_CXX \
22936 lt_prog_compiler_pic_CXX \
22937 lt_prog_compiler_wl_CXX \
22938 lt_prog_compiler_static_CXX \
22939 lt_cv_prog_compiler_c_o_CXX \
22940 export_dynamic_flag_spec_CXX \
22941 whole_archive_flag_spec_CXX \
22942 compiler_needs_object_CXX \
22943 with_gnu_ld_CXX \
22944 allow_undefined_flag_CXX \
22945 no_undefined_flag_CXX \
22946 hardcode_libdir_flag_spec_CXX \
22947 hardcode_libdir_separator_CXX \
22948 exclude_expsyms_CXX \
22949 include_expsyms_CXX \
22950 file_list_spec_CXX \
22951 compiler_lib_search_dirs_CXX \
22952 predep_objects_CXX \
22953 postdep_objects_CXX \
22954 predeps_CXX \
22955 postdeps_CXX \
22956 compiler_lib_search_path_CXX; do
22957 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22958 *[\\\\\\\`\\"\\\$]*)
22959 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22960 ;;
22961 *)
22962 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22963 ;;
22964 esac
22965 done
22966
22967 # Double-quote double-evaled strings.
22968 for var in reload_cmds \
22969 old_postinstall_cmds \
22970 old_postuninstall_cmds \
22971 old_archive_cmds \
22972 extract_expsyms_cmds \
22973 old_archive_from_new_cmds \
22974 old_archive_from_expsyms_cmds \
22975 archive_cmds \
22976 archive_expsym_cmds \
22977 module_cmds \
22978 module_expsym_cmds \
22979 export_symbols_cmds \
22980 prelink_cmds \
22981 postlink_cmds \
22982 postinstall_cmds \
22983 postuninstall_cmds \
22984 finish_cmds \
22985 sys_lib_search_path_spec \
22986 configure_time_dlsearch_path \
22987 configure_time_lt_sys_library_path \
22988 reload_cmds_CXX \
22989 old_archive_cmds_CXX \
22990 old_archive_from_new_cmds_CXX \
22991 old_archive_from_expsyms_cmds_CXX \
22992 archive_cmds_CXX \
22993 archive_expsym_cmds_CXX \
22994 module_cmds_CXX \
22995 module_expsym_cmds_CXX \
22996 export_symbols_cmds_CXX \
22997 prelink_cmds_CXX \
22998 postlink_cmds_CXX; do
22999 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23000 *[\\\\\\\`\\"\\\$]*)
23001 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23002 ;;
23003 *)
23004 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23005 ;;
23006 esac
23007 done
23008
23009 ac_aux_dir='$ac_aux_dir'
23010
23011 # See if we are running on zsh, and set the options that allow our
23012 # commands through without removal of \ escapes INIT.
23013 if test -n "\${ZSH_VERSION+set}"; then
23014 setopt NO_GLOB_SUBST
23015 fi
23016
23017
23018 PACKAGE='$PACKAGE'
23019 VERSION='$VERSION'
23020 RM='$RM'
23021 ofile='$ofile'
23022
23023
23024
23025
23026
23027
23028 _ACEOF
23029
23030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23031
23032 # Handling of arguments.
23033 for ac_config_target in $ac_config_targets
23034 do
23035 case $ac_config_target in
23036 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23037 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23038 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23040
23041 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23042 esac
23043 done
23044
23045
23046 # If the user did not use the arguments to specify the items to instantiate,
23047 # then the envvar interface is used. Set only those that are not.
23048 # We use the long form for the default assignment because of an extremely
23049 # bizarre bug on SunOS 4.1.3.
23050 if $ac_need_defaults; then
23051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23054 fi
23055
23056 # Have a temporary directory for convenience. Make it in the build tree
23057 # simply because there is no reason against having it here, and in addition,
23058 # creating and moving files from /tmp can sometimes cause problems.
23059 # Hook for its removal unless debugging.
23060 # Note that there is a small window in which the directory will not be cleaned:
23061 # after its creation but before its name has been assigned to `$tmp'.
23062 $debug ||
23063 {
23064 tmp= ac_tmp=
23065 trap 'exit_status=$?
23066 : "${ac_tmp:=$tmp}"
23067 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23068 ' 0
23069 trap 'as_fn_exit 1' 1 2 13 15
23070 }
23071 # Create a (secure) tmp directory for tmp files.
23072
23073 {
23074 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23075 test -d "$tmp"
23076 } ||
23077 {
23078 tmp=./conf$$-$RANDOM
23079 (umask 077 && mkdir "$tmp")
23080 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23081 ac_tmp=$tmp
23082
23083 # Set up the scripts for CONFIG_FILES section.
23084 # No need to generate them if there are no CONFIG_FILES.
23085 # This happens for instance with `./config.status config.h'.
23086 if test -n "$CONFIG_FILES"; then
23087
23088
23089 ac_cr=`echo X | tr X '\015'`
23090 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23091 # But we know of no other shell where ac_cr would be empty at this
23092 # point, so we can use a bashism as a fallback.
23093 if test "x$ac_cr" = x; then
23094 eval ac_cr=\$\'\\r\'
23095 fi
23096 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23097 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23098 ac_cs_awk_cr='\\r'
23099 else
23100 ac_cs_awk_cr=$ac_cr
23101 fi
23102
23103 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23104 _ACEOF
23105
23106
23107 {
23108 echo "cat >conf$$subs.awk <<_ACEOF" &&
23109 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23110 echo "_ACEOF"
23111 } >conf$$subs.sh ||
23112 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23113 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23114 ac_delim='%!_!# '
23115 for ac_last_try in false false false false false :; do
23116 . ./conf$$subs.sh ||
23117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23118
23119 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23120 if test $ac_delim_n = $ac_delim_num; then
23121 break
23122 elif $ac_last_try; then
23123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23124 else
23125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23126 fi
23127 done
23128 rm -f conf$$subs.sh
23129
23130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23131 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23132 _ACEOF
23133 sed -n '
23134 h
23135 s/^/S["/; s/!.*/"]=/
23136 p
23137 g
23138 s/^[^!]*!//
23139 :repl
23140 t repl
23141 s/'"$ac_delim"'$//
23142 t delim
23143 :nl
23144 h
23145 s/\(.\{148\}\)..*/\1/
23146 t more1
23147 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23148 p
23149 n
23150 b repl
23151 :more1
23152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23153 p
23154 g
23155 s/.\{148\}//
23156 t nl
23157 :delim
23158 h
23159 s/\(.\{148\}\)..*/\1/
23160 t more2
23161 s/["\\]/\\&/g; s/^/"/; s/$/"/
23162 p
23163 b
23164 :more2
23165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23166 p
23167 g
23168 s/.\{148\}//
23169 t delim
23170 ' <conf$$subs.awk | sed '
23171 /^[^""]/{
23172 N
23173 s/\n//
23174 }
23175 ' >>$CONFIG_STATUS || ac_write_fail=1
23176 rm -f conf$$subs.awk
23177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23178 _ACAWK
23179 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23180 for (key in S) S_is_set[key] = 1
23181 FS = "\a"
23182
23183 }
23184 {
23185 line = $ 0
23186 nfields = split(line, field, "@")
23187 substed = 0
23188 len = length(field[1])
23189 for (i = 2; i < nfields; i++) {
23190 key = field[i]
23191 keylen = length(key)
23192 if (S_is_set[key]) {
23193 value = S[key]
23194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23195 len += length(value) + length(field[++i])
23196 substed = 1
23197 } else
23198 len += 1 + keylen
23199 }
23200
23201 print line
23202 }
23203
23204 _ACAWK
23205 _ACEOF
23206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23209 else
23210 cat
23211 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23212 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23213 _ACEOF
23214
23215 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23216 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23217 # trailing colons and then remove the whole line if VPATH becomes empty
23218 # (actually we leave an empty line to preserve line numbers).
23219 if test "x$srcdir" = x.; then
23220 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23221 h
23222 s///
23223 s/^/:/
23224 s/[ ]*$/:/
23225 s/:\$(srcdir):/:/g
23226 s/:\${srcdir}:/:/g
23227 s/:@srcdir@:/:/g
23228 s/^:*//
23229 s/:*$//
23230 x
23231 s/\(=[ ]*\).*/\1/
23232 G
23233 s/\n//
23234 s/^[^=]*=[ ]*$//
23235 }'
23236 fi
23237
23238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23239 fi # test -n "$CONFIG_FILES"
23240
23241 # Set up the scripts for CONFIG_HEADERS section.
23242 # No need to generate them if there are no CONFIG_HEADERS.
23243 # This happens for instance with `./config.status Makefile'.
23244 if test -n "$CONFIG_HEADERS"; then
23245 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23246 BEGIN {
23247 _ACEOF
23248
23249 # Transform confdefs.h into an awk script `defines.awk', embedded as
23250 # here-document in config.status, that substitutes the proper values into
23251 # config.h.in to produce config.h.
23252
23253 # Create a delimiter string that does not exist in confdefs.h, to ease
23254 # handling of long lines.
23255 ac_delim='%!_!# '
23256 for ac_last_try in false false :; do
23257 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23258 if test -z "$ac_tt"; then
23259 break
23260 elif $ac_last_try; then
23261 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23262 else
23263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23264 fi
23265 done
23266
23267 # For the awk script, D is an array of macro values keyed by name,
23268 # likewise P contains macro parameters if any. Preserve backslash
23269 # newline sequences.
23270
23271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23272 sed -n '
23273 s/.\{148\}/&'"$ac_delim"'/g
23274 t rset
23275 :rset
23276 s/^[ ]*#[ ]*define[ ][ ]*/ /
23277 t def
23278 d
23279 :def
23280 s/\\$//
23281 t bsnl
23282 s/["\\]/\\&/g
23283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23284 D["\1"]=" \3"/p
23285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23286 d
23287 :bsnl
23288 s/["\\]/\\&/g
23289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23290 D["\1"]=" \3\\\\\\n"\\/p
23291 t cont
23292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23293 t cont
23294 d
23295 :cont
23296 n
23297 s/.\{148\}/&'"$ac_delim"'/g
23298 t clear
23299 :clear
23300 s/\\$//
23301 t bsnlc
23302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23303 d
23304 :bsnlc
23305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23306 b cont
23307 ' <confdefs.h | sed '
23308 s/'"$ac_delim"'/"\\\
23309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23310
23311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23312 for (key in D) D_is_set[key] = 1
23313 FS = "\a"
23314 }
23315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23316 line = \$ 0
23317 split(line, arg, " ")
23318 if (arg[1] == "#") {
23319 defundef = arg[2]
23320 mac1 = arg[3]
23321 } else {
23322 defundef = substr(arg[1], 2)
23323 mac1 = arg[2]
23324 }
23325 split(mac1, mac2, "(") #)
23326 macro = mac2[1]
23327 prefix = substr(line, 1, index(line, defundef) - 1)
23328 if (D_is_set[macro]) {
23329 # Preserve the white space surrounding the "#".
23330 print prefix "define", macro P[macro] D[macro]
23331 next
23332 } else {
23333 # Replace #undef with comments. This is necessary, for example,
23334 # in the case of _POSIX_SOURCE, which is predefined and required
23335 # on some systems where configure will not decide to define it.
23336 if (defundef == "undef") {
23337 print "/*", prefix defundef, macro, "*/"
23338 next
23339 }
23340 }
23341 }
23342 { print }
23343 _ACAWK
23344 _ACEOF
23345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23346 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23347 fi # test -n "$CONFIG_HEADERS"
23348
23349
23350 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23351 shift
23352 for ac_tag
23353 do
23354 case $ac_tag in
23355 :[FHLC]) ac_mode=$ac_tag; continue;;
23356 esac
23357 case $ac_mode$ac_tag in
23358 :[FHL]*:*);;
23359 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23360 :[FH]-) ac_tag=-:-;;
23361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23362 esac
23363 ac_save_IFS=$IFS
23364 IFS=:
23365 set x $ac_tag
23366 IFS=$ac_save_IFS
23367 shift
23368 ac_file=$1
23369 shift
23370
23371 case $ac_mode in
23372 :L) ac_source=$1;;
23373 :[FH])
23374 ac_file_inputs=
23375 for ac_f
23376 do
23377 case $ac_f in
23378 -) ac_f="$ac_tmp/stdin";;
23379 *) # Look for the file first in the build tree, then in the source tree
23380 # (if the path is not absolute). The absolute path cannot be DOS-style,
23381 # because $ac_f cannot contain `:'.
23382 test -f "$ac_f" ||
23383 case $ac_f in
23384 [\\/$]*) false;;
23385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23386 esac ||
23387 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23388 esac
23389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23390 as_fn_append ac_file_inputs " '$ac_f'"
23391 done
23392
23393 # Let's still pretend it is `configure' which instantiates (i.e., don't
23394 # use $as_me), people would be surprised to read:
23395 # /* config.h. Generated by config.status. */
23396 configure_input='Generated from '`
23397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23398 `' by configure.'
23399 if test x"$ac_file" != x-; then
23400 configure_input="$ac_file. $configure_input"
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23402 $as_echo "$as_me: creating $ac_file" >&6;}
23403 fi
23404 # Neutralize special characters interpreted by sed in replacement strings.
23405 case $configure_input in #(
23406 *\&* | *\|* | *\\* )
23407 ac_sed_conf_input=`$as_echo "$configure_input" |
23408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23409 *) ac_sed_conf_input=$configure_input;;
23410 esac
23411
23412 case $ac_tag in
23413 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23415 esac
23416 ;;
23417 esac
23418
23419 ac_dir=`$as_dirname -- "$ac_file" ||
23420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23421 X"$ac_file" : 'X\(//\)[^/]' \| \
23422 X"$ac_file" : 'X\(//\)$' \| \
23423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23424 $as_echo X"$ac_file" |
23425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23426 s//\1/
23427 q
23428 }
23429 /^X\(\/\/\)[^/].*/{
23430 s//\1/
23431 q
23432 }
23433 /^X\(\/\/\)$/{
23434 s//\1/
23435 q
23436 }
23437 /^X\(\/\).*/{
23438 s//\1/
23439 q
23440 }
23441 s/.*/./; q'`
23442 as_dir="$ac_dir"; as_fn_mkdir_p
23443 ac_builddir=.
23444
23445 case "$ac_dir" in
23446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23447 *)
23448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23449 # A ".." for each directory in $ac_dir_suffix.
23450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23451 case $ac_top_builddir_sub in
23452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23454 esac ;;
23455 esac
23456 ac_abs_top_builddir=$ac_pwd
23457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23458 # for backward compatibility:
23459 ac_top_builddir=$ac_top_build_prefix
23460
23461 case $srcdir in
23462 .) # We are building in place.
23463 ac_srcdir=.
23464 ac_top_srcdir=$ac_top_builddir_sub
23465 ac_abs_top_srcdir=$ac_pwd ;;
23466 [\\/]* | ?:[\\/]* ) # Absolute name.
23467 ac_srcdir=$srcdir$ac_dir_suffix;
23468 ac_top_srcdir=$srcdir
23469 ac_abs_top_srcdir=$srcdir ;;
23470 *) # Relative name.
23471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23472 ac_top_srcdir=$ac_top_build_prefix$srcdir
23473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23474 esac
23475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23476
23477
23478 case $ac_mode in
23479 :F)
23480 #
23481 # CONFIG_FILE
23482 #
23483
23484 case $INSTALL in
23485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23487 esac
23488 ac_MKDIR_P=$MKDIR_P
23489 case $MKDIR_P in
23490 [\\/$]* | ?:[\\/]* ) ;;
23491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23492 esac
23493 _ACEOF
23494
23495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23496 # If the template does not know about datarootdir, expand it.
23497 # FIXME: This hack should be removed a few years after 2.60.
23498 ac_datarootdir_hack=; ac_datarootdir_seen=
23499 ac_sed_dataroot='
23500 /datarootdir/ {
23501 p
23502 q
23503 }
23504 /@datadir@/p
23505 /@docdir@/p
23506 /@infodir@/p
23507 /@localedir@/p
23508 /@mandir@/p'
23509 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23510 *datarootdir*) ac_datarootdir_seen=yes;;
23511 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23513 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23514 _ACEOF
23515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23516 ac_datarootdir_hack='
23517 s&@datadir@&$datadir&g
23518 s&@docdir@&$docdir&g
23519 s&@infodir@&$infodir&g
23520 s&@localedir@&$localedir&g
23521 s&@mandir@&$mandir&g
23522 s&\\\${datarootdir}&$datarootdir&g' ;;
23523 esac
23524 _ACEOF
23525
23526 # Neutralize VPATH when `$srcdir' = `.'.
23527 # Shell code in configure.ac might set extrasub.
23528 # FIXME: do we really want to maintain this feature?
23529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23530 ac_sed_extra="$ac_vpsub
23531 $extrasub
23532 _ACEOF
23533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23534 :t
23535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23536 s|@configure_input@|$ac_sed_conf_input|;t t
23537 s&@top_builddir@&$ac_top_builddir_sub&;t t
23538 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23539 s&@srcdir@&$ac_srcdir&;t t
23540 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23541 s&@top_srcdir@&$ac_top_srcdir&;t t
23542 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23543 s&@builddir@&$ac_builddir&;t t
23544 s&@abs_builddir@&$ac_abs_builddir&;t t
23545 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23546 s&@INSTALL@&$ac_INSTALL&;t t
23547 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23548 $ac_datarootdir_hack
23549 "
23550 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23551 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23552
23553 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23554 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23556 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23558 which seems to be undefined. Please make sure it is defined" >&5
23559 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23560 which seems to be undefined. Please make sure it is defined" >&2;}
23561
23562 rm -f "$ac_tmp/stdin"
23563 case $ac_file in
23564 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23565 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23566 esac \
23567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23568 ;;
23569 :H)
23570 #
23571 # CONFIG_HEADER
23572 #
23573 if test x"$ac_file" != x-; then
23574 {
23575 $as_echo "/* $configure_input */" \
23576 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23577 } >"$ac_tmp/config.h" \
23578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23579 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23581 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23582 else
23583 rm -f "$ac_file"
23584 mv "$ac_tmp/config.h" "$ac_file" \
23585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23586 fi
23587 else
23588 $as_echo "/* $configure_input */" \
23589 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23590 || as_fn_error $? "could not create -" "$LINENO" 5
23591 fi
23592 # Compute "$ac_file"'s index in $config_headers.
23593 _am_arg="$ac_file"
23594 _am_stamp_count=1
23595 for _am_header in $config_headers :; do
23596 case $_am_header in
23597 $_am_arg | $_am_arg:* )
23598 break ;;
23599 * )
23600 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23601 esac
23602 done
23603 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23604 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23605 X"$_am_arg" : 'X\(//\)[^/]' \| \
23606 X"$_am_arg" : 'X\(//\)$' \| \
23607 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23608 $as_echo X"$_am_arg" |
23609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23610 s//\1/
23611 q
23612 }
23613 /^X\(\/\/\)[^/].*/{
23614 s//\1/
23615 q
23616 }
23617 /^X\(\/\/\)$/{
23618 s//\1/
23619 q
23620 }
23621 /^X\(\/\).*/{
23622 s//\1/
23623 q
23624 }
23625 s/.*/./; q'`/stamp-h$_am_stamp_count
23626 ;;
23627
23628 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23629 $as_echo "$as_me: executing $ac_file commands" >&6;}
23630 ;;
23631 esac
23632
23633
23634 case $ac_file$ac_mode in
23635 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23636 # Older Autoconf quotes --file arguments for eval, but not when files
23637 # are listed without --file. Let's play safe and only enable the eval
23638 # if we detect the quoting.
23639 case $CONFIG_FILES in
23640 *\'*) eval set x "$CONFIG_FILES" ;;
23641 *) set x $CONFIG_FILES ;;
23642 esac
23643 shift
23644 for mf
23645 do
23646 # Strip MF so we end up with the name of the file.
23647 mf=`echo "$mf" | sed -e 's/:.*$//'`
23648 # Check whether this is an Automake generated Makefile or not.
23649 # We used to match only the files named 'Makefile.in', but
23650 # some people rename them; so instead we look at the file content.
23651 # Grep'ing the first line is not enough: some people post-process
23652 # each Makefile.in and add a new line on top of each file to say so.
23653 # Grep'ing the whole file is not good either: AIX grep has a line
23654 # limit of 2048, but all sed's we know have understand at least 4000.
23655 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23656 dirpart=`$as_dirname -- "$mf" ||
23657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23658 X"$mf" : 'X\(//\)[^/]' \| \
23659 X"$mf" : 'X\(//\)$' \| \
23660 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23661 $as_echo X"$mf" |
23662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23663 s//\1/
23664 q
23665 }
23666 /^X\(\/\/\)[^/].*/{
23667 s//\1/
23668 q
23669 }
23670 /^X\(\/\/\)$/{
23671 s//\1/
23672 q
23673 }
23674 /^X\(\/\).*/{
23675 s//\1/
23676 q
23677 }
23678 s/.*/./; q'`
23679 else
23680 continue
23681 fi
23682 # Extract the definition of DEPDIR, am__include, and am__quote
23683 # from the Makefile without running 'make'.
23684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23685 test -z "$DEPDIR" && continue
23686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23687 test -z "$am__include" && continue
23688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23689 # Find all dependency output files, they are included files with
23690 # $(DEPDIR) in their names. We invoke sed twice because it is the
23691 # simplest approach to changing $(DEPDIR) to its actual value in the
23692 # expansion.
23693 for file in `sed -n "
23694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23696 # Make sure the directory exists.
23697 test -f "$dirpart/$file" && continue
23698 fdir=`$as_dirname -- "$file" ||
23699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23700 X"$file" : 'X\(//\)[^/]' \| \
23701 X"$file" : 'X\(//\)$' \| \
23702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23703 $as_echo X"$file" |
23704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23705 s//\1/
23706 q
23707 }
23708 /^X\(\/\/\)[^/].*/{
23709 s//\1/
23710 q
23711 }
23712 /^X\(\/\/\)$/{
23713 s//\1/
23714 q
23715 }
23716 /^X\(\/\).*/{
23717 s//\1/
23718 q
23719 }
23720 s/.*/./; q'`
23721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23722 # echo "creating $dirpart/$file"
23723 echo '# dummy' > "$dirpart/$file"
23724 done
23725 done
23726 }
23727 ;;
23728 "libtool":C)
23729
23730 # See if we are running on zsh, and set the options that allow our
23731 # commands through without removal of \ escapes.
23732 if test -n "${ZSH_VERSION+set}"; then
23733 setopt NO_GLOB_SUBST
23734 fi
23735
23736 cfgfile=${ofile}T
23737 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23738 $RM "$cfgfile"
23739
23740 cat <<_LT_EOF >> "$cfgfile"
23741 #! $SHELL
23742 # Generated automatically by $as_me ($PACKAGE) $VERSION
23743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23744 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23745
23746 # Provide generalized library-building support services.
23747 # Written by Gordon Matzigkeit, 1996
23748
23749 # Copyright (C) 2014 Free Software Foundation, Inc.
23750 # This is free software; see the source for copying conditions. There is NO
23751 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23752
23753 # GNU Libtool is free software; you can redistribute it and/or modify
23754 # it under the terms of the GNU General Public License as published by
23755 # the Free Software Foundation; either version 2 of of the License, or
23756 # (at your option) any later version.
23757 #
23758 # As a special exception to the GNU General Public License, if you
23759 # distribute this file as part of a program or library that is built
23760 # using GNU Libtool, you may include this file under the same
23761 # distribution terms that you use for the rest of that program.
23762 #
23763 # GNU Libtool is distributed in the hope that it will be useful, but
23764 # WITHOUT ANY WARRANTY; without even the implied warranty of
23765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23766 # GNU General Public License for more details.
23767 #
23768 # You should have received a copy of the GNU General Public License
23769 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23770
23771
23772 # The names of the tagged configurations supported by this script.
23773 available_tags='CXX '
23774
23775 # Configured defaults for sys_lib_dlsearch_path munging.
23776 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23777
23778 # ### BEGIN LIBTOOL CONFIG
23779
23780 # Which release of libtool.m4 was used?
23781 macro_version=$macro_version
23782 macro_revision=$macro_revision
23783
23784 # Whether or not to build static libraries.
23785 build_old_libs=$enable_static
23786
23787 # Whether or not to build shared libraries.
23788 build_libtool_libs=$enable_shared
23789
23790 # What type of objects to build.
23791 pic_mode=$pic_mode
23792
23793 # Whether or not to optimize for fast installation.
23794 fast_install=$enable_fast_install
23795
23796 # Shared archive member basename,for filename based shared library versioning on AIX.
23797 shared_archive_member_spec=$shared_archive_member_spec
23798
23799 # Shell to use when invoking shell scripts.
23800 SHELL=$lt_SHELL
23801
23802 # An echo program that protects backslashes.
23803 ECHO=$lt_ECHO
23804
23805 # The PATH separator for the build system.
23806 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23807
23808 # The host system.
23809 host_alias=$host_alias
23810 host=$host
23811 host_os=$host_os
23812
23813 # The build system.
23814 build_alias=$build_alias
23815 build=$build
23816 build_os=$build_os
23817
23818 # A sed program that does not truncate output.
23819 SED=$lt_SED
23820
23821 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23822 Xsed="\$SED -e 1s/^X//"
23823
23824 # A grep program that handles long lines.
23825 GREP=$lt_GREP
23826
23827 # An ERE matcher.
23828 EGREP=$lt_EGREP
23829
23830 # A literal string matcher.
23831 FGREP=$lt_FGREP
23832
23833 # A BSD- or MS-compatible name lister.
23834 NM=$lt_NM
23835
23836 # Whether we need soft or hard links.
23837 LN_S=$lt_LN_S
23838
23839 # What is the maximum length of a command?
23840 max_cmd_len=$max_cmd_len
23841
23842 # Object file suffix (normally "o").
23843 objext=$ac_objext
23844
23845 # Executable file suffix (normally "").
23846 exeext=$exeext
23847
23848 # whether the shell understands "unset".
23849 lt_unset=$lt_unset
23850
23851 # turn spaces into newlines.
23852 SP2NL=$lt_lt_SP2NL
23853
23854 # turn newlines into spaces.
23855 NL2SP=$lt_lt_NL2SP
23856
23857 # convert \$build file names to \$host format.
23858 to_host_file_cmd=$lt_cv_to_host_file_cmd
23859
23860 # convert \$build files to toolchain format.
23861 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23862
23863 # An object symbol dumper.
23864 OBJDUMP=$lt_OBJDUMP
23865
23866 # Method to check whether dependent libraries are shared objects.
23867 deplibs_check_method=$lt_deplibs_check_method
23868
23869 # Command to use when deplibs_check_method = "file_magic".
23870 file_magic_cmd=$lt_file_magic_cmd
23871
23872 # How to find potential files when deplibs_check_method = "file_magic".
23873 file_magic_glob=$lt_file_magic_glob
23874
23875 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23876 want_nocaseglob=$lt_want_nocaseglob
23877
23878 # DLL creation program.
23879 DLLTOOL=$lt_DLLTOOL
23880
23881 # Command to associate shared and link libraries.
23882 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23883
23884 # The archiver.
23885 AR=$lt_AR
23886
23887 # Flags to create an archive.
23888 AR_FLAGS=$lt_AR_FLAGS
23889
23890 # How to feed a file listing to the archiver.
23891 archiver_list_spec=$lt_archiver_list_spec
23892
23893 # A symbol stripping program.
23894 STRIP=$lt_STRIP
23895
23896 # Commands used to install an old-style archive.
23897 RANLIB=$lt_RANLIB
23898 old_postinstall_cmds=$lt_old_postinstall_cmds
23899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23900
23901 # Whether to use a lock for old archive extraction.
23902 lock_old_archive_extraction=$lock_old_archive_extraction
23903
23904 # A C compiler.
23905 LTCC=$lt_CC
23906
23907 # LTCC compiler flags.
23908 LTCFLAGS=$lt_CFLAGS
23909
23910 # Take the output of nm and produce a listing of raw symbols and C names.
23911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23912
23913 # Transform the output of nm in a proper C declaration.
23914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23915
23916 # Transform the output of nm into a list of symbols to manually relocate.
23917 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23918
23919 # Transform the output of nm in a C name address pair.
23920 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23921
23922 # Transform the output of nm in a C name address pair when lib prefix is needed.
23923 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23924
23925 # The name lister interface.
23926 nm_interface=$lt_lt_cv_nm_interface
23927
23928 # Specify filename containing input files for \$NM.
23929 nm_file_list_spec=$lt_nm_file_list_spec
23930
23931 # The root where to search for dependent libraries,and where our libraries should be installed.
23932 lt_sysroot=$lt_sysroot
23933
23934 # Command to truncate a binary pipe.
23935 lt_truncate_bin=$lt_lt_cv_truncate_bin
23936
23937 # The name of the directory that contains temporary libtool files.
23938 objdir=$objdir
23939
23940 # Used to examine libraries when file_magic_cmd begins with "file".
23941 MAGIC_CMD=$MAGIC_CMD
23942
23943 # Must we lock files when doing compilation?
23944 need_locks=$lt_need_locks
23945
23946 # Manifest tool.
23947 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23948
23949 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23950 DSYMUTIL=$lt_DSYMUTIL
23951
23952 # Tool to change global to local symbols on Mac OS X.
23953 NMEDIT=$lt_NMEDIT
23954
23955 # Tool to manipulate fat objects and archives on Mac OS X.
23956 LIPO=$lt_LIPO
23957
23958 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23959 OTOOL=$lt_OTOOL
23960
23961 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23962 OTOOL64=$lt_OTOOL64
23963
23964 # Old archive suffix (normally "a").
23965 libext=$libext
23966
23967 # Shared library suffix (normally ".so").
23968 shrext_cmds=$lt_shrext_cmds
23969
23970 # The commands to extract the exported symbol list from a shared archive.
23971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23972
23973 # Variables whose values should be saved in libtool wrapper scripts and
23974 # restored at link time.
23975 variables_saved_for_relink=$lt_variables_saved_for_relink
23976
23977 # Do we need the "lib" prefix for modules?
23978 need_lib_prefix=$need_lib_prefix
23979
23980 # Do we need a version for libraries?
23981 need_version=$need_version
23982
23983 # Library versioning type.
23984 version_type=$version_type
23985
23986 # Shared library runtime path variable.
23987 runpath_var=$runpath_var
23988
23989 # Shared library path variable.
23990 shlibpath_var=$shlibpath_var
23991
23992 # Is shlibpath searched before the hard-coded library search path?
23993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23994
23995 # Format of library name prefix.
23996 libname_spec=$lt_libname_spec
23997
23998 # List of archive names. First name is the real one, the rest are links.
23999 # The last name is the one that the linker finds with -lNAME
24000 library_names_spec=$lt_library_names_spec
24001
24002 # The coded name of the library, if different from the real name.
24003 soname_spec=$lt_soname_spec
24004
24005 # Permission mode override for installation of shared libraries.
24006 install_override_mode=$lt_install_override_mode
24007
24008 # Command to use after installation of a shared archive.
24009 postinstall_cmds=$lt_postinstall_cmds
24010
24011 # Command to use after uninstallation of a shared archive.
24012 postuninstall_cmds=$lt_postuninstall_cmds
24013
24014 # Commands used to finish a libtool library installation in a directory.
24015 finish_cmds=$lt_finish_cmds
24016
24017 # As "finish_cmds", except a single script fragment to be evaled but
24018 # not shown.
24019 finish_eval=$lt_finish_eval
24020
24021 # Whether we should hardcode library paths into libraries.
24022 hardcode_into_libs=$hardcode_into_libs
24023
24024 # Compile-time system search path for libraries.
24025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24026
24027 # Detected run-time system search path for libraries.
24028 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24029
24030 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24031 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24032
24033 # Whether dlopen is supported.
24034 dlopen_support=$enable_dlopen
24035
24036 # Whether dlopen of programs is supported.
24037 dlopen_self=$enable_dlopen_self
24038
24039 # Whether dlopen of statically linked programs is supported.
24040 dlopen_self_static=$enable_dlopen_self_static
24041
24042 # Commands to strip libraries.
24043 old_striplib=$lt_old_striplib
24044 striplib=$lt_striplib
24045
24046
24047 # The linker used to build libraries.
24048 LD=$lt_LD
24049
24050 # How to create reloadable object files.
24051 reload_flag=$lt_reload_flag
24052 reload_cmds=$lt_reload_cmds
24053
24054 # Commands used to build an old-style archive.
24055 old_archive_cmds=$lt_old_archive_cmds
24056
24057 # A language specific compiler.
24058 CC=$lt_compiler
24059
24060 # Is the compiler the GNU compiler?
24061 with_gcc=$GCC
24062
24063 # Compiler flag to turn off builtin functions.
24064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24065
24066 # Additional compiler flags for building library objects.
24067 pic_flag=$lt_lt_prog_compiler_pic
24068
24069 # How to pass a linker flag through the compiler.
24070 wl=$lt_lt_prog_compiler_wl
24071
24072 # Compiler flag to prevent dynamic linking.
24073 link_static_flag=$lt_lt_prog_compiler_static
24074
24075 # Does compiler simultaneously support -c and -o options?
24076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24077
24078 # Whether or not to add -lc for building shared libraries.
24079 build_libtool_need_lc=$archive_cmds_need_lc
24080
24081 # Whether or not to disallow shared libs when runtime libs are static.
24082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24083
24084 # Compiler flag to allow reflexive dlopens.
24085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24086
24087 # Compiler flag to generate shared objects directly from archives.
24088 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24089
24090 # Whether the compiler copes with passing no objects directly.
24091 compiler_needs_object=$lt_compiler_needs_object
24092
24093 # Create an old-style archive from a shared archive.
24094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24095
24096 # Create a temporary old-style archive to link instead of a shared archive.
24097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24098
24099 # Commands used to build a shared archive.
24100 archive_cmds=$lt_archive_cmds
24101 archive_expsym_cmds=$lt_archive_expsym_cmds
24102
24103 # Commands used to build a loadable module if different from building
24104 # a shared archive.
24105 module_cmds=$lt_module_cmds
24106 module_expsym_cmds=$lt_module_expsym_cmds
24107
24108 # Whether we are building with GNU ld or not.
24109 with_gnu_ld=$lt_with_gnu_ld
24110
24111 # Flag that allows shared libraries with undefined symbols to be built.
24112 allow_undefined_flag=$lt_allow_undefined_flag
24113
24114 # Flag that enforces no undefined symbols.
24115 no_undefined_flag=$lt_no_undefined_flag
24116
24117 # Flag to hardcode \$libdir into a binary during linking.
24118 # This must work even if \$libdir does not exist
24119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24120
24121 # Whether we need a single "-rpath" flag with a separated argument.
24122 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24123
24124 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24125 # DIR into the resulting binary.
24126 hardcode_direct=$hardcode_direct
24127
24128 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24129 # DIR into the resulting binary and the resulting library dependency is
24130 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24131 # library is relocated.
24132 hardcode_direct_absolute=$hardcode_direct_absolute
24133
24134 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24135 # into the resulting binary.
24136 hardcode_minus_L=$hardcode_minus_L
24137
24138 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24139 # into the resulting binary.
24140 hardcode_shlibpath_var=$hardcode_shlibpath_var
24141
24142 # Set to "yes" if building a shared library automatically hardcodes DIR
24143 # into the library and all subsequent libraries and executables linked
24144 # against it.
24145 hardcode_automatic=$hardcode_automatic
24146
24147 # Set to yes if linker adds runtime paths of dependent libraries
24148 # to runtime path list.
24149 inherit_rpath=$inherit_rpath
24150
24151 # Whether libtool must link a program against all its dependency libraries.
24152 link_all_deplibs=$link_all_deplibs
24153
24154 # Set to "yes" if exported symbols are required.
24155 always_export_symbols=$always_export_symbols
24156
24157 # The commands to list exported symbols.
24158 export_symbols_cmds=$lt_export_symbols_cmds
24159
24160 # Symbols that should not be listed in the preloaded symbols.
24161 exclude_expsyms=$lt_exclude_expsyms
24162
24163 # Symbols that must always be exported.
24164 include_expsyms=$lt_include_expsyms
24165
24166 # Commands necessary for linking programs (against libraries) with templates.
24167 prelink_cmds=$lt_prelink_cmds
24168
24169 # Commands necessary for finishing linking programs.
24170 postlink_cmds=$lt_postlink_cmds
24171
24172 # Specify filename containing input files.
24173 file_list_spec=$lt_file_list_spec
24174
24175 # How to hardcode a shared library path into an executable.
24176 hardcode_action=$hardcode_action
24177
24178 # The directories searched by this compiler when creating a shared library.
24179 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24180
24181 # Dependencies to place before and after the objects being linked to
24182 # create a shared library.
24183 predep_objects=$lt_predep_objects
24184 postdep_objects=$lt_postdep_objects
24185 predeps=$lt_predeps
24186 postdeps=$lt_postdeps
24187
24188 # The library search path used internally by the compiler when linking
24189 # a shared library.
24190 compiler_lib_search_path=$lt_compiler_lib_search_path
24191
24192 # ### END LIBTOOL CONFIG
24193
24194 _LT_EOF
24195
24196 cat <<'_LT_EOF' >> "$cfgfile"
24197
24198 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24199
24200 # func_munge_path_list VARIABLE PATH
24201 # -----------------------------------
24202 # VARIABLE is name of variable containing _space_ separated list of
24203 # directories to be munged by the contents of PATH, which is string
24204 # having a format:
24205 # "DIR[:DIR]:"
24206 # string "DIR[ DIR]" will be prepended to VARIABLE
24207 # ":DIR[:DIR]"
24208 # string "DIR[ DIR]" will be appended to VARIABLE
24209 # "DIRP[:DIRP]::[DIRA:]DIRA"
24210 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24211 # "DIRA[ DIRA]" will be appended to VARIABLE
24212 # "DIR[:DIR]"
24213 # VARIABLE will be replaced by "DIR[ DIR]"
24214 func_munge_path_list ()
24215 {
24216 case x$2 in
24217 x)
24218 ;;
24219 *:)
24220 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24221 ;;
24222 x:*)
24223 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24224 ;;
24225 *::*)
24226 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24227 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24228 ;;
24229 *)
24230 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24231 ;;
24232 esac
24233 }
24234
24235
24236 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24237 func_cc_basename ()
24238 {
24239 for cc_temp in $*""; do
24240 case $cc_temp in
24241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24243 \-*) ;;
24244 *) break;;
24245 esac
24246 done
24247 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24248 }
24249
24250
24251 # ### END FUNCTIONS SHARED WITH CONFIGURE
24252
24253 _LT_EOF
24254
24255 case $host_os in
24256 aix3*)
24257 cat <<\_LT_EOF >> "$cfgfile"
24258 # AIX sometimes has problems with the GCC collect2 program. For some
24259 # reason, if we set the COLLECT_NAMES environment variable, the problems
24260 # vanish in a puff of smoke.
24261 if test set != "${COLLECT_NAMES+set}"; then
24262 COLLECT_NAMES=
24263 export COLLECT_NAMES
24264 fi
24265 _LT_EOF
24266 ;;
24267 esac
24268
24269
24270 ltmain=$ac_aux_dir/ltmain.sh
24271
24272
24273 # We use sed instead of cat because bash on DJGPP gets confused if
24274 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24275 # text mode, it properly converts lines to CR/LF. This bash problem
24276 # is reportedly fixed, but why not run on old versions too?
24277 sed '$q' "$ltmain" >> "$cfgfile" \
24278 || (rm -f "$cfgfile"; exit 1)
24279
24280 mv -f "$cfgfile" "$ofile" ||
24281 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24282 chmod +x "$ofile"
24283
24284
24285 cat <<_LT_EOF >> "$ofile"
24286
24287 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24288
24289 # The linker used to build libraries.
24290 LD=$lt_LD_CXX
24291
24292 # How to create reloadable object files.
24293 reload_flag=$lt_reload_flag_CXX
24294 reload_cmds=$lt_reload_cmds_CXX
24295
24296 # Commands used to build an old-style archive.
24297 old_archive_cmds=$lt_old_archive_cmds_CXX
24298
24299 # A language specific compiler.
24300 CC=$lt_compiler_CXX
24301
24302 # Is the compiler the GNU compiler?
24303 with_gcc=$GCC_CXX
24304
24305 # Compiler flag to turn off builtin functions.
24306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24307
24308 # Additional compiler flags for building library objects.
24309 pic_flag=$lt_lt_prog_compiler_pic_CXX
24310
24311 # How to pass a linker flag through the compiler.
24312 wl=$lt_lt_prog_compiler_wl_CXX
24313
24314 # Compiler flag to prevent dynamic linking.
24315 link_static_flag=$lt_lt_prog_compiler_static_CXX
24316
24317 # Does compiler simultaneously support -c and -o options?
24318 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24319
24320 # Whether or not to add -lc for building shared libraries.
24321 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24322
24323 # Whether or not to disallow shared libs when runtime libs are static.
24324 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24325
24326 # Compiler flag to allow reflexive dlopens.
24327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24328
24329 # Compiler flag to generate shared objects directly from archives.
24330 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24331
24332 # Whether the compiler copes with passing no objects directly.
24333 compiler_needs_object=$lt_compiler_needs_object_CXX
24334
24335 # Create an old-style archive from a shared archive.
24336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24337
24338 # Create a temporary old-style archive to link instead of a shared archive.
24339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24340
24341 # Commands used to build a shared archive.
24342 archive_cmds=$lt_archive_cmds_CXX
24343 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24344
24345 # Commands used to build a loadable module if different from building
24346 # a shared archive.
24347 module_cmds=$lt_module_cmds_CXX
24348 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24349
24350 # Whether we are building with GNU ld or not.
24351 with_gnu_ld=$lt_with_gnu_ld_CXX
24352
24353 # Flag that allows shared libraries with undefined symbols to be built.
24354 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24355
24356 # Flag that enforces no undefined symbols.
24357 no_undefined_flag=$lt_no_undefined_flag_CXX
24358
24359 # Flag to hardcode \$libdir into a binary during linking.
24360 # This must work even if \$libdir does not exist
24361 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24362
24363 # Whether we need a single "-rpath" flag with a separated argument.
24364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24365
24366 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24367 # DIR into the resulting binary.
24368 hardcode_direct=$hardcode_direct_CXX
24369
24370 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24371 # DIR into the resulting binary and the resulting library dependency is
24372 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24373 # library is relocated.
24374 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24375
24376 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24377 # into the resulting binary.
24378 hardcode_minus_L=$hardcode_minus_L_CXX
24379
24380 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24381 # into the resulting binary.
24382 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24383
24384 # Set to "yes" if building a shared library automatically hardcodes DIR
24385 # into the library and all subsequent libraries and executables linked
24386 # against it.
24387 hardcode_automatic=$hardcode_automatic_CXX
24388
24389 # Set to yes if linker adds runtime paths of dependent libraries
24390 # to runtime path list.
24391 inherit_rpath=$inherit_rpath_CXX
24392
24393 # Whether libtool must link a program against all its dependency libraries.
24394 link_all_deplibs=$link_all_deplibs_CXX
24395
24396 # Set to "yes" if exported symbols are required.
24397 always_export_symbols=$always_export_symbols_CXX
24398
24399 # The commands to list exported symbols.
24400 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24401
24402 # Symbols that should not be listed in the preloaded symbols.
24403 exclude_expsyms=$lt_exclude_expsyms_CXX
24404
24405 # Symbols that must always be exported.
24406 include_expsyms=$lt_include_expsyms_CXX
24407
24408 # Commands necessary for linking programs (against libraries) with templates.
24409 prelink_cmds=$lt_prelink_cmds_CXX
24410
24411 # Commands necessary for finishing linking programs.
24412 postlink_cmds=$lt_postlink_cmds_CXX
24413
24414 # Specify filename containing input files.
24415 file_list_spec=$lt_file_list_spec_CXX
24416
24417 # How to hardcode a shared library path into an executable.
24418 hardcode_action=$hardcode_action_CXX
24419
24420 # The directories searched by this compiler when creating a shared library.
24421 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24422
24423 # Dependencies to place before and after the objects being linked to
24424 # create a shared library.
24425 predep_objects=$lt_predep_objects_CXX
24426 postdep_objects=$lt_postdep_objects_CXX
24427 predeps=$lt_predeps_CXX
24428 postdeps=$lt_postdeps_CXX
24429
24430 # The library search path used internally by the compiler when linking
24431 # a shared library.
24432 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24433
24434 # ### END LIBTOOL TAG CONFIG: CXX
24435 _LT_EOF
24436
24437 ;;
24438
24439 esac
24440 done # for ac_tag
24441
24442
24443 as_fn_exit 0
24444 _ACEOF
24445 ac_clean_files=$ac_clean_files_save
24446
24447 test $ac_write_fail = 0 ||
24448 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24449
24450
24451 # configure is writing to config.log, and then calls config.status.
24452 # config.status does its own redirection, appending to config.log.
24453 # Unfortunately, on DOS this fails, as config.log is still kept open
24454 # by configure, so config.status won't be able to write to it; its
24455 # output is simply discarded. So we exec the FD to /dev/null,
24456 # effectively closing config.log, so it can be properly (re)opened and
24457 # appended to by config.status. When coming back to configure, we
24458 # need to make the FD available again.
24459 if test "$no_create" != yes; then
24460 ac_cs_success=:
24461 ac_config_status_args=
24462 test "$silent" = yes &&
24463 ac_config_status_args="$ac_config_status_args --quiet"
24464 exec 5>/dev/null
24465 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24466 exec 5>>config.log
24467 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24468 # would make configure fail if this is the last instruction.
24469 $ac_cs_success || as_fn_exit 1
24470 fi
24471 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24473 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24474 fi
24475