]> git.saurik.com Git - cycript.git/blob - configure
Upgrade to a more recent build of libtool in Fink.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2009-2014 Jay Freeman (saurik)
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 CY_MACH_FALSE
642 CY_MACH_TRUE
643 CY_MACH
644 CY_ATTACH_GROUP
645 ac_ct__OTOOL
646 _OTOOL
647 ac_ct__NM
648 _NM
649 ac_ct__LIPO
650 _LIPO
651 SO
652 LTFLAGS
653 LTLIBGCC
654 LTLIBTERMCAP
655 LTLIBREADLINE
656 CY_OBJECTIVEC_FALSE
657 CY_OBJECTIVEC_TRUE
658 CY_JAVA_FALSE
659 CY_JAVA_TRUE
660 LTOBJECTIVEC
661 GNUSTEP_CONFIG
662 CY_OBJECTIVEC
663 LTJAVA
664 CY_JAVA
665 LTLIBFFI
666 LIBFFI_LIBS
667 LIBFFI_CFLAGS
668 CY_EXECUTE_FALSE
669 CY_EXECUTE_TRUE
670 CY_CONSOLE_FALSE
671 CY_CONSOLE_TRUE
672 LTJAVASCRIPTCORE
673 WEBKIT_LIBS
674 WEBKIT_CFLAGS
675 CY_EXECUTE
676 CY_ARCH
677 CY_FILTERS
678 GNUTAR
679 GPERF
680 FLEX
681 BISON
682 TIME
683 GIT
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 HAVE_CXX11
688 CXXCPP
689 CPP
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 DLLTOOL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 LIBTOOL
718 ac_ct_AR
719 AR
720 am__fastdepOBJCXX_FALSE
721 am__fastdepOBJCXX_TRUE
722 OBJCXXDEPMODE
723 ac_ct_OBJCXX
724 OBJCXXFLAGS
725 OBJCXX
726 am__fastdepCXX_FALSE
727 am__fastdepCXX_TRUE
728 CXXDEPMODE
729 ac_ct_CXX
730 CXXFLAGS
731 CXX
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__quote
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 MAINT
750 MAINTAINER_MODE_FALSE
751 MAINTAINER_MODE_TRUE
752 AM_BACKSLASH
753 AM_DEFAULT_VERBOSITY
754 AM_DEFAULT_V
755 AM_V
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_silent_rules
821 enable_maintainer_mode
822 enable_dependency_tracking
823 enable_static
824 enable_shared
825 with_pic
826 enable_fast_install
827 with_aix_soname
828 with_gnu_ld
829 with_sysroot
830 enable_libtool_lock
831 enable_javascript
832 enable_console
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 CXX
843 CXXFLAGS
844 CCC
845 OBJCXX
846 OBJCXXFLAGS
847 LT_SYS_LIBRARY_PATH
848 CPP
849 CXXCPP
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 BISON
854 FLEX
855 GPERF
856 GNUTAR
857 WEBKIT_CFLAGS
858 WEBKIT_LIBS
859 LIBFFI_CFLAGS
860 LIBFFI_LIBS
861 GNUSTEP_CONFIG'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1456
1457 cat <<\_ACEOF
1458
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of Cycript 0.9:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-static[=PKGS] build static libraries [default=no]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-javascript[=ENGINE]
1495 use a JavaScript runtime (currently the only
1496 available option for ENGINE is JavaScriptCore)
1497 [default=yes]
1498 --disable-console disable console
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1522 OBJCXX Objective C++ compiler command
1523 OBJCXXFLAGS Objective C++ compiler flags
1524 LT_SYS_LIBRARY_PATH
1525 User-defined run-time library search path.
1526 CPP C preprocessor
1527 CXXCPP C++ preprocessor
1528 PKG_CONFIG path to pkg-config utility
1529 PKG_CONFIG_PATH
1530 directories to add to pkg-config's search path
1531 PKG_CONFIG_LIBDIR
1532 path overriding pkg-config's built-in search path
1533 BISON GNU Project parser generator (yacc replacement)
1534 FLEX the fast lexical analyser generator
1535 GPERF perfect hash function generator
1536 GNUTAR a very sticky lump of files
1537 WEBKIT_CFLAGS
1538 C compiler flags for WEBKIT, overriding pkg-config
1539 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1540 GNUSTEP_CONFIG
1541 prints information about the current gnustep installation
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to <saurik@saurik.com>.
1547 Cycript home page: <http://www.cycript.org/>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 Cycript configure 0.9
1611 generated by GNU Autoconf 2.69
1612
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616
1617 Copyright (C) 2009-2014 Jay Freeman (saurik)
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_cxx_try_compile LINENO
1665 # ----------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_cxx_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_cxx_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_cxx_try_compile
1701
1702 # ac_fn_objcxx_try_compile LINENO
1703 # -------------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_objcxx_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_objcxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_objcxx_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_link
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } > conftest.i && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889 fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1912
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918 #ifdef __STDC__
1919 # include <limits.h>
1920 #else
1921 # include <assert.h>
1922 #endif
1923
1924 #undef $2
1925
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929 #ifdef __cplusplus
1930 extern "C"
1931 #endif
1932 char $2 ();
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1937 choke me
1938 #endif
1939
1940 int
1941 main ()
1942 {
1943 return $2 ();
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_func
1962
1963 # ac_fn_cxx_try_cpp LINENO
1964 # ------------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_cpp ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994 fi
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1997
1998 } # ac_fn_cxx_try_cpp
1999
2000 # ac_fn_cxx_try_link LINENO
2001 # -------------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_link ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
2027 test -x conftest$ac_exeext
2028 }; then :
2029 ac_retval=0
2030 else
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035 fi
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2043
2044 } # ac_fn_cxx_try_link
2045
2046 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2047 # ---------------------------------------------------------
2048 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2049 # the include files in INCLUDES and setting the cache variable VAR
2050 # accordingly.
2051 ac_fn_cxx_check_header_mongrel ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if eval \${$3+:} false; then :
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 fi
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 else
2064 # Is the header compilable?
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2066 $as_echo_n "checking $2 usability... " >&6; }
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 #include <$2>
2071 _ACEOF
2072 if ac_fn_cxx_try_compile "$LINENO"; then :
2073 ac_header_compiler=yes
2074 else
2075 ac_header_compiler=no
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2079 $as_echo "$ac_header_compiler" >&6; }
2080
2081 # Is the header present?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2083 $as_echo_n "checking $2 presence... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_cpp "$LINENO"; then :
2089 ac_header_preproc=yes
2090 else
2091 ac_header_preproc=no
2092 fi
2093 rm -f conftest.err conftest.i conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2095 $as_echo "$ac_header_preproc" >&6; }
2096
2097 # So? What about this header?
2098 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 yes:no: )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2101 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105 no:yes:* )
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2107 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2109 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2111 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2113 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 ( $as_echo "## -------------------------------- ##
2117 ## Report this to saurik@saurik.com ##
2118 ## -------------------------------- ##"
2119 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 ;;
2121 esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=\$ac_header_compiler"
2128 fi
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 fi
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_cxx_check_header_mongrel
2136
2137 # ac_fn_objcxx_try_link LINENO
2138 # ----------------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_objcxx_try_link ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_objcxx_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
2164 test -x conftest$ac_exeext
2165 }; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172 fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2180
2181 } # ac_fn_objcxx_try_link
2182 cat >config.log <<_ACEOF
2183 This file contains any messages produced by compilers while
2184 running configure, to aid debugging if configure makes a mistake.
2185
2186 It was created by Cycript $as_me 0.9, which was
2187 generated by GNU Autoconf 2.69. Invocation command line was
2188
2189 $ $0 $@
2190
2191 _ACEOF
2192 exec 5>>config.log
2193 {
2194 cat <<_ASUNAME
2195 ## --------- ##
2196 ## Platform. ##
2197 ## --------- ##
2198
2199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207
2208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215
2216 _ASUNAME
2217
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225 IFS=$as_save_IFS
2226
2227 } >&5
2228
2229 cat >&5 <<_ACEOF
2230
2231
2232 ## ----------- ##
2233 ## Core tests. ##
2234 ## ----------- ##
2235
2236 _ACEOF
2237
2238
2239 # Keep a trace of the command line.
2240 # Strip out --no-create and --no-recursion so they do not pile up.
2241 # Strip out --silent because we don't want to record it for future runs.
2242 # Also quote any args containing shell meta-characters.
2243 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_configure_args=
2245 ac_configure_args0=
2246 ac_configure_args1=
2247 ac_must_keep_next=false
2248 for ac_pass in 1 2
2249 do
2250 for ac_arg
2251 do
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 2)
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2275 ;;
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2278 fi
2279 as_fn_append ac_configure_args " '$ac_arg'"
2280 ;;
2281 esac
2282 done
2283 done
2284 { ac_configure_args0=; unset ac_configure_args0;}
2285 { ac_configure_args1=; unset ac_configure_args1;}
2286
2287 # When interrupted or exit'd, cleanup temporary files, and complete
2288 # config.log. We remove comments because anyway the quotes in there
2289 # would cause problems or look ugly.
2290 # WARNING: Use '\'' to represent an apostrophe within the trap.
2291 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292 trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2294 {
2295 echo
2296
2297 $as_echo "## ---------------- ##
2298 ## Cache variables. ##
2299 ## ---------------- ##"
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2302 (
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2325 *)
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 ;;
2328 esac |
2329 sort
2330 )
2331 echo
2332
2333 $as_echo "## ----------------- ##
2334 ## Output variables. ##
2335 ## ----------------- ##"
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
2348 $as_echo "## ------------------- ##
2349 ## File substitutions. ##
2350 ## ------------------- ##"
2351 echo
2352 for ac_var in $ac_subst_files
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361 fi
2362
2363 if test -s confdefs.h; then
2364 $as_echo "## ----------- ##
2365 ## confdefs.h. ##
2366 ## ----------- ##"
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378 ' 0
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2383
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2386
2387 $as_echo "/* confdefs.h */" > confdefs.h
2388
2389 # Predefined preprocessor variables.
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2414
2415
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
2427 elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430 else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433 fi
2434 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435 do
2436 test "x$ac_site_file" = xNONE && continue
2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "failed to load site script $ac_site_file
2445 See \`config.log' for more details" "$LINENO" 5; }
2446 fi
2447 done
2448
2449 if test -r "$cache_file"; then
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454 $as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464 fi
2465
2466 # Check that the precious variables saved in the cache have kept the same
2467 # value.
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2484 *)
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2514 fi
2515 done
2516 if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 fi
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534
2535
2536
2537 ac_aux_dir=
2538 for ac_dir in . "$srcdir"/.; do
2539 if test -f "$ac_dir/install-sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 break
2543 elif test -f "$ac_dir/install.sh"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 break
2547 elif test -f "$ac_dir/shtool"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 break
2551 fi
2552 done
2553 if test -z "$ac_aux_dir"; then
2554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2555 fi
2556
2557 # These three variables are undocumented and unsupported,
2558 # and are intended to be withdrawn in a future Autoconf release.
2559 # They can cause serious problems if a builder's source tree is in a directory
2560 # whose full name contains unusual characters.
2561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
2566
2567 ac_config_headers="$ac_config_headers config.h"
2568
2569
2570 am__api_version='1.14'
2571
2572 # Find a good install program. We prefer a C program (faster),
2573 # so one script is as good as another. But avoid the broken or
2574 # incompatible versions:
2575 # SysV /etc/install, /usr/sbin/install
2576 # SunOS /usr/etc/install
2577 # IRIX /sbin/install
2578 # AIX /bin/install
2579 # AmigaOS /C/install, which installs bootblocks on floppy discs
2580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583 # OS/2's system install, which has a completely different semantic
2584 # ./install, which can be erroneously created by make from ./install.sh.
2585 # Reject install programs that cannot install multiple files.
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2588 if test -z "$INSTALL"; then
2589 if ${ac_cv_path_install+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598 case $as_dir/ in #((
2599 ./ | .// | /[cC]/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2610 if test $ac_prog = install &&
2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # AIX install. It has an incompatible calling convention.
2613 :
2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2618 else
2619 rm -rf conftest.one conftest.two conftest.dir
2620 echo one > conftest.one
2621 echo two > conftest.two
2622 mkdir conftest.dir
2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2624 test -s conftest.one && test -s conftest.two &&
2625 test -s conftest.dir/conftest.one &&
2626 test -s conftest.dir/conftest.two
2627 then
2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2629 break 3
2630 fi
2631 fi
2632 fi
2633 done
2634 done
2635 ;;
2636 esac
2637
2638 done
2639 IFS=$as_save_IFS
2640
2641 rm -rf conftest.one conftest.two conftest.dir
2642
2643 fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL=$ac_cv_path_install
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 INSTALL=$ac_install_sh
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2655 $as_echo "$INSTALL" >&6; }
2656
2657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2658 # It thinks the first close brace ends the variable substitution.
2659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2660
2661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2662
2663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2666 $as_echo_n "checking whether build environment is sane... " >&6; }
2667 # Reject unsafe characters in $srcdir or the absolute working directory
2668 # name. Accept space and tab only in the latter.
2669 am_lf='
2670 '
2671 case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2674 esac
2675 case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2678 esac
2679
2680 # Do 'set' in a subshell so we don't clobber the current shell's
2681 # arguments. Must try -L first in case configure is actually a
2682 # symlink; some systems play weird games with the mod time of symlinks
2683 # (eg FreeBSD returns the mod time of the symlink's containing
2684 # directory).
2685 if (
2686 am_has_slept=no
2687 for am_try in 1 2; do
2688 echo "timestamp, slept: $am_has_slept" > conftest.file
2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2690 if test "$*" = "X"; then
2691 # -L didn't work.
2692 set X `ls -t "$srcdir/configure" conftest.file`
2693 fi
2694 if test "$*" != "X $srcdir/configure conftest.file" \
2695 && test "$*" != "X conftest.file $srcdir/configure"; then
2696
2697 # If neither matched, then we have a broken ls. This can happen
2698 # if, for instance, CONFIG_SHELL is bash and it inherits a
2699 # broken ls alias from the environment. This has actually
2700 # happened. Such a system could not be considered "sane".
2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2702 alias in your environment" "$LINENO" 5
2703 fi
2704 if test "$2" = conftest.file || test $am_try -eq 2; then
2705 break
2706 fi
2707 # Just in case.
2708 sleep 1
2709 am_has_slept=yes
2710 done
2711 test "$2" = conftest.file
2712 )
2713 then
2714 # Ok.
2715 :
2716 else
2717 as_fn_error $? "newly created file is older than distributed files!
2718 Check your system clock" "$LINENO" 5
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722 # If we didn't sleep, we still need to ensure time stamps of config.status and
2723 # generated files are strictly newer.
2724 am_sleep_pid=
2725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2726 ( sleep 1 ) &
2727 am_sleep_pid=$!
2728 fi
2729
2730 rm -f conftest.file
2731
2732 test "$program_prefix" != NONE &&
2733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2734 # Use a double $ so make ignores it.
2735 test "$program_suffix" != NONE &&
2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2737 # Double any \ or $.
2738 # By default was `s,x,x', remove it if useless.
2739 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2740 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741
2742 # expand $ac_aux_dir to an absolute path
2743 am_aux_dir=`cd $ac_aux_dir && pwd`
2744
2745 if test x"${MISSING+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 *)
2750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2751 esac
2752 fi
2753 # Use eval to expand $SHELL
2754 if eval "$MISSING --is-lightweight"; then
2755 am_missing_run="$MISSING "
2756 else
2757 am_missing_run=
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2759 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2760 fi
2761
2762 if test x"${install_sh}" != xset; then
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 *)
2767 install_sh="\${SHELL} $am_aux_dir/install-sh"
2768 esac
2769 fi
2770
2771 # Installed binaries are usually stripped using 'strip' when the user
2772 # run "make install-strip". However 'strip' might not be the right
2773 # tool to use in cross-compilation environments, therefore Automake
2774 # will honor the 'STRIP' environment variable to overrule this program.
2775 if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}strip; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_STRIP+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 STRIP=$ac_cv_prog_STRIP
2805 if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807 $as_echo "$STRIP" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 fi
2815 if test -z "$ac_cv_prog_STRIP"; then
2816 ac_ct_STRIP=$STRIP
2817 # Extract the first word of "strip", so it can be a program name with args.
2818 set dummy strip; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 $as_echo "$ac_ct_STRIP" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 STRIP=$ac_ct_STRIP
2863 fi
2864 else
2865 STRIP="$ac_cv_prog_STRIP"
2866 fi
2867
2868 fi
2869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2872 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2873 if test -z "$MKDIR_P"; then
2874 if ${ac_cv_path_mkdir+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in mkdir gmkdir; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2886 'mkdir (GNU coreutils) '* | \
2887 'mkdir (coreutils) '* | \
2888 'mkdir (fileutils) '4.1*)
2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 break 3;;
2891 esac
2892 done
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898
2899 test -d ./--version && rmdir ./--version
2900 if test "${ac_cv_path_mkdir+set}" = set; then
2901 MKDIR_P="$ac_cv_path_mkdir -p"
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for MKDIR_P within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 MKDIR_P="$ac_install_sh -d"
2908 fi
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2911 $as_echo "$MKDIR_P" >&6; }
2912
2913 for ac_prog in gawk mawk nawk awk
2914 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_AWK+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$AWK"; then
2923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_AWK="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 AWK=$ac_cv_prog_AWK
2943 if test -n "$AWK"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2945 $as_echo "$AWK" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 test -n "$AWK" && break
2953 done
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2957 set x ${MAKE-make}
2958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 cat >conftest.make <<\_ACEOF
2963 SHELL = /bin/sh
2964 all:
2965 @echo '@@@%%%=$(MAKE)=@@@%%%'
2966 _ACEOF
2967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2969 *@@@%%%=?*=@@@%%%*)
2970 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 *)
2972 eval ac_cv_prog_make_${ac_make}_set=no;;
2973 esac
2974 rm -f conftest.make
2975 fi
2976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978 $as_echo "yes" >&6; }
2979 SET_MAKE=
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 SET_MAKE="MAKE=${MAKE-make}"
2984 fi
2985
2986 rm -rf .tst 2>/dev/null
2987 mkdir .tst 2>/dev/null
2988 if test -d .tst; then
2989 am__leading_dot=.
2990 else
2991 am__leading_dot=_
2992 fi
2993 rmdir .tst 2>/dev/null
2994
2995 # Check whether --enable-silent-rules was given.
2996 if test "${enable_silent_rules+set}" = set; then :
2997 enableval=$enable_silent_rules;
2998 fi
2999
3000 case $enable_silent_rules in # (((
3001 yes) AM_DEFAULT_VERBOSITY=0;;
3002 no) AM_DEFAULT_VERBOSITY=1;;
3003 *) AM_DEFAULT_VERBOSITY=1;;
3004 esac
3005 am_make=${MAKE-make}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3007 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3008 if ${am_cv_make_support_nested_variables+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if $as_echo 'TRUE=$(BAR$(V))
3012 BAR0=false
3013 BAR1=true
3014 V=1
3015 am__doit:
3016 @$(TRUE)
3017 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3018 am_cv_make_support_nested_variables=yes
3019 else
3020 am_cv_make_support_nested_variables=no
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3024 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3025 if test $am_cv_make_support_nested_variables = yes; then
3026 AM_V='$(V)'
3027 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3028 else
3029 AM_V=$AM_DEFAULT_VERBOSITY
3030 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031 fi
3032 AM_BACKSLASH='\'
3033
3034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status; then
3040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041 fi
3042 fi
3043
3044 # test whether we have cygpath
3045 if test -z "$CYGPATH_W"; then
3046 if (cygpath --version) >/dev/null 2>/dev/null; then
3047 CYGPATH_W='cygpath -w'
3048 else
3049 CYGPATH_W=echo
3050 fi
3051 fi
3052
3053
3054 # Define the identity of the package.
3055 PACKAGE='cycript'
3056 VERSION='0.9'
3057
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE "$PACKAGE"
3061 _ACEOF
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define VERSION "$VERSION"
3066 _ACEOF
3067
3068 # Some tools Automake needs.
3069
3070 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084 # For better backward compatibility. To be removed once Automake 1.9.x
3085 # dies out for good. For more background, see:
3086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3087 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3088 mkdir_p='$(MKDIR_P)'
3089
3090 # We need awk for the "check" target. The system "awk" is bad on
3091 # some platforms.
3092 # Always define AMTAR for backward compatibility. Yes, it's still used
3093 # in the wild :-( We should find a proper way to deprecate it ...
3094 AMTAR='$${TAR-tar}'
3095
3096
3097 # We'll loop over all known methods to create a tar archive until one works.
3098 _am_tools='gnutar pax cpio none'
3099
3100 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3101
3102
3103
3104
3105
3106
3107 # POSIX will say in a future version that running "rm -f" with no argument
3108 # is OK; and we want to be able to make that assumption in our Makefile
3109 # recipes. So use an aggressive probe to check that the usage we want is
3110 # actually supported "in the wild" to an acceptable degree.
3111 # See automake bug#10828.
3112 # To make any issue more visible, cause the running configure to be aborted
3113 # by default if the 'rm' program in use doesn't match our expectations; the
3114 # user can still override this though.
3115 if rm -f && rm -fr && rm -rf; then : OK; else
3116 cat >&2 <<'END'
3117 Oops!
3118
3119 Your 'rm' program seems unable to run without file operands specified
3120 on the command line, even when the '-f' option is present. This is contrary
3121 to the behaviour of most rm programs out there, and not conforming with
3122 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124 Please tell bug-automake@gnu.org about your system, including the value
3125 of your $PATH and any error possibly output before this message. This
3126 can help us improve future automake versions.
3127
3128 END
3129 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130 echo 'Configuration will proceed anyway, since you have set the' >&2
3131 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 echo >&2
3133 else
3134 cat >&2 <<'END'
3135 Aborting the configuration process, to ensure you take notice of the issue.
3136
3137 You can download and install GNU coreutils to get an 'rm' implementation
3138 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3139
3140 If you want to complete the configuration process using your problematic
3141 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142 to "yes", and re-run configure.
3143
3144 END
3145 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146 fi
3147 fi
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 >= 2.3" >&5
16885 $as_echo_n "checking for bison >= 2.3... " >&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=2.3
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 2.3 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
17231 $as_echo_n "checking bison for %code{}... " >&6; }
17232 echo '%code{}%%_:' >conftest.y
17233 if $BISON conftest.y -o/dev/null 2>/dev/null; then
17234
17235 for element in Bison24; do
17236 haveit=
17237 for x in $CY_FILTERS; do
17238
17239 acl_save_prefix="$prefix"
17240 prefix="$acl_final_prefix"
17241 acl_save_exec_prefix="$exec_prefix"
17242 exec_prefix="$acl_final_exec_prefix"
17243 eval x=\"$x\"
17244 exec_prefix="$acl_save_exec_prefix"
17245 prefix="$acl_save_prefix"
17246
17247 if test "X$x" = "X$element"; then
17248 haveit=yes
17249 break
17250 fi
17251 done
17252 if test -z "$haveit"; then
17253 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
17254 fi
17255 done
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17258 $as_echo "yes" >&6; }
17259 else
17260
17261 for element in Bison23; do
17262 haveit=
17263 for x in $CY_FILTERS; do
17264
17265 acl_save_prefix="$prefix"
17266 prefix="$acl_final_prefix"
17267 acl_save_exec_prefix="$exec_prefix"
17268 exec_prefix="$acl_final_exec_prefix"
17269 eval x=\"$x\"
17270 exec_prefix="$acl_save_exec_prefix"
17271 prefix="$acl_save_prefix"
17272
17273 if test "X$x" = "X$element"; then
17274 haveit=yes
17275 break
17276 fi
17277 done
17278 if test -z "$haveit"; then
17279 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
17280 fi
17281 done
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 $as_echo "no" >&6; }
17285 fi
17286
17287 rm -f conftest.y
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298 ac_ext=c
17299 ac_cpp='$CPP $CPPFLAGS'
17300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17303
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17305 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17306 if ${ac_cv_cflags_warn_all+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 ac_cv_cflags_warn_all="no, unknown"
17310 ac_save_CFLAGS="$CFLAGS"
17311 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" #
17312 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314 /* end confdefs.h. */
17315
17316 int
17317 main ()
17318 {
17319
17320 ;
17321 return 0;
17322 }
17323 _ACEOF
17324 if ac_fn_c_try_compile "$LINENO"; then :
17325 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 done
17329 CFLAGS="$ac_save_CFLAGS"
17330
17331 fi
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17333 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17334
17335
17336 case ".$ac_cv_cflags_warn_all" in
17337 .ok|.ok,*) ;;
17338 .|.no|.no,*) ;;
17339 *) if ${CFLAGS+:} false; then :
17340 case " $CFLAGS " in
17341 *" $ac_cv_cflags_warn_all "*)
17342 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17343 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17344 ac_status=$?
17345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17346 test $ac_status = 0; }
17347 ;;
17348 *)
17349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17350 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17351 ac_status=$?
17352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17353 test $ac_status = 0; }
17354 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17355 ;;
17356 esac
17357 else
17358 CFLAGS="$ac_cv_cflags_warn_all"
17359 fi
17360 ;;
17361 esac
17362
17363 ac_ext=cpp
17364 ac_cpp='$CXXCPP $CPPFLAGS'
17365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368
17369
17370 ac_ext=cpp
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17375
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17377 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17378 if ${ac_cv_cxxflags_warn_all+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 ac_cv_cxxflags_warn_all="no, unknown"
17382 ac_save_CXXFLAGS="$CXXFLAGS"
17383 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" #
17384 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387
17388 int
17389 main ()
17390 {
17391
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_cxx_try_compile "$LINENO"; then :
17397 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17398 fi
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400 done
17401 CXXFLAGS="$ac_save_CXXFLAGS"
17402
17403 fi
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17405 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17406
17407
17408 case ".$ac_cv_cxxflags_warn_all" in
17409 .ok|.ok,*) ;;
17410 .|.no|.no,*) ;;
17411 *) if ${CXXFLAGS+:} false; then :
17412 case " $CXXFLAGS " in
17413 *" $ac_cv_cxxflags_warn_all "*)
17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17415 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17416 ac_status=$?
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }
17419 ;;
17420 *)
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17422 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17423 ac_status=$?
17424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17425 test $ac_status = 0; }
17426 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17427 ;;
17428 esac
17429 else
17430 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17431 fi
17432 ;;
17433 esac
17434
17435 ac_ext=cpp
17436 ac_cpp='$CXXCPP $CPPFLAGS'
17437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17440
17441
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17443 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17444 if ${ac_cv_cxxflags_warn_all+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 ac_cv_cxxflags_warn_all="no, unknown"
17448 ac_save_CXXFLAGS="$CXXFLAGS"
17449 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" #
17450 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17453
17454 int
17455 main ()
17456 {
17457
17458 ;
17459 return 0;
17460 }
17461 _ACEOF
17462 if ac_fn_cxx_try_compile "$LINENO"; then :
17463 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466 done
17467 CXXFLAGS="$ac_save_CXXFLAGS"
17468
17469 fi
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17471 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17472
17473
17474 case ".$ac_cv_cxxflags_warn_all" in
17475 .ok|.ok,*) ;;
17476 .|.no|.no,*) ;;
17477 *) if ${CXXFLAGS+:} false; then :
17478 case " $CXXFLAGS " in
17479 *" $ac_cv_cxxflags_warn_all "*)
17480 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17481 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17482 ac_status=$?
17483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17484 test $ac_status = 0; }
17485 ;;
17486 *)
17487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17488 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17489 ac_status=$?
17490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17491 test $ac_status = 0; }
17492 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17493 ;;
17494 esac
17495 else
17496 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17497 fi
17498 ;;
17499 esac
17500
17501
17502
17503
17504
17505 ac_ext=c
17506 ac_cpp='$CPP $CPPFLAGS'
17507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17512 $as_echo_n "checking for cc -Werror... " >&6; }
17513
17514 cy_save=$CFLAGS
17515
17516 for element in -Werror; do
17517 haveit=
17518 for x in $CFLAGS; do
17519
17520 acl_save_prefix="$prefix"
17521 prefix="$acl_final_prefix"
17522 acl_save_exec_prefix="$exec_prefix"
17523 exec_prefix="$acl_final_exec_prefix"
17524 eval x=\"$x\"
17525 exec_prefix="$acl_save_exec_prefix"
17526 prefix="$acl_save_prefix"
17527
17528 if test "X$x" = "X$element"; then
17529 haveit=yes
17530 break
17531 fi
17532 done
17533 if test -z "$haveit"; then
17534 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17535 fi
17536 done
17537
17538
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541
17542 _ACEOF
17543 if ac_fn_c_try_compile "$LINENO"; then :
17544 cy_good=1
17545 else
17546 cy_good=0
17547 fi
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549
17550 CFLAGS=$cy_save
17551 if test "x$cy_good" = x1; then :
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17553 $as_echo "yes" >&6; }
17554
17555 for element in -Werror; do
17556 haveit=
17557 for x in $CFLAGS; do
17558
17559 acl_save_prefix="$prefix"
17560 prefix="$acl_final_prefix"
17561 acl_save_exec_prefix="$exec_prefix"
17562 exec_prefix="$acl_final_exec_prefix"
17563 eval x=\"$x\"
17564 exec_prefix="$acl_save_exec_prefix"
17565 prefix="$acl_save_prefix"
17566
17567 if test "X$x" = "X$element"; then
17568 haveit=yes
17569 break
17570 fi
17571 done
17572 if test -z "$haveit"; then
17573 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17574 fi
17575 done
17576
17577
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 $as_echo "no" >&6; }
17581 fi
17582
17583 ac_ext=cpp
17584 ac_cpp='$CXXCPP $CPPFLAGS'
17585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17588
17589
17590
17591 ac_ext=cpp
17592 ac_cpp='$CXXCPP $CPPFLAGS'
17593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17598 $as_echo_n "checking for c++ -Werror... " >&6; }
17599
17600 cy_save=$CXXFLAGS
17601
17602 for element in -Werror; do
17603 haveit=
17604 for x in $CXXFLAGS; do
17605
17606 acl_save_prefix="$prefix"
17607 prefix="$acl_final_prefix"
17608 acl_save_exec_prefix="$exec_prefix"
17609 exec_prefix="$acl_final_exec_prefix"
17610 eval x=\"$x\"
17611 exec_prefix="$acl_save_exec_prefix"
17612 prefix="$acl_save_prefix"
17613
17614 if test "X$x" = "X$element"; then
17615 haveit=yes
17616 break
17617 fi
17618 done
17619 if test -z "$haveit"; then
17620 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17621 fi
17622 done
17623
17624
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627
17628 _ACEOF
17629 if ac_fn_cxx_try_compile "$LINENO"; then :
17630 cy_good=1
17631 else
17632 cy_good=0
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635
17636 CXXFLAGS=$cy_save
17637 if test "x$cy_good" = x1; then :
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17639 $as_echo "yes" >&6; }
17640
17641 for element in -Werror; do
17642 haveit=
17643 for x in $CXXFLAGS; do
17644
17645 acl_save_prefix="$prefix"
17646 prefix="$acl_final_prefix"
17647 acl_save_exec_prefix="$exec_prefix"
17648 exec_prefix="$acl_final_exec_prefix"
17649 eval x=\"$x\"
17650 exec_prefix="$acl_save_exec_prefix"
17651 prefix="$acl_save_prefix"
17652
17653 if test "X$x" = "X$element"; then
17654 haveit=yes
17655 break
17656 fi
17657 done
17658 if test -z "$haveit"; then
17659 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17660 fi
17661 done
17662
17663
17664 else
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17667 fi
17668
17669 ac_ext=cpp
17670 ac_cpp='$CXXCPP $CPPFLAGS'
17671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17674
17675
17676
17677 ac_ext=mm
17678 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17679 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17680 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17681 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17682
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17684 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17685
17686 cy_save=$OBJCXXFLAGS
17687
17688 for element in -Werror; do
17689 haveit=
17690 for x in $OBJCXXFLAGS; do
17691
17692 acl_save_prefix="$prefix"
17693 prefix="$acl_final_prefix"
17694 acl_save_exec_prefix="$exec_prefix"
17695 exec_prefix="$acl_final_exec_prefix"
17696 eval x=\"$x\"
17697 exec_prefix="$acl_save_exec_prefix"
17698 prefix="$acl_save_prefix"
17699
17700 if test "X$x" = "X$element"; then
17701 haveit=yes
17702 break
17703 fi
17704 done
17705 if test -z "$haveit"; then
17706 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17707 fi
17708 done
17709
17710
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713
17714 _ACEOF
17715 if ac_fn_objcxx_try_compile "$LINENO"; then :
17716 cy_good=1
17717 else
17718 cy_good=0
17719 fi
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721
17722 OBJCXXFLAGS=$cy_save
17723 if test "x$cy_good" = x1; then :
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725 $as_echo "yes" >&6; }
17726
17727 for element in -Werror; do
17728 haveit=
17729 for x in $OBJCXXFLAGS; do
17730
17731 acl_save_prefix="$prefix"
17732 prefix="$acl_final_prefix"
17733 acl_save_exec_prefix="$exec_prefix"
17734 exec_prefix="$acl_final_exec_prefix"
17735 eval x=\"$x\"
17736 exec_prefix="$acl_save_exec_prefix"
17737 prefix="$acl_save_prefix"
17738
17739 if test "X$x" = "X$element"; then
17740 haveit=yes
17741 break
17742 fi
17743 done
17744 if test -z "$haveit"; then
17745 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17746 fi
17747 done
17748
17749
17750 else
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752 $as_echo "no" >&6; }
17753 fi
17754
17755 ac_ext=cpp
17756 ac_cpp='$CXXCPP $CPPFLAGS'
17757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17760
17761
17762
17763
17764
17765
17766 ac_ext=c
17767 ac_cpp='$CPP $CPPFLAGS'
17768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17771
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17773 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17774
17775 cy_save=$CFLAGS
17776
17777 for element in -Wno-deprecated-declarations; do
17778 haveit=
17779 for x in $CFLAGS; do
17780
17781 acl_save_prefix="$prefix"
17782 prefix="$acl_final_prefix"
17783 acl_save_exec_prefix="$exec_prefix"
17784 exec_prefix="$acl_final_exec_prefix"
17785 eval x=\"$x\"
17786 exec_prefix="$acl_save_exec_prefix"
17787 prefix="$acl_save_prefix"
17788
17789 if test "X$x" = "X$element"; then
17790 haveit=yes
17791 break
17792 fi
17793 done
17794 if test -z "$haveit"; then
17795 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17796 fi
17797 done
17798
17799
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17802
17803 _ACEOF
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805 cy_good=1
17806 else
17807 cy_good=0
17808 fi
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810
17811 CFLAGS=$cy_save
17812 if test "x$cy_good" = x1; then :
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17815
17816 for element in -Wno-deprecated-declarations; do
17817 haveit=
17818 for x in $CFLAGS; do
17819
17820 acl_save_prefix="$prefix"
17821 prefix="$acl_final_prefix"
17822 acl_save_exec_prefix="$exec_prefix"
17823 exec_prefix="$acl_final_exec_prefix"
17824 eval x=\"$x\"
17825 exec_prefix="$acl_save_exec_prefix"
17826 prefix="$acl_save_prefix"
17827
17828 if test "X$x" = "X$element"; then
17829 haveit=yes
17830 break
17831 fi
17832 done
17833 if test -z "$haveit"; then
17834 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17835 fi
17836 done
17837
17838
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841 $as_echo "no" >&6; }
17842 fi
17843
17844 ac_ext=cpp
17845 ac_cpp='$CXXCPP $CPPFLAGS'
17846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17849
17850
17851
17852 ac_ext=cpp
17853 ac_cpp='$CXXCPP $CPPFLAGS'
17854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17857
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17859 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17860
17861 cy_save=$CXXFLAGS
17862
17863 for element in -Wno-deprecated-declarations; do
17864 haveit=
17865 for x in $CXXFLAGS; do
17866
17867 acl_save_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_save_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871 eval x=\"$x\"
17872 exec_prefix="$acl_save_exec_prefix"
17873 prefix="$acl_save_prefix"
17874
17875 if test "X$x" = "X$element"; then
17876 haveit=yes
17877 break
17878 fi
17879 done
17880 if test -z "$haveit"; then
17881 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17882 fi
17883 done
17884
17885
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888
17889 _ACEOF
17890 if ac_fn_cxx_try_compile "$LINENO"; then :
17891 cy_good=1
17892 else
17893 cy_good=0
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896
17897 CXXFLAGS=$cy_save
17898 if test "x$cy_good" = x1; then :
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17900 $as_echo "yes" >&6; }
17901
17902 for element in -Wno-deprecated-declarations; do
17903 haveit=
17904 for x in $CXXFLAGS; do
17905
17906 acl_save_prefix="$prefix"
17907 prefix="$acl_final_prefix"
17908 acl_save_exec_prefix="$exec_prefix"
17909 exec_prefix="$acl_final_exec_prefix"
17910 eval x=\"$x\"
17911 exec_prefix="$acl_save_exec_prefix"
17912 prefix="$acl_save_prefix"
17913
17914 if test "X$x" = "X$element"; then
17915 haveit=yes
17916 break
17917 fi
17918 done
17919 if test -z "$haveit"; then
17920 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17921 fi
17922 done
17923
17924
17925 else
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17927 $as_echo "no" >&6; }
17928 fi
17929
17930 ac_ext=cpp
17931 ac_cpp='$CXXCPP $CPPFLAGS'
17932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935
17936
17937
17938 ac_ext=mm
17939 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17940 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17945 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17946
17947 cy_save=$OBJCXXFLAGS
17948
17949 for element in -Wno-deprecated-declarations; do
17950 haveit=
17951 for x in $OBJCXXFLAGS; do
17952
17953 acl_save_prefix="$prefix"
17954 prefix="$acl_final_prefix"
17955 acl_save_exec_prefix="$exec_prefix"
17956 exec_prefix="$acl_final_exec_prefix"
17957 eval x=\"$x\"
17958 exec_prefix="$acl_save_exec_prefix"
17959 prefix="$acl_save_prefix"
17960
17961 if test "X$x" = "X$element"; then
17962 haveit=yes
17963 break
17964 fi
17965 done
17966 if test -z "$haveit"; then
17967 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17968 fi
17969 done
17970
17971
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974
17975 _ACEOF
17976 if ac_fn_objcxx_try_compile "$LINENO"; then :
17977 cy_good=1
17978 else
17979 cy_good=0
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982
17983 OBJCXXFLAGS=$cy_save
17984 if test "x$cy_good" = x1; then :
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986 $as_echo "yes" >&6; }
17987
17988 for element in -Wno-deprecated-declarations; do
17989 haveit=
17990 for x in $OBJCXXFLAGS; do
17991
17992 acl_save_prefix="$prefix"
17993 prefix="$acl_final_prefix"
17994 acl_save_exec_prefix="$exec_prefix"
17995 exec_prefix="$acl_final_exec_prefix"
17996 eval x=\"$x\"
17997 exec_prefix="$acl_save_exec_prefix"
17998 prefix="$acl_save_prefix"
17999
18000 if test "X$x" = "X$element"; then
18001 haveit=yes
18002 break
18003 fi
18004 done
18005 if test -z "$haveit"; then
18006 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18007 fi
18008 done
18009
18010
18011 else
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18013 $as_echo "no" >&6; }
18014 fi
18015
18016 ac_ext=cpp
18017 ac_cpp='$CXXCPP $CPPFLAGS'
18018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18021
18022
18023
18024
18025
18026
18027 ac_ext=c
18028 ac_cpp='$CPP $CPPFLAGS'
18029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18032
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
18034 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
18035
18036 cy_save=$CFLAGS
18037
18038 for element in -Wno-dangling-else; do
18039 haveit=
18040 for x in $CFLAGS; do
18041
18042 acl_save_prefix="$prefix"
18043 prefix="$acl_final_prefix"
18044 acl_save_exec_prefix="$exec_prefix"
18045 exec_prefix="$acl_final_exec_prefix"
18046 eval x=\"$x\"
18047 exec_prefix="$acl_save_exec_prefix"
18048 prefix="$acl_save_prefix"
18049
18050 if test "X$x" = "X$element"; then
18051 haveit=yes
18052 break
18053 fi
18054 done
18055 if test -z "$haveit"; then
18056 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18057 fi
18058 done
18059
18060
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066 cy_good=1
18067 else
18068 cy_good=0
18069 fi
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071
18072 CFLAGS=$cy_save
18073 if test "x$cy_good" = x1; then :
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075 $as_echo "yes" >&6; }
18076
18077 for element in -Wno-dangling-else; do
18078 haveit=
18079 for x in $CFLAGS; do
18080
18081 acl_save_prefix="$prefix"
18082 prefix="$acl_final_prefix"
18083 acl_save_exec_prefix="$exec_prefix"
18084 exec_prefix="$acl_final_exec_prefix"
18085 eval x=\"$x\"
18086 exec_prefix="$acl_save_exec_prefix"
18087 prefix="$acl_save_prefix"
18088
18089 if test "X$x" = "X$element"; then
18090 haveit=yes
18091 break
18092 fi
18093 done
18094 if test -z "$haveit"; then
18095 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18096 fi
18097 done
18098
18099
18100 else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102 $as_echo "no" >&6; }
18103 fi
18104
18105 ac_ext=cpp
18106 ac_cpp='$CXXCPP $CPPFLAGS'
18107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110
18111
18112
18113 ac_ext=cpp
18114 ac_cpp='$CXXCPP $CPPFLAGS'
18115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18120 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18121
18122 cy_save=$CXXFLAGS
18123
18124 for element in -Wno-dangling-else; do
18125 haveit=
18126 for x in $CXXFLAGS; do
18127
18128 acl_save_prefix="$prefix"
18129 prefix="$acl_final_prefix"
18130 acl_save_exec_prefix="$exec_prefix"
18131 exec_prefix="$acl_final_exec_prefix"
18132 eval x=\"$x\"
18133 exec_prefix="$acl_save_exec_prefix"
18134 prefix="$acl_save_prefix"
18135
18136 if test "X$x" = "X$element"; then
18137 haveit=yes
18138 break
18139 fi
18140 done
18141 if test -z "$haveit"; then
18142 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18143 fi
18144 done
18145
18146
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149
18150 _ACEOF
18151 if ac_fn_cxx_try_compile "$LINENO"; then :
18152 cy_good=1
18153 else
18154 cy_good=0
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157
18158 CXXFLAGS=$cy_save
18159 if test "x$cy_good" = x1; then :
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161 $as_echo "yes" >&6; }
18162
18163 for element in -Wno-dangling-else; do
18164 haveit=
18165 for x in $CXXFLAGS; do
18166
18167 acl_save_prefix="$prefix"
18168 prefix="$acl_final_prefix"
18169 acl_save_exec_prefix="$exec_prefix"
18170 exec_prefix="$acl_final_exec_prefix"
18171 eval x=\"$x\"
18172 exec_prefix="$acl_save_exec_prefix"
18173 prefix="$acl_save_prefix"
18174
18175 if test "X$x" = "X$element"; then
18176 haveit=yes
18177 break
18178 fi
18179 done
18180 if test -z "$haveit"; then
18181 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18182 fi
18183 done
18184
18185
18186 else
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 fi
18190
18191 ac_ext=cpp
18192 ac_cpp='$CXXCPP $CPPFLAGS'
18193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18196
18197
18198
18199 ac_ext=mm
18200 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18201 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18202 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18203 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18206 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18207
18208 cy_save=$OBJCXXFLAGS
18209
18210 for element in -Wno-dangling-else; do
18211 haveit=
18212 for x in $OBJCXXFLAGS; do
18213
18214 acl_save_prefix="$prefix"
18215 prefix="$acl_final_prefix"
18216 acl_save_exec_prefix="$exec_prefix"
18217 exec_prefix="$acl_final_exec_prefix"
18218 eval x=\"$x\"
18219 exec_prefix="$acl_save_exec_prefix"
18220 prefix="$acl_save_prefix"
18221
18222 if test "X$x" = "X$element"; then
18223 haveit=yes
18224 break
18225 fi
18226 done
18227 if test -z "$haveit"; then
18228 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18229 fi
18230 done
18231
18232
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18235
18236 _ACEOF
18237 if ac_fn_objcxx_try_compile "$LINENO"; then :
18238 cy_good=1
18239 else
18240 cy_good=0
18241 fi
18242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243
18244 OBJCXXFLAGS=$cy_save
18245 if test "x$cy_good" = x1; then :
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18247 $as_echo "yes" >&6; }
18248
18249 for element in -Wno-dangling-else; do
18250 haveit=
18251 for x in $OBJCXXFLAGS; do
18252
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18257 eval x=\"$x\"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18260
18261 if test "X$x" = "X$element"; then
18262 haveit=yes
18263 break
18264 fi
18265 done
18266 if test -z "$haveit"; then
18267 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18268 fi
18269 done
18270
18271
18272 else
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18275 fi
18276
18277 ac_ext=cpp
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282
18283
18284
18285
18286
18287 ac_ext=c
18288 ac_cpp='$CPP $CPPFLAGS'
18289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18292
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18294 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18295
18296 cy_save=$CFLAGS
18297
18298 for element in -Wno-overloaded-virtual; do
18299 haveit=
18300 for x in $CFLAGS; do
18301
18302 acl_save_prefix="$prefix"
18303 prefix="$acl_final_prefix"
18304 acl_save_exec_prefix="$exec_prefix"
18305 exec_prefix="$acl_final_exec_prefix"
18306 eval x=\"$x\"
18307 exec_prefix="$acl_save_exec_prefix"
18308 prefix="$acl_save_prefix"
18309
18310 if test "X$x" = "X$element"; then
18311 haveit=yes
18312 break
18313 fi
18314 done
18315 if test -z "$haveit"; then
18316 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18317 fi
18318 done
18319
18320
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18323
18324 _ACEOF
18325 if ac_fn_c_try_compile "$LINENO"; then :
18326 cy_good=1
18327 else
18328 cy_good=0
18329 fi
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331
18332 CFLAGS=$cy_save
18333 if test "x$cy_good" = x1; then :
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335 $as_echo "yes" >&6; }
18336
18337 for element in -Wno-overloaded-virtual; do
18338 haveit=
18339 for x in $CFLAGS; do
18340
18341 acl_save_prefix="$prefix"
18342 prefix="$acl_final_prefix"
18343 acl_save_exec_prefix="$exec_prefix"
18344 exec_prefix="$acl_final_exec_prefix"
18345 eval x=\"$x\"
18346 exec_prefix="$acl_save_exec_prefix"
18347 prefix="$acl_save_prefix"
18348
18349 if test "X$x" = "X$element"; then
18350 haveit=yes
18351 break
18352 fi
18353 done
18354 if test -z "$haveit"; then
18355 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18356 fi
18357 done
18358
18359
18360 else
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18363 fi
18364
18365 ac_ext=cpp
18366 ac_cpp='$CXXCPP $CPPFLAGS'
18367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18370
18371
18372
18373 ac_ext=cpp
18374 ac_cpp='$CXXCPP $CPPFLAGS'
18375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18378
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18380 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18381
18382 cy_save=$CXXFLAGS
18383
18384 for element in -Wno-overloaded-virtual; do
18385 haveit=
18386 for x in $CXXFLAGS; do
18387
18388 acl_save_prefix="$prefix"
18389 prefix="$acl_final_prefix"
18390 acl_save_exec_prefix="$exec_prefix"
18391 exec_prefix="$acl_final_exec_prefix"
18392 eval x=\"$x\"
18393 exec_prefix="$acl_save_exec_prefix"
18394 prefix="$acl_save_prefix"
18395
18396 if test "X$x" = "X$element"; then
18397 haveit=yes
18398 break
18399 fi
18400 done
18401 if test -z "$haveit"; then
18402 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18403 fi
18404 done
18405
18406
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408 /* end confdefs.h. */
18409
18410 _ACEOF
18411 if ac_fn_cxx_try_compile "$LINENO"; then :
18412 cy_good=1
18413 else
18414 cy_good=0
18415 fi
18416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417
18418 CXXFLAGS=$cy_save
18419 if test "x$cy_good" = x1; then :
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421 $as_echo "yes" >&6; }
18422
18423 for element in -Wno-overloaded-virtual; do
18424 haveit=
18425 for x in $CXXFLAGS; do
18426
18427 acl_save_prefix="$prefix"
18428 prefix="$acl_final_prefix"
18429 acl_save_exec_prefix="$exec_prefix"
18430 exec_prefix="$acl_final_exec_prefix"
18431 eval x=\"$x\"
18432 exec_prefix="$acl_save_exec_prefix"
18433 prefix="$acl_save_prefix"
18434
18435 if test "X$x" = "X$element"; then
18436 haveit=yes
18437 break
18438 fi
18439 done
18440 if test -z "$haveit"; then
18441 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18442 fi
18443 done
18444
18445
18446 else
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18449 fi
18450
18451 ac_ext=cpp
18452 ac_cpp='$CXXCPP $CPPFLAGS'
18453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18456
18457
18458
18459 ac_ext=mm
18460 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18461 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18464
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18466 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18467
18468 cy_save=$OBJCXXFLAGS
18469
18470 for element in -Wno-overloaded-virtual; do
18471 haveit=
18472 for x in $OBJCXXFLAGS; do
18473
18474 acl_save_prefix="$prefix"
18475 prefix="$acl_final_prefix"
18476 acl_save_exec_prefix="$exec_prefix"
18477 exec_prefix="$acl_final_exec_prefix"
18478 eval x=\"$x\"
18479 exec_prefix="$acl_save_exec_prefix"
18480 prefix="$acl_save_prefix"
18481
18482 if test "X$x" = "X$element"; then
18483 haveit=yes
18484 break
18485 fi
18486 done
18487 if test -z "$haveit"; then
18488 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18489 fi
18490 done
18491
18492
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495
18496 _ACEOF
18497 if ac_fn_objcxx_try_compile "$LINENO"; then :
18498 cy_good=1
18499 else
18500 cy_good=0
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503
18504 OBJCXXFLAGS=$cy_save
18505 if test "x$cy_good" = x1; then :
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507 $as_echo "yes" >&6; }
18508
18509 for element in -Wno-overloaded-virtual; do
18510 haveit=
18511 for x in $OBJCXXFLAGS; do
18512
18513 acl_save_prefix="$prefix"
18514 prefix="$acl_final_prefix"
18515 acl_save_exec_prefix="$exec_prefix"
18516 exec_prefix="$acl_final_exec_prefix"
18517 eval x=\"$x\"
18518 exec_prefix="$acl_save_exec_prefix"
18519 prefix="$acl_save_prefix"
18520
18521 if test "X$x" = "X$element"; then
18522 haveit=yes
18523 break
18524 fi
18525 done
18526 if test -z "$haveit"; then
18527 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18528 fi
18529 done
18530
18531
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18534 $as_echo "no" >&6; }
18535 fi
18536
18537 ac_ext=cpp
18538 ac_cpp='$CXXCPP $CPPFLAGS'
18539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18542
18543
18544
18545
18546
18547 ac_ext=c
18548 ac_cpp='$CPP $CPPFLAGS'
18549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18554 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18555
18556 cy_save=$CFLAGS
18557
18558 for element in -Wno-parentheses; do
18559 haveit=
18560 for x in $CFLAGS; do
18561
18562 acl_save_prefix="$prefix"
18563 prefix="$acl_final_prefix"
18564 acl_save_exec_prefix="$exec_prefix"
18565 exec_prefix="$acl_final_exec_prefix"
18566 eval x=\"$x\"
18567 exec_prefix="$acl_save_exec_prefix"
18568 prefix="$acl_save_prefix"
18569
18570 if test "X$x" = "X$element"; then
18571 haveit=yes
18572 break
18573 fi
18574 done
18575 if test -z "$haveit"; then
18576 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18577 fi
18578 done
18579
18580
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18583
18584 _ACEOF
18585 if ac_fn_c_try_compile "$LINENO"; then :
18586 cy_good=1
18587 else
18588 cy_good=0
18589 fi
18590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591
18592 CFLAGS=$cy_save
18593 if test "x$cy_good" = x1; then :
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595 $as_echo "yes" >&6; }
18596
18597 for element in -Wno-parentheses; do
18598 haveit=
18599 for x in $CFLAGS; do
18600
18601 acl_save_prefix="$prefix"
18602 prefix="$acl_final_prefix"
18603 acl_save_exec_prefix="$exec_prefix"
18604 exec_prefix="$acl_final_exec_prefix"
18605 eval x=\"$x\"
18606 exec_prefix="$acl_save_exec_prefix"
18607 prefix="$acl_save_prefix"
18608
18609 if test "X$x" = "X$element"; then
18610 haveit=yes
18611 break
18612 fi
18613 done
18614 if test -z "$haveit"; then
18615 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18616 fi
18617 done
18618
18619
18620 else
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18623 fi
18624
18625 ac_ext=cpp
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630
18631
18632
18633 ac_ext=cpp
18634 ac_cpp='$CXXCPP $CPPFLAGS'
18635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18638
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18640 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18641
18642 cy_save=$CXXFLAGS
18643
18644 for element in -Wno-parentheses; do
18645 haveit=
18646 for x in $CXXFLAGS; do
18647
18648 acl_save_prefix="$prefix"
18649 prefix="$acl_final_prefix"
18650 acl_save_exec_prefix="$exec_prefix"
18651 exec_prefix="$acl_final_exec_prefix"
18652 eval x=\"$x\"
18653 exec_prefix="$acl_save_exec_prefix"
18654 prefix="$acl_save_prefix"
18655
18656 if test "X$x" = "X$element"; then
18657 haveit=yes
18658 break
18659 fi
18660 done
18661 if test -z "$haveit"; then
18662 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18663 fi
18664 done
18665
18666
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669
18670 _ACEOF
18671 if ac_fn_cxx_try_compile "$LINENO"; then :
18672 cy_good=1
18673 else
18674 cy_good=0
18675 fi
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677
18678 CXXFLAGS=$cy_save
18679 if test "x$cy_good" = x1; then :
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18681 $as_echo "yes" >&6; }
18682
18683 for element in -Wno-parentheses; do
18684 haveit=
18685 for x in $CXXFLAGS; do
18686
18687 acl_save_prefix="$prefix"
18688 prefix="$acl_final_prefix"
18689 acl_save_exec_prefix="$exec_prefix"
18690 exec_prefix="$acl_final_exec_prefix"
18691 eval x=\"$x\"
18692 exec_prefix="$acl_save_exec_prefix"
18693 prefix="$acl_save_prefix"
18694
18695 if test "X$x" = "X$element"; then
18696 haveit=yes
18697 break
18698 fi
18699 done
18700 if test -z "$haveit"; then
18701 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18702 fi
18703 done
18704
18705
18706 else
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708 $as_echo "no" >&6; }
18709 fi
18710
18711 ac_ext=cpp
18712 ac_cpp='$CXXCPP $CPPFLAGS'
18713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18716
18717
18718
18719 ac_ext=mm
18720 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18721 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18724
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18726 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18727
18728 cy_save=$OBJCXXFLAGS
18729
18730 for element in -Wno-parentheses; do
18731 haveit=
18732 for x in $OBJCXXFLAGS; do
18733
18734 acl_save_prefix="$prefix"
18735 prefix="$acl_final_prefix"
18736 acl_save_exec_prefix="$exec_prefix"
18737 exec_prefix="$acl_final_exec_prefix"
18738 eval x=\"$x\"
18739 exec_prefix="$acl_save_exec_prefix"
18740 prefix="$acl_save_prefix"
18741
18742 if test "X$x" = "X$element"; then
18743 haveit=yes
18744 break
18745 fi
18746 done
18747 if test -z "$haveit"; then
18748 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18749 fi
18750 done
18751
18752
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755
18756 _ACEOF
18757 if ac_fn_objcxx_try_compile "$LINENO"; then :
18758 cy_good=1
18759 else
18760 cy_good=0
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763
18764 OBJCXXFLAGS=$cy_save
18765 if test "x$cy_good" = x1; then :
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18767 $as_echo "yes" >&6; }
18768
18769 for element in -Wno-parentheses; do
18770 haveit=
18771 for x in $OBJCXXFLAGS; do
18772
18773 acl_save_prefix="$prefix"
18774 prefix="$acl_final_prefix"
18775 acl_save_exec_prefix="$exec_prefix"
18776 exec_prefix="$acl_final_exec_prefix"
18777 eval x=\"$x\"
18778 exec_prefix="$acl_save_exec_prefix"
18779 prefix="$acl_save_prefix"
18780
18781 if test "X$x" = "X$element"; then
18782 haveit=yes
18783 break
18784 fi
18785 done
18786 if test -z "$haveit"; then
18787 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18788 fi
18789 done
18790
18791
18792 else
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794 $as_echo "no" >&6; }
18795 fi
18796
18797 ac_ext=cpp
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18802
18803
18804
18805
18806
18807 ac_ext=c
18808 ac_cpp='$CPP $CPPFLAGS'
18809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18812
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18814 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18815
18816 cy_save=$CFLAGS
18817
18818 for element in -Wno-unneeded-internal-declaration; do
18819 haveit=
18820 for x in $CFLAGS; do
18821
18822 acl_save_prefix="$prefix"
18823 prefix="$acl_final_prefix"
18824 acl_save_exec_prefix="$exec_prefix"
18825 exec_prefix="$acl_final_exec_prefix"
18826 eval x=\"$x\"
18827 exec_prefix="$acl_save_exec_prefix"
18828 prefix="$acl_save_prefix"
18829
18830 if test "X$x" = "X$element"; then
18831 haveit=yes
18832 break
18833 fi
18834 done
18835 if test -z "$haveit"; then
18836 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18837 fi
18838 done
18839
18840
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18843
18844 _ACEOF
18845 if ac_fn_c_try_compile "$LINENO"; then :
18846 cy_good=1
18847 else
18848 cy_good=0
18849 fi
18850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851
18852 CFLAGS=$cy_save
18853 if test "x$cy_good" = x1; then :
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18855 $as_echo "yes" >&6; }
18856
18857 for element in -Wno-unneeded-internal-declaration; do
18858 haveit=
18859 for x in $CFLAGS; do
18860
18861 acl_save_prefix="$prefix"
18862 prefix="$acl_final_prefix"
18863 acl_save_exec_prefix="$exec_prefix"
18864 exec_prefix="$acl_final_exec_prefix"
18865 eval x=\"$x\"
18866 exec_prefix="$acl_save_exec_prefix"
18867 prefix="$acl_save_prefix"
18868
18869 if test "X$x" = "X$element"; then
18870 haveit=yes
18871 break
18872 fi
18873 done
18874 if test -z "$haveit"; then
18875 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18876 fi
18877 done
18878
18879
18880 else
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18882 $as_echo "no" >&6; }
18883 fi
18884
18885 ac_ext=cpp
18886 ac_cpp='$CXXCPP $CPPFLAGS'
18887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18890
18891
18892
18893 ac_ext=cpp
18894 ac_cpp='$CXXCPP $CPPFLAGS'
18895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18898
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18900 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18901
18902 cy_save=$CXXFLAGS
18903
18904 for element in -Wno-unneeded-internal-declaration; do
18905 haveit=
18906 for x in $CXXFLAGS; do
18907
18908 acl_save_prefix="$prefix"
18909 prefix="$acl_final_prefix"
18910 acl_save_exec_prefix="$exec_prefix"
18911 exec_prefix="$acl_final_exec_prefix"
18912 eval x=\"$x\"
18913 exec_prefix="$acl_save_exec_prefix"
18914 prefix="$acl_save_prefix"
18915
18916 if test "X$x" = "X$element"; then
18917 haveit=yes
18918 break
18919 fi
18920 done
18921 if test -z "$haveit"; then
18922 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18923 fi
18924 done
18925
18926
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929
18930 _ACEOF
18931 if ac_fn_cxx_try_compile "$LINENO"; then :
18932 cy_good=1
18933 else
18934 cy_good=0
18935 fi
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937
18938 CXXFLAGS=$cy_save
18939 if test "x$cy_good" = x1; then :
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18941 $as_echo "yes" >&6; }
18942
18943 for element in -Wno-unneeded-internal-declaration; do
18944 haveit=
18945 for x in $CXXFLAGS; do
18946
18947 acl_save_prefix="$prefix"
18948 prefix="$acl_final_prefix"
18949 acl_save_exec_prefix="$exec_prefix"
18950 exec_prefix="$acl_final_exec_prefix"
18951 eval x=\"$x\"
18952 exec_prefix="$acl_save_exec_prefix"
18953 prefix="$acl_save_prefix"
18954
18955 if test "X$x" = "X$element"; then
18956 haveit=yes
18957 break
18958 fi
18959 done
18960 if test -z "$haveit"; then
18961 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18962 fi
18963 done
18964
18965
18966 else
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968 $as_echo "no" >&6; }
18969 fi
18970
18971 ac_ext=cpp
18972 ac_cpp='$CXXCPP $CPPFLAGS'
18973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18976
18977
18978
18979 ac_ext=mm
18980 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18981 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18982 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18983 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18986 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18987
18988 cy_save=$OBJCXXFLAGS
18989
18990 for element in -Wno-unneeded-internal-declaration; do
18991 haveit=
18992 for x in $OBJCXXFLAGS; do
18993
18994 acl_save_prefix="$prefix"
18995 prefix="$acl_final_prefix"
18996 acl_save_exec_prefix="$exec_prefix"
18997 exec_prefix="$acl_final_exec_prefix"
18998 eval x=\"$x\"
18999 exec_prefix="$acl_save_exec_prefix"
19000 prefix="$acl_save_prefix"
19001
19002 if test "X$x" = "X$element"; then
19003 haveit=yes
19004 break
19005 fi
19006 done
19007 if test -z "$haveit"; then
19008 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19009 fi
19010 done
19011
19012
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015
19016 _ACEOF
19017 if ac_fn_objcxx_try_compile "$LINENO"; then :
19018 cy_good=1
19019 else
19020 cy_good=0
19021 fi
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023
19024 OBJCXXFLAGS=$cy_save
19025 if test "x$cy_good" = x1; then :
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027 $as_echo "yes" >&6; }
19028
19029 for element in -Wno-unneeded-internal-declaration; do
19030 haveit=
19031 for x in $OBJCXXFLAGS; do
19032
19033 acl_save_prefix="$prefix"
19034 prefix="$acl_final_prefix"
19035 acl_save_exec_prefix="$exec_prefix"
19036 exec_prefix="$acl_final_exec_prefix"
19037 eval x=\"$x\"
19038 exec_prefix="$acl_save_exec_prefix"
19039 prefix="$acl_save_prefix"
19040
19041 if test "X$x" = "X$element"; then
19042 haveit=yes
19043 break
19044 fi
19045 done
19046 if test -z "$haveit"; then
19047 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19048 fi
19049 done
19050
19051
19052 else
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19055 fi
19056
19057 ac_ext=cpp
19058 ac_cpp='$CXXCPP $CPPFLAGS'
19059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19062
19063
19064
19065
19066
19067
19068 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19070 $as_echo_n "checking for -arch $cy_arch... " >&6; }
19071
19072 cy_save=$CXXFLAGS
19073
19074 for element in "-arch $cy_arch"; do
19075 haveit=
19076 for x in $CXXFLAGS; do
19077
19078 acl_save_prefix="$prefix"
19079 prefix="$acl_final_prefix"
19080 acl_save_exec_prefix="$exec_prefix"
19081 exec_prefix="$acl_final_exec_prefix"
19082 eval x=\"$x\"
19083 exec_prefix="$acl_save_exec_prefix"
19084 prefix="$acl_save_prefix"
19085
19086 if test "X$x" = "X$element"; then
19087 haveit=yes
19088 break
19089 fi
19090 done
19091 if test -z "$haveit"; then
19092 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19093 fi
19094 done
19095
19096
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19099
19100 int
19101 main ()
19102 {
19103
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_cxx_try_link "$LINENO"; then :
19109 cy_good=1
19110 else
19111 cy_good=0
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115
19116 CXXFLAGS=$cy_save
19117 if test "x$cy_good" = x1; then :
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19119 $as_echo "yes" >&6; }
19120
19121 for element in "-arch $cy_arch"; do
19122 haveit=
19123 for x in $CY_ARCH; do
19124
19125 acl_save_prefix="$prefix"
19126 prefix="$acl_final_prefix"
19127 acl_save_exec_prefix="$exec_prefix"
19128 exec_prefix="$acl_final_exec_prefix"
19129 eval x=\"$x\"
19130 exec_prefix="$acl_save_exec_prefix"
19131 prefix="$acl_save_prefix"
19132
19133 if test "X$x" = "X$element"; then
19134 haveit=yes
19135 break
19136 fi
19137 done
19138 if test -z "$haveit"; then
19139 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19140 fi
19141 done
19142
19143
19144 else
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19146 $as_echo "no" >&6; }
19147 fi
19148
19149 done
19150
19151
19152
19153
19154
19155
19156 # Check whether --enable-javascript was given.
19157 if test "${enable_javascript+set}" = set; then :
19158 enableval=$enable_javascript;
19159 case $enableval in #(
19160 yes) :
19161
19162
19163
19164
19165 cy_save=$LIBS
19166 LIBS=
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19168 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19169 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19170 $as_echo_n "(cached) " >&6
19171 else
19172 ac_func_search_save_LIBS=$LIBS
19173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174 /* end confdefs.h. */
19175
19176 /* Override any GCC internal prototype to avoid an error.
19177 Use char because int might match the return type of a GCC
19178 builtin and then its argument prototype would still apply. */
19179 #ifdef __cplusplus
19180 extern "C"
19181 #endif
19182 char JSEvaluateScript ();
19183 int
19184 main ()
19185 {
19186 return JSEvaluateScript ();
19187 ;
19188 return 0;
19189 }
19190 _ACEOF
19191 for ac_lib in '' JavaScriptCore; do
19192 if test -z "$ac_lib"; then
19193 ac_res="none required"
19194 else
19195 ac_res=-l$ac_lib
19196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19197 fi
19198 if ac_fn_cxx_try_link "$LINENO"; then :
19199 ac_cv_search_JSEvaluateScript=$ac_res
19200 fi
19201 rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext
19203 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19204 break
19205 fi
19206 done
19207 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19208
19209 else
19210 ac_cv_search_JSEvaluateScript=no
19211 fi
19212 rm conftest.$ac_ext
19213 LIBS=$ac_func_search_save_LIBS
19214 fi
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19216 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19217 ac_res=$ac_cv_search_JSEvaluateScript
19218 if test "$ac_res" != no; then :
19219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19220
19221 CY_EXECUTE=1
19222
19223
19224 else
19225
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19227 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19228 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19229 $as_echo_n "(cached) " >&6
19230 else
19231
19232 ac_check_framework_save_LIBS=$LIBS
19233 LIBS="-framework JavaScriptCore $LIBS"
19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19236
19237 #include <JavaScriptCore/JSBase.h>
19238
19239 int
19240 main ()
19241 {
19242
19243 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19244
19245 ;
19246 return 0;
19247 }
19248 _ACEOF
19249 if ac_fn_cxx_try_link "$LINENO"; then :
19250
19251 ac_cv_framework_JavaScriptCore=yes
19252
19253 else
19254 ac_cv_framework_JavaScriptCore=no
19255 fi
19256 rm -f core conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19258 LIBS=$ac_check_framework_save_LIBS
19259
19260 fi
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19262 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19263 if test $ac_cv_framework_JavaScriptCore = yes; then :
19264
19265
19266 for element in "-framework JavaScriptCore"; do
19267 haveit=
19268 for x in $LIBS; do
19269
19270 acl_save_prefix="$prefix"
19271 prefix="$acl_final_prefix"
19272 acl_save_exec_prefix="$exec_prefix"
19273 exec_prefix="$acl_final_exec_prefix"
19274 eval x=\"$x\"
19275 exec_prefix="$acl_save_exec_prefix"
19276 prefix="$acl_save_prefix"
19277
19278 if test "X$x" = "X$element"; then
19279 haveit=yes
19280 break
19281 fi
19282 done
19283 if test -z "$haveit"; then
19284 LIBS="${LIBS}${LIBS:+ }$element"
19285 fi
19286 done
19287
19288
19289 CY_EXECUTE=1
19290
19291
19292
19293 else
19294
19295 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19296
19297 pkg_failed=no
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19299 $as_echo_n "checking for WEBKIT... " >&6; }
19300
19301 if test -n "$WEBKIT_CFLAGS"; then
19302 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19303 elif test -n "$PKG_CONFIG"; then
19304 if test -n "$PKG_CONFIG" && \
19305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19306 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19307 ac_status=$?
19308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309 test $ac_status = 0; }; then
19310 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19311 test "x$?" != "x0" && pkg_failed=yes
19312 else
19313 pkg_failed=yes
19314 fi
19315 else
19316 pkg_failed=untried
19317 fi
19318 if test -n "$WEBKIT_LIBS"; then
19319 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19320 elif test -n "$PKG_CONFIG"; then
19321 if test -n "$PKG_CONFIG" && \
19322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19323 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19326 test $ac_status = 0; }; then
19327 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19328 test "x$?" != "x0" && pkg_failed=yes
19329 else
19330 pkg_failed=yes
19331 fi
19332 else
19333 pkg_failed=untried
19334 fi
19335
19336
19337
19338 if test $pkg_failed = yes; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19340 $as_echo "no" >&6; }
19341
19342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19343 _pkg_short_errors_supported=yes
19344 else
19345 _pkg_short_errors_supported=no
19346 fi
19347 if test $_pkg_short_errors_supported = yes; then
19348 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19349 else
19350 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19351 fi
19352 # Put the nasty error message in config.log where it belongs
19353 echo "$WEBKIT_PKG_ERRORS" >&5
19354
19355 :
19356 elif test $pkg_failed = untried; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358 $as_echo "no" >&6; }
19359 :
19360 else
19361 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19362 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19364 $as_echo "yes" >&6; }
19365
19366 CY_EXECUTE=1
19367
19368
19369 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19370 haveit=
19371 for x in $CPPFLAGS; 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 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19388 fi
19389 done
19390
19391
19392 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19393 haveit=
19394 for x in $LIBS; do
19395
19396 acl_save_prefix="$prefix"
19397 prefix="$acl_final_prefix"
19398 acl_save_exec_prefix="$exec_prefix"
19399 exec_prefix="$acl_final_exec_prefix"
19400 eval x=\"$x\"
19401 exec_prefix="$acl_save_exec_prefix"
19402 prefix="$acl_save_prefix"
19403
19404 if test "X$x" = "X$element"; then
19405 haveit=yes
19406 break
19407 fi
19408 done
19409 if test -z "$haveit"; then
19410 LIBS="${LIBS}${LIBS:+ }$element"
19411 fi
19412 done
19413
19414
19415 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19416 done
19417
19418 fi
19419 fi
19420
19421 LTJAVASCRIPTCORE=$LIBS
19422 LIBS=$cy_save
19423
19424
19425 ;; #(
19426 no) :
19427
19428 CY_EXECUTE=0
19429 ;; #(
19430 JavaScriptCore) :
19431
19432
19433
19434 cy_save=$LIBS
19435 LIBS=
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19437 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19438 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19439 $as_echo_n "(cached) " >&6
19440 else
19441 ac_func_search_save_LIBS=$LIBS
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444
19445 /* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19448 #ifdef __cplusplus
19449 extern "C"
19450 #endif
19451 char JSEvaluateScript ();
19452 int
19453 main ()
19454 {
19455 return JSEvaluateScript ();
19456 ;
19457 return 0;
19458 }
19459 _ACEOF
19460 for ac_lib in '' JavaScriptCore; do
19461 if test -z "$ac_lib"; then
19462 ac_res="none required"
19463 else
19464 ac_res=-l$ac_lib
19465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19466 fi
19467 if ac_fn_cxx_try_link "$LINENO"; then :
19468 ac_cv_search_JSEvaluateScript=$ac_res
19469 fi
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext
19472 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19473 break
19474 fi
19475 done
19476 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19477
19478 else
19479 ac_cv_search_JSEvaluateScript=no
19480 fi
19481 rm conftest.$ac_ext
19482 LIBS=$ac_func_search_save_LIBS
19483 fi
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19485 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19486 ac_res=$ac_cv_search_JSEvaluateScript
19487 if test "$ac_res" != no; then :
19488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19489
19490 CY_EXECUTE=1
19491
19492
19493 else
19494
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19496 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19497 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19498 $as_echo_n "(cached) " >&6
19499 else
19500
19501 ac_check_framework_save_LIBS=$LIBS
19502 LIBS="-framework JavaScriptCore $LIBS"
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19505
19506 #include <JavaScriptCore/JSBase.h>
19507
19508 int
19509 main ()
19510 {
19511
19512 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19513
19514 ;
19515 return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_cxx_try_link "$LINENO"; then :
19519
19520 ac_cv_framework_JavaScriptCore=yes
19521
19522 else
19523 ac_cv_framework_JavaScriptCore=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_framework_save_LIBS
19528
19529 fi
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19531 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19532 if test $ac_cv_framework_JavaScriptCore = yes; then :
19533
19534
19535 for element in "-framework JavaScriptCore"; do
19536 haveit=
19537 for x in $LIBS; do
19538
19539 acl_save_prefix="$prefix"
19540 prefix="$acl_final_prefix"
19541 acl_save_exec_prefix="$exec_prefix"
19542 exec_prefix="$acl_final_exec_prefix"
19543 eval x=\"$x\"
19544 exec_prefix="$acl_save_exec_prefix"
19545 prefix="$acl_save_prefix"
19546
19547 if test "X$x" = "X$element"; then
19548 haveit=yes
19549 break
19550 fi
19551 done
19552 if test -z "$haveit"; then
19553 LIBS="${LIBS}${LIBS:+ }$element"
19554 fi
19555 done
19556
19557
19558 CY_EXECUTE=1
19559
19560
19561
19562 else
19563
19564 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19565
19566 pkg_failed=no
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19568 $as_echo_n "checking for WEBKIT... " >&6; }
19569
19570 if test -n "$WEBKIT_CFLAGS"; then
19571 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19572 elif test -n "$PKG_CONFIG"; then
19573 if test -n "$PKG_CONFIG" && \
19574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19575 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19576 ac_status=$?
19577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19578 test $ac_status = 0; }; then
19579 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19580 test "x$?" != "x0" && pkg_failed=yes
19581 else
19582 pkg_failed=yes
19583 fi
19584 else
19585 pkg_failed=untried
19586 fi
19587 if test -n "$WEBKIT_LIBS"; then
19588 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19589 elif test -n "$PKG_CONFIG"; then
19590 if test -n "$PKG_CONFIG" && \
19591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19592 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19593 ac_status=$?
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; then
19596 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19597 test "x$?" != "x0" && pkg_failed=yes
19598 else
19599 pkg_failed=yes
19600 fi
19601 else
19602 pkg_failed=untried
19603 fi
19604
19605
19606
19607 if test $pkg_failed = yes; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609 $as_echo "no" >&6; }
19610
19611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19612 _pkg_short_errors_supported=yes
19613 else
19614 _pkg_short_errors_supported=no
19615 fi
19616 if test $_pkg_short_errors_supported = yes; then
19617 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19618 else
19619 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19620 fi
19621 # Put the nasty error message in config.log where it belongs
19622 echo "$WEBKIT_PKG_ERRORS" >&5
19623
19624 :
19625 elif test $pkg_failed = untried; then
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19628 :
19629 else
19630 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19631 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19633 $as_echo "yes" >&6; }
19634
19635 CY_EXECUTE=1
19636
19637
19638 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19639 haveit=
19640 for x in $CPPFLAGS; do
19641
19642 acl_save_prefix="$prefix"
19643 prefix="$acl_final_prefix"
19644 acl_save_exec_prefix="$exec_prefix"
19645 exec_prefix="$acl_final_exec_prefix"
19646 eval x=\"$x\"
19647 exec_prefix="$acl_save_exec_prefix"
19648 prefix="$acl_save_prefix"
19649
19650 if test "X$x" = "X$element"; then
19651 haveit=yes
19652 break
19653 fi
19654 done
19655 if test -z "$haveit"; then
19656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19657 fi
19658 done
19659
19660
19661 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19662 haveit=
19663 for x in $LIBS; do
19664
19665 acl_save_prefix="$prefix"
19666 prefix="$acl_final_prefix"
19667 acl_save_exec_prefix="$exec_prefix"
19668 exec_prefix="$acl_final_exec_prefix"
19669 eval x=\"$x\"
19670 exec_prefix="$acl_save_exec_prefix"
19671 prefix="$acl_save_prefix"
19672
19673 if test "X$x" = "X$element"; then
19674 haveit=yes
19675 break
19676 fi
19677 done
19678 if test -z "$haveit"; then
19679 LIBS="${LIBS}${LIBS:+ }$element"
19680 fi
19681 done
19682
19683
19684 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19685 done
19686
19687 fi
19688 fi
19689
19690 LTJAVASCRIPTCORE=$LIBS
19691 LIBS=$cy_save
19692
19693
19694 ;; #(
19695 *) :
19696 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
19697 esac
19698
19699 else
19700
19701
19702
19703 cy_save=$LIBS
19704 LIBS=
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19706 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19707 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 ac_func_search_save_LIBS=$LIBS
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char JSEvaluateScript ();
19721 int
19722 main ()
19723 {
19724 return JSEvaluateScript ();
19725 ;
19726 return 0;
19727 }
19728 _ACEOF
19729 for ac_lib in '' JavaScriptCore; do
19730 if test -z "$ac_lib"; then
19731 ac_res="none required"
19732 else
19733 ac_res=-l$ac_lib
19734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19735 fi
19736 if ac_fn_cxx_try_link "$LINENO"; then :
19737 ac_cv_search_JSEvaluateScript=$ac_res
19738 fi
19739 rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext
19741 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19742 break
19743 fi
19744 done
19745 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19746
19747 else
19748 ac_cv_search_JSEvaluateScript=no
19749 fi
19750 rm conftest.$ac_ext
19751 LIBS=$ac_func_search_save_LIBS
19752 fi
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19754 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19755 ac_res=$ac_cv_search_JSEvaluateScript
19756 if test "$ac_res" != no; then :
19757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19758
19759 CY_EXECUTE=1
19760
19761
19762 else
19763
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19765 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19766 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768 else
19769
19770 ac_check_framework_save_LIBS=$LIBS
19771 LIBS="-framework JavaScriptCore $LIBS"
19772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773 /* end confdefs.h. */
19774
19775 #include <JavaScriptCore/JSBase.h>
19776
19777 int
19778 main ()
19779 {
19780
19781 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19782
19783 ;
19784 return 0;
19785 }
19786 _ACEOF
19787 if ac_fn_cxx_try_link "$LINENO"; then :
19788
19789 ac_cv_framework_JavaScriptCore=yes
19790
19791 else
19792 ac_cv_framework_JavaScriptCore=no
19793 fi
19794 rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_framework_save_LIBS
19797
19798 fi
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19800 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19801 if test $ac_cv_framework_JavaScriptCore = yes; then :
19802
19803
19804 for element in "-framework JavaScriptCore"; do
19805 haveit=
19806 for x in $LIBS; do
19807
19808 acl_save_prefix="$prefix"
19809 prefix="$acl_final_prefix"
19810 acl_save_exec_prefix="$exec_prefix"
19811 exec_prefix="$acl_final_exec_prefix"
19812 eval x=\"$x\"
19813 exec_prefix="$acl_save_exec_prefix"
19814 prefix="$acl_save_prefix"
19815
19816 if test "X$x" = "X$element"; then
19817 haveit=yes
19818 break
19819 fi
19820 done
19821 if test -z "$haveit"; then
19822 LIBS="${LIBS}${LIBS:+ }$element"
19823 fi
19824 done
19825
19826
19827 CY_EXECUTE=1
19828
19829
19830
19831 else
19832
19833 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19834
19835 pkg_failed=no
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19837 $as_echo_n "checking for WEBKIT... " >&6; }
19838
19839 if test -n "$WEBKIT_CFLAGS"; then
19840 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19841 elif test -n "$PKG_CONFIG"; then
19842 if test -n "$PKG_CONFIG" && \
19843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19844 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19845 ac_status=$?
19846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19847 test $ac_status = 0; }; then
19848 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19849 test "x$?" != "x0" && pkg_failed=yes
19850 else
19851 pkg_failed=yes
19852 fi
19853 else
19854 pkg_failed=untried
19855 fi
19856 if test -n "$WEBKIT_LIBS"; then
19857 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19858 elif test -n "$PKG_CONFIG"; then
19859 if test -n "$PKG_CONFIG" && \
19860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19861 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19862 ac_status=$?
19863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; then
19865 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19866 test "x$?" != "x0" && pkg_failed=yes
19867 else
19868 pkg_failed=yes
19869 fi
19870 else
19871 pkg_failed=untried
19872 fi
19873
19874
19875
19876 if test $pkg_failed = yes; then
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19878 $as_echo "no" >&6; }
19879
19880 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19881 _pkg_short_errors_supported=yes
19882 else
19883 _pkg_short_errors_supported=no
19884 fi
19885 if test $_pkg_short_errors_supported = yes; then
19886 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19887 else
19888 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19889 fi
19890 # Put the nasty error message in config.log where it belongs
19891 echo "$WEBKIT_PKG_ERRORS" >&5
19892
19893 :
19894 elif test $pkg_failed = untried; then
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19897 :
19898 else
19899 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19900 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19902 $as_echo "yes" >&6; }
19903
19904 CY_EXECUTE=1
19905
19906
19907 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19908 haveit=
19909 for x in $CPPFLAGS; do
19910
19911 acl_save_prefix="$prefix"
19912 prefix="$acl_final_prefix"
19913 acl_save_exec_prefix="$exec_prefix"
19914 exec_prefix="$acl_final_exec_prefix"
19915 eval x=\"$x\"
19916 exec_prefix="$acl_save_exec_prefix"
19917 prefix="$acl_save_prefix"
19918
19919 if test "X$x" = "X$element"; then
19920 haveit=yes
19921 break
19922 fi
19923 done
19924 if test -z "$haveit"; then
19925 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19926 fi
19927 done
19928
19929
19930 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19931 haveit=
19932 for x in $LIBS; do
19933
19934 acl_save_prefix="$prefix"
19935 prefix="$acl_final_prefix"
19936 acl_save_exec_prefix="$exec_prefix"
19937 exec_prefix="$acl_final_exec_prefix"
19938 eval x=\"$x\"
19939 exec_prefix="$acl_save_exec_prefix"
19940 prefix="$acl_save_prefix"
19941
19942 if test "X$x" = "X$element"; then
19943 haveit=yes
19944 break
19945 fi
19946 done
19947 if test -z "$haveit"; then
19948 LIBS="${LIBS}${LIBS:+ }$element"
19949 fi
19950 done
19951
19952
19953 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19954 done
19955
19956 fi
19957 fi
19958
19959 LTJAVASCRIPTCORE=$LIBS
19960 LIBS=$cy_save
19961
19962
19963
19964 fi
19965
19966
19967 # Check whether --enable-console was given.
19968 if test "${enable_console+set}" = set; then :
19969 enableval=$enable_console;
19970 fi
19971
19972 if test "x$enable_console" != "xno"; then
19973 CY_CONSOLE_TRUE=
19974 CY_CONSOLE_FALSE='#'
19975 else
19976 CY_CONSOLE_TRUE='#'
19977 CY_CONSOLE_FALSE=
19978 fi
19979
19980
19981
19982
19983 if test "x$CY_EXECUTE" = x1; then
19984 CY_EXECUTE_TRUE=
19985 CY_EXECUTE_FALSE='#'
19986 else
19987 CY_EXECUTE_TRUE='#'
19988 CY_EXECUTE_FALSE=
19989 fi
19990
19991
19992
19993 case $CY_EXECUTE in #(
19994 1) :
19995
19996 for ac_header in ffi.h ffi/ffi.h
19997 do :
19998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20001 cat >>confdefs.h <<_ACEOF
20002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20003 _ACEOF
20004 break
20005 fi
20006
20007 done
20008
20009
20010
20011 cy_save=$LIBS
20012 LIBS=
20013 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20014
20015
20016 LIBFFI_CFLAGS
20017 C compiler flags for LIBFFI, overriding pkg-config
20018 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20019
20020 pkg_failed=no
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20022 $as_echo_n "checking for LIBFFI... " >&6; }
20023
20024 if test -n "$LIBFFI_CFLAGS"; then
20025 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20026 elif test -n "$PKG_CONFIG"; then
20027 if test -n "$PKG_CONFIG" && \
20028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20029 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20030 ac_status=$?
20031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032 test $ac_status = 0; }; then
20033 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20034 test "x$?" != "x0" && pkg_failed=yes
20035 else
20036 pkg_failed=yes
20037 fi
20038 else
20039 pkg_failed=untried
20040 fi
20041 if test -n "$LIBFFI_LIBS"; then
20042 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20043 elif test -n "$PKG_CONFIG"; then
20044 if test -n "$PKG_CONFIG" && \
20045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20046 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20047 ac_status=$?
20048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20049 test $ac_status = 0; }; then
20050 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20051 test "x$?" != "x0" && pkg_failed=yes
20052 else
20053 pkg_failed=yes
20054 fi
20055 else
20056 pkg_failed=untried
20057 fi
20058
20059
20060
20061 if test $pkg_failed = yes; then
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20063 $as_echo "no" >&6; }
20064
20065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20066 _pkg_short_errors_supported=yes
20067 else
20068 _pkg_short_errors_supported=no
20069 fi
20070 if test $_pkg_short_errors_supported = yes; then
20071 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20072 else
20073 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20074 fi
20075 # Put the nasty error message in config.log where it belongs
20076 echo "$LIBFFI_PKG_ERRORS" >&5
20077
20078 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20079 elif test $pkg_failed = untried; then
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081 $as_echo "no" >&6; }
20082 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20083 else
20084 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20085 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20087 $as_echo "yes" >&6; }
20088
20089
20090 for element in `$PKG_CONFIG --cflags libffi`; do
20091 haveit=
20092 for x in $CPPFLAGS; do
20093
20094 acl_save_prefix="$prefix"
20095 prefix="$acl_final_prefix"
20096 acl_save_exec_prefix="$exec_prefix"
20097 exec_prefix="$acl_final_exec_prefix"
20098 eval x=\"$x\"
20099 exec_prefix="$acl_save_exec_prefix"
20100 prefix="$acl_save_prefix"
20101
20102 if test "X$x" = "X$element"; then
20103 haveit=yes
20104 break
20105 fi
20106 done
20107 if test -z "$haveit"; then
20108 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20109 fi
20110 done
20111
20112
20113 for element in `$PKG_CONFIG --libs libffi`; do
20114 haveit=
20115 for x in $LIBS; do
20116
20117 acl_save_prefix="$prefix"
20118 prefix="$acl_final_prefix"
20119 acl_save_exec_prefix="$exec_prefix"
20120 exec_prefix="$acl_final_exec_prefix"
20121 eval x=\"$x\"
20122 exec_prefix="$acl_save_exec_prefix"
20123 prefix="$acl_save_prefix"
20124
20125 if test "X$x" = "X$element"; then
20126 haveit=yes
20127 break
20128 fi
20129 done
20130 if test -z "$haveit"; then
20131 LIBS="${LIBS}${LIBS:+ }$element"
20132 fi
20133 done
20134
20135
20136 fi
20137
20138 else
20139
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20141 $as_echo_n "checking for library containing ffi_call... " >&6; }
20142 if ${ac_cv_search_ffi_call+:} false; then :
20143 $as_echo_n "(cached) " >&6
20144 else
20145 ac_func_search_save_LIBS=$LIBS
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20148
20149 /* Override any GCC internal prototype to avoid an error.
20150 Use char because int might match the return type of a GCC
20151 builtin and then its argument prototype would still apply. */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 char ffi_call ();
20156 int
20157 main ()
20158 {
20159 return ffi_call ();
20160 ;
20161 return 0;
20162 }
20163 _ACEOF
20164 for ac_lib in '' ffi; do
20165 if test -z "$ac_lib"; then
20166 ac_res="none required"
20167 else
20168 ac_res=-l$ac_lib
20169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20170 fi
20171 if ac_fn_cxx_try_link "$LINENO"; then :
20172 ac_cv_search_ffi_call=$ac_res
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext
20176 if ${ac_cv_search_ffi_call+:} false; then :
20177 break
20178 fi
20179 done
20180 if ${ac_cv_search_ffi_call+:} false; then :
20181
20182 else
20183 ac_cv_search_ffi_call=no
20184 fi
20185 rm conftest.$ac_ext
20186 LIBS=$ac_func_search_save_LIBS
20187 fi
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20189 $as_echo "$ac_cv_search_ffi_call" >&6; }
20190 ac_res=$ac_cv_search_ffi_call
20191 if test "$ac_res" != no; then :
20192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20193
20194 fi
20195
20196 case $ac_cv_search_ffi_call in #(
20197 no) :
20198
20199
20200 pkg_failed=no
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20202 $as_echo_n "checking for LIBFFI... " >&6; }
20203
20204 if test -n "$LIBFFI_CFLAGS"; then
20205 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20206 elif test -n "$PKG_CONFIG"; then
20207 if test -n "$PKG_CONFIG" && \
20208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20209 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20210 ac_status=$?
20211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20212 test $ac_status = 0; }; then
20213 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20214 test "x$?" != "x0" && pkg_failed=yes
20215 else
20216 pkg_failed=yes
20217 fi
20218 else
20219 pkg_failed=untried
20220 fi
20221 if test -n "$LIBFFI_LIBS"; then
20222 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20223 elif test -n "$PKG_CONFIG"; then
20224 if test -n "$PKG_CONFIG" && \
20225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20226 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20229 test $ac_status = 0; }; then
20230 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20231 test "x$?" != "x0" && pkg_failed=yes
20232 else
20233 pkg_failed=yes
20234 fi
20235 else
20236 pkg_failed=untried
20237 fi
20238
20239
20240
20241 if test $pkg_failed = yes; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20243 $as_echo "no" >&6; }
20244
20245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20246 _pkg_short_errors_supported=yes
20247 else
20248 _pkg_short_errors_supported=no
20249 fi
20250 if test $_pkg_short_errors_supported = yes; then
20251 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20252 else
20253 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20254 fi
20255 # Put the nasty error message in config.log where it belongs
20256 echo "$LIBFFI_PKG_ERRORS" >&5
20257
20258 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20259 elif test $pkg_failed = untried; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261 $as_echo "no" >&6; }
20262 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20263 else
20264 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20265 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20267 $as_echo "yes" >&6; }
20268
20269
20270 for element in `$PKG_CONFIG --cflags libffi`; do
20271 haveit=
20272 for x in $CPPFLAGS; do
20273
20274 acl_save_prefix="$prefix"
20275 prefix="$acl_final_prefix"
20276 acl_save_exec_prefix="$exec_prefix"
20277 exec_prefix="$acl_final_exec_prefix"
20278 eval x=\"$x\"
20279 exec_prefix="$acl_save_exec_prefix"
20280 prefix="$acl_save_prefix"
20281
20282 if test "X$x" = "X$element"; then
20283 haveit=yes
20284 break
20285 fi
20286 done
20287 if test -z "$haveit"; then
20288 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20289 fi
20290 done
20291
20292
20293 for element in `$PKG_CONFIG --libs libffi`; do
20294 haveit=
20295 for x in $LIBS; do
20296
20297 acl_save_prefix="$prefix"
20298 prefix="$acl_final_prefix"
20299 acl_save_exec_prefix="$exec_prefix"
20300 exec_prefix="$acl_final_exec_prefix"
20301 eval x=\"$x\"
20302 exec_prefix="$acl_save_exec_prefix"
20303 prefix="$acl_save_prefix"
20304
20305 if test "X$x" = "X$element"; then
20306 haveit=yes
20307 break
20308 fi
20309 done
20310 if test -z "$haveit"; then
20311 LIBS="${LIBS}${LIBS:+ }$element"
20312 fi
20313 done
20314
20315
20316 fi ;; #(
20317 *) :
20318 ;;
20319 esac
20320
20321 fi
20322 LTLIBFFI=$LIBS
20323 LIBS=$cy_save
20324
20325
20326
20327 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20328 if test "x$ac_cv_header_jni_h" = xyes; then :
20329
20330 CY_JAVA=1
20331
20332
20333 cy_save=$LIBS
20334 LIBS=
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20336 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20337 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20338 $as_echo_n "(cached) " >&6
20339 else
20340 ac_func_search_save_LIBS=$LIBS
20341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h. */
20343
20344 /* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20347 #ifdef __cplusplus
20348 extern "C"
20349 #endif
20350 char JNI_GetCreatedJavaVMs ();
20351 int
20352 main ()
20353 {
20354 return JNI_GetCreatedJavaVMs ();
20355 ;
20356 return 0;
20357 }
20358 _ACEOF
20359 for ac_lib in '' dvm; do
20360 if test -z "$ac_lib"; then
20361 ac_res="none required"
20362 else
20363 ac_res=-l$ac_lib
20364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20365 fi
20366 if ac_fn_cxx_try_link "$LINENO"; then :
20367 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20368 fi
20369 rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext
20371 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20372 break
20373 fi
20374 done
20375 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20376
20377 else
20378 ac_cv_search_JNI_GetCreatedJavaVMs=no
20379 fi
20380 rm conftest.$ac_ext
20381 LIBS=$ac_func_search_save_LIBS
20382 fi
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20384 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20385 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20386 if test "$ac_res" != no; then :
20387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20388
20389
20390 fi
20391
20392 LTJAVA=$LIBS
20393 LIBS=$cy_save
20394
20395
20396
20397 else
20398
20399 CY_JAVA=0
20400
20401
20402 fi
20403
20404
20405
20406 ac_ext=mm
20407 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20408 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20411
20412
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20414 $as_echo_n "checking if we really have Objective C++... " >&6; }
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416 /* end confdefs.h. */
20417
20418 _ACEOF
20419 if ac_fn_objcxx_try_compile "$LINENO"; then :
20420
20421 CY_OBJECTIVEC=1
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20423 $as_echo "yes" >&6; }
20424
20425 else
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20427 $as_echo "no" >&6; }
20428 fi
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430
20431 if test "x$CY_OBJECTIVEC" = x1; then :
20432
20433
20434 cy_save=$LIBS
20435 LIBS=
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20438 $as_echo_n "checking for framework CoreFoundation... " >&6; }
20439 if ${ac_cv_framework_CoreFoundation+:} false; then :
20440 $as_echo_n "(cached) " >&6
20441 else
20442
20443 ac_check_framework_save_LIBS=$LIBS
20444 LIBS="-framework CoreFoundation $LIBS"
20445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h. */
20447
20448 #include <CoreFoundation/CFBase.h>
20449
20450 int
20451 main ()
20452 {
20453 CFAllocatorGetDefault();
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 if ac_fn_objcxx_try_link "$LINENO"; then :
20459
20460 ac_cv_framework_CoreFoundation=yes
20461
20462 else
20463 ac_cv_framework_CoreFoundation=no
20464 fi
20465 rm -f core conftest.err conftest.$ac_objext \
20466 conftest$ac_exeext conftest.$ac_ext
20467 LIBS=$ac_check_framework_save_LIBS
20468
20469 fi
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20471 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20472 if test $ac_cv_framework_CoreFoundation = yes; then :
20473
20474
20475 for element in "-framework CoreFoundation"; do
20476 haveit=
20477 for x in $LIBS; do
20478
20479 acl_save_prefix="$prefix"
20480 prefix="$acl_final_prefix"
20481 acl_save_exec_prefix="$exec_prefix"
20482 exec_prefix="$acl_final_exec_prefix"
20483 eval x=\"$x\"
20484 exec_prefix="$acl_save_exec_prefix"
20485 prefix="$acl_save_prefix"
20486
20487 if test "X$x" = "X$element"; then
20488 haveit=yes
20489 break
20490 fi
20491 done
20492 if test -z "$haveit"; then
20493 LIBS="${LIBS}${LIBS:+ }$element"
20494 fi
20495 done
20496
20497
20498
20499
20500
20501
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20503 $as_echo_n "checking for framework Foundation... " >&6; }
20504 if ${ac_cv_framework_Foundation+:} false; then :
20505 $as_echo_n "(cached) " >&6
20506 else
20507
20508 ac_check_framework_save_LIBS=$LIBS
20509 LIBS="-framework Foundation $LIBS"
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h. */
20512
20513 #include <Foundation/NSObject.h>
20514
20515 int
20516 main ()
20517 {
20518 [[NSObject alloc] init];
20519 ;
20520 return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_objcxx_try_link "$LINENO"; then :
20524
20525 ac_cv_framework_Foundation=yes
20526
20527 else
20528 ac_cv_framework_Foundation=no
20529 fi
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_framework_save_LIBS
20533
20534 fi
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
20536 $as_echo "$ac_cv_framework_Foundation" >&6; }
20537 if test $ac_cv_framework_Foundation = yes; then :
20538
20539
20540 for element in "-framework Foundation"; do
20541 haveit=
20542 for x in $LIBS; do
20543
20544 acl_save_prefix="$prefix"
20545 prefix="$acl_final_prefix"
20546 acl_save_exec_prefix="$exec_prefix"
20547 exec_prefix="$acl_final_exec_prefix"
20548 eval x=\"$x\"
20549 exec_prefix="$acl_save_exec_prefix"
20550 prefix="$acl_save_prefix"
20551
20552 if test "X$x" = "X$element"; then
20553 haveit=yes
20554 break
20555 fi
20556 done
20557 if test -z "$haveit"; then
20558 LIBS="${LIBS}${LIBS:+ }$element"
20559 fi
20560 done
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_FRAMEWORK_FOUNDATION 1
20564 _ACEOF
20565
20566
20567 fi
20568
20569
20570 else
20571
20572
20573 for ac_prog in gnustep-config
20574 do
20575 # Extract the first word of "$ac_prog", so it can be a program name with args.
20576 set dummy $ac_prog; ac_word=$2
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20578 $as_echo_n "checking for $ac_word... " >&6; }
20579 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
20580 $as_echo_n "(cached) " >&6
20581 else
20582 if test -n "$GNUSTEP_CONFIG"; then
20583 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
20584 else
20585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20586 for as_dir in $PATH
20587 do
20588 IFS=$as_save_IFS
20589 test -z "$as_dir" && as_dir=.
20590 for ac_exec_ext in '' $ac_executable_extensions; do
20591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20592 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
20593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20594 break 2
20595 fi
20596 done
20597 done
20598 IFS=$as_save_IFS
20599
20600 fi
20601 fi
20602 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
20603 if test -n "$GNUSTEP_CONFIG"; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
20605 $as_echo "$GNUSTEP_CONFIG" >&6; }
20606 else
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20608 $as_echo "no" >&6; }
20609 fi
20610
20611
20612 test -n "$GNUSTEP_CONFIG" && break
20613 done
20614
20615
20616 if test "x$GNUSTEP_CONFIG" != x; then :
20617
20618
20619
20620 for element in `$GNUSTEP_CONFIG --objc-flags`; do
20621 haveit=
20622 for x in $OBJCXXFLAGS; do
20623
20624 acl_save_prefix="$prefix"
20625 prefix="$acl_final_prefix"
20626 acl_save_exec_prefix="$exec_prefix"
20627 exec_prefix="$acl_final_exec_prefix"
20628 eval x=\"$x\"
20629 exec_prefix="$acl_save_exec_prefix"
20630 prefix="$acl_save_prefix"
20631
20632 if test "X$x" = "X$element"; then
20633 haveit=yes
20634 break
20635 fi
20636 done
20637 if test -z "$haveit"; then
20638 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20639 fi
20640 done
20641
20642
20643 for element in `$GNUSTEP_CONFIG --base-libs`; do
20644 haveit=
20645 for x in $LIBS; do
20646
20647 acl_save_prefix="$prefix"
20648 prefix="$acl_final_prefix"
20649 acl_save_exec_prefix="$exec_prefix"
20650 exec_prefix="$acl_final_exec_prefix"
20651 eval x=\"$x\"
20652 exec_prefix="$acl_save_exec_prefix"
20653 prefix="$acl_save_prefix"
20654
20655 if test "X$x" = "X$element"; then
20656 haveit=yes
20657 break
20658 fi
20659 done
20660 if test -z "$haveit"; then
20661 LIBS="${LIBS}${LIBS:+ }$element"
20662 fi
20663 done
20664
20665
20666 else
20667 CY_OBJECTIVEC=0
20668
20669 fi
20670
20671 fi
20672 LTOBJECTIVEC=$LIBS
20673 LIBS=$cy_save
20674
20675
20676
20677 fi
20678
20679 ac_ext=cpp
20680 ac_cpp='$CXXCPP $CPPFLAGS'
20681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20684
20685 ;; #(
20686 *) :
20687 ;;
20688 esac
20689
20690 if test "x$CY_JAVA" = x1; then
20691 CY_JAVA_TRUE=
20692 CY_JAVA_FALSE='#'
20693 else
20694 CY_JAVA_TRUE='#'
20695 CY_JAVA_FALSE=
20696 fi
20697
20698 if test "x$CY_OBJECTIVEC" = x1; then
20699 CY_OBJECTIVEC_TRUE=
20700 CY_OBJECTIVEC_FALSE='#'
20701 else
20702 CY_OBJECTIVEC_TRUE='#'
20703 CY_OBJECTIVEC_FALSE=
20704 fi
20705
20706
20707
20708 cy_save=$LIBS
20709 LIBS=
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20712 $as_echo_n "checking for a readline compatible library... " >&6; }
20713 if ${ax_cv_lib_readline+:} false; then :
20714 $as_echo_n "(cached) " >&6
20715 else
20716
20717 ORIG_LIBS="$LIBS"
20718 for readline_lib in readline edit editline; do
20719 for termcap_lib in "" termcap curses ncurses; do
20720 if test -z "$termcap_lib"; then
20721 TRY_LIB="-l$readline_lib"
20722 else
20723 TRY_LIB="-l$readline_lib -l$termcap_lib"
20724 fi
20725 LIBS="$ORIG_LIBS $TRY_LIB"
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20727 /* end confdefs.h. */
20728
20729 /* Override any GCC internal prototype to avoid an error.
20730 Use char because int might match the return type of a GCC
20731 builtin and then its argument prototype would still apply. */
20732 #ifdef __cplusplus
20733 extern "C"
20734 #endif
20735 char readline ();
20736 int
20737 main ()
20738 {
20739 return readline ();
20740 ;
20741 return 0;
20742 }
20743 _ACEOF
20744 if ac_fn_cxx_try_link "$LINENO"; then :
20745 ax_cv_lib_readline="$TRY_LIB"
20746 fi
20747 rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20749 if test -n "$ax_cv_lib_readline"; then
20750 break
20751 fi
20752 done
20753 if test -n "$ax_cv_lib_readline"; then
20754 break
20755 fi
20756 done
20757 if test -z "$ax_cv_lib_readline"; then
20758 ax_cv_lib_readline="no"
20759 fi
20760 LIBS="$ORIG_LIBS"
20761
20762 fi
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20764 $as_echo "$ax_cv_lib_readline" >&6; }
20765
20766 if test "$ax_cv_lib_readline" != "no"; then
20767 LIBS="$LIBS $ax_cv_lib_readline"
20768
20769 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20770
20771 for ac_header in readline.h readline/readline.h
20772 do :
20773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20774 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20775 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20776 cat >>confdefs.h <<_ACEOF
20777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20778 _ACEOF
20779
20780 fi
20781
20782 done
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20785 $as_echo_n "checking whether readline supports history... " >&6; }
20786 if ${ax_cv_lib_readline_history+:} false; then :
20787 $as_echo_n "(cached) " >&6
20788 else
20789
20790 ax_cv_lib_readline_history="no"
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20793
20794 /* Override any GCC internal prototype to avoid an error.
20795 Use char because int might match the return type of a GCC
20796 builtin and then its argument prototype would still apply. */
20797 #ifdef __cplusplus
20798 extern "C"
20799 #endif
20800 char add_history ();
20801 int
20802 main ()
20803 {
20804 return add_history ();
20805 ;
20806 return 0;
20807 }
20808 _ACEOF
20809 if ac_fn_cxx_try_link "$LINENO"; then :
20810 ax_cv_lib_readline_history="yes"
20811 fi
20812 rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20814
20815 fi
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20817 $as_echo "$ax_cv_lib_readline_history" >&6; }
20818 if test "$ax_cv_lib_readline_history" = "yes"; then
20819
20820 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
20821
20822 for ac_header in history.h readline/history.h
20823 do :
20824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20825 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20827 cat >>confdefs.h <<_ACEOF
20828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20829 _ACEOF
20830
20831 fi
20832
20833 done
20834
20835 fi
20836 fi
20837
20838 LTLIBREADLINE=$LIBS
20839 LIBS=$cy_save
20840
20841
20842 case $ax_cv_lib_readline in #(
20843 no) :
20844 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20845 *) :
20846 ;;
20847 esac
20848
20849
20850 cy_save=$LIBS
20851 LIBS=
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20853 $as_echo_n "checking for library containing cur_term... " >&6; }
20854 if ${ac_cv_search_cur_term+:} false; then :
20855 $as_echo_n "(cached) " >&6
20856 else
20857 ac_func_search_save_LIBS=$LIBS
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860
20861 /* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
20864 #ifdef __cplusplus
20865 extern "C"
20866 #endif
20867 char cur_term ();
20868 int
20869 main ()
20870 {
20871 return cur_term ();
20872 ;
20873 return 0;
20874 }
20875 _ACEOF
20876 for ac_lib in '' termcap ncurses; do
20877 if test -z "$ac_lib"; then
20878 ac_res="none required"
20879 else
20880 ac_res=-l$ac_lib
20881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20882 fi
20883 if ac_fn_cxx_try_link "$LINENO"; then :
20884 ac_cv_search_cur_term=$ac_res
20885 fi
20886 rm -f core conftest.err conftest.$ac_objext \
20887 conftest$ac_exeext
20888 if ${ac_cv_search_cur_term+:} false; then :
20889 break
20890 fi
20891 done
20892 if ${ac_cv_search_cur_term+:} false; then :
20893
20894 else
20895 ac_cv_search_cur_term=no
20896 fi
20897 rm conftest.$ac_ext
20898 LIBS=$ac_func_search_save_LIBS
20899 fi
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20901 $as_echo "$ac_cv_search_cur_term" >&6; }
20902 ac_res=$ac_cv_search_cur_term
20903 if test "$ac_res" != no; then :
20904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20905
20906 fi
20907
20908 LTLIBTERMCAP=$LIBS
20909 LIBS=$cy_save
20910
20911
20912
20913
20914
20915
20916 SO=$acl_shlibext
20917
20918
20919 if test "x$CY_EXECUTE" = x1; then :
20920
20921 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20922 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
20923
20924 if test -n "$ac_tool_prefix"; then
20925 for ac_prog in lipo
20926 do
20927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20930 $as_echo_n "checking for $ac_word... " >&6; }
20931 if ${ac_cv_prog__LIPO+:} false; then :
20932 $as_echo_n "(cached) " >&6
20933 else
20934 if test -n "$_LIPO"; then
20935 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
20936 else
20937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938 for as_dir in $PATH
20939 do
20940 IFS=$as_save_IFS
20941 test -z "$as_dir" && as_dir=.
20942 for ac_exec_ext in '' $ac_executable_extensions; do
20943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20944 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
20945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20946 break 2
20947 fi
20948 done
20949 done
20950 IFS=$as_save_IFS
20951
20952 fi
20953 fi
20954 _LIPO=$ac_cv_prog__LIPO
20955 if test -n "$_LIPO"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20957 $as_echo "$_LIPO" >&6; }
20958 else
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20961 fi
20962
20963
20964 test -n "$_LIPO" && break
20965 done
20966 fi
20967 if test -z "$_LIPO"; then
20968 ac_ct__LIPO=$_LIPO
20969 for ac_prog in lipo
20970 do
20971 # Extract the first word of "$ac_prog", so it can be a program name with args.
20972 set dummy $ac_prog; ac_word=$2
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20974 $as_echo_n "checking for $ac_word... " >&6; }
20975 if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 if test -n "$ac_ct__LIPO"; then
20979 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
20980 else
20981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982 for as_dir in $PATH
20983 do
20984 IFS=$as_save_IFS
20985 test -z "$as_dir" && as_dir=.
20986 for ac_exec_ext in '' $ac_executable_extensions; do
20987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20988 ac_cv_prog_ac_ct__LIPO="$ac_prog"
20989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20990 break 2
20991 fi
20992 done
20993 done
20994 IFS=$as_save_IFS
20995
20996 fi
20997 fi
20998 ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20999 if test -n "$ac_ct__LIPO"; then
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21001 $as_echo "$ac_ct__LIPO" >&6; }
21002 else
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004 $as_echo "no" >&6; }
21005 fi
21006
21007
21008 test -n "$ac_ct__LIPO" && break
21009 done
21010
21011 if test "x$ac_ct__LIPO" = x; then
21012 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
21013 else
21014 case $cross_compiling:$ac_tool_warned in
21015 yes:)
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21018 ac_tool_warned=yes ;;
21019 esac
21020 _LIPO=$ac_ct__LIPO
21021 fi
21022 fi
21023
21024 if test -n "$ac_tool_prefix"; then
21025 for ac_prog in nm
21026 do
21027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21030 $as_echo_n "checking for $ac_word... " >&6; }
21031 if ${ac_cv_prog__NM+:} false; then :
21032 $as_echo_n "(cached) " >&6
21033 else
21034 if test -n "$_NM"; then
21035 ac_cv_prog__NM="$_NM" # Let the user override the test.
21036 else
21037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038 for as_dir in $PATH
21039 do
21040 IFS=$as_save_IFS
21041 test -z "$as_dir" && as_dir=.
21042 for ac_exec_ext in '' $ac_executable_extensions; do
21043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21044 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
21045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21046 break 2
21047 fi
21048 done
21049 done
21050 IFS=$as_save_IFS
21051
21052 fi
21053 fi
21054 _NM=$ac_cv_prog__NM
21055 if test -n "$_NM"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21057 $as_echo "$_NM" >&6; }
21058 else
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21061 fi
21062
21063
21064 test -n "$_NM" && break
21065 done
21066 fi
21067 if test -z "$_NM"; then
21068 ac_ct__NM=$_NM
21069 for ac_prog in nm
21070 do
21071 # Extract the first word of "$ac_prog", so it can be a program name with args.
21072 set dummy $ac_prog; ac_word=$2
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21074 $as_echo_n "checking for $ac_word... " >&6; }
21075 if ${ac_cv_prog_ac_ct__NM+:} false; then :
21076 $as_echo_n "(cached) " >&6
21077 else
21078 if test -n "$ac_ct__NM"; then
21079 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
21080 else
21081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21082 for as_dir in $PATH
21083 do
21084 IFS=$as_save_IFS
21085 test -z "$as_dir" && as_dir=.
21086 for ac_exec_ext in '' $ac_executable_extensions; do
21087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21088 ac_cv_prog_ac_ct__NM="$ac_prog"
21089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21090 break 2
21091 fi
21092 done
21093 done
21094 IFS=$as_save_IFS
21095
21096 fi
21097 fi
21098 ac_ct__NM=$ac_cv_prog_ac_ct__NM
21099 if test -n "$ac_ct__NM"; then
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21101 $as_echo "$ac_ct__NM" >&6; }
21102 else
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104 $as_echo "no" >&6; }
21105 fi
21106
21107
21108 test -n "$ac_ct__NM" && break
21109 done
21110
21111 if test "x$ac_ct__NM" = x; then
21112 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
21113 else
21114 case $cross_compiling:$ac_tool_warned in
21115 yes:)
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21118 ac_tool_warned=yes ;;
21119 esac
21120 _NM=$ac_ct__NM
21121 fi
21122 fi
21123
21124 if test -n "$ac_tool_prefix"; then
21125 for ac_prog in otool
21126 do
21127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21130 $as_echo_n "checking for $ac_word... " >&6; }
21131 if ${ac_cv_prog__OTOOL+:} false; then :
21132 $as_echo_n "(cached) " >&6
21133 else
21134 if test -n "$_OTOOL"; then
21135 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
21136 else
21137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21138 for as_dir in $PATH
21139 do
21140 IFS=$as_save_IFS
21141 test -z "$as_dir" && as_dir=.
21142 for ac_exec_ext in '' $ac_executable_extensions; do
21143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21144 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
21145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21146 break 2
21147 fi
21148 done
21149 done
21150 IFS=$as_save_IFS
21151
21152 fi
21153 fi
21154 _OTOOL=$ac_cv_prog__OTOOL
21155 if test -n "$_OTOOL"; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21157 $as_echo "$_OTOOL" >&6; }
21158 else
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 $as_echo "no" >&6; }
21161 fi
21162
21163
21164 test -n "$_OTOOL" && break
21165 done
21166 fi
21167 if test -z "$_OTOOL"; then
21168 ac_ct__OTOOL=$_OTOOL
21169 for ac_prog in otool
21170 do
21171 # Extract the first word of "$ac_prog", so it can be a program name with args.
21172 set dummy $ac_prog; ac_word=$2
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174 $as_echo_n "checking for $ac_word... " >&6; }
21175 if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
21176 $as_echo_n "(cached) " >&6
21177 else
21178 if test -n "$ac_ct__OTOOL"; then
21179 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
21180 else
21181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182 for as_dir in $PATH
21183 do
21184 IFS=$as_save_IFS
21185 test -z "$as_dir" && as_dir=.
21186 for ac_exec_ext in '' $ac_executable_extensions; do
21187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21188 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
21189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21190 break 2
21191 fi
21192 done
21193 done
21194 IFS=$as_save_IFS
21195
21196 fi
21197 fi
21198 ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21199 if test -n "$ac_ct__OTOOL"; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21201 $as_echo "$ac_ct__OTOOL" >&6; }
21202 else
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204 $as_echo "no" >&6; }
21205 fi
21206
21207
21208 test -n "$ac_ct__OTOOL" && break
21209 done
21210
21211 if test "x$ac_ct__OTOOL" = x; then
21212 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
21213 else
21214 case $cross_compiling:$ac_tool_warned in
21215 yes:)
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21218 ac_tool_warned=yes ;;
21219 esac
21220 _OTOOL=$ac_ct__OTOOL
21221 fi
21222 fi
21223
21224 CY_ATTACH_GROUP=procmod
21225
21226 CY_MACH=1
21227
21228 fi
21229
21230
21231 fi
21232 if test "x$CY_MACH" = x1; then
21233 CY_MACH_TRUE=
21234 CY_MACH_FALSE='#'
21235 else
21236 CY_MACH_TRUE='#'
21237 CY_MACH_FALSE=
21238 fi
21239
21240
21241 ac_config_files="$ac_config_files Makefile"
21242
21243 cat >confcache <<\_ACEOF
21244 # This file is a shell script that caches the results of configure
21245 # tests run on this system so they can be shared between configure
21246 # scripts and configure runs, see configure's option --config-cache.
21247 # It is not useful on other systems. If it contains results you don't
21248 # want to keep, you may remove or edit it.
21249 #
21250 # config.status only pays attention to the cache file if you give it
21251 # the --recheck option to rerun configure.
21252 #
21253 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21254 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21255 # following values.
21256
21257 _ACEOF
21258
21259 # The following way of writing the cache mishandles newlines in values,
21260 # but we know of no workaround that is simple, portable, and efficient.
21261 # So, we kill variables containing newlines.
21262 # Ultrix sh set writes to stderr and can't be redirected directly,
21263 # and sets the high bit in the cache file unless we assign to the vars.
21264 (
21265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21266 eval ac_val=\$$ac_var
21267 case $ac_val in #(
21268 *${as_nl}*)
21269 case $ac_var in #(
21270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21271 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21272 esac
21273 case $ac_var in #(
21274 _ | IFS | as_nl) ;; #(
21275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21276 *) { eval $ac_var=; unset $ac_var;} ;;
21277 esac ;;
21278 esac
21279 done
21280
21281 (set) 2>&1 |
21282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21283 *${as_nl}ac_space=\ *)
21284 # `set' does not quote correctly, so add quotes: double-quote
21285 # substitution turns \\\\ into \\, and sed turns \\ into \.
21286 sed -n \
21287 "s/'/'\\\\''/g;
21288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21289 ;; #(
21290 *)
21291 # `set' quotes correctly as required by POSIX, so do not add quotes.
21292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21293 ;;
21294 esac |
21295 sort
21296 ) |
21297 sed '
21298 /^ac_cv_env_/b end
21299 t clear
21300 :clear
21301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21302 t end
21303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21304 :end' >>confcache
21305 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21306 if test -w "$cache_file"; then
21307 if test "x$cache_file" != "x/dev/null"; then
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21309 $as_echo "$as_me: updating cache $cache_file" >&6;}
21310 if test ! -f "$cache_file" || test -h "$cache_file"; then
21311 cat confcache >"$cache_file"
21312 else
21313 case $cache_file in #(
21314 */* | ?:*)
21315 mv -f confcache "$cache_file"$$ &&
21316 mv -f "$cache_file"$$ "$cache_file" ;; #(
21317 *)
21318 mv -f confcache "$cache_file" ;;
21319 esac
21320 fi
21321 fi
21322 else
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21324 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21325 fi
21326 fi
21327 rm -f confcache
21328
21329 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21330 # Let make expand exec_prefix.
21331 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21332
21333 DEFS=-DHAVE_CONFIG_H
21334
21335 ac_libobjs=
21336 ac_ltlibobjs=
21337 U=
21338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21339 # 1. Remove the extension, and $U if already installed.
21340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21341 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21343 # will be set to the directory where LIBOBJS objects are built.
21344 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21345 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21346 done
21347 LIBOBJS=$ac_libobjs
21348
21349 LTLIBOBJS=$ac_ltlibobjs
21350
21351
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21353 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21354 if test -n "$am_sleep_pid"; then
21355 # Hide warnings about reused PIDs.
21356 wait $am_sleep_pid 2>/dev/null
21357 fi
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21359 $as_echo "done" >&6; }
21360 if test -n "$EXEEXT"; then
21361 am__EXEEXT_TRUE=
21362 am__EXEEXT_FALSE='#'
21363 else
21364 am__EXEEXT_TRUE='#'
21365 am__EXEEXT_FALSE=
21366 fi
21367
21368 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21369 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21371 fi
21372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21373 as_fn_error $? "conditional \"AMDEP\" was never defined.
21374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21375 fi
21376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21379 fi
21380 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21381 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21383 fi
21384 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21385 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21387 fi
21388 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21389 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
21390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21391 fi
21392 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21393 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21395 fi
21396 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21397 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21399 fi
21400 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21401 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21403 fi
21404 if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21405 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21407 fi
21408
21409 : "${CONFIG_STATUS=./config.status}"
21410 ac_write_fail=0
21411 ac_clean_files_save=$ac_clean_files
21412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21414 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21415 as_write_fail=0
21416 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21417 #! $SHELL
21418 # Generated by $as_me.
21419 # Run this file to recreate the current configuration.
21420 # Compiler output produced by configure, useful for debugging
21421 # configure, is in config.log if it exists.
21422
21423 debug=false
21424 ac_cs_recheck=false
21425 ac_cs_silent=false
21426
21427 SHELL=\${CONFIG_SHELL-$SHELL}
21428 export SHELL
21429 _ASEOF
21430 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21431 ## -------------------- ##
21432 ## M4sh Initialization. ##
21433 ## -------------------- ##
21434
21435 # Be more Bourne compatible
21436 DUALCASE=1; export DUALCASE # for MKS sh
21437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21438 emulate sh
21439 NULLCMD=:
21440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21441 # is contrary to our usage. Disable this feature.
21442 alias -g '${1+"$@"}'='"$@"'
21443 setopt NO_GLOB_SUBST
21444 else
21445 case `(set -o) 2>/dev/null` in #(
21446 *posix*) :
21447 set -o posix ;; #(
21448 *) :
21449 ;;
21450 esac
21451 fi
21452
21453
21454 as_nl='
21455 '
21456 export as_nl
21457 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21458 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21461 # Prefer a ksh shell builtin over an external printf program on Solaris,
21462 # but without wasting forks for bash or zsh.
21463 if test -z "$BASH_VERSION$ZSH_VERSION" \
21464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21465 as_echo='print -r --'
21466 as_echo_n='print -rn --'
21467 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21468 as_echo='printf %s\n'
21469 as_echo_n='printf %s'
21470 else
21471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21473 as_echo_n='/usr/ucb/echo -n'
21474 else
21475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21476 as_echo_n_body='eval
21477 arg=$1;
21478 case $arg in #(
21479 *"$as_nl"*)
21480 expr "X$arg" : "X\\(.*\\)$as_nl";
21481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21482 esac;
21483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21484 '
21485 export as_echo_n_body
21486 as_echo_n='sh -c $as_echo_n_body as_echo'
21487 fi
21488 export as_echo_body
21489 as_echo='sh -c $as_echo_body as_echo'
21490 fi
21491
21492 # The user is always right.
21493 if test "${PATH_SEPARATOR+set}" != set; then
21494 PATH_SEPARATOR=:
21495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21497 PATH_SEPARATOR=';'
21498 }
21499 fi
21500
21501
21502 # IFS
21503 # We need space, tab and new line, in precisely that order. Quoting is
21504 # there to prevent editors from complaining about space-tab.
21505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21506 # splitting by setting IFS to empty value.)
21507 IFS=" "" $as_nl"
21508
21509 # Find who we are. Look in the path if we contain no directory separator.
21510 as_myself=
21511 case $0 in #((
21512 *[\\/]* ) as_myself=$0 ;;
21513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21514 for as_dir in $PATH
21515 do
21516 IFS=$as_save_IFS
21517 test -z "$as_dir" && as_dir=.
21518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21519 done
21520 IFS=$as_save_IFS
21521
21522 ;;
21523 esac
21524 # We did not find ourselves, most probably we were run as `sh COMMAND'
21525 # in which case we are not to be found in the path.
21526 if test "x$as_myself" = x; then
21527 as_myself=$0
21528 fi
21529 if test ! -f "$as_myself"; then
21530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21531 exit 1
21532 fi
21533
21534 # Unset variables that we do not need and which cause bugs (e.g. in
21535 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21536 # suppresses any "Segmentation fault" message there. '((' could
21537 # trigger a bug in pdksh 5.2.14.
21538 for as_var in BASH_ENV ENV MAIL MAILPATH
21539 do eval test x\${$as_var+set} = xset \
21540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21541 done
21542 PS1='$ '
21543 PS2='> '
21544 PS4='+ '
21545
21546 # NLS nuisances.
21547 LC_ALL=C
21548 export LC_ALL
21549 LANGUAGE=C
21550 export LANGUAGE
21551
21552 # CDPATH.
21553 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21554
21555
21556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21557 # ----------------------------------------
21558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21560 # script with STATUS, using 1 if that was 0.
21561 as_fn_error ()
21562 {
21563 as_status=$1; test $as_status -eq 0 && as_status=1
21564 if test "$4"; then
21565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21567 fi
21568 $as_echo "$as_me: error: $2" >&2
21569 as_fn_exit $as_status
21570 } # as_fn_error
21571
21572
21573 # as_fn_set_status STATUS
21574 # -----------------------
21575 # Set $? to STATUS, without forking.
21576 as_fn_set_status ()
21577 {
21578 return $1
21579 } # as_fn_set_status
21580
21581 # as_fn_exit STATUS
21582 # -----------------
21583 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21584 as_fn_exit ()
21585 {
21586 set +e
21587 as_fn_set_status $1
21588 exit $1
21589 } # as_fn_exit
21590
21591 # as_fn_unset VAR
21592 # ---------------
21593 # Portably unset VAR.
21594 as_fn_unset ()
21595 {
21596 { eval $1=; unset $1;}
21597 }
21598 as_unset=as_fn_unset
21599 # as_fn_append VAR VALUE
21600 # ----------------------
21601 # Append the text in VALUE to the end of the definition contained in VAR. Take
21602 # advantage of any shell optimizations that allow amortized linear growth over
21603 # repeated appends, instead of the typical quadratic growth present in naive
21604 # implementations.
21605 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21606 eval 'as_fn_append ()
21607 {
21608 eval $1+=\$2
21609 }'
21610 else
21611 as_fn_append ()
21612 {
21613 eval $1=\$$1\$2
21614 }
21615 fi # as_fn_append
21616
21617 # as_fn_arith ARG...
21618 # ------------------
21619 # Perform arithmetic evaluation on the ARGs, and store the result in the
21620 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21621 # must be portable across $(()) and expr.
21622 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21623 eval 'as_fn_arith ()
21624 {
21625 as_val=$(( $* ))
21626 }'
21627 else
21628 as_fn_arith ()
21629 {
21630 as_val=`expr "$@" || test $? -eq 1`
21631 }
21632 fi # as_fn_arith
21633
21634
21635 if expr a : '\(a\)' >/dev/null 2>&1 &&
21636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21637 as_expr=expr
21638 else
21639 as_expr=false
21640 fi
21641
21642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21643 as_basename=basename
21644 else
21645 as_basename=false
21646 fi
21647
21648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21649 as_dirname=dirname
21650 else
21651 as_dirname=false
21652 fi
21653
21654 as_me=`$as_basename -- "$0" ||
21655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21656 X"$0" : 'X\(//\)$' \| \
21657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21658 $as_echo X/"$0" |
21659 sed '/^.*\/\([^/][^/]*\)\/*$/{
21660 s//\1/
21661 q
21662 }
21663 /^X\/\(\/\/\)$/{
21664 s//\1/
21665 q
21666 }
21667 /^X\/\(\/\).*/{
21668 s//\1/
21669 q
21670 }
21671 s/.*/./; q'`
21672
21673 # Avoid depending upon Character Ranges.
21674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21677 as_cr_digits='0123456789'
21678 as_cr_alnum=$as_cr_Letters$as_cr_digits
21679
21680 ECHO_C= ECHO_N= ECHO_T=
21681 case `echo -n x` in #(((((
21682 -n*)
21683 case `echo 'xy\c'` in
21684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21685 xy) ECHO_C='\c';;
21686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21687 ECHO_T=' ';;
21688 esac;;
21689 *)
21690 ECHO_N='-n';;
21691 esac
21692
21693 rm -f conf$$ conf$$.exe conf$$.file
21694 if test -d conf$$.dir; then
21695 rm -f conf$$.dir/conf$$.file
21696 else
21697 rm -f conf$$.dir
21698 mkdir conf$$.dir 2>/dev/null
21699 fi
21700 if (echo >conf$$.file) 2>/dev/null; then
21701 if ln -s conf$$.file conf$$ 2>/dev/null; then
21702 as_ln_s='ln -s'
21703 # ... but there are two gotchas:
21704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21706 # In both cases, we have to default to `cp -pR'.
21707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21708 as_ln_s='cp -pR'
21709 elif ln conf$$.file conf$$ 2>/dev/null; then
21710 as_ln_s=ln
21711 else
21712 as_ln_s='cp -pR'
21713 fi
21714 else
21715 as_ln_s='cp -pR'
21716 fi
21717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21718 rmdir conf$$.dir 2>/dev/null
21719
21720
21721 # as_fn_mkdir_p
21722 # -------------
21723 # Create "$as_dir" as a directory, including parents if necessary.
21724 as_fn_mkdir_p ()
21725 {
21726
21727 case $as_dir in #(
21728 -*) as_dir=./$as_dir;;
21729 esac
21730 test -d "$as_dir" || eval $as_mkdir_p || {
21731 as_dirs=
21732 while :; do
21733 case $as_dir in #(
21734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21735 *) as_qdir=$as_dir;;
21736 esac
21737 as_dirs="'$as_qdir' $as_dirs"
21738 as_dir=`$as_dirname -- "$as_dir" ||
21739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740 X"$as_dir" : 'X\(//\)[^/]' \| \
21741 X"$as_dir" : 'X\(//\)$' \| \
21742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21743 $as_echo X"$as_dir" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21745 s//\1/
21746 q
21747 }
21748 /^X\(\/\/\)[^/].*/{
21749 s//\1/
21750 q
21751 }
21752 /^X\(\/\/\)$/{
21753 s//\1/
21754 q
21755 }
21756 /^X\(\/\).*/{
21757 s//\1/
21758 q
21759 }
21760 s/.*/./; q'`
21761 test -d "$as_dir" && break
21762 done
21763 test -z "$as_dirs" || eval "mkdir $as_dirs"
21764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21765
21766
21767 } # as_fn_mkdir_p
21768 if mkdir -p . 2>/dev/null; then
21769 as_mkdir_p='mkdir -p "$as_dir"'
21770 else
21771 test -d ./-p && rmdir ./-p
21772 as_mkdir_p=false
21773 fi
21774
21775
21776 # as_fn_executable_p FILE
21777 # -----------------------
21778 # Test if FILE is an executable regular file.
21779 as_fn_executable_p ()
21780 {
21781 test -f "$1" && test -x "$1"
21782 } # as_fn_executable_p
21783 as_test_x='test -x'
21784 as_executable_p=as_fn_executable_p
21785
21786 # Sed expression to map a string onto a valid CPP name.
21787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21788
21789 # Sed expression to map a string onto a valid variable name.
21790 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21791
21792
21793 exec 6>&1
21794 ## ----------------------------------- ##
21795 ## Main body of $CONFIG_STATUS script. ##
21796 ## ----------------------------------- ##
21797 _ASEOF
21798 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21799
21800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21801 # Save the log message, to keep $0 and so on meaningful, and to
21802 # report actual input values of CONFIG_FILES etc. instead of their
21803 # values after options handling.
21804 ac_log="
21805 This file was extended by Cycript $as_me 0.9, which was
21806 generated by GNU Autoconf 2.69. Invocation command line was
21807
21808 CONFIG_FILES = $CONFIG_FILES
21809 CONFIG_HEADERS = $CONFIG_HEADERS
21810 CONFIG_LINKS = $CONFIG_LINKS
21811 CONFIG_COMMANDS = $CONFIG_COMMANDS
21812 $ $0 $@
21813
21814 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21815 "
21816
21817 _ACEOF
21818
21819 case $ac_config_files in *"
21820 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21821 esac
21822
21823 case $ac_config_headers in *"
21824 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21825 esac
21826
21827
21828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21829 # Files that config.status was made for.
21830 config_files="$ac_config_files"
21831 config_headers="$ac_config_headers"
21832 config_commands="$ac_config_commands"
21833
21834 _ACEOF
21835
21836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21837 ac_cs_usage="\
21838 \`$as_me' instantiates files and other configuration actions
21839 from templates according to the current configuration. Unless the files
21840 and actions are specified as TAGs, all are instantiated by default.
21841
21842 Usage: $0 [OPTION]... [TAG]...
21843
21844 -h, --help print this help, then exit
21845 -V, --version print version number and configuration settings, then exit
21846 --config print configuration, then exit
21847 -q, --quiet, --silent
21848 do not print progress messages
21849 -d, --debug don't remove temporary files
21850 --recheck update $as_me by reconfiguring in the same conditions
21851 --file=FILE[:TEMPLATE]
21852 instantiate the configuration file FILE
21853 --header=FILE[:TEMPLATE]
21854 instantiate the configuration header FILE
21855
21856 Configuration files:
21857 $config_files
21858
21859 Configuration headers:
21860 $config_headers
21861
21862 Configuration commands:
21863 $config_commands
21864
21865 Report bugs to <saurik@saurik.com>.
21866 Cycript home page: <http://www.cycript.org/>."
21867
21868 _ACEOF
21869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21871 ac_cs_version="\\
21872 Cycript config.status 0.9
21873 configured by $0, generated by GNU Autoconf 2.69,
21874 with options \\"\$ac_cs_config\\"
21875
21876 Copyright (C) 2012 Free Software Foundation, Inc.
21877 This config.status script is free software; the Free Software Foundation
21878 gives unlimited permission to copy, distribute and modify it."
21879
21880 ac_pwd='$ac_pwd'
21881 srcdir='$srcdir'
21882 INSTALL='$INSTALL'
21883 MKDIR_P='$MKDIR_P'
21884 AWK='$AWK'
21885 test -n "\$AWK" || AWK=awk
21886 _ACEOF
21887
21888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21889 # The default lists apply if the user does not specify any file.
21890 ac_need_defaults=:
21891 while test $# != 0
21892 do
21893 case $1 in
21894 --*=?*)
21895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21897 ac_shift=:
21898 ;;
21899 --*=)
21900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21901 ac_optarg=
21902 ac_shift=:
21903 ;;
21904 *)
21905 ac_option=$1
21906 ac_optarg=$2
21907 ac_shift=shift
21908 ;;
21909 esac
21910
21911 case $ac_option in
21912 # Handling of the options.
21913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21914 ac_cs_recheck=: ;;
21915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21916 $as_echo "$ac_cs_version"; exit ;;
21917 --config | --confi | --conf | --con | --co | --c )
21918 $as_echo "$ac_cs_config"; exit ;;
21919 --debug | --debu | --deb | --de | --d | -d )
21920 debug=: ;;
21921 --file | --fil | --fi | --f )
21922 $ac_shift
21923 case $ac_optarg in
21924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21925 '') as_fn_error $? "missing file argument" ;;
21926 esac
21927 as_fn_append CONFIG_FILES " '$ac_optarg'"
21928 ac_need_defaults=false;;
21929 --header | --heade | --head | --hea )
21930 $ac_shift
21931 case $ac_optarg in
21932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21933 esac
21934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21935 ac_need_defaults=false;;
21936 --he | --h)
21937 # Conflict between --help and --header
21938 as_fn_error $? "ambiguous option: \`$1'
21939 Try \`$0 --help' for more information.";;
21940 --help | --hel | -h )
21941 $as_echo "$ac_cs_usage"; exit ;;
21942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21944 ac_cs_silent=: ;;
21945
21946 # This is an error.
21947 -*) as_fn_error $? "unrecognized option: \`$1'
21948 Try \`$0 --help' for more information." ;;
21949
21950 *) as_fn_append ac_config_targets " $1"
21951 ac_need_defaults=false ;;
21952
21953 esac
21954 shift
21955 done
21956
21957 ac_configure_extra_args=
21958
21959 if $ac_cs_silent; then
21960 exec 6>/dev/null
21961 ac_configure_extra_args="$ac_configure_extra_args --silent"
21962 fi
21963
21964 _ACEOF
21965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21966 if \$ac_cs_recheck; then
21967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21968 shift
21969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21970 CONFIG_SHELL='$SHELL'
21971 export CONFIG_SHELL
21972 exec "\$@"
21973 fi
21974
21975 _ACEOF
21976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21977 exec 5>>config.log
21978 {
21979 echo
21980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21981 ## Running $as_me. ##
21982 _ASBOX
21983 $as_echo "$ac_log"
21984 } >&5
21985
21986 _ACEOF
21987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21988 #
21989 # INIT-COMMANDS
21990 #
21991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21992
21993
21994 # The HP-UX ksh and POSIX shell print the target directory to stdout
21995 # if CDPATH is set.
21996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21997
21998 sed_quote_subst='$sed_quote_subst'
21999 double_quote_subst='$double_quote_subst'
22000 delay_variable_subst='$delay_variable_subst'
22001 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22002 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22003 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22004 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22005 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22006 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22007 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22008 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22009 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22010 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22011 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22012 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22013 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22014 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22015 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22016 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22023 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22024 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22025 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22026 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22027 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22028 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22029 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22030 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22031 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22032 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22038 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22039 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22040 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22041 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22042 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22043 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22044 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22045 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22046 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22047 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22048 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22049 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22050 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22051 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22052 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22053 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22054 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22055 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22057 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22059 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"`'
22060 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22061 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22062 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22063 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22128 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22129 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22136 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22137 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22138 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22139 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22140 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22141 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22142 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22143 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22144 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22145 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22146 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22147 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22148 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22149 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22150 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22151 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22152 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22153 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22154 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22155 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22156 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22157 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22158 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22159 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22160 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22161 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22162 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22163 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22164 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22165 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22166 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22167 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22168 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22169 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22170 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22171 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22172 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22173 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22174 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22175 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22176 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22177 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22178 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22179 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22180 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22181 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22182 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22183 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22184 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22185 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22186 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22187 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22188 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22189 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22190
22191 LTCC='$LTCC'
22192 LTCFLAGS='$LTCFLAGS'
22193 compiler='$compiler_DEFAULT'
22194
22195 # A function that is used when there is no print builtin or printf.
22196 func_fallback_echo ()
22197 {
22198 eval 'cat <<_LTECHO_EOF
22199 \$1
22200 _LTECHO_EOF'
22201 }
22202
22203 # Quote evaled strings.
22204 for var in SHELL \
22205 ECHO \
22206 PATH_SEPARATOR \
22207 SED \
22208 GREP \
22209 EGREP \
22210 FGREP \
22211 LD \
22212 NM \
22213 LN_S \
22214 lt_SP2NL \
22215 lt_NL2SP \
22216 reload_flag \
22217 OBJDUMP \
22218 deplibs_check_method \
22219 file_magic_cmd \
22220 file_magic_glob \
22221 want_nocaseglob \
22222 DLLTOOL \
22223 sharedlib_from_linklib_cmd \
22224 AR \
22225 AR_FLAGS \
22226 archiver_list_spec \
22227 STRIP \
22228 RANLIB \
22229 CC \
22230 CFLAGS \
22231 compiler \
22232 lt_cv_sys_global_symbol_pipe \
22233 lt_cv_sys_global_symbol_to_cdecl \
22234 lt_cv_sys_global_symbol_to_import \
22235 lt_cv_sys_global_symbol_to_c_name_address \
22236 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22237 lt_cv_nm_interface \
22238 nm_file_list_spec \
22239 lt_cv_truncate_bin \
22240 lt_prog_compiler_no_builtin_flag \
22241 lt_prog_compiler_pic \
22242 lt_prog_compiler_wl \
22243 lt_prog_compiler_static \
22244 lt_cv_prog_compiler_c_o \
22245 need_locks \
22246 MANIFEST_TOOL \
22247 DSYMUTIL \
22248 NMEDIT \
22249 LIPO \
22250 OTOOL \
22251 OTOOL64 \
22252 shrext_cmds \
22253 export_dynamic_flag_spec \
22254 whole_archive_flag_spec \
22255 compiler_needs_object \
22256 with_gnu_ld \
22257 allow_undefined_flag \
22258 no_undefined_flag \
22259 hardcode_libdir_flag_spec \
22260 hardcode_libdir_separator \
22261 exclude_expsyms \
22262 include_expsyms \
22263 file_list_spec \
22264 variables_saved_for_relink \
22265 libname_spec \
22266 library_names_spec \
22267 soname_spec \
22268 install_override_mode \
22269 finish_eval \
22270 old_striplib \
22271 striplib \
22272 compiler_lib_search_dirs \
22273 predep_objects \
22274 postdep_objects \
22275 predeps \
22276 postdeps \
22277 compiler_lib_search_path \
22278 LD_CXX \
22279 reload_flag_CXX \
22280 compiler_CXX \
22281 lt_prog_compiler_no_builtin_flag_CXX \
22282 lt_prog_compiler_pic_CXX \
22283 lt_prog_compiler_wl_CXX \
22284 lt_prog_compiler_static_CXX \
22285 lt_cv_prog_compiler_c_o_CXX \
22286 export_dynamic_flag_spec_CXX \
22287 whole_archive_flag_spec_CXX \
22288 compiler_needs_object_CXX \
22289 with_gnu_ld_CXX \
22290 allow_undefined_flag_CXX \
22291 no_undefined_flag_CXX \
22292 hardcode_libdir_flag_spec_CXX \
22293 hardcode_libdir_separator_CXX \
22294 exclude_expsyms_CXX \
22295 include_expsyms_CXX \
22296 file_list_spec_CXX \
22297 compiler_lib_search_dirs_CXX \
22298 predep_objects_CXX \
22299 postdep_objects_CXX \
22300 predeps_CXX \
22301 postdeps_CXX \
22302 compiler_lib_search_path_CXX; do
22303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22304 *[\\\\\\\`\\"\\\$]*)
22305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22306 ;;
22307 *)
22308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22309 ;;
22310 esac
22311 done
22312
22313 # Double-quote double-evaled strings.
22314 for var in reload_cmds \
22315 old_postinstall_cmds \
22316 old_postuninstall_cmds \
22317 old_archive_cmds \
22318 extract_expsyms_cmds \
22319 old_archive_from_new_cmds \
22320 old_archive_from_expsyms_cmds \
22321 archive_cmds \
22322 archive_expsym_cmds \
22323 module_cmds \
22324 module_expsym_cmds \
22325 export_symbols_cmds \
22326 prelink_cmds \
22327 postlink_cmds \
22328 postinstall_cmds \
22329 postuninstall_cmds \
22330 finish_cmds \
22331 sys_lib_search_path_spec \
22332 configure_time_dlsearch_path \
22333 configure_time_lt_sys_library_path \
22334 reload_cmds_CXX \
22335 old_archive_cmds_CXX \
22336 old_archive_from_new_cmds_CXX \
22337 old_archive_from_expsyms_cmds_CXX \
22338 archive_cmds_CXX \
22339 archive_expsym_cmds_CXX \
22340 module_cmds_CXX \
22341 module_expsym_cmds_CXX \
22342 export_symbols_cmds_CXX \
22343 prelink_cmds_CXX \
22344 postlink_cmds_CXX; do
22345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22346 *[\\\\\\\`\\"\\\$]*)
22347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22348 ;;
22349 *)
22350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22351 ;;
22352 esac
22353 done
22354
22355 ac_aux_dir='$ac_aux_dir'
22356
22357 # See if we are running on zsh, and set the options that allow our
22358 # commands through without removal of \ escapes INIT.
22359 if test -n "\${ZSH_VERSION+set}"; then
22360 setopt NO_GLOB_SUBST
22361 fi
22362
22363
22364 PACKAGE='$PACKAGE'
22365 VERSION='$VERSION'
22366 RM='$RM'
22367 ofile='$ofile'
22368
22369
22370
22371
22372
22373
22374 _ACEOF
22375
22376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22377
22378 # Handling of arguments.
22379 for ac_config_target in $ac_config_targets
22380 do
22381 case $ac_config_target in
22382 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22384 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22386
22387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22388 esac
22389 done
22390
22391
22392 # If the user did not use the arguments to specify the items to instantiate,
22393 # then the envvar interface is used. Set only those that are not.
22394 # We use the long form for the default assignment because of an extremely
22395 # bizarre bug on SunOS 4.1.3.
22396 if $ac_need_defaults; then
22397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22400 fi
22401
22402 # Have a temporary directory for convenience. Make it in the build tree
22403 # simply because there is no reason against having it here, and in addition,
22404 # creating and moving files from /tmp can sometimes cause problems.
22405 # Hook for its removal unless debugging.
22406 # Note that there is a small window in which the directory will not be cleaned:
22407 # after its creation but before its name has been assigned to `$tmp'.
22408 $debug ||
22409 {
22410 tmp= ac_tmp=
22411 trap 'exit_status=$?
22412 : "${ac_tmp:=$tmp}"
22413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22414 ' 0
22415 trap 'as_fn_exit 1' 1 2 13 15
22416 }
22417 # Create a (secure) tmp directory for tmp files.
22418
22419 {
22420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22421 test -d "$tmp"
22422 } ||
22423 {
22424 tmp=./conf$$-$RANDOM
22425 (umask 077 && mkdir "$tmp")
22426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22427 ac_tmp=$tmp
22428
22429 # Set up the scripts for CONFIG_FILES section.
22430 # No need to generate them if there are no CONFIG_FILES.
22431 # This happens for instance with `./config.status config.h'.
22432 if test -n "$CONFIG_FILES"; then
22433
22434
22435 ac_cr=`echo X | tr X '\015'`
22436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22437 # But we know of no other shell where ac_cr would be empty at this
22438 # point, so we can use a bashism as a fallback.
22439 if test "x$ac_cr" = x; then
22440 eval ac_cr=\$\'\\r\'
22441 fi
22442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22444 ac_cs_awk_cr='\\r'
22445 else
22446 ac_cs_awk_cr=$ac_cr
22447 fi
22448
22449 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22450 _ACEOF
22451
22452
22453 {
22454 echo "cat >conf$$subs.awk <<_ACEOF" &&
22455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22456 echo "_ACEOF"
22457 } >conf$$subs.sh ||
22458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22460 ac_delim='%!_!# '
22461 for ac_last_try in false false false false false :; do
22462 . ./conf$$subs.sh ||
22463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22464
22465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22466 if test $ac_delim_n = $ac_delim_num; then
22467 break
22468 elif $ac_last_try; then
22469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22470 else
22471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22472 fi
22473 done
22474 rm -f conf$$subs.sh
22475
22476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22477 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22478 _ACEOF
22479 sed -n '
22480 h
22481 s/^/S["/; s/!.*/"]=/
22482 p
22483 g
22484 s/^[^!]*!//
22485 :repl
22486 t repl
22487 s/'"$ac_delim"'$//
22488 t delim
22489 :nl
22490 h
22491 s/\(.\{148\}\)..*/\1/
22492 t more1
22493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22494 p
22495 n
22496 b repl
22497 :more1
22498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22499 p
22500 g
22501 s/.\{148\}//
22502 t nl
22503 :delim
22504 h
22505 s/\(.\{148\}\)..*/\1/
22506 t more2
22507 s/["\\]/\\&/g; s/^/"/; s/$/"/
22508 p
22509 b
22510 :more2
22511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22512 p
22513 g
22514 s/.\{148\}//
22515 t delim
22516 ' <conf$$subs.awk | sed '
22517 /^[^""]/{
22518 N
22519 s/\n//
22520 }
22521 ' >>$CONFIG_STATUS || ac_write_fail=1
22522 rm -f conf$$subs.awk
22523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22524 _ACAWK
22525 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22526 for (key in S) S_is_set[key] = 1
22527 FS = "\a"
22528
22529 }
22530 {
22531 line = $ 0
22532 nfields = split(line, field, "@")
22533 substed = 0
22534 len = length(field[1])
22535 for (i = 2; i < nfields; i++) {
22536 key = field[i]
22537 keylen = length(key)
22538 if (S_is_set[key]) {
22539 value = S[key]
22540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22541 len += length(value) + length(field[++i])
22542 substed = 1
22543 } else
22544 len += 1 + keylen
22545 }
22546
22547 print line
22548 }
22549
22550 _ACAWK
22551 _ACEOF
22552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22555 else
22556 cat
22557 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22558 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22559 _ACEOF
22560
22561 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22562 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22563 # trailing colons and then remove the whole line if VPATH becomes empty
22564 # (actually we leave an empty line to preserve line numbers).
22565 if test "x$srcdir" = x.; then
22566 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22567 h
22568 s///
22569 s/^/:/
22570 s/[ ]*$/:/
22571 s/:\$(srcdir):/:/g
22572 s/:\${srcdir}:/:/g
22573 s/:@srcdir@:/:/g
22574 s/^:*//
22575 s/:*$//
22576 x
22577 s/\(=[ ]*\).*/\1/
22578 G
22579 s/\n//
22580 s/^[^=]*=[ ]*$//
22581 }'
22582 fi
22583
22584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22585 fi # test -n "$CONFIG_FILES"
22586
22587 # Set up the scripts for CONFIG_HEADERS section.
22588 # No need to generate them if there are no CONFIG_HEADERS.
22589 # This happens for instance with `./config.status Makefile'.
22590 if test -n "$CONFIG_HEADERS"; then
22591 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22592 BEGIN {
22593 _ACEOF
22594
22595 # Transform confdefs.h into an awk script `defines.awk', embedded as
22596 # here-document in config.status, that substitutes the proper values into
22597 # config.h.in to produce config.h.
22598
22599 # Create a delimiter string that does not exist in confdefs.h, to ease
22600 # handling of long lines.
22601 ac_delim='%!_!# '
22602 for ac_last_try in false false :; do
22603 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22604 if test -z "$ac_tt"; then
22605 break
22606 elif $ac_last_try; then
22607 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22608 else
22609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22610 fi
22611 done
22612
22613 # For the awk script, D is an array of macro values keyed by name,
22614 # likewise P contains macro parameters if any. Preserve backslash
22615 # newline sequences.
22616
22617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22618 sed -n '
22619 s/.\{148\}/&'"$ac_delim"'/g
22620 t rset
22621 :rset
22622 s/^[ ]*#[ ]*define[ ][ ]*/ /
22623 t def
22624 d
22625 :def
22626 s/\\$//
22627 t bsnl
22628 s/["\\]/\\&/g
22629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22630 D["\1"]=" \3"/p
22631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22632 d
22633 :bsnl
22634 s/["\\]/\\&/g
22635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22636 D["\1"]=" \3\\\\\\n"\\/p
22637 t cont
22638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22639 t cont
22640 d
22641 :cont
22642 n
22643 s/.\{148\}/&'"$ac_delim"'/g
22644 t clear
22645 :clear
22646 s/\\$//
22647 t bsnlc
22648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22649 d
22650 :bsnlc
22651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22652 b cont
22653 ' <confdefs.h | sed '
22654 s/'"$ac_delim"'/"\\\
22655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22656
22657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22658 for (key in D) D_is_set[key] = 1
22659 FS = "\a"
22660 }
22661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22662 line = \$ 0
22663 split(line, arg, " ")
22664 if (arg[1] == "#") {
22665 defundef = arg[2]
22666 mac1 = arg[3]
22667 } else {
22668 defundef = substr(arg[1], 2)
22669 mac1 = arg[2]
22670 }
22671 split(mac1, mac2, "(") #)
22672 macro = mac2[1]
22673 prefix = substr(line, 1, index(line, defundef) - 1)
22674 if (D_is_set[macro]) {
22675 # Preserve the white space surrounding the "#".
22676 print prefix "define", macro P[macro] D[macro]
22677 next
22678 } else {
22679 # Replace #undef with comments. This is necessary, for example,
22680 # in the case of _POSIX_SOURCE, which is predefined and required
22681 # on some systems where configure will not decide to define it.
22682 if (defundef == "undef") {
22683 print "/*", prefix defundef, macro, "*/"
22684 next
22685 }
22686 }
22687 }
22688 { print }
22689 _ACAWK
22690 _ACEOF
22691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22692 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22693 fi # test -n "$CONFIG_HEADERS"
22694
22695
22696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22697 shift
22698 for ac_tag
22699 do
22700 case $ac_tag in
22701 :[FHLC]) ac_mode=$ac_tag; continue;;
22702 esac
22703 case $ac_mode$ac_tag in
22704 :[FHL]*:*);;
22705 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22706 :[FH]-) ac_tag=-:-;;
22707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22708 esac
22709 ac_save_IFS=$IFS
22710 IFS=:
22711 set x $ac_tag
22712 IFS=$ac_save_IFS
22713 shift
22714 ac_file=$1
22715 shift
22716
22717 case $ac_mode in
22718 :L) ac_source=$1;;
22719 :[FH])
22720 ac_file_inputs=
22721 for ac_f
22722 do
22723 case $ac_f in
22724 -) ac_f="$ac_tmp/stdin";;
22725 *) # Look for the file first in the build tree, then in the source tree
22726 # (if the path is not absolute). The absolute path cannot be DOS-style,
22727 # because $ac_f cannot contain `:'.
22728 test -f "$ac_f" ||
22729 case $ac_f in
22730 [\\/$]*) false;;
22731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22732 esac ||
22733 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22734 esac
22735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22736 as_fn_append ac_file_inputs " '$ac_f'"
22737 done
22738
22739 # Let's still pretend it is `configure' which instantiates (i.e., don't
22740 # use $as_me), people would be surprised to read:
22741 # /* config.h. Generated by config.status. */
22742 configure_input='Generated from '`
22743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22744 `' by configure.'
22745 if test x"$ac_file" != x-; then
22746 configure_input="$ac_file. $configure_input"
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22748 $as_echo "$as_me: creating $ac_file" >&6;}
22749 fi
22750 # Neutralize special characters interpreted by sed in replacement strings.
22751 case $configure_input in #(
22752 *\&* | *\|* | *\\* )
22753 ac_sed_conf_input=`$as_echo "$configure_input" |
22754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22755 *) ac_sed_conf_input=$configure_input;;
22756 esac
22757
22758 case $ac_tag in
22759 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22761 esac
22762 ;;
22763 esac
22764
22765 ac_dir=`$as_dirname -- "$ac_file" ||
22766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22767 X"$ac_file" : 'X\(//\)[^/]' \| \
22768 X"$ac_file" : 'X\(//\)$' \| \
22769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22770 $as_echo X"$ac_file" |
22771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22772 s//\1/
22773 q
22774 }
22775 /^X\(\/\/\)[^/].*/{
22776 s//\1/
22777 q
22778 }
22779 /^X\(\/\/\)$/{
22780 s//\1/
22781 q
22782 }
22783 /^X\(\/\).*/{
22784 s//\1/
22785 q
22786 }
22787 s/.*/./; q'`
22788 as_dir="$ac_dir"; as_fn_mkdir_p
22789 ac_builddir=.
22790
22791 case "$ac_dir" in
22792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22793 *)
22794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22795 # A ".." for each directory in $ac_dir_suffix.
22796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22797 case $ac_top_builddir_sub in
22798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22800 esac ;;
22801 esac
22802 ac_abs_top_builddir=$ac_pwd
22803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22804 # for backward compatibility:
22805 ac_top_builddir=$ac_top_build_prefix
22806
22807 case $srcdir in
22808 .) # We are building in place.
22809 ac_srcdir=.
22810 ac_top_srcdir=$ac_top_builddir_sub
22811 ac_abs_top_srcdir=$ac_pwd ;;
22812 [\\/]* | ?:[\\/]* ) # Absolute name.
22813 ac_srcdir=$srcdir$ac_dir_suffix;
22814 ac_top_srcdir=$srcdir
22815 ac_abs_top_srcdir=$srcdir ;;
22816 *) # Relative name.
22817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22818 ac_top_srcdir=$ac_top_build_prefix$srcdir
22819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22820 esac
22821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22822
22823
22824 case $ac_mode in
22825 :F)
22826 #
22827 # CONFIG_FILE
22828 #
22829
22830 case $INSTALL in
22831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22833 esac
22834 ac_MKDIR_P=$MKDIR_P
22835 case $MKDIR_P in
22836 [\\/$]* | ?:[\\/]* ) ;;
22837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22838 esac
22839 _ACEOF
22840
22841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22842 # If the template does not know about datarootdir, expand it.
22843 # FIXME: This hack should be removed a few years after 2.60.
22844 ac_datarootdir_hack=; ac_datarootdir_seen=
22845 ac_sed_dataroot='
22846 /datarootdir/ {
22847 p
22848 q
22849 }
22850 /@datadir@/p
22851 /@docdir@/p
22852 /@infodir@/p
22853 /@localedir@/p
22854 /@mandir@/p'
22855 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22856 *datarootdir*) ac_datarootdir_seen=yes;;
22857 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22859 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22860 _ACEOF
22861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22862 ac_datarootdir_hack='
22863 s&@datadir@&$datadir&g
22864 s&@docdir@&$docdir&g
22865 s&@infodir@&$infodir&g
22866 s&@localedir@&$localedir&g
22867 s&@mandir@&$mandir&g
22868 s&\\\${datarootdir}&$datarootdir&g' ;;
22869 esac
22870 _ACEOF
22871
22872 # Neutralize VPATH when `$srcdir' = `.'.
22873 # Shell code in configure.ac might set extrasub.
22874 # FIXME: do we really want to maintain this feature?
22875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22876 ac_sed_extra="$ac_vpsub
22877 $extrasub
22878 _ACEOF
22879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22880 :t
22881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22882 s|@configure_input@|$ac_sed_conf_input|;t t
22883 s&@top_builddir@&$ac_top_builddir_sub&;t t
22884 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22885 s&@srcdir@&$ac_srcdir&;t t
22886 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22887 s&@top_srcdir@&$ac_top_srcdir&;t t
22888 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22889 s&@builddir@&$ac_builddir&;t t
22890 s&@abs_builddir@&$ac_abs_builddir&;t t
22891 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22892 s&@INSTALL@&$ac_INSTALL&;t t
22893 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22894 $ac_datarootdir_hack
22895 "
22896 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22897 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22898
22899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22900 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22902 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22904 which seems to be undefined. Please make sure it is defined" >&5
22905 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22906 which seems to be undefined. Please make sure it is defined" >&2;}
22907
22908 rm -f "$ac_tmp/stdin"
22909 case $ac_file in
22910 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22911 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22912 esac \
22913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22914 ;;
22915 :H)
22916 #
22917 # CONFIG_HEADER
22918 #
22919 if test x"$ac_file" != x-; then
22920 {
22921 $as_echo "/* $configure_input */" \
22922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22923 } >"$ac_tmp/config.h" \
22924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22925 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22927 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22928 else
22929 rm -f "$ac_file"
22930 mv "$ac_tmp/config.h" "$ac_file" \
22931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22932 fi
22933 else
22934 $as_echo "/* $configure_input */" \
22935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22936 || as_fn_error $? "could not create -" "$LINENO" 5
22937 fi
22938 # Compute "$ac_file"'s index in $config_headers.
22939 _am_arg="$ac_file"
22940 _am_stamp_count=1
22941 for _am_header in $config_headers :; do
22942 case $_am_header in
22943 $_am_arg | $_am_arg:* )
22944 break ;;
22945 * )
22946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22947 esac
22948 done
22949 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22950 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22951 X"$_am_arg" : 'X\(//\)[^/]' \| \
22952 X"$_am_arg" : 'X\(//\)$' \| \
22953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22954 $as_echo X"$_am_arg" |
22955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22956 s//\1/
22957 q
22958 }
22959 /^X\(\/\/\)[^/].*/{
22960 s//\1/
22961 q
22962 }
22963 /^X\(\/\/\)$/{
22964 s//\1/
22965 q
22966 }
22967 /^X\(\/\).*/{
22968 s//\1/
22969 q
22970 }
22971 s/.*/./; q'`/stamp-h$_am_stamp_count
22972 ;;
22973
22974 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22975 $as_echo "$as_me: executing $ac_file commands" >&6;}
22976 ;;
22977 esac
22978
22979
22980 case $ac_file$ac_mode in
22981 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22982 # Older Autoconf quotes --file arguments for eval, but not when files
22983 # are listed without --file. Let's play safe and only enable the eval
22984 # if we detect the quoting.
22985 case $CONFIG_FILES in
22986 *\'*) eval set x "$CONFIG_FILES" ;;
22987 *) set x $CONFIG_FILES ;;
22988 esac
22989 shift
22990 for mf
22991 do
22992 # Strip MF so we end up with the name of the file.
22993 mf=`echo "$mf" | sed -e 's/:.*$//'`
22994 # Check whether this is an Automake generated Makefile or not.
22995 # We used to match only the files named 'Makefile.in', but
22996 # some people rename them; so instead we look at the file content.
22997 # Grep'ing the first line is not enough: some people post-process
22998 # each Makefile.in and add a new line on top of each file to say so.
22999 # Grep'ing the whole file is not good either: AIX grep has a line
23000 # limit of 2048, but all sed's we know have understand at least 4000.
23001 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23002 dirpart=`$as_dirname -- "$mf" ||
23003 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23004 X"$mf" : 'X\(//\)[^/]' \| \
23005 X"$mf" : 'X\(//\)$' \| \
23006 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23007 $as_echo X"$mf" |
23008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23009 s//\1/
23010 q
23011 }
23012 /^X\(\/\/\)[^/].*/{
23013 s//\1/
23014 q
23015 }
23016 /^X\(\/\/\)$/{
23017 s//\1/
23018 q
23019 }
23020 /^X\(\/\).*/{
23021 s//\1/
23022 q
23023 }
23024 s/.*/./; q'`
23025 else
23026 continue
23027 fi
23028 # Extract the definition of DEPDIR, am__include, and am__quote
23029 # from the Makefile without running 'make'.
23030 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23031 test -z "$DEPDIR" && continue
23032 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23033 test -z "$am__include" && continue
23034 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23035 # Find all dependency output files, they are included files with
23036 # $(DEPDIR) in their names. We invoke sed twice because it is the
23037 # simplest approach to changing $(DEPDIR) to its actual value in the
23038 # expansion.
23039 for file in `sed -n "
23040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23042 # Make sure the directory exists.
23043 test -f "$dirpart/$file" && continue
23044 fdir=`$as_dirname -- "$file" ||
23045 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046 X"$file" : 'X\(//\)[^/]' \| \
23047 X"$file" : 'X\(//\)$' \| \
23048 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23049 $as_echo X"$file" |
23050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23051 s//\1/
23052 q
23053 }
23054 /^X\(\/\/\)[^/].*/{
23055 s//\1/
23056 q
23057 }
23058 /^X\(\/\/\)$/{
23059 s//\1/
23060 q
23061 }
23062 /^X\(\/\).*/{
23063 s//\1/
23064 q
23065 }
23066 s/.*/./; q'`
23067 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23068 # echo "creating $dirpart/$file"
23069 echo '# dummy' > "$dirpart/$file"
23070 done
23071 done
23072 }
23073 ;;
23074 "libtool":C)
23075
23076 # See if we are running on zsh, and set the options that allow our
23077 # commands through without removal of \ escapes.
23078 if test -n "${ZSH_VERSION+set}"; then
23079 setopt NO_GLOB_SUBST
23080 fi
23081
23082 cfgfile=${ofile}T
23083 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23084 $RM "$cfgfile"
23085
23086 cat <<_LT_EOF >> "$cfgfile"
23087 #! $SHELL
23088 # Generated automatically by $as_me ($PACKAGE) $VERSION
23089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23091
23092 # Provide generalized library-building support services.
23093 # Written by Gordon Matzigkeit, 1996
23094
23095 # Copyright (C) 2014 Free Software Foundation, Inc.
23096 # This is free software; see the source for copying conditions. There is NO
23097 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23098
23099 # GNU Libtool is free software; you can redistribute it and/or modify
23100 # it under the terms of the GNU General Public License as published by
23101 # the Free Software Foundation; either version 2 of of the License, or
23102 # (at your option) any later version.
23103 #
23104 # As a special exception to the GNU General Public License, if you
23105 # distribute this file as part of a program or library that is built
23106 # using GNU Libtool, you may include this file under the same
23107 # distribution terms that you use for the rest of that program.
23108 #
23109 # GNU Libtool is distributed in the hope that it will be useful, but
23110 # WITHOUT ANY WARRANTY; without even the implied warranty of
23111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23112 # GNU General Public License for more details.
23113 #
23114 # You should have received a copy of the GNU General Public License
23115 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23116
23117
23118 # The names of the tagged configurations supported by this script.
23119 available_tags='CXX '
23120
23121 # Configured defaults for sys_lib_dlsearch_path munging.
23122 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23123
23124 # ### BEGIN LIBTOOL CONFIG
23125
23126 # Which release of libtool.m4 was used?
23127 macro_version=$macro_version
23128 macro_revision=$macro_revision
23129
23130 # Whether or not to build static libraries.
23131 build_old_libs=$enable_static
23132
23133 # Whether or not to build shared libraries.
23134 build_libtool_libs=$enable_shared
23135
23136 # What type of objects to build.
23137 pic_mode=$pic_mode
23138
23139 # Whether or not to optimize for fast installation.
23140 fast_install=$enable_fast_install
23141
23142 # Shared archive member basename,for filename based shared library versioning on AIX.
23143 shared_archive_member_spec=$shared_archive_member_spec
23144
23145 # Shell to use when invoking shell scripts.
23146 SHELL=$lt_SHELL
23147
23148 # An echo program that protects backslashes.
23149 ECHO=$lt_ECHO
23150
23151 # The PATH separator for the build system.
23152 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23153
23154 # The host system.
23155 host_alias=$host_alias
23156 host=$host
23157 host_os=$host_os
23158
23159 # The build system.
23160 build_alias=$build_alias
23161 build=$build
23162 build_os=$build_os
23163
23164 # A sed program that does not truncate output.
23165 SED=$lt_SED
23166
23167 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23168 Xsed="\$SED -e 1s/^X//"
23169
23170 # A grep program that handles long lines.
23171 GREP=$lt_GREP
23172
23173 # An ERE matcher.
23174 EGREP=$lt_EGREP
23175
23176 # A literal string matcher.
23177 FGREP=$lt_FGREP
23178
23179 # A BSD- or MS-compatible name lister.
23180 NM=$lt_NM
23181
23182 # Whether we need soft or hard links.
23183 LN_S=$lt_LN_S
23184
23185 # What is the maximum length of a command?
23186 max_cmd_len=$max_cmd_len
23187
23188 # Object file suffix (normally "o").
23189 objext=$ac_objext
23190
23191 # Executable file suffix (normally "").
23192 exeext=$exeext
23193
23194 # whether the shell understands "unset".
23195 lt_unset=$lt_unset
23196
23197 # turn spaces into newlines.
23198 SP2NL=$lt_lt_SP2NL
23199
23200 # turn newlines into spaces.
23201 NL2SP=$lt_lt_NL2SP
23202
23203 # convert \$build file names to \$host format.
23204 to_host_file_cmd=$lt_cv_to_host_file_cmd
23205
23206 # convert \$build files to toolchain format.
23207 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23208
23209 # An object symbol dumper.
23210 OBJDUMP=$lt_OBJDUMP
23211
23212 # Method to check whether dependent libraries are shared objects.
23213 deplibs_check_method=$lt_deplibs_check_method
23214
23215 # Command to use when deplibs_check_method = "file_magic".
23216 file_magic_cmd=$lt_file_magic_cmd
23217
23218 # How to find potential files when deplibs_check_method = "file_magic".
23219 file_magic_glob=$lt_file_magic_glob
23220
23221 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23222 want_nocaseglob=$lt_want_nocaseglob
23223
23224 # DLL creation program.
23225 DLLTOOL=$lt_DLLTOOL
23226
23227 # Command to associate shared and link libraries.
23228 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23229
23230 # The archiver.
23231 AR=$lt_AR
23232
23233 # Flags to create an archive.
23234 AR_FLAGS=$lt_AR_FLAGS
23235
23236 # How to feed a file listing to the archiver.
23237 archiver_list_spec=$lt_archiver_list_spec
23238
23239 # A symbol stripping program.
23240 STRIP=$lt_STRIP
23241
23242 # Commands used to install an old-style archive.
23243 RANLIB=$lt_RANLIB
23244 old_postinstall_cmds=$lt_old_postinstall_cmds
23245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23246
23247 # Whether to use a lock for old archive extraction.
23248 lock_old_archive_extraction=$lock_old_archive_extraction
23249
23250 # A C compiler.
23251 LTCC=$lt_CC
23252
23253 # LTCC compiler flags.
23254 LTCFLAGS=$lt_CFLAGS
23255
23256 # Take the output of nm and produce a listing of raw symbols and C names.
23257 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23258
23259 # Transform the output of nm in a proper C declaration.
23260 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23261
23262 # Transform the output of nm into a list of symbols to manually relocate.
23263 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23264
23265 # Transform the output of nm in a C name address pair.
23266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23267
23268 # Transform the output of nm in a C name address pair when lib prefix is needed.
23269 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23270
23271 # The name lister interface.
23272 nm_interface=$lt_lt_cv_nm_interface
23273
23274 # Specify filename containing input files for \$NM.
23275 nm_file_list_spec=$lt_nm_file_list_spec
23276
23277 # The root where to search for dependent libraries,and where our libraries should be installed.
23278 lt_sysroot=$lt_sysroot
23279
23280 # Command to truncate a binary pipe.
23281 lt_truncate_bin=$lt_lt_cv_truncate_bin
23282
23283 # The name of the directory that contains temporary libtool files.
23284 objdir=$objdir
23285
23286 # Used to examine libraries when file_magic_cmd begins with "file".
23287 MAGIC_CMD=$MAGIC_CMD
23288
23289 # Must we lock files when doing compilation?
23290 need_locks=$lt_need_locks
23291
23292 # Manifest tool.
23293 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23294
23295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23296 DSYMUTIL=$lt_DSYMUTIL
23297
23298 # Tool to change global to local symbols on Mac OS X.
23299 NMEDIT=$lt_NMEDIT
23300
23301 # Tool to manipulate fat objects and archives on Mac OS X.
23302 LIPO=$lt_LIPO
23303
23304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23305 OTOOL=$lt_OTOOL
23306
23307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23308 OTOOL64=$lt_OTOOL64
23309
23310 # Old archive suffix (normally "a").
23311 libext=$libext
23312
23313 # Shared library suffix (normally ".so").
23314 shrext_cmds=$lt_shrext_cmds
23315
23316 # The commands to extract the exported symbol list from a shared archive.
23317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23318
23319 # Variables whose values should be saved in libtool wrapper scripts and
23320 # restored at link time.
23321 variables_saved_for_relink=$lt_variables_saved_for_relink
23322
23323 # Do we need the "lib" prefix for modules?
23324 need_lib_prefix=$need_lib_prefix
23325
23326 # Do we need a version for libraries?
23327 need_version=$need_version
23328
23329 # Library versioning type.
23330 version_type=$version_type
23331
23332 # Shared library runtime path variable.
23333 runpath_var=$runpath_var
23334
23335 # Shared library path variable.
23336 shlibpath_var=$shlibpath_var
23337
23338 # Is shlibpath searched before the hard-coded library search path?
23339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23340
23341 # Format of library name prefix.
23342 libname_spec=$lt_libname_spec
23343
23344 # List of archive names. First name is the real one, the rest are links.
23345 # The last name is the one that the linker finds with -lNAME
23346 library_names_spec=$lt_library_names_spec
23347
23348 # The coded name of the library, if different from the real name.
23349 soname_spec=$lt_soname_spec
23350
23351 # Permission mode override for installation of shared libraries.
23352 install_override_mode=$lt_install_override_mode
23353
23354 # Command to use after installation of a shared archive.
23355 postinstall_cmds=$lt_postinstall_cmds
23356
23357 # Command to use after uninstallation of a shared archive.
23358 postuninstall_cmds=$lt_postuninstall_cmds
23359
23360 # Commands used to finish a libtool library installation in a directory.
23361 finish_cmds=$lt_finish_cmds
23362
23363 # As "finish_cmds", except a single script fragment to be evaled but
23364 # not shown.
23365 finish_eval=$lt_finish_eval
23366
23367 # Whether we should hardcode library paths into libraries.
23368 hardcode_into_libs=$hardcode_into_libs
23369
23370 # Compile-time system search path for libraries.
23371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23372
23373 # Detected run-time system search path for libraries.
23374 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23375
23376 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23377 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23378
23379 # Whether dlopen is supported.
23380 dlopen_support=$enable_dlopen
23381
23382 # Whether dlopen of programs is supported.
23383 dlopen_self=$enable_dlopen_self
23384
23385 # Whether dlopen of statically linked programs is supported.
23386 dlopen_self_static=$enable_dlopen_self_static
23387
23388 # Commands to strip libraries.
23389 old_striplib=$lt_old_striplib
23390 striplib=$lt_striplib
23391
23392
23393 # The linker used to build libraries.
23394 LD=$lt_LD
23395
23396 # How to create reloadable object files.
23397 reload_flag=$lt_reload_flag
23398 reload_cmds=$lt_reload_cmds
23399
23400 # Commands used to build an old-style archive.
23401 old_archive_cmds=$lt_old_archive_cmds
23402
23403 # A language specific compiler.
23404 CC=$lt_compiler
23405
23406 # Is the compiler the GNU compiler?
23407 with_gcc=$GCC
23408
23409 # Compiler flag to turn off builtin functions.
23410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23411
23412 # Additional compiler flags for building library objects.
23413 pic_flag=$lt_lt_prog_compiler_pic
23414
23415 # How to pass a linker flag through the compiler.
23416 wl=$lt_lt_prog_compiler_wl
23417
23418 # Compiler flag to prevent dynamic linking.
23419 link_static_flag=$lt_lt_prog_compiler_static
23420
23421 # Does compiler simultaneously support -c and -o options?
23422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23423
23424 # Whether or not to add -lc for building shared libraries.
23425 build_libtool_need_lc=$archive_cmds_need_lc
23426
23427 # Whether or not to disallow shared libs when runtime libs are static.
23428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23429
23430 # Compiler flag to allow reflexive dlopens.
23431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23432
23433 # Compiler flag to generate shared objects directly from archives.
23434 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23435
23436 # Whether the compiler copes with passing no objects directly.
23437 compiler_needs_object=$lt_compiler_needs_object
23438
23439 # Create an old-style archive from a shared archive.
23440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23441
23442 # Create a temporary old-style archive to link instead of a shared archive.
23443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23444
23445 # Commands used to build a shared archive.
23446 archive_cmds=$lt_archive_cmds
23447 archive_expsym_cmds=$lt_archive_expsym_cmds
23448
23449 # Commands used to build a loadable module if different from building
23450 # a shared archive.
23451 module_cmds=$lt_module_cmds
23452 module_expsym_cmds=$lt_module_expsym_cmds
23453
23454 # Whether we are building with GNU ld or not.
23455 with_gnu_ld=$lt_with_gnu_ld
23456
23457 # Flag that allows shared libraries with undefined symbols to be built.
23458 allow_undefined_flag=$lt_allow_undefined_flag
23459
23460 # Flag that enforces no undefined symbols.
23461 no_undefined_flag=$lt_no_undefined_flag
23462
23463 # Flag to hardcode \$libdir into a binary during linking.
23464 # This must work even if \$libdir does not exist
23465 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23466
23467 # Whether we need a single "-rpath" flag with a separated argument.
23468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23469
23470 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23471 # DIR into the resulting binary.
23472 hardcode_direct=$hardcode_direct
23473
23474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23475 # DIR into the resulting binary and the resulting library dependency is
23476 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23477 # library is relocated.
23478 hardcode_direct_absolute=$hardcode_direct_absolute
23479
23480 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23481 # into the resulting binary.
23482 hardcode_minus_L=$hardcode_minus_L
23483
23484 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23485 # into the resulting binary.
23486 hardcode_shlibpath_var=$hardcode_shlibpath_var
23487
23488 # Set to "yes" if building a shared library automatically hardcodes DIR
23489 # into the library and all subsequent libraries and executables linked
23490 # against it.
23491 hardcode_automatic=$hardcode_automatic
23492
23493 # Set to yes if linker adds runtime paths of dependent libraries
23494 # to runtime path list.
23495 inherit_rpath=$inherit_rpath
23496
23497 # Whether libtool must link a program against all its dependency libraries.
23498 link_all_deplibs=$link_all_deplibs
23499
23500 # Set to "yes" if exported symbols are required.
23501 always_export_symbols=$always_export_symbols
23502
23503 # The commands to list exported symbols.
23504 export_symbols_cmds=$lt_export_symbols_cmds
23505
23506 # Symbols that should not be listed in the preloaded symbols.
23507 exclude_expsyms=$lt_exclude_expsyms
23508
23509 # Symbols that must always be exported.
23510 include_expsyms=$lt_include_expsyms
23511
23512 # Commands necessary for linking programs (against libraries) with templates.
23513 prelink_cmds=$lt_prelink_cmds
23514
23515 # Commands necessary for finishing linking programs.
23516 postlink_cmds=$lt_postlink_cmds
23517
23518 # Specify filename containing input files.
23519 file_list_spec=$lt_file_list_spec
23520
23521 # How to hardcode a shared library path into an executable.
23522 hardcode_action=$hardcode_action
23523
23524 # The directories searched by this compiler when creating a shared library.
23525 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23526
23527 # Dependencies to place before and after the objects being linked to
23528 # create a shared library.
23529 predep_objects=$lt_predep_objects
23530 postdep_objects=$lt_postdep_objects
23531 predeps=$lt_predeps
23532 postdeps=$lt_postdeps
23533
23534 # The library search path used internally by the compiler when linking
23535 # a shared library.
23536 compiler_lib_search_path=$lt_compiler_lib_search_path
23537
23538 # ### END LIBTOOL CONFIG
23539
23540 _LT_EOF
23541
23542 cat <<'_LT_EOF' >> "$cfgfile"
23543
23544 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23545
23546 # func_munge_path_list VARIABLE PATH
23547 # -----------------------------------
23548 # VARIABLE is name of variable containing _space_ separated list of
23549 # directories to be munged by the contents of PATH, which is string
23550 # having a format:
23551 # "DIR[:DIR]:"
23552 # string "DIR[ DIR]" will be prepended to VARIABLE
23553 # ":DIR[:DIR]"
23554 # string "DIR[ DIR]" will be appended to VARIABLE
23555 # "DIRP[:DIRP]::[DIRA:]DIRA"
23556 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23557 # "DIRA[ DIRA]" will be appended to VARIABLE
23558 # "DIR[:DIR]"
23559 # VARIABLE will be replaced by "DIR[ DIR]"
23560 func_munge_path_list ()
23561 {
23562 case x$2 in
23563 x)
23564 ;;
23565 *:)
23566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23567 ;;
23568 x:*)
23569 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23570 ;;
23571 *::*)
23572 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23573 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23574 ;;
23575 *)
23576 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23577 ;;
23578 esac
23579 }
23580
23581
23582 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23583 func_cc_basename ()
23584 {
23585 for cc_temp in $*""; do
23586 case $cc_temp in
23587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23589 \-*) ;;
23590 *) break;;
23591 esac
23592 done
23593 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23594 }
23595
23596
23597 # ### END FUNCTIONS SHARED WITH CONFIGURE
23598
23599 _LT_EOF
23600
23601 case $host_os in
23602 aix3*)
23603 cat <<\_LT_EOF >> "$cfgfile"
23604 # AIX sometimes has problems with the GCC collect2 program. For some
23605 # reason, if we set the COLLECT_NAMES environment variable, the problems
23606 # vanish in a puff of smoke.
23607 if test set != "${COLLECT_NAMES+set}"; then
23608 COLLECT_NAMES=
23609 export COLLECT_NAMES
23610 fi
23611 _LT_EOF
23612 ;;
23613 esac
23614
23615
23616 ltmain=$ac_aux_dir/ltmain.sh
23617
23618
23619 # We use sed instead of cat because bash on DJGPP gets confused if
23620 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23621 # text mode, it properly converts lines to CR/LF. This bash problem
23622 # is reportedly fixed, but why not run on old versions too?
23623 sed '$q' "$ltmain" >> "$cfgfile" \
23624 || (rm -f "$cfgfile"; exit 1)
23625
23626 mv -f "$cfgfile" "$ofile" ||
23627 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23628 chmod +x "$ofile"
23629
23630
23631 cat <<_LT_EOF >> "$ofile"
23632
23633 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23634
23635 # The linker used to build libraries.
23636 LD=$lt_LD_CXX
23637
23638 # How to create reloadable object files.
23639 reload_flag=$lt_reload_flag_CXX
23640 reload_cmds=$lt_reload_cmds_CXX
23641
23642 # Commands used to build an old-style archive.
23643 old_archive_cmds=$lt_old_archive_cmds_CXX
23644
23645 # A language specific compiler.
23646 CC=$lt_compiler_CXX
23647
23648 # Is the compiler the GNU compiler?
23649 with_gcc=$GCC_CXX
23650
23651 # Compiler flag to turn off builtin functions.
23652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23653
23654 # Additional compiler flags for building library objects.
23655 pic_flag=$lt_lt_prog_compiler_pic_CXX
23656
23657 # How to pass a linker flag through the compiler.
23658 wl=$lt_lt_prog_compiler_wl_CXX
23659
23660 # Compiler flag to prevent dynamic linking.
23661 link_static_flag=$lt_lt_prog_compiler_static_CXX
23662
23663 # Does compiler simultaneously support -c and -o options?
23664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23665
23666 # Whether or not to add -lc for building shared libraries.
23667 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23668
23669 # Whether or not to disallow shared libs when runtime libs are static.
23670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23671
23672 # Compiler flag to allow reflexive dlopens.
23673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23674
23675 # Compiler flag to generate shared objects directly from archives.
23676 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23677
23678 # Whether the compiler copes with passing no objects directly.
23679 compiler_needs_object=$lt_compiler_needs_object_CXX
23680
23681 # Create an old-style archive from a shared archive.
23682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23683
23684 # Create a temporary old-style archive to link instead of a shared archive.
23685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23686
23687 # Commands used to build a shared archive.
23688 archive_cmds=$lt_archive_cmds_CXX
23689 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23690
23691 # Commands used to build a loadable module if different from building
23692 # a shared archive.
23693 module_cmds=$lt_module_cmds_CXX
23694 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23695
23696 # Whether we are building with GNU ld or not.
23697 with_gnu_ld=$lt_with_gnu_ld_CXX
23698
23699 # Flag that allows shared libraries with undefined symbols to be built.
23700 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23701
23702 # Flag that enforces no undefined symbols.
23703 no_undefined_flag=$lt_no_undefined_flag_CXX
23704
23705 # Flag to hardcode \$libdir into a binary during linking.
23706 # This must work even if \$libdir does not exist
23707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23708
23709 # Whether we need a single "-rpath" flag with a separated argument.
23710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23711
23712 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23713 # DIR into the resulting binary.
23714 hardcode_direct=$hardcode_direct_CXX
23715
23716 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23717 # DIR into the resulting binary and the resulting library dependency is
23718 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23719 # library is relocated.
23720 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23721
23722 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23723 # into the resulting binary.
23724 hardcode_minus_L=$hardcode_minus_L_CXX
23725
23726 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23727 # into the resulting binary.
23728 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23729
23730 # Set to "yes" if building a shared library automatically hardcodes DIR
23731 # into the library and all subsequent libraries and executables linked
23732 # against it.
23733 hardcode_automatic=$hardcode_automatic_CXX
23734
23735 # Set to yes if linker adds runtime paths of dependent libraries
23736 # to runtime path list.
23737 inherit_rpath=$inherit_rpath_CXX
23738
23739 # Whether libtool must link a program against all its dependency libraries.
23740 link_all_deplibs=$link_all_deplibs_CXX
23741
23742 # Set to "yes" if exported symbols are required.
23743 always_export_symbols=$always_export_symbols_CXX
23744
23745 # The commands to list exported symbols.
23746 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23747
23748 # Symbols that should not be listed in the preloaded symbols.
23749 exclude_expsyms=$lt_exclude_expsyms_CXX
23750
23751 # Symbols that must always be exported.
23752 include_expsyms=$lt_include_expsyms_CXX
23753
23754 # Commands necessary for linking programs (against libraries) with templates.
23755 prelink_cmds=$lt_prelink_cmds_CXX
23756
23757 # Commands necessary for finishing linking programs.
23758 postlink_cmds=$lt_postlink_cmds_CXX
23759
23760 # Specify filename containing input files.
23761 file_list_spec=$lt_file_list_spec_CXX
23762
23763 # How to hardcode a shared library path into an executable.
23764 hardcode_action=$hardcode_action_CXX
23765
23766 # The directories searched by this compiler when creating a shared library.
23767 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23768
23769 # Dependencies to place before and after the objects being linked to
23770 # create a shared library.
23771 predep_objects=$lt_predep_objects_CXX
23772 postdep_objects=$lt_postdep_objects_CXX
23773 predeps=$lt_predeps_CXX
23774 postdeps=$lt_postdeps_CXX
23775
23776 # The library search path used internally by the compiler when linking
23777 # a shared library.
23778 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23779
23780 # ### END LIBTOOL TAG CONFIG: CXX
23781 _LT_EOF
23782
23783 ;;
23784
23785 esac
23786 done # for ac_tag
23787
23788
23789 as_fn_exit 0
23790 _ACEOF
23791 ac_clean_files=$ac_clean_files_save
23792
23793 test $ac_write_fail = 0 ||
23794 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23795
23796
23797 # configure is writing to config.log, and then calls config.status.
23798 # config.status does its own redirection, appending to config.log.
23799 # Unfortunately, on DOS this fails, as config.log is still kept open
23800 # by configure, so config.status won't be able to write to it; its
23801 # output is simply discarded. So we exec the FD to /dev/null,
23802 # effectively closing config.log, so it can be properly (re)opened and
23803 # appended to by config.status. When coming back to configure, we
23804 # need to make the FD available again.
23805 if test "$no_create" != yes; then
23806 ac_cs_success=:
23807 ac_config_status_args=
23808 test "$silent" = yes &&
23809 ac_config_status_args="$ac_config_status_args --quiet"
23810 exec 5>/dev/null
23811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23812 exec 5>>config.log
23813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23814 # would make configure fail if this is the last instruction.
23815 $ac_cs_success || as_fn_exit 1
23816 fi
23817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23820 fi
23821