]> git.saurik.com Git - cycript.git/blob - configure
Upgrade to automake 1.15 (the latest one 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 SO
642 LTFLAGS
643 LTLIBGCC
644 LTLIBTERMCAP
645 LTLIBREADLINE
646 CY_OBJECTIVEC_FALSE
647 CY_OBJECTIVEC_TRUE
648 CY_JAVA_FALSE
649 CY_JAVA_TRUE
650 LTOBJECTIVEC
651 GNUSTEP_CONFIG
652 CY_OBJECTIVEC
653 LTJAVA
654 CY_JAVA
655 LTLIBFFI
656 LIBFFI_LIBS
657 LIBFFI_CFLAGS
658 CY_EXECUTE_FALSE
659 CY_EXECUTE_TRUE
660 CY_ATTACH_FALSE
661 CY_ATTACH_TRUE
662 CY_CONSOLE_FALSE
663 CY_CONSOLE_TRUE
664 LTJAVASCRIPTCORE
665 WEBKIT_LIBS
666 WEBKIT_CFLAGS
667 CY_EXECUTE
668 CY_ARCH
669 PTHREAD_CFLAGS
670 PTHREAD_LIBS
671 PTHREAD_CC
672 ax_pthread_config
673 GNUTAR
674 GPERF
675 FLEX
676 BISON
677 TIME
678 GIT
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 HAVE_CXX11
683 CXXCPP
684 CPP
685 LT_SYS_LIBRARY_PATH
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 MANIFEST_TOOL
692 RANLIB
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 ac_ct_AR
714 AR
715 am__fastdepOBJCXX_FALSE
716 am__fastdepOBJCXX_TRUE
717 OBJCXXDEPMODE
718 ac_ct_OBJCXX
719 OBJCXXFLAGS
720 OBJCXX
721 am__fastdepCXX_FALSE
722 am__fastdepCXX_TRUE
723 CXXDEPMODE
724 ac_ct_CXX
725 CXXFLAGS
726 CXX
727 am__fastdepCC_FALSE
728 am__fastdepCC_TRUE
729 CCDEPMODE
730 am__nodep
731 AMDEPBACKSLASH
732 AMDEP_FALSE
733 AMDEP_TRUE
734 am__quote
735 am__include
736 DEPDIR
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 AM_BACKSLASH
748 AM_DEFAULT_VERBOSITY
749 AM_DEFAULT_V
750 AM_V
751 am__untar
752 am__tar
753 AMTAR
754 am__leading_dot
755 SET_MAKE
756 AWK
757 mkdir_p
758 MKDIR_P
759 INSTALL_STRIP_PROGRAM
760 STRIP
761 install_sh
762 MAKEINFO
763 AUTOHEADER
764 AUTOMAKE
765 AUTOCONF
766 ACLOCAL
767 VERSION
768 PACKAGE
769 CYGPATH_W
770 am__isrc
771 INSTALL_DATA
772 INSTALL_SCRIPT
773 INSTALL_PROGRAM
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_dependency_tracking
818 enable_static
819 enable_shared
820 with_pic
821 enable_fast_install
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 enable_javascript
827 enable_console
828 enable_attach
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CXX
839 CXXFLAGS
840 CCC
841 OBJCXX
842 OBJCXXFLAGS
843 LT_SYS_LIBRARY_PATH
844 CPP
845 CXXCPP
846 PKG_CONFIG
847 PKG_CONFIG_PATH
848 PKG_CONFIG_LIBDIR
849 BISON
850 FLEX
851 GPERF
852 GNUTAR
853 WEBKIT_CFLAGS
854 WEBKIT_LIBS
855 LIBFFI_CFLAGS
856 LIBFFI_LIBS
857 GNUSTEP_CONFIG'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of Cycript 0.9:";;
1469 esac
1470 cat <<\_ACEOF
1471
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-static[=PKGS] build static libraries [default=no]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-javascript[=ENGINE]
1491 use a JavaScript runtime (currently the only
1492 available option for ENGINE is JavaScriptCore)
1493 [default=yes]
1494 --disable-console disable console
1495 --disable-attach disable attach
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CXX C++ compiler command
1518 CXXFLAGS C++ compiler flags
1519 OBJCXX Objective C++ compiler command
1520 OBJCXXFLAGS Objective C++ compiler flags
1521 LT_SYS_LIBRARY_PATH
1522 User-defined run-time library search path.
1523 CPP C preprocessor
1524 CXXCPP C++ preprocessor
1525 PKG_CONFIG path to pkg-config utility
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
1530 BISON GNU Project parser generator (yacc replacement)
1531 FLEX the fast lexical analyser generator
1532 GPERF perfect hash function generator
1533 GNUTAR a very sticky lump of files
1534 WEBKIT_CFLAGS
1535 C compiler flags for WEBKIT, overriding pkg-config
1536 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1537 GNUSTEP_CONFIG
1538 prints information about the current gnustep installation
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to <saurik@saurik.com>.
1544 Cycript home page: <http://www.cycript.org/>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606 cat <<\_ACEOF
1607 Cycript configure 0.9
1608 generated by GNU Autoconf 2.69
1609
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613
1614 Copyright (C) 2009-2014 Jay Freeman (saurik)
1615 _ACEOF
1616 exit
1617 fi
1618
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1622
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_compile
1660
1661 # ac_fn_cxx_try_compile LINENO
1662 # ----------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_cxx_try_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_cxx_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697 } # ac_fn_cxx_try_compile
1698
1699 # ac_fn_objcxx_try_compile LINENO
1700 # -------------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_objcxx_try_compile ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_objcxx_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_objcxx_try_compile
1736
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 test -x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_link
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_header_compile
1813
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_cpp ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 }; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_cpp
1850
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=$ac_status
1886 fi
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_c_try_run
1892
1893 # ac_fn_c_check_func LINENO FUNC VAR
1894 # ----------------------------------
1895 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1896 ac_fn_c_check_func ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908 #define $2 innocuous_$2
1909
1910 /* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1914
1915 #ifdef __STDC__
1916 # include <limits.h>
1917 #else
1918 # include <assert.h>
1919 #endif
1920
1921 #undef $2
1922
1923 /* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1926 #ifdef __cplusplus
1927 extern "C"
1928 #endif
1929 char $2 ();
1930 /* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933 #if defined __stub_$2 || defined __stub___$2
1934 choke me
1935 #endif
1936
1937 int
1938 main ()
1939 {
1940 return $2 ();
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_link "$LINENO"; then :
1946 eval "$3=yes"
1947 else
1948 eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958 } # ac_fn_c_check_func
1959
1960 # ac_fn_cxx_try_cpp LINENO
1961 # ------------------------
1962 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963 ac_fn_cxx_try_cpp ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } > conftest.i && {
1982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_cxx_try_cpp
1996
1997 # ac_fn_cxx_try_link LINENO
1998 # -------------------------
1999 # Try to link conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_link ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005 case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
2024 test -x conftest$ac_exeext
2025 }; then :
2026 ac_retval=0
2027 else
2028 $as_echo "$as_me: failed program was:" >&5
2029 sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032 fi
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2040
2041 } # ac_fn_cxx_try_link
2042
2043 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2044 # ---------------------------------------------------------
2045 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046 # the include files in INCLUDES and setting the cache variable VAR
2047 # accordingly.
2048 ac_fn_cxx_check_header_mongrel ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if eval \${$3+:} false; then :
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056 fi
2057 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; }
2060 else
2061 # Is the header compilable?
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063 $as_echo_n "checking $2 usability... " >&6; }
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $4
2067 #include <$2>
2068 _ACEOF
2069 if ac_fn_cxx_try_compile "$LINENO"; then :
2070 ac_header_compiler=yes
2071 else
2072 ac_header_compiler=no
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076 $as_echo "$ac_header_compiler" >&6; }
2077
2078 # Is the header present?
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080 $as_echo_n "checking $2 presence... " >&6; }
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_cxx_try_cpp "$LINENO"; then :
2086 ac_header_preproc=yes
2087 else
2088 ac_header_preproc=no
2089 fi
2090 rm -f conftest.err conftest.i conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092 $as_echo "$ac_header_preproc" >&6; }
2093
2094 # So? What about this header?
2095 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2096 yes:no: )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ;;
2102 no:yes:* )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2106 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2110 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113 ( $as_echo "## -------------------------------- ##
2114 ## Report this to saurik@saurik.com ##
2115 ## -------------------------------- ##"
2116 ) | sed "s/^/$as_me: WARNING: /" >&2
2117 ;;
2118 esac
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 eval "$3=\$ac_header_compiler"
2125 fi
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131
2132 } # ac_fn_cxx_check_header_mongrel
2133
2134 # ac_fn_objcxx_try_link LINENO
2135 # ----------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_objcxx_try_link ()
2138 {
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_objcxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 test -x conftest$ac_exeext
2162 }; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169 fi
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 as_fn_set_status $ac_retval
2177
2178 } # ac_fn_objcxx_try_link
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by Cycript $as_me 0.9, which was
2184 generated by GNU Autoconf 2.69. Invocation command line was
2185
2186 $ $0 $@
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2221 done
2222 IFS=$as_save_IFS
2223
2224 } >&5
2225
2226 cat >&5 <<_ACEOF
2227
2228
2229 ## ----------- ##
2230 ## Core tests. ##
2231 ## ----------- ##
2232
2233 _ACEOF
2234
2235
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_configure_args=
2242 ac_configure_args0=
2243 ac_configure_args1=
2244 ac_must_keep_next=false
2245 for ac_pass in 1 2
2246 do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280 done
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2283
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2297 echo
2298 # The following way of writing the cache mishandles newlines in values,
2299 (
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in #(
2303 *${as_nl}*)
2304 case $ac_var in #(
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307 esac
2308 case $ac_var in #(
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2312 esac ;;
2313 esac
2314 done
2315 (set) 2>&1 |
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2318 sed -n \
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321 ;; #(
2322 *)
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ;;
2325 esac |
2326 sort
2327 )
2328 echo
2329
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2333 echo
2334 for ac_var in $ac_subst_vars
2335 do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2343
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358 fi
2359
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##"
2364 echo
2365 cat confdefs.h
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2371 } >&5
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 exit $exit_status
2375 ' 0
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 done
2379 ac_signal=0
2380
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2383
2384 $as_echo "/* confdefs.h */" > confdefs.h
2385
2386 # Predefined preprocessor variables.
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2410 _ACEOF
2411
2412
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2415 ac_site_file1=NONE
2416 ac_site_file2=NONE
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2423 esac
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2427 else
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2430 fi
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 do
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2438 . "$ac_site_file" \
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2443 fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461 fi
2462
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532
2533
2534 ac_aux_dir=
2535 for ac_dir in . "$srcdir"/.; do
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2548 fi
2549 done
2550 if test -z "$ac_aux_dir"; then
2551 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2552 fi
2553
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
2563
2564 ac_config_headers="$ac_config_headers config.h"
2565
2566
2567 am__api_version='1.15'
2568
2569 # Find a good install program. We prefer a C program (faster),
2570 # so one script is as good as another. But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2575 # AIX /bin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # OS/2's system install, which has a completely different semantic
2581 # ./install, which can be erroneously created by make from ./install.sh.
2582 # Reject install programs that cannot install multiple files.
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2585 if test -z "$INSTALL"; then
2586 if ${ac_cv_path_install+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 # Account for people who put trailing slashes in PATH elements.
2595 case $as_dir/ in #((
2596 ./ | .// | /[cC]/* | \
2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2599 /usr/ucb/* ) ;;
2600 *)
2601 # OSF1 and SCO ODT 3.0 have their own names for install.
2602 # Don't use installbsd from OSF since it installs stuff as root
2603 # by default.
2604 for ac_prog in ginstall scoinst install; do
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2607 if test $ac_prog = install &&
2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # AIX install. It has an incompatible calling convention.
2610 :
2611 elif test $ac_prog = install &&
2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # program-specific install script used by HP pwplus--don't use.
2614 :
2615 else
2616 rm -rf conftest.one conftest.two conftest.dir
2617 echo one > conftest.one
2618 echo two > conftest.two
2619 mkdir conftest.dir
2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2621 test -s conftest.one && test -s conftest.two &&
2622 test -s conftest.dir/conftest.one &&
2623 test -s conftest.dir/conftest.two
2624 then
2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2626 break 3
2627 fi
2628 fi
2629 fi
2630 done
2631 done
2632 ;;
2633 esac
2634
2635 done
2636 IFS=$as_save_IFS
2637
2638 rm -rf conftest.one conftest.two conftest.dir
2639
2640 fi
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL=$ac_cv_path_install
2643 else
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 INSTALL=$ac_install_sh
2649 fi
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2652 $as_echo "$INSTALL" >&6; }
2653
2654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2655 # It thinks the first close brace ends the variable substitution.
2656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2657
2658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2659
2660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2663 $as_echo_n "checking whether build environment is sane... " >&6; }
2664 # Reject unsafe characters in $srcdir or the absolute working directory
2665 # name. Accept space and tab only in the latter.
2666 am_lf='
2667 '
2668 case `pwd` in
2669 *[\\\"\#\$\&\'\`$am_lf]*)
2670 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2671 esac
2672 case $srcdir in
2673 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2674 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2675 esac
2676
2677 # Do 'set' in a subshell so we don't clobber the current shell's
2678 # arguments. Must try -L first in case configure is actually a
2679 # symlink; some systems play weird games with the mod time of symlinks
2680 # (eg FreeBSD returns the mod time of the symlink's containing
2681 # directory).
2682 if (
2683 am_has_slept=no
2684 for am_try in 1 2; do
2685 echo "timestamp, slept: $am_has_slept" > conftest.file
2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2687 if test "$*" = "X"; then
2688 # -L didn't work.
2689 set X `ls -t "$srcdir/configure" conftest.file`
2690 fi
2691 if test "$*" != "X $srcdir/configure conftest.file" \
2692 && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694 # If neither matched, then we have a broken ls. This can happen
2695 # if, for instance, CONFIG_SHELL is bash and it inherits a
2696 # broken ls alias from the environment. This has actually
2697 # happened. Such a system could not be considered "sane".
2698 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2699 alias in your environment" "$LINENO" 5
2700 fi
2701 if test "$2" = conftest.file || test $am_try -eq 2; then
2702 break
2703 fi
2704 # Just in case.
2705 sleep 1
2706 am_has_slept=yes
2707 done
2708 test "$2" = conftest.file
2709 )
2710 then
2711 # Ok.
2712 :
2713 else
2714 as_fn_error $? "newly created file is older than distributed files!
2715 Check your system clock" "$LINENO" 5
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2719 # If we didn't sleep, we still need to ensure time stamps of config.status and
2720 # generated files are strictly newer.
2721 am_sleep_pid=
2722 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2723 ( sleep 1 ) &
2724 am_sleep_pid=$!
2725 fi
2726
2727 rm -f conftest.file
2728
2729 test "$program_prefix" != NONE &&
2730 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2731 # Use a double $ so make ignores it.
2732 test "$program_suffix" != NONE &&
2733 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2734 # Double any \ or $.
2735 # By default was `s,x,x', remove it if useless.
2736 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2737 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738
2739 # Expand $ac_aux_dir to an absolute path.
2740 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2741
2742 if test x"${MISSING+set}" != xset; then
2743 case $am_aux_dir in
2744 *\ * | *\ *)
2745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 *)
2747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2748 esac
2749 fi
2750 # Use eval to expand $SHELL
2751 if eval "$MISSING --is-lightweight"; then
2752 am_missing_run="$MISSING "
2753 else
2754 am_missing_run=
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2756 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2757 fi
2758
2759 if test x"${install_sh+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 *)
2764 install_sh="\${SHELL} $am_aux_dir/install-sh"
2765 esac
2766 fi
2767
2768 # Installed binaries are usually stripped using 'strip' when the user
2769 # run "make install-strip". However 'strip' might not be the right
2770 # tool to use in cross-compilation environments, therefore Automake
2771 # will honor the 'STRIP' environment variable to overrule this program.
2772 if test "$cross_compiling" != no; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$STRIP"; then
2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 STRIP=$ac_cv_prog_STRIP
2802 if test -n "$STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2804 $as_echo "$STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$ac_cv_prog_STRIP"; then
2813 ac_ct_STRIP=$STRIP
2814 # Extract the first word of "strip", so it can be a program name with args.
2815 set dummy strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_STRIP"; then
2822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_STRIP="strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2842 if test -n "$ac_ct_STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2844 $as_echo "$ac_ct_STRIP" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850 if test "x$ac_ct_STRIP" = x; then
2851 STRIP=":"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 STRIP=$ac_ct_STRIP
2860 fi
2861 else
2862 STRIP="$ac_cv_prog_STRIP"
2863 fi
2864
2865 fi
2866 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2869 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2870 if test -z "$MKDIR_P"; then
2871 if ${ac_cv_path_mkdir+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_prog in mkdir gmkdir; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2882 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2883 'mkdir (GNU coreutils) '* | \
2884 'mkdir (coreutils) '* | \
2885 'mkdir (fileutils) '4.1*)
2886 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2887 break 3;;
2888 esac
2889 done
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895
2896 test -d ./--version && rmdir ./--version
2897 if test "${ac_cv_path_mkdir+set}" = set; then
2898 MKDIR_P="$ac_cv_path_mkdir -p"
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for MKDIR_P within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 MKDIR_P="$ac_install_sh -d"
2905 fi
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2908 $as_echo "$MKDIR_P" >&6; }
2909
2910 for ac_prog in gawk mawk nawk awk
2911 do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_AWK+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 AWK=$ac_cv_prog_AWK
2940 if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942 $as_echo "$AWK" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 test -n "$AWK" && break
2950 done
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2954 set x ${MAKE-make}
2955 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 cat >conftest.make <<\_ACEOF
2960 SHELL = /bin/sh
2961 all:
2962 @echo '@@@%%%=$(MAKE)=@@@%%%'
2963 _ACEOF
2964 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2966 *@@@%%%=?*=@@@%%%*)
2967 eval ac_cv_prog_make_${ac_make}_set=yes;;
2968 *)
2969 eval ac_cv_prog_make_${ac_make}_set=no;;
2970 esac
2971 rm -f conftest.make
2972 fi
2973 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2976 SET_MAKE=
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 SET_MAKE="MAKE=${MAKE-make}"
2981 fi
2982
2983 rm -rf .tst 2>/dev/null
2984 mkdir .tst 2>/dev/null
2985 if test -d .tst; then
2986 am__leading_dot=.
2987 else
2988 am__leading_dot=_
2989 fi
2990 rmdir .tst 2>/dev/null
2991
2992 # Check whether --enable-silent-rules was given.
2993 if test "${enable_silent_rules+set}" = set; then :
2994 enableval=$enable_silent_rules;
2995 fi
2996
2997 case $enable_silent_rules in # (((
2998 yes) AM_DEFAULT_VERBOSITY=0;;
2999 no) AM_DEFAULT_VERBOSITY=1;;
3000 *) AM_DEFAULT_VERBOSITY=1;;
3001 esac
3002 am_make=${MAKE-make}
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3004 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3005 if ${am_cv_make_support_nested_variables+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if $as_echo 'TRUE=$(BAR$(V))
3009 BAR0=false
3010 BAR1=true
3011 V=1
3012 am__doit:
3013 @$(TRUE)
3014 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016 else
3017 am_cv_make_support_nested_variables=no
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3021 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3022 if test $am_cv_make_support_nested_variables = yes; then
3023 AM_V='$(V)'
3024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3025 else
3026 AM_V=$AM_DEFAULT_VERBOSITY
3027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028 fi
3029 AM_BACKSLASH='\'
3030
3031 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3032 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3033 # is not polluted with repeated "-I."
3034 am__isrc=' -I$(srcdir)'
3035 # test to see if srcdir already configured
3036 if test -f $srcdir/config.status; then
3037 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 fi
3039 fi
3040
3041 # test whether we have cygpath
3042 if test -z "$CYGPATH_W"; then
3043 if (cygpath --version) >/dev/null 2>/dev/null; then
3044 CYGPATH_W='cygpath -w'
3045 else
3046 CYGPATH_W=echo
3047 fi
3048 fi
3049
3050
3051 # Define the identity of the package.
3052 PACKAGE='cycript'
3053 VERSION='0.9'
3054
3055
3056 cat >>confdefs.h <<_ACEOF
3057 #define PACKAGE "$PACKAGE"
3058 _ACEOF
3059
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define VERSION "$VERSION"
3063 _ACEOF
3064
3065 # Some tools Automake needs.
3066
3067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3068
3069
3070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3071
3072
3073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3074
3075
3076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3077
3078
3079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3080
3081 # For better backward compatibility. To be removed once Automake 1.9.x
3082 # dies out for good. For more background, see:
3083 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3084 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3085 mkdir_p='$(MKDIR_P)'
3086
3087 # We need awk for the "check" target (and possibly the TAP driver). The
3088 # system "awk" is bad on some platforms.
3089 # Always define AMTAR for backward compatibility. Yes, it's still used
3090 # in the wild :-( We should find a proper way to deprecate it ...
3091 AMTAR='$${TAR-tar}'
3092
3093
3094 # We'll loop over all known methods to create a tar archive until one works.
3095 _am_tools='gnutar pax cpio none'
3096
3097 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3098
3099
3100
3101
3102
3103
3104 # POSIX will say in a future version that running "rm -f" with no argument
3105 # is OK; and we want to be able to make that assumption in our Makefile
3106 # recipes. So use an aggressive probe to check that the usage we want is
3107 # actually supported "in the wild" to an acceptable degree.
3108 # See automake bug#10828.
3109 # To make any issue more visible, cause the running configure to be aborted
3110 # by default if the 'rm' program in use doesn't match our expectations; the
3111 # user can still override this though.
3112 if rm -f && rm -fr && rm -rf; then : OK; else
3113 cat >&2 <<'END'
3114 Oops!
3115
3116 Your 'rm' program seems unable to run without file operands specified
3117 on the command line, even when the '-f' option is present. This is contrary
3118 to the behaviour of most rm programs out there, and not conforming with
3119 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3120
3121 Please tell bug-automake@gnu.org about your system, including the value
3122 of your $PATH and any error possibly output before this message. This
3123 can help us improve future automake versions.
3124
3125 END
3126 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3127 echo 'Configuration will proceed anyway, since you have set the' >&2
3128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 echo >&2
3130 else
3131 cat >&2 <<'END'
3132 Aborting the configuration process, to ensure you take notice of the issue.
3133
3134 You can download and install GNU coreutils to get an 'rm' implementation
3135 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3136
3137 If you want to complete the configuration process using your problematic
3138 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3139 to "yes", and re-run configure.
3140
3141 END
3142 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3143 fi
3144 fi
3145
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3148 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3149 # Check whether --enable-maintainer-mode was given.
3150 if test "${enable_maintainer_mode+set}" = set; then :
3151 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3152 else
3153 USE_MAINTAINER_MODE=no
3154 fi
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3157 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3158 if test $USE_MAINTAINER_MODE = yes; then
3159 MAINTAINER_MODE_TRUE=
3160 MAINTAINER_MODE_FALSE='#'
3161 else
3162 MAINTAINER_MODE_TRUE='#'
3163 MAINTAINER_MODE_FALSE=
3164 fi
3165
3166 MAINT=$MAINTAINER_MODE_TRUE
3167
3168
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 if test -n "$ac_tool_prefix"; then
3176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213 fi
3214 if test -z "$ac_cv_prog_CC"; then
3215 ac_ct_CC=$CC
3216 # Extract the first word of "gcc", so it can be a program name with args.
3217 set dummy gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_ac_ct_CC="gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252 if test "x$ac_ct_CC" = x; then
3253 CC=""
3254 else
3255 case $cross_compiling:$ac_tool_warned in
3256 yes:)
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259 ac_tool_warned=yes ;;
3260 esac
3261 CC=$ac_ct_CC
3262 fi
3263 else
3264 CC="$ac_cv_prog_CC"
3265 fi
3266
3267 if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}cc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}cc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 fi
3308 if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310 set dummy cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 ac_prog_rejected=no
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3328 ac_prog_rejected=yes
3329 continue
3330 fi
3331 ac_cv_prog_CC="cc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 if test $ac_prog_rejected = yes; then
3340 # We found a bogon in the path, so make sure we never use it.
3341 set dummy $ac_cv_prog_CC
3342 shift
3343 if test $# != 0; then
3344 # We chose a different compiler from the bogus one.
3345 # However, it has the same basename, so the bogon will be chosen
3346 # first if we set CC to just the basename; use the full file name.
3347 shift
3348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 fi
3350 fi
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 for ac_prog in cl.exe
3367 do
3368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 test -n "$CC" && break
3406 done
3407 fi
3408 if test -z "$CC"; then
3409 ac_ct_CC=$CC
3410 for ac_prog in cl.exe
3411 do
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413 set dummy $ac_prog; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_ac_ct_CC="$ac_prog"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440 if test -n "$ac_ct_CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442 $as_echo "$ac_ct_CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 test -n "$ac_ct_CC" && break
3450 done
3451
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456 yes:)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3462 fi
3463 fi
3464
3465 fi
3466
3467
3468 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "no acceptable C compiler found in \$PATH
3471 See \`config.log' for more details" "$LINENO" 5; }
3472
3473 # Provide some information about the compiler.
3474 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475 set X $ac_compile
3476 ac_compiler=$2
3477 for ac_option in --version -v -V -qversion; do
3478 { { ac_try="$ac_compiler $ac_option >&5"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486 ac_status=$?
3487 if test -s conftest.err; then
3488 sed '10a\
3489 ... rest of stderr output deleted ...
3490 10q' conftest.err >conftest.er1
3491 cat conftest.er1 >&5
3492 fi
3493 rm -f conftest.er1 conftest.err
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496 done
3497
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504
3505 ;
3506 return 0;
3507 }
3508 _ACEOF
3509 ac_clean_files_save=$ac_clean_files
3510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511 # Try to create an executable without -o first, disregard a.out.
3512 # It will help us diagnose broken compilers, and finding out an intuition
3513 # of exeext.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515 $as_echo_n "checking whether the C compiler works... " >&6; }
3516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518 # The possible output files:
3519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521 ac_rmfiles=
3522 for ac_file in $ac_files
3523 do
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527 esac
3528 done
3529 rm -f $ac_rmfiles
3530
3531 if { { ac_try="$ac_link_default"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link_default") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3545 # so that the user can short-circuit this test for compilers unknown to
3546 # Autoconf.
3547 for ac_file in $ac_files ''
3548 do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552 ;;
3553 [ab].out )
3554 # We found the default executable, but exeext='' is most
3555 # certainly right.
3556 break;;
3557 *.* )
3558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559 then :; else
3560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 fi
3562 # We set ac_cv_exeext here because the later test for it is not
3563 # safe: cross compilers may not add the suffix if given an `-o'
3564 # argument, so we may need to know it at that point already.
3565 # Even if this section looks crufty: it has the advantage of
3566 # actually working.
3567 break;;
3568 * )
3569 break;;
3570 esac
3571 done
3572 test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574 else
3575 ac_file=''
3576 fi
3577 if test -z "$ac_file"; then :
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 $as_echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error 77 "C compiler cannot create executables
3586 See \`config.log' for more details" "$LINENO" 5; }
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3592 $as_echo_n "checking for C compiler default output file name... " >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594 $as_echo "$ac_file" >&6; }
3595 ac_exeext=$ac_cv_exeext
3596
3597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3598 ac_clean_files=$ac_clean_files_save
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3600 $as_echo_n "checking for suffix of executables... " >&6; }
3601 if { { ac_try="$ac_link"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_link") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3614 # work properly (i.e., refer to `conftest.exe'), while it won't with
3615 # `rm'.
3616 for ac_file in conftest.exe conftest conftest.*; do
3617 test -f "$ac_file" || continue
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 break;;
3622 * ) break;;
3623 esac
3624 done
3625 else
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 fi
3631 rm -f conftest conftest$ac_cv_exeext
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3633 $as_echo "$ac_cv_exeext" >&6; }
3634
3635 rm -f conftest.$ac_ext
3636 EXEEXT=$ac_cv_exeext
3637 ac_exeext=$EXEEXT
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640 #include <stdio.h>
3641 int
3642 main ()
3643 {
3644 FILE *f = fopen ("conftest.out", "w");
3645 return ferror (f) || fclose (f) != 0;
3646
3647 ;
3648 return 0;
3649 }
3650 _ACEOF
3651 ac_clean_files="$ac_clean_files conftest.out"
3652 # Check that the compiler produces executables we can run. If not, either
3653 # the compiler is broken, or we cross compile.
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3655 $as_echo_n "checking whether we are cross compiling... " >&6; }
3656 if test "$cross_compiling" != yes; then
3657 { { ac_try="$ac_link"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_link") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 if { ac_try='./conftest$ac_cv_exeext'
3669 { { case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; }; then
3679 cross_compiling=no
3680 else
3681 if test "$cross_compiling" = maybe; then
3682 cross_compiling=yes
3683 else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot run C compiled programs.
3687 If you meant to cross compile, use \`--host'.
3688 See \`config.log' for more details" "$LINENO" 5; }
3689 fi
3690 fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3693 $as_echo "$cross_compiling" >&6; }
3694
3695 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3696 ac_clean_files=$ac_clean_files_save
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698 $as_echo_n "checking for suffix of object files... " >&6; }
3699 if ${ac_cv_objext+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.o conftest.obj
3714 if { { ac_try="$ac_compile"
3715 case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compile") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }; then :
3725 for ac_file in conftest.o conftest.obj conftest.*; do
3726 test -f "$ac_file" || continue;
3727 case $ac_file in
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730 break;;
3731 esac
3732 done
3733 else
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error $? "cannot compute suffix of object files: cannot compile
3740 See \`config.log' for more details" "$LINENO" 5; }
3741 fi
3742 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745 $as_echo "$ac_cv_objext" >&6; }
3746 OBJEXT=$ac_cv_objext
3747 ac_objext=$OBJEXT
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750 if ${ac_cv_c_compiler_gnu+:} false; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759 #ifndef __GNUC__
3760 choke me
3761 #endif
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_compiler_gnu=yes
3769 else
3770 ac_compiler_gnu=no
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3774
3775 fi
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3778 if test $ac_compiler_gnu = yes; then
3779 GCC=yes
3780 else
3781 GCC=
3782 fi
3783 ac_test_CFLAGS=${CFLAGS+set}
3784 ac_save_CFLAGS=$CFLAGS
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3787 if ${ac_cv_prog_cc_g+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 ac_save_c_werror_flag=$ac_c_werror_flag
3791 ac_c_werror_flag=yes
3792 ac_cv_prog_cc_g=no
3793 CFLAGS="-g"
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
3807 else
3808 CFLAGS=""
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821
3822 else
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 CFLAGS="-g"
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_g=yes
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847 $as_echo "$ac_cv_prog_cc_g" >&6; }
3848 if test "$ac_test_CFLAGS" = set; then
3849 CFLAGS=$ac_save_CFLAGS
3850 elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3852 CFLAGS="-g -O2"
3853 else
3854 CFLAGS="-g"
3855 fi
3856 else
3857 if test "$GCC" = yes; then
3858 CFLAGS="-O2"
3859 else
3860 CFLAGS=
3861 fi
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865 if ${ac_cv_prog_cc_c89+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 ac_cv_prog_cc_c89=no
3869 ac_save_CC=$CC
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872 #include <stdarg.h>
3873 #include <stdio.h>
3874 struct stat;
3875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876 struct buf { int x; };
3877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878 static char *e (p, i)
3879 char **p;
3880 int i;
3881 {
3882 return p[i];
3883 }
3884 static char *f (char * (*g) (char **, int), char **p, ...)
3885 {
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3892 }
3893
3894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905 #define FOO(x) 'x'
3906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908 int test (int i, double x);
3909 struct s1 {int (*f) (int a);};
3910 struct s2 {int (*f) (double a);};
3911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912 int argc;
3913 char **argv;
3914 int
3915 main ()
3916 {
3917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924 do
3925 CC="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_c89=$ac_arg
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext
3930 test "x$ac_cv_prog_cc_c89" != "xno" && break
3931 done
3932 rm -f conftest.$ac_ext
3933 CC=$ac_save_CC
3934
3935 fi
3936 # AC_CACHE_VAL
3937 case "x$ac_cv_prog_cc_c89" in
3938 x)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940 $as_echo "none needed" >&6; } ;;
3941 xno)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943 $as_echo "unsupported" >&6; } ;;
3944 *)
3945 CC="$CC $ac_cv_prog_cc_c89"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948 esac
3949 if test "x$ac_cv_prog_cc_c89" != xno; then :
3950
3951 fi
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959 ac_ext=c
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966 if ${am_cv_prog_cc_c_o+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971
3972 int
3973 main ()
3974 {
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 # Make sure it works both with $CC and with simple cc.
3981 # Following AC_PROG_CC_C_O, we do the test twice because some
3982 # compilers refuse to overwrite an existing .o file with -o,
3983 # though they will create one.
3984 am_cv_prog_cc_c_o=yes
3985 for am_i in 1 2; do
3986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } \
3991 && test -f conftest2.$ac_objext; then
3992 : OK
3993 else
3994 am_cv_prog_cc_c_o=no
3995 break
3996 fi
3997 done
3998 rm -f core conftest*
3999 unset am_i
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4003 if test "$am_cv_prog_cc_c_o" != yes; then
4004 # Losing compiler, so override with the script.
4005 # FIXME: It is wrong to rewrite CC.
4006 # But if we don't then we get into trouble of one sort or another.
4007 # A longer-term fix would be to have automake use am__CC in this case,
4008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009 CC="$am_aux_dir/compile $CC"
4010 fi
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016
4017 DEPDIR="${am__leading_dot}deps"
4018
4019 ac_config_commands="$ac_config_commands depfiles"
4020
4021
4022 am_make=${MAKE-make}
4023 cat > confinc << 'END'
4024 am__doit:
4025 @echo this is the am__doit target
4026 .PHONY: am__doit
4027 END
4028 # If we don't find an include directive, just comment out the code.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4030 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4031 am__include="#"
4032 am__quote=
4033 _am_result=none
4034 # First try GNU make style include.
4035 echo "include confinc" > confmf
4036 # Ignore all kinds of additional output from 'make'.
4037 case `$am_make -s -f confmf 2> /dev/null` in #(
4038 *the\ am__doit\ target*)
4039 am__include=include
4040 am__quote=
4041 _am_result=GNU
4042 ;;
4043 esac
4044 # Now try BSD make style include.
4045 if test "$am__include" = "#"; then
4046 echo '.include "confinc"' > confmf
4047 case `$am_make -s -f confmf 2> /dev/null` in #(
4048 *the\ am__doit\ target*)
4049 am__include=.include
4050 am__quote="\""
4051 _am_result=BSD
4052 ;;
4053 esac
4054 fi
4055
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4058 $as_echo "$_am_result" >&6; }
4059 rm -f confinc confmf
4060
4061 # Check whether --enable-dependency-tracking was given.
4062 if test "${enable_dependency_tracking+set}" = set; then :
4063 enableval=$enable_dependency_tracking;
4064 fi
4065
4066 if test "x$enable_dependency_tracking" != xno; then
4067 am_depcomp="$ac_aux_dir/depcomp"
4068 AMDEPBACKSLASH='\'
4069 am__nodep='_no'
4070 fi
4071 if test "x$enable_dependency_tracking" != xno; then
4072 AMDEP_TRUE=
4073 AMDEP_FALSE='#'
4074 else
4075 AMDEP_TRUE='#'
4076 AMDEP_FALSE=
4077 fi
4078
4079
4080
4081 depcc="$CC" am_compiler_list=
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084 $as_echo_n "checking dependency style of $depcc... " >&6; }
4085 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089 # We make a subdir and do the tests there. Otherwise we can end up
4090 # making bogus files that we don't know about and never remove. For
4091 # instance it was reported that on HP-UX the gcc test will end up
4092 # making a dummy file named 'D' -- because '-MD' means "put the output
4093 # in D".
4094 rm -rf conftest.dir
4095 mkdir conftest.dir
4096 # Copy depcomp to subdir because otherwise we won't find it if we're
4097 # using a relative directory.
4098 cp "$am_depcomp" conftest.dir
4099 cd conftest.dir
4100 # We will build objects and dependencies in a subdirectory because
4101 # it helps to detect inapplicable dependency modes. For instance
4102 # both Tru64's cc and ICC support -MD to output dependencies as a
4103 # side effect of compilation, but ICC will put the dependencies in
4104 # the current directory while Tru64 will put them in the object
4105 # directory.
4106 mkdir sub
4107
4108 am_cv_CC_dependencies_compiler_type=none
4109 if test "$am_compiler_list" = ""; then
4110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111 fi
4112 am__universal=false
4113 case " $depcc " in #(
4114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115 esac
4116
4117 for depmode in $am_compiler_list; do
4118 # Setup a source with many dependencies, because some compilers
4119 # like to wrap large dependency lists on column 80 (with \), and
4120 # we should not choose a depcomp mode which is confused by this.
4121 #
4122 # We need to recreate these files for each test, as the compiler may
4123 # overwrite some of them when testing with obscure command lines.
4124 # This happens at least with the AIX C compiler.
4125 : > sub/conftest.c
4126 for i in 1 2 3 4 5 6; do
4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4129 # Solaris 10 /bin/sh.
4130 echo '/* dummy */' > sub/conftst$i.h
4131 done
4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
4134 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4135 # mode. It turns out that the SunPro C++ compiler does not properly
4136 # handle '-M -o', and we need to detect this. Also, some Intel
4137 # versions had trouble with output in subdirs.
4138 am__obj=sub/conftest.${OBJEXT-o}
4139 am__minus_obj="-o $am__obj"
4140 case $depmode in
4141 gcc)
4142 # This depmode causes a compiler race in universal mode.
4143 test "$am__universal" = false || continue
4144 ;;
4145 nosideeffect)
4146 # After this tag, mechanisms are not by side-effect, so they'll
4147 # only be used when explicitly requested.
4148 if test "x$enable_dependency_tracking" = xyes; then
4149 continue
4150 else
4151 break
4152 fi
4153 ;;
4154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155 # This compiler won't grok '-c -o', but also, the minuso test has
4156 # not run yet. These depmodes are late enough in the game, and
4157 # so weak that their functioning should not be impacted.
4158 am__obj=conftest.${OBJEXT-o}
4159 am__minus_obj=
4160 ;;
4161 none) break ;;
4162 esac
4163 if depmode=$depmode \
4164 source=sub/conftest.c object=$am__obj \
4165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167 >/dev/null 2>conftest.err &&
4168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172 # icc doesn't choke on unknown options, it will just issue warnings
4173 # or remarks (even with -Werror). So we grep stderr for any message
4174 # that says an option was ignored or not supported.
4175 # When given -MP, icc 7.0 and 7.1 complain thusly:
4176 # icc: Command line warning: ignoring option '-M'; no argument required
4177 # The diagnosis changed in icc 8.0:
4178 # icc: Command line remark: option '-MP' not supported
4179 if (grep 'ignoring option' conftest.err ||
4180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4181 am_cv_CC_dependencies_compiler_type=$depmode
4182 break
4183 fi
4184 fi
4185 done
4186
4187 cd ..
4188 rm -rf conftest.dir
4189 else
4190 am_cv_CC_dependencies_compiler_type=none
4191 fi
4192
4193 fi
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
4198 if
4199 test "x$enable_dependency_tracking" != xno \
4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201 am__fastdepCC_TRUE=
4202 am__fastdepCC_FALSE='#'
4203 else
4204 am__fastdepCC_TRUE='#'
4205 am__fastdepCC_FALSE=
4206 fi
4207
4208
4209 ac_ext=cpp
4210 ac_cpp='$CXXCPP $CPPFLAGS'
4211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4214 if test -z "$CXX"; then
4215 if test -n "$CCC"; then
4216 CXX=$CCC
4217 else
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4220 do
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_CXX+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$CXX"; then
4229 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 CXX=$ac_cv_prog_CXX
4249 if test -n "$CXX"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4251 $as_echo "$CXX" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258 test -n "$CXX" && break
4259 done
4260 fi
4261 if test -z "$CXX"; then
4262 ac_ct_CXX=$CXX
4263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4264 do
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_CXX="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286 done
4287 done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293 if test -n "$ac_ct_CXX"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4295 $as_echo "$ac_ct_CXX" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301
4302 test -n "$ac_ct_CXX" && break
4303 done
4304
4305 if test "x$ac_ct_CXX" = x; then
4306 CXX="g++"
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314 CXX=$ac_ct_CXX
4315 fi
4316 fi
4317
4318 fi
4319 fi
4320 # Provide some information about the compiler.
4321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4322 set X $ac_compile
4323 ac_compiler=$2
4324 for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336 ... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343 done
4344
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4346 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4347 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main ()
4355 {
4356 #ifndef __GNUC__
4357 choke me
4358 #endif
4359
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_cxx_try_compile "$LINENO"; then :
4365 ac_compiler_gnu=yes
4366 else
4367 ac_compiler_gnu=no
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4371
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4374 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4375 if test $ac_compiler_gnu = yes; then
4376 GXX=yes
4377 else
4378 GXX=
4379 fi
4380 ac_test_CXXFLAGS=${CXXFLAGS+set}
4381 ac_save_CXXFLAGS=$CXXFLAGS
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4383 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4384 if ${ac_cv_prog_cxx_g+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4388 ac_cxx_werror_flag=yes
4389 ac_cv_prog_cxx_g=no
4390 CXXFLAGS="-g"
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main ()
4396 {
4397
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_cxx_try_compile "$LINENO"; then :
4403 ac_cv_prog_cxx_g=yes
4404 else
4405 CXXFLAGS=""
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_cxx_try_compile "$LINENO"; then :
4418
4419 else
4420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4421 CXXFLAGS="-g"
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424
4425 int
4426 main ()
4427 {
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_cxx_try_compile "$LINENO"; then :
4434 ac_cv_prog_cxx_g=yes
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4444 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4445 if test "$ac_test_CXXFLAGS" = set; then
4446 CXXFLAGS=$ac_save_CXXFLAGS
4447 elif test $ac_cv_prog_cxx_g = yes; then
4448 if test "$GXX" = yes; then
4449 CXXFLAGS="-g -O2"
4450 else
4451 CXXFLAGS="-g"
4452 fi
4453 else
4454 if test "$GXX" = yes; then
4455 CXXFLAGS="-O2"
4456 else
4457 CXXFLAGS=
4458 fi
4459 fi
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465
4466 depcc="$CXX" am_compiler_list=
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469 $as_echo_n "checking dependency style of $depcc... " >&6; }
4470 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
4492
4493 am_cv_CXX_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496 fi
4497 am__universal=false
4498 case " $depcc " in #(
4499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 esac
4501
4502 for depmode in $am_compiler_list; do
4503 # Setup a source with many dependencies, because some compilers
4504 # like to wrap large dependency lists on column 80 (with \), and
4505 # we should not choose a depcomp mode which is confused by this.
4506 #
4507 # We need to recreate these files for each test, as the compiler may
4508 # overwrite some of them when testing with obscure command lines.
4509 # This happens at least with the AIX C compiler.
4510 : > sub/conftest.c
4511 for i in 1 2 3 4 5 6; do
4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4514 # Solaris 10 /bin/sh.
4515 echo '/* dummy */' > sub/conftst$i.h
4516 done
4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4518
4519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4520 # mode. It turns out that the SunPro C++ compiler does not properly
4521 # handle '-M -o', and we need to detect this. Also, some Intel
4522 # versions had trouble with output in subdirs.
4523 am__obj=sub/conftest.${OBJEXT-o}
4524 am__minus_obj="-o $am__obj"
4525 case $depmode in
4526 gcc)
4527 # This depmode causes a compiler race in universal mode.
4528 test "$am__universal" = false || continue
4529 ;;
4530 nosideeffect)
4531 # After this tag, mechanisms are not by side-effect, so they'll
4532 # only be used when explicitly requested.
4533 if test "x$enable_dependency_tracking" = xyes; then
4534 continue
4535 else
4536 break
4537 fi
4538 ;;
4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4540 # This compiler won't grok '-c -o', but also, the minuso test has
4541 # not run yet. These depmodes are late enough in the game, and
4542 # so weak that their functioning should not be impacted.
4543 am__obj=conftest.${OBJEXT-o}
4544 am__minus_obj=
4545 ;;
4546 none) break ;;
4547 esac
4548 if depmode=$depmode \
4549 source=sub/conftest.c object=$am__obj \
4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4552 >/dev/null 2>conftest.err &&
4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4557 # icc doesn't choke on unknown options, it will just issue warnings
4558 # or remarks (even with -Werror). So we grep stderr for any message
4559 # that says an option was ignored or not supported.
4560 # When given -MP, icc 7.0 and 7.1 complain thusly:
4561 # icc: Command line warning: ignoring option '-M'; no argument required
4562 # The diagnosis changed in icc 8.0:
4563 # icc: Command line remark: option '-MP' not supported
4564 if (grep 'ignoring option' conftest.err ||
4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4566 am_cv_CXX_dependencies_compiler_type=$depmode
4567 break
4568 fi
4569 fi
4570 done
4571
4572 cd ..
4573 rm -rf conftest.dir
4574 else
4575 am_cv_CXX_dependencies_compiler_type=none
4576 fi
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4580 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4581 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4582
4583 if
4584 test "x$enable_dependency_tracking" != xno \
4585 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4586 am__fastdepCXX_TRUE=
4587 am__fastdepCXX_FALSE='#'
4588 else
4589 am__fastdepCXX_TRUE='#'
4590 am__fastdepCXX_FALSE=
4591 fi
4592
4593
4594 ac_ext=mm
4595 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4596 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4599 if test -n "$ac_tool_prefix"; then
4600 for ac_prog in g++ objc++ objcxx c++ CXX
4601 do
4602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_OBJCXX+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$OBJCXX"; then
4610 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 OBJCXX=$ac_cv_prog_OBJCXX
4630 if test -n "$OBJCXX"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4632 $as_echo "$OBJCXX" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 test -n "$OBJCXX" && break
4640 done
4641 fi
4642 if test -z "$OBJCXX"; then
4643 ac_ct_OBJCXX=$OBJCXX
4644 for ac_prog in g++ objc++ objcxx c++ CXX
4645 do
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$ac_ct_OBJCXX"; then
4654 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4674 if test -n "$ac_ct_OBJCXX"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4676 $as_echo "$ac_ct_OBJCXX" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 test -n "$ac_ct_OBJCXX" && break
4684 done
4685
4686 if test "x$ac_ct_OBJCXX" = x; then
4687 OBJCXX="g++"
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695 OBJCXX=$ac_ct_OBJCXX
4696 fi
4697 fi
4698
4699 # Provide some information about the compiler.
4700 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4701 set X $ac_compile
4702 ac_compiler=$2
4703 for ac_option in --version -v -V -qversion; do
4704 { { ac_try="$ac_compiler $ac_option >&5"
4705 case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4712 ac_status=$?
4713 if test -s conftest.err; then
4714 sed '10a\
4715 ... rest of stderr output deleted ...
4716 10q' conftest.err >conftest.er1
4717 cat conftest.er1 >&5
4718 fi
4719 rm -f conftest.er1 conftest.err
4720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721 test $ac_status = 0; }
4722 done
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4725 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4726 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731
4732 int
4733 main ()
4734 {
4735 #ifndef __GNUC__
4736 choke me
4737 #endif
4738
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 if ac_fn_objcxx_try_compile "$LINENO"; then :
4744 ac_compiler_gnu=yes
4745 else
4746 ac_compiler_gnu=no
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4750
4751 fi
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4753 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4754 if test $ac_compiler_gnu = yes; then
4755 GOBJCXX=yes
4756 else
4757 GOBJCXX=
4758 fi
4759 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4760 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4762 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4763 if ${ac_cv_prog_objcxx_g+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4767 ac_objcxx_werror_flag=yes
4768 ac_cv_prog_objcxx_g=no
4769 OBJCXXFLAGS="-g"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772
4773 int
4774 main ()
4775 {
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_objcxx_try_compile "$LINENO"; then :
4782 ac_cv_prog_objcxx_g=yes
4783 else
4784 OBJCXXFLAGS=""
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787
4788 int
4789 main ()
4790 {
4791
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_objcxx_try_compile "$LINENO"; then :
4797
4798 else
4799 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4800 OBJCXXFLAGS="-g"
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803
4804 int
4805 main ()
4806 {
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_objcxx_try_compile "$LINENO"; then :
4813 ac_cv_prog_objcxx_g=yes
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4821 fi
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4823 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4824 if test "$ac_test_OBJCXXFLAGS" = set; then
4825 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4826 elif test $ac_cv_prog_objcxx_g = yes; then
4827 if test "$GOBJCXX" = yes; then
4828 OBJCXXFLAGS="-g -O2"
4829 else
4830 OBJCXXFLAGS="-g"
4831 fi
4832 else
4833 if test "$GOBJCXX" = yes; then
4834 OBJCXXFLAGS="-O2"
4835 else
4836 OBJCXXFLAGS=
4837 fi
4838 fi
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844
4845 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4848 $as_echo_n "checking dependency style of $depcc... " >&6; }
4849 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4853 # We make a subdir and do the tests there. Otherwise we can end up
4854 # making bogus files that we don't know about and never remove. For
4855 # instance it was reported that on HP-UX the gcc test will end up
4856 # making a dummy file named 'D' -- because '-MD' means "put the output
4857 # in D".
4858 rm -rf conftest.dir
4859 mkdir conftest.dir
4860 # Copy depcomp to subdir because otherwise we won't find it if we're
4861 # using a relative directory.
4862 cp "$am_depcomp" conftest.dir
4863 cd conftest.dir
4864 # We will build objects and dependencies in a subdirectory because
4865 # it helps to detect inapplicable dependency modes. For instance
4866 # both Tru64's cc and ICC support -MD to output dependencies as a
4867 # side effect of compilation, but ICC will put the dependencies in
4868 # the current directory while Tru64 will put them in the object
4869 # directory.
4870 mkdir sub
4871
4872 am_cv_OBJCXX_dependencies_compiler_type=none
4873 if test "$am_compiler_list" = ""; then
4874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4875 fi
4876 am__universal=false
4877
4878
4879 for depmode in $am_compiler_list; do
4880 # Setup a source with many dependencies, because some compilers
4881 # like to wrap large dependency lists on column 80 (with \), and
4882 # we should not choose a depcomp mode which is confused by this.
4883 #
4884 # We need to recreate these files for each test, as the compiler may
4885 # overwrite some of them when testing with obscure command lines.
4886 # This happens at least with the AIX C compiler.
4887 : > sub/conftest.c
4888 for i in 1 2 3 4 5 6; do
4889 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4890 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4891 # Solaris 10 /bin/sh.
4892 echo '/* dummy */' > sub/conftst$i.h
4893 done
4894 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4895
4896 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4897 # mode. It turns out that the SunPro C++ compiler does not properly
4898 # handle '-M -o', and we need to detect this. Also, some Intel
4899 # versions had trouble with output in subdirs.
4900 am__obj=sub/conftest.${OBJEXT-o}
4901 am__minus_obj="-o $am__obj"
4902 case $depmode in
4903 gcc)
4904 # This depmode causes a compiler race in universal mode.
4905 test "$am__universal" = false || continue
4906 ;;
4907 nosideeffect)
4908 # After this tag, mechanisms are not by side-effect, so they'll
4909 # only be used when explicitly requested.
4910 if test "x$enable_dependency_tracking" = xyes; then
4911 continue
4912 else
4913 break
4914 fi
4915 ;;
4916 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4917 # This compiler won't grok '-c -o', but also, the minuso test has
4918 # not run yet. These depmodes are late enough in the game, and
4919 # so weak that their functioning should not be impacted.
4920 am__obj=conftest.${OBJEXT-o}
4921 am__minus_obj=
4922 ;;
4923 none) break ;;
4924 esac
4925 if depmode=$depmode \
4926 source=sub/conftest.c object=$am__obj \
4927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4928 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4929 >/dev/null 2>conftest.err &&
4930 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4932 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4933 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4934 # icc doesn't choke on unknown options, it will just issue warnings
4935 # or remarks (even with -Werror). So we grep stderr for any message
4936 # that says an option was ignored or not supported.
4937 # When given -MP, icc 7.0 and 7.1 complain thusly:
4938 # icc: Command line warning: ignoring option '-M'; no argument required
4939 # The diagnosis changed in icc 8.0:
4940 # icc: Command line remark: option '-MP' not supported
4941 if (grep 'ignoring option' conftest.err ||
4942 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4943 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4944 break
4945 fi
4946 fi
4947 done
4948
4949 cd ..
4950 rm -rf conftest.dir
4951 else
4952 am_cv_OBJCXX_dependencies_compiler_type=none
4953 fi
4954
4955 fi
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4957 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4958 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4959
4960 if
4961 test "x$enable_dependency_tracking" != xno \
4962 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4963 am__fastdepOBJCXX_TRUE=
4964 am__fastdepOBJCXX_FALSE='#'
4965 else
4966 am__fastdepOBJCXX_TRUE='#'
4967 am__fastdepOBJCXX_FALSE=
4968 fi
4969
4970
4971
4972
4973 if test -n "$ac_tool_prefix"; then
4974 for ac_prog in ar lib "link -lib"
4975 do
4976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_AR+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 AR=$ac_cv_prog_AR
5004 if test -n "$AR"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5006 $as_echo "$AR" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 test -n "$AR" && break
5014 done
5015 fi
5016 if test -z "$AR"; then
5017 ac_ct_AR=$AR
5018 for ac_prog in ar lib "link -lib"
5019 do
5020 # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$ac_ct_AR"; then
5028 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_AR="$ac_prog"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5048 if test -n "$ac_ct_AR"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5050 $as_echo "$ac_ct_AR" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057 test -n "$ac_ct_AR" && break
5058 done
5059
5060 if test "x$ac_ct_AR" = x; then
5061 AR="false"
5062 else
5063 case $cross_compiling:$ac_tool_warned in
5064 yes:)
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067 ac_tool_warned=yes ;;
5068 esac
5069 AR=$ac_ct_AR
5070 fi
5071 fi
5072
5073 : ${AR=ar}
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5076 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5077 if ${am_cv_ar_interface+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 am_cv_ar_interface=ar
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 int some_variable = 0;
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"; then :
5092 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5094 (eval $am_ar_try) 2>&5
5095 ac_status=$?
5096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5097 test $ac_status = 0; }
5098 if test "$ac_status" -eq 0; then
5099 am_cv_ar_interface=ar
5100 else
5101 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5103 (eval $am_ar_try) 2>&5
5104 ac_status=$?
5105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5106 test $ac_status = 0; }
5107 if test "$ac_status" -eq 0; then
5108 am_cv_ar_interface=lib
5109 else
5110 am_cv_ar_interface=unknown
5111 fi
5112 fi
5113 rm -f conftest.lib libconftest.a
5114
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 ac_ext=c
5118 ac_cpp='$CPP $CPPFLAGS'
5119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5125 $as_echo "$am_cv_ar_interface" >&6; }
5126
5127 case $am_cv_ar_interface in
5128 ar)
5129 ;;
5130 lib)
5131 # Microsoft lib, so override with the ar-lib wrapper script.
5132 # FIXME: It is wrong to rewrite AR.
5133 # But if we don't then we get into trouble of one sort or another.
5134 # A longer-term fix would be to have automake use am__AR in this case,
5135 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5136 # similar.
5137 AR="$am_aux_dir/ar-lib $AR"
5138 ;;
5139 unknown)
5140 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5141 ;;
5142 esac
5143
5144
5145
5146 case `pwd` in
5147 *\ * | *\ *)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5149 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5150 esac
5151
5152
5153
5154 macro_version='2.4.6'
5155 macro_revision='2.4.6'
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169 ltmain=$ac_aux_dir/ltmain.sh
5170
5171 # Make sure we can run config.sub.
5172 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5173 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5176 $as_echo_n "checking build system type... " >&6; }
5177 if ${ac_cv_build+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 ac_build_alias=$build_alias
5181 test "x$ac_build_alias" = x &&
5182 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5183 test "x$ac_build_alias" = x &&
5184 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5185 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5186 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5187
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5190 $as_echo "$ac_cv_build" >&6; }
5191 case $ac_cv_build in
5192 *-*-*) ;;
5193 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5194 esac
5195 build=$ac_cv_build
5196 ac_save_IFS=$IFS; IFS='-'
5197 set x $ac_cv_build
5198 shift
5199 build_cpu=$1
5200 build_vendor=$2
5201 shift; shift
5202 # Remember, the first character of IFS is used to create $*,
5203 # except with old shells:
5204 build_os=$*
5205 IFS=$ac_save_IFS
5206 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5210 $as_echo_n "checking host system type... " >&6; }
5211 if ${ac_cv_host+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test "x$host_alias" = x; then
5215 ac_cv_host=$ac_cv_build
5216 else
5217 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5219 fi
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5223 $as_echo "$ac_cv_host" >&6; }
5224 case $ac_cv_host in
5225 *-*-*) ;;
5226 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5227 esac
5228 host=$ac_cv_host
5229 ac_save_IFS=$IFS; IFS='-'
5230 set x $ac_cv_host
5231 shift
5232 host_cpu=$1
5233 host_vendor=$2
5234 shift; shift
5235 # Remember, the first character of IFS is used to create $*,
5236 # except with old shells:
5237 host_os=$*
5238 IFS=$ac_save_IFS
5239 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5240
5241
5242 # Backslashify metacharacters that are still active within
5243 # double-quoted strings.
5244 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5245
5246 # Same as above, but do not quote variable references.
5247 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5248
5249 # Sed substitution to delay expansion of an escaped shell variable in a
5250 # double_quote_subst'ed string.
5251 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5252
5253 # Sed substitution to delay expansion of an escaped single quote.
5254 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5255
5256 # Sed substitution to avoid accidental globbing in evaled expressions
5257 no_glob_subst='s/\*/\\\*/g'
5258
5259 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5260 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5261 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5264 $as_echo_n "checking how to print strings... " >&6; }
5265 # Test print first, because it will be a builtin if present.
5266 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5267 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5268 ECHO='print -r --'
5269 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5270 ECHO='printf %s\n'
5271 else
5272 # Use this function as a fallback that always works.
5273 func_fallback_echo ()
5274 {
5275 eval 'cat <<_LTECHO_EOF
5276 $1
5277 _LTECHO_EOF'
5278 }
5279 ECHO='func_fallback_echo'
5280 fi
5281
5282 # func_echo_all arg...
5283 # Invoke $ECHO with all args, space-separated.
5284 func_echo_all ()
5285 {
5286 $ECHO ""
5287 }
5288
5289 case $ECHO in
5290 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5291 $as_echo "printf" >&6; } ;;
5292 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5293 $as_echo "print -r" >&6; } ;;
5294 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5295 $as_echo "cat" >&6; } ;;
5296 esac
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5312 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5313 if ${ac_cv_path_SED+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5317 for ac_i in 1 2 3 4 5 6 7; do
5318 ac_script="$ac_script$as_nl$ac_script"
5319 done
5320 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5321 { ac_script=; unset ac_script;}
5322 if test -z "$SED"; then
5323 ac_path_SED_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_prog in sed gsed; do
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5333 as_fn_executable_p "$ac_path_SED" || continue
5334 # Check for GNU ac_path_SED and select it if it is found.
5335 # Check for GNU $ac_path_SED
5336 case `"$ac_path_SED" --version 2>&1` in
5337 *GNU*)
5338 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5339 *)
5340 ac_count=0
5341 $as_echo_n 0123456789 >"conftest.in"
5342 while :
5343 do
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 $as_echo '' >> "conftest.nl"
5348 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_SED_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_SED="$ac_path_SED"
5354 ac_path_SED_max=$ac_count
5355 fi
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
5358 done
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362 $ac_path_SED_found && break 3
5363 done
5364 done
5365 done
5366 IFS=$as_save_IFS
5367 if test -z "$ac_cv_path_SED"; then
5368 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5369 fi
5370 else
5371 ac_cv_path_SED=$SED
5372 fi
5373
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5376 $as_echo "$ac_cv_path_SED" >&6; }
5377 SED="$ac_cv_path_SED"
5378 rm -f conftest.sed
5379
5380 test -z "$SED" && SED=sed
5381 Xsed="$SED -e 1s/^X//"
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5395 if ${ac_cv_path_GREP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -z "$GREP"; then
5399 ac_path_GREP_found=false
5400 # Loop through the user's path and test for each of PROGNAME-LIST
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5403 do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_prog in grep ggrep; do
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5409 as_fn_executable_p "$ac_path_GREP" || continue
5410 # Check for GNU ac_path_GREP and select it if it is found.
5411 # Check for GNU $ac_path_GREP
5412 case `"$ac_path_GREP" --version 2>&1` in
5413 *GNU*)
5414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5415 *)
5416 ac_count=0
5417 $as_echo_n 0123456789 >"conftest.in"
5418 while :
5419 do
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 $as_echo 'GREP' >> "conftest.nl"
5424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5426 as_fn_arith $ac_count + 1 && ac_count=$as_val
5427 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_GREP="$ac_path_GREP"
5430 ac_path_GREP_max=$ac_count
5431 fi
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5434 done
5435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5436 esac
5437
5438 $ac_path_GREP_found && break 3
5439 done
5440 done
5441 done
5442 IFS=$as_save_IFS
5443 if test -z "$ac_cv_path_GREP"; then
5444 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5445 fi
5446 else
5447 ac_cv_path_GREP=$GREP
5448 fi
5449
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5452 $as_echo "$ac_cv_path_GREP" >&6; }
5453 GREP="$ac_cv_path_GREP"
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5457 $as_echo_n "checking for egrep... " >&6; }
5458 if ${ac_cv_path_EGREP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5462 then ac_cv_path_EGREP="$GREP -E"
5463 else
5464 if test -z "$EGREP"; then
5465 ac_path_EGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in egrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_EGREP" || continue
5476 # Check for GNU ac_path_EGREP and select it if it is found.
5477 # Check for GNU $ac_path_EGREP
5478 case `"$ac_path_EGREP" --version 2>&1` in
5479 *GNU*)
5480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5481 *)
5482 ac_count=0
5483 $as_echo_n 0123456789 >"conftest.in"
5484 while :
5485 do
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'EGREP' >> "conftest.nl"
5490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_EGREP="$ac_path_EGREP"
5496 ac_path_EGREP_max=$ac_count
5497 fi
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5500 done
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504 $ac_path_EGREP_found && break 3
5505 done
5506 done
5507 done
5508 IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_EGREP"; then
5510 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511 fi
5512 else
5513 ac_cv_path_EGREP=$EGREP
5514 fi
5515
5516 fi
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5519 $as_echo "$ac_cv_path_EGREP" >&6; }
5520 EGREP="$ac_cv_path_EGREP"
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5524 $as_echo_n "checking for fgrep... " >&6; }
5525 if ${ac_cv_path_FGREP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5529 then ac_cv_path_FGREP="$GREP -F"
5530 else
5531 if test -z "$FGREP"; then
5532 ac_path_FGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_prog in fgrep; do
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5542 as_fn_executable_p "$ac_path_FGREP" || continue
5543 # Check for GNU ac_path_FGREP and select it if it is found.
5544 # Check for GNU $ac_path_FGREP
5545 case `"$ac_path_FGREP" --version 2>&1` in
5546 *GNU*)
5547 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5548 *)
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5552 do
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'FGREP' >> "conftest.nl"
5557 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5559 as_fn_arith $ac_count + 1 && ac_count=$as_val
5560 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_FGREP="$ac_path_FGREP"
5563 ac_path_FGREP_max=$ac_count
5564 fi
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5569 esac
5570
5571 $ac_path_FGREP_found && break 3
5572 done
5573 done
5574 done
5575 IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_FGREP"; then
5577 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5578 fi
5579 else
5580 ac_cv_path_FGREP=$FGREP
5581 fi
5582
5583 fi
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5586 $as_echo "$ac_cv_path_FGREP" >&6; }
5587 FGREP="$ac_cv_path_FGREP"
5588
5589
5590 test -z "$GREP" && GREP=grep
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 # Check whether --with-gnu-ld was given.
5611 if test "${with_gnu_ld+set}" = set; then :
5612 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5613 else
5614 with_gnu_ld=no
5615 fi
5616
5617 ac_prog=ld
5618 if test yes = "$GCC"; then
5619 # Check if gcc -print-prog-name=ld gives a path.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5621 $as_echo_n "checking for ld used by $CC... " >&6; }
5622 case $host in
5623 *-*-mingw*)
5624 # gcc leaves a trailing carriage return, which upsets mingw
5625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5626 *)
5627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5628 esac
5629 case $ac_prog in
5630 # Accept absolute paths.
5631 [\\/]* | ?:[\\/]*)
5632 re_direlt='/[^/][^/]*/\.\./'
5633 # Canonicalize the pathname of ld
5634 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5635 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5636 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5637 done
5638 test -z "$LD" && LD=$ac_prog
5639 ;;
5640 "")
5641 # If it fails, then pretend we aren't using GCC.
5642 ac_prog=ld
5643 ;;
5644 *)
5645 # If it is relative, then search for the first ld in PATH.
5646 with_gnu_ld=unknown
5647 ;;
5648 esac
5649 elif test yes = "$with_gnu_ld"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5651 $as_echo_n "checking for GNU ld... " >&6; }
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5654 $as_echo_n "checking for non-GNU ld... " >&6; }
5655 fi
5656 if ${lt_cv_path_LD+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -z "$LD"; then
5660 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5661 for ac_dir in $PATH; do
5662 IFS=$lt_save_ifs
5663 test -z "$ac_dir" && ac_dir=.
5664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5665 lt_cv_path_LD=$ac_dir/$ac_prog
5666 # Check to see if the program is GNU ld. I'd rather use --version,
5667 # but apparently some variants of GNU ld only accept -v.
5668 # Break only if it was the GNU/non-GNU ld that we prefer.
5669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5670 *GNU* | *'with BFD'*)
5671 test no != "$with_gnu_ld" && break
5672 ;;
5673 *)
5674 test yes != "$with_gnu_ld" && break
5675 ;;
5676 esac
5677 fi
5678 done
5679 IFS=$lt_save_ifs
5680 else
5681 lt_cv_path_LD=$LD # Let the user override the test with a path.
5682 fi
5683 fi
5684
5685 LD=$lt_cv_path_LD
5686 if test -n "$LD"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5688 $as_echo "$LD" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5695 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5696 if ${lt_cv_prog_gnu_ld+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5700 case `$LD -v 2>&1 </dev/null` in
5701 *GNU* | *'with BFD'*)
5702 lt_cv_prog_gnu_ld=yes
5703 ;;
5704 *)
5705 lt_cv_prog_gnu_ld=no
5706 ;;
5707 esac
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5710 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5711 with_gnu_ld=$lt_cv_prog_gnu_ld
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5722 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5723 if ${lt_cv_path_NM+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$NM"; then
5727 # Let the user override the test.
5728 lt_cv_path_NM=$NM
5729 else
5730 lt_nm_to_check=${ac_tool_prefix}nm
5731 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5732 lt_nm_to_check="$lt_nm_to_check nm"
5733 fi
5734 for lt_tmp_nm in $lt_nm_to_check; do
5735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5736 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5737 IFS=$lt_save_ifs
5738 test -z "$ac_dir" && ac_dir=.
5739 tmp_nm=$ac_dir/$lt_tmp_nm
5740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5741 # Check to see if the nm accepts a BSD-compat flag.
5742 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5743 # nm: unknown option "B" ignored
5744 # Tru64's nm complains that /dev/null is an invalid object file
5745 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5746 case $build_os in
5747 mingw*) lt_bad_file=conftest.nm/nofile ;;
5748 *) lt_bad_file=/dev/null ;;
5749 esac
5750 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5751 *$lt_bad_file* | *'Invalid file or object type'*)
5752 lt_cv_path_NM="$tmp_nm -B"
5753 break 2
5754 ;;
5755 *)
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 */dev/null*)
5758 lt_cv_path_NM="$tmp_nm -p"
5759 break 2
5760 ;;
5761 *)
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5764 ;;
5765 esac
5766 ;;
5767 esac
5768 fi
5769 done
5770 IFS=$lt_save_ifs
5771 done
5772 : ${lt_cv_path_NM=no}
5773 fi
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5776 $as_echo "$lt_cv_path_NM" >&6; }
5777 if test no != "$lt_cv_path_NM"; then
5778 NM=$lt_cv_path_NM
5779 else
5780 # Didn't find any BSD compatible name lister, look for dumpbin.
5781 if test -n "$DUMPBIN"; then :
5782 # Let the user override the test.
5783 else
5784 if test -n "$ac_tool_prefix"; then
5785 for ac_prog in dumpbin "link -dump"
5786 do
5787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_prog_DUMPBIN+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if test -n "$DUMPBIN"; then
5795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5796 else
5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798 for as_dir in $PATH
5799 do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808 done
5809 done
5810 IFS=$as_save_IFS
5811
5812 fi
5813 fi
5814 DUMPBIN=$ac_cv_prog_DUMPBIN
5815 if test -n "$DUMPBIN"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5817 $as_echo "$DUMPBIN" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5821 fi
5822
5823
5824 test -n "$DUMPBIN" && break
5825 done
5826 fi
5827 if test -z "$DUMPBIN"; then
5828 ac_ct_DUMPBIN=$DUMPBIN
5829 for ac_prog in dumpbin "link -dump"
5830 do
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832 set dummy $ac_prog; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if test -n "$ac_ct_DUMPBIN"; then
5839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852 done
5853 done
5854 IFS=$as_save_IFS
5855
5856 fi
5857 fi
5858 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5859 if test -n "$ac_ct_DUMPBIN"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5861 $as_echo "$ac_ct_DUMPBIN" >&6; }
5862 else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5865 fi
5866
5867
5868 test -n "$ac_ct_DUMPBIN" && break
5869 done
5870
5871 if test "x$ac_ct_DUMPBIN" = x; then
5872 DUMPBIN=":"
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880 DUMPBIN=$ac_ct_DUMPBIN
5881 fi
5882 fi
5883
5884 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5885 *COFF*)
5886 DUMPBIN="$DUMPBIN -symbols -headers"
5887 ;;
5888 *)
5889 DUMPBIN=:
5890 ;;
5891 esac
5892 fi
5893
5894 if test : != "$DUMPBIN"; then
5895 NM=$DUMPBIN
5896 fi
5897 fi
5898 test -z "$NM" && NM=nm
5899
5900
5901
5902
5903
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5906 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5907 if ${lt_cv_nm_interface+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 lt_cv_nm_interface="BSD nm"
5911 echo "int some_variable = 0;" > conftest.$ac_ext
5912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5913 (eval "$ac_compile" 2>conftest.err)
5914 cat conftest.err >&5
5915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5919 cat conftest.out >&5
5920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5921 lt_cv_nm_interface="MS dumpbin"
5922 fi
5923 rm -rf conftest*
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5926 $as_echo "$lt_cv_nm_interface" >&6; }
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5929 $as_echo_n "checking whether ln -s works... " >&6; }
5930 LN_S=$as_ln_s
5931 if test "$LN_S" = "ln -s"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5933 $as_echo "yes" >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5936 $as_echo "no, using $LN_S" >&6; }
5937 fi
5938
5939 # find the maximum length of command line arguments
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5941 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5942 if ${lt_cv_sys_max_cmd_len+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 i=0
5946 teststring=ABCD
5947
5948 case $build_os in
5949 msdosdjgpp*)
5950 # On DJGPP, this test can blow up pretty badly due to problems in libc
5951 # (any single argument exceeding 2000 bytes causes a buffer overrun
5952 # during glob expansion). Even if it were fixed, the result of this
5953 # check would be larger than it should be.
5954 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5955 ;;
5956
5957 gnu*)
5958 # Under GNU Hurd, this test is not required because there is
5959 # no limit to the length of command line arguments.
5960 # Libtool will interpret -1 as no limit whatsoever
5961 lt_cv_sys_max_cmd_len=-1;
5962 ;;
5963
5964 cygwin* | mingw* | cegcc*)
5965 # On Win9x/ME, this test blows up -- it succeeds, but takes
5966 # about 5 minutes as the teststring grows exponentially.
5967 # Worse, since 9x/ME are not pre-emptively multitasking,
5968 # you end up with a "frozen" computer, even though with patience
5969 # the test eventually succeeds (with a max line length of 256k).
5970 # Instead, let's just punt: use the minimum linelength reported by
5971 # all of the supported platforms: 8192 (on NT/2K/XP).
5972 lt_cv_sys_max_cmd_len=8192;
5973 ;;
5974
5975 mint*)
5976 # On MiNT this can take a long time and run out of memory.
5977 lt_cv_sys_max_cmd_len=8192;
5978 ;;
5979
5980 amigaos*)
5981 # On AmigaOS with pdksh, this test takes hours, literally.
5982 # So we just punt and use a minimum line length of 8192.
5983 lt_cv_sys_max_cmd_len=8192;
5984 ;;
5985
5986 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5987 # This has been around since 386BSD, at least. Likely further.
5988 if test -x /sbin/sysctl; then
5989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5990 elif test -x /usr/sbin/sysctl; then
5991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5992 else
5993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5994 fi
5995 # And add a safety zone
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5998 ;;
5999
6000 interix*)
6001 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6002 lt_cv_sys_max_cmd_len=196608
6003 ;;
6004
6005 os2*)
6006 # The test takes a long time on OS/2.
6007 lt_cv_sys_max_cmd_len=8192
6008 ;;
6009
6010 osf*)
6011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6013 # nice to cause kernel panics so lets avoid the loop below.
6014 # First set a reasonable default.
6015 lt_cv_sys_max_cmd_len=16384
6016 #
6017 if test -x /sbin/sysconfig; then
6018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6019 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6020 esac
6021 fi
6022 ;;
6023 sco3.2v5*)
6024 lt_cv_sys_max_cmd_len=102400
6025 ;;
6026 sysv5* | sco5v6* | sysv4.2uw2*)
6027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6028 if test -n "$kargmax"; then
6029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6030 else
6031 lt_cv_sys_max_cmd_len=32768
6032 fi
6033 ;;
6034 *)
6035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6036 if test -n "$lt_cv_sys_max_cmd_len" && \
6037 test undefined != "$lt_cv_sys_max_cmd_len"; then
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6040 else
6041 # Make teststring a little bigger before we do anything with it.
6042 # a 1K string should be a reasonable start.
6043 for i in 1 2 3 4 5 6 7 8; do
6044 teststring=$teststring$teststring
6045 done
6046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6047 # If test is not a shell built-in, we'll probably end up computing a
6048 # maximum length that is only half of the actual maximum length, but
6049 # we can't tell.
6050 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6051 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6052 test 17 != "$i" # 1/2 MB should be enough
6053 do
6054 i=`expr $i + 1`
6055 teststring=$teststring$teststring
6056 done
6057 # Only check the string length outside the loop.
6058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6059 teststring=
6060 # Add a significant safety factor because C++ compilers can tack on
6061 # massive amounts of additional arguments before passing them to the
6062 # linker. It appears as though 1/2 is a usable value.
6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6064 fi
6065 ;;
6066 esac
6067
6068 fi
6069
6070 if test -n "$lt_cv_sys_max_cmd_len"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6072 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6075 $as_echo "none" >&6; }
6076 fi
6077 max_cmd_len=$lt_cv_sys_max_cmd_len
6078
6079
6080
6081
6082
6083
6084 : ${CP="cp -f"}
6085 : ${MV="mv -f"}
6086 : ${RM="rm -f"}
6087
6088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6089 lt_unset=unset
6090 else
6091 lt_unset=false
6092 fi
6093
6094
6095
6096
6097
6098 # test EBCDIC or ASCII
6099 case `echo X|tr X '\101'` in
6100 A) # ASCII based system
6101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6102 lt_SP2NL='tr \040 \012'
6103 lt_NL2SP='tr \015\012 \040\040'
6104 ;;
6105 *) # EBCDIC based system
6106 lt_SP2NL='tr \100 \n'
6107 lt_NL2SP='tr \r\n \100\100'
6108 ;;
6109 esac
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6120 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6121 if ${lt_cv_to_host_file_cmd+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 case $host in
6125 *-*-mingw* )
6126 case $build in
6127 *-*-mingw* ) # actually msys
6128 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6129 ;;
6130 *-*-cygwin* )
6131 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6132 ;;
6133 * ) # otherwise, assume *nix
6134 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6135 ;;
6136 esac
6137 ;;
6138 *-*-cygwin* )
6139 case $build in
6140 *-*-mingw* ) # actually msys
6141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6142 ;;
6143 *-*-cygwin* )
6144 lt_cv_to_host_file_cmd=func_convert_file_noop
6145 ;;
6146 * ) # otherwise, assume *nix
6147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6148 ;;
6149 esac
6150 ;;
6151 * ) # unhandled hosts (and "normal" native builds)
6152 lt_cv_to_host_file_cmd=func_convert_file_noop
6153 ;;
6154 esac
6155
6156 fi
6157
6158 to_host_file_cmd=$lt_cv_to_host_file_cmd
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6160 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6161
6162
6163
6164
6165
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6167 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6168 if ${lt_cv_to_tool_file_cmd+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 #assume ordinary cross tools, or native build.
6172 lt_cv_to_tool_file_cmd=func_convert_file_noop
6173 case $host in
6174 *-*-mingw* )
6175 case $build in
6176 *-*-mingw* ) # actually msys
6177 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6178 ;;
6179 esac
6180 ;;
6181 esac
6182
6183 fi
6184
6185 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6187 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6188
6189
6190
6191
6192
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6194 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6195 if ${lt_cv_ld_reload_flag+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 lt_cv_ld_reload_flag='-r'
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6201 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6202 reload_flag=$lt_cv_ld_reload_flag
6203 case $reload_flag in
6204 "" | " "*) ;;
6205 *) reload_flag=" $reload_flag" ;;
6206 esac
6207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6208 case $host_os in
6209 cygwin* | mingw* | pw32* | cegcc*)
6210 if test yes != "$GCC"; then
6211 reload_cmds=false
6212 fi
6213 ;;
6214 darwin*)
6215 if test yes = "$GCC"; then
6216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6217 else
6218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6219 fi
6220 ;;
6221 esac
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_prog_OBJDUMP+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$OBJDUMP"; then
6240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 OBJDUMP=$ac_cv_prog_OBJDUMP
6260 if test -n "$OBJDUMP"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6262 $as_echo "$OBJDUMP" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268
6269 fi
6270 if test -z "$ac_cv_prog_OBJDUMP"; then
6271 ac_ct_OBJDUMP=$OBJDUMP
6272 # Extract the first word of "objdump", so it can be a program name with args.
6273 set dummy objdump; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$ac_ct_OBJDUMP"; then
6280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6300 if test -n "$ac_ct_OBJDUMP"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6302 $as_echo "$ac_ct_OBJDUMP" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308 if test "x$ac_ct_OBJDUMP" = x; then
6309 OBJDUMP="false"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 OBJDUMP=$ac_ct_OBJDUMP
6318 fi
6319 else
6320 OBJDUMP="$ac_cv_prog_OBJDUMP"
6321 fi
6322
6323 test -z "$OBJDUMP" && OBJDUMP=objdump
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6334 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6335 if ${lt_cv_deplibs_check_method+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 lt_cv_file_magic_cmd='$MAGIC_CMD'
6339 lt_cv_file_magic_test_file=
6340 lt_cv_deplibs_check_method='unknown'
6341 # Need to set the preceding variable on all platforms that support
6342 # interlibrary dependencies.
6343 # 'none' -- dependencies not supported.
6344 # 'unknown' -- same as none, but documents that we really don't know.
6345 # 'pass_all' -- all dependencies passed with no checks.
6346 # 'test_compile' -- check by making test program.
6347 # 'file_magic [[regex]]' -- check by looking for files in library path
6348 # that responds to the $file_magic_cmd with a given extended regex.
6349 # If you have 'file' or equivalent on your system and you're not sure
6350 # whether 'pass_all' will *always* work, you probably want this one.
6351
6352 case $host_os in
6353 aix[4-9]*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357 beos*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
6360
6361 bsdi[45]*)
6362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6363 lt_cv_file_magic_cmd='/usr/bin/file -L'
6364 lt_cv_file_magic_test_file=/shlib/libc.so
6365 ;;
6366
6367 cygwin*)
6368 # func_win32_libid is a shell function defined in ltmain.sh
6369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6370 lt_cv_file_magic_cmd='func_win32_libid'
6371 ;;
6372
6373 mingw* | pw32*)
6374 # Base MSYS/MinGW do not provide the 'file' command needed by
6375 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6376 # unless we find 'file', for example because we are cross-compiling.
6377 if ( file / ) >/dev/null 2>&1; then
6378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379 lt_cv_file_magic_cmd='func_win32_libid'
6380 else
6381 # Keep this pattern in sync with the one in func_win32_libid.
6382 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6383 lt_cv_file_magic_cmd='$OBJDUMP -f'
6384 fi
6385 ;;
6386
6387 cegcc*)
6388 # use the weaker test based on 'objdump'. See mingw*.
6389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6390 lt_cv_file_magic_cmd='$OBJDUMP -f'
6391 ;;
6392
6393 darwin* | rhapsody*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397 freebsd* | dragonfly*)
6398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6399 case $host_cpu in
6400 i*86 )
6401 # Not sure whether the presence of OpenBSD here was a mistake.
6402 # Let's accept both of them until this is cleared up.
6403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6404 lt_cv_file_magic_cmd=/usr/bin/file
6405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6406 ;;
6407 esac
6408 else
6409 lt_cv_deplibs_check_method=pass_all
6410 fi
6411 ;;
6412
6413 haiku*)
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
6416
6417 hpux10.20* | hpux11*)
6418 lt_cv_file_magic_cmd=/usr/bin/file
6419 case $host_cpu in
6420 ia64*)
6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6423 ;;
6424 hppa*64*)
6425 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]'
6426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6427 ;;
6428 *)
6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6431 ;;
6432 esac
6433 ;;
6434
6435 interix[3-9]*)
6436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6438 ;;
6439
6440 irix5* | irix6* | nonstopux*)
6441 case $LD in
6442 *-32|*"-32 ") libmagic=32-bit;;
6443 *-n32|*"-n32 ") libmagic=N32;;
6444 *-64|*"-64 ") libmagic=64-bit;;
6445 *) libmagic=never-match;;
6446 esac
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449
6450 # This must be glibc/ELF.
6451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 netbsd*)
6456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6458 else
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6460 fi
6461 ;;
6462
6463 newos6*)
6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6465 lt_cv_file_magic_cmd=/usr/bin/file
6466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6467 ;;
6468
6469 *nto* | *qnx*)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472
6473 openbsd* | bitrig*)
6474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6476 else
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 fi
6479 ;;
6480
6481 osf3* | osf4* | osf5*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 rdos*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 solaris*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497 sysv4 | sysv4.3*)
6498 case $host_vendor in
6499 motorola)
6500 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]'
6501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6502 ;;
6503 ncr)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506 sequent)
6507 lt_cv_file_magic_cmd='/bin/file'
6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6509 ;;
6510 sni)
6511 lt_cv_file_magic_cmd='/bin/file'
6512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6513 lt_cv_file_magic_test_file=/lib/libc.so
6514 ;;
6515 siemens)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518 pc)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 esac
6522 ;;
6523
6524 tpf*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527 os2*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530 esac
6531
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6534 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6535
6536 file_magic_glob=
6537 want_nocaseglob=no
6538 if test "$build" = "$host"; then
6539 case $host_os in
6540 mingw* | pw32*)
6541 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6542 want_nocaseglob=yes
6543 else
6544 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6545 fi
6546 ;;
6547 esac
6548 fi
6549
6550 file_magic_cmd=$lt_cv_file_magic_cmd
6551 deplibs_check_method=$lt_cv_deplibs_check_method
6552 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_DLLTOOL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$DLLTOOL"; then
6584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 DLLTOOL=$ac_cv_prog_DLLTOOL
6604 if test -n "$DLLTOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6606 $as_echo "$DLLTOOL" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612
6613 fi
6614 if test -z "$ac_cv_prog_DLLTOOL"; then
6615 ac_ct_DLLTOOL=$DLLTOOL
6616 # Extract the first word of "dlltool", so it can be a program name with args.
6617 set dummy dlltool; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$ac_ct_DLLTOOL"; then
6624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6644 if test -n "$ac_ct_DLLTOOL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6646 $as_echo "$ac_ct_DLLTOOL" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652 if test "x$ac_ct_DLLTOOL" = x; then
6653 DLLTOOL="false"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661 DLLTOOL=$ac_ct_DLLTOOL
6662 fi
6663 else
6664 DLLTOOL="$ac_cv_prog_DLLTOOL"
6665 fi
6666
6667 test -z "$DLLTOOL" && DLLTOOL=dlltool
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6679 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6680 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 lt_cv_sharedlib_from_linklib_cmd='unknown'
6684
6685 case $host_os in
6686 cygwin* | mingw* | pw32* | cegcc*)
6687 # two different shell functions defined in ltmain.sh;
6688 # decide which one to use based on capabilities of $DLLTOOL
6689 case `$DLLTOOL --help 2>&1` in
6690 *--identify-strict*)
6691 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6692 ;;
6693 *)
6694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6695 ;;
6696 esac
6697 ;;
6698 *)
6699 # fallback: assume linklib IS sharedlib
6700 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6701 ;;
6702 esac
6703
6704 fi
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6706 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6707 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6708 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6709
6710
6711
6712
6713
6714
6715
6716 if test -n "$ac_tool_prefix"; then
6717 for ac_prog in ar
6718 do
6719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_AR+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$AR"; then
6727 ac_cv_prog_AR="$AR" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 AR=$ac_cv_prog_AR
6747 if test -n "$AR"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749 $as_echo "$AR" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755
6756 test -n "$AR" && break
6757 done
6758 fi
6759 if test -z "$AR"; then
6760 ac_ct_AR=$AR
6761 for ac_prog in ar
6762 do
6763 # Extract the first word of "$ac_prog", so it can be a program name with args.
6764 set dummy $ac_prog; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_AR"; then
6771 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_ac_ct_AR="$ac_prog"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784 done
6785 done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6791 if test -n "$ac_ct_AR"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6793 $as_echo "$ac_ct_AR" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799
6800 test -n "$ac_ct_AR" && break
6801 done
6802
6803 if test "x$ac_ct_AR" = x; then
6804 AR="false"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 AR=$ac_ct_AR
6813 fi
6814 fi
6815
6816 : ${AR=ar}
6817 : ${AR_FLAGS=cru}
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6830 $as_echo_n "checking for archiver @FILE support... " >&6; }
6831 if ${lt_cv_ar_at_file+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 lt_cv_ar_at_file=no
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837
6838 int
6839 main ()
6840 {
6841
6842 ;
6843 return 0;
6844 }
6845 _ACEOF
6846 if ac_fn_c_try_compile "$LINENO"; then :
6847 echo conftest.$ac_objext > conftest.lst
6848 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6850 (eval $lt_ar_try) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }
6854 if test 0 -eq "$ac_status"; then
6855 # Ensure the archiver fails upon bogus file names.
6856 rm -f conftest.$ac_objext libconftest.a
6857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6858 (eval $lt_ar_try) 2>&5
6859 ac_status=$?
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; }
6862 if test 0 -ne "$ac_status"; then
6863 lt_cv_ar_at_file=@
6864 fi
6865 fi
6866 rm -f conftest.* libconftest.a
6867
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871 fi
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6873 $as_echo "$lt_cv_ar_at_file" >&6; }
6874
6875 if test no = "$lt_cv_ar_at_file"; then
6876 archiver_list_spec=
6877 else
6878 archiver_list_spec=$lt_cv_ar_at_file
6879 fi
6880
6881
6882
6883
6884
6885
6886
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6889 set dummy ${ac_tool_prefix}strip; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_prog_STRIP+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6900 do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909 done
6910 done
6911 IFS=$as_save_IFS
6912
6913 fi
6914 fi
6915 STRIP=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6918 $as_echo "$STRIP" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6922 fi
6923
6924
6925 fi
6926 if test -z "$ac_cv_prog_STRIP"; then
6927 ac_ct_STRIP=$STRIP
6928 # Extract the first word of "strip", so it can be a program name with args.
6929 set dummy strip; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$ac_ct_STRIP"; then
6936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_STRIP="strip"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956 if test -n "$ac_ct_STRIP"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958 $as_echo "$ac_ct_STRIP" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6962 fi
6963
6964 if test "x$ac_ct_STRIP" = x; then
6965 STRIP=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971 ac_tool_warned=yes ;;
6972 esac
6973 STRIP=$ac_ct_STRIP
6974 fi
6975 else
6976 STRIP="$ac_cv_prog_STRIP"
6977 fi
6978
6979 test -z "$STRIP" && STRIP=:
6980
6981
6982
6983
6984
6985
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_RANLIB+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$RANLIB"; then
6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 RANLIB=$ac_cv_prog_RANLIB
7015 if test -n "$RANLIB"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7017 $as_echo "$RANLIB" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_RANLIB"; then
7026 ac_ct_RANLIB=$RANLIB
7027 # Extract the first word of "ranlib", so it can be a program name with args.
7028 set dummy ranlib; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_RANLIB="ranlib"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7055 if test -n "$ac_ct_RANLIB"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7057 $as_echo "$ac_ct_RANLIB" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063 if test "x$ac_ct_RANLIB" = x; then
7064 RANLIB=":"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072 RANLIB=$ac_ct_RANLIB
7073 fi
7074 else
7075 RANLIB="$ac_cv_prog_RANLIB"
7076 fi
7077
7078 test -z "$RANLIB" && RANLIB=:
7079
7080
7081
7082
7083
7084
7085 # Determine commands to create old-style static archives.
7086 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7087 old_postinstall_cmds='chmod 644 $oldlib'
7088 old_postuninstall_cmds=
7089
7090 if test -n "$RANLIB"; then
7091 case $host_os in
7092 bitrig* | openbsd*)
7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7094 ;;
7095 *)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7097 ;;
7098 esac
7099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7100 fi
7101
7102 case $host_os in
7103 darwin*)
7104 lock_old_archive_extraction=yes ;;
7105 *)
7106 lock_old_archive_extraction=no ;;
7107 esac
7108
7109
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 # If no C compiler was specified, use CC.
7148 LTCC=${LTCC-"$CC"}
7149
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152
7153 # Allow CC to be a program name with arguments.
7154 compiler=$CC
7155
7156
7157 # Check for command to grab the raw symbol name followed by C symbol from nm.
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7159 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7160 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163
7164 # These are sane defaults that work on at least a few old systems.
7165 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7166
7167 # Character class describing NM global symbol codes.
7168 symcode='[BCDEGRST]'
7169
7170 # Regexp to match symbols that can be accessed directly from C.
7171 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7172
7173 # Define system-specific variables.
7174 case $host_os in
7175 aix*)
7176 symcode='[BCDT]'
7177 ;;
7178 cygwin* | mingw* | pw32* | cegcc*)
7179 symcode='[ABCDGISTW]'
7180 ;;
7181 hpux*)
7182 if test ia64 = "$host_cpu"; then
7183 symcode='[ABCDEGRST]'
7184 fi
7185 ;;
7186 irix* | nonstopux*)
7187 symcode='[BCDEGRST]'
7188 ;;
7189 osf*)
7190 symcode='[BCDEGQRST]'
7191 ;;
7192 solaris*)
7193 symcode='[BDRT]'
7194 ;;
7195 sco3.2v5*)
7196 symcode='[DT]'
7197 ;;
7198 sysv4.2uw2*)
7199 symcode='[DT]'
7200 ;;
7201 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7202 symcode='[ABDT]'
7203 ;;
7204 sysv4)
7205 symcode='[DFNSTU]'
7206 ;;
7207 esac
7208
7209 # If we're using GNU nm, then use its standard symbol codes.
7210 case `$NM -V 2>&1` in
7211 *GNU* | *'with BFD'*)
7212 symcode='[ABCDGIRSTW]' ;;
7213 esac
7214
7215 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7216 # Gets list of data symbols to import.
7217 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7218 # Adjust the below global symbol transforms to fixup imported variables.
7219 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7220 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7221 lt_c_name_lib_hook="\
7222 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7223 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7224 else
7225 # Disable hooks by default.
7226 lt_cv_sys_global_symbol_to_import=
7227 lt_cdecl_hook=
7228 lt_c_name_hook=
7229 lt_c_name_lib_hook=
7230 fi
7231
7232 # Transform an extracted symbol line into a proper C declaration.
7233 # Some systems (esp. on ia64) link data and code symbols differently,
7234 # so use this general approach.
7235 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7236 $lt_cdecl_hook\
7237 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7238 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7239
7240 # Transform an extracted symbol line into symbol name and symbol address
7241 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7242 $lt_c_name_hook\
7243 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7244 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7245
7246 # Transform an extracted symbol line into symbol name with lib prefix and
7247 # symbol address.
7248 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7249 $lt_c_name_lib_hook\
7250 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7251 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7252 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7253
7254 # Handle CRLF in mingw tool chain
7255 opt_cr=
7256 case $build_os in
7257 mingw*)
7258 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7259 ;;
7260 esac
7261
7262 # Try without a prefix underscore, then with it.
7263 for ac_symprfx in "" "_"; do
7264
7265 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7266 symxfrm="\\1 $ac_symprfx\\2 \\2"
7267
7268 # Write the raw and C identifiers.
7269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7270 # Fake it for dumpbin and say T for any non-static function,
7271 # D for any global variable and I for any imported variable.
7272 # Also find C++ and __fastcall symbols from MSVC++,
7273 # which start with @ or ?.
7274 lt_cv_sys_global_symbol_pipe="$AWK '"\
7275 " {last_section=section; section=\$ 3};"\
7276 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7277 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7278 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7279 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7280 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7281 " \$ 0!~/External *\|/{next};"\
7282 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7283 " {if(hide[section]) next};"\
7284 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7285 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7286 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7287 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7288 " ' prfx=^$ac_symprfx"
7289 else
7290 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7291 fi
7292 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7293
7294 # Check to see that the pipe works correctly.
7295 pipe_works=no
7296
7297 rm -rf conftest*
7298 cat > conftest.$ac_ext <<_LT_EOF
7299 #ifdef __cplusplus
7300 extern "C" {
7301 #endif
7302 char nm_test_var;
7303 void nm_test_func(void);
7304 void nm_test_func(void){}
7305 #ifdef __cplusplus
7306 }
7307 #endif
7308 int main(){nm_test_var='a';nm_test_func();return(0);}
7309 _LT_EOF
7310
7311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312 (eval $ac_compile) 2>&5
7313 ac_status=$?
7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; }; then
7316 # Now try to grab the symbols.
7317 nlist=conftest.nm
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7319 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7320 ac_status=$?
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; } && test -s "$nlist"; then
7323 # Try sorting and uniquifying the output.
7324 if sort "$nlist" | uniq > "$nlist"T; then
7325 mv -f "$nlist"T "$nlist"
7326 else
7327 rm -f "$nlist"T
7328 fi
7329
7330 # Make sure that we snagged all the symbols we need.
7331 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7332 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7333 cat <<_LT_EOF > conftest.$ac_ext
7334 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7335 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7336 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7337 relocations are performed -- see ld's documentation on pseudo-relocs. */
7338 # define LT_DLSYM_CONST
7339 #elif defined __osf__
7340 /* This system does not cope well with relocations in const data. */
7341 # define LT_DLSYM_CONST
7342 #else
7343 # define LT_DLSYM_CONST const
7344 #endif
7345
7346 #ifdef __cplusplus
7347 extern "C" {
7348 #endif
7349
7350 _LT_EOF
7351 # Now generate the symbol file.
7352 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7353
7354 cat <<_LT_EOF >> conftest.$ac_ext
7355
7356 /* The mapping between symbol names and symbols. */
7357 LT_DLSYM_CONST struct {
7358 const char *name;
7359 void *address;
7360 }
7361 lt__PROGRAM__LTX_preloaded_symbols[] =
7362 {
7363 { "@PROGRAM@", (void *) 0 },
7364 _LT_EOF
7365 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7366 cat <<\_LT_EOF >> conftest.$ac_ext
7367 {0, (void *) 0}
7368 };
7369
7370 /* This works around a problem in FreeBSD linker */
7371 #ifdef FREEBSD_WORKAROUND
7372 static const void *lt_preloaded_setup() {
7373 return lt__PROGRAM__LTX_preloaded_symbols;
7374 }
7375 #endif
7376
7377 #ifdef __cplusplus
7378 }
7379 #endif
7380 _LT_EOF
7381 # Now try linking the two files.
7382 mv conftest.$ac_objext conftstm.$ac_objext
7383 lt_globsym_save_LIBS=$LIBS
7384 lt_globsym_save_CFLAGS=$CFLAGS
7385 LIBS=conftstm.$ac_objext
7386 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7388 (eval $ac_link) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7392 pipe_works=yes
7393 fi
7394 LIBS=$lt_globsym_save_LIBS
7395 CFLAGS=$lt_globsym_save_CFLAGS
7396 else
7397 echo "cannot find nm_test_func in $nlist" >&5
7398 fi
7399 else
7400 echo "cannot find nm_test_var in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7404 fi
7405 else
7406 echo "$progname: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 fi
7409 rm -rf conftest* conftst*
7410
7411 # Do not use the global_symbol_pipe unless it works.
7412 if test yes = "$pipe_works"; then
7413 break
7414 else
7415 lt_cv_sys_global_symbol_pipe=
7416 fi
7417 done
7418
7419 fi
7420
7421 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7422 lt_cv_sys_global_symbol_to_cdecl=
7423 fi
7424 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7426 $as_echo "failed" >&6; }
7427 else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7429 $as_echo "ok" >&6; }
7430 fi
7431
7432 # Response file support.
7433 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7434 nm_file_list_spec='@'
7435 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7436 nm_file_list_spec='@'
7437 fi
7438
7439
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7476 $as_echo_n "checking for sysroot... " >&6; }
7477
7478 # Check whether --with-sysroot was given.
7479 if test "${with_sysroot+set}" = set; then :
7480 withval=$with_sysroot;
7481 else
7482 with_sysroot=no
7483 fi
7484
7485
7486 lt_sysroot=
7487 case $with_sysroot in #(
7488 yes)
7489 if test yes = "$GCC"; then
7490 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7491 fi
7492 ;; #(
7493 /*)
7494 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7495 ;; #(
7496 no|'')
7497 ;; #(
7498 *)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7500 $as_echo "$with_sysroot" >&6; }
7501 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7502 ;;
7503 esac
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7506 $as_echo "${lt_sysroot:-no}" >&6; }
7507
7508
7509
7510
7511
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7513 $as_echo_n "checking for a working dd... " >&6; }
7514 if ${ac_cv_path_lt_DD+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 printf 0123456789abcdef0123456789abcdef >conftest.i
7518 cat conftest.i conftest.i >conftest2.i
7519 : ${lt_DD:=$DD}
7520 if test -z "$lt_DD"; then
7521 ac_path_lt_DD_found=false
7522 # Loop through the user's path and test for each of PROGNAME-LIST
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_prog in dd; do
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7531 as_fn_executable_p "$ac_path_lt_DD" || continue
7532 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7533 cmp -s conftest.i conftest.out \
7534 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7535 fi
7536 $ac_path_lt_DD_found && break 3
7537 done
7538 done
7539 done
7540 IFS=$as_save_IFS
7541 if test -z "$ac_cv_path_lt_DD"; then
7542 :
7543 fi
7544 else
7545 ac_cv_path_lt_DD=$lt_DD
7546 fi
7547
7548 rm -f conftest.i conftest2.i conftest.out
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7551 $as_echo "$ac_cv_path_lt_DD" >&6; }
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7555 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7556 if ${lt_cv_truncate_bin+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 printf 0123456789abcdef0123456789abcdef >conftest.i
7560 cat conftest.i conftest.i >conftest2.i
7561 lt_cv_truncate_bin=
7562 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563 cmp -s conftest.i conftest.out \
7564 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7565 fi
7566 rm -f conftest.i conftest2.i conftest.out
7567 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7570 $as_echo "$lt_cv_truncate_bin" >&6; }
7571
7572
7573
7574
7575
7576
7577
7578 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7579 func_cc_basename ()
7580 {
7581 for cc_temp in $*""; do
7582 case $cc_temp in
7583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7585 \-*) ;;
7586 *) break;;
7587 esac
7588 done
7589 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7590 }
7591
7592 # Check whether --enable-libtool-lock was given.
7593 if test "${enable_libtool_lock+set}" = set; then :
7594 enableval=$enable_libtool_lock;
7595 fi
7596
7597 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7598
7599 # Some flags need to be propagated to the compiler or linker for good
7600 # libtool support.
7601 case $host in
7602 ia64-*-hpux*)
7603 # Find out what ABI is being produced by ac_compile, and set mode
7604 # options accordingly.
7605 echo 'int i;' > conftest.$ac_ext
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7608 ac_status=$?
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 case `/usr/bin/file conftest.$ac_objext` in
7612 *ELF-32*)
7613 HPUX_IA64_MODE=32
7614 ;;
7615 *ELF-64*)
7616 HPUX_IA64_MODE=64
7617 ;;
7618 esac
7619 fi
7620 rm -rf conftest*
7621 ;;
7622 *-*-irix6*)
7623 # Find out what ABI is being produced by ac_compile, and set linker
7624 # options accordingly.
7625 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7627 (eval $ac_compile) 2>&5
7628 ac_status=$?
7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
7631 if test yes = "$lt_cv_prog_gnu_ld"; then
7632 case `/usr/bin/file conftest.$ac_objext` in
7633 *32-bit*)
7634 LD="${LD-ld} -melf32bsmip"
7635 ;;
7636 *N32*)
7637 LD="${LD-ld} -melf32bmipn32"
7638 ;;
7639 *64-bit*)
7640 LD="${LD-ld} -melf64bmip"
7641 ;;
7642 esac
7643 else
7644 case `/usr/bin/file conftest.$ac_objext` in
7645 *32-bit*)
7646 LD="${LD-ld} -32"
7647 ;;
7648 *N32*)
7649 LD="${LD-ld} -n32"
7650 ;;
7651 *64-bit*)
7652 LD="${LD-ld} -64"
7653 ;;
7654 esac
7655 fi
7656 fi
7657 rm -rf conftest*
7658 ;;
7659
7660 mips64*-*linux*)
7661 # Find out what ABI is being produced by ac_compile, and set linker
7662 # options accordingly.
7663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 emul=elf
7670 case `/usr/bin/file conftest.$ac_objext` in
7671 *32-bit*)
7672 emul="${emul}32"
7673 ;;
7674 *64-bit*)
7675 emul="${emul}64"
7676 ;;
7677 esac
7678 case `/usr/bin/file conftest.$ac_objext` in
7679 *MSB*)
7680 emul="${emul}btsmip"
7681 ;;
7682 *LSB*)
7683 emul="${emul}ltsmip"
7684 ;;
7685 esac
7686 case `/usr/bin/file conftest.$ac_objext` in
7687 *N32*)
7688 emul="${emul}n32"
7689 ;;
7690 esac
7691 LD="${LD-ld} -m $emul"
7692 fi
7693 rm -rf conftest*
7694 ;;
7695
7696 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7697 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7698 # Find out what ABI is being produced by ac_compile, and set linker
7699 # options accordingly. Note that the listed cases only cover the
7700 # situations where additional linker options are needed (such as when
7701 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7702 # vice versa); the common cases where no linker options are needed do
7703 # not appear in the list.
7704 echo 'int i;' > conftest.$ac_ext
7705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7706 (eval $ac_compile) 2>&5
7707 ac_status=$?
7708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; then
7710 case `/usr/bin/file conftest.o` in
7711 *32-bit*)
7712 case $host in
7713 x86_64-*kfreebsd*-gnu)
7714 LD="${LD-ld} -m elf_i386_fbsd"
7715 ;;
7716 x86_64-*linux*)
7717 case `/usr/bin/file conftest.o` in
7718 *x86-64*)
7719 LD="${LD-ld} -m elf32_x86_64"
7720 ;;
7721 *)
7722 LD="${LD-ld} -m elf_i386"
7723 ;;
7724 esac
7725 ;;
7726 powerpc64le-*linux*)
7727 LD="${LD-ld} -m elf32lppclinux"
7728 ;;
7729 powerpc64-*linux*)
7730 LD="${LD-ld} -m elf32ppclinux"
7731 ;;
7732 s390x-*linux*)
7733 LD="${LD-ld} -m elf_s390"
7734 ;;
7735 sparc64-*linux*)
7736 LD="${LD-ld} -m elf32_sparc"
7737 ;;
7738 esac
7739 ;;
7740 *64-bit*)
7741 case $host in
7742 x86_64-*kfreebsd*-gnu)
7743 LD="${LD-ld} -m elf_x86_64_fbsd"
7744 ;;
7745 x86_64-*linux*)
7746 LD="${LD-ld} -m elf_x86_64"
7747 ;;
7748 powerpcle-*linux*)
7749 LD="${LD-ld} -m elf64lppc"
7750 ;;
7751 powerpc-*linux*)
7752 LD="${LD-ld} -m elf64ppc"
7753 ;;
7754 s390*-*linux*|s390*-*tpf*)
7755 LD="${LD-ld} -m elf64_s390"
7756 ;;
7757 sparc*-*linux*)
7758 LD="${LD-ld} -m elf64_sparc"
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 fi
7764 rm -rf conftest*
7765 ;;
7766
7767 *-*-sco3.2v5*)
7768 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7769 SAVE_CFLAGS=$CFLAGS
7770 CFLAGS="$CFLAGS -belf"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7772 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7773 if ${lt_cv_cc_needs_belf+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784
7785 int
7786 main ()
7787 {
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_link "$LINENO"; then :
7794 lt_cv_cc_needs_belf=yes
7795 else
7796 lt_cv_cc_needs_belf=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext \
7799 conftest$ac_exeext conftest.$ac_ext
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7808 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7809 if test yes != "$lt_cv_cc_needs_belf"; then
7810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7811 CFLAGS=$SAVE_CFLAGS
7812 fi
7813 ;;
7814 *-*solaris*)
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `/usr/bin/file conftest.o` in
7824 *64-bit*)
7825 case $lt_cv_prog_gnu_ld in
7826 yes*)
7827 case $host in
7828 i?86-*-solaris*|x86_64-*-solaris*)
7829 LD="${LD-ld} -m elf_x86_64"
7830 ;;
7831 sparc*-*-solaris*)
7832 LD="${LD-ld} -m elf64_sparc"
7833 ;;
7834 esac
7835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7837 LD=${LD-ld}_sol2
7838 fi
7839 ;;
7840 *)
7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7842 LD="${LD-ld} -64"
7843 fi
7844 ;;
7845 esac
7846 ;;
7847 esac
7848 fi
7849 rm -rf conftest*
7850 ;;
7851 esac
7852
7853 need_locks=$enable_libtool_lock
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}mt; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 if test -n "$MANIFEST_TOOL"; then
7864 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881 fi
7882 fi
7883 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7884 if test -n "$MANIFEST_TOOL"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7886 $as_echo "$MANIFEST_TOOL" >&6; }
7887 else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7890 fi
7891
7892
7893 fi
7894 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7895 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7896 # Extract the first word of "mt", so it can be a program name with args.
7897 set dummy mt; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$ac_ct_MANIFEST_TOOL"; then
7904 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917 done
7918 done
7919 IFS=$as_save_IFS
7920
7921 fi
7922 fi
7923 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7924 if test -n "$ac_ct_MANIFEST_TOOL"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7926 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7930 fi
7931
7932 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7933 MANIFEST_TOOL=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936 yes:)
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7940 esac
7941 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7942 fi
7943 else
7944 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7945 fi
7946
7947 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7949 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7950 if ${lt_cv_path_mainfest_tool+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 lt_cv_path_mainfest_tool=no
7954 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7955 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7956 cat conftest.err >&5
7957 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7958 lt_cv_path_mainfest_tool=yes
7959 fi
7960 rm -rf conftest*
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7963 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7964 if test yes != "$lt_cv_path_mainfest_tool"; then
7965 MANIFEST_TOOL=:
7966 fi
7967
7968
7969
7970
7971
7972
7973 case $host_os in
7974 rhapsody* | darwin*)
7975 if test -n "$ac_tool_prefix"; then
7976 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test -n "$DSYMUTIL"; then
7984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8004 if test -n "$DSYMUTIL"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8006 $as_echo "$DSYMUTIL" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012
8013 fi
8014 if test -z "$ac_cv_prog_DSYMUTIL"; then
8015 ac_ct_DSYMUTIL=$DSYMUTIL
8016 # Extract the first word of "dsymutil", so it can be a program name with args.
8017 set dummy dsymutil; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$ac_ct_DSYMUTIL"; then
8024 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8044 if test -n "$ac_ct_DSYMUTIL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052 if test "x$ac_ct_DSYMUTIL" = x; then
8053 DSYMUTIL=":"
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056 yes:)
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059 ac_tool_warned=yes ;;
8060 esac
8061 DSYMUTIL=$ac_ct_DSYMUTIL
8062 fi
8063 else
8064 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8065 fi
8066
8067 if test -n "$ac_tool_prefix"; then
8068 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_prog_NMEDIT+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 if test -n "$NMEDIT"; then
8076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 NMEDIT=$ac_cv_prog_NMEDIT
8096 if test -n "$NMEDIT"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8098 $as_echo "$NMEDIT" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104
8105 fi
8106 if test -z "$ac_cv_prog_NMEDIT"; then
8107 ac_ct_NMEDIT=$NMEDIT
8108 # Extract the first word of "nmedit", so it can be a program name with args.
8109 set dummy nmedit; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 if test -n "$ac_ct_NMEDIT"; then
8116 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133 fi
8134 fi
8135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8136 if test -n "$ac_ct_NMEDIT"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8138 $as_echo "$ac_ct_NMEDIT" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144 if test "x$ac_ct_NMEDIT" = x; then
8145 NMEDIT=":"
8146 else
8147 case $cross_compiling:$ac_tool_warned in
8148 yes:)
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151 ac_tool_warned=yes ;;
8152 esac
8153 NMEDIT=$ac_ct_NMEDIT
8154 fi
8155 else
8156 NMEDIT="$ac_cv_prog_NMEDIT"
8157 fi
8158
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if ${ac_cv_prog_LIPO+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 if test -n "$LIPO"; then
8168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181 done
8182 done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 LIPO=$ac_cv_prog_LIPO
8188 if test -n "$LIPO"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190 $as_echo "$LIPO" >&6; }
8191 else
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_LIPO"; then
8199 ac_ct_LIPO=$LIPO
8200 # Extract the first word of "lipo", so it can be a program name with args.
8201 set dummy lipo; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 if test -n "$ac_ct_LIPO"; then
8208 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_prog_ac_ct_LIPO="lipo"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8228 if test -n "$ac_ct_LIPO"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8230 $as_echo "$ac_ct_LIPO" >&6; }
8231 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8234 fi
8235
8236 if test "x$ac_ct_LIPO" = x; then
8237 LIPO=":"
8238 else
8239 case $cross_compiling:$ac_tool_warned in
8240 yes:)
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8244 esac
8245 LIPO=$ac_ct_LIPO
8246 fi
8247 else
8248 LIPO="$ac_cv_prog_LIPO"
8249 fi
8250
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}otool; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if ${ac_cv_prog_OTOOL+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$OTOOL"; then
8260 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 OTOOL=$ac_cv_prog_OTOOL
8280 if test -n "$OTOOL"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8282 $as_echo "$OTOOL" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 fi
8290 if test -z "$ac_cv_prog_OTOOL"; then
8291 ac_ct_OTOOL=$OTOOL
8292 # Extract the first word of "otool", so it can be a program name with args.
8293 set dummy otool; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 if test -n "$ac_ct_OTOOL"; then
8300 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_prog_ac_ct_OTOOL="otool"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313 done
8314 done
8315 IFS=$as_save_IFS
8316
8317 fi
8318 fi
8319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8320 if test -n "$ac_ct_OTOOL"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8322 $as_echo "$ac_ct_OTOOL" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8326 fi
8327
8328 if test "x$ac_ct_OTOOL" = x; then
8329 OTOOL=":"
8330 else
8331 case $cross_compiling:$ac_tool_warned in
8332 yes:)
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8336 esac
8337 OTOOL=$ac_ct_OTOOL
8338 fi
8339 else
8340 OTOOL="$ac_cv_prog_OTOOL"
8341 fi
8342
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_OTOOL64+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 if test -n "$OTOOL64"; then
8352 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365 done
8366 done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 OTOOL64=$ac_cv_prog_OTOOL64
8372 if test -n "$OTOOL64"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8374 $as_echo "$OTOOL64" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_OTOOL64"; then
8383 ac_ct_OTOOL64=$OTOOL64
8384 # Extract the first word of "otool64", so it can be a program name with args.
8385 set dummy otool64; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$ac_ct_OTOOL64"; then
8392 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_OTOOL64="otool64"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8412 if test -n "$ac_ct_OTOOL64"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8414 $as_echo "$ac_ct_OTOOL64" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420 if test "x$ac_ct_OTOOL64" = x; then
8421 OTOOL64=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 OTOOL64=$ac_ct_OTOOL64
8430 fi
8431 else
8432 OTOOL64="$ac_cv_prog_OTOOL64"
8433 fi
8434
8435
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8462 $as_echo_n "checking for -single_module linker flag... " >&6; }
8463 if ${lt_cv_apple_cc_single_mod+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_apple_cc_single_mod=no
8467 if test -z "$LT_MULTI_MODULE"; then
8468 # By default we will add the -single_module flag. You can override
8469 # by either setting the environment variable LT_MULTI_MODULE
8470 # non-empty at configure time, or by adding -multi_module to the
8471 # link flags.
8472 rm -rf libconftest.dylib*
8473 echo "int foo(void){return 1;}" > conftest.c
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475 -dynamiclib -Wl,-single_module conftest.c" >&5
8476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8478 _lt_result=$?
8479 # If there is a non-empty error log, and "single_module"
8480 # appears in it, assume the flag caused a linker warning
8481 if test -s conftest.err && $GREP single_module conftest.err; then
8482 cat conftest.err >&5
8483 # Otherwise, if the output was created with a 0 exit code from
8484 # the compiler, it worked.
8485 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8486 lt_cv_apple_cc_single_mod=yes
8487 else
8488 cat conftest.err >&5
8489 fi
8490 rm -rf libconftest.dylib*
8491 rm -f conftest.*
8492 fi
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8495 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8496
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8498 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8499 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 lt_cv_ld_exported_symbols_list=no
8503 save_LDFLAGS=$LDFLAGS
8504 echo "_main" > conftest.sym
8505 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508
8509 int
8510 main ()
8511 {
8512
8513 ;
8514 return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 lt_cv_ld_exported_symbols_list=yes
8519 else
8520 lt_cv_ld_exported_symbols_list=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LDFLAGS=$save_LDFLAGS
8525
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8529
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8531 $as_echo_n "checking for -force_load linker flag... " >&6; }
8532 if ${lt_cv_ld_force_load+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 lt_cv_ld_force_load=no
8536 cat > conftest.c << _LT_EOF
8537 int forced_loaded() { return 2;}
8538 _LT_EOF
8539 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8540 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8541 echo "$AR cru libconftest.a conftest.o" >&5
8542 $AR cru libconftest.a conftest.o 2>&5
8543 echo "$RANLIB libconftest.a" >&5
8544 $RANLIB libconftest.a 2>&5
8545 cat > conftest.c << _LT_EOF
8546 int main() { return 0;}
8547 _LT_EOF
8548 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8549 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8550 _lt_result=$?
8551 if test -s conftest.err && $GREP force_load conftest.err; then
8552 cat conftest.err >&5
8553 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8554 lt_cv_ld_force_load=yes
8555 else
8556 cat conftest.err >&5
8557 fi
8558 rm -f conftest.err libconftest.a conftest conftest.c
8559 rm -rf conftest.dSYM
8560
8561 fi
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8563 $as_echo "$lt_cv_ld_force_load" >&6; }
8564 case $host_os in
8565 rhapsody* | darwin1.[012])
8566 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8567 darwin1.*)
8568 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8569 darwin*) # darwin 5.x on
8570 # if running on 10.5 or later, the deployment target defaults
8571 # to the OS version, if on x86, and 10.4, the deployment
8572 # target defaults to 10.4. Don't you love it?
8573 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8574 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8575 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8576 10.[012][,.]*)
8577 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8578 10.*)
8579 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8580 esac
8581 ;;
8582 esac
8583 if test yes = "$lt_cv_apple_cc_single_mod"; then
8584 _lt_dar_single_mod='$single_module'
8585 fi
8586 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8587 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8588 else
8589 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8590 fi
8591 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8592 _lt_dsymutil='~$DSYMUTIL $lib || :'
8593 else
8594 _lt_dsymutil=
8595 fi
8596 ;;
8597 esac
8598
8599 # func_munge_path_list VARIABLE PATH
8600 # -----------------------------------
8601 # VARIABLE is name of variable containing _space_ separated list of
8602 # directories to be munged by the contents of PATH, which is string
8603 # having a format:
8604 # "DIR[:DIR]:"
8605 # string "DIR[ DIR]" will be prepended to VARIABLE
8606 # ":DIR[:DIR]"
8607 # string "DIR[ DIR]" will be appended to VARIABLE
8608 # "DIRP[:DIRP]::[DIRA:]DIRA"
8609 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8610 # "DIRA[ DIRA]" will be appended to VARIABLE
8611 # "DIR[:DIR]"
8612 # VARIABLE will be replaced by "DIR[ DIR]"
8613 func_munge_path_list ()
8614 {
8615 case x$2 in
8616 x)
8617 ;;
8618 *:)
8619 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8620 ;;
8621 x:*)
8622 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8623 ;;
8624 *::*)
8625 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8626 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8627 ;;
8628 *)
8629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8630 ;;
8631 esac
8632 }
8633
8634 ac_ext=c
8635 ac_cpp='$CPP $CPPFLAGS'
8636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8641 # On Suns, sometimes $CPP names a directory.
8642 if test -n "$CPP" && test -d "$CPP"; then
8643 CPP=
8644 fi
8645 if test -z "$CPP"; then
8646 if ${ac_cv_prog_CPP+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 # Double quotes because CPP needs to be expanded
8650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8651 do
8652 ac_preproc_ok=false
8653 for ac_c_preproc_warn_flag in '' yes
8654 do
8655 # Use a header file that comes with gcc, so configuring glibc
8656 # with a fresh cross-compiler works.
8657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 # <limits.h> exists even on freestanding compilers.
8659 # On the NeXT, cc -E runs the code through the compiler's parser,
8660 # not just through cpp. "Syntax error" is here to catch this case.
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8668 Syntax error
8669 _ACEOF
8670 if ac_fn_c_try_cpp "$LINENO"; then :
8671
8672 else
8673 # Broken: fails on valid input.
8674 continue
8675 fi
8676 rm -f conftest.err conftest.i conftest.$ac_ext
8677
8678 # OK, works on sane cases. Now check whether nonexistent headers
8679 # can be detected and how.
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 #include <ac_nonexistent.h>
8683 _ACEOF
8684 if ac_fn_c_try_cpp "$LINENO"; then :
8685 # Broken: success on invalid input.
8686 continue
8687 else
8688 # Passes both tests.
8689 ac_preproc_ok=:
8690 break
8691 fi
8692 rm -f conftest.err conftest.i conftest.$ac_ext
8693
8694 done
8695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8696 rm -f conftest.i conftest.err conftest.$ac_ext
8697 if $ac_preproc_ok; then :
8698 break
8699 fi
8700
8701 done
8702 ac_cv_prog_CPP=$CPP
8703
8704 fi
8705 CPP=$ac_cv_prog_CPP
8706 else
8707 ac_cv_prog_CPP=$CPP
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8710 $as_echo "$CPP" >&6; }
8711 ac_preproc_ok=false
8712 for ac_c_preproc_warn_flag in '' yes
8713 do
8714 # Use a header file that comes with gcc, so configuring glibc
8715 # with a fresh cross-compiler works.
8716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 # <limits.h> exists even on freestanding compilers.
8718 # On the NeXT, cc -E runs the code through the compiler's parser,
8719 # not just through cpp. "Syntax error" is here to catch this case.
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #ifdef __STDC__
8723 # include <limits.h>
8724 #else
8725 # include <assert.h>
8726 #endif
8727 Syntax error
8728 _ACEOF
8729 if ac_fn_c_try_cpp "$LINENO"; then :
8730
8731 else
8732 # Broken: fails on valid input.
8733 continue
8734 fi
8735 rm -f conftest.err conftest.i conftest.$ac_ext
8736
8737 # OK, works on sane cases. Now check whether nonexistent headers
8738 # can be detected and how.
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <ac_nonexistent.h>
8742 _ACEOF
8743 if ac_fn_c_try_cpp "$LINENO"; then :
8744 # Broken: success on invalid input.
8745 continue
8746 else
8747 # Passes both tests.
8748 ac_preproc_ok=:
8749 break
8750 fi
8751 rm -f conftest.err conftest.i conftest.$ac_ext
8752
8753 done
8754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8755 rm -f conftest.i conftest.err conftest.$ac_ext
8756 if $ac_preproc_ok; then :
8757
8758 else
8759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8761 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8762 See \`config.log' for more details" "$LINENO" 5; }
8763 fi
8764
8765 ac_ext=c
8766 ac_cpp='$CPP $CPPFLAGS'
8767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8770
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8773 $as_echo_n "checking for ANSI C header files... " >&6; }
8774 if ${ac_cv_header_stdc+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #include <stdlib.h>
8780 #include <stdarg.h>
8781 #include <string.h>
8782 #include <float.h>
8783
8784 int
8785 main ()
8786 {
8787
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_compile "$LINENO"; then :
8793 ac_cv_header_stdc=yes
8794 else
8795 ac_cv_header_stdc=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798
8799 if test $ac_cv_header_stdc = yes; then
8800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <string.h>
8804
8805 _ACEOF
8806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 $EGREP "memchr" >/dev/null 2>&1; then :
8808
8809 else
8810 ac_cv_header_stdc=no
8811 fi
8812 rm -f conftest*
8813
8814 fi
8815
8816 if test $ac_cv_header_stdc = yes; then
8817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <stdlib.h>
8821
8822 _ACEOF
8823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8824 $EGREP "free" >/dev/null 2>&1; then :
8825
8826 else
8827 ac_cv_header_stdc=no
8828 fi
8829 rm -f conftest*
8830
8831 fi
8832
8833 if test $ac_cv_header_stdc = yes; then
8834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8835 if test "$cross_compiling" = yes; then :
8836 :
8837 else
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <ctype.h>
8841 #include <stdlib.h>
8842 #if ((' ' & 0x0FF) == 0x020)
8843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8845 #else
8846 # define ISLOWER(c) \
8847 (('a' <= (c) && (c) <= 'i') \
8848 || ('j' <= (c) && (c) <= 'r') \
8849 || ('s' <= (c) && (c) <= 'z'))
8850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8851 #endif
8852
8853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8854 int
8855 main ()
8856 {
8857 int i;
8858 for (i = 0; i < 256; i++)
8859 if (XOR (islower (i), ISLOWER (i))
8860 || toupper (i) != TOUPPER (i))
8861 return 2;
8862 return 0;
8863 }
8864 _ACEOF
8865 if ac_fn_c_try_run "$LINENO"; then :
8866
8867 else
8868 ac_cv_header_stdc=no
8869 fi
8870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8871 conftest.$ac_objext conftest.beam conftest.$ac_ext
8872 fi
8873
8874 fi
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8877 $as_echo "$ac_cv_header_stdc" >&6; }
8878 if test $ac_cv_header_stdc = yes; then
8879
8880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8881
8882 fi
8883
8884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8886 inttypes.h stdint.h unistd.h
8887 do :
8888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8890 "
8891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8892 cat >>confdefs.h <<_ACEOF
8893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8894 _ACEOF
8895
8896 fi
8897
8898 done
8899
8900
8901 for ac_header in dlfcn.h
8902 do :
8903 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8904 "
8905 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8906 cat >>confdefs.h <<_ACEOF
8907 #define HAVE_DLFCN_H 1
8908 _ACEOF
8909
8910 fi
8911
8912 done
8913
8914
8915
8916
8917 func_stripname_cnf ()
8918 {
8919 case $2 in
8920 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8921 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8922 esac
8923 } # func_stripname_cnf
8924
8925
8926
8927
8928
8929 # Set options
8930 # Check whether --enable-static was given.
8931 if test "${enable_static+set}" = set; then :
8932 enableval=$enable_static; p=${PACKAGE-default}
8933 case $enableval in
8934 yes) enable_static=yes ;;
8935 no) enable_static=no ;;
8936 *)
8937 enable_static=no
8938 # Look at the argument we got. We use all the common list separators.
8939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8940 for pkg in $enableval; do
8941 IFS=$lt_save_ifs
8942 if test "X$pkg" = "X$p"; then
8943 enable_static=yes
8944 fi
8945 done
8946 IFS=$lt_save_ifs
8947 ;;
8948 esac
8949 else
8950 enable_static=no
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962 enable_dlopen=no
8963
8964
8965 enable_win32_dll=no
8966
8967
8968 # Check whether --enable-shared was given.
8969 if test "${enable_shared+set}" = set; then :
8970 enableval=$enable_shared; p=${PACKAGE-default}
8971 case $enableval in
8972 yes) enable_shared=yes ;;
8973 no) enable_shared=no ;;
8974 *)
8975 enable_shared=no
8976 # Look at the argument we got. We use all the common list separators.
8977 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8978 for pkg in $enableval; do
8979 IFS=$lt_save_ifs
8980 if test "X$pkg" = "X$p"; then
8981 enable_shared=yes
8982 fi
8983 done
8984 IFS=$lt_save_ifs
8985 ;;
8986 esac
8987 else
8988 enable_shared=yes
8989 fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001 # Check whether --with-pic was given.
9002 if test "${with_pic+set}" = set; then :
9003 withval=$with_pic; lt_p=${PACKAGE-default}
9004 case $withval in
9005 yes|no) pic_mode=$withval ;;
9006 *)
9007 pic_mode=default
9008 # Look at the argument we got. We use all the common list separators.
9009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9010 for lt_pkg in $withval; do
9011 IFS=$lt_save_ifs
9012 if test "X$lt_pkg" = "X$lt_p"; then
9013 pic_mode=yes
9014 fi
9015 done
9016 IFS=$lt_save_ifs
9017 ;;
9018 esac
9019 else
9020 pic_mode=default
9021 fi
9022
9023
9024
9025
9026
9027
9028
9029
9030 # Check whether --enable-fast-install was given.
9031 if test "${enable_fast_install+set}" = set; then :
9032 enableval=$enable_fast_install; p=${PACKAGE-default}
9033 case $enableval in
9034 yes) enable_fast_install=yes ;;
9035 no) enable_fast_install=no ;;
9036 *)
9037 enable_fast_install=no
9038 # Look at the argument we got. We use all the common list separators.
9039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9040 for pkg in $enableval; do
9041 IFS=$lt_save_ifs
9042 if test "X$pkg" = "X$p"; then
9043 enable_fast_install=yes
9044 fi
9045 done
9046 IFS=$lt_save_ifs
9047 ;;
9048 esac
9049 else
9050 enable_fast_install=yes
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060 shared_archive_member_spec=
9061 case $host,$enable_shared in
9062 power*-*-aix[5-9]*,yes)
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9064 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9065
9066 # Check whether --with-aix-soname was given.
9067 if test "${with_aix_soname+set}" = set; then :
9068 withval=$with_aix_soname; case $withval in
9069 aix|svr4|both)
9070 ;;
9071 *)
9072 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9073 ;;
9074 esac
9075 lt_cv_with_aix_soname=$with_aix_soname
9076 else
9077 if ${lt_cv_with_aix_soname+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 lt_cv_with_aix_soname=aix
9081 fi
9082
9083 with_aix_soname=$lt_cv_with_aix_soname
9084 fi
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9087 $as_echo "$with_aix_soname" >&6; }
9088 if test aix != "$with_aix_soname"; then
9089 # For the AIX way of multilib, we name the shared archive member
9090 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9091 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9092 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9093 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9094 if test 64 = "${OBJECT_MODE-32}"; then
9095 shared_archive_member_spec=shr_64
9096 else
9097 shared_archive_member_spec=shr
9098 fi
9099 fi
9100 ;;
9101 *)
9102 with_aix_soname=aix
9103 ;;
9104 esac
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115 # This can be used to rebuild libtool when needed
9116 LIBTOOL_DEPS=$ltmain
9117
9118 # Always use our own libtool.
9119 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9120
9121
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 test -z "$LN_S" && LN_S="ln -s"
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165 if test -n "${ZSH_VERSION+set}"; then
9166 setopt NO_GLOB_SUBST
9167 fi
9168
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9170 $as_echo_n "checking for objdir... " >&6; }
9171 if ${lt_cv_objdir+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 rm -f .libs 2>/dev/null
9175 mkdir .libs 2>/dev/null
9176 if test -d .libs; then
9177 lt_cv_objdir=.libs
9178 else
9179 # MS-DOS does not allow filenames that begin with a dot.
9180 lt_cv_objdir=_libs
9181 fi
9182 rmdir .libs 2>/dev/null
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9185 $as_echo "$lt_cv_objdir" >&6; }
9186 objdir=$lt_cv_objdir
9187
9188
9189
9190
9191
9192 cat >>confdefs.h <<_ACEOF
9193 #define LT_OBJDIR "$lt_cv_objdir/"
9194 _ACEOF
9195
9196
9197
9198
9199 case $host_os in
9200 aix3*)
9201 # AIX sometimes has problems with the GCC collect2 program. For some
9202 # reason, if we set the COLLECT_NAMES environment variable, the problems
9203 # vanish in a puff of smoke.
9204 if test set != "${COLLECT_NAMES+set}"; then
9205 COLLECT_NAMES=
9206 export COLLECT_NAMES
9207 fi
9208 ;;
9209 esac
9210
9211 # Global variables:
9212 ofile=libtool
9213 can_build_shared=yes
9214
9215 # All known linkers require a '.a' archive for static linking (except MSVC,
9216 # which needs '.lib').
9217 libext=a
9218
9219 with_gnu_ld=$lt_cv_prog_gnu_ld
9220
9221 old_CC=$CC
9222 old_CFLAGS=$CFLAGS
9223
9224 # Set sane defaults for various variables
9225 test -z "$CC" && CC=cc
9226 test -z "$LTCC" && LTCC=$CC
9227 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9228 test -z "$LD" && LD=ld
9229 test -z "$ac_objext" && ac_objext=o
9230
9231 func_cc_basename $compiler
9232 cc_basename=$func_cc_basename_result
9233
9234
9235 # Only perform the check for file, if the check method requires it
9236 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9237 case $deplibs_check_method in
9238 file_magic*)
9239 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9241 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9242 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 case $MAGIC_CMD in
9246 [\\/*] | ?:[\\/]*)
9247 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9248 ;;
9249 *)
9250 lt_save_MAGIC_CMD=$MAGIC_CMD
9251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9253 for ac_dir in $ac_dummy; do
9254 IFS=$lt_save_ifs
9255 test -z "$ac_dir" && ac_dir=.
9256 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9257 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9258 if test -n "$file_magic_test_file"; then
9259 case $deplibs_check_method in
9260 "file_magic "*)
9261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9262 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9264 $EGREP "$file_magic_regex" > /dev/null; then
9265 :
9266 else
9267 cat <<_LT_EOF 1>&2
9268
9269 *** Warning: the command libtool uses to detect shared libraries,
9270 *** $file_magic_cmd, produces output that libtool cannot recognize.
9271 *** The result is that libtool may fail to recognize shared libraries
9272 *** as such. This will affect the creation of libtool libraries that
9273 *** depend on shared libraries, but programs linked with such libtool
9274 *** libraries will work regardless of this problem. Nevertheless, you
9275 *** may want to report the problem to your system manager and/or to
9276 *** bug-libtool@gnu.org
9277
9278 _LT_EOF
9279 fi ;;
9280 esac
9281 fi
9282 break
9283 fi
9284 done
9285 IFS=$lt_save_ifs
9286 MAGIC_CMD=$lt_save_MAGIC_CMD
9287 ;;
9288 esac
9289 fi
9290
9291 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9292 if test -n "$MAGIC_CMD"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9294 $as_echo "$MAGIC_CMD" >&6; }
9295 else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9298 fi
9299
9300
9301
9302
9303
9304 if test -z "$lt_cv_path_MAGIC_CMD"; then
9305 if test -n "$ac_tool_prefix"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9307 $as_echo_n "checking for file... " >&6; }
9308 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 case $MAGIC_CMD in
9312 [\\/*] | ?:[\\/]*)
9313 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9314 ;;
9315 *)
9316 lt_save_MAGIC_CMD=$MAGIC_CMD
9317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9319 for ac_dir in $ac_dummy; do
9320 IFS=$lt_save_ifs
9321 test -z "$ac_dir" && ac_dir=.
9322 if test -f "$ac_dir/file"; then
9323 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9324 if test -n "$file_magic_test_file"; then
9325 case $deplibs_check_method in
9326 "file_magic "*)
9327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9328 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9330 $EGREP "$file_magic_regex" > /dev/null; then
9331 :
9332 else
9333 cat <<_LT_EOF 1>&2
9334
9335 *** Warning: the command libtool uses to detect shared libraries,
9336 *** $file_magic_cmd, produces output that libtool cannot recognize.
9337 *** The result is that libtool may fail to recognize shared libraries
9338 *** as such. This will affect the creation of libtool libraries that
9339 *** depend on shared libraries, but programs linked with such libtool
9340 *** libraries will work regardless of this problem. Nevertheless, you
9341 *** may want to report the problem to your system manager and/or to
9342 *** bug-libtool@gnu.org
9343
9344 _LT_EOF
9345 fi ;;
9346 esac
9347 fi
9348 break
9349 fi
9350 done
9351 IFS=$lt_save_ifs
9352 MAGIC_CMD=$lt_save_MAGIC_CMD
9353 ;;
9354 esac
9355 fi
9356
9357 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9358 if test -n "$MAGIC_CMD"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9360 $as_echo "$MAGIC_CMD" >&6; }
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9364 fi
9365
9366
9367 else
9368 MAGIC_CMD=:
9369 fi
9370 fi
9371
9372 fi
9373 ;;
9374 esac
9375
9376 # Use C for the default configuration in the libtool script
9377
9378 lt_save_CC=$CC
9379 ac_ext=c
9380 ac_cpp='$CPP $CPPFLAGS'
9381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9384
9385
9386 # Source file extension for C test sources.
9387 ac_ext=c
9388
9389 # Object file extension for compiled C test sources.
9390 objext=o
9391 objext=$objext
9392
9393 # Code to be used in simple compile tests
9394 lt_simple_compile_test_code="int some_variable = 0;"
9395
9396 # Code to be used in simple link tests
9397 lt_simple_link_test_code='int main(){return(0);}'
9398
9399
9400
9401
9402
9403
9404
9405 # If no C compiler was specified, use CC.
9406 LTCC=${LTCC-"$CC"}
9407
9408 # If no C compiler flags were specified, use CFLAGS.
9409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9410
9411 # Allow CC to be a program name with arguments.
9412 compiler=$CC
9413
9414 # Save the default compiler, since it gets overwritten when the other
9415 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9416 compiler_DEFAULT=$CC
9417
9418 # save warnings/boilerplate of simple test code
9419 ac_outfile=conftest.$ac_objext
9420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9422 _lt_compiler_boilerplate=`cat conftest.err`
9423 $RM -r conftest*
9424
9425 ac_outfile=conftest.$ac_objext
9426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9428 _lt_linker_boilerplate=`cat conftest.err`
9429 $RM -r conftest*
9430
9431
9432 ## CAVEAT EMPTOR:
9433 ## There is no encapsulation within the following macros, do not change
9434 ## the running order or otherwise move them around unless you know exactly
9435 ## what you are doing...
9436 if test -n "$compiler"; then
9437
9438 lt_prog_compiler_no_builtin_flag=
9439
9440 if test yes = "$GCC"; then
9441 case $cc_basename in
9442 nvcc*)
9443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9444 *)
9445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9446 esac
9447
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9450 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 lt_cv_prog_compiler_rtti_exceptions=no
9454 ac_outfile=conftest.$ac_objext
9455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9456 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9457 # Insert the option either (1) after the last *FLAGS variable, or
9458 # (2) before a word containing "conftest.", or (3) at the end.
9459 # Note that $ac_compile itself does not contain backslashes and begins
9460 # with a dollar sign (not a hyphen), so the echo should work correctly.
9461 # The option is referenced via a variable to avoid confusing sed.
9462 lt_compile=`echo "$ac_compile" | $SED \
9463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9465 -e 's:$: $lt_compiler_flag:'`
9466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9467 (eval "$lt_compile" 2>conftest.err)
9468 ac_status=$?
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 if (exit $ac_status) && test -s "$ac_outfile"; then
9472 # The compiler can only warn and ignore the option if not recognized
9473 # So say no if there are warnings other than the usual output.
9474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler_rtti_exceptions=yes
9478 fi
9479 fi
9480 $RM -r conftest*
9481
9482 fi
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9485
9486 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9488 else
9489 :
9490 fi
9491
9492 fi
9493
9494
9495
9496
9497
9498
9499 lt_prog_compiler_wl=
9500 lt_prog_compiler_pic=
9501 lt_prog_compiler_static=
9502
9503
9504 if test yes = "$GCC"; then
9505 lt_prog_compiler_wl='-Wl,'
9506 lt_prog_compiler_static='-static'
9507
9508 case $host_os in
9509 aix*)
9510 # All AIX code is PIC.
9511 if test ia64 = "$host_cpu"; then
9512 # AIX 5 now supports IA64 processor
9513 lt_prog_compiler_static='-Bstatic'
9514 fi
9515 lt_prog_compiler_pic='-fPIC'
9516 ;;
9517
9518 amigaos*)
9519 case $host_cpu in
9520 powerpc)
9521 # see comment about AmigaOS4 .so support
9522 lt_prog_compiler_pic='-fPIC'
9523 ;;
9524 m68k)
9525 # FIXME: we need at least 68020 code to build shared libraries, but
9526 # adding the '-m68020' flag to GCC prevents building anything better,
9527 # like '-m68040'.
9528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9529 ;;
9530 esac
9531 ;;
9532
9533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9534 # PIC is the default for these OSes.
9535 ;;
9536
9537 mingw* | cygwin* | pw32* | os2* | cegcc*)
9538 # This hack is so that the source file can tell whether it is being
9539 # built for inclusion in a dll (and should export symbols for example).
9540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9541 # (--disable-auto-import) libraries
9542 lt_prog_compiler_pic='-DDLL_EXPORT'
9543 case $host_os in
9544 os2*)
9545 lt_prog_compiler_static='$wl-static'
9546 ;;
9547 esac
9548 ;;
9549
9550 darwin* | rhapsody*)
9551 # PIC is the default on this platform
9552 # Common symbols not allowed in MH_DYLIB files
9553 lt_prog_compiler_pic='-fno-common'
9554 ;;
9555
9556 haiku*)
9557 # PIC is the default for Haiku.
9558 # The "-static" flag exists, but is broken.
9559 lt_prog_compiler_static=
9560 ;;
9561
9562 hpux*)
9563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9565 # sets the default TLS model and affects inlining.
9566 case $host_cpu in
9567 hppa*64*)
9568 # +Z the default
9569 ;;
9570 *)
9571 lt_prog_compiler_pic='-fPIC'
9572 ;;
9573 esac
9574 ;;
9575
9576 interix[3-9]*)
9577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9578 # Instead, we relocate shared libraries at runtime.
9579 ;;
9580
9581 msdosdjgpp*)
9582 # Just because we use GCC doesn't mean we suddenly get shared libraries
9583 # on systems that don't support them.
9584 lt_prog_compiler_can_build_shared=no
9585 enable_shared=no
9586 ;;
9587
9588 *nto* | *qnx*)
9589 # QNX uses GNU C++, but need to define -shared option too, otherwise
9590 # it will coredump.
9591 lt_prog_compiler_pic='-fPIC -shared'
9592 ;;
9593
9594 sysv4*MP*)
9595 if test -d /usr/nec; then
9596 lt_prog_compiler_pic=-Kconform_pic
9597 fi
9598 ;;
9599
9600 *)
9601 lt_prog_compiler_pic='-fPIC'
9602 ;;
9603 esac
9604
9605 case $cc_basename in
9606 nvcc*) # Cuda Compiler Driver 2.2
9607 lt_prog_compiler_wl='-Xlinker '
9608 if test -n "$lt_prog_compiler_pic"; then
9609 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9610 fi
9611 ;;
9612 esac
9613 else
9614 # PORTME Check for flag to pass linker flags through the system compiler.
9615 case $host_os in
9616 aix*)
9617 lt_prog_compiler_wl='-Wl,'
9618 if test ia64 = "$host_cpu"; then
9619 # AIX 5 now supports IA64 processor
9620 lt_prog_compiler_static='-Bstatic'
9621 else
9622 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9623 fi
9624 ;;
9625
9626 darwin* | rhapsody*)
9627 # PIC is the default on this platform
9628 # Common symbols not allowed in MH_DYLIB files
9629 lt_prog_compiler_pic='-fno-common'
9630 case $cc_basename in
9631 nagfor*)
9632 # NAG Fortran compiler
9633 lt_prog_compiler_wl='-Wl,-Wl,,'
9634 lt_prog_compiler_pic='-PIC'
9635 lt_prog_compiler_static='-Bstatic'
9636 ;;
9637 esac
9638 ;;
9639
9640 mingw* | cygwin* | pw32* | os2* | cegcc*)
9641 # This hack is so that the source file can tell whether it is being
9642 # built for inclusion in a dll (and should export symbols for example).
9643 lt_prog_compiler_pic='-DDLL_EXPORT'
9644 case $host_os in
9645 os2*)
9646 lt_prog_compiler_static='$wl-static'
9647 ;;
9648 esac
9649 ;;
9650
9651 hpux9* | hpux10* | hpux11*)
9652 lt_prog_compiler_wl='-Wl,'
9653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9654 # not for PA HP-UX.
9655 case $host_cpu in
9656 hppa*64*|ia64*)
9657 # +Z the default
9658 ;;
9659 *)
9660 lt_prog_compiler_pic='+Z'
9661 ;;
9662 esac
9663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9664 lt_prog_compiler_static='$wl-a ${wl}archive'
9665 ;;
9666
9667 irix5* | irix6* | nonstopux*)
9668 lt_prog_compiler_wl='-Wl,'
9669 # PIC (with -KPIC) is the default.
9670 lt_prog_compiler_static='-non_shared'
9671 ;;
9672
9673 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9674 case $cc_basename in
9675 # old Intel for x86_64, which still supported -KPIC.
9676 ecc*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-static'
9680 ;;
9681 # icc used to be incompatible with GCC.
9682 # ICC 10 doesn't accept -KPIC any more.
9683 icc* | ifort*)
9684 lt_prog_compiler_wl='-Wl,'
9685 lt_prog_compiler_pic='-fPIC'
9686 lt_prog_compiler_static='-static'
9687 ;;
9688 # Lahey Fortran 8.1.
9689 lf95*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='--shared'
9692 lt_prog_compiler_static='--static'
9693 ;;
9694 nagfor*)
9695 # NAG Fortran compiler
9696 lt_prog_compiler_wl='-Wl,-Wl,,'
9697 lt_prog_compiler_pic='-PIC'
9698 lt_prog_compiler_static='-Bstatic'
9699 ;;
9700 tcc*)
9701 # Fabrice Bellard et al's Tiny C Compiler
9702 lt_prog_compiler_wl='-Wl,'
9703 lt_prog_compiler_pic='-fPIC'
9704 lt_prog_compiler_static='-static'
9705 ;;
9706 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9707 # Portland Group compilers (*not* the Pentium gcc compiler,
9708 # which looks to be a dead project)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-fpic'
9711 lt_prog_compiler_static='-Bstatic'
9712 ;;
9713 ccc*)
9714 lt_prog_compiler_wl='-Wl,'
9715 # All Alpha code is PIC.
9716 lt_prog_compiler_static='-non_shared'
9717 ;;
9718 xl* | bgxl* | bgf* | mpixl*)
9719 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9720 lt_prog_compiler_wl='-Wl,'
9721 lt_prog_compiler_pic='-qpic'
9722 lt_prog_compiler_static='-qstaticlink'
9723 ;;
9724 *)
9725 case `$CC -V 2>&1 | sed 5q` in
9726 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9728 lt_prog_compiler_pic='-KPIC'
9729 lt_prog_compiler_static='-Bstatic'
9730 lt_prog_compiler_wl=''
9731 ;;
9732 *Sun\ F* | *Sun*Fortran*)
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_wl='-Qoption ld '
9736 ;;
9737 *Sun\ C*)
9738 # Sun C 5.9
9739 lt_prog_compiler_pic='-KPIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 lt_prog_compiler_wl='-Wl,'
9742 ;;
9743 *Intel*\ [CF]*Compiler*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fPIC'
9746 lt_prog_compiler_static='-static'
9747 ;;
9748 *Portland\ Group*)
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='-fpic'
9751 lt_prog_compiler_static='-Bstatic'
9752 ;;
9753 esac
9754 ;;
9755 esac
9756 ;;
9757
9758 newsos6)
9759 lt_prog_compiler_pic='-KPIC'
9760 lt_prog_compiler_static='-Bstatic'
9761 ;;
9762
9763 *nto* | *qnx*)
9764 # QNX uses GNU C++, but need to define -shared option too, otherwise
9765 # it will coredump.
9766 lt_prog_compiler_pic='-fPIC -shared'
9767 ;;
9768
9769 osf3* | osf4* | osf5*)
9770 lt_prog_compiler_wl='-Wl,'
9771 # All OSF/1 code is PIC.
9772 lt_prog_compiler_static='-non_shared'
9773 ;;
9774
9775 rdos*)
9776 lt_prog_compiler_static='-non_shared'
9777 ;;
9778
9779 solaris*)
9780 lt_prog_compiler_pic='-KPIC'
9781 lt_prog_compiler_static='-Bstatic'
9782 case $cc_basename in
9783 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9784 lt_prog_compiler_wl='-Qoption ld ';;
9785 *)
9786 lt_prog_compiler_wl='-Wl,';;
9787 esac
9788 ;;
9789
9790 sunos4*)
9791 lt_prog_compiler_wl='-Qoption ld '
9792 lt_prog_compiler_pic='-PIC'
9793 lt_prog_compiler_static='-Bstatic'
9794 ;;
9795
9796 sysv4 | sysv4.2uw2* | sysv4.3*)
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-Bstatic'
9800 ;;
9801
9802 sysv4*MP*)
9803 if test -d /usr/nec; then
9804 lt_prog_compiler_pic='-Kconform_pic'
9805 lt_prog_compiler_static='-Bstatic'
9806 fi
9807 ;;
9808
9809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='-KPIC'
9812 lt_prog_compiler_static='-Bstatic'
9813 ;;
9814
9815 unicos*)
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_can_build_shared=no
9818 ;;
9819
9820 uts4*)
9821 lt_prog_compiler_pic='-pic'
9822 lt_prog_compiler_static='-Bstatic'
9823 ;;
9824
9825 *)
9826 lt_prog_compiler_can_build_shared=no
9827 ;;
9828 esac
9829 fi
9830
9831 case $host_os in
9832 # For platforms that do not support PIC, -DPIC is meaningless:
9833 *djgpp*)
9834 lt_prog_compiler_pic=
9835 ;;
9836 *)
9837 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9838 ;;
9839 esac
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9842 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9843 if ${lt_cv_prog_compiler_pic+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9847 fi
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9849 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9850 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9851
9852 #
9853 # Check to make sure the PIC flag actually works.
9854 #
9855 if test -n "$lt_prog_compiler_pic"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9857 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9858 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 lt_cv_prog_compiler_pic_works=no
9862 ac_outfile=conftest.$ac_objext
9863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9865 # Insert the option either (1) after the last *FLAGS variable, or
9866 # (2) before a word containing "conftest.", or (3) at the end.
9867 # Note that $ac_compile itself does not contain backslashes and begins
9868 # with a dollar sign (not a hyphen), so the echo should work correctly.
9869 # The option is referenced via a variable to avoid confusing sed.
9870 lt_compile=`echo "$ac_compile" | $SED \
9871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9873 -e 's:$: $lt_compiler_flag:'`
9874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9875 (eval "$lt_compile" 2>conftest.err)
9876 ac_status=$?
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 if (exit $ac_status) && test -s "$ac_outfile"; then
9880 # The compiler can only warn and ignore the option if not recognized
9881 # So say no if there are warnings other than the usual output.
9882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler_pic_works=yes
9886 fi
9887 fi
9888 $RM -r conftest*
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9892 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9893
9894 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9895 case $lt_prog_compiler_pic in
9896 "" | " "*) ;;
9897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9898 esac
9899 else
9900 lt_prog_compiler_pic=
9901 lt_prog_compiler_can_build_shared=no
9902 fi
9903
9904 fi
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 #
9917 # Check to make sure the static flag actually works.
9918 #
9919 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9921 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9922 if ${lt_cv_prog_compiler_static_works+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 lt_cv_prog_compiler_static_works=no
9926 save_LDFLAGS=$LDFLAGS
9927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9930 # The linker can only warn and ignore the option if not recognized
9931 # So say no if there are warnings
9932 if test -s conftest.err; then
9933 # Append any errors to the config.log.
9934 cat conftest.err 1>&5
9935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9937 if diff conftest.exp conftest.er2 >/dev/null; then
9938 lt_cv_prog_compiler_static_works=yes
9939 fi
9940 else
9941 lt_cv_prog_compiler_static_works=yes
9942 fi
9943 fi
9944 $RM -r conftest*
9945 LDFLAGS=$save_LDFLAGS
9946
9947 fi
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9949 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9950
9951 if test yes = "$lt_cv_prog_compiler_static_works"; then
9952 :
9953 else
9954 lt_prog_compiler_static=
9955 fi
9956
9957
9958
9959
9960
9961
9962
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9965 if ${lt_cv_prog_compiler_c_o+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 lt_cv_prog_compiler_c_o=no
9969 $RM -r conftest 2>/dev/null
9970 mkdir conftest
9971 cd conftest
9972 mkdir out
9973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9974
9975 lt_compiler_flag="-o out/conftest2.$ac_objext"
9976 # Insert the option either (1) after the last *FLAGS variable, or
9977 # (2) before a word containing "conftest.", or (3) at the end.
9978 # Note that $ac_compile itself does not contain backslashes and begins
9979 # with a dollar sign (not a hyphen), so the echo should work correctly.
9980 lt_compile=`echo "$ac_compile" | $SED \
9981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9983 -e 's:$: $lt_compiler_flag:'`
9984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9985 (eval "$lt_compile" 2>out/conftest.err)
9986 ac_status=$?
9987 cat out/conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9990 then
9991 # The compiler can only warn and ignore the option if not recognized
9992 # So say no if there are warnings
9993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9996 lt_cv_prog_compiler_c_o=yes
9997 fi
9998 fi
9999 chmod u+w . 2>&5
10000 $RM -r conftest*
10001 # SGI C++ compiler will create directory out/ii_files/ for
10002 # template instantiation
10003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10004 $RM out/* && rmdir out
10005 cd ..
10006 $RM -r conftest
10007 $RM -r conftest*
10008
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10011 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10012
10013
10014
10015
10016
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10019 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10020 if ${lt_cv_prog_compiler_c_o+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 lt_cv_prog_compiler_c_o=no
10024 $RM -r conftest 2>/dev/null
10025 mkdir conftest
10026 cd conftest
10027 mkdir out
10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10029
10030 lt_compiler_flag="-o out/conftest2.$ac_objext"
10031 # Insert the option either (1) after the last *FLAGS variable, or
10032 # (2) before a word containing "conftest.", or (3) at the end.
10033 # Note that $ac_compile itself does not contain backslashes and begins
10034 # with a dollar sign (not a hyphen), so the echo should work correctly.
10035 lt_compile=`echo "$ac_compile" | $SED \
10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10038 -e 's:$: $lt_compiler_flag:'`
10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10040 (eval "$lt_compile" 2>out/conftest.err)
10041 ac_status=$?
10042 cat out/conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10045 then
10046 # The compiler can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10051 lt_cv_prog_compiler_c_o=yes
10052 fi
10053 fi
10054 chmod u+w . 2>&5
10055 $RM -r conftest*
10056 # SGI C++ compiler will create directory out/ii_files/ for
10057 # template instantiation
10058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10059 $RM out/* && rmdir out
10060 cd ..
10061 $RM -r conftest
10062 $RM -r conftest*
10063
10064 fi
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10066 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10067
10068
10069
10070
10071 hard_links=nottested
10072 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10073 # do not overwrite the value of need_locks provided by the user
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10075 $as_echo_n "checking if we can lock with hard links... " >&6; }
10076 hard_links=yes
10077 $RM -r conftest*
10078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10079 touch conftest.a
10080 ln conftest.a conftest.b 2>&5 || hard_links=no
10081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10083 $as_echo "$hard_links" >&6; }
10084 if test no = "$hard_links"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10086 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10087 need_locks=warn
10088 fi
10089 else
10090 need_locks=no
10091 fi
10092
10093
10094
10095
10096
10097
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10099 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10100
10101 runpath_var=
10102 allow_undefined_flag=
10103 always_export_symbols=no
10104 archive_cmds=
10105 archive_expsym_cmds=
10106 compiler_needs_object=no
10107 enable_shared_with_static_runtimes=no
10108 export_dynamic_flag_spec=
10109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10110 hardcode_automatic=no
10111 hardcode_direct=no
10112 hardcode_direct_absolute=no
10113 hardcode_libdir_flag_spec=
10114 hardcode_libdir_separator=
10115 hardcode_minus_L=no
10116 hardcode_shlibpath_var=unsupported
10117 inherit_rpath=no
10118 link_all_deplibs=unknown
10119 module_cmds=
10120 module_expsym_cmds=
10121 old_archive_from_new_cmds=
10122 old_archive_from_expsyms_cmds=
10123 thread_safe_flag_spec=
10124 whole_archive_flag_spec=
10125 # include_expsyms should be a list of space-separated symbols to be *always*
10126 # included in the symbol list
10127 include_expsyms=
10128 # exclude_expsyms can be an extended regexp of symbols to exclude
10129 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10130 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10131 # as well as any symbol that contains 'd'.
10132 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10134 # platforms (ab)use it in PIC code, but their linkers get confused if
10135 # the symbol is explicitly referenced. Since portable code cannot
10136 # rely on this symbol name, it's probably fine to never include it in
10137 # preloaded symbol tables.
10138 # Exclude shared library initialization/finalization symbols.
10139 extract_expsyms_cmds=
10140
10141 case $host_os in
10142 cygwin* | mingw* | pw32* | cegcc*)
10143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10144 # When not using gcc, we currently assume that we are using
10145 # Microsoft Visual C++.
10146 if test yes != "$GCC"; then
10147 with_gnu_ld=no
10148 fi
10149 ;;
10150 interix*)
10151 # we just hope/assume this is gcc and not c89 (= MSVC++)
10152 with_gnu_ld=yes
10153 ;;
10154 openbsd* | bitrig*)
10155 with_gnu_ld=no
10156 ;;
10157 esac
10158
10159 ld_shlibs=yes
10160
10161 # On some targets, GNU ld is compatible enough with the native linker
10162 # that we're better off using the native interface for both.
10163 lt_use_gnu_ld_interface=no
10164 if test yes = "$with_gnu_ld"; then
10165 case $host_os in
10166 aix*)
10167 # The AIX port of GNU ld has always aspired to compatibility
10168 # with the native linker. However, as the warning in the GNU ld
10169 # block says, versions before 2.19.5* couldn't really create working
10170 # shared libraries, regardless of the interface used.
10171 case `$LD -v 2>&1` in
10172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10175 *)
10176 lt_use_gnu_ld_interface=yes
10177 ;;
10178 esac
10179 ;;
10180 *)
10181 lt_use_gnu_ld_interface=yes
10182 ;;
10183 esac
10184 fi
10185
10186 if test yes = "$lt_use_gnu_ld_interface"; then
10187 # If archive_cmds runs LD, not CC, wlarc should be empty
10188 wlarc='$wl'
10189
10190 # Set some defaults for GNU ld with shared library support. These
10191 # are reset later if shared libraries are not supported. Putting them
10192 # here allows them to be overridden if necessary.
10193 runpath_var=LD_RUN_PATH
10194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10195 export_dynamic_flag_spec='$wl--export-dynamic'
10196 # ancient GNU ld didn't support --whole-archive et. al.
10197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10198 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10199 else
10200 whole_archive_flag_spec=
10201 fi
10202 supports_anon_versioning=no
10203 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10204 *GNU\ gold*) supports_anon_versioning=yes ;;
10205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10208 *\ 2.11.*) ;; # other 2.11 versions
10209 *) supports_anon_versioning=yes ;;
10210 esac
10211
10212 # See if GNU ld supports shared libraries.
10213 case $host_os in
10214 aix[3-9]*)
10215 # On AIX/PPC, the GNU linker is very broken
10216 if test ia64 != "$host_cpu"; then
10217 ld_shlibs=no
10218 cat <<_LT_EOF 1>&2
10219
10220 *** Warning: the GNU linker, at least up to release 2.19, is reported
10221 *** to be unable to reliably create shared libraries on AIX.
10222 *** Therefore, libtool is disabling shared libraries support. If you
10223 *** really care for shared libraries, you may want to install binutils
10224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10225 *** You will then need to restart the configuration process.
10226
10227 _LT_EOF
10228 fi
10229 ;;
10230
10231 amigaos*)
10232 case $host_cpu in
10233 powerpc)
10234 # see comment about AmigaOS4 .so support
10235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10236 archive_expsym_cmds=''
10237 ;;
10238 m68k)
10239 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)'
10240 hardcode_libdir_flag_spec='-L$libdir'
10241 hardcode_minus_L=yes
10242 ;;
10243 esac
10244 ;;
10245
10246 beos*)
10247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10248 allow_undefined_flag=unsupported
10249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10250 # support --undefined. This deserves some investigation. FIXME
10251 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10252 else
10253 ld_shlibs=no
10254 fi
10255 ;;
10256
10257 cygwin* | mingw* | pw32* | cegcc*)
10258 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10259 # as there is no search path for DLLs.
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 export_dynamic_flag_spec='$wl--export-all-symbols'
10262 allow_undefined_flag=unsupported
10263 always_export_symbols=no
10264 enable_shared_with_static_runtimes=yes
10265 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'
10266 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10267
10268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10270 # If the export-symbols file already is a .def file, use it as
10271 # is; otherwise, prepend EXPORTS...
10272 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10273 cp $export_symbols $output_objdir/$soname.def;
10274 else
10275 echo EXPORTS > $output_objdir/$soname.def;
10276 cat $export_symbols >> $output_objdir/$soname.def;
10277 fi~
10278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10279 else
10280 ld_shlibs=no
10281 fi
10282 ;;
10283
10284 haiku*)
10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10286 link_all_deplibs=yes
10287 ;;
10288
10289 os2*)
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_minus_L=yes
10292 allow_undefined_flag=unsupported
10293 shrext_cmds=.dll
10294 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10295 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10296 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10297 $ECHO EXPORTS >> $output_objdir/$libname.def~
10298 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10299 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10300 emximp -o $lib $output_objdir/$libname.def'
10301 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10302 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10303 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10304 $ECHO EXPORTS >> $output_objdir/$libname.def~
10305 prefix_cmds="$SED"~
10306 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10307 prefix_cmds="$prefix_cmds -e 1d";
10308 fi~
10309 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10310 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10311 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10312 emximp -o $lib $output_objdir/$libname.def'
10313 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10314 enable_shared_with_static_runtimes=yes
10315 ;;
10316
10317 interix[3-9]*)
10318 hardcode_direct=no
10319 hardcode_shlibpath_var=no
10320 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10321 export_dynamic_flag_spec='$wl-E'
10322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10323 # Instead, shared libraries are loaded at an image base (0x10000000 by
10324 # default) and relocated if they conflict, which is a slow very memory
10325 # consuming and fragmenting process. To avoid this, we pick a random,
10326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10329 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'
10330 ;;
10331
10332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10333 tmp_diet=no
10334 if test linux-dietlibc = "$host_os"; then
10335 case $cc_basename in
10336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10337 esac
10338 fi
10339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10340 && test no = "$tmp_diet"
10341 then
10342 tmp_addflag=' $pic_flag'
10343 tmp_sharedflag='-shared'
10344 case $cc_basename,$host_cpu in
10345 pgcc*) # Portland Group C compiler
10346 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'
10347 tmp_addflag=' $pic_flag'
10348 ;;
10349 pgf77* | pgf90* | pgf95* | pgfortran*)
10350 # Portland Group f77 and f90 compilers
10351 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'
10352 tmp_addflag=' $pic_flag -Mnomain' ;;
10353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10354 tmp_addflag=' -i_dynamic' ;;
10355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10356 tmp_addflag=' -i_dynamic -nofor_main' ;;
10357 ifc* | ifort*) # Intel Fortran compiler
10358 tmp_addflag=' -nofor_main' ;;
10359 lf95*) # Lahey Fortran 8.1
10360 whole_archive_flag_spec=
10361 tmp_sharedflag='--shared' ;;
10362 nagfor*) # NAGFOR 5.3
10363 tmp_sharedflag='-Wl,-shared' ;;
10364 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10365 tmp_sharedflag='-qmkshrobj'
10366 tmp_addflag= ;;
10367 nvcc*) # Cuda Compiler Driver 2.2
10368 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'
10369 compiler_needs_object=yes
10370 ;;
10371 esac
10372 case `$CC -V 2>&1 | sed 5q` in
10373 *Sun\ C*) # Sun C 5.9
10374 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'
10375 compiler_needs_object=yes
10376 tmp_sharedflag='-G' ;;
10377 *Sun\ F*) # Sun Fortran 8.3
10378 tmp_sharedflag='-G' ;;
10379 esac
10380 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10381
10382 if test yes = "$supports_anon_versioning"; then
10383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10385 echo "local: *; };" >> $output_objdir/$libname.ver~
10386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10387 fi
10388
10389 case $cc_basename in
10390 tcc*)
10391 export_dynamic_flag_spec='-rdynamic'
10392 ;;
10393 xlf* | bgf* | bgxlf* | mpixlf*)
10394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10395 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10398 if test yes = "$supports_anon_versioning"; then
10399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10401 echo "local: *; };" >> $output_objdir/$libname.ver~
10402 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10403 fi
10404 ;;
10405 esac
10406 else
10407 ld_shlibs=no
10408 fi
10409 ;;
10410
10411 netbsd*)
10412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10414 wlarc=
10415 else
10416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10418 fi
10419 ;;
10420
10421 solaris*)
10422 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10423 ld_shlibs=no
10424 cat <<_LT_EOF 1>&2
10425
10426 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10427 *** create shared libraries on Solaris systems. Therefore, libtool
10428 *** is disabling shared libraries support. We urge you to upgrade GNU
10429 *** binutils to release 2.9.1 or newer. Another option is to modify
10430 *** your PATH or compiler configuration so that the native linker is
10431 *** used, and then restart.
10432
10433 _LT_EOF
10434 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10436 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10437 else
10438 ld_shlibs=no
10439 fi
10440 ;;
10441
10442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10443 case `$LD -v 2>&1` in
10444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10445 ld_shlibs=no
10446 cat <<_LT_EOF 1>&2
10447
10448 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10449 *** reliably create shared libraries on SCO systems. Therefore, libtool
10450 *** is disabling shared libraries support. We urge you to upgrade GNU
10451 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10452 *** your PATH or compiler configuration so that the native linker is
10453 *** used, and then restart.
10454
10455 _LT_EOF
10456 ;;
10457 *)
10458 # For security reasons, it is highly recommended that you always
10459 # use absolute paths for naming shared libraries, and exclude the
10460 # DT_RUNPATH tag from executables and libraries. But doing so
10461 # requires that you compile everything twice, which is a pain.
10462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10466 else
10467 ld_shlibs=no
10468 fi
10469 ;;
10470 esac
10471 ;;
10472
10473 sunos4*)
10474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10475 wlarc=
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10478 ;;
10479
10480 *)
10481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10483 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10484 else
10485 ld_shlibs=no
10486 fi
10487 ;;
10488 esac
10489
10490 if test no = "$ld_shlibs"; then
10491 runpath_var=
10492 hardcode_libdir_flag_spec=
10493 export_dynamic_flag_spec=
10494 whole_archive_flag_spec=
10495 fi
10496 else
10497 # PORTME fill in a description of your system's linker (not GNU ld)
10498 case $host_os in
10499 aix3*)
10500 allow_undefined_flag=unsupported
10501 always_export_symbols=yes
10502 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'
10503 # Note: this linker hardcodes the directories in LIBPATH if there
10504 # are no directories specified by -L.
10505 hardcode_minus_L=yes
10506 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10507 # Neither direct hardcoding nor static linking is supported with a
10508 # broken collect2.
10509 hardcode_direct=unsupported
10510 fi
10511 ;;
10512
10513 aix[4-9]*)
10514 if test ia64 = "$host_cpu"; then
10515 # On IA64, the linker does run time linking by default, so we don't
10516 # have to do anything special.
10517 aix_use_runtimelinking=no
10518 exp_sym_flag='-Bexport'
10519 no_entry_flag=
10520 else
10521 # If we're using GNU nm, then we don't want the "-C" option.
10522 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10523 # Without the "-l" option, or with the "-B" option, AIX nm treats
10524 # weak defined symbols like other global defined symbols, whereas
10525 # GNU nm marks them as "W".
10526 # While the 'weak' keyword is ignored in the Export File, we need
10527 # it in the Import File for the 'aix-soname' feature, so we have
10528 # to replace the "-B" option with "-P" for AIX nm.
10529 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10530 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'
10531 else
10532 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'
10533 fi
10534 aix_use_runtimelinking=no
10535
10536 # Test if we are trying to use run time linking or normal
10537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10538 # have runtime linking enabled, and use it for executables.
10539 # For shared libraries, we enable/disable runtime linking
10540 # depending on the kind of the shared library created -
10541 # when "with_aix_soname,aix_use_runtimelinking" is:
10542 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10543 # "aix,yes" lib.so shared, rtl:yes, for executables
10544 # lib.a static archive
10545 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10546 # lib.a(lib.so.V) shared, rtl:no, for executables
10547 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10548 # lib.a(lib.so.V) shared, rtl:no
10549 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10550 # lib.a static archive
10551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10552 for ld_flag in $LDFLAGS; do
10553 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10554 aix_use_runtimelinking=yes
10555 break
10556 fi
10557 done
10558 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10559 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10560 # so we don't have lib.a shared libs to link our executables.
10561 # We have to force runtime linking in this case.
10562 aix_use_runtimelinking=yes
10563 LDFLAGS="$LDFLAGS -Wl,-brtl"
10564 fi
10565 ;;
10566 esac
10567
10568 exp_sym_flag='-bexport'
10569 no_entry_flag='-bnoentry'
10570 fi
10571
10572 # When large executables or shared objects are built, AIX ld can
10573 # have problems creating the table of contents. If linking a library
10574 # or program results in "error TOC overflow" add -mminimal-toc to
10575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10577
10578 archive_cmds=''
10579 hardcode_direct=yes
10580 hardcode_direct_absolute=yes
10581 hardcode_libdir_separator=':'
10582 link_all_deplibs=yes
10583 file_list_spec='$wl-f,'
10584 case $with_aix_soname,$aix_use_runtimelinking in
10585 aix,*) ;; # traditional, no import file
10586 svr4,* | *,yes) # use import file
10587 # The Import File defines what to hardcode.
10588 hardcode_direct=no
10589 hardcode_direct_absolute=no
10590 ;;
10591 esac
10592
10593 if test yes = "$GCC"; then
10594 case $host_os in aix4.[012]|aix4.[012].*)
10595 # We only want to do this on AIX 4.2 and lower, the check
10596 # below for broken collect2 doesn't work under 4.3+
10597 collect2name=`$CC -print-prog-name=collect2`
10598 if test -f "$collect2name" &&
10599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10600 then
10601 # We have reworked collect2
10602 :
10603 else
10604 # We have old collect2
10605 hardcode_direct=unsupported
10606 # It fails to find uninstalled libraries when the uninstalled
10607 # path is not listed in the libpath. Setting hardcode_minus_L
10608 # to unsupported forces relinking
10609 hardcode_minus_L=yes
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_libdir_separator=
10612 fi
10613 ;;
10614 esac
10615 shared_flag='-shared'
10616 if test yes = "$aix_use_runtimelinking"; then
10617 shared_flag="$shared_flag "'$wl-G'
10618 fi
10619 # Need to ensure runtime linking is disabled for the traditional
10620 # shared library, or the linker may eventually find shared libraries
10621 # /with/ Import File - we do not want to mix them.
10622 shared_flag_aix='-shared'
10623 shared_flag_svr4='-shared $wl-G'
10624 else
10625 # not using gcc
10626 if test ia64 = "$host_cpu"; then
10627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10628 # chokes on -Wl,-G. The following line is correct:
10629 shared_flag='-G'
10630 else
10631 if test yes = "$aix_use_runtimelinking"; then
10632 shared_flag='$wl-G'
10633 else
10634 shared_flag='$wl-bM:SRE'
10635 fi
10636 shared_flag_aix='$wl-bM:SRE'
10637 shared_flag_svr4='$wl-G'
10638 fi
10639 fi
10640
10641 export_dynamic_flag_spec='$wl-bexpall'
10642 # It seems that -bexpall does not export symbols beginning with
10643 # underscore (_), so it is better to generate a list of symbols to export.
10644 always_export_symbols=yes
10645 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10646 # Warning - without using the other runtime loading flags (-brtl),
10647 # -berok will link without error, but may produce a broken library.
10648 allow_undefined_flag='-berok'
10649 # Determine the default libpath from the value encoded in an
10650 # empty executable.
10651 if test set = "${lt_cv_aix_libpath+set}"; then
10652 aix_libpath=$lt_cv_aix_libpath
10653 else
10654 if ${lt_cv_aix_libpath_+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659
10660 int
10661 main ()
10662 {
10663
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10672 /^0/ {
10673 s/^0 *\([^ ]*\) *$/\1/
10674 p
10675 }
10676 }'
10677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$lt_cv_aix_libpath_"; then
10680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$lt_cv_aix_libpath_"; then
10686 lt_cv_aix_libpath_=/usr/lib:/lib
10687 fi
10688
10689 fi
10690
10691 aix_libpath=$lt_cv_aix_libpath_
10692 fi
10693
10694 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10695 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
10696 else
10697 if test ia64 = "$host_cpu"; then
10698 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10699 allow_undefined_flag="-z nodefs"
10700 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"
10701 else
10702 # Determine the default libpath from the value encoded in an
10703 # empty executable.
10704 if test set = "${lt_cv_aix_libpath+set}"; then
10705 aix_libpath=$lt_cv_aix_libpath
10706 else
10707 if ${lt_cv_aix_libpath_+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712
10713 int
10714 main ()
10715 {
10716
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722
10723 lt_aix_libpath_sed='
10724 /Import File Strings/,/^$/ {
10725 /^0/ {
10726 s/^0 *\([^ ]*\) *$/\1/
10727 p
10728 }
10729 }'
10730 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10731 # Check for a 64-bit object if we didn't find anything.
10732 if test -z "$lt_cv_aix_libpath_"; then
10733 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734 fi
10735 fi
10736 rm -f core conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
10738 if test -z "$lt_cv_aix_libpath_"; then
10739 lt_cv_aix_libpath_=/usr/lib:/lib
10740 fi
10741
10742 fi
10743
10744 aix_libpath=$lt_cv_aix_libpath_
10745 fi
10746
10747 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10748 # Warning - without using the other run time loading flags,
10749 # -berok will link without error, but may produce a broken library.
10750 no_undefined_flag=' $wl-bernotok'
10751 allow_undefined_flag=' $wl-berok'
10752 if test yes = "$with_gnu_ld"; then
10753 # We only use this code for GNU lds that support --whole-archive.
10754 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10755 else
10756 # Exported symbols can be pulled into shared objects from archives
10757 whole_archive_flag_spec='$convenience'
10758 fi
10759 archive_cmds_need_lc=yes
10760 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10761 # -brtl affects multiple linker settings, -berok does not and is overridden later
10762 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10763 if test svr4 != "$with_aix_soname"; then
10764 # This is similar to how AIX traditionally builds its shared libraries.
10765 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'
10766 fi
10767 if test aix != "$with_aix_soname"; then
10768 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'
10769 else
10770 # used by -dlpreopen to get the symbols
10771 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10772 fi
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10774 fi
10775 fi
10776 ;;
10777
10778 amigaos*)
10779 case $host_cpu in
10780 powerpc)
10781 # see comment about AmigaOS4 .so support
10782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10783 archive_expsym_cmds=''
10784 ;;
10785 m68k)
10786 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)'
10787 hardcode_libdir_flag_spec='-L$libdir'
10788 hardcode_minus_L=yes
10789 ;;
10790 esac
10791 ;;
10792
10793 bsdi[45]*)
10794 export_dynamic_flag_spec=-rdynamic
10795 ;;
10796
10797 cygwin* | mingw* | pw32* | cegcc*)
10798 # When not using gcc, we currently assume that we are using
10799 # Microsoft Visual C++.
10800 # hardcode_libdir_flag_spec is actually meaningless, as there is
10801 # no search path for DLLs.
10802 case $cc_basename in
10803 cl*)
10804 # Native MSVC
10805 hardcode_libdir_flag_spec=' '
10806 allow_undefined_flag=unsupported
10807 always_export_symbols=yes
10808 file_list_spec='@'
10809 # Tell ltmain to make .lib files, not .a files.
10810 libext=lib
10811 # Tell ltmain to make .dll files, not .so files.
10812 shrext_cmds=.dll
10813 # FIXME: Setting linknames here is a bad hack.
10814 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10815 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10816 cp "$export_symbols" "$output_objdir/$soname.def";
10817 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10818 else
10819 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10820 fi~
10821 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10822 linknames='
10823 # The linker will not automatically build a static lib if we build a DLL.
10824 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10825 enable_shared_with_static_runtimes=yes
10826 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10828 # Don't use ranlib
10829 old_postinstall_cmds='chmod 644 $oldlib'
10830 postlink_cmds='lt_outputfile="@OUTPUT@"~
10831 lt_tool_outputfile="@TOOL_OUTPUT@"~
10832 case $lt_outputfile in
10833 *.exe|*.EXE) ;;
10834 *)
10835 lt_outputfile=$lt_outputfile.exe
10836 lt_tool_outputfile=$lt_tool_outputfile.exe
10837 ;;
10838 esac~
10839 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10840 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10841 $RM "$lt_outputfile.manifest";
10842 fi'
10843 ;;
10844 *)
10845 # Assume MSVC wrapper
10846 hardcode_libdir_flag_spec=' '
10847 allow_undefined_flag=unsupported
10848 # Tell ltmain to make .lib files, not .a files.
10849 libext=lib
10850 # Tell ltmain to make .dll files, not .so files.
10851 shrext_cmds=.dll
10852 # FIXME: Setting linknames here is a bad hack.
10853 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10854 # The linker will automatically build a .lib file if we build a DLL.
10855 old_archive_from_new_cmds='true'
10856 # FIXME: Should let the user specify the lib program.
10857 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10858 enable_shared_with_static_runtimes=yes
10859 ;;
10860 esac
10861 ;;
10862
10863 darwin* | rhapsody*)
10864
10865
10866 archive_cmds_need_lc=no
10867 hardcode_direct=no
10868 hardcode_automatic=yes
10869 hardcode_shlibpath_var=unsupported
10870 if test yes = "$lt_cv_ld_force_load"; then
10871 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\"`'
10872
10873 else
10874 whole_archive_flag_spec=''
10875 fi
10876 link_all_deplibs=yes
10877 allow_undefined_flag=$_lt_dar_allow_undefined
10878 case $cc_basename in
10879 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10880 *) _lt_dar_can_shared=$GCC ;;
10881 esac
10882 if test yes = "$_lt_dar_can_shared"; then
10883 output_verbose_link_cmd=func_echo_all
10884 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10885 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10886 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"
10887 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"
10888
10889 else
10890 ld_shlibs=no
10891 fi
10892
10893 ;;
10894
10895 dgux*)
10896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 hardcode_libdir_flag_spec='-L$libdir'
10898 hardcode_shlibpath_var=no
10899 ;;
10900
10901 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10902 # support. Future versions do this automatically, but an explicit c++rt0.o
10903 # does not break anything, and helps significantly (at the cost of a little
10904 # extra space).
10905 freebsd2.2*)
10906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10907 hardcode_libdir_flag_spec='-R$libdir'
10908 hardcode_direct=yes
10909 hardcode_shlibpath_var=no
10910 ;;
10911
10912 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10913 freebsd2.*)
10914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=yes
10916 hardcode_minus_L=yes
10917 hardcode_shlibpath_var=no
10918 ;;
10919
10920 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10921 freebsd* | dragonfly*)
10922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10923 hardcode_libdir_flag_spec='-R$libdir'
10924 hardcode_direct=yes
10925 hardcode_shlibpath_var=no
10926 ;;
10927
10928 hpux9*)
10929 if test yes = "$GCC"; then
10930 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'
10931 else
10932 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'
10933 fi
10934 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10935 hardcode_libdir_separator=:
10936 hardcode_direct=yes
10937
10938 # hardcode_minus_L: Not really in the search PATH,
10939 # but as the default location of the library.
10940 hardcode_minus_L=yes
10941 export_dynamic_flag_spec='$wl-E'
10942 ;;
10943
10944 hpux10*)
10945 if test yes,no = "$GCC,$with_gnu_ld"; then
10946 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10947 else
10948 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10949 fi
10950 if test no = "$with_gnu_ld"; then
10951 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10952 hardcode_libdir_separator=:
10953 hardcode_direct=yes
10954 hardcode_direct_absolute=yes
10955 export_dynamic_flag_spec='$wl-E'
10956 # hardcode_minus_L: Not really in the search PATH,
10957 # but as the default location of the library.
10958 hardcode_minus_L=yes
10959 fi
10960 ;;
10961
10962 hpux11*)
10963 if test yes,no = "$GCC,$with_gnu_ld"; then
10964 case $host_cpu in
10965 hppa*64*)
10966 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10967 ;;
10968 ia64*)
10969 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10970 ;;
10971 *)
10972 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10973 ;;
10974 esac
10975 else
10976 case $host_cpu in
10977 hppa*64*)
10978 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 ;;
10980 ia64*)
10981 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10982 ;;
10983 *)
10984
10985 # Older versions of the 11.00 compiler do not understand -b yet
10986 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10988 $as_echo_n "checking if $CC understands -b... " >&6; }
10989 if ${lt_cv_prog_compiler__b+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 lt_cv_prog_compiler__b=no
10993 save_LDFLAGS=$LDFLAGS
10994 LDFLAGS="$LDFLAGS -b"
10995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10997 # The linker can only warn and ignore the option if not recognized
10998 # So say no if there are warnings
10999 if test -s conftest.err; then
11000 # Append any errors to the config.log.
11001 cat conftest.err 1>&5
11002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11004 if diff conftest.exp conftest.er2 >/dev/null; then
11005 lt_cv_prog_compiler__b=yes
11006 fi
11007 else
11008 lt_cv_prog_compiler__b=yes
11009 fi
11010 fi
11011 $RM -r conftest*
11012 LDFLAGS=$save_LDFLAGS
11013
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11016 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11017
11018 if test yes = "$lt_cv_prog_compiler__b"; then
11019 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11020 else
11021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11022 fi
11023
11024 ;;
11025 esac
11026 fi
11027 if test no = "$with_gnu_ld"; then
11028 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11029 hardcode_libdir_separator=:
11030
11031 case $host_cpu in
11032 hppa*64*|ia64*)
11033 hardcode_direct=no
11034 hardcode_shlibpath_var=no
11035 ;;
11036 *)
11037 hardcode_direct=yes
11038 hardcode_direct_absolute=yes
11039 export_dynamic_flag_spec='$wl-E'
11040
11041 # hardcode_minus_L: Not really in the search PATH,
11042 # but as the default location of the library.
11043 hardcode_minus_L=yes
11044 ;;
11045 esac
11046 fi
11047 ;;
11048
11049 irix5* | irix6* | nonstopux*)
11050 if test yes = "$GCC"; then
11051 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'
11052 # Try to use the -exported_symbol ld option, if it does not
11053 # work, assume that -exports_file does not work either and
11054 # implicitly export all symbols.
11055 # This should be the same for all languages, so no per-tag cache variable.
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11057 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11058 if ${lt_cv_irix_exported_symbol+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060 else
11061 save_LDFLAGS=$LDFLAGS
11062 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065 int foo (void) { return 0; }
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 lt_cv_irix_exported_symbol=yes
11069 else
11070 lt_cv_irix_exported_symbol=no
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LDFLAGS=$save_LDFLAGS
11075 fi
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11077 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11078 if test yes = "$lt_cv_irix_exported_symbol"; then
11079 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'
11080 fi
11081 else
11082 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'
11083 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'
11084 fi
11085 archive_cmds_need_lc='no'
11086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11087 hardcode_libdir_separator=:
11088 inherit_rpath=yes
11089 link_all_deplibs=yes
11090 ;;
11091
11092 linux*)
11093 case $cc_basename in
11094 tcc*)
11095 # Fabrice Bellard et al's Tiny C Compiler
11096 ld_shlibs=yes
11097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11098 ;;
11099 esac
11100 ;;
11101
11102 netbsd*)
11103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11105 else
11106 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11107 fi
11108 hardcode_libdir_flag_spec='-R$libdir'
11109 hardcode_direct=yes
11110 hardcode_shlibpath_var=no
11111 ;;
11112
11113 newsos6)
11114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11115 hardcode_direct=yes
11116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11117 hardcode_libdir_separator=:
11118 hardcode_shlibpath_var=no
11119 ;;
11120
11121 *nto* | *qnx*)
11122 ;;
11123
11124 openbsd* | bitrig*)
11125 if test -f /usr/libexec/ld.so; then
11126 hardcode_direct=yes
11127 hardcode_shlibpath_var=no
11128 hardcode_direct_absolute=yes
11129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11132 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11133 export_dynamic_flag_spec='$wl-E'
11134 else
11135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11136 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11137 fi
11138 else
11139 ld_shlibs=no
11140 fi
11141 ;;
11142
11143 os2*)
11144 hardcode_libdir_flag_spec='-L$libdir'
11145 hardcode_minus_L=yes
11146 allow_undefined_flag=unsupported
11147 shrext_cmds=.dll
11148 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11151 $ECHO EXPORTS >> $output_objdir/$libname.def~
11152 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11153 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11154 emximp -o $lib $output_objdir/$libname.def'
11155 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158 $ECHO EXPORTS >> $output_objdir/$libname.def~
11159 prefix_cmds="$SED"~
11160 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11161 prefix_cmds="$prefix_cmds -e 1d";
11162 fi~
11163 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11164 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11165 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11166 emximp -o $lib $output_objdir/$libname.def'
11167 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11168 enable_shared_with_static_runtimes=yes
11169 ;;
11170
11171 osf3*)
11172 if test yes = "$GCC"; then
11173 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11174 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'
11175 else
11176 allow_undefined_flag=' -expect_unresolved \*'
11177 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'
11178 fi
11179 archive_cmds_need_lc='no'
11180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11181 hardcode_libdir_separator=:
11182 ;;
11183
11184 osf4* | osf5*) # as osf3* with the addition of -msym flag
11185 if test yes = "$GCC"; then
11186 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11187 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'
11188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11189 else
11190 allow_undefined_flag=' -expect_unresolved \*'
11191 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'
11192 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~
11193 $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'
11194
11195 # Both c and cxx compiler support -rpath directly
11196 hardcode_libdir_flag_spec='-rpath $libdir'
11197 fi
11198 archive_cmds_need_lc='no'
11199 hardcode_libdir_separator=:
11200 ;;
11201
11202 solaris*)
11203 no_undefined_flag=' -z defs'
11204 if test yes = "$GCC"; then
11205 wlarc='$wl'
11206 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11208 $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'
11209 else
11210 case `$CC -V 2>&1` in
11211 *"Compilers 5.0"*)
11212 wlarc=''
11213 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11215 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11216 ;;
11217 *)
11218 wlarc='$wl'
11219 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11221 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11222 ;;
11223 esac
11224 fi
11225 hardcode_libdir_flag_spec='-R$libdir'
11226 hardcode_shlibpath_var=no
11227 case $host_os in
11228 solaris2.[0-5] | solaris2.[0-5].*) ;;
11229 *)
11230 # The compiler driver will combine and reorder linker options,
11231 # but understands '-z linker_flag'. GCC discards it without '$wl',
11232 # but is careful enough not to reorder.
11233 # Supported since Solaris 2.6 (maybe 2.5.1?)
11234 if test yes = "$GCC"; then
11235 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11236 else
11237 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11238 fi
11239 ;;
11240 esac
11241 link_all_deplibs=yes
11242 ;;
11243
11244 sunos4*)
11245 if test sequent = "$host_vendor"; then
11246 # Use $CC to link under sequent, because it throws in some extra .o
11247 # files that make .init and .fini sections work.
11248 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11249 else
11250 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11251 fi
11252 hardcode_libdir_flag_spec='-L$libdir'
11253 hardcode_direct=yes
11254 hardcode_minus_L=yes
11255 hardcode_shlibpath_var=no
11256 ;;
11257
11258 sysv4)
11259 case $host_vendor in
11260 sni)
11261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11262 hardcode_direct=yes # is this really true???
11263 ;;
11264 siemens)
11265 ## LD is ld it makes a PLAMLIB
11266 ## CC just makes a GrossModule.
11267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11268 reload_cmds='$CC -r -o $output$reload_objs'
11269 hardcode_direct=no
11270 ;;
11271 motorola)
11272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11274 ;;
11275 esac
11276 runpath_var='LD_RUN_PATH'
11277 hardcode_shlibpath_var=no
11278 ;;
11279
11280 sysv4.3*)
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_shlibpath_var=no
11283 export_dynamic_flag_spec='-Bexport'
11284 ;;
11285
11286 sysv4*MP*)
11287 if test -d /usr/nec; then
11288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289 hardcode_shlibpath_var=no
11290 runpath_var=LD_RUN_PATH
11291 hardcode_runpath_var=yes
11292 ld_shlibs=yes
11293 fi
11294 ;;
11295
11296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11297 no_undefined_flag='$wl-z,text'
11298 archive_cmds_need_lc=no
11299 hardcode_shlibpath_var=no
11300 runpath_var='LD_RUN_PATH'
11301
11302 if test yes = "$GCC"; then
11303 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305 else
11306 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 fi
11309 ;;
11310
11311 sysv5* | sco3.2v5* | sco5v6*)
11312 # Note: We CANNOT use -z defs as we might desire, because we do not
11313 # link with -lc, and that would cause any symbols used from libc to
11314 # always be unresolved, which means just about no library would
11315 # ever link correctly. If we're not using GNU ld we use -z text
11316 # though, which does catch some bad symbols but isn't as heavy-handed
11317 # as -z defs.
11318 no_undefined_flag='$wl-z,text'
11319 allow_undefined_flag='$wl-z,nodefs'
11320 archive_cmds_need_lc=no
11321 hardcode_shlibpath_var=no
11322 hardcode_libdir_flag_spec='$wl-R,$libdir'
11323 hardcode_libdir_separator=':'
11324 link_all_deplibs=yes
11325 export_dynamic_flag_spec='$wl-Bexport'
11326 runpath_var='LD_RUN_PATH'
11327
11328 if test yes = "$GCC"; then
11329 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 else
11332 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11334 fi
11335 ;;
11336
11337 uts4*)
11338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 hardcode_libdir_flag_spec='-L$libdir'
11340 hardcode_shlibpath_var=no
11341 ;;
11342
11343 *)
11344 ld_shlibs=no
11345 ;;
11346 esac
11347
11348 if test sni = "$host_vendor"; then
11349 case $host in
11350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11351 export_dynamic_flag_spec='$wl-Blargedynsym'
11352 ;;
11353 esac
11354 fi
11355 fi
11356
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11358 $as_echo "$ld_shlibs" >&6; }
11359 test no = "$ld_shlibs" && can_build_shared=no
11360
11361 with_gnu_ld=$with_gnu_ld
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377 #
11378 # Do we need to explicitly link libc?
11379 #
11380 case "x$archive_cmds_need_lc" in
11381 x|xyes)
11382 # Assume -lc should be added
11383 archive_cmds_need_lc=yes
11384
11385 if test yes,yes = "$GCC,$enable_shared"; then
11386 case $archive_cmds in
11387 *'~'*)
11388 # FIXME: we may have to deal with multi-command sequences.
11389 ;;
11390 '$CC '*)
11391 # Test whether the compiler implicitly links with -lc since on some
11392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11393 # to ld, don't add -lc before -lgcc.
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11395 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11396 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 $RM -r conftest*
11400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11401
11402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11403 (eval $ac_compile) 2>&5
11404 ac_status=$?
11405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11406 test $ac_status = 0; } 2>conftest.err; then
11407 soname=conftest
11408 lib=conftest
11409 libobjs=conftest.$ac_objext
11410 deplibs=
11411 wl=$lt_prog_compiler_wl
11412 pic_flag=$lt_prog_compiler_pic
11413 compiler_flags=-v
11414 linker_flags=-v
11415 verstring=
11416 output_objdir=.
11417 libname=conftest
11418 lt_save_allow_undefined_flag=$allow_undefined_flag
11419 allow_undefined_flag=
11420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11421 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11422 ac_status=$?
11423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424 test $ac_status = 0; }
11425 then
11426 lt_cv_archive_cmds_need_lc=no
11427 else
11428 lt_cv_archive_cmds_need_lc=yes
11429 fi
11430 allow_undefined_flag=$lt_save_allow_undefined_flag
11431 else
11432 cat conftest.err 1>&5
11433 fi
11434 $RM -r conftest*
11435
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11438 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11439 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11440 ;;
11441 esac
11442 fi
11443 ;;
11444 esac
11445
11446
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11598 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11599
11600 if test yes = "$GCC"; then
11601 case $host_os in
11602 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11603 *) lt_awk_arg='/^libraries:/' ;;
11604 esac
11605 case $host_os in
11606 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11607 *) lt_sed_strip_eq='s|=/|/|g' ;;
11608 esac
11609 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11610 case $lt_search_path_spec in
11611 *\;*)
11612 # if the path contains ";" then we assume it to be the separator
11613 # otherwise default to the standard path separator (i.e. ":") - it is
11614 # assumed that no part of a normal pathname contains ";" but that should
11615 # okay in the real world where ";" in dirpaths is itself problematic.
11616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11617 ;;
11618 *)
11619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11620 ;;
11621 esac
11622 # Ok, now we have the path, separated by spaces, we can step through it
11623 # and add multilib dir if necessary...
11624 lt_tmp_lt_search_path_spec=
11625 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11626 # ...but if some path component already ends with the multilib dir we assume
11627 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11628 case "$lt_multi_os_dir; $lt_search_path_spec " in
11629 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11630 lt_multi_os_dir=
11631 ;;
11632 esac
11633 for lt_sys_path in $lt_search_path_spec; do
11634 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11636 elif test -n "$lt_multi_os_dir"; then
11637 test -d "$lt_sys_path" && \
11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11639 fi
11640 done
11641 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11642 BEGIN {RS = " "; FS = "/|\n";} {
11643 lt_foo = "";
11644 lt_count = 0;
11645 for (lt_i = NF; lt_i > 0; lt_i--) {
11646 if ($lt_i != "" && $lt_i != ".") {
11647 if ($lt_i == "..") {
11648 lt_count++;
11649 } else {
11650 if (lt_count == 0) {
11651 lt_foo = "/" $lt_i lt_foo;
11652 } else {
11653 lt_count--;
11654 }
11655 }
11656 }
11657 }
11658 if (lt_foo != "") { lt_freq[lt_foo]++; }
11659 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11660 }'`
11661 # AWK program above erroneously prepends '/' to C:/dos/paths
11662 # for these hosts.
11663 case $host_os in
11664 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11665 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11666 esac
11667 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11668 else
11669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11670 fi
11671 library_names_spec=
11672 libname_spec='lib$name'
11673 soname_spec=
11674 shrext_cmds=.so
11675 postinstall_cmds=
11676 postuninstall_cmds=
11677 finish_cmds=
11678 finish_eval=
11679 shlibpath_var=
11680 shlibpath_overrides_runpath=unknown
11681 version_type=none
11682 dynamic_linker="$host_os ld.so"
11683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11684 need_lib_prefix=unknown
11685 hardcode_into_libs=no
11686
11687 # when you set need_version to no, make sure it does not cause -set_version
11688 # flags to be left without arguments
11689 need_version=unknown
11690
11691
11692
11693 case $host_os in
11694 aix3*)
11695 version_type=linux # correct to gnu/linux during the next big refactor
11696 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11697 shlibpath_var=LIBPATH
11698
11699 # AIX 3 has no versioning support, so we append a major version to the name.
11700 soname_spec='$libname$release$shared_ext$major'
11701 ;;
11702
11703 aix[4-9]*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 need_lib_prefix=no
11706 need_version=no
11707 hardcode_into_libs=yes
11708 if test ia64 = "$host_cpu"; then
11709 # AIX 5 supports IA64
11710 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11711 shlibpath_var=LD_LIBRARY_PATH
11712 else
11713 # With GCC up to 2.95.x, collect2 would create an import file
11714 # for dependence libraries. The import file would start with
11715 # the line '#! .'. This would cause the generated library to
11716 # depend on '.', always an invalid library. This was fixed in
11717 # development snapshots of GCC prior to 3.0.
11718 case $host_os in
11719 aix4 | aix4.[01] | aix4.[01].*)
11720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11721 echo ' yes '
11722 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11723 :
11724 else
11725 can_build_shared=no
11726 fi
11727 ;;
11728 esac
11729 # Using Import Files as archive members, it is possible to support
11730 # filename-based versioning of shared library archives on AIX. While
11731 # this would work for both with and without runtime linking, it will
11732 # prevent static linking of such archives. So we do filename-based
11733 # shared library versioning with .so extension only, which is used
11734 # when both runtime linking and shared linking is enabled.
11735 # Unfortunately, runtime linking may impact performance, so we do
11736 # not want this to be the default eventually. Also, we use the
11737 # versioned .so libs for executables only if there is the -brtl
11738 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11739 # To allow for filename-based versioning support, we need to create
11740 # libNAME.so.V as an archive file, containing:
11741 # *) an Import File, referring to the versioned filename of the
11742 # archive as well as the shared archive member, telling the
11743 # bitwidth (32 or 64) of that shared object, and providing the
11744 # list of exported symbols of that shared object, eventually
11745 # decorated with the 'weak' keyword
11746 # *) the shared object with the F_LOADONLY flag set, to really avoid
11747 # it being seen by the linker.
11748 # At run time we better use the real file rather than another symlink,
11749 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11750
11751 case $with_aix_soname,$aix_use_runtimelinking in
11752 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11753 # soname into executable. Probably we can add versioning support to
11754 # collect2, so additional links can be useful in future.
11755 aix,yes) # traditional libtool
11756 dynamic_linker='AIX unversionable lib.so'
11757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11758 # instead of lib<name>.a to let people know that these are not
11759 # typical AIX shared libraries.
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761 ;;
11762 aix,no) # traditional AIX only
11763 dynamic_linker='AIX lib.a(lib.so.V)'
11764 # We preserve .a as extension for shared libraries through AIX4.2
11765 # and later when we are not doing run time linking.
11766 library_names_spec='$libname$release.a $libname.a'
11767 soname_spec='$libname$release$shared_ext$major'
11768 ;;
11769 svr4,*) # full svr4 only
11770 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11771 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11772 # We do not specify a path in Import Files, so LIBPATH fires.
11773 shlibpath_overrides_runpath=yes
11774 ;;
11775 *,yes) # both, prefer svr4
11776 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11777 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11778 # unpreferred sharedlib libNAME.a needs extra handling
11779 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"'
11780 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"'
11781 # We do not specify a path in Import Files, so LIBPATH fires.
11782 shlibpath_overrides_runpath=yes
11783 ;;
11784 *,no) # both, prefer aix
11785 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11786 library_names_spec='$libname$release.a $libname.a'
11787 soname_spec='$libname$release$shared_ext$major'
11788 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11789 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)'
11790 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"'
11791 ;;
11792 esac
11793 shlibpath_var=LIBPATH
11794 fi
11795 ;;
11796
11797 amigaos*)
11798 case $host_cpu in
11799 powerpc)
11800 # Since July 2007 AmigaOS4 officially supports .so libraries.
11801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 ;;
11804 m68k)
11805 library_names_spec='$libname.ixlibrary $libname.a'
11806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11807 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'
11808 ;;
11809 esac
11810 ;;
11811
11812 beos*)
11813 library_names_spec='$libname$shared_ext'
11814 dynamic_linker="$host_os ld.so"
11815 shlibpath_var=LIBRARY_PATH
11816 ;;
11817
11818 bsdi[45]*)
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 need_version=no
11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11822 soname_spec='$libname$release$shared_ext$major'
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11827 # the default ld.so.conf also contains /usr/contrib/lib and
11828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11829 # libtool to hard-code these into programs
11830 ;;
11831
11832 cygwin* | mingw* | pw32* | cegcc*)
11833 version_type=windows
11834 shrext_cmds=.dll
11835 need_version=no
11836 need_lib_prefix=no
11837
11838 case $GCC,$cc_basename in
11839 yes,*)
11840 # gcc
11841 library_names_spec='$libname.dll.a'
11842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11843 postinstall_cmds='base_file=`basename \$file`~
11844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11845 dldir=$destdir/`dirname \$dlpath`~
11846 test -d \$dldir || mkdir -p \$dldir~
11847 $install_prog $dir/$dlname \$dldir/$dlname~
11848 chmod a+x \$dldir/$dlname~
11849 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11850 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11851 fi'
11852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11853 dlpath=$dir/\$dldll~
11854 $RM \$dlpath'
11855 shlibpath_overrides_runpath=yes
11856
11857 case $host_os in
11858 cygwin*)
11859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11860 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11861
11862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11863 ;;
11864 mingw* | cegcc*)
11865 # MinGW DLLs use traditional 'lib' prefix
11866 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11867 ;;
11868 pw32*)
11869 # pw32 DLLs use 'pw' prefix rather than 'lib'
11870 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11871 ;;
11872 esac
11873 dynamic_linker='Win32 ld.exe'
11874 ;;
11875
11876 *,cl*)
11877 # Native MSVC
11878 libname_spec='$name'
11879 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880 library_names_spec='$libname.dll.lib'
11881
11882 case $build_os in
11883 mingw*)
11884 sys_lib_search_path_spec=
11885 lt_save_ifs=$IFS
11886 IFS=';'
11887 for lt_path in $LIB
11888 do
11889 IFS=$lt_save_ifs
11890 # Let DOS variable expansion print the short 8.3 style file name.
11891 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11892 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11893 done
11894 IFS=$lt_save_ifs
11895 # Convert to MSYS style.
11896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11897 ;;
11898 cygwin*)
11899 # Convert to unix form, then to dos form, then back to unix form
11900 # but this time dos style (no spaces!) so that the unix form looks
11901 # like /cygdrive/c/PROGRA~1:/cygdr...
11902 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11903 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11904 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11905 ;;
11906 *)
11907 sys_lib_search_path_spec=$LIB
11908 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11909 # It is most probably a Windows format PATH.
11910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11911 else
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913 fi
11914 # FIXME: find the short name or the path components, as spaces are
11915 # common. (e.g. "Program Files" -> "PROGRA~1")
11916 ;;
11917 esac
11918
11919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11920 postinstall_cmds='base_file=`basename \$file`~
11921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11922 dldir=$destdir/`dirname \$dlpath`~
11923 test -d \$dldir || mkdir -p \$dldir~
11924 $install_prog $dir/$dlname \$dldir/$dlname'
11925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11926 dlpath=$dir/\$dldll~
11927 $RM \$dlpath'
11928 shlibpath_overrides_runpath=yes
11929 dynamic_linker='Win32 link.exe'
11930 ;;
11931
11932 *)
11933 # Assume MSVC wrapper
11934 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11935 dynamic_linker='Win32 ld.exe'
11936 ;;
11937 esac
11938 # FIXME: first we should search . and the directory the executable is in
11939 shlibpath_var=PATH
11940 ;;
11941
11942 darwin* | rhapsody*)
11943 dynamic_linker="$host_os dyld"
11944 version_type=darwin
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11948 soname_spec='$libname$release$major$shared_ext'
11949 shlibpath_overrides_runpath=yes
11950 shlibpath_var=DYLD_LIBRARY_PATH
11951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11952
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11955 ;;
11956
11957 dgux*)
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 need_lib_prefix=no
11960 need_version=no
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 soname_spec='$libname$release$shared_ext$major'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 ;;
11965
11966 freebsd* | dragonfly*)
11967 # DragonFly does not have aout. When/if they implement a new
11968 # versioning mechanism, adjust this.
11969 if test -x /usr/bin/objformat; then
11970 objformat=`/usr/bin/objformat`
11971 else
11972 case $host_os in
11973 freebsd[23].*) objformat=aout ;;
11974 *) objformat=elf ;;
11975 esac
11976 fi
11977 version_type=freebsd-$objformat
11978 case $version_type in
11979 freebsd-elf*)
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
11982 need_version=no
11983 need_lib_prefix=no
11984 ;;
11985 freebsd-*)
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11987 need_version=yes
11988 ;;
11989 esac
11990 shlibpath_var=LD_LIBRARY_PATH
11991 case $host_os in
11992 freebsd2.*)
11993 shlibpath_overrides_runpath=yes
11994 ;;
11995 freebsd3.[01]* | freebsdelf3.[01]*)
11996 shlibpath_overrides_runpath=yes
11997 hardcode_into_libs=yes
11998 ;;
11999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12001 shlibpath_overrides_runpath=no
12002 hardcode_into_libs=yes
12003 ;;
12004 *) # from 4.6 on, and DragonFly
12005 shlibpath_overrides_runpath=yes
12006 hardcode_into_libs=yes
12007 ;;
12008 esac
12009 ;;
12010
12011 haiku*)
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 need_lib_prefix=no
12014 need_version=no
12015 dynamic_linker="$host_os runtime_loader"
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017 soname_spec='$libname$release$shared_ext$major'
12018 shlibpath_var=LIBRARY_PATH
12019 shlibpath_overrides_runpath=no
12020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12021 hardcode_into_libs=yes
12022 ;;
12023
12024 hpux9* | hpux10* | hpux11*)
12025 # Give a soname corresponding to the major version so that dld.sl refuses to
12026 # link against other versions.
12027 version_type=sunos
12028 need_lib_prefix=no
12029 need_version=no
12030 case $host_cpu in
12031 ia64*)
12032 shrext_cmds='.so'
12033 hardcode_into_libs=yes
12034 dynamic_linker="$host_os dld.so"
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 soname_spec='$libname$release$shared_ext$major'
12039 if test 32 = "$HPUX_IA64_MODE"; then
12040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12041 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12042 else
12043 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12044 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12045 fi
12046 ;;
12047 hppa*64*)
12048 shrext_cmds='.sl'
12049 hardcode_into_libs=yes
12050 dynamic_linker="$host_os dld.sl"
12051 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054 soname_spec='$libname$release$shared_ext$major'
12055 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12057 ;;
12058 *)
12059 shrext_cmds='.sl'
12060 dynamic_linker="$host_os dld.sl"
12061 shlibpath_var=SHLIB_PATH
12062 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064 soname_spec='$libname$release$shared_ext$major'
12065 ;;
12066 esac
12067 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12068 postinstall_cmds='chmod 555 $lib'
12069 # or fails outright, so override atomically:
12070 install_override_mode=555
12071 ;;
12072
12073 interix[3-9]*)
12074 version_type=linux # correct to gnu/linux during the next big refactor
12075 need_lib_prefix=no
12076 need_version=no
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 soname_spec='$libname$release$shared_ext$major'
12079 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=no
12082 hardcode_into_libs=yes
12083 ;;
12084
12085 irix5* | irix6* | nonstopux*)
12086 case $host_os in
12087 nonstopux*) version_type=nonstopux ;;
12088 *)
12089 if test yes = "$lt_cv_prog_gnu_ld"; then
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 else
12092 version_type=irix
12093 fi ;;
12094 esac
12095 need_lib_prefix=no
12096 need_version=no
12097 soname_spec='$libname$release$shared_ext$major'
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12099 case $host_os in
12100 irix5* | nonstopux*)
12101 libsuff= shlibsuff=
12102 ;;
12103 *)
12104 case $LD in # libtool.m4 will add one of these switches to LD
12105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12106 libsuff= shlibsuff= libmagic=32-bit;;
12107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12108 libsuff=32 shlibsuff=N32 libmagic=N32;;
12109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12111 *) libsuff= shlibsuff= libmagic=never-match;;
12112 esac
12113 ;;
12114 esac
12115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12116 shlibpath_overrides_runpath=no
12117 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12118 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12119 hardcode_into_libs=yes
12120 ;;
12121
12122 # No shared lib support for Linux oldld, aout, or coff.
12123 linux*oldld* | linux*aout* | linux*coff*)
12124 dynamic_linker=no
12125 ;;
12126
12127 linux*android*)
12128 version_type=none # Android doesn't support versioned libraries.
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='$libname$release$shared_ext'
12132 soname_spec='$libname$release$shared_ext'
12133 finish_cmds=
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=yes
12136
12137 # This implies no fast_install, which is unacceptable.
12138 # Some rework will be needed to allow for fast_install
12139 # before this can be enabled.
12140 hardcode_into_libs=yes
12141
12142 dynamic_linker='Android linker'
12143 # Don't embed -rpath directories since the linker doesn't support them.
12144 hardcode_libdir_flag_spec='-L$libdir'
12145 ;;
12146
12147 # This must be glibc/ELF.
12148 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12149 version_type=linux # correct to gnu/linux during the next big refactor
12150 need_lib_prefix=no
12151 need_version=no
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12155 shlibpath_var=LD_LIBRARY_PATH
12156 shlibpath_overrides_runpath=no
12157
12158 # Some binutils ld are patched to set DT_RUNPATH
12159 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 lt_cv_shlibpath_overrides_runpath=no
12163 save_LDFLAGS=$LDFLAGS
12164 save_libdir=$libdir
12165 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12166 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 int
12171 main ()
12172 {
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12180 lt_cv_shlibpath_overrides_runpath=yes
12181 fi
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LDFLAGS=$save_LDFLAGS
12186 libdir=$save_libdir
12187
12188 fi
12189
12190 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12191
12192 # This implies no fast_install, which is unacceptable.
12193 # Some rework will be needed to allow for fast_install
12194 # before this can be enabled.
12195 hardcode_into_libs=yes
12196
12197 # Ideally, we could use ldconfig to report *all* directores which are
12198 # searched for libraries, however this is still not possible. Aside from not
12199 # being certain /sbin/ldconfig is available, command
12200 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12201 # even though it is searched at run-time. Try to do the best guess by
12202 # appending ld.so.conf contents (and includes) to the search path.
12203 if test -f /etc/ld.so.conf; then
12204 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' ' '`
12205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12206 fi
12207
12208 # We used to test for /lib/ld.so.1 and disable shared libraries on
12209 # powerpc, because MkLinux only supported shared libraries with the
12210 # GNU dynamic linker. Since this was broken with cross compilers,
12211 # most powerpc-linux boxes support dynamic linking these days and
12212 # people can always --disable-shared, the test was removed, and we
12213 # assume the GNU/Linux dynamic linker is in use.
12214 dynamic_linker='GNU/Linux ld.so'
12215 ;;
12216
12217 netbsd*)
12218 version_type=sunos
12219 need_lib_prefix=no
12220 need_version=no
12221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12224 dynamic_linker='NetBSD (a.out) ld.so'
12225 else
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 dynamic_linker='NetBSD ld.elf_so'
12229 fi
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12232 hardcode_into_libs=yes
12233 ;;
12234
12235 newsos6)
12236 version_type=linux # correct to gnu/linux during the next big refactor
12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12238 shlibpath_var=LD_LIBRARY_PATH
12239 shlibpath_overrides_runpath=yes
12240 ;;
12241
12242 *nto* | *qnx*)
12243 version_type=qnx
12244 need_lib_prefix=no
12245 need_version=no
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 soname_spec='$libname$release$shared_ext$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12251 dynamic_linker='ldqnx.so'
12252 ;;
12253
12254 openbsd* | bitrig*)
12255 version_type=sunos
12256 sys_lib_dlsearch_path_spec=/usr/lib
12257 need_lib_prefix=no
12258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12259 need_version=no
12260 else
12261 need_version=yes
12262 fi
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=yes
12267 ;;
12268
12269 os2*)
12270 libname_spec='$name'
12271 version_type=windows
12272 shrext_cmds=.dll
12273 need_version=no
12274 need_lib_prefix=no
12275 # OS/2 can only load a DLL with a base name of 8 characters or less.
12276 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12277 v=$($ECHO $release$versuffix | tr -d .-);
12278 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12279 $ECHO $n$v`$shared_ext'
12280 library_names_spec='${libname}_dll.$libext'
12281 dynamic_linker='OS/2 ld.exe'
12282 shlibpath_var=BEGINLIBPATH
12283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12285 postinstall_cmds='base_file=`basename \$file`~
12286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12287 dldir=$destdir/`dirname \$dlpath`~
12288 test -d \$dldir || mkdir -p \$dldir~
12289 $install_prog $dir/$dlname \$dldir/$dlname~
12290 chmod a+x \$dldir/$dlname~
12291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12293 fi'
12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12295 dlpath=$dir/\$dldll~
12296 $RM \$dlpath'
12297 ;;
12298
12299 osf3* | osf4* | osf5*)
12300 version_type=osf
12301 need_lib_prefix=no
12302 need_version=no
12303 soname_spec='$libname$release$shared_ext$major'
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12308 ;;
12309
12310 rdos*)
12311 dynamic_linker=no
12312 ;;
12313
12314 solaris*)
12315 version_type=linux # correct to gnu/linux during the next big refactor
12316 need_lib_prefix=no
12317 need_version=no
12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319 soname_spec='$libname$release$shared_ext$major'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=yes
12322 hardcode_into_libs=yes
12323 # ldd complains unless libraries are executable
12324 postinstall_cmds='chmod +x $lib'
12325 ;;
12326
12327 sunos4*)
12328 version_type=sunos
12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=yes
12333 if test yes = "$with_gnu_ld"; then
12334 need_lib_prefix=no
12335 fi
12336 need_version=yes
12337 ;;
12338
12339 sysv4 | sysv4.3*)
12340 version_type=linux # correct to gnu/linux during the next big refactor
12341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342 soname_spec='$libname$release$shared_ext$major'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 case $host_vendor in
12345 sni)
12346 shlibpath_overrides_runpath=no
12347 need_lib_prefix=no
12348 runpath_var=LD_RUN_PATH
12349 ;;
12350 siemens)
12351 need_lib_prefix=no
12352 ;;
12353 motorola)
12354 need_lib_prefix=no
12355 need_version=no
12356 shlibpath_overrides_runpath=no
12357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12358 ;;
12359 esac
12360 ;;
12361
12362 sysv4*MP*)
12363 if test -d /usr/nec; then
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12366 soname_spec='$libname$shared_ext.$major'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 fi
12369 ;;
12370
12371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12372 version_type=sco
12373 need_lib_prefix=no
12374 need_version=no
12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12376 soname_spec='$libname$release$shared_ext$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12379 hardcode_into_libs=yes
12380 if test yes = "$with_gnu_ld"; then
12381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12382 else
12383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12384 case $host_os in
12385 sco3.2v5*)
12386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12387 ;;
12388 esac
12389 fi
12390 sys_lib_dlsearch_path_spec='/usr/lib'
12391 ;;
12392
12393 tpf*)
12394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12395 version_type=linux # correct to gnu/linux during the next big refactor
12396 need_lib_prefix=no
12397 need_version=no
12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12399 shlibpath_var=LD_LIBRARY_PATH
12400 shlibpath_overrides_runpath=no
12401 hardcode_into_libs=yes
12402 ;;
12403
12404 uts4*)
12405 version_type=linux # correct to gnu/linux during the next big refactor
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 ;;
12410
12411 *)
12412 dynamic_linker=no
12413 ;;
12414 esac
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12416 $as_echo "$dynamic_linker" >&6; }
12417 test no = "$dynamic_linker" && can_build_shared=no
12418
12419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12420 if test yes = "$GCC"; then
12421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12422 fi
12423
12424 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12425 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12426 fi
12427
12428 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12429 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12430 fi
12431
12432 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12433 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12434
12435 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12436 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12437
12438 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12439 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12440
12441
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12539 hardcode_action=
12540 if test -n "$hardcode_libdir_flag_spec" ||
12541 test -n "$runpath_var" ||
12542 test yes = "$hardcode_automatic"; then
12543
12544 # We can hardcode non-existent directories.
12545 if test no != "$hardcode_direct" &&
12546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12547 # have to relink, otherwise we might link with an installed library
12548 # when we should be linking with a yet-to-be-installed one
12549 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12550 test no != "$hardcode_minus_L"; then
12551 # Linking always hardcodes the temporary library directory.
12552 hardcode_action=relink
12553 else
12554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12555 hardcode_action=immediate
12556 fi
12557 else
12558 # We cannot hardcode anything, or else we can only hardcode existing
12559 # directories.
12560 hardcode_action=unsupported
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12563 $as_echo "$hardcode_action" >&6; }
12564
12565 if test relink = "$hardcode_action" ||
12566 test yes = "$inherit_rpath"; then
12567 # Fast installation is not supported
12568 enable_fast_install=no
12569 elif test yes = "$shlibpath_overrides_runpath" ||
12570 test no = "$enable_shared"; then
12571 # Fast installation is not necessary
12572 enable_fast_install=needless
12573 fi
12574
12575
12576
12577
12578
12579
12580 if test yes != "$enable_dlopen"; then
12581 enable_dlopen=unknown
12582 enable_dlopen_self=unknown
12583 enable_dlopen_self_static=unknown
12584 else
12585 lt_cv_dlopen=no
12586 lt_cv_dlopen_libs=
12587
12588 case $host_os in
12589 beos*)
12590 lt_cv_dlopen=load_add_on
12591 lt_cv_dlopen_libs=
12592 lt_cv_dlopen_self=yes
12593 ;;
12594
12595 mingw* | pw32* | cegcc*)
12596 lt_cv_dlopen=LoadLibrary
12597 lt_cv_dlopen_libs=
12598 ;;
12599
12600 cygwin*)
12601 lt_cv_dlopen=dlopen
12602 lt_cv_dlopen_libs=
12603 ;;
12604
12605 darwin*)
12606 # if libdl is installed we need to link against it
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12609 if ${ac_cv_lib_dl_dlopen+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 ac_check_lib_save_LIBS=$LIBS
12613 LIBS="-ldl $LIBS"
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616
12617 /* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12620 #ifdef __cplusplus
12621 extern "C"
12622 #endif
12623 char dlopen ();
12624 int
12625 main ()
12626 {
12627 return dlopen ();
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12633 ac_cv_lib_dl_dlopen=yes
12634 else
12635 ac_cv_lib_dl_dlopen=no
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12640 fi
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12645 else
12646
12647 lt_cv_dlopen=dyld
12648 lt_cv_dlopen_libs=
12649 lt_cv_dlopen_self=yes
12650
12651 fi
12652
12653 ;;
12654
12655 tpf*)
12656 # Don't try to run any link tests for TPF. We know it's impossible
12657 # because TPF is a cross-compiler, and we know how we open DSOs.
12658 lt_cv_dlopen=dlopen
12659 lt_cv_dlopen_libs=
12660 lt_cv_dlopen_self=no
12661 ;;
12662
12663 *)
12664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12665 if test "x$ac_cv_func_shl_load" = xyes; then :
12666 lt_cv_dlopen=shl_load
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12669 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12670 if ${ac_cv_lib_dld_shl_load+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 ac_check_lib_save_LIBS=$LIBS
12674 LIBS="-ldld $LIBS"
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681 #ifdef __cplusplus
12682 extern "C"
12683 #endif
12684 char shl_load ();
12685 int
12686 main ()
12687 {
12688 return shl_load ();
12689 ;
12690 return 0;
12691 }
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_lib_dld_shl_load=yes
12695 else
12696 ac_cv_lib_dld_shl_load=no
12697 fi
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12701 fi
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12703 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12704 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12705 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12706 else
12707 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12708 if test "x$ac_cv_func_dlopen" = xyes; then :
12709 lt_cv_dlopen=dlopen
12710 else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12713 if ${ac_cv_lib_dl_dlopen+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-ldl $LIBS"
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720
12721 /* Override any GCC internal prototype to avoid an error.
12722 Use char because int might match the return type of a GCC
12723 builtin and then its argument prototype would still apply. */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 char dlopen ();
12728 int
12729 main ()
12730 {
12731 return dlopen ();
12732 ;
12733 return 0;
12734 }
12735 _ACEOF
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_lib_dl_dlopen=yes
12738 else
12739 ac_cv_lib_dl_dlopen=no
12740 fi
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12744 fi
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12751 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12752 if ${ac_cv_lib_svld_dlopen+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lsvld $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char dlopen ();
12767 int
12768 main ()
12769 {
12770 return dlopen ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_svld_dlopen=yes
12777 else
12778 ac_cv_lib_svld_dlopen=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12785 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12786 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12790 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12791 if ${ac_cv_lib_dld_dld_link+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-ldld $LIBS"
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798
12799 /* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply. */
12802 #ifdef __cplusplus
12803 extern "C"
12804 #endif
12805 char dld_link ();
12806 int
12807 main ()
12808 {
12809 return dld_link ();
12810 ;
12811 return 0;
12812 }
12813 _ACEOF
12814 if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_lib_dld_dld_link=yes
12816 else
12817 ac_cv_lib_dld_dld_link=no
12818 fi
12819 rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821 LIBS=$ac_check_lib_save_LIBS
12822 fi
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12824 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12825 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12826 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12827 fi
12828
12829
12830 fi
12831
12832
12833 fi
12834
12835
12836 fi
12837
12838
12839 fi
12840
12841
12842 fi
12843
12844 ;;
12845 esac
12846
12847 if test no = "$lt_cv_dlopen"; then
12848 enable_dlopen=no
12849 else
12850 enable_dlopen=yes
12851 fi
12852
12853 case $lt_cv_dlopen in
12854 dlopen)
12855 save_CPPFLAGS=$CPPFLAGS
12856 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12857
12858 save_LDFLAGS=$LDFLAGS
12859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12860
12861 save_LIBS=$LIBS
12862 LIBS="$lt_cv_dlopen_libs $LIBS"
12863
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12865 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12866 if ${lt_cv_dlopen_self+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 if test yes = "$cross_compiling"; then :
12870 lt_cv_dlopen_self=cross
12871 else
12872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873 lt_status=$lt_dlunknown
12874 cat > conftest.$ac_ext <<_LT_EOF
12875 #line $LINENO "configure"
12876 #include "confdefs.h"
12877
12878 #if HAVE_DLFCN_H
12879 #include <dlfcn.h>
12880 #endif
12881
12882 #include <stdio.h>
12883
12884 #ifdef RTLD_GLOBAL
12885 # define LT_DLGLOBAL RTLD_GLOBAL
12886 #else
12887 # ifdef DL_GLOBAL
12888 # define LT_DLGLOBAL DL_GLOBAL
12889 # else
12890 # define LT_DLGLOBAL 0
12891 # endif
12892 #endif
12893
12894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895 find out it does not work in some platform. */
12896 #ifndef LT_DLLAZY_OR_NOW
12897 # ifdef RTLD_LAZY
12898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12899 # else
12900 # ifdef DL_LAZY
12901 # define LT_DLLAZY_OR_NOW DL_LAZY
12902 # else
12903 # ifdef RTLD_NOW
12904 # define LT_DLLAZY_OR_NOW RTLD_NOW
12905 # else
12906 # ifdef DL_NOW
12907 # define LT_DLLAZY_OR_NOW DL_NOW
12908 # else
12909 # define LT_DLLAZY_OR_NOW 0
12910 # endif
12911 # endif
12912 # endif
12913 # endif
12914 #endif
12915
12916 /* When -fvisibility=hidden is used, assume the code has been annotated
12917 correspondingly for the symbols needed. */
12918 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12919 int fnord () __attribute__((visibility("default")));
12920 #endif
12921
12922 int fnord () { return 42; }
12923 int main ()
12924 {
12925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12926 int status = $lt_dlunknown;
12927
12928 if (self)
12929 {
12930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12931 else
12932 {
12933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 else puts (dlerror ());
12935 }
12936 /* dlclose (self); */
12937 }
12938 else
12939 puts (dlerror ());
12940
12941 return status;
12942 }
12943 _LT_EOF
12944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12945 (eval $ac_link) 2>&5
12946 ac_status=$?
12947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12948 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12949 (./conftest; exit; ) >&5 2>/dev/null
12950 lt_status=$?
12951 case x$lt_status in
12952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12955 esac
12956 else :
12957 # compilation failed
12958 lt_cv_dlopen_self=no
12959 fi
12960 fi
12961 rm -fr conftest*
12962
12963
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12966 $as_echo "$lt_cv_dlopen_self" >&6; }
12967
12968 if test yes = "$lt_cv_dlopen_self"; then
12969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12971 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12972 if ${lt_cv_dlopen_self_static+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test yes = "$cross_compiling"; then :
12976 lt_cv_dlopen_self_static=cross
12977 else
12978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12979 lt_status=$lt_dlunknown
12980 cat > conftest.$ac_ext <<_LT_EOF
12981 #line $LINENO "configure"
12982 #include "confdefs.h"
12983
12984 #if HAVE_DLFCN_H
12985 #include <dlfcn.h>
12986 #endif
12987
12988 #include <stdio.h>
12989
12990 #ifdef RTLD_GLOBAL
12991 # define LT_DLGLOBAL RTLD_GLOBAL
12992 #else
12993 # ifdef DL_GLOBAL
12994 # define LT_DLGLOBAL DL_GLOBAL
12995 # else
12996 # define LT_DLGLOBAL 0
12997 # endif
12998 #endif
12999
13000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13001 find out it does not work in some platform. */
13002 #ifndef LT_DLLAZY_OR_NOW
13003 # ifdef RTLD_LAZY
13004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13005 # else
13006 # ifdef DL_LAZY
13007 # define LT_DLLAZY_OR_NOW DL_LAZY
13008 # else
13009 # ifdef RTLD_NOW
13010 # define LT_DLLAZY_OR_NOW RTLD_NOW
13011 # else
13012 # ifdef DL_NOW
13013 # define LT_DLLAZY_OR_NOW DL_NOW
13014 # else
13015 # define LT_DLLAZY_OR_NOW 0
13016 # endif
13017 # endif
13018 # endif
13019 # endif
13020 #endif
13021
13022 /* When -fvisibility=hidden is used, assume the code has been annotated
13023 correspondingly for the symbols needed. */
13024 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13025 int fnord () __attribute__((visibility("default")));
13026 #endif
13027
13028 int fnord () { return 42; }
13029 int main ()
13030 {
13031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13032 int status = $lt_dlunknown;
13033
13034 if (self)
13035 {
13036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13037 else
13038 {
13039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13040 else puts (dlerror ());
13041 }
13042 /* dlclose (self); */
13043 }
13044 else
13045 puts (dlerror ());
13046
13047 return status;
13048 }
13049 _LT_EOF
13050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13051 (eval $ac_link) 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13055 (./conftest; exit; ) >&5 2>/dev/null
13056 lt_status=$?
13057 case x$lt_status in
13058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13061 esac
13062 else :
13063 # compilation failed
13064 lt_cv_dlopen_self_static=no
13065 fi
13066 fi
13067 rm -fr conftest*
13068
13069
13070 fi
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13072 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13073 fi
13074
13075 CPPFLAGS=$save_CPPFLAGS
13076 LDFLAGS=$save_LDFLAGS
13077 LIBS=$save_LIBS
13078 ;;
13079 esac
13080
13081 case $lt_cv_dlopen_self in
13082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13083 *) enable_dlopen_self=unknown ;;
13084 esac
13085
13086 case $lt_cv_dlopen_self_static in
13087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13088 *) enable_dlopen_self_static=unknown ;;
13089 esac
13090 fi
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108 striplib=
13109 old_striplib=
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13111 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13112 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13113 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13114 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13116 $as_echo "yes" >&6; }
13117 else
13118 # FIXME - insert some real tests, host_os isn't really good enough
13119 case $host_os in
13120 darwin*)
13121 if test -n "$STRIP"; then
13122 striplib="$STRIP -x"
13123 old_striplib="$STRIP -S"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13125 $as_echo "yes" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 fi
13130 ;;
13131 *)
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13134 ;;
13135 esac
13136 fi
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149 # Report what library types will actually be built
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13151 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13153 $as_echo "$can_build_shared" >&6; }
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13156 $as_echo_n "checking whether to build shared libraries... " >&6; }
13157 test no = "$can_build_shared" && enable_shared=no
13158
13159 # On AIX, shared libraries and static libraries use the same namespace, and
13160 # are all built from PIC.
13161 case $host_os in
13162 aix3*)
13163 test yes = "$enable_shared" && enable_static=no
13164 if test -n "$RANLIB"; then
13165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13166 postinstall_cmds='$RANLIB $lib'
13167 fi
13168 ;;
13169
13170 aix[4-9]*)
13171 if test ia64 != "$host_cpu"; then
13172 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13173 yes,aix,yes) ;; # shared object as lib.so file only
13174 yes,svr4,*) ;; # shared object as lib.so archive member only
13175 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13176 esac
13177 fi
13178 ;;
13179 esac
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13181 $as_echo "$enable_shared" >&6; }
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13184 $as_echo_n "checking whether to build static libraries... " >&6; }
13185 # Make sure either enable_shared or enable_static is yes.
13186 test yes = "$enable_shared" || enable_static=yes
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13188 $as_echo "$enable_static" >&6; }
13189
13190
13191
13192
13193 fi
13194 ac_ext=c
13195 ac_cpp='$CPP $CPPFLAGS'
13196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199
13200 CC=$lt_save_CC
13201
13202 if test -n "$CXX" && ( test no != "$CXX" &&
13203 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13204 (test g++ != "$CXX"))); then
13205 ac_ext=cpp
13206 ac_cpp='$CXXCPP $CPPFLAGS'
13207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13211 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13212 if test -z "$CXXCPP"; then
13213 if ${ac_cv_prog_CXXCPP+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 # Double quotes because CXXCPP needs to be expanded
13217 for CXXCPP in "$CXX -E" "/lib/cpp"
13218 do
13219 ac_preproc_ok=false
13220 for ac_cxx_preproc_warn_flag in '' yes
13221 do
13222 # Use a header file that comes with gcc, so configuring glibc
13223 # with a fresh cross-compiler works.
13224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13225 # <limits.h> exists even on freestanding compilers.
13226 # On the NeXT, cc -E runs the code through the compiler's parser,
13227 # not just through cpp. "Syntax error" is here to catch this case.
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #ifdef __STDC__
13231 # include <limits.h>
13232 #else
13233 # include <assert.h>
13234 #endif
13235 Syntax error
13236 _ACEOF
13237 if ac_fn_cxx_try_cpp "$LINENO"; then :
13238
13239 else
13240 # Broken: fails on valid input.
13241 continue
13242 fi
13243 rm -f conftest.err conftest.i conftest.$ac_ext
13244
13245 # OK, works on sane cases. Now check whether nonexistent headers
13246 # can be detected and how.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 #include <ac_nonexistent.h>
13250 _ACEOF
13251 if ac_fn_cxx_try_cpp "$LINENO"; then :
13252 # Broken: success on invalid input.
13253 continue
13254 else
13255 # Passes both tests.
13256 ac_preproc_ok=:
13257 break
13258 fi
13259 rm -f conftest.err conftest.i conftest.$ac_ext
13260
13261 done
13262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13263 rm -f conftest.i conftest.err conftest.$ac_ext
13264 if $ac_preproc_ok; then :
13265 break
13266 fi
13267
13268 done
13269 ac_cv_prog_CXXCPP=$CXXCPP
13270
13271 fi
13272 CXXCPP=$ac_cv_prog_CXXCPP
13273 else
13274 ac_cv_prog_CXXCPP=$CXXCPP
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13277 $as_echo "$CXXCPP" >&6; }
13278 ac_preproc_ok=false
13279 for ac_cxx_preproc_warn_flag in '' yes
13280 do
13281 # Use a header file that comes with gcc, so configuring glibc
13282 # with a fresh cross-compiler works.
13283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13284 # <limits.h> exists even on freestanding compilers.
13285 # On the NeXT, cc -E runs the code through the compiler's parser,
13286 # not just through cpp. "Syntax error" is here to catch this case.
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #ifdef __STDC__
13290 # include <limits.h>
13291 #else
13292 # include <assert.h>
13293 #endif
13294 Syntax error
13295 _ACEOF
13296 if ac_fn_cxx_try_cpp "$LINENO"; then :
13297
13298 else
13299 # Broken: fails on valid input.
13300 continue
13301 fi
13302 rm -f conftest.err conftest.i conftest.$ac_ext
13303
13304 # OK, works on sane cases. Now check whether nonexistent headers
13305 # can be detected and how.
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 #include <ac_nonexistent.h>
13309 _ACEOF
13310 if ac_fn_cxx_try_cpp "$LINENO"; then :
13311 # Broken: success on invalid input.
13312 continue
13313 else
13314 # Passes both tests.
13315 ac_preproc_ok=:
13316 break
13317 fi
13318 rm -f conftest.err conftest.i conftest.$ac_ext
13319
13320 done
13321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13322 rm -f conftest.i conftest.err conftest.$ac_ext
13323 if $ac_preproc_ok; then :
13324
13325 else
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13329 See \`config.log' for more details" "$LINENO" 5; }
13330 fi
13331
13332 ac_ext=c
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13337
13338 else
13339 _lt_caught_CXX_error=yes
13340 fi
13341
13342 ac_ext=cpp
13343 ac_cpp='$CXXCPP $CPPFLAGS'
13344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13347
13348 archive_cmds_need_lc_CXX=no
13349 allow_undefined_flag_CXX=
13350 always_export_symbols_CXX=no
13351 archive_expsym_cmds_CXX=
13352 compiler_needs_object_CXX=no
13353 export_dynamic_flag_spec_CXX=
13354 hardcode_direct_CXX=no
13355 hardcode_direct_absolute_CXX=no
13356 hardcode_libdir_flag_spec_CXX=
13357 hardcode_libdir_separator_CXX=
13358 hardcode_minus_L_CXX=no
13359 hardcode_shlibpath_var_CXX=unsupported
13360 hardcode_automatic_CXX=no
13361 inherit_rpath_CXX=no
13362 module_cmds_CXX=
13363 module_expsym_cmds_CXX=
13364 link_all_deplibs_CXX=unknown
13365 old_archive_cmds_CXX=$old_archive_cmds
13366 reload_flag_CXX=$reload_flag
13367 reload_cmds_CXX=$reload_cmds
13368 no_undefined_flag_CXX=
13369 whole_archive_flag_spec_CXX=
13370 enable_shared_with_static_runtimes_CXX=no
13371
13372 # Source file extension for C++ test sources.
13373 ac_ext=cpp
13374
13375 # Object file extension for compiled C++ test sources.
13376 objext=o
13377 objext_CXX=$objext
13378
13379 # No sense in running all these tests if we already determined that
13380 # the CXX compiler isn't working. Some variables (like enable_shared)
13381 # are currently assumed to apply to all compilers on this platform,
13382 # and will be corrupted by setting them based on a non-working compiler.
13383 if test yes != "$_lt_caught_CXX_error"; then
13384 # Code to be used in simple compile tests
13385 lt_simple_compile_test_code="int some_variable = 0;"
13386
13387 # Code to be used in simple link tests
13388 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13389
13390 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13391
13392
13393
13394
13395
13396
13397 # If no C compiler was specified, use CC.
13398 LTCC=${LTCC-"$CC"}
13399
13400 # If no C compiler flags were specified, use CFLAGS.
13401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13402
13403 # Allow CC to be a program name with arguments.
13404 compiler=$CC
13405
13406
13407 # save warnings/boilerplate of simple test code
13408 ac_outfile=conftest.$ac_objext
13409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13411 _lt_compiler_boilerplate=`cat conftest.err`
13412 $RM -r conftest*
13413
13414 ac_outfile=conftest.$ac_objext
13415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13417 _lt_linker_boilerplate=`cat conftest.err`
13418 $RM -r conftest*
13419
13420
13421 # Allow CC to be a program name with arguments.
13422 lt_save_CC=$CC
13423 lt_save_CFLAGS=$CFLAGS
13424 lt_save_LD=$LD
13425 lt_save_GCC=$GCC
13426 GCC=$GXX
13427 lt_save_with_gnu_ld=$with_gnu_ld
13428 lt_save_path_LD=$lt_cv_path_LD
13429 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13430 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13431 else
13432 $as_unset lt_cv_prog_gnu_ld
13433 fi
13434 if test -n "${lt_cv_path_LDCXX+set}"; then
13435 lt_cv_path_LD=$lt_cv_path_LDCXX
13436 else
13437 $as_unset lt_cv_path_LD
13438 fi
13439 test -z "${LDCXX+set}" || LD=$LDCXX
13440 CC=${CXX-"c++"}
13441 CFLAGS=$CXXFLAGS
13442 compiler=$CC
13443 compiler_CXX=$CC
13444 func_cc_basename $compiler
13445 cc_basename=$func_cc_basename_result
13446
13447
13448 if test -n "$compiler"; then
13449 # We don't want -fno-exception when compiling C++ code, so set the
13450 # no_builtin_flag separately
13451 if test yes = "$GXX"; then
13452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13453 else
13454 lt_prog_compiler_no_builtin_flag_CXX=
13455 fi
13456
13457 if test yes = "$GXX"; then
13458 # Set up default GNU C++ configuration
13459
13460
13461
13462 # Check whether --with-gnu-ld was given.
13463 if test "${with_gnu_ld+set}" = set; then :
13464 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13465 else
13466 with_gnu_ld=no
13467 fi
13468
13469 ac_prog=ld
13470 if test yes = "$GCC"; then
13471 # Check if gcc -print-prog-name=ld gives a path.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473 $as_echo_n "checking for ld used by $CC... " >&6; }
13474 case $host in
13475 *-*-mingw*)
13476 # gcc leaves a trailing carriage return, which upsets mingw
13477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13478 *)
13479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13480 esac
13481 case $ac_prog in
13482 # Accept absolute paths.
13483 [\\/]* | ?:[\\/]*)
13484 re_direlt='/[^/][^/]*/\.\./'
13485 # Canonicalize the pathname of ld
13486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13489 done
13490 test -z "$LD" && LD=$ac_prog
13491 ;;
13492 "")
13493 # If it fails, then pretend we aren't using GCC.
13494 ac_prog=ld
13495 ;;
13496 *)
13497 # If it is relative, then search for the first ld in PATH.
13498 with_gnu_ld=unknown
13499 ;;
13500 esac
13501 elif test yes = "$with_gnu_ld"; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503 $as_echo_n "checking for GNU ld... " >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506 $as_echo_n "checking for non-GNU ld... " >&6; }
13507 fi
13508 if ${lt_cv_path_LD+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 if test -z "$LD"; then
13512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13513 for ac_dir in $PATH; do
13514 IFS=$lt_save_ifs
13515 test -z "$ac_dir" && ac_dir=.
13516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13517 lt_cv_path_LD=$ac_dir/$ac_prog
13518 # Check to see if the program is GNU ld. I'd rather use --version,
13519 # but apparently some variants of GNU ld only accept -v.
13520 # Break only if it was the GNU/non-GNU ld that we prefer.
13521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522 *GNU* | *'with BFD'*)
13523 test no != "$with_gnu_ld" && break
13524 ;;
13525 *)
13526 test yes != "$with_gnu_ld" && break
13527 ;;
13528 esac
13529 fi
13530 done
13531 IFS=$lt_save_ifs
13532 else
13533 lt_cv_path_LD=$LD # Let the user override the test with a path.
13534 fi
13535 fi
13536
13537 LD=$lt_cv_path_LD
13538 if test -n "$LD"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540 $as_echo "$LD" >&6; }
13541 else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13548 if ${lt_cv_prog_gnu_ld+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13552 case `$LD -v 2>&1 </dev/null` in
13553 *GNU* | *'with BFD'*)
13554 lt_cv_prog_gnu_ld=yes
13555 ;;
13556 *)
13557 lt_cv_prog_gnu_ld=no
13558 ;;
13559 esac
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563 with_gnu_ld=$lt_cv_prog_gnu_ld
13564
13565
13566
13567
13568
13569
13570
13571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13572 # archiving commands below assume that GNU ld is being used.
13573 if test yes = "$with_gnu_ld"; then
13574 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13575 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'
13576
13577 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13578 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13579
13580 # If archive_cmds runs LD, not CC, wlarc should be empty
13581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582 # investigate it a little bit more. (MM)
13583 wlarc='$wl'
13584
13585 # ancient GNU ld didn't support --whole-archive et. al.
13586 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587 $GREP 'no-whole-archive' > /dev/null; then
13588 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13589 else
13590 whole_archive_flag_spec_CXX=
13591 fi
13592 else
13593 with_gnu_ld=no
13594 wlarc=
13595
13596 # A generic and very simple default shared library creation
13597 # command for GNU C++ for the case where it uses the native
13598 # linker, instead of GNU ld. If possible, this setting should
13599 # overridden to take advantage of the native linker features on
13600 # the platform it is being used on.
13601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13602 fi
13603
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
13607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13608
13609 else
13610 GXX=no
13611 with_gnu_ld=no
13612 wlarc=
13613 fi
13614
13615 # PORTME: fill in a description of your system's C++ link characteristics
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13618 ld_shlibs_CXX=yes
13619 case $host_os in
13620 aix3*)
13621 # FIXME: insert proper C++ library support
13622 ld_shlibs_CXX=no
13623 ;;
13624 aix[4-9]*)
13625 if test ia64 = "$host_cpu"; then
13626 # On IA64, the linker does run time linking by default, so we don't
13627 # have to do anything special.
13628 aix_use_runtimelinking=no
13629 exp_sym_flag='-Bexport'
13630 no_entry_flag=
13631 else
13632 aix_use_runtimelinking=no
13633
13634 # Test if we are trying to use run time linking or normal
13635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13636 # have runtime linking enabled, and use it for executables.
13637 # For shared libraries, we enable/disable runtime linking
13638 # depending on the kind of the shared library created -
13639 # when "with_aix_soname,aix_use_runtimelinking" is:
13640 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13641 # "aix,yes" lib.so shared, rtl:yes, for executables
13642 # lib.a static archive
13643 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13644 # lib.a(lib.so.V) shared, rtl:no, for executables
13645 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13646 # lib.a(lib.so.V) shared, rtl:no
13647 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13648 # lib.a static archive
13649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13650 for ld_flag in $LDFLAGS; do
13651 case $ld_flag in
13652 *-brtl*)
13653 aix_use_runtimelinking=yes
13654 break
13655 ;;
13656 esac
13657 done
13658 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13659 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13660 # so we don't have lib.a shared libs to link our executables.
13661 # We have to force runtime linking in this case.
13662 aix_use_runtimelinking=yes
13663 LDFLAGS="$LDFLAGS -Wl,-brtl"
13664 fi
13665 ;;
13666 esac
13667
13668 exp_sym_flag='-bexport'
13669 no_entry_flag='-bnoentry'
13670 fi
13671
13672 # When large executables or shared objects are built, AIX ld can
13673 # have problems creating the table of contents. If linking a library
13674 # or program results in "error TOC overflow" add -mminimal-toc to
13675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13677
13678 archive_cmds_CXX=''
13679 hardcode_direct_CXX=yes
13680 hardcode_direct_absolute_CXX=yes
13681 hardcode_libdir_separator_CXX=':'
13682 link_all_deplibs_CXX=yes
13683 file_list_spec_CXX='$wl-f,'
13684 case $with_aix_soname,$aix_use_runtimelinking in
13685 aix,*) ;; # no import file
13686 svr4,* | *,yes) # use import file
13687 # The Import File defines what to hardcode.
13688 hardcode_direct_CXX=no
13689 hardcode_direct_absolute_CXX=no
13690 ;;
13691 esac
13692
13693 if test yes = "$GXX"; then
13694 case $host_os in aix4.[012]|aix4.[012].*)
13695 # We only want to do this on AIX 4.2 and lower, the check
13696 # below for broken collect2 doesn't work under 4.3+
13697 collect2name=`$CC -print-prog-name=collect2`
13698 if test -f "$collect2name" &&
13699 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13700 then
13701 # We have reworked collect2
13702 :
13703 else
13704 # We have old collect2
13705 hardcode_direct_CXX=unsupported
13706 # It fails to find uninstalled libraries when the uninstalled
13707 # path is not listed in the libpath. Setting hardcode_minus_L
13708 # to unsupported forces relinking
13709 hardcode_minus_L_CXX=yes
13710 hardcode_libdir_flag_spec_CXX='-L$libdir'
13711 hardcode_libdir_separator_CXX=
13712 fi
13713 esac
13714 shared_flag='-shared'
13715 if test yes = "$aix_use_runtimelinking"; then
13716 shared_flag=$shared_flag' $wl-G'
13717 fi
13718 # Need to ensure runtime linking is disabled for the traditional
13719 # shared library, or the linker may eventually find shared libraries
13720 # /with/ Import File - we do not want to mix them.
13721 shared_flag_aix='-shared'
13722 shared_flag_svr4='-shared $wl-G'
13723 else
13724 # not using gcc
13725 if test ia64 = "$host_cpu"; then
13726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13727 # chokes on -Wl,-G. The following line is correct:
13728 shared_flag='-G'
13729 else
13730 if test yes = "$aix_use_runtimelinking"; then
13731 shared_flag='$wl-G'
13732 else
13733 shared_flag='$wl-bM:SRE'
13734 fi
13735 shared_flag_aix='$wl-bM:SRE'
13736 shared_flag_svr4='$wl-G'
13737 fi
13738 fi
13739
13740 export_dynamic_flag_spec_CXX='$wl-bexpall'
13741 # It seems that -bexpall does not export symbols beginning with
13742 # underscore (_), so it is better to generate a list of symbols to
13743 # export.
13744 always_export_symbols_CXX=yes
13745 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13746 # Warning - without using the other runtime loading flags (-brtl),
13747 # -berok will link without error, but may produce a broken library.
13748 # The "-G" linker flag allows undefined symbols.
13749 no_undefined_flag_CXX='-bernotok'
13750 # Determine the default libpath from the value encoded in an empty
13751 # executable.
13752 if test set = "${lt_cv_aix_libpath+set}"; then
13753 aix_libpath=$lt_cv_aix_libpath
13754 else
13755 if ${lt_cv_aix_libpath__CXX+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760
13761 int
13762 main ()
13763 {
13764
13765 ;
13766 return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_cxx_try_link "$LINENO"; then :
13770
13771 lt_aix_libpath_sed='
13772 /Import File Strings/,/^$/ {
13773 /^0/ {
13774 s/^0 *\([^ ]*\) *$/\1/
13775 p
13776 }
13777 }'
13778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13779 # Check for a 64-bit object if we didn't find anything.
13780 if test -z "$lt_cv_aix_libpath__CXX"; then
13781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 fi
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
13786 if test -z "$lt_cv_aix_libpath__CXX"; then
13787 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13788 fi
13789
13790 fi
13791
13792 aix_libpath=$lt_cv_aix_libpath__CXX
13793 fi
13794
13795 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13796
13797 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
13798 else
13799 if test ia64 = "$host_cpu"; then
13800 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13801 allow_undefined_flag_CXX="-z nodefs"
13802 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"
13803 else
13804 # Determine the default libpath from the value encoded in an
13805 # empty executable.
13806 if test set = "${lt_cv_aix_libpath+set}"; then
13807 aix_libpath=$lt_cv_aix_libpath
13808 else
13809 if ${lt_cv_aix_libpath__CXX+:} false; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814
13815 int
13816 main ()
13817 {
13818
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_cxx_try_link "$LINENO"; then :
13824
13825 lt_aix_libpath_sed='
13826 /Import File Strings/,/^$/ {
13827 /^0/ {
13828 s/^0 *\([^ ]*\) *$/\1/
13829 p
13830 }
13831 }'
13832 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13833 # Check for a 64-bit object if we didn't find anything.
13834 if test -z "$lt_cv_aix_libpath__CXX"; then
13835 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836 fi
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 if test -z "$lt_cv_aix_libpath__CXX"; then
13841 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13842 fi
13843
13844 fi
13845
13846 aix_libpath=$lt_cv_aix_libpath__CXX
13847 fi
13848
13849 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13850 # Warning - without using the other run time loading flags,
13851 # -berok will link without error, but may produce a broken library.
13852 no_undefined_flag_CXX=' $wl-bernotok'
13853 allow_undefined_flag_CXX=' $wl-berok'
13854 if test yes = "$with_gnu_ld"; then
13855 # We only use this code for GNU lds that support --whole-archive.
13856 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13857 else
13858 # Exported symbols can be pulled into shared objects from archives
13859 whole_archive_flag_spec_CXX='$convenience'
13860 fi
13861 archive_cmds_need_lc_CXX=yes
13862 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13863 # -brtl affects multiple linker settings, -berok does not and is overridden later
13864 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13865 if test svr4 != "$with_aix_soname"; then
13866 # This is similar to how AIX traditionally builds its shared
13867 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13868 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'
13869 fi
13870 if test aix != "$with_aix_soname"; then
13871 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'
13872 else
13873 # used by -dlpreopen to get the symbols
13874 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13875 fi
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13877 fi
13878 fi
13879 ;;
13880
13881 beos*)
13882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13883 allow_undefined_flag_CXX=unsupported
13884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13885 # support --undefined. This deserves some investigation. FIXME
13886 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13887 else
13888 ld_shlibs_CXX=no
13889 fi
13890 ;;
13891
13892 chorus*)
13893 case $cc_basename in
13894 *)
13895 # FIXME: insert proper C++ library support
13896 ld_shlibs_CXX=no
13897 ;;
13898 esac
13899 ;;
13900
13901 cygwin* | mingw* | pw32* | cegcc*)
13902 case $GXX,$cc_basename in
13903 ,cl* | no,cl*)
13904 # Native MSVC
13905 # hardcode_libdir_flag_spec is actually meaningless, as there is
13906 # no search path for DLLs.
13907 hardcode_libdir_flag_spec_CXX=' '
13908 allow_undefined_flag_CXX=unsupported
13909 always_export_symbols_CXX=yes
13910 file_list_spec_CXX='@'
13911 # Tell ltmain to make .lib files, not .a files.
13912 libext=lib
13913 # Tell ltmain to make .dll files, not .so files.
13914 shrext_cmds=.dll
13915 # FIXME: Setting linknames here is a bad hack.
13916 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13917 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13918 cp "$export_symbols" "$output_objdir/$soname.def";
13919 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13920 else
13921 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13922 fi~
13923 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13924 linknames='
13925 # The linker will not automatically build a static lib if we build a DLL.
13926 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13927 enable_shared_with_static_runtimes_CXX=yes
13928 # Don't use ranlib
13929 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13930 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13931 lt_tool_outputfile="@TOOL_OUTPUT@"~
13932 case $lt_outputfile in
13933 *.exe|*.EXE) ;;
13934 *)
13935 lt_outputfile=$lt_outputfile.exe
13936 lt_tool_outputfile=$lt_tool_outputfile.exe
13937 ;;
13938 esac~
13939 func_to_tool_file "$lt_outputfile"~
13940 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13941 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13942 $RM "$lt_outputfile.manifest";
13943 fi'
13944 ;;
13945 *)
13946 # g++
13947 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13948 # as there is no search path for DLLs.
13949 hardcode_libdir_flag_spec_CXX='-L$libdir'
13950 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13951 allow_undefined_flag_CXX=unsupported
13952 always_export_symbols_CXX=no
13953 enable_shared_with_static_runtimes_CXX=yes
13954
13955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13956 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'
13957 # If the export-symbols file already is a .def file, use it as
13958 # is; otherwise, prepend EXPORTS...
13959 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13960 cp $export_symbols $output_objdir/$soname.def;
13961 else
13962 echo EXPORTS > $output_objdir/$soname.def;
13963 cat $export_symbols >> $output_objdir/$soname.def;
13964 fi~
13965 $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'
13966 else
13967 ld_shlibs_CXX=no
13968 fi
13969 ;;
13970 esac
13971 ;;
13972 darwin* | rhapsody*)
13973
13974
13975 archive_cmds_need_lc_CXX=no
13976 hardcode_direct_CXX=no
13977 hardcode_automatic_CXX=yes
13978 hardcode_shlibpath_var_CXX=unsupported
13979 if test yes = "$lt_cv_ld_force_load"; then
13980 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\"`'
13981
13982 else
13983 whole_archive_flag_spec_CXX=''
13984 fi
13985 link_all_deplibs_CXX=yes
13986 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13987 case $cc_basename in
13988 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13989 *) _lt_dar_can_shared=$GCC ;;
13990 esac
13991 if test yes = "$_lt_dar_can_shared"; then
13992 output_verbose_link_cmd=func_echo_all
13993 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"
13994 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13995 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"
13996 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"
13997 if test yes != "$lt_cv_apple_cc_single_mod"; then
13998 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"
13999 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"
14000 fi
14001
14002 else
14003 ld_shlibs_CXX=no
14004 fi
14005
14006 ;;
14007
14008 os2*)
14009 hardcode_libdir_flag_spec_CXX='-L$libdir'
14010 hardcode_minus_L_CXX=yes
14011 allow_undefined_flag_CXX=unsupported
14012 shrext_cmds=.dll
14013 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14014 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14015 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14016 $ECHO EXPORTS >> $output_objdir/$libname.def~
14017 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14018 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14019 emximp -o $lib $output_objdir/$libname.def'
14020 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14021 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14022 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14023 $ECHO EXPORTS >> $output_objdir/$libname.def~
14024 prefix_cmds="$SED"~
14025 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14026 prefix_cmds="$prefix_cmds -e 1d";
14027 fi~
14028 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14029 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14030 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14031 emximp -o $lib $output_objdir/$libname.def'
14032 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14033 enable_shared_with_static_runtimes_CXX=yes
14034 ;;
14035
14036 dgux*)
14037 case $cc_basename in
14038 ec++*)
14039 # FIXME: insert proper C++ library support
14040 ld_shlibs_CXX=no
14041 ;;
14042 ghcx*)
14043 # Green Hills C++ Compiler
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14046 ;;
14047 *)
14048 # FIXME: insert proper C++ library support
14049 ld_shlibs_CXX=no
14050 ;;
14051 esac
14052 ;;
14053
14054 freebsd2.*)
14055 # C++ shared libraries reported to be fairly broken before
14056 # switch to ELF
14057 ld_shlibs_CXX=no
14058 ;;
14059
14060 freebsd-elf*)
14061 archive_cmds_need_lc_CXX=no
14062 ;;
14063
14064 freebsd* | dragonfly*)
14065 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14066 # conventions
14067 ld_shlibs_CXX=yes
14068 ;;
14069
14070 haiku*)
14071 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14072 link_all_deplibs_CXX=yes
14073 ;;
14074
14075 hpux9*)
14076 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14077 hardcode_libdir_separator_CXX=:
14078 export_dynamic_flag_spec_CXX='$wl-E'
14079 hardcode_direct_CXX=yes
14080 hardcode_minus_L_CXX=yes # Not in the search PATH,
14081 # but as the default
14082 # location of the library.
14083
14084 case $cc_basename in
14085 CC*)
14086 # FIXME: insert proper C++ library support
14087 ld_shlibs_CXX=no
14088 ;;
14089 aCC*)
14090 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'
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14094 #
14095 # There doesn't appear to be a way to prevent this compiler from
14096 # explicitly linking system object files so we need to strip them
14097 # from the output so that they don't get included in the library
14098 # dependencies.
14099 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"'
14100 ;;
14101 *)
14102 if test yes = "$GXX"; then
14103 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'
14104 else
14105 # FIXME: insert proper C++ library support
14106 ld_shlibs_CXX=no
14107 fi
14108 ;;
14109 esac
14110 ;;
14111
14112 hpux10*|hpux11*)
14113 if test no = "$with_gnu_ld"; then
14114 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14115 hardcode_libdir_separator_CXX=:
14116
14117 case $host_cpu in
14118 hppa*64*|ia64*)
14119 ;;
14120 *)
14121 export_dynamic_flag_spec_CXX='$wl-E'
14122 ;;
14123 esac
14124 fi
14125 case $host_cpu in
14126 hppa*64*|ia64*)
14127 hardcode_direct_CXX=no
14128 hardcode_shlibpath_var_CXX=no
14129 ;;
14130 *)
14131 hardcode_direct_CXX=yes
14132 hardcode_direct_absolute_CXX=yes
14133 hardcode_minus_L_CXX=yes # Not in the search PATH,
14134 # but as the default
14135 # location of the library.
14136 ;;
14137 esac
14138
14139 case $cc_basename in
14140 CC*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144 aCC*)
14145 case $host_cpu in
14146 hppa*64*)
14147 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14148 ;;
14149 ia64*)
14150 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14151 ;;
14152 *)
14153 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14154 ;;
14155 esac
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 #
14160 # There doesn't appear to be a way to prevent this compiler from
14161 # explicitly linking system object files so we need to strip them
14162 # from the output so that they don't get included in the library
14163 # dependencies.
14164 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"'
14165 ;;
14166 *)
14167 if test yes = "$GXX"; then
14168 if test no = "$with_gnu_ld"; then
14169 case $host_cpu in
14170 hppa*64*)
14171 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14172 ;;
14173 ia64*)
14174 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14175 ;;
14176 *)
14177 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'
14178 ;;
14179 esac
14180 fi
14181 else
14182 # FIXME: insert proper C++ library support
14183 ld_shlibs_CXX=no
14184 fi
14185 ;;
14186 esac
14187 ;;
14188
14189 interix[3-9]*)
14190 hardcode_direct_CXX=no
14191 hardcode_shlibpath_var_CXX=no
14192 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14193 export_dynamic_flag_spec_CXX='$wl-E'
14194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14195 # Instead, shared libraries are loaded at an image base (0x10000000 by
14196 # default) and relocated if they conflict, which is a slow very memory
14197 # consuming and fragmenting process. To avoid this, we pick a random,
14198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14200 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'
14201 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'
14202 ;;
14203 irix5* | irix6*)
14204 case $cc_basename in
14205 CC*)
14206 # SGI C++
14207 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'
14208
14209 # Archives containing C++ object files must be created using
14210 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14211 # necessary to make sure instantiated templates are included
14212 # in the archive.
14213 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14214 ;;
14215 *)
14216 if test yes = "$GXX"; then
14217 if test no = "$with_gnu_ld"; then
14218 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'
14219 else
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"` -o $lib'
14221 fi
14222 fi
14223 link_all_deplibs_CXX=yes
14224 ;;
14225 esac
14226 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14227 hardcode_libdir_separator_CXX=:
14228 inherit_rpath_CXX=yes
14229 ;;
14230
14231 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14232 case $cc_basename in
14233 KCC*)
14234 # Kuck and Associates, Inc. (KAI) C++ Compiler
14235
14236 # KCC will only create a shared library if the output file
14237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14238 # to its proper name (with version) after linking.
14239 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'
14240 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'
14241 # Commands to make compiler produce verbose output that lists
14242 # what "hidden" libraries, object files and flags are used when
14243 # linking a shared library.
14244 #
14245 # There doesn't appear to be a way to prevent this compiler from
14246 # explicitly linking system object files so we need to strip them
14247 # from the output so that they don't get included in the library
14248 # dependencies.
14249 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"'
14250
14251 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14252 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14253
14254 # Archives containing C++ object files must be created using
14255 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14256 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14257 ;;
14258 icpc* | ecpc* )
14259 # Intel C++
14260 with_gnu_ld=yes
14261 # version 8.0 and above of icpc choke on multiply defined symbols
14262 # if we add $predep_objects and $postdep_objects, however 7.1 and
14263 # earlier do not add the objects themselves.
14264 case `$CC -V 2>&1` in
14265 *"Version 7."*)
14266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14267 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'
14268 ;;
14269 *) # Version 8.0 or newer
14270 tmp_idyn=
14271 case $host_cpu in
14272 ia64*) tmp_idyn=' -i_dynamic';;
14273 esac
14274 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14275 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'
14276 ;;
14277 esac
14278 archive_cmds_need_lc_CXX=no
14279 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14280 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14281 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14282 ;;
14283 pgCC* | pgcpp*)
14284 # Portland Group C++ compiler
14285 case `$CC -V` in
14286 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14287 prelink_cmds_CXX='tpldir=Template.dir~
14288 rm -rf $tpldir~
14289 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14290 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14291 old_archive_cmds_CXX='tpldir=Template.dir~
14292 rm -rf $tpldir~
14293 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14294 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14295 $RANLIB $oldlib'
14296 archive_cmds_CXX='tpldir=Template.dir~
14297 rm -rf $tpldir~
14298 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14299 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14300 archive_expsym_cmds_CXX='tpldir=Template.dir~
14301 rm -rf $tpldir~
14302 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14303 $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'
14304 ;;
14305 *) # Version 6 and above use weak symbols
14306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14307 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'
14308 ;;
14309 esac
14310
14311 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14312 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14313 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'
14314 ;;
14315 cxx*)
14316 # Compaq C++
14317 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14318 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'
14319
14320 runpath_var=LD_RUN_PATH
14321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14322 hardcode_libdir_separator_CXX=:
14323
14324 # Commands to make compiler produce verbose output that lists
14325 # what "hidden" libraries, object files and flags are used when
14326 # linking a shared library.
14327 #
14328 # There doesn't appear to be a way to prevent this compiler from
14329 # explicitly linking system object files so we need to strip them
14330 # from the output so that they don't get included in the library
14331 # dependencies.
14332 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'
14333 ;;
14334 xl* | mpixl* | bgxl*)
14335 # IBM XL 8.0 on PPC, with GNU ld
14336 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14337 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14338 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14339 if test yes = "$supports_anon_versioning"; then
14340 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14342 echo "local: *; };" >> $output_objdir/$libname.ver~
14343 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14344 fi
14345 ;;
14346 *)
14347 case `$CC -V 2>&1 | sed 5q` in
14348 *Sun\ C*)
14349 # Sun C++ 5.9
14350 no_undefined_flag_CXX=' -zdefs'
14351 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14352 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'
14353 hardcode_libdir_flag_spec_CXX='-R$libdir'
14354 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'
14355 compiler_needs_object_CXX=yes
14356
14357 # Not sure whether something based on
14358 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14359 # would be better.
14360 output_verbose_link_cmd='func_echo_all'
14361
14362 # Archives containing C++ object files must be created using
14363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14364 # necessary to make sure instantiated templates are included
14365 # in the archive.
14366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14367 ;;
14368 esac
14369 ;;
14370 esac
14371 ;;
14372
14373 lynxos*)
14374 # FIXME: insert proper C++ library support
14375 ld_shlibs_CXX=no
14376 ;;
14377
14378 m88k*)
14379 # FIXME: insert proper C++ library support
14380 ld_shlibs_CXX=no
14381 ;;
14382
14383 mvs*)
14384 case $cc_basename in
14385 cxx*)
14386 # FIXME: insert proper C++ library support
14387 ld_shlibs_CXX=no
14388 ;;
14389 *)
14390 # FIXME: insert proper C++ library support
14391 ld_shlibs_CXX=no
14392 ;;
14393 esac
14394 ;;
14395
14396 netbsd*)
14397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14399 wlarc=
14400 hardcode_libdir_flag_spec_CXX='-R$libdir'
14401 hardcode_direct_CXX=yes
14402 hardcode_shlibpath_var_CXX=no
14403 fi
14404 # Workaround some broken pre-1.5 toolchains
14405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14406 ;;
14407
14408 *nto* | *qnx*)
14409 ld_shlibs_CXX=yes
14410 ;;
14411
14412 openbsd* | bitrig*)
14413 if test -f /usr/libexec/ld.so; then
14414 hardcode_direct_CXX=yes
14415 hardcode_shlibpath_var_CXX=no
14416 hardcode_direct_absolute_CXX=yes
14417 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14418 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14420 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14421 export_dynamic_flag_spec_CXX='$wl-E'
14422 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14423 fi
14424 output_verbose_link_cmd=func_echo_all
14425 else
14426 ld_shlibs_CXX=no
14427 fi
14428 ;;
14429
14430 osf3* | osf4* | osf5*)
14431 case $cc_basename in
14432 KCC*)
14433 # Kuck and Associates, Inc. (KAI) C++ Compiler
14434
14435 # KCC will only create a shared library if the output file
14436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14437 # to its proper name (with version) after linking.
14438 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'
14439
14440 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14441 hardcode_libdir_separator_CXX=:
14442
14443 # Archives containing C++ object files must be created using
14444 # the KAI C++ compiler.
14445 case $host in
14446 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14447 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14448 esac
14449 ;;
14450 RCC*)
14451 # Rational C++ 2.4.1
14452 # FIXME: insert proper C++ library support
14453 ld_shlibs_CXX=no
14454 ;;
14455 cxx*)
14456 case $host in
14457 osf3*)
14458 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14459 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'
14460 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14461 ;;
14462 *)
14463 allow_undefined_flag_CXX=' -expect_unresolved \*'
14464 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'
14465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14466 echo "-hidden">> $lib.exp~
14467 $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~
14468 $RM $lib.exp'
14469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14470 ;;
14471 esac
14472
14473 hardcode_libdir_separator_CXX=:
14474
14475 # Commands to make compiler produce verbose output that lists
14476 # what "hidden" libraries, object files and flags are used when
14477 # linking a shared library.
14478 #
14479 # There doesn't appear to be a way to prevent this compiler from
14480 # explicitly linking system object files so we need to strip them
14481 # from the output so that they don't get included in the library
14482 # dependencies.
14483 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"'
14484 ;;
14485 *)
14486 if test yes,no = "$GXX,$with_gnu_ld"; then
14487 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14488 case $host in
14489 osf3*)
14490 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'
14491 ;;
14492 *)
14493 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'
14494 ;;
14495 esac
14496
14497 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14498 hardcode_libdir_separator_CXX=:
14499
14500 # Commands to make compiler produce verbose output that lists
14501 # what "hidden" libraries, object files and flags are used when
14502 # linking a shared library.
14503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14504
14505 else
14506 # FIXME: insert proper C++ library support
14507 ld_shlibs_CXX=no
14508 fi
14509 ;;
14510 esac
14511 ;;
14512
14513 psos*)
14514 # FIXME: insert proper C++ library support
14515 ld_shlibs_CXX=no
14516 ;;
14517
14518 sunos4*)
14519 case $cc_basename in
14520 CC*)
14521 # Sun C++ 4.x
14522 # FIXME: insert proper C++ library support
14523 ld_shlibs_CXX=no
14524 ;;
14525 lcc*)
14526 # Lucid
14527 # FIXME: insert proper C++ library support
14528 ld_shlibs_CXX=no
14529 ;;
14530 *)
14531 # FIXME: insert proper C++ library support
14532 ld_shlibs_CXX=no
14533 ;;
14534 esac
14535 ;;
14536
14537 solaris*)
14538 case $cc_basename in
14539 CC* | sunCC*)
14540 # Sun C++ 4.2, 5.x and Centerline C++
14541 archive_cmds_need_lc_CXX=yes
14542 no_undefined_flag_CXX=' -zdefs'
14543 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14545 $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'
14546
14547 hardcode_libdir_flag_spec_CXX='-R$libdir'
14548 hardcode_shlibpath_var_CXX=no
14549 case $host_os in
14550 solaris2.[0-5] | solaris2.[0-5].*) ;;
14551 *)
14552 # The compiler driver will combine and reorder linker options,
14553 # but understands '-z linker_flag'.
14554 # Supported since Solaris 2.6 (maybe 2.5.1?)
14555 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14556 ;;
14557 esac
14558 link_all_deplibs_CXX=yes
14559
14560 output_verbose_link_cmd='func_echo_all'
14561
14562 # Archives containing C++ object files must be created using
14563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14564 # necessary to make sure instantiated templates are included
14565 # in the archive.
14566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14567 ;;
14568 gcx*)
14569 # Green Hills C++ Compiler
14570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14571
14572 # The C++ compiler must be used to create the archive.
14573 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14574 ;;
14575 *)
14576 # GNU C++ compiler with Solaris linker
14577 if test yes,no = "$GXX,$with_gnu_ld"; then
14578 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14579 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14580 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14582 $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'
14583
14584 # Commands to make compiler produce verbose output that lists
14585 # what "hidden" libraries, object files and flags are used when
14586 # linking a shared library.
14587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14588 else
14589 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14590 # platform.
14591 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14593 $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'
14594
14595 # Commands to make compiler produce verbose output that lists
14596 # what "hidden" libraries, object files and flags are used when
14597 # linking a shared library.
14598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14599 fi
14600
14601 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14602 case $host_os in
14603 solaris2.[0-5] | solaris2.[0-5].*) ;;
14604 *)
14605 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14606 ;;
14607 esac
14608 fi
14609 ;;
14610 esac
14611 ;;
14612
14613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14614 no_undefined_flag_CXX='$wl-z,text'
14615 archive_cmds_need_lc_CXX=no
14616 hardcode_shlibpath_var_CXX=no
14617 runpath_var='LD_RUN_PATH'
14618
14619 case $cc_basename in
14620 CC*)
14621 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14623 ;;
14624 *)
14625 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14627 ;;
14628 esac
14629 ;;
14630
14631 sysv5* | sco3.2v5* | sco5v6*)
14632 # Note: We CANNOT use -z defs as we might desire, because we do not
14633 # link with -lc, and that would cause any symbols used from libc to
14634 # always be unresolved, which means just about no library would
14635 # ever link correctly. If we're not using GNU ld we use -z text
14636 # though, which does catch some bad symbols but isn't as heavy-handed
14637 # as -z defs.
14638 no_undefined_flag_CXX='$wl-z,text'
14639 allow_undefined_flag_CXX='$wl-z,nodefs'
14640 archive_cmds_need_lc_CXX=no
14641 hardcode_shlibpath_var_CXX=no
14642 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14643 hardcode_libdir_separator_CXX=':'
14644 link_all_deplibs_CXX=yes
14645 export_dynamic_flag_spec_CXX='$wl-Bexport'
14646 runpath_var='LD_RUN_PATH'
14647
14648 case $cc_basename in
14649 CC*)
14650 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14652 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14653 '"$old_archive_cmds_CXX"
14654 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14655 '"$reload_cmds_CXX"
14656 ;;
14657 *)
14658 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14660 ;;
14661 esac
14662 ;;
14663
14664 tandem*)
14665 case $cc_basename in
14666 NCC*)
14667 # NonStop-UX NCC 3.20
14668 # FIXME: insert proper C++ library support
14669 ld_shlibs_CXX=no
14670 ;;
14671 *)
14672 # FIXME: insert proper C++ library support
14673 ld_shlibs_CXX=no
14674 ;;
14675 esac
14676 ;;
14677
14678 vxworks*)
14679 # FIXME: insert proper C++ library support
14680 ld_shlibs_CXX=no
14681 ;;
14682
14683 *)
14684 # FIXME: insert proper C++ library support
14685 ld_shlibs_CXX=no
14686 ;;
14687 esac
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14690 $as_echo "$ld_shlibs_CXX" >&6; }
14691 test no = "$ld_shlibs_CXX" && can_build_shared=no
14692
14693 GCC_CXX=$GXX
14694 LD_CXX=$LD
14695
14696 ## CAVEAT EMPTOR:
14697 ## There is no encapsulation within the following macros, do not change
14698 ## the running order or otherwise move them around unless you know exactly
14699 ## what you are doing...
14700 # Dependencies to place before and after the object being linked:
14701 predep_objects_CXX=
14702 postdep_objects_CXX=
14703 predeps_CXX=
14704 postdeps_CXX=
14705 compiler_lib_search_path_CXX=
14706
14707 cat > conftest.$ac_ext <<_LT_EOF
14708 class Foo
14709 {
14710 public:
14711 Foo (void) { a = 0; }
14712 private:
14713 int a;
14714 };
14715 _LT_EOF
14716
14717
14718 _lt_libdeps_save_CFLAGS=$CFLAGS
14719 case "$CC $CFLAGS " in #(
14720 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14721 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14722 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14723 esac
14724
14725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14726 (eval $ac_compile) 2>&5
14727 ac_status=$?
14728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14729 test $ac_status = 0; }; then
14730 # Parse the compiler output and extract the necessary
14731 # objects, libraries and library flags.
14732
14733 # Sentinel used to keep track of whether or not we are before
14734 # the conftest object file.
14735 pre_test_object_deps_done=no
14736
14737 for p in `eval "$output_verbose_link_cmd"`; do
14738 case $prev$p in
14739
14740 -L* | -R* | -l*)
14741 # Some compilers place space between "-{L,R}" and the path.
14742 # Remove the space.
14743 if test x-L = "$p" ||
14744 test x-R = "$p"; then
14745 prev=$p
14746 continue
14747 fi
14748
14749 # Expand the sysroot to ease extracting the directories later.
14750 if test -z "$prev"; then
14751 case $p in
14752 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14753 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14754 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14755 esac
14756 fi
14757 case $p in
14758 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14759 esac
14760 if test no = "$pre_test_object_deps_done"; then
14761 case $prev in
14762 -L | -R)
14763 # Internal compiler library paths should come after those
14764 # provided the user. The postdeps already come after the
14765 # user supplied libs so there is no need to process them.
14766 if test -z "$compiler_lib_search_path_CXX"; then
14767 compiler_lib_search_path_CXX=$prev$p
14768 else
14769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14770 fi
14771 ;;
14772 # The "-l" case would never come before the object being
14773 # linked, so don't bother handling this case.
14774 esac
14775 else
14776 if test -z "$postdeps_CXX"; then
14777 postdeps_CXX=$prev$p
14778 else
14779 postdeps_CXX="${postdeps_CXX} $prev$p"
14780 fi
14781 fi
14782 prev=
14783 ;;
14784
14785 *.lto.$objext) ;; # Ignore GCC LTO objects
14786 *.$objext)
14787 # This assumes that the test object file only shows up
14788 # once in the compiler output.
14789 if test "$p" = "conftest.$objext"; then
14790 pre_test_object_deps_done=yes
14791 continue
14792 fi
14793
14794 if test no = "$pre_test_object_deps_done"; then
14795 if test -z "$predep_objects_CXX"; then
14796 predep_objects_CXX=$p
14797 else
14798 predep_objects_CXX="$predep_objects_CXX $p"
14799 fi
14800 else
14801 if test -z "$postdep_objects_CXX"; then
14802 postdep_objects_CXX=$p
14803 else
14804 postdep_objects_CXX="$postdep_objects_CXX $p"
14805 fi
14806 fi
14807 ;;
14808
14809 *) ;; # Ignore the rest.
14810
14811 esac
14812 done
14813
14814 # Clean up.
14815 rm -f a.out a.exe
14816 else
14817 echo "libtool.m4: error: problem compiling CXX test program"
14818 fi
14819
14820 $RM -f confest.$objext
14821 CFLAGS=$_lt_libdeps_save_CFLAGS
14822
14823 # PORTME: override above test on systems where it is broken
14824 case $host_os in
14825 interix[3-9]*)
14826 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14827 # hack all around it, let's just trust "g++" to DTRT.
14828 predep_objects_CXX=
14829 postdep_objects_CXX=
14830 postdeps_CXX=
14831 ;;
14832 esac
14833
14834
14835 case " $postdeps_CXX " in
14836 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14837 esac
14838 compiler_lib_search_dirs_CXX=
14839 if test -n "${compiler_lib_search_path_CXX}"; then
14840 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14841 fi
14842
14843
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 lt_prog_compiler_wl_CXX=
14874 lt_prog_compiler_pic_CXX=
14875 lt_prog_compiler_static_CXX=
14876
14877
14878 # C++ specific cases for pic, static, wl, etc.
14879 if test yes = "$GXX"; then
14880 lt_prog_compiler_wl_CXX='-Wl,'
14881 lt_prog_compiler_static_CXX='-static'
14882
14883 case $host_os in
14884 aix*)
14885 # All AIX code is PIC.
14886 if test ia64 = "$host_cpu"; then
14887 # AIX 5 now supports IA64 processor
14888 lt_prog_compiler_static_CXX='-Bstatic'
14889 fi
14890 lt_prog_compiler_pic_CXX='-fPIC'
14891 ;;
14892
14893 amigaos*)
14894 case $host_cpu in
14895 powerpc)
14896 # see comment about AmigaOS4 .so support
14897 lt_prog_compiler_pic_CXX='-fPIC'
14898 ;;
14899 m68k)
14900 # FIXME: we need at least 68020 code to build shared libraries, but
14901 # adding the '-m68020' flag to GCC prevents building anything better,
14902 # like '-m68040'.
14903 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14904 ;;
14905 esac
14906 ;;
14907
14908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14910 ;;
14911 mingw* | cygwin* | os2* | pw32* | cegcc*)
14912 # This hack is so that the source file can tell whether it is being
14913 # built for inclusion in a dll (and should export symbols for example).
14914 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14915 # (--disable-auto-import) libraries
14916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14917 case $host_os in
14918 os2*)
14919 lt_prog_compiler_static_CXX='$wl-static'
14920 ;;
14921 esac
14922 ;;
14923 darwin* | rhapsody*)
14924 # PIC is the default on this platform
14925 # Common symbols not allowed in MH_DYLIB files
14926 lt_prog_compiler_pic_CXX='-fno-common'
14927 ;;
14928 *djgpp*)
14929 # DJGPP does not support shared libraries at all
14930 lt_prog_compiler_pic_CXX=
14931 ;;
14932 haiku*)
14933 # PIC is the default for Haiku.
14934 # The "-static" flag exists, but is broken.
14935 lt_prog_compiler_static_CXX=
14936 ;;
14937 interix[3-9]*)
14938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939 # Instead, we relocate shared libraries at runtime.
14940 ;;
14941 sysv4*MP*)
14942 if test -d /usr/nec; then
14943 lt_prog_compiler_pic_CXX=-Kconform_pic
14944 fi
14945 ;;
14946 hpux*)
14947 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14948 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14949 # sets the default TLS model and affects inlining.
14950 case $host_cpu in
14951 hppa*64*)
14952 ;;
14953 *)
14954 lt_prog_compiler_pic_CXX='-fPIC'
14955 ;;
14956 esac
14957 ;;
14958 *qnx* | *nto*)
14959 # QNX uses GNU C++, but need to define -shared option too, otherwise
14960 # it will coredump.
14961 lt_prog_compiler_pic_CXX='-fPIC -shared'
14962 ;;
14963 *)
14964 lt_prog_compiler_pic_CXX='-fPIC'
14965 ;;
14966 esac
14967 else
14968 case $host_os in
14969 aix[4-9]*)
14970 # All AIX code is PIC.
14971 if test ia64 = "$host_cpu"; then
14972 # AIX 5 now supports IA64 processor
14973 lt_prog_compiler_static_CXX='-Bstatic'
14974 else
14975 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14976 fi
14977 ;;
14978 chorus*)
14979 case $cc_basename in
14980 cxch68*)
14981 # Green Hills C++ Compiler
14982 # _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"
14983 ;;
14984 esac
14985 ;;
14986 mingw* | cygwin* | os2* | pw32* | cegcc*)
14987 # This hack is so that the source file can tell whether it is being
14988 # built for inclusion in a dll (and should export symbols for example).
14989 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14990 ;;
14991 dgux*)
14992 case $cc_basename in
14993 ec++*)
14994 lt_prog_compiler_pic_CXX='-KPIC'
14995 ;;
14996 ghcx*)
14997 # Green Hills C++ Compiler
14998 lt_prog_compiler_pic_CXX='-pic'
14999 ;;
15000 *)
15001 ;;
15002 esac
15003 ;;
15004 freebsd* | dragonfly*)
15005 # FreeBSD uses GNU C++
15006 ;;
15007 hpux9* | hpux10* | hpux11*)
15008 case $cc_basename in
15009 CC*)
15010 lt_prog_compiler_wl_CXX='-Wl,'
15011 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15012 if test ia64 != "$host_cpu"; then
15013 lt_prog_compiler_pic_CXX='+Z'
15014 fi
15015 ;;
15016 aCC*)
15017 lt_prog_compiler_wl_CXX='-Wl,'
15018 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15019 case $host_cpu in
15020 hppa*64*|ia64*)
15021 # +Z the default
15022 ;;
15023 *)
15024 lt_prog_compiler_pic_CXX='+Z'
15025 ;;
15026 esac
15027 ;;
15028 *)
15029 ;;
15030 esac
15031 ;;
15032 interix*)
15033 # This is c89, which is MS Visual C++ (no shared libs)
15034 # Anyone wants to do a port?
15035 ;;
15036 irix5* | irix6* | nonstopux*)
15037 case $cc_basename in
15038 CC*)
15039 lt_prog_compiler_wl_CXX='-Wl,'
15040 lt_prog_compiler_static_CXX='-non_shared'
15041 # CC pic flag -KPIC is the default.
15042 ;;
15043 *)
15044 ;;
15045 esac
15046 ;;
15047 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15048 case $cc_basename in
15049 KCC*)
15050 # KAI C++ Compiler
15051 lt_prog_compiler_wl_CXX='--backend -Wl,'
15052 lt_prog_compiler_pic_CXX='-fPIC'
15053 ;;
15054 ecpc* )
15055 # old Intel C++ for x86_64, which still supported -KPIC.
15056 lt_prog_compiler_wl_CXX='-Wl,'
15057 lt_prog_compiler_pic_CXX='-KPIC'
15058 lt_prog_compiler_static_CXX='-static'
15059 ;;
15060 icpc* )
15061 # Intel C++, used to be incompatible with GCC.
15062 # ICC 10 doesn't accept -KPIC any more.
15063 lt_prog_compiler_wl_CXX='-Wl,'
15064 lt_prog_compiler_pic_CXX='-fPIC'
15065 lt_prog_compiler_static_CXX='-static'
15066 ;;
15067 pgCC* | pgcpp*)
15068 # Portland Group C++ compiler
15069 lt_prog_compiler_wl_CXX='-Wl,'
15070 lt_prog_compiler_pic_CXX='-fpic'
15071 lt_prog_compiler_static_CXX='-Bstatic'
15072 ;;
15073 cxx*)
15074 # Compaq C++
15075 # Make sure the PIC flag is empty. It appears that all Alpha
15076 # Linux and Compaq Tru64 Unix objects are PIC.
15077 lt_prog_compiler_pic_CXX=
15078 lt_prog_compiler_static_CXX='-non_shared'
15079 ;;
15080 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15081 # IBM XL 8.0, 9.0 on PPC and BlueGene
15082 lt_prog_compiler_wl_CXX='-Wl,'
15083 lt_prog_compiler_pic_CXX='-qpic'
15084 lt_prog_compiler_static_CXX='-qstaticlink'
15085 ;;
15086 *)
15087 case `$CC -V 2>&1 | sed 5q` in
15088 *Sun\ C*)
15089 # Sun C++ 5.9
15090 lt_prog_compiler_pic_CXX='-KPIC'
15091 lt_prog_compiler_static_CXX='-Bstatic'
15092 lt_prog_compiler_wl_CXX='-Qoption ld '
15093 ;;
15094 esac
15095 ;;
15096 esac
15097 ;;
15098 lynxos*)
15099 ;;
15100 m88k*)
15101 ;;
15102 mvs*)
15103 case $cc_basename in
15104 cxx*)
15105 lt_prog_compiler_pic_CXX='-W c,exportall'
15106 ;;
15107 *)
15108 ;;
15109 esac
15110 ;;
15111 netbsd*)
15112 ;;
15113 *qnx* | *nto*)
15114 # QNX uses GNU C++, but need to define -shared option too, otherwise
15115 # it will coredump.
15116 lt_prog_compiler_pic_CXX='-fPIC -shared'
15117 ;;
15118 osf3* | osf4* | osf5*)
15119 case $cc_basename in
15120 KCC*)
15121 lt_prog_compiler_wl_CXX='--backend -Wl,'
15122 ;;
15123 RCC*)
15124 # Rational C++ 2.4.1
15125 lt_prog_compiler_pic_CXX='-pic'
15126 ;;
15127 cxx*)
15128 # Digital/Compaq C++
15129 lt_prog_compiler_wl_CXX='-Wl,'
15130 # Make sure the PIC flag is empty. It appears that all Alpha
15131 # Linux and Compaq Tru64 Unix objects are PIC.
15132 lt_prog_compiler_pic_CXX=
15133 lt_prog_compiler_static_CXX='-non_shared'
15134 ;;
15135 *)
15136 ;;
15137 esac
15138 ;;
15139 psos*)
15140 ;;
15141 solaris*)
15142 case $cc_basename in
15143 CC* | sunCC*)
15144 # Sun C++ 4.2, 5.x and Centerline C++
15145 lt_prog_compiler_pic_CXX='-KPIC'
15146 lt_prog_compiler_static_CXX='-Bstatic'
15147 lt_prog_compiler_wl_CXX='-Qoption ld '
15148 ;;
15149 gcx*)
15150 # Green Hills C++ Compiler
15151 lt_prog_compiler_pic_CXX='-PIC'
15152 ;;
15153 *)
15154 ;;
15155 esac
15156 ;;
15157 sunos4*)
15158 case $cc_basename in
15159 CC*)
15160 # Sun C++ 4.x
15161 lt_prog_compiler_pic_CXX='-pic'
15162 lt_prog_compiler_static_CXX='-Bstatic'
15163 ;;
15164 lcc*)
15165 # Lucid
15166 lt_prog_compiler_pic_CXX='-pic'
15167 ;;
15168 *)
15169 ;;
15170 esac
15171 ;;
15172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15173 case $cc_basename in
15174 CC*)
15175 lt_prog_compiler_wl_CXX='-Wl,'
15176 lt_prog_compiler_pic_CXX='-KPIC'
15177 lt_prog_compiler_static_CXX='-Bstatic'
15178 ;;
15179 esac
15180 ;;
15181 tandem*)
15182 case $cc_basename in
15183 NCC*)
15184 # NonStop-UX NCC 3.20
15185 lt_prog_compiler_pic_CXX='-KPIC'
15186 ;;
15187 *)
15188 ;;
15189 esac
15190 ;;
15191 vxworks*)
15192 ;;
15193 *)
15194 lt_prog_compiler_can_build_shared_CXX=no
15195 ;;
15196 esac
15197 fi
15198
15199 case $host_os in
15200 # For platforms that do not support PIC, -DPIC is meaningless:
15201 *djgpp*)
15202 lt_prog_compiler_pic_CXX=
15203 ;;
15204 *)
15205 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15206 ;;
15207 esac
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15210 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15211 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15217 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15218 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15219
15220 #
15221 # Check to make sure the PIC flag actually works.
15222 #
15223 if test -n "$lt_prog_compiler_pic_CXX"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15225 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15226 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 lt_cv_prog_compiler_pic_works_CXX=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15232 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
15242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15243 (eval "$lt_compile" 2>conftest.err)
15244 ac_status=$?
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_pic_works_CXX=yes
15254 fi
15255 fi
15256 $RM -r conftest*
15257
15258 fi
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15260 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15261
15262 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15263 case $lt_prog_compiler_pic_CXX in
15264 "" | " "*) ;;
15265 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15266 esac
15267 else
15268 lt_prog_compiler_pic_CXX=
15269 lt_prog_compiler_can_build_shared_CXX=no
15270 fi
15271
15272 fi
15273
15274
15275
15276
15277
15278 #
15279 # Check to make sure the static flag actually works.
15280 #
15281 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15283 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15284 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 lt_cv_prog_compiler_static_works_CXX=no
15288 save_LDFLAGS=$LDFLAGS
15289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15292 # The linker can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 if test -s conftest.err; then
15295 # Append any errors to the config.log.
15296 cat conftest.err 1>&5
15297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15299 if diff conftest.exp conftest.er2 >/dev/null; then
15300 lt_cv_prog_compiler_static_works_CXX=yes
15301 fi
15302 else
15303 lt_cv_prog_compiler_static_works_CXX=yes
15304 fi
15305 fi
15306 $RM -r conftest*
15307 LDFLAGS=$save_LDFLAGS
15308
15309 fi
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15311 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15312
15313 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15314 :
15315 else
15316 lt_prog_compiler_static_CXX=
15317 fi
15318
15319
15320
15321
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15323 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15324 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 lt_cv_prog_compiler_c_o_CXX=no
15328 $RM -r conftest 2>/dev/null
15329 mkdir conftest
15330 cd conftest
15331 mkdir out
15332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15333
15334 lt_compiler_flag="-o out/conftest2.$ac_objext"
15335 # Insert the option either (1) after the last *FLAGS variable, or
15336 # (2) before a word containing "conftest.", or (3) at the end.
15337 # Note that $ac_compile itself does not contain backslashes and begins
15338 # with a dollar sign (not a hyphen), so the echo should work correctly.
15339 lt_compile=`echo "$ac_compile" | $SED \
15340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15342 -e 's:$: $lt_compiler_flag:'`
15343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15344 (eval "$lt_compile" 2>out/conftest.err)
15345 ac_status=$?
15346 cat out/conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15349 then
15350 # The compiler can only warn and ignore the option if not recognized
15351 # So say no if there are warnings
15352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15355 lt_cv_prog_compiler_c_o_CXX=yes
15356 fi
15357 fi
15358 chmod u+w . 2>&5
15359 $RM -r conftest*
15360 # SGI C++ compiler will create directory out/ii_files/ for
15361 # template instantiation
15362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15363 $RM out/* && rmdir out
15364 cd ..
15365 $RM -r conftest
15366 $RM -r conftest*
15367
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15370 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15371
15372
15373
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15375 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15376 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 lt_cv_prog_compiler_c_o_CXX=no
15380 $RM -r conftest 2>/dev/null
15381 mkdir conftest
15382 cd conftest
15383 mkdir out
15384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15385
15386 lt_compiler_flag="-o out/conftest2.$ac_objext"
15387 # Insert the option either (1) after the last *FLAGS variable, or
15388 # (2) before a word containing "conftest.", or (3) at the end.
15389 # Note that $ac_compile itself does not contain backslashes and begins
15390 # with a dollar sign (not a hyphen), so the echo should work correctly.
15391 lt_compile=`echo "$ac_compile" | $SED \
15392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394 -e 's:$: $lt_compiler_flag:'`
15395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15396 (eval "$lt_compile" 2>out/conftest.err)
15397 ac_status=$?
15398 cat out/conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15401 then
15402 # The compiler can only warn and ignore the option if not recognized
15403 # So say no if there are warnings
15404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15407 lt_cv_prog_compiler_c_o_CXX=yes
15408 fi
15409 fi
15410 chmod u+w . 2>&5
15411 $RM -r conftest*
15412 # SGI C++ compiler will create directory out/ii_files/ for
15413 # template instantiation
15414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15415 $RM out/* && rmdir out
15416 cd ..
15417 $RM -r conftest
15418 $RM -r conftest*
15419
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15422 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15423
15424
15425
15426
15427 hard_links=nottested
15428 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15429 # do not overwrite the value of need_locks provided by the user
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15431 $as_echo_n "checking if we can lock with hard links... " >&6; }
15432 hard_links=yes
15433 $RM -r conftest*
15434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15435 touch conftest.a
15436 ln conftest.a conftest.b 2>&5 || hard_links=no
15437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15439 $as_echo "$hard_links" >&6; }
15440 if test no = "$hard_links"; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15442 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15443 need_locks=warn
15444 fi
15445 else
15446 need_locks=no
15447 fi
15448
15449
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15452 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15453
15454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15455 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15456 case $host_os in
15457 aix[4-9]*)
15458 # If we're using GNU nm, then we don't want the "-C" option.
15459 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15460 # Without the "-l" option, or with the "-B" option, AIX nm treats
15461 # weak defined symbols like other global defined symbols, whereas
15462 # GNU nm marks them as "W".
15463 # While the 'weak' keyword is ignored in the Export File, we need
15464 # it in the Import File for the 'aix-soname' feature, so we have
15465 # to replace the "-B" option with "-P" for AIX nm.
15466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15467 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'
15468 else
15469 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'
15470 fi
15471 ;;
15472 pw32*)
15473 export_symbols_cmds_CXX=$ltdll_cmds
15474 ;;
15475 cygwin* | mingw* | cegcc*)
15476 case $cc_basename in
15477 cl*)
15478 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15479 ;;
15480 *)
15481 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'
15482 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15483 ;;
15484 esac
15485 ;;
15486 *)
15487 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15488 ;;
15489 esac
15490
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15492 $as_echo "$ld_shlibs_CXX" >&6; }
15493 test no = "$ld_shlibs_CXX" && can_build_shared=no
15494
15495 with_gnu_ld_CXX=$with_gnu_ld
15496
15497
15498
15499
15500
15501
15502 #
15503 # Do we need to explicitly link libc?
15504 #
15505 case "x$archive_cmds_need_lc_CXX" in
15506 x|xyes)
15507 # Assume -lc should be added
15508 archive_cmds_need_lc_CXX=yes
15509
15510 if test yes,yes = "$GCC,$enable_shared"; then
15511 case $archive_cmds_CXX in
15512 *'~'*)
15513 # FIXME: we may have to deal with multi-command sequences.
15514 ;;
15515 '$CC '*)
15516 # Test whether the compiler implicitly links with -lc since on some
15517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15518 # to ld, don't add -lc before -lgcc.
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15521 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523 else
15524 $RM -r conftest*
15525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15526
15527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15528 (eval $ac_compile) 2>&5
15529 ac_status=$?
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; } 2>conftest.err; then
15532 soname=conftest
15533 lib=conftest
15534 libobjs=conftest.$ac_objext
15535 deplibs=
15536 wl=$lt_prog_compiler_wl_CXX
15537 pic_flag=$lt_prog_compiler_pic_CXX
15538 compiler_flags=-v
15539 linker_flags=-v
15540 verstring=
15541 output_objdir=.
15542 libname=conftest
15543 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15544 allow_undefined_flag_CXX=
15545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15546 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15547 ac_status=$?
15548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15549 test $ac_status = 0; }
15550 then
15551 lt_cv_archive_cmds_need_lc_CXX=no
15552 else
15553 lt_cv_archive_cmds_need_lc_CXX=yes
15554 fi
15555 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15556 else
15557 cat conftest.err 1>&5
15558 fi
15559 $RM -r conftest*
15560
15561 fi
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15563 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15564 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15565 ;;
15566 esac
15567 fi
15568 ;;
15569 esac
15570
15571
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15633 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15634
15635 library_names_spec=
15636 libname_spec='lib$name'
15637 soname_spec=
15638 shrext_cmds=.so
15639 postinstall_cmds=
15640 postuninstall_cmds=
15641 finish_cmds=
15642 finish_eval=
15643 shlibpath_var=
15644 shlibpath_overrides_runpath=unknown
15645 version_type=none
15646 dynamic_linker="$host_os ld.so"
15647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15648 need_lib_prefix=unknown
15649 hardcode_into_libs=no
15650
15651 # when you set need_version to no, make sure it does not cause -set_version
15652 # flags to be left without arguments
15653 need_version=unknown
15654
15655
15656
15657 case $host_os in
15658 aix3*)
15659 version_type=linux # correct to gnu/linux during the next big refactor
15660 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15661 shlibpath_var=LIBPATH
15662
15663 # AIX 3 has no versioning support, so we append a major version to the name.
15664 soname_spec='$libname$release$shared_ext$major'
15665 ;;
15666
15667 aix[4-9]*)
15668 version_type=linux # correct to gnu/linux during the next big refactor
15669 need_lib_prefix=no
15670 need_version=no
15671 hardcode_into_libs=yes
15672 if test ia64 = "$host_cpu"; then
15673 # AIX 5 supports IA64
15674 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15675 shlibpath_var=LD_LIBRARY_PATH
15676 else
15677 # With GCC up to 2.95.x, collect2 would create an import file
15678 # for dependence libraries. The import file would start with
15679 # the line '#! .'. This would cause the generated library to
15680 # depend on '.', always an invalid library. This was fixed in
15681 # development snapshots of GCC prior to 3.0.
15682 case $host_os in
15683 aix4 | aix4.[01] | aix4.[01].*)
15684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15685 echo ' yes '
15686 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15687 :
15688 else
15689 can_build_shared=no
15690 fi
15691 ;;
15692 esac
15693 # Using Import Files as archive members, it is possible to support
15694 # filename-based versioning of shared library archives on AIX. While
15695 # this would work for both with and without runtime linking, it will
15696 # prevent static linking of such archives. So we do filename-based
15697 # shared library versioning with .so extension only, which is used
15698 # when both runtime linking and shared linking is enabled.
15699 # Unfortunately, runtime linking may impact performance, so we do
15700 # not want this to be the default eventually. Also, we use the
15701 # versioned .so libs for executables only if there is the -brtl
15702 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15703 # To allow for filename-based versioning support, we need to create
15704 # libNAME.so.V as an archive file, containing:
15705 # *) an Import File, referring to the versioned filename of the
15706 # archive as well as the shared archive member, telling the
15707 # bitwidth (32 or 64) of that shared object, and providing the
15708 # list of exported symbols of that shared object, eventually
15709 # decorated with the 'weak' keyword
15710 # *) the shared object with the F_LOADONLY flag set, to really avoid
15711 # it being seen by the linker.
15712 # At run time we better use the real file rather than another symlink,
15713 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15714
15715 case $with_aix_soname,$aix_use_runtimelinking in
15716 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15717 # soname into executable. Probably we can add versioning support to
15718 # collect2, so additional links can be useful in future.
15719 aix,yes) # traditional libtool
15720 dynamic_linker='AIX unversionable lib.so'
15721 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15722 # instead of lib<name>.a to let people know that these are not
15723 # typical AIX shared libraries.
15724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15725 ;;
15726 aix,no) # traditional AIX only
15727 dynamic_linker='AIX lib.a(lib.so.V)'
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
15730 library_names_spec='$libname$release.a $libname.a'
15731 soname_spec='$libname$release$shared_ext$major'
15732 ;;
15733 svr4,*) # full svr4 only
15734 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15735 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15736 # We do not specify a path in Import Files, so LIBPATH fires.
15737 shlibpath_overrides_runpath=yes
15738 ;;
15739 *,yes) # both, prefer svr4
15740 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15741 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15742 # unpreferred sharedlib libNAME.a needs extra handling
15743 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"'
15744 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"'
15745 # We do not specify a path in Import Files, so LIBPATH fires.
15746 shlibpath_overrides_runpath=yes
15747 ;;
15748 *,no) # both, prefer aix
15749 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15750 library_names_spec='$libname$release.a $libname.a'
15751 soname_spec='$libname$release$shared_ext$major'
15752 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15753 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)'
15754 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"'
15755 ;;
15756 esac
15757 shlibpath_var=LIBPATH
15758 fi
15759 ;;
15760
15761 amigaos*)
15762 case $host_cpu in
15763 powerpc)
15764 # Since July 2007 AmigaOS4 officially supports .so libraries.
15765 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15767 ;;
15768 m68k)
15769 library_names_spec='$libname.ixlibrary $libname.a'
15770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15771 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'
15772 ;;
15773 esac
15774 ;;
15775
15776 beos*)
15777 library_names_spec='$libname$shared_ext'
15778 dynamic_linker="$host_os ld.so"
15779 shlibpath_var=LIBRARY_PATH
15780 ;;
15781
15782 bsdi[45]*)
15783 version_type=linux # correct to gnu/linux during the next big refactor
15784 need_version=no
15785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15786 soname_spec='$libname$release$shared_ext$major'
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15791 # the default ld.so.conf also contains /usr/contrib/lib and
15792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15793 # libtool to hard-code these into programs
15794 ;;
15795
15796 cygwin* | mingw* | pw32* | cegcc*)
15797 version_type=windows
15798 shrext_cmds=.dll
15799 need_version=no
15800 need_lib_prefix=no
15801
15802 case $GCC,$cc_basename in
15803 yes,*)
15804 # gcc
15805 library_names_spec='$libname.dll.a'
15806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15807 postinstall_cmds='base_file=`basename \$file`~
15808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15809 dldir=$destdir/`dirname \$dlpath`~
15810 test -d \$dldir || mkdir -p \$dldir~
15811 $install_prog $dir/$dlname \$dldir/$dlname~
15812 chmod a+x \$dldir/$dlname~
15813 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15814 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15815 fi'
15816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15817 dlpath=$dir/\$dldll~
15818 $RM \$dlpath'
15819 shlibpath_overrides_runpath=yes
15820
15821 case $host_os in
15822 cygwin*)
15823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15824 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15825
15826 ;;
15827 mingw* | cegcc*)
15828 # MinGW DLLs use traditional 'lib' prefix
15829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15830 ;;
15831 pw32*)
15832 # pw32 DLLs use 'pw' prefix rather than 'lib'
15833 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15834 ;;
15835 esac
15836 dynamic_linker='Win32 ld.exe'
15837 ;;
15838
15839 *,cl*)
15840 # Native MSVC
15841 libname_spec='$name'
15842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15843 library_names_spec='$libname.dll.lib'
15844
15845 case $build_os in
15846 mingw*)
15847 sys_lib_search_path_spec=
15848 lt_save_ifs=$IFS
15849 IFS=';'
15850 for lt_path in $LIB
15851 do
15852 IFS=$lt_save_ifs
15853 # Let DOS variable expansion print the short 8.3 style file name.
15854 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15855 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15856 done
15857 IFS=$lt_save_ifs
15858 # Convert to MSYS style.
15859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15860 ;;
15861 cygwin*)
15862 # Convert to unix form, then to dos form, then back to unix form
15863 # but this time dos style (no spaces!) so that the unix form looks
15864 # like /cygdrive/c/PROGRA~1:/cygdr...
15865 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15866 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15867 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15868 ;;
15869 *)
15870 sys_lib_search_path_spec=$LIB
15871 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15872 # It is most probably a Windows format PATH.
15873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15874 else
15875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15876 fi
15877 # FIXME: find the short name or the path components, as spaces are
15878 # common. (e.g. "Program Files" -> "PROGRA~1")
15879 ;;
15880 esac
15881
15882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15883 postinstall_cmds='base_file=`basename \$file`~
15884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15885 dldir=$destdir/`dirname \$dlpath`~
15886 test -d \$dldir || mkdir -p \$dldir~
15887 $install_prog $dir/$dlname \$dldir/$dlname'
15888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15889 dlpath=$dir/\$dldll~
15890 $RM \$dlpath'
15891 shlibpath_overrides_runpath=yes
15892 dynamic_linker='Win32 link.exe'
15893 ;;
15894
15895 *)
15896 # Assume MSVC wrapper
15897 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15898 dynamic_linker='Win32 ld.exe'
15899 ;;
15900 esac
15901 # FIXME: first we should search . and the directory the executable is in
15902 shlibpath_var=PATH
15903 ;;
15904
15905 darwin* | rhapsody*)
15906 dynamic_linker="$host_os dyld"
15907 version_type=darwin
15908 need_lib_prefix=no
15909 need_version=no
15910 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15911 soname_spec='$libname$release$major$shared_ext'
15912 shlibpath_overrides_runpath=yes
15913 shlibpath_var=DYLD_LIBRARY_PATH
15914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15915
15916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15917 ;;
15918
15919 dgux*)
15920 version_type=linux # correct to gnu/linux during the next big refactor
15921 need_lib_prefix=no
15922 need_version=no
15923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15924 soname_spec='$libname$release$shared_ext$major'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 ;;
15927
15928 freebsd* | dragonfly*)
15929 # DragonFly does not have aout. When/if they implement a new
15930 # versioning mechanism, adjust this.
15931 if test -x /usr/bin/objformat; then
15932 objformat=`/usr/bin/objformat`
15933 else
15934 case $host_os in
15935 freebsd[23].*) objformat=aout ;;
15936 *) objformat=elf ;;
15937 esac
15938 fi
15939 version_type=freebsd-$objformat
15940 case $version_type in
15941 freebsd-elf*)
15942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15943 soname_spec='$libname$release$shared_ext$major'
15944 need_version=no
15945 need_lib_prefix=no
15946 ;;
15947 freebsd-*)
15948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15949 need_version=yes
15950 ;;
15951 esac
15952 shlibpath_var=LD_LIBRARY_PATH
15953 case $host_os in
15954 freebsd2.*)
15955 shlibpath_overrides_runpath=yes
15956 ;;
15957 freebsd3.[01]* | freebsdelf3.[01]*)
15958 shlibpath_overrides_runpath=yes
15959 hardcode_into_libs=yes
15960 ;;
15961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15963 shlibpath_overrides_runpath=no
15964 hardcode_into_libs=yes
15965 ;;
15966 *) # from 4.6 on, and DragonFly
15967 shlibpath_overrides_runpath=yes
15968 hardcode_into_libs=yes
15969 ;;
15970 esac
15971 ;;
15972
15973 haiku*)
15974 version_type=linux # correct to gnu/linux during the next big refactor
15975 need_lib_prefix=no
15976 need_version=no
15977 dynamic_linker="$host_os runtime_loader"
15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15979 soname_spec='$libname$release$shared_ext$major'
15980 shlibpath_var=LIBRARY_PATH
15981 shlibpath_overrides_runpath=no
15982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15983 hardcode_into_libs=yes
15984 ;;
15985
15986 hpux9* | hpux10* | hpux11*)
15987 # Give a soname corresponding to the major version so that dld.sl refuses to
15988 # link against other versions.
15989 version_type=sunos
15990 need_lib_prefix=no
15991 need_version=no
15992 case $host_cpu in
15993 ia64*)
15994 shrext_cmds='.so'
15995 hardcode_into_libs=yes
15996 dynamic_linker="$host_os dld.so"
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000 soname_spec='$libname$release$shared_ext$major'
16001 if test 32 = "$HPUX_IA64_MODE"; then
16002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16003 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16004 else
16005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16006 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16007 fi
16008 ;;
16009 hppa*64*)
16010 shrext_cmds='.sl'
16011 hardcode_into_libs=yes
16012 dynamic_linker="$host_os dld.sl"
16013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16016 soname_spec='$libname$release$shared_ext$major'
16017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16019 ;;
16020 *)
16021 shrext_cmds='.sl'
16022 dynamic_linker="$host_os dld.sl"
16023 shlibpath_var=SHLIB_PATH
16024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16026 soname_spec='$libname$release$shared_ext$major'
16027 ;;
16028 esac
16029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16030 postinstall_cmds='chmod 555 $lib'
16031 # or fails outright, so override atomically:
16032 install_override_mode=555
16033 ;;
16034
16035 interix[3-9]*)
16036 version_type=linux # correct to gnu/linux during the next big refactor
16037 need_lib_prefix=no
16038 need_version=no
16039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16040 soname_spec='$libname$release$shared_ext$major'
16041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16045 ;;
16046
16047 irix5* | irix6* | nonstopux*)
16048 case $host_os in
16049 nonstopux*) version_type=nonstopux ;;
16050 *)
16051 if test yes = "$lt_cv_prog_gnu_ld"; then
16052 version_type=linux # correct to gnu/linux during the next big refactor
16053 else
16054 version_type=irix
16055 fi ;;
16056 esac
16057 need_lib_prefix=no
16058 need_version=no
16059 soname_spec='$libname$release$shared_ext$major'
16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16061 case $host_os in
16062 irix5* | nonstopux*)
16063 libsuff= shlibsuff=
16064 ;;
16065 *)
16066 case $LD in # libtool.m4 will add one of these switches to LD
16067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068 libsuff= shlibsuff= libmagic=32-bit;;
16069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070 libsuff=32 shlibsuff=N32 libmagic=N32;;
16071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073 *) libsuff= shlibsuff= libmagic=never-match;;
16074 esac
16075 ;;
16076 esac
16077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078 shlibpath_overrides_runpath=no
16079 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16080 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16081 hardcode_into_libs=yes
16082 ;;
16083
16084 # No shared lib support for Linux oldld, aout, or coff.
16085 linux*oldld* | linux*aout* | linux*coff*)
16086 dynamic_linker=no
16087 ;;
16088
16089 linux*android*)
16090 version_type=none # Android doesn't support versioned libraries.
16091 need_lib_prefix=no
16092 need_version=no
16093 library_names_spec='$libname$release$shared_ext'
16094 soname_spec='$libname$release$shared_ext'
16095 finish_cmds=
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098
16099 # This implies no fast_install, which is unacceptable.
16100 # Some rework will be needed to allow for fast_install
16101 # before this can be enabled.
16102 hardcode_into_libs=yes
16103
16104 dynamic_linker='Android linker'
16105 # Don't embed -rpath directories since the linker doesn't support them.
16106 hardcode_libdir_flag_spec_CXX='-L$libdir'
16107 ;;
16108
16109 # This must be glibc/ELF.
16110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16111 version_type=linux # correct to gnu/linux during the next big refactor
16112 need_lib_prefix=no
16113 need_version=no
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115 soname_spec='$libname$release$shared_ext$major'
16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=no
16119
16120 # Some binutils ld are patched to set DT_RUNPATH
16121 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16124 lt_cv_shlibpath_overrides_runpath=no
16125 save_LDFLAGS=$LDFLAGS
16126 save_libdir=$libdir
16127 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16128 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131
16132 int
16133 main ()
16134 {
16135
16136 ;
16137 return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_cxx_try_link "$LINENO"; then :
16141 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16142 lt_cv_shlibpath_overrides_runpath=yes
16143 fi
16144 fi
16145 rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
16147 LDFLAGS=$save_LDFLAGS
16148 libdir=$save_libdir
16149
16150 fi
16151
16152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16153
16154 # This implies no fast_install, which is unacceptable.
16155 # Some rework will be needed to allow for fast_install
16156 # before this can be enabled.
16157 hardcode_into_libs=yes
16158
16159 # Ideally, we could use ldconfig to report *all* directores which are
16160 # searched for libraries, however this is still not possible. Aside from not
16161 # being certain /sbin/ldconfig is available, command
16162 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16163 # even though it is searched at run-time. Try to do the best guess by
16164 # appending ld.so.conf contents (and includes) to the search path.
16165 if test -f /etc/ld.so.conf; then
16166 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' ' '`
16167 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16168 fi
16169
16170 # We used to test for /lib/ld.so.1 and disable shared libraries on
16171 # powerpc, because MkLinux only supported shared libraries with the
16172 # GNU dynamic linker. Since this was broken with cross compilers,
16173 # most powerpc-linux boxes support dynamic linking these days and
16174 # people can always --disable-shared, the test was removed, and we
16175 # assume the GNU/Linux dynamic linker is in use.
16176 dynamic_linker='GNU/Linux ld.so'
16177 ;;
16178
16179 netbsd*)
16180 version_type=sunos
16181 need_lib_prefix=no
16182 need_version=no
16183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16186 dynamic_linker='NetBSD (a.out) ld.so'
16187 else
16188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16189 soname_spec='$libname$release$shared_ext$major'
16190 dynamic_linker='NetBSD ld.elf_so'
16191 fi
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
16195 ;;
16196
16197 newsos6)
16198 version_type=linux # correct to gnu/linux during the next big refactor
16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=yes
16202 ;;
16203
16204 *nto* | *qnx*)
16205 version_type=qnx
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16209 soname_spec='$libname$release$shared_ext$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=no
16212 hardcode_into_libs=yes
16213 dynamic_linker='ldqnx.so'
16214 ;;
16215
16216 openbsd* | bitrig*)
16217 version_type=sunos
16218 sys_lib_dlsearch_path_spec=/usr/lib
16219 need_lib_prefix=no
16220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16221 need_version=no
16222 else
16223 need_version=yes
16224 fi
16225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
16229 ;;
16230
16231 os2*)
16232 libname_spec='$name'
16233 version_type=windows
16234 shrext_cmds=.dll
16235 need_version=no
16236 need_lib_prefix=no
16237 # OS/2 can only load a DLL with a base name of 8 characters or less.
16238 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16239 v=$($ECHO $release$versuffix | tr -d .-);
16240 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16241 $ECHO $n$v`$shared_ext'
16242 library_names_spec='${libname}_dll.$libext'
16243 dynamic_linker='OS/2 ld.exe'
16244 shlibpath_var=BEGINLIBPATH
16245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16247 postinstall_cmds='base_file=`basename \$file`~
16248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16249 dldir=$destdir/`dirname \$dlpath`~
16250 test -d \$dldir || mkdir -p \$dldir~
16251 $install_prog $dir/$dlname \$dldir/$dlname~
16252 chmod a+x \$dldir/$dlname~
16253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16255 fi'
16256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16257 dlpath=$dir/\$dldll~
16258 $RM \$dlpath'
16259 ;;
16260
16261 osf3* | osf4* | osf5*)
16262 version_type=osf
16263 need_lib_prefix=no
16264 need_version=no
16265 soname_spec='$libname$release$shared_ext$major'
16266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16270 ;;
16271
16272 rdos*)
16273 dynamic_linker=no
16274 ;;
16275
16276 solaris*)
16277 version_type=linux # correct to gnu/linux during the next big refactor
16278 need_lib_prefix=no
16279 need_version=no
16280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16281 soname_spec='$libname$release$shared_ext$major'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=yes
16284 hardcode_into_libs=yes
16285 # ldd complains unless libraries are executable
16286 postinstall_cmds='chmod +x $lib'
16287 ;;
16288
16289 sunos4*)
16290 version_type=sunos
16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes
16295 if test yes = "$with_gnu_ld"; then
16296 need_lib_prefix=no
16297 fi
16298 need_version=yes
16299 ;;
16300
16301 sysv4 | sysv4.3*)
16302 version_type=linux # correct to gnu/linux during the next big refactor
16303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16304 soname_spec='$libname$release$shared_ext$major'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 case $host_vendor in
16307 sni)
16308 shlibpath_overrides_runpath=no
16309 need_lib_prefix=no
16310 runpath_var=LD_RUN_PATH
16311 ;;
16312 siemens)
16313 need_lib_prefix=no
16314 ;;
16315 motorola)
16316 need_lib_prefix=no
16317 need_version=no
16318 shlibpath_overrides_runpath=no
16319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16320 ;;
16321 esac
16322 ;;
16323
16324 sysv4*MP*)
16325 if test -d /usr/nec; then
16326 version_type=linux # correct to gnu/linux during the next big refactor
16327 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16328 soname_spec='$libname$shared_ext.$major'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 fi
16331 ;;
16332
16333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16334 version_type=sco
16335 need_lib_prefix=no
16336 need_version=no
16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16338 soname_spec='$libname$release$shared_ext$major'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=yes
16341 hardcode_into_libs=yes
16342 if test yes = "$with_gnu_ld"; then
16343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16344 else
16345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16346 case $host_os in
16347 sco3.2v5*)
16348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16349 ;;
16350 esac
16351 fi
16352 sys_lib_dlsearch_path_spec='/usr/lib'
16353 ;;
16354
16355 tpf*)
16356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16357 version_type=linux # correct to gnu/linux during the next big refactor
16358 need_lib_prefix=no
16359 need_version=no
16360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16361 shlibpath_var=LD_LIBRARY_PATH
16362 shlibpath_overrides_runpath=no
16363 hardcode_into_libs=yes
16364 ;;
16365
16366 uts4*)
16367 version_type=linux # correct to gnu/linux during the next big refactor
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 soname_spec='$libname$release$shared_ext$major'
16370 shlibpath_var=LD_LIBRARY_PATH
16371 ;;
16372
16373 *)
16374 dynamic_linker=no
16375 ;;
16376 esac
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16378 $as_echo "$dynamic_linker" >&6; }
16379 test no = "$dynamic_linker" && can_build_shared=no
16380
16381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16382 if test yes = "$GCC"; then
16383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16384 fi
16385
16386 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16387 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16388 fi
16389
16390 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16391 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16392 fi
16393
16394 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16395 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16396
16397 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16398 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16399
16400 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16401 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16402
16403
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16443 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16444 hardcode_action_CXX=
16445 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16446 test -n "$runpath_var_CXX" ||
16447 test yes = "$hardcode_automatic_CXX"; then
16448
16449 # We can hardcode non-existent directories.
16450 if test no != "$hardcode_direct_CXX" &&
16451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16452 # have to relink, otherwise we might link with an installed library
16453 # when we should be linking with a yet-to-be-installed one
16454 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16455 test no != "$hardcode_minus_L_CXX"; then
16456 # Linking always hardcodes the temporary library directory.
16457 hardcode_action_CXX=relink
16458 else
16459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16460 hardcode_action_CXX=immediate
16461 fi
16462 else
16463 # We cannot hardcode anything, or else we can only hardcode existing
16464 # directories.
16465 hardcode_action_CXX=unsupported
16466 fi
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16468 $as_echo "$hardcode_action_CXX" >&6; }
16469
16470 if test relink = "$hardcode_action_CXX" ||
16471 test yes = "$inherit_rpath_CXX"; then
16472 # Fast installation is not supported
16473 enable_fast_install=no
16474 elif test yes = "$shlibpath_overrides_runpath" ||
16475 test no = "$enable_shared"; then
16476 # Fast installation is not necessary
16477 enable_fast_install=needless
16478 fi
16479
16480
16481
16482
16483
16484
16485
16486 fi # test -n "$compiler"
16487
16488 CC=$lt_save_CC
16489 CFLAGS=$lt_save_CFLAGS
16490 LDCXX=$LD
16491 LD=$lt_save_LD
16492 GCC=$lt_save_GCC
16493 with_gnu_ld=$lt_save_with_gnu_ld
16494 lt_cv_path_LDCXX=$lt_cv_path_LD
16495 lt_cv_path_LD=$lt_save_path_LD
16496 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16497 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16498 fi # test yes != "$_lt_caught_CXX_error"
16499
16500 ac_ext=c
16501 ac_cpp='$CPP $CPPFLAGS'
16502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520 ac_config_commands="$ac_config_commands libtool"
16521
16522
16523
16524
16525 # Only expand once:
16526
16527
16528
16529 ac_ext=cpp
16530 ac_cpp='$CXXCPP $CPPFLAGS'
16531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16534
16535
16536 ax_cxx_compile_cxx11_required=true
16537 ac_ext=cpp
16538 ac_cpp='$CXXCPP $CPPFLAGS'
16539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16542 ac_success=no
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16544 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16545 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550
16551 template <typename T>
16552 struct check
16553 {
16554 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16555 };
16556
16557 struct Base {
16558 virtual void f() {}
16559 };
16560 struct Child : public Base {
16561 virtual void f() override {}
16562 };
16563
16564 typedef check<check<bool>> right_angle_brackets;
16565
16566 int a;
16567 decltype(a) b;
16568
16569 typedef check<int> check_type;
16570 check_type c;
16571 check_type&& cr = static_cast<check_type&&>(c);
16572
16573 auto d = a;
16574 auto l = [](){};
16575
16576 _ACEOF
16577 if ac_fn_cxx_try_compile "$LINENO"; then :
16578 ax_cv_cxx_compile_cxx11=yes
16579 else
16580 ax_cv_cxx_compile_cxx11=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 fi
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16585 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16586 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16587 ac_success=yes
16588 fi
16589
16590 if test x$ac_success = xno; then
16591 for switch in -std=gnu++11 -std=gnu++0x; do
16592 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16594 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16595 if eval \${$cachevar+:} false; then :
16596 $as_echo_n "(cached) " >&6
16597 else
16598 ac_save_CXXFLAGS="$CXXFLAGS"
16599 CXXFLAGS="$CXXFLAGS $switch"
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16602
16603 template <typename T>
16604 struct check
16605 {
16606 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16607 };
16608
16609 struct Base {
16610 virtual void f() {}
16611 };
16612 struct Child : public Base {
16613 virtual void f() override {}
16614 };
16615
16616 typedef check<check<bool>> right_angle_brackets;
16617
16618 int a;
16619 decltype(a) b;
16620
16621 typedef check<int> check_type;
16622 check_type c;
16623 check_type&& cr = static_cast<check_type&&>(c);
16624
16625 auto d = a;
16626 auto l = [](){};
16627
16628 _ACEOF
16629 if ac_fn_cxx_try_compile "$LINENO"; then :
16630 eval $cachevar=yes
16631 else
16632 eval $cachevar=no
16633 fi
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 CXXFLAGS="$ac_save_CXXFLAGS"
16636 fi
16637 eval ac_res=\$$cachevar
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16639 $as_echo "$ac_res" >&6; }
16640 if eval test x\$$cachevar = xyes; then
16641 CXXFLAGS="$CXXFLAGS $switch"
16642 ac_success=yes
16643 break
16644 fi
16645 done
16646 fi
16647
16648
16649 ac_ext=cpp
16650 ac_cpp='$CXXCPP $CPPFLAGS'
16651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16654
16655 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16656 if test x$ac_success = xno; then
16657 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16658 fi
16659 else
16660 if test x$ac_success = xno; then
16661 HAVE_CXX11=0
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16663 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16664 else
16665 HAVE_CXX11=1
16666
16667 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16668
16669 fi
16670
16671
16672 fi
16673
16674 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16675
16676
16677
16678
16679
16680
16681
16682
16683 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16684 if test -n "$ac_tool_prefix"; then
16685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16686 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688 $as_echo_n "checking for $ac_word... " >&6; }
16689 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16690 $as_echo_n "(cached) " >&6
16691 else
16692 case $PKG_CONFIG in
16693 [\\/]* | ?:[\\/]*)
16694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16695 ;;
16696 *)
16697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698 for as_dir in $PATH
16699 do
16700 IFS=$as_save_IFS
16701 test -z "$as_dir" && as_dir=.
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16706 break 2
16707 fi
16708 done
16709 done
16710 IFS=$as_save_IFS
16711
16712 ;;
16713 esac
16714 fi
16715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16716 if test -n "$PKG_CONFIG"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16718 $as_echo "$PKG_CONFIG" >&6; }
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721 $as_echo "no" >&6; }
16722 fi
16723
16724
16725 fi
16726 if test -z "$ac_cv_path_PKG_CONFIG"; then
16727 ac_pt_PKG_CONFIG=$PKG_CONFIG
16728 # Extract the first word of "pkg-config", so it can be a program name with args.
16729 set dummy pkg-config; ac_word=$2
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16731 $as_echo_n "checking for $ac_word... " >&6; }
16732 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 case $ac_pt_PKG_CONFIG in
16736 [\\/]* | ?:[\\/]*)
16737 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16738 ;;
16739 *)
16740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16741 for as_dir in $PATH
16742 do
16743 IFS=$as_save_IFS
16744 test -z "$as_dir" && as_dir=.
16745 for ac_exec_ext in '' $ac_executable_extensions; do
16746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16747 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16749 break 2
16750 fi
16751 done
16752 done
16753 IFS=$as_save_IFS
16754
16755 ;;
16756 esac
16757 fi
16758 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16759 if test -n "$ac_pt_PKG_CONFIG"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16761 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16762 else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16765 fi
16766
16767 if test "x$ac_pt_PKG_CONFIG" = x; then
16768 PKG_CONFIG=""
16769 else
16770 case $cross_compiling:$ac_tool_warned in
16771 yes:)
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16774 ac_tool_warned=yes ;;
16775 esac
16776 PKG_CONFIG=$ac_pt_PKG_CONFIG
16777 fi
16778 else
16779 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16780 fi
16781
16782 fi
16783 if test -n "$PKG_CONFIG"; then
16784 _pkg_min_version=0.22
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16786 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16787 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16789 $as_echo "yes" >&6; }
16790 else
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792 $as_echo "no" >&6; }
16793 PKG_CONFIG=""
16794 fi
16795 fi
16796
16797 # Extract the first word of "git", so it can be a program name with args.
16798 set dummy git; ac_word=$2
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16800 $as_echo_n "checking for $ac_word... " >&6; }
16801 if ${ac_cv_path_GIT+:} false; then :
16802 $as_echo_n "(cached) " >&6
16803 else
16804 case $GIT in
16805 [\\/]* | ?:[\\/]*)
16806 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16807 ;;
16808 *)
16809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16810 for as_dir in $PATH
16811 do
16812 IFS=$as_save_IFS
16813 test -z "$as_dir" && as_dir=.
16814 for ac_exec_ext in '' $ac_executable_extensions; do
16815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16816 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16818 break 2
16819 fi
16820 done
16821 done
16822 IFS=$as_save_IFS
16823
16824 ;;
16825 esac
16826 fi
16827 GIT=$ac_cv_path_GIT
16828 if test -n "$GIT"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16830 $as_echo "$GIT" >&6; }
16831 else
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833 $as_echo "no" >&6; }
16834 fi
16835
16836
16837 # Extract the first word of "time", so it can be a program name with args.
16838 set dummy time; ac_word=$2
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16840 $as_echo_n "checking for $ac_word... " >&6; }
16841 if ${ac_cv_path_TIME+:} false; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16844 case $TIME in
16845 [\\/]* | ?:[\\/]*)
16846 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16847 ;;
16848 *)
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850 for as_dir in $PATH
16851 do
16852 IFS=$as_save_IFS
16853 test -z "$as_dir" && as_dir=.
16854 for ac_exec_ext in '' $ac_executable_extensions; do
16855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16858 break 2
16859 fi
16860 done
16861 done
16862 IFS=$as_save_IFS
16863
16864 ;;
16865 esac
16866 fi
16867 TIME=$ac_cv_path_TIME
16868 if test -n "$TIME"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16870 $as_echo "$TIME" >&6; }
16871 else
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16874 fi
16875
16876
16877
16878
16879
16880
16881
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16883 $as_echo_n "checking for bison >= 3.0... " >&6; }
16884 if test -z "$BISON"; then
16885 ac_path_BISON_found=false
16886 # Loop through the user's path and test for each of PROGNAME-LIST
16887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888 for as_dir in $PATH
16889 do
16890 IFS=$as_save_IFS
16891 test -z "$as_dir" && as_dir=.
16892 for ac_prog in bison; do
16893 for ac_exec_ext in '' $ac_executable_extensions; do
16894 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16895 as_fn_executable_p "$ac_path_BISON" || continue
16896 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16897 if ${version:+false} :; then :
16898
16899 else
16900 as_awk_strverscmp='
16901 # Use only awk features that work with 7th edition Unix awk (1978).
16902 # My, what an old awk you have, Mr. Solaris!
16903 END {
16904 while (length(v1) && length(v2)) {
16905 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16906 # Normally this is a single character, but if v1 and v2 contain digits,
16907 # compare them as integers and fractions as strverscmp does.
16908 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16909 # Split v1 and v2 into their leading digit string components d1 and d2,
16910 # and advance v1 and v2 past the leading digit strings.
16911 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16912 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16913 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16914 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16915 if (d1 ~ /^0/) {
16916 if (d2 ~ /^0/) {
16917 # Compare two fractions.
16918 while (d1 ~ /^0/ && d2 ~ /^0/) {
16919 d1 = substr(d1, 2); len1--
16920 d2 = substr(d2, 2); len2--
16921 }
16922 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16923 # The two components differ in length, and the common prefix
16924 # contains only leading zeros. Consider the longer to be less.
16925 d1 = -len1
16926 d2 = -len2
16927 } else {
16928 # Otherwise, compare as strings.
16929 d1 = "x" d1
16930 d2 = "x" d2
16931 }
16932 } else {
16933 # A fraction is less than an integer.
16934 exit 1
16935 }
16936 } else {
16937 if (d2 ~ /^0/) {
16938 # An integer is greater than a fraction.
16939 exit 2
16940 } else {
16941 # Compare two integers.
16942 d1 += 0
16943 d2 += 0
16944 }
16945 }
16946 } else {
16947 # The normal case, without worrying about digits.
16948 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16949 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16950 }
16951 if (d1 < d2) exit 1
16952 if (d1 > d2) exit 2
16953 }
16954 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16955 # which mishandles some comparisons of empty strings to integers.
16956 if (length(v2)) exit 1
16957 if (length(v1)) exit 2
16958 }
16959 '
16960 as_arg_v1=$version
16961 as_arg_v2=3.0
16962 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16963 case $? in #(
16964 1) :
16965 ;; #(
16966 0) :
16967 ac_cv_path_BISON=$ac_path_BISON ;; #(
16968 2) :
16969 ac_cv_path_BISON=$ac_path_BISON ;; #(
16970 *) :
16971 ;;
16972 esac
16973 fi
16974
16975 $ac_path_BISON_found && break 3
16976 done
16977 done
16978 done
16979 IFS=$as_save_IFS
16980 if test -z "$ac_cv_path_BISON"; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 $as_echo "no" >&6; }
16983 fi
16984 else
16985 ac_cv_path_BISON=$BISON
16986 fi
16987
16988
16989 if true; then :
16990
16991 BISON=$ac_cv_path_BISON
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16994 $as_echo "$BISON" >&6; }
16995
16996 else
16997 if true; then :
16998
16999 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
17000
17001 else
17002
17003 BISON=:
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006 $as_echo "no" >&6; }
17007
17008 fi
17009 fi
17010
17011
17012
17013
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17015 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
17016 if test -z "$FLEX"; then
17017 ac_path_FLEX_found=false
17018 # Loop through the user's path and test for each of PROGNAME-LIST
17019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17020 for as_dir in $PATH
17021 do
17022 IFS=$as_save_IFS
17023 test -z "$as_dir" && as_dir=.
17024 for ac_prog in flex; do
17025 for ac_exec_ext in '' $ac_executable_extensions; do
17026 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17027 as_fn_executable_p "$ac_path_FLEX" || continue
17028 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17029 if ${version:+false} :; then :
17030
17031 else
17032 as_arg_v1=$version
17033 as_arg_v2=2.5.33
17034 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17035 case $? in #(
17036 1) :
17037 ;; #(
17038 0) :
17039 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17040 2) :
17041 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17042 *) :
17043 ;;
17044 esac
17045 fi
17046
17047 $ac_path_FLEX_found && break 3
17048 done
17049 done
17050 done
17051 IFS=$as_save_IFS
17052 if test -z "$ac_cv_path_FLEX"; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054 $as_echo "no" >&6; }
17055 fi
17056 else
17057 ac_cv_path_FLEX=$FLEX
17058 fi
17059
17060
17061 if true; then :
17062
17063 FLEX=$ac_cv_path_FLEX
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17066 $as_echo "$FLEX" >&6; }
17067
17068 else
17069 if true; then :
17070
17071 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17072
17073 else
17074
17075 FLEX=:
17076
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17078 $as_echo "no" >&6; }
17079
17080 fi
17081 fi
17082
17083
17084
17085
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17087 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17088 if test -z "$GPERF"; then
17089 ac_path_GPERF_found=false
17090 # Loop through the user's path and test for each of PROGNAME-LIST
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17093 do
17094 IFS=$as_save_IFS
17095 test -z "$as_dir" && as_dir=.
17096 for ac_prog in gperf; do
17097 for ac_exec_ext in '' $ac_executable_extensions; do
17098 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17099 as_fn_executable_p "$ac_path_GPERF" || continue
17100 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17101 if ${version:+false} :; then :
17102
17103 else
17104 as_arg_v1=$version
17105 as_arg_v2=3.0.3
17106 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17107 case $? in #(
17108 1) :
17109 ;; #(
17110 0) :
17111 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17112 2) :
17113 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17114 *) :
17115 ;;
17116 esac
17117 fi
17118
17119 $ac_path_GPERF_found && break 3
17120 done
17121 done
17122 done
17123 IFS=$as_save_IFS
17124 if test -z "$ac_cv_path_GPERF"; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17127 fi
17128 else
17129 ac_cv_path_GPERF=$GPERF
17130 fi
17131
17132
17133 if true; then :
17134
17135 GPERF=$ac_cv_path_GPERF
17136
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17138 $as_echo "$GPERF" >&6; }
17139
17140 else
17141 if true; then :
17142
17143 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17144
17145 else
17146
17147 GPERF=:
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150 $as_echo "no" >&6; }
17151
17152 fi
17153 fi
17154
17155
17156
17157
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17159 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17160 if test -z "$GNUTAR"; then
17161 ac_path_GNUTAR_found=false
17162 # Loop through the user's path and test for each of PROGNAME-LIST
17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17164 for as_dir in $PATH
17165 do
17166 IFS=$as_save_IFS
17167 test -z "$as_dir" && as_dir=.
17168 for ac_prog in tar gtar gnutar; do
17169 for ac_exec_ext in '' $ac_executable_extensions; do
17170 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17171 as_fn_executable_p "$ac_path_GNUTAR" || continue
17172 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17173 if ${version:+false} :; then :
17174
17175 else
17176 as_arg_v1=$version
17177 as_arg_v2=1.19
17178 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17179 case $? in #(
17180 1) :
17181 ;; #(
17182 0) :
17183 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17184 2) :
17185 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17186 *) :
17187 ;;
17188 esac
17189 fi
17190
17191 $ac_path_GNUTAR_found && break 3
17192 done
17193 done
17194 done
17195 IFS=$as_save_IFS
17196 if test -z "$ac_cv_path_GNUTAR"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198 $as_echo "no" >&6; }
17199 fi
17200 else
17201 ac_cv_path_GNUTAR=$GNUTAR
17202 fi
17203
17204
17205 if true; then :
17206
17207 GNUTAR=$ac_cv_path_GNUTAR
17208
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17210 $as_echo "$GNUTAR" >&6; }
17211
17212 else
17213 if true; then :
17214
17215 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17216
17217 else
17218
17219 GNUTAR=:
17220
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17223
17224 fi
17225 fi
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236 ac_ext=c
17237 ac_cpp='$CPP $CPPFLAGS'
17238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17241
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17243 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17244 if ${ac_cv_cflags_warn_all+:} false; then :
17245 $as_echo_n "(cached) " >&6
17246 else
17247 ac_cv_cflags_warn_all="no, unknown"
17248 ac_save_CFLAGS="$CFLAGS"
17249 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" #
17250 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253
17254 int
17255 main ()
17256 {
17257
17258 ;
17259 return 0;
17260 }
17261 _ACEOF
17262 if ac_fn_c_try_compile "$LINENO"; then :
17263 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266 done
17267 CFLAGS="$ac_save_CFLAGS"
17268
17269 fi
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17271 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17272
17273
17274 case ".$ac_cv_cflags_warn_all" in
17275 .ok|.ok,*) ;;
17276 .|.no|.no,*) ;;
17277 *) if ${CFLAGS+:} false; then :
17278 case " $CFLAGS " in
17279 *" $ac_cv_cflags_warn_all "*)
17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17281 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17282 ac_status=$?
17283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284 test $ac_status = 0; }
17285 ;;
17286 *)
17287 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17288 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }
17292 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17293 ;;
17294 esac
17295 else
17296 CFLAGS="$ac_cv_cflags_warn_all"
17297 fi
17298 ;;
17299 esac
17300
17301 ac_ext=cpp
17302 ac_cpp='$CXXCPP $CPPFLAGS'
17303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17306
17307
17308 ac_ext=cpp
17309 ac_cpp='$CXXCPP $CPPFLAGS'
17310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17313
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17315 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17316 if ${ac_cv_cxxflags_warn_all+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17319 ac_cv_cxxflags_warn_all="no, unknown"
17320 ac_save_CXXFLAGS="$CXXFLAGS"
17321 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" #
17322 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17325
17326 int
17327 main ()
17328 {
17329
17330 ;
17331 return 0;
17332 }
17333 _ACEOF
17334 if ac_fn_cxx_try_compile "$LINENO"; then :
17335 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17336 fi
17337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 done
17339 CXXFLAGS="$ac_save_CXXFLAGS"
17340
17341 fi
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17343 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17344
17345
17346 case ".$ac_cv_cxxflags_warn_all" in
17347 .ok|.ok,*) ;;
17348 .|.no|.no,*) ;;
17349 *) if ${CXXFLAGS+:} false; then :
17350 case " $CXXFLAGS " in
17351 *" $ac_cv_cxxflags_warn_all "*)
17352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17353 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17354 ac_status=$?
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }
17357 ;;
17358 *)
17359 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17360 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17361 ac_status=$?
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }
17364 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17365 ;;
17366 esac
17367 else
17368 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17369 fi
17370 ;;
17371 esac
17372
17373 ac_ext=cpp
17374 ac_cpp='$CXXCPP $CPPFLAGS'
17375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17378
17379
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17381 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17382 if ${ac_cv_cxxflags_warn_all+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 ac_cv_cxxflags_warn_all="no, unknown"
17386 ac_save_CXXFLAGS="$CXXFLAGS"
17387 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" #
17388 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390 /* end confdefs.h. */
17391
17392 int
17393 main ()
17394 {
17395
17396 ;
17397 return 0;
17398 }
17399 _ACEOF
17400 if ac_fn_cxx_try_compile "$LINENO"; then :
17401 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17402 fi
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404 done
17405 CXXFLAGS="$ac_save_CXXFLAGS"
17406
17407 fi
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17409 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17410
17411
17412 case ".$ac_cv_cxxflags_warn_all" in
17413 .ok|.ok,*) ;;
17414 .|.no|.no,*) ;;
17415 *) if ${CXXFLAGS+:} false; then :
17416 case " $CXXFLAGS " in
17417 *" $ac_cv_cxxflags_warn_all "*)
17418 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17419 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17420 ac_status=$?
17421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17422 test $ac_status = 0; }
17423 ;;
17424 *)
17425 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17426 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17427 ac_status=$?
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }
17430 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17431 ;;
17432 esac
17433 else
17434 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17435 fi
17436 ;;
17437 esac
17438
17439
17440
17441
17442
17443 ac_ext=c
17444 ac_cpp='$CPP $CPPFLAGS'
17445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17450 $as_echo_n "checking for cc -Werror... " >&6; }
17451
17452 cy_save=$CFLAGS
17453
17454 for element in -Werror; do
17455 haveit=
17456 for x in $CFLAGS; do
17457
17458 acl_save_prefix="$prefix"
17459 prefix="$acl_final_prefix"
17460 acl_save_exec_prefix="$exec_prefix"
17461 exec_prefix="$acl_final_exec_prefix"
17462 eval x=\"$x\"
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17465
17466 if test "X$x" = "X$element"; then
17467 haveit=yes
17468 break
17469 fi
17470 done
17471 if test -z "$haveit"; then
17472 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17473 fi
17474 done
17475
17476
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479
17480 _ACEOF
17481 if ac_fn_c_try_compile "$LINENO"; then :
17482 cy_good=1
17483 else
17484 cy_good=0
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487
17488 CFLAGS=$cy_save
17489 if test "x$cy_good" = x1; then :
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17491 $as_echo "yes" >&6; }
17492
17493 for element in -Werror; do
17494 haveit=
17495 for x in $CFLAGS; do
17496
17497 acl_save_prefix="$prefix"
17498 prefix="$acl_final_prefix"
17499 acl_save_exec_prefix="$exec_prefix"
17500 exec_prefix="$acl_final_exec_prefix"
17501 eval x=\"$x\"
17502 exec_prefix="$acl_save_exec_prefix"
17503 prefix="$acl_save_prefix"
17504
17505 if test "X$x" = "X$element"; then
17506 haveit=yes
17507 break
17508 fi
17509 done
17510 if test -z "$haveit"; then
17511 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17512 fi
17513 done
17514
17515
17516 else
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518 $as_echo "no" >&6; }
17519 fi
17520
17521 ac_ext=cpp
17522 ac_cpp='$CXXCPP $CPPFLAGS'
17523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17526
17527
17528
17529 ac_ext=cpp
17530 ac_cpp='$CXXCPP $CPPFLAGS'
17531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17534
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17536 $as_echo_n "checking for c++ -Werror... " >&6; }
17537
17538 cy_save=$CXXFLAGS
17539
17540 for element in -Werror; do
17541 haveit=
17542 for x in $CXXFLAGS; do
17543
17544 acl_save_prefix="$prefix"
17545 prefix="$acl_final_prefix"
17546 acl_save_exec_prefix="$exec_prefix"
17547 exec_prefix="$acl_final_exec_prefix"
17548 eval x=\"$x\"
17549 exec_prefix="$acl_save_exec_prefix"
17550 prefix="$acl_save_prefix"
17551
17552 if test "X$x" = "X$element"; then
17553 haveit=yes
17554 break
17555 fi
17556 done
17557 if test -z "$haveit"; then
17558 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17559 fi
17560 done
17561
17562
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565
17566 _ACEOF
17567 if ac_fn_cxx_try_compile "$LINENO"; then :
17568 cy_good=1
17569 else
17570 cy_good=0
17571 fi
17572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573
17574 CXXFLAGS=$cy_save
17575 if test "x$cy_good" = x1; then :
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577 $as_echo "yes" >&6; }
17578
17579 for element in -Werror; do
17580 haveit=
17581 for x in $CXXFLAGS; do
17582
17583 acl_save_prefix="$prefix"
17584 prefix="$acl_final_prefix"
17585 acl_save_exec_prefix="$exec_prefix"
17586 exec_prefix="$acl_final_exec_prefix"
17587 eval x=\"$x\"
17588 exec_prefix="$acl_save_exec_prefix"
17589 prefix="$acl_save_prefix"
17590
17591 if test "X$x" = "X$element"; then
17592 haveit=yes
17593 break
17594 fi
17595 done
17596 if test -z "$haveit"; then
17597 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17598 fi
17599 done
17600
17601
17602 else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604 $as_echo "no" >&6; }
17605 fi
17606
17607 ac_ext=cpp
17608 ac_cpp='$CXXCPP $CPPFLAGS'
17609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17612
17613
17614
17615 ac_ext=mm
17616 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17617 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17620
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17622 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17623
17624 cy_save=$OBJCXXFLAGS
17625
17626 for element in -Werror; do
17627 haveit=
17628 for x in $OBJCXXFLAGS; do
17629
17630 acl_save_prefix="$prefix"
17631 prefix="$acl_final_prefix"
17632 acl_save_exec_prefix="$exec_prefix"
17633 exec_prefix="$acl_final_exec_prefix"
17634 eval x=\"$x\"
17635 exec_prefix="$acl_save_exec_prefix"
17636 prefix="$acl_save_prefix"
17637
17638 if test "X$x" = "X$element"; then
17639 haveit=yes
17640 break
17641 fi
17642 done
17643 if test -z "$haveit"; then
17644 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17645 fi
17646 done
17647
17648
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650 /* end confdefs.h. */
17651
17652 _ACEOF
17653 if ac_fn_objcxx_try_compile "$LINENO"; then :
17654 cy_good=1
17655 else
17656 cy_good=0
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659
17660 OBJCXXFLAGS=$cy_save
17661 if test "x$cy_good" = x1; then :
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17663 $as_echo "yes" >&6; }
17664
17665 for element in -Werror; do
17666 haveit=
17667 for x in $OBJCXXFLAGS; do
17668
17669 acl_save_prefix="$prefix"
17670 prefix="$acl_final_prefix"
17671 acl_save_exec_prefix="$exec_prefix"
17672 exec_prefix="$acl_final_exec_prefix"
17673 eval x=\"$x\"
17674 exec_prefix="$acl_save_exec_prefix"
17675 prefix="$acl_save_prefix"
17676
17677 if test "X$x" = "X$element"; then
17678 haveit=yes
17679 break
17680 fi
17681 done
17682 if test -z "$haveit"; then
17683 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17684 fi
17685 done
17686
17687
17688 else
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690 $as_echo "no" >&6; }
17691 fi
17692
17693 ac_ext=cpp
17694 ac_cpp='$CXXCPP $CPPFLAGS'
17695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17698
17699
17700
17701
17702
17703
17704 ac_ext=c
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17711 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17712
17713 cy_save=$CFLAGS
17714
17715 for element in -Wno-deprecated-declarations; do
17716 haveit=
17717 for x in $CFLAGS; do
17718
17719 acl_save_prefix="$prefix"
17720 prefix="$acl_final_prefix"
17721 acl_save_exec_prefix="$exec_prefix"
17722 exec_prefix="$acl_final_exec_prefix"
17723 eval x=\"$x\"
17724 exec_prefix="$acl_save_exec_prefix"
17725 prefix="$acl_save_prefix"
17726
17727 if test "X$x" = "X$element"; then
17728 haveit=yes
17729 break
17730 fi
17731 done
17732 if test -z "$haveit"; then
17733 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17734 fi
17735 done
17736
17737
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740
17741 _ACEOF
17742 if ac_fn_c_try_compile "$LINENO"; then :
17743 cy_good=1
17744 else
17745 cy_good=0
17746 fi
17747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748
17749 CFLAGS=$cy_save
17750 if test "x$cy_good" = x1; then :
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17752 $as_echo "yes" >&6; }
17753
17754 for element in -Wno-deprecated-declarations; do
17755 haveit=
17756 for x in $CFLAGS; do
17757
17758 acl_save_prefix="$prefix"
17759 prefix="$acl_final_prefix"
17760 acl_save_exec_prefix="$exec_prefix"
17761 exec_prefix="$acl_final_exec_prefix"
17762 eval x=\"$x\"
17763 exec_prefix="$acl_save_exec_prefix"
17764 prefix="$acl_save_prefix"
17765
17766 if test "X$x" = "X$element"; then
17767 haveit=yes
17768 break
17769 fi
17770 done
17771 if test -z "$haveit"; then
17772 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17773 fi
17774 done
17775
17776
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17779 $as_echo "no" >&6; }
17780 fi
17781
17782 ac_ext=cpp
17783 ac_cpp='$CXXCPP $CPPFLAGS'
17784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787
17788
17789
17790 ac_ext=cpp
17791 ac_cpp='$CXXCPP $CPPFLAGS'
17792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17795
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17797 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17798
17799 cy_save=$CXXFLAGS
17800
17801 for element in -Wno-deprecated-declarations; do
17802 haveit=
17803 for x in $CXXFLAGS; do
17804
17805 acl_save_prefix="$prefix"
17806 prefix="$acl_final_prefix"
17807 acl_save_exec_prefix="$exec_prefix"
17808 exec_prefix="$acl_final_exec_prefix"
17809 eval x=\"$x\"
17810 exec_prefix="$acl_save_exec_prefix"
17811 prefix="$acl_save_prefix"
17812
17813 if test "X$x" = "X$element"; then
17814 haveit=yes
17815 break
17816 fi
17817 done
17818 if test -z "$haveit"; then
17819 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17820 fi
17821 done
17822
17823
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826
17827 _ACEOF
17828 if ac_fn_cxx_try_compile "$LINENO"; then :
17829 cy_good=1
17830 else
17831 cy_good=0
17832 fi
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834
17835 CXXFLAGS=$cy_save
17836 if test "x$cy_good" = x1; then :
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838 $as_echo "yes" >&6; }
17839
17840 for element in -Wno-deprecated-declarations; do
17841 haveit=
17842 for x in $CXXFLAGS; do
17843
17844 acl_save_prefix="$prefix"
17845 prefix="$acl_final_prefix"
17846 acl_save_exec_prefix="$exec_prefix"
17847 exec_prefix="$acl_final_exec_prefix"
17848 eval x=\"$x\"
17849 exec_prefix="$acl_save_exec_prefix"
17850 prefix="$acl_save_prefix"
17851
17852 if test "X$x" = "X$element"; then
17853 haveit=yes
17854 break
17855 fi
17856 done
17857 if test -z "$haveit"; then
17858 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17859 fi
17860 done
17861
17862
17863 else
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865 $as_echo "no" >&6; }
17866 fi
17867
17868 ac_ext=cpp
17869 ac_cpp='$CXXCPP $CPPFLAGS'
17870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17873
17874
17875
17876 ac_ext=mm
17877 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17878 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17881
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17883 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17884
17885 cy_save=$OBJCXXFLAGS
17886
17887 for element in -Wno-deprecated-declarations; do
17888 haveit=
17889 for x in $OBJCXXFLAGS; do
17890
17891 acl_save_prefix="$prefix"
17892 prefix="$acl_final_prefix"
17893 acl_save_exec_prefix="$exec_prefix"
17894 exec_prefix="$acl_final_exec_prefix"
17895 eval x=\"$x\"
17896 exec_prefix="$acl_save_exec_prefix"
17897 prefix="$acl_save_prefix"
17898
17899 if test "X$x" = "X$element"; then
17900 haveit=yes
17901 break
17902 fi
17903 done
17904 if test -z "$haveit"; then
17905 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17906 fi
17907 done
17908
17909
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912
17913 _ACEOF
17914 if ac_fn_objcxx_try_compile "$LINENO"; then :
17915 cy_good=1
17916 else
17917 cy_good=0
17918 fi
17919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920
17921 OBJCXXFLAGS=$cy_save
17922 if test "x$cy_good" = x1; then :
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924 $as_echo "yes" >&6; }
17925
17926 for element in -Wno-deprecated-declarations; do
17927 haveit=
17928 for x in $OBJCXXFLAGS; do
17929
17930 acl_save_prefix="$prefix"
17931 prefix="$acl_final_prefix"
17932 acl_save_exec_prefix="$exec_prefix"
17933 exec_prefix="$acl_final_exec_prefix"
17934 eval x=\"$x\"
17935 exec_prefix="$acl_save_exec_prefix"
17936 prefix="$acl_save_prefix"
17937
17938 if test "X$x" = "X$element"; then
17939 haveit=yes
17940 break
17941 fi
17942 done
17943 if test -z "$haveit"; then
17944 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17945 fi
17946 done
17947
17948
17949 else
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 $as_echo "no" >&6; }
17952 fi
17953
17954 ac_ext=cpp
17955 ac_cpp='$CXXCPP $CPPFLAGS'
17956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17959
17960
17961
17962
17963
17964
17965 ac_ext=c
17966 ac_cpp='$CPP $CPPFLAGS'
17967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17972 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17973
17974 cy_save=$CFLAGS
17975
17976 for element in -Wno-dangling-else; do
17977 haveit=
17978 for x in $CFLAGS; do
17979
17980 acl_save_prefix="$prefix"
17981 prefix="$acl_final_prefix"
17982 acl_save_exec_prefix="$exec_prefix"
17983 exec_prefix="$acl_final_exec_prefix"
17984 eval x=\"$x\"
17985 exec_prefix="$acl_save_exec_prefix"
17986 prefix="$acl_save_prefix"
17987
17988 if test "X$x" = "X$element"; then
17989 haveit=yes
17990 break
17991 fi
17992 done
17993 if test -z "$haveit"; then
17994 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17995 fi
17996 done
17997
17998
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001
18002 _ACEOF
18003 if ac_fn_c_try_compile "$LINENO"; then :
18004 cy_good=1
18005 else
18006 cy_good=0
18007 fi
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009
18010 CFLAGS=$cy_save
18011 if test "x$cy_good" = x1; then :
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013 $as_echo "yes" >&6; }
18014
18015 for element in -Wno-dangling-else; do
18016 haveit=
18017 for x in $CFLAGS; do
18018
18019 acl_save_prefix="$prefix"
18020 prefix="$acl_final_prefix"
18021 acl_save_exec_prefix="$exec_prefix"
18022 exec_prefix="$acl_final_exec_prefix"
18023 eval x=\"$x\"
18024 exec_prefix="$acl_save_exec_prefix"
18025 prefix="$acl_save_prefix"
18026
18027 if test "X$x" = "X$element"; then
18028 haveit=yes
18029 break
18030 fi
18031 done
18032 if test -z "$haveit"; then
18033 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18034 fi
18035 done
18036
18037
18038 else
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040 $as_echo "no" >&6; }
18041 fi
18042
18043 ac_ext=cpp
18044 ac_cpp='$CXXCPP $CPPFLAGS'
18045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18048
18049
18050
18051 ac_ext=cpp
18052 ac_cpp='$CXXCPP $CPPFLAGS'
18053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18056
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18058 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18059
18060 cy_save=$CXXFLAGS
18061
18062 for element in -Wno-dangling-else; do
18063 haveit=
18064 for x in $CXXFLAGS; do
18065
18066 acl_save_prefix="$prefix"
18067 prefix="$acl_final_prefix"
18068 acl_save_exec_prefix="$exec_prefix"
18069 exec_prefix="$acl_final_exec_prefix"
18070 eval x=\"$x\"
18071 exec_prefix="$acl_save_exec_prefix"
18072 prefix="$acl_save_prefix"
18073
18074 if test "X$x" = "X$element"; then
18075 haveit=yes
18076 break
18077 fi
18078 done
18079 if test -z "$haveit"; then
18080 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18081 fi
18082 done
18083
18084
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087
18088 _ACEOF
18089 if ac_fn_cxx_try_compile "$LINENO"; then :
18090 cy_good=1
18091 else
18092 cy_good=0
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095
18096 CXXFLAGS=$cy_save
18097 if test "x$cy_good" = x1; then :
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18099 $as_echo "yes" >&6; }
18100
18101 for element in -Wno-dangling-else; do
18102 haveit=
18103 for x in $CXXFLAGS; do
18104
18105 acl_save_prefix="$prefix"
18106 prefix="$acl_final_prefix"
18107 acl_save_exec_prefix="$exec_prefix"
18108 exec_prefix="$acl_final_exec_prefix"
18109 eval x=\"$x\"
18110 exec_prefix="$acl_save_exec_prefix"
18111 prefix="$acl_save_prefix"
18112
18113 if test "X$x" = "X$element"; then
18114 haveit=yes
18115 break
18116 fi
18117 done
18118 if test -z "$haveit"; then
18119 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18120 fi
18121 done
18122
18123
18124 else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126 $as_echo "no" >&6; }
18127 fi
18128
18129 ac_ext=cpp
18130 ac_cpp='$CXXCPP $CPPFLAGS'
18131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18134
18135
18136
18137 ac_ext=mm
18138 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18139 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18142
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18144 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18145
18146 cy_save=$OBJCXXFLAGS
18147
18148 for element in -Wno-dangling-else; do
18149 haveit=
18150 for x in $OBJCXXFLAGS; do
18151
18152 acl_save_prefix="$prefix"
18153 prefix="$acl_final_prefix"
18154 acl_save_exec_prefix="$exec_prefix"
18155 exec_prefix="$acl_final_exec_prefix"
18156 eval x=\"$x\"
18157 exec_prefix="$acl_save_exec_prefix"
18158 prefix="$acl_save_prefix"
18159
18160 if test "X$x" = "X$element"; then
18161 haveit=yes
18162 break
18163 fi
18164 done
18165 if test -z "$haveit"; then
18166 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18167 fi
18168 done
18169
18170
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173
18174 _ACEOF
18175 if ac_fn_objcxx_try_compile "$LINENO"; then :
18176 cy_good=1
18177 else
18178 cy_good=0
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181
18182 OBJCXXFLAGS=$cy_save
18183 if test "x$cy_good" = x1; then :
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18186
18187 for element in -Wno-dangling-else; do
18188 haveit=
18189 for x in $OBJCXXFLAGS; do
18190
18191 acl_save_prefix="$prefix"
18192 prefix="$acl_final_prefix"
18193 acl_save_exec_prefix="$exec_prefix"
18194 exec_prefix="$acl_final_exec_prefix"
18195 eval x=\"$x\"
18196 exec_prefix="$acl_save_exec_prefix"
18197 prefix="$acl_save_prefix"
18198
18199 if test "X$x" = "X$element"; then
18200 haveit=yes
18201 break
18202 fi
18203 done
18204 if test -z "$haveit"; then
18205 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18206 fi
18207 done
18208
18209
18210 else
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18212 $as_echo "no" >&6; }
18213 fi
18214
18215 ac_ext=cpp
18216 ac_cpp='$CXXCPP $CPPFLAGS'
18217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18220
18221
18222
18223
18224
18225 ac_ext=c
18226 ac_cpp='$CPP $CPPFLAGS'
18227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18230
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18232 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18233
18234 cy_save=$CFLAGS
18235
18236 for element in -Wno-overloaded-virtual; do
18237 haveit=
18238 for x in $CFLAGS; do
18239
18240 acl_save_prefix="$prefix"
18241 prefix="$acl_final_prefix"
18242 acl_save_exec_prefix="$exec_prefix"
18243 exec_prefix="$acl_final_exec_prefix"
18244 eval x=\"$x\"
18245 exec_prefix="$acl_save_exec_prefix"
18246 prefix="$acl_save_prefix"
18247
18248 if test "X$x" = "X$element"; then
18249 haveit=yes
18250 break
18251 fi
18252 done
18253 if test -z "$haveit"; then
18254 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18255 fi
18256 done
18257
18258
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18261
18262 _ACEOF
18263 if ac_fn_c_try_compile "$LINENO"; then :
18264 cy_good=1
18265 else
18266 cy_good=0
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269
18270 CFLAGS=$cy_save
18271 if test "x$cy_good" = x1; then :
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18273 $as_echo "yes" >&6; }
18274
18275 for element in -Wno-overloaded-virtual; do
18276 haveit=
18277 for x in $CFLAGS; do
18278
18279 acl_save_prefix="$prefix"
18280 prefix="$acl_final_prefix"
18281 acl_save_exec_prefix="$exec_prefix"
18282 exec_prefix="$acl_final_exec_prefix"
18283 eval x=\"$x\"
18284 exec_prefix="$acl_save_exec_prefix"
18285 prefix="$acl_save_prefix"
18286
18287 if test "X$x" = "X$element"; then
18288 haveit=yes
18289 break
18290 fi
18291 done
18292 if test -z "$haveit"; then
18293 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18294 fi
18295 done
18296
18297
18298 else
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18301 fi
18302
18303 ac_ext=cpp
18304 ac_cpp='$CXXCPP $CPPFLAGS'
18305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18308
18309
18310
18311 ac_ext=cpp
18312 ac_cpp='$CXXCPP $CPPFLAGS'
18313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18316
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18318 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18319
18320 cy_save=$CXXFLAGS
18321
18322 for element in -Wno-overloaded-virtual; do
18323 haveit=
18324 for x in $CXXFLAGS; do
18325
18326 acl_save_prefix="$prefix"
18327 prefix="$acl_final_prefix"
18328 acl_save_exec_prefix="$exec_prefix"
18329 exec_prefix="$acl_final_exec_prefix"
18330 eval x=\"$x\"
18331 exec_prefix="$acl_save_exec_prefix"
18332 prefix="$acl_save_prefix"
18333
18334 if test "X$x" = "X$element"; then
18335 haveit=yes
18336 break
18337 fi
18338 done
18339 if test -z "$haveit"; then
18340 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18341 fi
18342 done
18343
18344
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18347
18348 _ACEOF
18349 if ac_fn_cxx_try_compile "$LINENO"; then :
18350 cy_good=1
18351 else
18352 cy_good=0
18353 fi
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355
18356 CXXFLAGS=$cy_save
18357 if test "x$cy_good" = x1; then :
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18360
18361 for element in -Wno-overloaded-virtual; do
18362 haveit=
18363 for x in $CXXFLAGS; do
18364
18365 acl_save_prefix="$prefix"
18366 prefix="$acl_final_prefix"
18367 acl_save_exec_prefix="$exec_prefix"
18368 exec_prefix="$acl_final_exec_prefix"
18369 eval x=\"$x\"
18370 exec_prefix="$acl_save_exec_prefix"
18371 prefix="$acl_save_prefix"
18372
18373 if test "X$x" = "X$element"; then
18374 haveit=yes
18375 break
18376 fi
18377 done
18378 if test -z "$haveit"; then
18379 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18380 fi
18381 done
18382
18383
18384 else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18387 fi
18388
18389 ac_ext=cpp
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18394
18395
18396
18397 ac_ext=mm
18398 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18399 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18402
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18404 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18405
18406 cy_save=$OBJCXXFLAGS
18407
18408 for element in -Wno-overloaded-virtual; do
18409 haveit=
18410 for x in $OBJCXXFLAGS; do
18411
18412 acl_save_prefix="$prefix"
18413 prefix="$acl_final_prefix"
18414 acl_save_exec_prefix="$exec_prefix"
18415 exec_prefix="$acl_final_exec_prefix"
18416 eval x=\"$x\"
18417 exec_prefix="$acl_save_exec_prefix"
18418 prefix="$acl_save_prefix"
18419
18420 if test "X$x" = "X$element"; then
18421 haveit=yes
18422 break
18423 fi
18424 done
18425 if test -z "$haveit"; then
18426 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18427 fi
18428 done
18429
18430
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433
18434 _ACEOF
18435 if ac_fn_objcxx_try_compile "$LINENO"; then :
18436 cy_good=1
18437 else
18438 cy_good=0
18439 fi
18440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441
18442 OBJCXXFLAGS=$cy_save
18443 if test "x$cy_good" = x1; then :
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445 $as_echo "yes" >&6; }
18446
18447 for element in -Wno-overloaded-virtual; do
18448 haveit=
18449 for x in $OBJCXXFLAGS; do
18450
18451 acl_save_prefix="$prefix"
18452 prefix="$acl_final_prefix"
18453 acl_save_exec_prefix="$exec_prefix"
18454 exec_prefix="$acl_final_exec_prefix"
18455 eval x=\"$x\"
18456 exec_prefix="$acl_save_exec_prefix"
18457 prefix="$acl_save_prefix"
18458
18459 if test "X$x" = "X$element"; then
18460 haveit=yes
18461 break
18462 fi
18463 done
18464 if test -z "$haveit"; then
18465 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18466 fi
18467 done
18468
18469
18470 else
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18472 $as_echo "no" >&6; }
18473 fi
18474
18475 ac_ext=cpp
18476 ac_cpp='$CXXCPP $CPPFLAGS'
18477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18480
18481
18482
18483
18484
18485 ac_ext=c
18486 ac_cpp='$CPP $CPPFLAGS'
18487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18492 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18493
18494 cy_save=$CFLAGS
18495
18496 for element in -Wno-parentheses; do
18497 haveit=
18498 for x in $CFLAGS; do
18499
18500 acl_save_prefix="$prefix"
18501 prefix="$acl_final_prefix"
18502 acl_save_exec_prefix="$exec_prefix"
18503 exec_prefix="$acl_final_exec_prefix"
18504 eval x=\"$x\"
18505 exec_prefix="$acl_save_exec_prefix"
18506 prefix="$acl_save_prefix"
18507
18508 if test "X$x" = "X$element"; then
18509 haveit=yes
18510 break
18511 fi
18512 done
18513 if test -z "$haveit"; then
18514 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18515 fi
18516 done
18517
18518
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18521
18522 _ACEOF
18523 if ac_fn_c_try_compile "$LINENO"; then :
18524 cy_good=1
18525 else
18526 cy_good=0
18527 fi
18528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529
18530 CFLAGS=$cy_save
18531 if test "x$cy_good" = x1; then :
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533 $as_echo "yes" >&6; }
18534
18535 for element in -Wno-parentheses; do
18536 haveit=
18537 for x in $CFLAGS; do
18538
18539 acl_save_prefix="$prefix"
18540 prefix="$acl_final_prefix"
18541 acl_save_exec_prefix="$exec_prefix"
18542 exec_prefix="$acl_final_exec_prefix"
18543 eval x=\"$x\"
18544 exec_prefix="$acl_save_exec_prefix"
18545 prefix="$acl_save_prefix"
18546
18547 if test "X$x" = "X$element"; then
18548 haveit=yes
18549 break
18550 fi
18551 done
18552 if test -z "$haveit"; then
18553 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18554 fi
18555 done
18556
18557
18558 else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561 fi
18562
18563 ac_ext=cpp
18564 ac_cpp='$CXXCPP $CPPFLAGS'
18565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18568
18569
18570
18571 ac_ext=cpp
18572 ac_cpp='$CXXCPP $CPPFLAGS'
18573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18576
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18578 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18579
18580 cy_save=$CXXFLAGS
18581
18582 for element in -Wno-parentheses; do
18583 haveit=
18584 for x in $CXXFLAGS; do
18585
18586 acl_save_prefix="$prefix"
18587 prefix="$acl_final_prefix"
18588 acl_save_exec_prefix="$exec_prefix"
18589 exec_prefix="$acl_final_exec_prefix"
18590 eval x=\"$x\"
18591 exec_prefix="$acl_save_exec_prefix"
18592 prefix="$acl_save_prefix"
18593
18594 if test "X$x" = "X$element"; then
18595 haveit=yes
18596 break
18597 fi
18598 done
18599 if test -z "$haveit"; then
18600 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18601 fi
18602 done
18603
18604
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h. */
18607
18608 _ACEOF
18609 if ac_fn_cxx_try_compile "$LINENO"; then :
18610 cy_good=1
18611 else
18612 cy_good=0
18613 fi
18614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615
18616 CXXFLAGS=$cy_save
18617 if test "x$cy_good" = x1; then :
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18620
18621 for element in -Wno-parentheses; do
18622 haveit=
18623 for x in $CXXFLAGS; do
18624
18625 acl_save_prefix="$prefix"
18626 prefix="$acl_final_prefix"
18627 acl_save_exec_prefix="$exec_prefix"
18628 exec_prefix="$acl_final_exec_prefix"
18629 eval x=\"$x\"
18630 exec_prefix="$acl_save_exec_prefix"
18631 prefix="$acl_save_prefix"
18632
18633 if test "X$x" = "X$element"; then
18634 haveit=yes
18635 break
18636 fi
18637 done
18638 if test -z "$haveit"; then
18639 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18640 fi
18641 done
18642
18643
18644 else
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648
18649 ac_ext=cpp
18650 ac_cpp='$CXXCPP $CPPFLAGS'
18651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18654
18655
18656
18657 ac_ext=mm
18658 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18659 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18662
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18664 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18665
18666 cy_save=$OBJCXXFLAGS
18667
18668 for element in -Wno-parentheses; do
18669 haveit=
18670 for x in $OBJCXXFLAGS; do
18671
18672 acl_save_prefix="$prefix"
18673 prefix="$acl_final_prefix"
18674 acl_save_exec_prefix="$exec_prefix"
18675 exec_prefix="$acl_final_exec_prefix"
18676 eval x=\"$x\"
18677 exec_prefix="$acl_save_exec_prefix"
18678 prefix="$acl_save_prefix"
18679
18680 if test "X$x" = "X$element"; then
18681 haveit=yes
18682 break
18683 fi
18684 done
18685 if test -z "$haveit"; then
18686 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18687 fi
18688 done
18689
18690
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693
18694 _ACEOF
18695 if ac_fn_objcxx_try_compile "$LINENO"; then :
18696 cy_good=1
18697 else
18698 cy_good=0
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701
18702 OBJCXXFLAGS=$cy_save
18703 if test "x$cy_good" = x1; then :
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705 $as_echo "yes" >&6; }
18706
18707 for element in -Wno-parentheses; do
18708 haveit=
18709 for x in $OBJCXXFLAGS; do
18710
18711 acl_save_prefix="$prefix"
18712 prefix="$acl_final_prefix"
18713 acl_save_exec_prefix="$exec_prefix"
18714 exec_prefix="$acl_final_exec_prefix"
18715 eval x=\"$x\"
18716 exec_prefix="$acl_save_exec_prefix"
18717 prefix="$acl_save_prefix"
18718
18719 if test "X$x" = "X$element"; then
18720 haveit=yes
18721 break
18722 fi
18723 done
18724 if test -z "$haveit"; then
18725 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18726 fi
18727 done
18728
18729
18730 else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18733 fi
18734
18735 ac_ext=cpp
18736 ac_cpp='$CXXCPP $CPPFLAGS'
18737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18740
18741
18742
18743
18744
18745 ac_ext=c
18746 ac_cpp='$CPP $CPPFLAGS'
18747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18752 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18753
18754 cy_save=$CFLAGS
18755
18756 for element in -Wno-unneeded-internal-declaration; do
18757 haveit=
18758 for x in $CFLAGS; do
18759
18760 acl_save_prefix="$prefix"
18761 prefix="$acl_final_prefix"
18762 acl_save_exec_prefix="$exec_prefix"
18763 exec_prefix="$acl_final_exec_prefix"
18764 eval x=\"$x\"
18765 exec_prefix="$acl_save_exec_prefix"
18766 prefix="$acl_save_prefix"
18767
18768 if test "X$x" = "X$element"; then
18769 haveit=yes
18770 break
18771 fi
18772 done
18773 if test -z "$haveit"; then
18774 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18775 fi
18776 done
18777
18778
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18781
18782 _ACEOF
18783 if ac_fn_c_try_compile "$LINENO"; then :
18784 cy_good=1
18785 else
18786 cy_good=0
18787 fi
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18789
18790 CFLAGS=$cy_save
18791 if test "x$cy_good" = x1; then :
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18793 $as_echo "yes" >&6; }
18794
18795 for element in -Wno-unneeded-internal-declaration; do
18796 haveit=
18797 for x in $CFLAGS; do
18798
18799 acl_save_prefix="$prefix"
18800 prefix="$acl_final_prefix"
18801 acl_save_exec_prefix="$exec_prefix"
18802 exec_prefix="$acl_final_exec_prefix"
18803 eval x=\"$x\"
18804 exec_prefix="$acl_save_exec_prefix"
18805 prefix="$acl_save_prefix"
18806
18807 if test "X$x" = "X$element"; then
18808 haveit=yes
18809 break
18810 fi
18811 done
18812 if test -z "$haveit"; then
18813 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18814 fi
18815 done
18816
18817
18818 else
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18821 fi
18822
18823 ac_ext=cpp
18824 ac_cpp='$CXXCPP $CPPFLAGS'
18825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18828
18829
18830
18831 ac_ext=cpp
18832 ac_cpp='$CXXCPP $CPPFLAGS'
18833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18836
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18838 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
18839
18840 cy_save=$CXXFLAGS
18841
18842 for element in -Wno-unneeded-internal-declaration; do
18843 haveit=
18844 for x in $CXXFLAGS; do
18845
18846 acl_save_prefix="$prefix"
18847 prefix="$acl_final_prefix"
18848 acl_save_exec_prefix="$exec_prefix"
18849 exec_prefix="$acl_final_exec_prefix"
18850 eval x=\"$x\"
18851 exec_prefix="$acl_save_exec_prefix"
18852 prefix="$acl_save_prefix"
18853
18854 if test "X$x" = "X$element"; then
18855 haveit=yes
18856 break
18857 fi
18858 done
18859 if test -z "$haveit"; then
18860 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18861 fi
18862 done
18863
18864
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18867
18868 _ACEOF
18869 if ac_fn_cxx_try_compile "$LINENO"; then :
18870 cy_good=1
18871 else
18872 cy_good=0
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875
18876 CXXFLAGS=$cy_save
18877 if test "x$cy_good" = x1; then :
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18879 $as_echo "yes" >&6; }
18880
18881 for element in -Wno-unneeded-internal-declaration; do
18882 haveit=
18883 for x in $CXXFLAGS; do
18884
18885 acl_save_prefix="$prefix"
18886 prefix="$acl_final_prefix"
18887 acl_save_exec_prefix="$exec_prefix"
18888 exec_prefix="$acl_final_exec_prefix"
18889 eval x=\"$x\"
18890 exec_prefix="$acl_save_exec_prefix"
18891 prefix="$acl_save_prefix"
18892
18893 if test "X$x" = "X$element"; then
18894 haveit=yes
18895 break
18896 fi
18897 done
18898 if test -z "$haveit"; then
18899 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18900 fi
18901 done
18902
18903
18904 else
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906 $as_echo "no" >&6; }
18907 fi
18908
18909 ac_ext=cpp
18910 ac_cpp='$CXXCPP $CPPFLAGS'
18911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18914
18915
18916
18917 ac_ext=mm
18918 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18919 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18922
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18924 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
18925
18926 cy_save=$OBJCXXFLAGS
18927
18928 for element in -Wno-unneeded-internal-declaration; do
18929 haveit=
18930 for x in $OBJCXXFLAGS; do
18931
18932 acl_save_prefix="$prefix"
18933 prefix="$acl_final_prefix"
18934 acl_save_exec_prefix="$exec_prefix"
18935 exec_prefix="$acl_final_exec_prefix"
18936 eval x=\"$x\"
18937 exec_prefix="$acl_save_exec_prefix"
18938 prefix="$acl_save_prefix"
18939
18940 if test "X$x" = "X$element"; then
18941 haveit=yes
18942 break
18943 fi
18944 done
18945 if test -z "$haveit"; then
18946 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18947 fi
18948 done
18949
18950
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953
18954 _ACEOF
18955 if ac_fn_objcxx_try_compile "$LINENO"; then :
18956 cy_good=1
18957 else
18958 cy_good=0
18959 fi
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961
18962 OBJCXXFLAGS=$cy_save
18963 if test "x$cy_good" = x1; then :
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965 $as_echo "yes" >&6; }
18966
18967 for element in -Wno-unneeded-internal-declaration; do
18968 haveit=
18969 for x in $OBJCXXFLAGS; do
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X$element"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
18985 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18986 fi
18987 done
18988
18989
18990 else
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18992 $as_echo "no" >&6; }
18993 fi
18994
18995 ac_ext=cpp
18996 ac_cpp='$CXXCPP $CPPFLAGS'
18997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19000
19001
19002
19003
19004
19005
19006
19007 ac_ext=c
19008 ac_cpp='$CPP $CPPFLAGS'
19009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19012
19013 ax_pthread_ok=no
19014
19015 # We used to check for pthread.h first, but this fails if pthread.h
19016 # requires special compiler flags (e.g. on Tru64 or Sequent).
19017 # It gets checked for in the link test anyway.
19018
19019 # First of all, check if the user has set any of the PTHREAD_LIBS,
19020 # etcetera environment variables, and if threads linking works using
19021 # them:
19022 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19023 save_CFLAGS="$CFLAGS"
19024 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19025 save_LIBS="$LIBS"
19026 LIBS="$PTHREAD_LIBS $LIBS"
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19028 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* end confdefs.h. */
19031
19032 /* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19035 #ifdef __cplusplus
19036 extern "C"
19037 #endif
19038 char pthread_join ();
19039 int
19040 main ()
19041 {
19042 return pthread_join ();
19043 ;
19044 return 0;
19045 }
19046 _ACEOF
19047 if ac_fn_c_try_link "$LINENO"; then :
19048 ax_pthread_ok=yes
19049 fi
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19053 $as_echo "$ax_pthread_ok" >&6; }
19054 if test x"$ax_pthread_ok" = xno; then
19055 PTHREAD_LIBS=""
19056 PTHREAD_CFLAGS=""
19057 fi
19058 LIBS="$save_LIBS"
19059 CFLAGS="$save_CFLAGS"
19060 fi
19061
19062 # We must check for the threads library under a number of different
19063 # names; the ordering is very important because some systems
19064 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19065 # libraries is broken (non-POSIX).
19066
19067 # Create a list of thread flags to try. Items starting with a "-" are
19068 # C compiler flags, and other items are library names, except for "none"
19069 # which indicates that we try without any flags at all, and "pthread-config"
19070 # which is a program returning the flags for the Pth emulation library.
19071
19072 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19073
19074 # The ordering *is* (sometimes) important. Some notes on the
19075 # individual items follow:
19076
19077 # pthreads: AIX (must check this before -lpthread)
19078 # none: in case threads are in libc; should be tried before -Kthread and
19079 # other compiler flags to prevent continual compiler warnings
19080 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19081 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19082 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19083 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19084 # -pthreads: Solaris/gcc
19085 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19086 # doesn't hurt to check since this sometimes defines pthreads and
19087 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19088 # is present but should not be used directly)
19089 # -mthreads: Mingw32/gcc, Lynx/gcc
19090 # pthread: Linux, etcetera
19091 # --thread-safe: KAI C++
19092 # pthread-config: use pthread-config program (for GNU Pth library)
19093
19094 case $host_os in
19095
19096 hpux*)
19097
19098 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19099 # multi-threading and also sets -lpthread."
19100
19101 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19102 ;;
19103
19104 openedition*)
19105
19106 # IBM z/OS requires a feature-test macro to be defined in order to
19107 # enable POSIX threads at all, so give the user a hint if this is
19108 # not set. (We don't define these ourselves, as they can affect
19109 # other portions of the system API in unpredictable ways.)
19110
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113
19114 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19115 AX_PTHREAD_ZOS_MISSING
19116 # endif
19117
19118 _ACEOF
19119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19120 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19122 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19123 fi
19124 rm -f conftest*
19125
19126 ;;
19127
19128 solaris*)
19129
19130 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19131 # check that first. On some older versions, libc contains stubbed
19132 # (non-functional) versions of the pthreads routines, so link-based
19133 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19134 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19135 # a function called by this macro, so we could check for that, but
19136 # who knows whether they'll stub that too in a future libc.) So
19137 # we'll look for -pthreads and -lpthread shortly thereafter.
19138
19139 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19140 ;;
19141 esac
19142
19143 # Older versions of Clang only give a warning instead of an error for an
19144 # unrecognized option, unless we specify -Werror. (We throw in some extra
19145 # Clang warning flags for good measure.)
19146
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19148 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19149 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19152 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19153 save_CFLAGS="$CFLAGS"
19154 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19155 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19157 /* end confdefs.h. */
19158 int foo(void);
19159 int
19160 main ()
19161 {
19162 foo()
19163 ;
19164 return 0;
19165 }
19166 _ACEOF
19167 if ac_fn_c_try_compile "$LINENO"; then :
19168 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19169 else
19170 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19171 fi
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 CFLAGS="$save_CFLAGS"
19174
19175 fi
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19177 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19178 ax_pthread_extra_flags=
19179 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19180 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19181 fi
19182
19183 if test x"$ax_pthread_ok" = xno; then
19184 for flag in $ax_pthread_flags; do
19185
19186 case $flag in
19187 none)
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19189 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19190 ;;
19191
19192 -mt,pthread)
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19194 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19195 PTHREAD_CFLAGS="-mt"
19196 PTHREAD_LIBS="-lpthread"
19197 ;;
19198
19199 -*)
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19201 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19202 PTHREAD_CFLAGS="$flag"
19203 ;;
19204
19205 pthread-config)
19206 # Extract the first word of "pthread-config", so it can be a program name with args.
19207 set dummy pthread-config; ac_word=$2
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19209 $as_echo_n "checking for $ac_word... " >&6; }
19210 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19211 $as_echo_n "(cached) " >&6
19212 else
19213 if test -n "$ax_pthread_config"; then
19214 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19215 else
19216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217 for as_dir in $PATH
19218 do
19219 IFS=$as_save_IFS
19220 test -z "$as_dir" && as_dir=.
19221 for ac_exec_ext in '' $ac_executable_extensions; do
19222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223 ac_cv_prog_ax_pthread_config="yes"
19224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19225 break 2
19226 fi
19227 done
19228 done
19229 IFS=$as_save_IFS
19230
19231 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19232 fi
19233 fi
19234 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19235 if test -n "$ax_pthread_config"; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19237 $as_echo "$ax_pthread_config" >&6; }
19238 else
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240 $as_echo "no" >&6; }
19241 fi
19242
19243
19244 if test x"$ax_pthread_config" = xno; then continue; fi
19245 PTHREAD_CFLAGS="`pthread-config --cflags`"
19246 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19247 ;;
19248
19249 *)
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19251 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19252 PTHREAD_LIBS="-l$flag"
19253 ;;
19254 esac
19255
19256 save_LIBS="$LIBS"
19257 save_CFLAGS="$CFLAGS"
19258 LIBS="$PTHREAD_LIBS $LIBS"
19259 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19260
19261 # Check for various functions. We must include pthread.h,
19262 # since some functions may be macros. (On the Sequent, we
19263 # need a special flag -Kthread to make this header compile.)
19264 # We check for pthread_join because it is in -lpthread on IRIX
19265 # while pthread_create is in libc. We check for pthread_attr_init
19266 # due to DEC craziness with -lpthreads. We check for
19267 # pthread_cleanup_push because it is one of the few pthread
19268 # functions on Solaris that doesn't have a non-functional libc stub.
19269 # We try pthread_create on general principles.
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19272 #include <pthread.h>
19273 static void routine(void *a) { a = 0; }
19274 static void *start_routine(void *a) { return a; }
19275 int
19276 main ()
19277 {
19278 pthread_t th; pthread_attr_t attr;
19279 pthread_create(&th, 0, start_routine, 0);
19280 pthread_join(th, 0);
19281 pthread_attr_init(&attr);
19282 pthread_cleanup_push(routine, 0);
19283 pthread_cleanup_pop(0) /* ; */
19284 ;
19285 return 0;
19286 }
19287 _ACEOF
19288 if ac_fn_c_try_link "$LINENO"; then :
19289 ax_pthread_ok=yes
19290 fi
19291 rm -f core conftest.err conftest.$ac_objext \
19292 conftest$ac_exeext conftest.$ac_ext
19293
19294 LIBS="$save_LIBS"
19295 CFLAGS="$save_CFLAGS"
19296
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19298 $as_echo "$ax_pthread_ok" >&6; }
19299 if test "x$ax_pthread_ok" = xyes; then
19300 break;
19301 fi
19302
19303 PTHREAD_LIBS=""
19304 PTHREAD_CFLAGS=""
19305 done
19306 fi
19307
19308 # Various other checks:
19309 if test "x$ax_pthread_ok" = xyes; then
19310 save_LIBS="$LIBS"
19311 LIBS="$PTHREAD_LIBS $LIBS"
19312 save_CFLAGS="$CFLAGS"
19313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19314
19315 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19317 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19318 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19319 $as_echo_n "(cached) " >&6
19320 else
19321 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19322 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19325 #include <pthread.h>
19326 int
19327 main ()
19328 {
19329 int attr = $attr; return attr /* ; */
19330 ;
19331 return 0;
19332 }
19333 _ACEOF
19334 if ac_fn_c_try_link "$LINENO"; then :
19335 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19336 fi
19337 rm -f core conftest.err conftest.$ac_objext \
19338 conftest$ac_exeext conftest.$ac_ext
19339 done
19340
19341 fi
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19343 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19344 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19345 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19346
19347 cat >>confdefs.h <<_ACEOF
19348 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19349 _ACEOF
19350
19351 fi
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19354 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19355 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19356 $as_echo_n "(cached) " >&6
19357 else
19358 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19359 ax_pthread_special_flags_added=no
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19362
19363 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19364 AX_PTHREAD_NEED_SPECIAL_FLAG
19365 # endif
19366
19367 _ACEOF
19368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19369 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19370 case $host_os in
19371 aix* | freebsd*)
19372 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19373 ;;
19374 darwin* | hpux* | osf* | solaris*)
19375 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19376 ;;
19377 esac
19378
19379 fi
19380 rm -f conftest*
19381
19382
19383 fi
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19385 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19386 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19387 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19388 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19389 ax_pthread_special_flags_added=yes
19390 fi
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19393 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19394 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19395 $as_echo_n "(cached) " >&6
19396 else
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19399 #include <pthread.h>
19400 int
19401 main ()
19402 {
19403 int i = PTHREAD_PRIO_INHERIT;
19404 ;
19405 return 0;
19406 }
19407 _ACEOF
19408 if ac_fn_c_try_link "$LINENO"; then :
19409 ax_cv_PTHREAD_PRIO_INHERIT=yes
19410 else
19411 ax_cv_PTHREAD_PRIO_INHERIT=no
19412 fi
19413 rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415
19416 fi
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19418 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19419 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19420
19421 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19422
19423 fi
19424
19425 LIBS="$save_LIBS"
19426 CFLAGS="$save_CFLAGS"
19427
19428 # More AIX lossage: compile with *_r variant
19429 if test "x$GCC" != xyes; then
19430 case $host_os in
19431 aix*)
19432 case "x/$CC" in #(
19433 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19434 #handle absolute path differently from PATH based program lookup
19435 case "x$CC" in #(
19436 x/*) :
19437 if as_fn_executable_p ${CC}_r; then :
19438 PTHREAD_CC="${CC}_r"
19439 fi ;; #(
19440 *) :
19441 for ac_prog in ${CC}_r
19442 do
19443 # Extract the first word of "$ac_prog", so it can be a program name with args.
19444 set dummy $ac_prog; ac_word=$2
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19446 $as_echo_n "checking for $ac_word... " >&6; }
19447 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19448 $as_echo_n "(cached) " >&6
19449 else
19450 if test -n "$PTHREAD_CC"; then
19451 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19452 else
19453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454 for as_dir in $PATH
19455 do
19456 IFS=$as_save_IFS
19457 test -z "$as_dir" && as_dir=.
19458 for ac_exec_ext in '' $ac_executable_extensions; do
19459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19460 ac_cv_prog_PTHREAD_CC="$ac_prog"
19461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19462 break 2
19463 fi
19464 done
19465 done
19466 IFS=$as_save_IFS
19467
19468 fi
19469 fi
19470 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19471 if test -n "$PTHREAD_CC"; then
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19473 $as_echo "$PTHREAD_CC" >&6; }
19474 else
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476 $as_echo "no" >&6; }
19477 fi
19478
19479
19480 test -n "$PTHREAD_CC" && break
19481 done
19482 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19483 ;;
19484 esac ;; #(
19485 *) :
19486 ;;
19487 esac
19488 ;;
19489 esac
19490 fi
19491 fi
19492
19493 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19494
19495
19496
19497
19498
19499 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19500 if test x"$ax_pthread_ok" = xyes; then
19501
19502 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19503
19504 :
19505 else
19506 ax_pthread_ok=no
19507
19508 fi
19509 ac_ext=cpp
19510 ac_cpp='$CXXCPP $CPPFLAGS'
19511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19514
19515
19516
19517
19518
19519 for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19521 $as_echo_n "checking for -arch $cy_arch... " >&6; }
19522
19523 cy_save=$CXXFLAGS
19524
19525 for element in "-arch $cy_arch"; do
19526 haveit=
19527 for x in $CXXFLAGS; do
19528
19529 acl_save_prefix="$prefix"
19530 prefix="$acl_final_prefix"
19531 acl_save_exec_prefix="$exec_prefix"
19532 exec_prefix="$acl_final_exec_prefix"
19533 eval x=\"$x\"
19534 exec_prefix="$acl_save_exec_prefix"
19535 prefix="$acl_save_prefix"
19536
19537 if test "X$x" = "X$element"; then
19538 haveit=yes
19539 break
19540 fi
19541 done
19542 if test -z "$haveit"; then
19543 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19544 fi
19545 done
19546
19547
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550
19551 int
19552 main ()
19553 {
19554
19555 ;
19556 return 0;
19557 }
19558 _ACEOF
19559 if ac_fn_cxx_try_link "$LINENO"; then :
19560 cy_good=1
19561 else
19562 cy_good=0
19563 fi
19564 rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566
19567 CXXFLAGS=$cy_save
19568 if test "x$cy_good" = x1; then :
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19570 $as_echo "yes" >&6; }
19571
19572 for element in "-arch $cy_arch"; do
19573 haveit=
19574 for x in $CY_ARCH; do
19575
19576 acl_save_prefix="$prefix"
19577 prefix="$acl_final_prefix"
19578 acl_save_exec_prefix="$exec_prefix"
19579 exec_prefix="$acl_final_exec_prefix"
19580 eval x=\"$x\"
19581 exec_prefix="$acl_save_exec_prefix"
19582 prefix="$acl_save_prefix"
19583
19584 if test "X$x" = "X$element"; then
19585 haveit=yes
19586 break
19587 fi
19588 done
19589 if test -z "$haveit"; then
19590 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19591 fi
19592 done
19593
19594
19595 else
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19597 $as_echo "no" >&6; }
19598 fi
19599
19600 done
19601
19602
19603
19604
19605
19606
19607 # Check whether --enable-javascript was given.
19608 if test "${enable_javascript+set}" = set; then :
19609 enableval=$enable_javascript;
19610 case $enableval in #(
19611 yes) :
19612
19613
19614
19615
19616 cy_save=$LIBS
19617 LIBS=
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19619 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19620 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19621 $as_echo_n "(cached) " >&6
19622 else
19623 ac_func_search_save_LIBS=$LIBS
19624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625 /* end confdefs.h. */
19626
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char JSEvaluateScript ();
19634 int
19635 main ()
19636 {
19637 return JSEvaluateScript ();
19638 ;
19639 return 0;
19640 }
19641 _ACEOF
19642 for ac_lib in '' JavaScriptCore; do
19643 if test -z "$ac_lib"; then
19644 ac_res="none required"
19645 else
19646 ac_res=-l$ac_lib
19647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19648 fi
19649 if ac_fn_cxx_try_link "$LINENO"; then :
19650 ac_cv_search_JSEvaluateScript=$ac_res
19651 fi
19652 rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext
19654 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19655 break
19656 fi
19657 done
19658 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19659
19660 else
19661 ac_cv_search_JSEvaluateScript=no
19662 fi
19663 rm conftest.$ac_ext
19664 LIBS=$ac_func_search_save_LIBS
19665 fi
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19667 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19668 ac_res=$ac_cv_search_JSEvaluateScript
19669 if test "$ac_res" != no; then :
19670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19671
19672 CY_EXECUTE=1
19673
19674
19675 else
19676
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19678 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19679 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19680 $as_echo_n "(cached) " >&6
19681 else
19682
19683 ac_check_framework_save_LIBS=$LIBS
19684 LIBS="-framework JavaScriptCore $LIBS"
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686 /* end confdefs.h. */
19687
19688 #include <JavaScriptCore/JSBase.h>
19689
19690 int
19691 main ()
19692 {
19693
19694 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19695
19696 ;
19697 return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_cxx_try_link "$LINENO"; then :
19701
19702 ac_cv_framework_JavaScriptCore=yes
19703
19704 else
19705 ac_cv_framework_JavaScriptCore=no
19706 fi
19707 rm -f core conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_framework_save_LIBS
19710
19711 fi
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19713 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19714 if test $ac_cv_framework_JavaScriptCore = yes; then :
19715
19716
19717 for element in "-framework JavaScriptCore"; do
19718 haveit=
19719 for x in $LIBS; do
19720
19721 acl_save_prefix="$prefix"
19722 prefix="$acl_final_prefix"
19723 acl_save_exec_prefix="$exec_prefix"
19724 exec_prefix="$acl_final_exec_prefix"
19725 eval x=\"$x\"
19726 exec_prefix="$acl_save_exec_prefix"
19727 prefix="$acl_save_prefix"
19728
19729 if test "X$x" = "X$element"; then
19730 haveit=yes
19731 break
19732 fi
19733 done
19734 if test -z "$haveit"; then
19735 LIBS="${LIBS}${LIBS:+ }$element"
19736 fi
19737 done
19738
19739
19740 CY_EXECUTE=1
19741
19742
19743
19744 else
19745
19746 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19747
19748 pkg_failed=no
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19750 $as_echo_n "checking for WEBKIT... " >&6; }
19751
19752 if test -n "$WEBKIT_CFLAGS"; then
19753 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19754 elif test -n "$PKG_CONFIG"; then
19755 if test -n "$PKG_CONFIG" && \
19756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19757 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19758 ac_status=$?
19759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19760 test $ac_status = 0; }; then
19761 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
19762 test "x$?" != "x0" && pkg_failed=yes
19763 else
19764 pkg_failed=yes
19765 fi
19766 else
19767 pkg_failed=untried
19768 fi
19769 if test -n "$WEBKIT_LIBS"; then
19770 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19771 elif test -n "$PKG_CONFIG"; then
19772 if test -n "$PKG_CONFIG" && \
19773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19774 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19775 ac_status=$?
19776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19777 test $ac_status = 0; }; then
19778 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
19779 test "x$?" != "x0" && pkg_failed=yes
19780 else
19781 pkg_failed=yes
19782 fi
19783 else
19784 pkg_failed=untried
19785 fi
19786
19787
19788
19789 if test $pkg_failed = yes; then
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791 $as_echo "no" >&6; }
19792
19793 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19794 _pkg_short_errors_supported=yes
19795 else
19796 _pkg_short_errors_supported=no
19797 fi
19798 if test $_pkg_short_errors_supported = yes; then
19799 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19800 else
19801 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
19802 fi
19803 # Put the nasty error message in config.log where it belongs
19804 echo "$WEBKIT_PKG_ERRORS" >&5
19805
19806 :
19807 elif test $pkg_failed = untried; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809 $as_echo "no" >&6; }
19810 :
19811 else
19812 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19813 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815 $as_echo "yes" >&6; }
19816
19817 CY_EXECUTE=1
19818
19819
19820 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19821 haveit=
19822 for x in $CPPFLAGS; do
19823
19824 acl_save_prefix="$prefix"
19825 prefix="$acl_final_prefix"
19826 acl_save_exec_prefix="$exec_prefix"
19827 exec_prefix="$acl_final_exec_prefix"
19828 eval x=\"$x\"
19829 exec_prefix="$acl_save_exec_prefix"
19830 prefix="$acl_save_prefix"
19831
19832 if test "X$x" = "X$element"; then
19833 haveit=yes
19834 break
19835 fi
19836 done
19837 if test -z "$haveit"; then
19838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19839 fi
19840 done
19841
19842
19843 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19844 haveit=
19845 for x in $LIBS; do
19846
19847 acl_save_prefix="$prefix"
19848 prefix="$acl_final_prefix"
19849 acl_save_exec_prefix="$exec_prefix"
19850 exec_prefix="$acl_final_exec_prefix"
19851 eval x=\"$x\"
19852 exec_prefix="$acl_save_exec_prefix"
19853 prefix="$acl_save_prefix"
19854
19855 if test "X$x" = "X$element"; then
19856 haveit=yes
19857 break
19858 fi
19859 done
19860 if test -z "$haveit"; then
19861 LIBS="${LIBS}${LIBS:+ }$element"
19862 fi
19863 done
19864
19865
19866 fi; if test "x$CY_EXECUTE" = x1; then break; fi
19867 done
19868
19869 fi
19870 fi
19871
19872 LTJAVASCRIPTCORE=$LIBS
19873 LIBS=$cy_save
19874
19875
19876 ;; #(
19877 no) :
19878
19879 CY_EXECUTE=0
19880 ;; #(
19881 JavaScriptCore) :
19882
19883
19884
19885 cy_save=$LIBS
19886 LIBS=
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19888 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19889 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19890 $as_echo_n "(cached) " >&6
19891 else
19892 ac_func_search_save_LIBS=$LIBS
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19895
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899 #ifdef __cplusplus
19900 extern "C"
19901 #endif
19902 char JSEvaluateScript ();
19903 int
19904 main ()
19905 {
19906 return JSEvaluateScript ();
19907 ;
19908 return 0;
19909 }
19910 _ACEOF
19911 for ac_lib in '' JavaScriptCore; do
19912 if test -z "$ac_lib"; then
19913 ac_res="none required"
19914 else
19915 ac_res=-l$ac_lib
19916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19917 fi
19918 if ac_fn_cxx_try_link "$LINENO"; then :
19919 ac_cv_search_JSEvaluateScript=$ac_res
19920 fi
19921 rm -f core conftest.err conftest.$ac_objext \
19922 conftest$ac_exeext
19923 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19924 break
19925 fi
19926 done
19927 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19928
19929 else
19930 ac_cv_search_JSEvaluateScript=no
19931 fi
19932 rm conftest.$ac_ext
19933 LIBS=$ac_func_search_save_LIBS
19934 fi
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19936 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19937 ac_res=$ac_cv_search_JSEvaluateScript
19938 if test "$ac_res" != no; then :
19939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19940
19941 CY_EXECUTE=1
19942
19943
19944 else
19945
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19947 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
19948 if ${ac_cv_framework_JavaScriptCore+:} false; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19951
19952 ac_check_framework_save_LIBS=$LIBS
19953 LIBS="-framework JavaScriptCore $LIBS"
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19956
19957 #include <JavaScriptCore/JSBase.h>
19958
19959 int
19960 main ()
19961 {
19962
19963 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19964
19965 ;
19966 return 0;
19967 }
19968 _ACEOF
19969 if ac_fn_cxx_try_link "$LINENO"; then :
19970
19971 ac_cv_framework_JavaScriptCore=yes
19972
19973 else
19974 ac_cv_framework_JavaScriptCore=no
19975 fi
19976 rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
19978 LIBS=$ac_check_framework_save_LIBS
19979
19980 fi
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19982 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19983 if test $ac_cv_framework_JavaScriptCore = yes; then :
19984
19985
19986 for element in "-framework JavaScriptCore"; do
19987 haveit=
19988 for x in $LIBS; do
19989
19990 acl_save_prefix="$prefix"
19991 prefix="$acl_final_prefix"
19992 acl_save_exec_prefix="$exec_prefix"
19993 exec_prefix="$acl_final_exec_prefix"
19994 eval x=\"$x\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19997
19998 if test "X$x" = "X$element"; then
19999 haveit=yes
20000 break
20001 fi
20002 done
20003 if test -z "$haveit"; then
20004 LIBS="${LIBS}${LIBS:+ }$element"
20005 fi
20006 done
20007
20008
20009 CY_EXECUTE=1
20010
20011
20012
20013 else
20014
20015 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20016
20017 pkg_failed=no
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20019 $as_echo_n "checking for WEBKIT... " >&6; }
20020
20021 if test -n "$WEBKIT_CFLAGS"; then
20022 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20023 elif test -n "$PKG_CONFIG"; then
20024 if test -n "$PKG_CONFIG" && \
20025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20026 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029 test $ac_status = 0; }; then
20030 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20031 test "x$?" != "x0" && pkg_failed=yes
20032 else
20033 pkg_failed=yes
20034 fi
20035 else
20036 pkg_failed=untried
20037 fi
20038 if test -n "$WEBKIT_LIBS"; then
20039 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20040 elif test -n "$PKG_CONFIG"; then
20041 if test -n "$PKG_CONFIG" && \
20042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20043 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20044 ac_status=$?
20045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20046 test $ac_status = 0; }; then
20047 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20048 test "x$?" != "x0" && pkg_failed=yes
20049 else
20050 pkg_failed=yes
20051 fi
20052 else
20053 pkg_failed=untried
20054 fi
20055
20056
20057
20058 if test $pkg_failed = yes; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20060 $as_echo "no" >&6; }
20061
20062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20063 _pkg_short_errors_supported=yes
20064 else
20065 _pkg_short_errors_supported=no
20066 fi
20067 if test $_pkg_short_errors_supported = yes; then
20068 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20069 else
20070 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20071 fi
20072 # Put the nasty error message in config.log where it belongs
20073 echo "$WEBKIT_PKG_ERRORS" >&5
20074
20075 :
20076 elif test $pkg_failed = untried; then
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20079 :
20080 else
20081 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20082 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085
20086 CY_EXECUTE=1
20087
20088
20089 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20090 haveit=
20091 for x in $CPPFLAGS; do
20092
20093 acl_save_prefix="$prefix"
20094 prefix="$acl_final_prefix"
20095 acl_save_exec_prefix="$exec_prefix"
20096 exec_prefix="$acl_final_exec_prefix"
20097 eval x=\"$x\"
20098 exec_prefix="$acl_save_exec_prefix"
20099 prefix="$acl_save_prefix"
20100
20101 if test "X$x" = "X$element"; then
20102 haveit=yes
20103 break
20104 fi
20105 done
20106 if test -z "$haveit"; then
20107 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20108 fi
20109 done
20110
20111
20112 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20113 haveit=
20114 for x in $LIBS; do
20115
20116 acl_save_prefix="$prefix"
20117 prefix="$acl_final_prefix"
20118 acl_save_exec_prefix="$exec_prefix"
20119 exec_prefix="$acl_final_exec_prefix"
20120 eval x=\"$x\"
20121 exec_prefix="$acl_save_exec_prefix"
20122 prefix="$acl_save_prefix"
20123
20124 if test "X$x" = "X$element"; then
20125 haveit=yes
20126 break
20127 fi
20128 done
20129 if test -z "$haveit"; then
20130 LIBS="${LIBS}${LIBS:+ }$element"
20131 fi
20132 done
20133
20134
20135 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20136 done
20137
20138 fi
20139 fi
20140
20141 LTJAVASCRIPTCORE=$LIBS
20142 LIBS=$cy_save
20143
20144
20145 ;; #(
20146 *) :
20147 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20148 esac
20149
20150 else
20151
20152
20153
20154 cy_save=$LIBS
20155 LIBS=
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20157 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20158 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 ac_func_search_save_LIBS=$LIBS
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char JSEvaluateScript ();
20172 int
20173 main ()
20174 {
20175 return JSEvaluateScript ();
20176 ;
20177 return 0;
20178 }
20179 _ACEOF
20180 for ac_lib in '' JavaScriptCore; do
20181 if test -z "$ac_lib"; then
20182 ac_res="none required"
20183 else
20184 ac_res=-l$ac_lib
20185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20186 fi
20187 if ac_fn_cxx_try_link "$LINENO"; then :
20188 ac_cv_search_JSEvaluateScript=$ac_res
20189 fi
20190 rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext
20192 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20193 break
20194 fi
20195 done
20196 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20197
20198 else
20199 ac_cv_search_JSEvaluateScript=no
20200 fi
20201 rm conftest.$ac_ext
20202 LIBS=$ac_func_search_save_LIBS
20203 fi
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20205 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20206 ac_res=$ac_cv_search_JSEvaluateScript
20207 if test "$ac_res" != no; then :
20208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20209
20210 CY_EXECUTE=1
20211
20212
20213 else
20214
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20216 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20217 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20218 $as_echo_n "(cached) " >&6
20219 else
20220
20221 ac_check_framework_save_LIBS=$LIBS
20222 LIBS="-framework JavaScriptCore $LIBS"
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224 /* end confdefs.h. */
20225
20226 #include <JavaScriptCore/JSBase.h>
20227
20228 int
20229 main ()
20230 {
20231
20232 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20233
20234 ;
20235 return 0;
20236 }
20237 _ACEOF
20238 if ac_fn_cxx_try_link "$LINENO"; then :
20239
20240 ac_cv_framework_JavaScriptCore=yes
20241
20242 else
20243 ac_cv_framework_JavaScriptCore=no
20244 fi
20245 rm -f core conftest.err conftest.$ac_objext \
20246 conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_framework_save_LIBS
20248
20249 fi
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20251 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20252 if test $ac_cv_framework_JavaScriptCore = yes; then :
20253
20254
20255 for element in "-framework JavaScriptCore"; do
20256 haveit=
20257 for x in $LIBS; do
20258
20259 acl_save_prefix="$prefix"
20260 prefix="$acl_final_prefix"
20261 acl_save_exec_prefix="$exec_prefix"
20262 exec_prefix="$acl_final_exec_prefix"
20263 eval x=\"$x\"
20264 exec_prefix="$acl_save_exec_prefix"
20265 prefix="$acl_save_prefix"
20266
20267 if test "X$x" = "X$element"; then
20268 haveit=yes
20269 break
20270 fi
20271 done
20272 if test -z "$haveit"; then
20273 LIBS="${LIBS}${LIBS:+ }$element"
20274 fi
20275 done
20276
20277
20278 CY_EXECUTE=1
20279
20280
20281
20282 else
20283
20284 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20285
20286 pkg_failed=no
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20288 $as_echo_n "checking for WEBKIT... " >&6; }
20289
20290 if test -n "$WEBKIT_CFLAGS"; then
20291 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20292 elif test -n "$PKG_CONFIG"; then
20293 if test -n "$PKG_CONFIG" && \
20294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20295 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20296 ac_status=$?
20297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20298 test $ac_status = 0; }; then
20299 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20300 test "x$?" != "x0" && pkg_failed=yes
20301 else
20302 pkg_failed=yes
20303 fi
20304 else
20305 pkg_failed=untried
20306 fi
20307 if test -n "$WEBKIT_LIBS"; then
20308 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20309 elif test -n "$PKG_CONFIG"; then
20310 if test -n "$PKG_CONFIG" && \
20311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20312 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20313 ac_status=$?
20314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315 test $ac_status = 0; }; then
20316 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20317 test "x$?" != "x0" && pkg_failed=yes
20318 else
20319 pkg_failed=yes
20320 fi
20321 else
20322 pkg_failed=untried
20323 fi
20324
20325
20326
20327 if test $pkg_failed = yes; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329 $as_echo "no" >&6; }
20330
20331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20332 _pkg_short_errors_supported=yes
20333 else
20334 _pkg_short_errors_supported=no
20335 fi
20336 if test $_pkg_short_errors_supported = yes; then
20337 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20338 else
20339 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20340 fi
20341 # Put the nasty error message in config.log where it belongs
20342 echo "$WEBKIT_PKG_ERRORS" >&5
20343
20344 :
20345 elif test $pkg_failed = untried; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347 $as_echo "no" >&6; }
20348 :
20349 else
20350 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20351 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20353 $as_echo "yes" >&6; }
20354
20355 CY_EXECUTE=1
20356
20357
20358 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20359 haveit=
20360 for x in $CPPFLAGS; do
20361
20362 acl_save_prefix="$prefix"
20363 prefix="$acl_final_prefix"
20364 acl_save_exec_prefix="$exec_prefix"
20365 exec_prefix="$acl_final_exec_prefix"
20366 eval x=\"$x\"
20367 exec_prefix="$acl_save_exec_prefix"
20368 prefix="$acl_save_prefix"
20369
20370 if test "X$x" = "X$element"; then
20371 haveit=yes
20372 break
20373 fi
20374 done
20375 if test -z "$haveit"; then
20376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20377 fi
20378 done
20379
20380
20381 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20382 haveit=
20383 for x in $LIBS; do
20384
20385 acl_save_prefix="$prefix"
20386 prefix="$acl_final_prefix"
20387 acl_save_exec_prefix="$exec_prefix"
20388 exec_prefix="$acl_final_exec_prefix"
20389 eval x=\"$x\"
20390 exec_prefix="$acl_save_exec_prefix"
20391 prefix="$acl_save_prefix"
20392
20393 if test "X$x" = "X$element"; then
20394 haveit=yes
20395 break
20396 fi
20397 done
20398 if test -z "$haveit"; then
20399 LIBS="${LIBS}${LIBS:+ }$element"
20400 fi
20401 done
20402
20403
20404 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20405 done
20406
20407 fi
20408 fi
20409
20410 LTJAVASCRIPTCORE=$LIBS
20411 LIBS=$cy_save
20412
20413
20414
20415 fi
20416
20417
20418 # Check whether --enable-console was given.
20419 if test "${enable_console+set}" = set; then :
20420 enableval=$enable_console;
20421 fi
20422
20423 if test "x$enable_console" != "xno"; then
20424 CY_CONSOLE_TRUE=
20425 CY_CONSOLE_FALSE='#'
20426 else
20427 CY_CONSOLE_TRUE='#'
20428 CY_CONSOLE_FALSE=
20429 fi
20430
20431
20432 # Check whether --enable-attach was given.
20433 if test "${enable_attach+set}" = set; then :
20434 enableval=$enable_attach;
20435 fi
20436
20437 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20438 CY_ATTACH_TRUE=
20439 CY_ATTACH_FALSE='#'
20440 else
20441 CY_ATTACH_TRUE='#'
20442 CY_ATTACH_FALSE=
20443 fi
20444
20445
20446
20447
20448 if test "x$CY_EXECUTE" = x1; then
20449 CY_EXECUTE_TRUE=
20450 CY_EXECUTE_FALSE='#'
20451 else
20452 CY_EXECUTE_TRUE='#'
20453 CY_EXECUTE_FALSE=
20454 fi
20455
20456
20457
20458 case $CY_EXECUTE in #(
20459 1) :
20460
20461 for ac_header in ffi.h ffi/ffi.h
20462 do :
20463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20466 cat >>confdefs.h <<_ACEOF
20467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20468 _ACEOF
20469 break
20470 fi
20471
20472 done
20473
20474
20475
20476 cy_save=$LIBS
20477 LIBS=
20478 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
20479
20480
20481 LIBFFI_CFLAGS
20482 C compiler flags for LIBFFI, overriding pkg-config
20483 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
20484
20485 pkg_failed=no
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20487 $as_echo_n "checking for LIBFFI... " >&6; }
20488
20489 if test -n "$LIBFFI_CFLAGS"; then
20490 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20491 elif test -n "$PKG_CONFIG"; then
20492 if test -n "$PKG_CONFIG" && \
20493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20494 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20495 ac_status=$?
20496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20497 test $ac_status = 0; }; then
20498 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20499 test "x$?" != "x0" && pkg_failed=yes
20500 else
20501 pkg_failed=yes
20502 fi
20503 else
20504 pkg_failed=untried
20505 fi
20506 if test -n "$LIBFFI_LIBS"; then
20507 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20508 elif test -n "$PKG_CONFIG"; then
20509 if test -n "$PKG_CONFIG" && \
20510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20511 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20512 ac_status=$?
20513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20514 test $ac_status = 0; }; then
20515 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20516 test "x$?" != "x0" && pkg_failed=yes
20517 else
20518 pkg_failed=yes
20519 fi
20520 else
20521 pkg_failed=untried
20522 fi
20523
20524
20525
20526 if test $pkg_failed = yes; then
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20529
20530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20531 _pkg_short_errors_supported=yes
20532 else
20533 _pkg_short_errors_supported=no
20534 fi
20535 if test $_pkg_short_errors_supported = yes; then
20536 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20537 else
20538 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20539 fi
20540 # Put the nasty error message in config.log where it belongs
20541 echo "$LIBFFI_PKG_ERRORS" >&5
20542
20543 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20544 elif test $pkg_failed = untried; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20546 $as_echo "no" >&6; }
20547 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20548 else
20549 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20550 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20552 $as_echo "yes" >&6; }
20553
20554
20555 for element in `$PKG_CONFIG --cflags libffi`; do
20556 haveit=
20557 for x in $CPPFLAGS; do
20558
20559 acl_save_prefix="$prefix"
20560 prefix="$acl_final_prefix"
20561 acl_save_exec_prefix="$exec_prefix"
20562 exec_prefix="$acl_final_exec_prefix"
20563 eval x=\"$x\"
20564 exec_prefix="$acl_save_exec_prefix"
20565 prefix="$acl_save_prefix"
20566
20567 if test "X$x" = "X$element"; then
20568 haveit=yes
20569 break
20570 fi
20571 done
20572 if test -z "$haveit"; then
20573 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20574 fi
20575 done
20576
20577
20578 for element in `$PKG_CONFIG --libs libffi`; do
20579 haveit=
20580 for x in $LIBS; do
20581
20582 acl_save_prefix="$prefix"
20583 prefix="$acl_final_prefix"
20584 acl_save_exec_prefix="$exec_prefix"
20585 exec_prefix="$acl_final_exec_prefix"
20586 eval x=\"$x\"
20587 exec_prefix="$acl_save_exec_prefix"
20588 prefix="$acl_save_prefix"
20589
20590 if test "X$x" = "X$element"; then
20591 haveit=yes
20592 break
20593 fi
20594 done
20595 if test -z "$haveit"; then
20596 LIBS="${LIBS}${LIBS:+ }$element"
20597 fi
20598 done
20599
20600
20601 fi
20602
20603 else
20604
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20606 $as_echo_n "checking for library containing ffi_call... " >&6; }
20607 if ${ac_cv_search_ffi_call+:} false; then :
20608 $as_echo_n "(cached) " >&6
20609 else
20610 ac_func_search_save_LIBS=$LIBS
20611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20613
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char ffi_call ();
20621 int
20622 main ()
20623 {
20624 return ffi_call ();
20625 ;
20626 return 0;
20627 }
20628 _ACEOF
20629 for ac_lib in '' ffi; do
20630 if test -z "$ac_lib"; then
20631 ac_res="none required"
20632 else
20633 ac_res=-l$ac_lib
20634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20635 fi
20636 if ac_fn_cxx_try_link "$LINENO"; then :
20637 ac_cv_search_ffi_call=$ac_res
20638 fi
20639 rm -f core conftest.err conftest.$ac_objext \
20640 conftest$ac_exeext
20641 if ${ac_cv_search_ffi_call+:} false; then :
20642 break
20643 fi
20644 done
20645 if ${ac_cv_search_ffi_call+:} false; then :
20646
20647 else
20648 ac_cv_search_ffi_call=no
20649 fi
20650 rm conftest.$ac_ext
20651 LIBS=$ac_func_search_save_LIBS
20652 fi
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20654 $as_echo "$ac_cv_search_ffi_call" >&6; }
20655 ac_res=$ac_cv_search_ffi_call
20656 if test "$ac_res" != no; then :
20657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20658
20659 fi
20660
20661 case $ac_cv_search_ffi_call in #(
20662 no) :
20663
20664
20665 pkg_failed=no
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20667 $as_echo_n "checking for LIBFFI... " >&6; }
20668
20669 if test -n "$LIBFFI_CFLAGS"; then
20670 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
20671 elif test -n "$PKG_CONFIG"; then
20672 if test -n "$PKG_CONFIG" && \
20673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20674 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20675 ac_status=$?
20676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20677 test $ac_status = 0; }; then
20678 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
20679 test "x$?" != "x0" && pkg_failed=yes
20680 else
20681 pkg_failed=yes
20682 fi
20683 else
20684 pkg_failed=untried
20685 fi
20686 if test -n "$LIBFFI_LIBS"; then
20687 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
20688 elif test -n "$PKG_CONFIG"; then
20689 if test -n "$PKG_CONFIG" && \
20690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20691 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
20692 ac_status=$?
20693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20694 test $ac_status = 0; }; then
20695 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
20696 test "x$?" != "x0" && pkg_failed=yes
20697 else
20698 pkg_failed=yes
20699 fi
20700 else
20701 pkg_failed=untried
20702 fi
20703
20704
20705
20706 if test $pkg_failed = yes; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708 $as_echo "no" >&6; }
20709
20710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20711 _pkg_short_errors_supported=yes
20712 else
20713 _pkg_short_errors_supported=no
20714 fi
20715 if test $_pkg_short_errors_supported = yes; then
20716 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
20717 else
20718 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
20719 fi
20720 # Put the nasty error message in config.log where it belongs
20721 echo "$LIBFFI_PKG_ERRORS" >&5
20722
20723 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20724 elif test $pkg_failed = untried; then
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726 $as_echo "no" >&6; }
20727 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20728 else
20729 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20730 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20732 $as_echo "yes" >&6; }
20733
20734
20735 for element in `$PKG_CONFIG --cflags libffi`; do
20736 haveit=
20737 for x in $CPPFLAGS; do
20738
20739 acl_save_prefix="$prefix"
20740 prefix="$acl_final_prefix"
20741 acl_save_exec_prefix="$exec_prefix"
20742 exec_prefix="$acl_final_exec_prefix"
20743 eval x=\"$x\"
20744 exec_prefix="$acl_save_exec_prefix"
20745 prefix="$acl_save_prefix"
20746
20747 if test "X$x" = "X$element"; then
20748 haveit=yes
20749 break
20750 fi
20751 done
20752 if test -z "$haveit"; then
20753 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20754 fi
20755 done
20756
20757
20758 for element in `$PKG_CONFIG --libs libffi`; do
20759 haveit=
20760 for x in $LIBS; do
20761
20762 acl_save_prefix="$prefix"
20763 prefix="$acl_final_prefix"
20764 acl_save_exec_prefix="$exec_prefix"
20765 exec_prefix="$acl_final_exec_prefix"
20766 eval x=\"$x\"
20767 exec_prefix="$acl_save_exec_prefix"
20768 prefix="$acl_save_prefix"
20769
20770 if test "X$x" = "X$element"; then
20771 haveit=yes
20772 break
20773 fi
20774 done
20775 if test -z "$haveit"; then
20776 LIBS="${LIBS}${LIBS:+ }$element"
20777 fi
20778 done
20779
20780
20781 fi ;; #(
20782 *) :
20783 ;;
20784 esac
20785
20786 fi
20787 LTLIBFFI=$LIBS
20788 LIBS=$cy_save
20789
20790
20791
20792 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20793 if test "x$ac_cv_header_jni_h" = xyes; then :
20794
20795 CY_JAVA=1
20796
20797
20798 cy_save=$LIBS
20799 LIBS=
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20801 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20802 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20803 $as_echo_n "(cached) " >&6
20804 else
20805 ac_func_search_save_LIBS=$LIBS
20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h. */
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char JNI_GetCreatedJavaVMs ();
20816 int
20817 main ()
20818 {
20819 return JNI_GetCreatedJavaVMs ();
20820 ;
20821 return 0;
20822 }
20823 _ACEOF
20824 for ac_lib in '' dvm; do
20825 if test -z "$ac_lib"; then
20826 ac_res="none required"
20827 else
20828 ac_res=-l$ac_lib
20829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20830 fi
20831 if ac_fn_cxx_try_link "$LINENO"; then :
20832 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20833 fi
20834 rm -f core conftest.err conftest.$ac_objext \
20835 conftest$ac_exeext
20836 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20837 break
20838 fi
20839 done
20840 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20841
20842 else
20843 ac_cv_search_JNI_GetCreatedJavaVMs=no
20844 fi
20845 rm conftest.$ac_ext
20846 LIBS=$ac_func_search_save_LIBS
20847 fi
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20849 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20850 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20851 if test "$ac_res" != no; then :
20852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20853
20854
20855 fi
20856
20857 LTJAVA=$LIBS
20858 LIBS=$cy_save
20859
20860
20861
20862 else
20863
20864 CY_JAVA=0
20865
20866
20867 fi
20868
20869
20870
20871 ac_ext=mm
20872 ac_cpp='$OBJCXXCPP $CPPFLAGS'
20873 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20876
20877
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20879 $as_echo_n "checking if we really have Objective C++... " >&6; }
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881 /* end confdefs.h. */
20882
20883 _ACEOF
20884 if ac_fn_objcxx_try_compile "$LINENO"; then :
20885
20886 CY_OBJECTIVEC=1
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20888 $as_echo "yes" >&6; }
20889
20890 else
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20892 $as_echo "no" >&6; }
20893 fi
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895
20896 if test "x$CY_OBJECTIVEC" = x1; then :
20897
20898
20899 cy_save=$LIBS
20900 LIBS=
20901
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20903 $as_echo_n "checking for framework CoreFoundation... " >&6; }
20904 if ${ac_cv_framework_CoreFoundation+:} false; then :
20905 $as_echo_n "(cached) " >&6
20906 else
20907
20908 ac_check_framework_save_LIBS=$LIBS
20909 LIBS="-framework CoreFoundation $LIBS"
20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911 /* end confdefs.h. */
20912
20913 #include <CoreFoundation/CFBase.h>
20914
20915 int
20916 main ()
20917 {
20918 CFAllocatorGetDefault();
20919 ;
20920 return 0;
20921 }
20922 _ACEOF
20923 if ac_fn_objcxx_try_link "$LINENO"; then :
20924
20925 ac_cv_framework_CoreFoundation=yes
20926
20927 else
20928 ac_cv_framework_CoreFoundation=no
20929 fi
20930 rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
20932 LIBS=$ac_check_framework_save_LIBS
20933
20934 fi
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20936 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20937 if test $ac_cv_framework_CoreFoundation = yes; then :
20938
20939
20940 for element in "-framework CoreFoundation"; do
20941 haveit=
20942 for x in $LIBS; do
20943
20944 acl_save_prefix="$prefix"
20945 prefix="$acl_final_prefix"
20946 acl_save_exec_prefix="$exec_prefix"
20947 exec_prefix="$acl_final_exec_prefix"
20948 eval x=\"$x\"
20949 exec_prefix="$acl_save_exec_prefix"
20950 prefix="$acl_save_prefix"
20951
20952 if test "X$x" = "X$element"; then
20953 haveit=yes
20954 break
20955 fi
20956 done
20957 if test -z "$haveit"; then
20958 LIBS="${LIBS}${LIBS:+ }$element"
20959 fi
20960 done
20961
20962
20963
20964
20965
20966
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20968 $as_echo_n "checking for framework Foundation... " >&6; }
20969 if ${ac_cv_framework_Foundation+:} false; then :
20970 $as_echo_n "(cached) " >&6
20971 else
20972
20973 ac_check_framework_save_LIBS=$LIBS
20974 LIBS="-framework Foundation $LIBS"
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20977
20978 #include <Foundation/NSObject.h>
20979
20980 int
20981 main ()
20982 {
20983 [[NSObject alloc] init];
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 if ac_fn_objcxx_try_link "$LINENO"; then :
20989
20990 ac_cv_framework_Foundation=yes
20991
20992 else
20993 ac_cv_framework_Foundation=no
20994 fi
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_framework_save_LIBS
20998
20999 fi
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21001 $as_echo "$ac_cv_framework_Foundation" >&6; }
21002 if test $ac_cv_framework_Foundation = yes; then :
21003
21004
21005 for element in "-framework Foundation"; do
21006 haveit=
21007 for x in $LIBS; do
21008
21009 acl_save_prefix="$prefix"
21010 prefix="$acl_final_prefix"
21011 acl_save_exec_prefix="$exec_prefix"
21012 exec_prefix="$acl_final_exec_prefix"
21013 eval x=\"$x\"
21014 exec_prefix="$acl_save_exec_prefix"
21015 prefix="$acl_save_prefix"
21016
21017 if test "X$x" = "X$element"; then
21018 haveit=yes
21019 break
21020 fi
21021 done
21022 if test -z "$haveit"; then
21023 LIBS="${LIBS}${LIBS:+ }$element"
21024 fi
21025 done
21026
21027 cat >>confdefs.h <<_ACEOF
21028 #define HAVE_FRAMEWORK_FOUNDATION 1
21029 _ACEOF
21030
21031
21032 fi
21033
21034
21035 else
21036
21037
21038 for ac_prog in gnustep-config
21039 do
21040 # Extract the first word of "$ac_prog", so it can be a program name with args.
21041 set dummy $ac_prog; ac_word=$2
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21043 $as_echo_n "checking for $ac_word... " >&6; }
21044 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21045 $as_echo_n "(cached) " >&6
21046 else
21047 if test -n "$GNUSTEP_CONFIG"; then
21048 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21049 else
21050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051 for as_dir in $PATH
21052 do
21053 IFS=$as_save_IFS
21054 test -z "$as_dir" && as_dir=.
21055 for ac_exec_ext in '' $ac_executable_extensions; do
21056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21057 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21059 break 2
21060 fi
21061 done
21062 done
21063 IFS=$as_save_IFS
21064
21065 fi
21066 fi
21067 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21068 if test -n "$GNUSTEP_CONFIG"; then
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21070 $as_echo "$GNUSTEP_CONFIG" >&6; }
21071 else
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21073 $as_echo "no" >&6; }
21074 fi
21075
21076
21077 test -n "$GNUSTEP_CONFIG" && break
21078 done
21079
21080
21081 if test "x$GNUSTEP_CONFIG" != x; then :
21082
21083
21084
21085 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21086 haveit=
21087 for x in $OBJCXXFLAGS; do
21088
21089 acl_save_prefix="$prefix"
21090 prefix="$acl_final_prefix"
21091 acl_save_exec_prefix="$exec_prefix"
21092 exec_prefix="$acl_final_exec_prefix"
21093 eval x=\"$x\"
21094 exec_prefix="$acl_save_exec_prefix"
21095 prefix="$acl_save_prefix"
21096
21097 if test "X$x" = "X$element"; then
21098 haveit=yes
21099 break
21100 fi
21101 done
21102 if test -z "$haveit"; then
21103 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21104 fi
21105 done
21106
21107
21108 for element in `$GNUSTEP_CONFIG --base-libs`; do
21109 haveit=
21110 for x in $LIBS; do
21111
21112 acl_save_prefix="$prefix"
21113 prefix="$acl_final_prefix"
21114 acl_save_exec_prefix="$exec_prefix"
21115 exec_prefix="$acl_final_exec_prefix"
21116 eval x=\"$x\"
21117 exec_prefix="$acl_save_exec_prefix"
21118 prefix="$acl_save_prefix"
21119
21120 if test "X$x" = "X$element"; then
21121 haveit=yes
21122 break
21123 fi
21124 done
21125 if test -z "$haveit"; then
21126 LIBS="${LIBS}${LIBS:+ }$element"
21127 fi
21128 done
21129
21130
21131 else
21132 CY_OBJECTIVEC=0
21133
21134 fi
21135
21136 fi
21137 LTOBJECTIVEC=$LIBS
21138 LIBS=$cy_save
21139
21140
21141
21142 fi
21143
21144 ac_ext=cpp
21145 ac_cpp='$CXXCPP $CPPFLAGS'
21146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149
21150 ;; #(
21151 *) :
21152 ;;
21153 esac
21154
21155 if test "x$CY_JAVA" = x1; then
21156 CY_JAVA_TRUE=
21157 CY_JAVA_FALSE='#'
21158 else
21159 CY_JAVA_TRUE='#'
21160 CY_JAVA_FALSE=
21161 fi
21162
21163 if test "x$CY_OBJECTIVEC" = x1; then
21164 CY_OBJECTIVEC_TRUE=
21165 CY_OBJECTIVEC_FALSE='#'
21166 else
21167 CY_OBJECTIVEC_TRUE='#'
21168 CY_OBJECTIVEC_FALSE=
21169 fi
21170
21171
21172
21173 cy_save=$LIBS
21174 LIBS=
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21177 $as_echo_n "checking for a readline compatible library... " >&6; }
21178 if ${ax_cv_lib_readline+:} false; then :
21179 $as_echo_n "(cached) " >&6
21180 else
21181
21182 ORIG_LIBS="$LIBS"
21183 for readline_lib in readline edit editline; do
21184 for termcap_lib in "" termcap curses ncurses; do
21185 if test -z "$termcap_lib"; then
21186 TRY_LIB="-l$readline_lib"
21187 else
21188 TRY_LIB="-l$readline_lib -l$termcap_lib"
21189 fi
21190 LIBS="$ORIG_LIBS $TRY_LIB"
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21193
21194 /* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21197 #ifdef __cplusplus
21198 extern "C"
21199 #endif
21200 char readline ();
21201 int
21202 main ()
21203 {
21204 return readline ();
21205 ;
21206 return 0;
21207 }
21208 _ACEOF
21209 if ac_fn_cxx_try_link "$LINENO"; then :
21210 ax_cv_lib_readline="$TRY_LIB"
21211 fi
21212 rm -f core conftest.err conftest.$ac_objext \
21213 conftest$ac_exeext conftest.$ac_ext
21214 if test -n "$ax_cv_lib_readline"; then
21215 break
21216 fi
21217 done
21218 if test -n "$ax_cv_lib_readline"; then
21219 break
21220 fi
21221 done
21222 if test -z "$ax_cv_lib_readline"; then
21223 ax_cv_lib_readline="no"
21224 fi
21225 LIBS="$ORIG_LIBS"
21226
21227 fi
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21229 $as_echo "$ax_cv_lib_readline" >&6; }
21230
21231 if test "$ax_cv_lib_readline" != "no"; then
21232 LIBS="$LIBS $ax_cv_lib_readline"
21233
21234 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21235
21236 for ac_header in readline.h readline/readline.h
21237 do :
21238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21239 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21241 cat >>confdefs.h <<_ACEOF
21242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21243 _ACEOF
21244
21245 fi
21246
21247 done
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21250 $as_echo_n "checking whether readline supports history... " >&6; }
21251 if ${ax_cv_lib_readline_history+:} false; then :
21252 $as_echo_n "(cached) " >&6
21253 else
21254
21255 ax_cv_lib_readline_history="no"
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257 /* end confdefs.h. */
21258
21259 /* Override any GCC internal prototype to avoid an error.
21260 Use char because int might match the return type of a GCC
21261 builtin and then its argument prototype would still apply. */
21262 #ifdef __cplusplus
21263 extern "C"
21264 #endif
21265 char add_history ();
21266 int
21267 main ()
21268 {
21269 return add_history ();
21270 ;
21271 return 0;
21272 }
21273 _ACEOF
21274 if ac_fn_cxx_try_link "$LINENO"; then :
21275 ax_cv_lib_readline_history="yes"
21276 fi
21277 rm -f core conftest.err conftest.$ac_objext \
21278 conftest$ac_exeext conftest.$ac_ext
21279
21280 fi
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21282 $as_echo "$ax_cv_lib_readline_history" >&6; }
21283 if test "$ax_cv_lib_readline_history" = "yes"; then
21284
21285 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21286
21287 for ac_header in history.h readline/history.h
21288 do :
21289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21290 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21292 cat >>confdefs.h <<_ACEOF
21293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21294 _ACEOF
21295
21296 fi
21297
21298 done
21299
21300 fi
21301 fi
21302
21303 LTLIBREADLINE=$LIBS
21304 LIBS=$cy_save
21305
21306
21307 case $ax_cv_lib_readline in #(
21308 no) :
21309 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21310 *) :
21311 ;;
21312 esac
21313
21314
21315 cy_save=$LIBS
21316 LIBS=
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21318 $as_echo_n "checking for library containing cur_term... " >&6; }
21319 if ${ac_cv_search_cur_term+:} false; then :
21320 $as_echo_n "(cached) " >&6
21321 else
21322 ac_func_search_save_LIBS=$LIBS
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21325
21326 /* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
21329 #ifdef __cplusplus
21330 extern "C"
21331 #endif
21332 char cur_term ();
21333 int
21334 main ()
21335 {
21336 return cur_term ();
21337 ;
21338 return 0;
21339 }
21340 _ACEOF
21341 for ac_lib in '' termcap ncurses; do
21342 if test -z "$ac_lib"; then
21343 ac_res="none required"
21344 else
21345 ac_res=-l$ac_lib
21346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21347 fi
21348 if ac_fn_cxx_try_link "$LINENO"; then :
21349 ac_cv_search_cur_term=$ac_res
21350 fi
21351 rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext
21353 if ${ac_cv_search_cur_term+:} false; then :
21354 break
21355 fi
21356 done
21357 if ${ac_cv_search_cur_term+:} false; then :
21358
21359 else
21360 ac_cv_search_cur_term=no
21361 fi
21362 rm conftest.$ac_ext
21363 LIBS=$ac_func_search_save_LIBS
21364 fi
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21366 $as_echo "$ac_cv_search_cur_term" >&6; }
21367 ac_res=$ac_cv_search_cur_term
21368 if test "$ac_res" != no; then :
21369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21370
21371 fi
21372
21373 LTLIBTERMCAP=$LIBS
21374 LIBS=$cy_save
21375
21376
21377
21378
21379
21380
21381 SO=$acl_shlibext
21382
21383
21384 ac_config_files="$ac_config_files Makefile"
21385
21386 cat >confcache <<\_ACEOF
21387 # This file is a shell script that caches the results of configure
21388 # tests run on this system so they can be shared between configure
21389 # scripts and configure runs, see configure's option --config-cache.
21390 # It is not useful on other systems. If it contains results you don't
21391 # want to keep, you may remove or edit it.
21392 #
21393 # config.status only pays attention to the cache file if you give it
21394 # the --recheck option to rerun configure.
21395 #
21396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21398 # following values.
21399
21400 _ACEOF
21401
21402 # The following way of writing the cache mishandles newlines in values,
21403 # but we know of no workaround that is simple, portable, and efficient.
21404 # So, we kill variables containing newlines.
21405 # Ultrix sh set writes to stderr and can't be redirected directly,
21406 # and sets the high bit in the cache file unless we assign to the vars.
21407 (
21408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21409 eval ac_val=\$$ac_var
21410 case $ac_val in #(
21411 *${as_nl}*)
21412 case $ac_var in #(
21413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21415 esac
21416 case $ac_var in #(
21417 _ | IFS | as_nl) ;; #(
21418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21419 *) { eval $ac_var=; unset $ac_var;} ;;
21420 esac ;;
21421 esac
21422 done
21423
21424 (set) 2>&1 |
21425 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21426 *${as_nl}ac_space=\ *)
21427 # `set' does not quote correctly, so add quotes: double-quote
21428 # substitution turns \\\\ into \\, and sed turns \\ into \.
21429 sed -n \
21430 "s/'/'\\\\''/g;
21431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21432 ;; #(
21433 *)
21434 # `set' quotes correctly as required by POSIX, so do not add quotes.
21435 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21436 ;;
21437 esac |
21438 sort
21439 ) |
21440 sed '
21441 /^ac_cv_env_/b end
21442 t clear
21443 :clear
21444 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21445 t end
21446 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21447 :end' >>confcache
21448 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21449 if test -w "$cache_file"; then
21450 if test "x$cache_file" != "x/dev/null"; then
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21452 $as_echo "$as_me: updating cache $cache_file" >&6;}
21453 if test ! -f "$cache_file" || test -h "$cache_file"; then
21454 cat confcache >"$cache_file"
21455 else
21456 case $cache_file in #(
21457 */* | ?:*)
21458 mv -f confcache "$cache_file"$$ &&
21459 mv -f "$cache_file"$$ "$cache_file" ;; #(
21460 *)
21461 mv -f confcache "$cache_file" ;;
21462 esac
21463 fi
21464 fi
21465 else
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21467 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21468 fi
21469 fi
21470 rm -f confcache
21471
21472 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21473 # Let make expand exec_prefix.
21474 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21475
21476 DEFS=-DHAVE_CONFIG_H
21477
21478 ac_libobjs=
21479 ac_ltlibobjs=
21480 U=
21481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21482 # 1. Remove the extension, and $U if already installed.
21483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21484 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21486 # will be set to the directory where LIBOBJS objects are built.
21487 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21488 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21489 done
21490 LIBOBJS=$ac_libobjs
21491
21492 LTLIBOBJS=$ac_ltlibobjs
21493
21494
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21496 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21497 if test -n "$am_sleep_pid"; then
21498 # Hide warnings about reused PIDs.
21499 wait $am_sleep_pid 2>/dev/null
21500 fi
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21502 $as_echo "done" >&6; }
21503 if test -n "$EXEEXT"; then
21504 am__EXEEXT_TRUE=
21505 am__EXEEXT_FALSE='#'
21506 else
21507 am__EXEEXT_TRUE='#'
21508 am__EXEEXT_FALSE=
21509 fi
21510
21511 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21512 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21514 fi
21515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21516 as_fn_error $? "conditional \"AMDEP\" was never defined.
21517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21518 fi
21519 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21522 fi
21523 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21524 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21526 fi
21527 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21528 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21530 fi
21531 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21532 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
21533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21534 fi
21535 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
21536 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
21537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21538 fi
21539 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21540 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21542 fi
21543 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21544 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21546 fi
21547 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21548 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21550 fi
21551
21552 : "${CONFIG_STATUS=./config.status}"
21553 ac_write_fail=0
21554 ac_clean_files_save=$ac_clean_files
21555 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21557 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21558 as_write_fail=0
21559 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21560 #! $SHELL
21561 # Generated by $as_me.
21562 # Run this file to recreate the current configuration.
21563 # Compiler output produced by configure, useful for debugging
21564 # configure, is in config.log if it exists.
21565
21566 debug=false
21567 ac_cs_recheck=false
21568 ac_cs_silent=false
21569
21570 SHELL=\${CONFIG_SHELL-$SHELL}
21571 export SHELL
21572 _ASEOF
21573 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21574 ## -------------------- ##
21575 ## M4sh Initialization. ##
21576 ## -------------------- ##
21577
21578 # Be more Bourne compatible
21579 DUALCASE=1; export DUALCASE # for MKS sh
21580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21581 emulate sh
21582 NULLCMD=:
21583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21584 # is contrary to our usage. Disable this feature.
21585 alias -g '${1+"$@"}'='"$@"'
21586 setopt NO_GLOB_SUBST
21587 else
21588 case `(set -o) 2>/dev/null` in #(
21589 *posix*) :
21590 set -o posix ;; #(
21591 *) :
21592 ;;
21593 esac
21594 fi
21595
21596
21597 as_nl='
21598 '
21599 export as_nl
21600 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21601 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21602 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21604 # Prefer a ksh shell builtin over an external printf program on Solaris,
21605 # but without wasting forks for bash or zsh.
21606 if test -z "$BASH_VERSION$ZSH_VERSION" \
21607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21608 as_echo='print -r --'
21609 as_echo_n='print -rn --'
21610 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21611 as_echo='printf %s\n'
21612 as_echo_n='printf %s'
21613 else
21614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21616 as_echo_n='/usr/ucb/echo -n'
21617 else
21618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21619 as_echo_n_body='eval
21620 arg=$1;
21621 case $arg in #(
21622 *"$as_nl"*)
21623 expr "X$arg" : "X\\(.*\\)$as_nl";
21624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21625 esac;
21626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21627 '
21628 export as_echo_n_body
21629 as_echo_n='sh -c $as_echo_n_body as_echo'
21630 fi
21631 export as_echo_body
21632 as_echo='sh -c $as_echo_body as_echo'
21633 fi
21634
21635 # The user is always right.
21636 if test "${PATH_SEPARATOR+set}" != set; then
21637 PATH_SEPARATOR=:
21638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21640 PATH_SEPARATOR=';'
21641 }
21642 fi
21643
21644
21645 # IFS
21646 # We need space, tab and new line, in precisely that order. Quoting is
21647 # there to prevent editors from complaining about space-tab.
21648 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21649 # splitting by setting IFS to empty value.)
21650 IFS=" "" $as_nl"
21651
21652 # Find who we are. Look in the path if we contain no directory separator.
21653 as_myself=
21654 case $0 in #((
21655 *[\\/]* ) as_myself=$0 ;;
21656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21657 for as_dir in $PATH
21658 do
21659 IFS=$as_save_IFS
21660 test -z "$as_dir" && as_dir=.
21661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21662 done
21663 IFS=$as_save_IFS
21664
21665 ;;
21666 esac
21667 # We did not find ourselves, most probably we were run as `sh COMMAND'
21668 # in which case we are not to be found in the path.
21669 if test "x$as_myself" = x; then
21670 as_myself=$0
21671 fi
21672 if test ! -f "$as_myself"; then
21673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21674 exit 1
21675 fi
21676
21677 # Unset variables that we do not need and which cause bugs (e.g. in
21678 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21679 # suppresses any "Segmentation fault" message there. '((' could
21680 # trigger a bug in pdksh 5.2.14.
21681 for as_var in BASH_ENV ENV MAIL MAILPATH
21682 do eval test x\${$as_var+set} = xset \
21683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21684 done
21685 PS1='$ '
21686 PS2='> '
21687 PS4='+ '
21688
21689 # NLS nuisances.
21690 LC_ALL=C
21691 export LC_ALL
21692 LANGUAGE=C
21693 export LANGUAGE
21694
21695 # CDPATH.
21696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21697
21698
21699 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21700 # ----------------------------------------
21701 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21702 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21703 # script with STATUS, using 1 if that was 0.
21704 as_fn_error ()
21705 {
21706 as_status=$1; test $as_status -eq 0 && as_status=1
21707 if test "$4"; then
21708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21710 fi
21711 $as_echo "$as_me: error: $2" >&2
21712 as_fn_exit $as_status
21713 } # as_fn_error
21714
21715
21716 # as_fn_set_status STATUS
21717 # -----------------------
21718 # Set $? to STATUS, without forking.
21719 as_fn_set_status ()
21720 {
21721 return $1
21722 } # as_fn_set_status
21723
21724 # as_fn_exit STATUS
21725 # -----------------
21726 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21727 as_fn_exit ()
21728 {
21729 set +e
21730 as_fn_set_status $1
21731 exit $1
21732 } # as_fn_exit
21733
21734 # as_fn_unset VAR
21735 # ---------------
21736 # Portably unset VAR.
21737 as_fn_unset ()
21738 {
21739 { eval $1=; unset $1;}
21740 }
21741 as_unset=as_fn_unset
21742 # as_fn_append VAR VALUE
21743 # ----------------------
21744 # Append the text in VALUE to the end of the definition contained in VAR. Take
21745 # advantage of any shell optimizations that allow amortized linear growth over
21746 # repeated appends, instead of the typical quadratic growth present in naive
21747 # implementations.
21748 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21749 eval 'as_fn_append ()
21750 {
21751 eval $1+=\$2
21752 }'
21753 else
21754 as_fn_append ()
21755 {
21756 eval $1=\$$1\$2
21757 }
21758 fi # as_fn_append
21759
21760 # as_fn_arith ARG...
21761 # ------------------
21762 # Perform arithmetic evaluation on the ARGs, and store the result in the
21763 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21764 # must be portable across $(()) and expr.
21765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21766 eval 'as_fn_arith ()
21767 {
21768 as_val=$(( $* ))
21769 }'
21770 else
21771 as_fn_arith ()
21772 {
21773 as_val=`expr "$@" || test $? -eq 1`
21774 }
21775 fi # as_fn_arith
21776
21777
21778 if expr a : '\(a\)' >/dev/null 2>&1 &&
21779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21780 as_expr=expr
21781 else
21782 as_expr=false
21783 fi
21784
21785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21786 as_basename=basename
21787 else
21788 as_basename=false
21789 fi
21790
21791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21792 as_dirname=dirname
21793 else
21794 as_dirname=false
21795 fi
21796
21797 as_me=`$as_basename -- "$0" ||
21798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21799 X"$0" : 'X\(//\)$' \| \
21800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21801 $as_echo X/"$0" |
21802 sed '/^.*\/\([^/][^/]*\)\/*$/{
21803 s//\1/
21804 q
21805 }
21806 /^X\/\(\/\/\)$/{
21807 s//\1/
21808 q
21809 }
21810 /^X\/\(\/\).*/{
21811 s//\1/
21812 q
21813 }
21814 s/.*/./; q'`
21815
21816 # Avoid depending upon Character Ranges.
21817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820 as_cr_digits='0123456789'
21821 as_cr_alnum=$as_cr_Letters$as_cr_digits
21822
21823 ECHO_C= ECHO_N= ECHO_T=
21824 case `echo -n x` in #(((((
21825 -n*)
21826 case `echo 'xy\c'` in
21827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21828 xy) ECHO_C='\c';;
21829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21830 ECHO_T=' ';;
21831 esac;;
21832 *)
21833 ECHO_N='-n';;
21834 esac
21835
21836 rm -f conf$$ conf$$.exe conf$$.file
21837 if test -d conf$$.dir; then
21838 rm -f conf$$.dir/conf$$.file
21839 else
21840 rm -f conf$$.dir
21841 mkdir conf$$.dir 2>/dev/null
21842 fi
21843 if (echo >conf$$.file) 2>/dev/null; then
21844 if ln -s conf$$.file conf$$ 2>/dev/null; then
21845 as_ln_s='ln -s'
21846 # ... but there are two gotchas:
21847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21849 # In both cases, we have to default to `cp -pR'.
21850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21851 as_ln_s='cp -pR'
21852 elif ln conf$$.file conf$$ 2>/dev/null; then
21853 as_ln_s=ln
21854 else
21855 as_ln_s='cp -pR'
21856 fi
21857 else
21858 as_ln_s='cp -pR'
21859 fi
21860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21861 rmdir conf$$.dir 2>/dev/null
21862
21863
21864 # as_fn_mkdir_p
21865 # -------------
21866 # Create "$as_dir" as a directory, including parents if necessary.
21867 as_fn_mkdir_p ()
21868 {
21869
21870 case $as_dir in #(
21871 -*) as_dir=./$as_dir;;
21872 esac
21873 test -d "$as_dir" || eval $as_mkdir_p || {
21874 as_dirs=
21875 while :; do
21876 case $as_dir in #(
21877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21878 *) as_qdir=$as_dir;;
21879 esac
21880 as_dirs="'$as_qdir' $as_dirs"
21881 as_dir=`$as_dirname -- "$as_dir" ||
21882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21883 X"$as_dir" : 'X\(//\)[^/]' \| \
21884 X"$as_dir" : 'X\(//\)$' \| \
21885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21886 $as_echo X"$as_dir" |
21887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)[^/].*/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\/\)$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\(\/\).*/{
21900 s//\1/
21901 q
21902 }
21903 s/.*/./; q'`
21904 test -d "$as_dir" && break
21905 done
21906 test -z "$as_dirs" || eval "mkdir $as_dirs"
21907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21908
21909
21910 } # as_fn_mkdir_p
21911 if mkdir -p . 2>/dev/null; then
21912 as_mkdir_p='mkdir -p "$as_dir"'
21913 else
21914 test -d ./-p && rmdir ./-p
21915 as_mkdir_p=false
21916 fi
21917
21918
21919 # as_fn_executable_p FILE
21920 # -----------------------
21921 # Test if FILE is an executable regular file.
21922 as_fn_executable_p ()
21923 {
21924 test -f "$1" && test -x "$1"
21925 } # as_fn_executable_p
21926 as_test_x='test -x'
21927 as_executable_p=as_fn_executable_p
21928
21929 # Sed expression to map a string onto a valid CPP name.
21930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21931
21932 # Sed expression to map a string onto a valid variable name.
21933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21934
21935
21936 exec 6>&1
21937 ## ----------------------------------- ##
21938 ## Main body of $CONFIG_STATUS script. ##
21939 ## ----------------------------------- ##
21940 _ASEOF
21941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21942
21943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21944 # Save the log message, to keep $0 and so on meaningful, and to
21945 # report actual input values of CONFIG_FILES etc. instead of their
21946 # values after options handling.
21947 ac_log="
21948 This file was extended by Cycript $as_me 0.9, which was
21949 generated by GNU Autoconf 2.69. Invocation command line was
21950
21951 CONFIG_FILES = $CONFIG_FILES
21952 CONFIG_HEADERS = $CONFIG_HEADERS
21953 CONFIG_LINKS = $CONFIG_LINKS
21954 CONFIG_COMMANDS = $CONFIG_COMMANDS
21955 $ $0 $@
21956
21957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21958 "
21959
21960 _ACEOF
21961
21962 case $ac_config_files in *"
21963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21964 esac
21965
21966 case $ac_config_headers in *"
21967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21968 esac
21969
21970
21971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21972 # Files that config.status was made for.
21973 config_files="$ac_config_files"
21974 config_headers="$ac_config_headers"
21975 config_commands="$ac_config_commands"
21976
21977 _ACEOF
21978
21979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21980 ac_cs_usage="\
21981 \`$as_me' instantiates files and other configuration actions
21982 from templates according to the current configuration. Unless the files
21983 and actions are specified as TAGs, all are instantiated by default.
21984
21985 Usage: $0 [OPTION]... [TAG]...
21986
21987 -h, --help print this help, then exit
21988 -V, --version print version number and configuration settings, then exit
21989 --config print configuration, then exit
21990 -q, --quiet, --silent
21991 do not print progress messages
21992 -d, --debug don't remove temporary files
21993 --recheck update $as_me by reconfiguring in the same conditions
21994 --file=FILE[:TEMPLATE]
21995 instantiate the configuration file FILE
21996 --header=FILE[:TEMPLATE]
21997 instantiate the configuration header FILE
21998
21999 Configuration files:
22000 $config_files
22001
22002 Configuration headers:
22003 $config_headers
22004
22005 Configuration commands:
22006 $config_commands
22007
22008 Report bugs to <saurik@saurik.com>.
22009 Cycript home page: <http://www.cycript.org/>."
22010
22011 _ACEOF
22012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22013 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22014 ac_cs_version="\\
22015 Cycript config.status 0.9
22016 configured by $0, generated by GNU Autoconf 2.69,
22017 with options \\"\$ac_cs_config\\"
22018
22019 Copyright (C) 2012 Free Software Foundation, Inc.
22020 This config.status script is free software; the Free Software Foundation
22021 gives unlimited permission to copy, distribute and modify it."
22022
22023 ac_pwd='$ac_pwd'
22024 srcdir='$srcdir'
22025 INSTALL='$INSTALL'
22026 MKDIR_P='$MKDIR_P'
22027 AWK='$AWK'
22028 test -n "\$AWK" || AWK=awk
22029 _ACEOF
22030
22031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22032 # The default lists apply if the user does not specify any file.
22033 ac_need_defaults=:
22034 while test $# != 0
22035 do
22036 case $1 in
22037 --*=?*)
22038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22039 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22040 ac_shift=:
22041 ;;
22042 --*=)
22043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22044 ac_optarg=
22045 ac_shift=:
22046 ;;
22047 *)
22048 ac_option=$1
22049 ac_optarg=$2
22050 ac_shift=shift
22051 ;;
22052 esac
22053
22054 case $ac_option in
22055 # Handling of the options.
22056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22057 ac_cs_recheck=: ;;
22058 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22059 $as_echo "$ac_cs_version"; exit ;;
22060 --config | --confi | --conf | --con | --co | --c )
22061 $as_echo "$ac_cs_config"; exit ;;
22062 --debug | --debu | --deb | --de | --d | -d )
22063 debug=: ;;
22064 --file | --fil | --fi | --f )
22065 $ac_shift
22066 case $ac_optarg in
22067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22068 '') as_fn_error $? "missing file argument" ;;
22069 esac
22070 as_fn_append CONFIG_FILES " '$ac_optarg'"
22071 ac_need_defaults=false;;
22072 --header | --heade | --head | --hea )
22073 $ac_shift
22074 case $ac_optarg in
22075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22076 esac
22077 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22078 ac_need_defaults=false;;
22079 --he | --h)
22080 # Conflict between --help and --header
22081 as_fn_error $? "ambiguous option: \`$1'
22082 Try \`$0 --help' for more information.";;
22083 --help | --hel | -h )
22084 $as_echo "$ac_cs_usage"; exit ;;
22085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22087 ac_cs_silent=: ;;
22088
22089 # This is an error.
22090 -*) as_fn_error $? "unrecognized option: \`$1'
22091 Try \`$0 --help' for more information." ;;
22092
22093 *) as_fn_append ac_config_targets " $1"
22094 ac_need_defaults=false ;;
22095
22096 esac
22097 shift
22098 done
22099
22100 ac_configure_extra_args=
22101
22102 if $ac_cs_silent; then
22103 exec 6>/dev/null
22104 ac_configure_extra_args="$ac_configure_extra_args --silent"
22105 fi
22106
22107 _ACEOF
22108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22109 if \$ac_cs_recheck; then
22110 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22111 shift
22112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22113 CONFIG_SHELL='$SHELL'
22114 export CONFIG_SHELL
22115 exec "\$@"
22116 fi
22117
22118 _ACEOF
22119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22120 exec 5>>config.log
22121 {
22122 echo
22123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22124 ## Running $as_me. ##
22125 _ASBOX
22126 $as_echo "$ac_log"
22127 } >&5
22128
22129 _ACEOF
22130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22131 #
22132 # INIT-COMMANDS
22133 #
22134 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22135
22136
22137 # The HP-UX ksh and POSIX shell print the target directory to stdout
22138 # if CDPATH is set.
22139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22140
22141 sed_quote_subst='$sed_quote_subst'
22142 double_quote_subst='$double_quote_subst'
22143 delay_variable_subst='$delay_variable_subst'
22144 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22145 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22146 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22147 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22148 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22149 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22150 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22151 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22152 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22153 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22154 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22155 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22156 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22157 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22158 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22159 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22160 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22161 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22162 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22163 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22164 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22165 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22166 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22167 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22168 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22169 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22170 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22171 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22172 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22173 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22174 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22175 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22176 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22177 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22178 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22179 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22180 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22181 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22182 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22183 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22184 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22185 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22186 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22187 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22188 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22189 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22190 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22191 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22192 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22193 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22194 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22195 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22196 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22197 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22198 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22199 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22200 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22201 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22202 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"`'
22203 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22204 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22205 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22206 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22207 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22208 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22209 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22210 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22211 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22212 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22213 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22214 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22215 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22216 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22217 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22218 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22219 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22220 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22221 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22222 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22223 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22224 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22225 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22226 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22227 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22228 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22229 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22230 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22231 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22232 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22233 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22234 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22235 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22236 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22237 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22238 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22239 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22240 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22241 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22242 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22243 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22244 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22245 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22246 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22247 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22248 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22249 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22250 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22251 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22252 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22253 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22254 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22255 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22256 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22257 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22258 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22259 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22260 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22261 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22262 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22263 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22264 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22265 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22266 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22267 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22268 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22269 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22270 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22271 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22272 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22273 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22274 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22275 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22276 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22277 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22278 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22279 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22280 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22281 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22282 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22283 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22284 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22285 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22286 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22287 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22288 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22289 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22290 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22291 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22292 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22293 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22294 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22295 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22296 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22297 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22298 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22299 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22300 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22301 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22302 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22303 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22304 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22305 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22306 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22307 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22308 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22309 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22310 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22311 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22312 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22313 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22314 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22315 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22316 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22317 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22318 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22319 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22320 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22321 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22322 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22323 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22324 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22325 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22326 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22327 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22328 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22329 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22330 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22331 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22332 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22333
22334 LTCC='$LTCC'
22335 LTCFLAGS='$LTCFLAGS'
22336 compiler='$compiler_DEFAULT'
22337
22338 # A function that is used when there is no print builtin or printf.
22339 func_fallback_echo ()
22340 {
22341 eval 'cat <<_LTECHO_EOF
22342 \$1
22343 _LTECHO_EOF'
22344 }
22345
22346 # Quote evaled strings.
22347 for var in SHELL \
22348 ECHO \
22349 PATH_SEPARATOR \
22350 SED \
22351 GREP \
22352 EGREP \
22353 FGREP \
22354 LD \
22355 NM \
22356 LN_S \
22357 lt_SP2NL \
22358 lt_NL2SP \
22359 reload_flag \
22360 OBJDUMP \
22361 deplibs_check_method \
22362 file_magic_cmd \
22363 file_magic_glob \
22364 want_nocaseglob \
22365 DLLTOOL \
22366 sharedlib_from_linklib_cmd \
22367 AR \
22368 AR_FLAGS \
22369 archiver_list_spec \
22370 STRIP \
22371 RANLIB \
22372 CC \
22373 CFLAGS \
22374 compiler \
22375 lt_cv_sys_global_symbol_pipe \
22376 lt_cv_sys_global_symbol_to_cdecl \
22377 lt_cv_sys_global_symbol_to_import \
22378 lt_cv_sys_global_symbol_to_c_name_address \
22379 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22380 lt_cv_nm_interface \
22381 nm_file_list_spec \
22382 lt_cv_truncate_bin \
22383 lt_prog_compiler_no_builtin_flag \
22384 lt_prog_compiler_pic \
22385 lt_prog_compiler_wl \
22386 lt_prog_compiler_static \
22387 lt_cv_prog_compiler_c_o \
22388 need_locks \
22389 MANIFEST_TOOL \
22390 DSYMUTIL \
22391 NMEDIT \
22392 LIPO \
22393 OTOOL \
22394 OTOOL64 \
22395 shrext_cmds \
22396 export_dynamic_flag_spec \
22397 whole_archive_flag_spec \
22398 compiler_needs_object \
22399 with_gnu_ld \
22400 allow_undefined_flag \
22401 no_undefined_flag \
22402 hardcode_libdir_flag_spec \
22403 hardcode_libdir_separator \
22404 exclude_expsyms \
22405 include_expsyms \
22406 file_list_spec \
22407 variables_saved_for_relink \
22408 libname_spec \
22409 library_names_spec \
22410 soname_spec \
22411 install_override_mode \
22412 finish_eval \
22413 old_striplib \
22414 striplib \
22415 compiler_lib_search_dirs \
22416 predep_objects \
22417 postdep_objects \
22418 predeps \
22419 postdeps \
22420 compiler_lib_search_path \
22421 LD_CXX \
22422 reload_flag_CXX \
22423 compiler_CXX \
22424 lt_prog_compiler_no_builtin_flag_CXX \
22425 lt_prog_compiler_pic_CXX \
22426 lt_prog_compiler_wl_CXX \
22427 lt_prog_compiler_static_CXX \
22428 lt_cv_prog_compiler_c_o_CXX \
22429 export_dynamic_flag_spec_CXX \
22430 whole_archive_flag_spec_CXX \
22431 compiler_needs_object_CXX \
22432 with_gnu_ld_CXX \
22433 allow_undefined_flag_CXX \
22434 no_undefined_flag_CXX \
22435 hardcode_libdir_flag_spec_CXX \
22436 hardcode_libdir_separator_CXX \
22437 exclude_expsyms_CXX \
22438 include_expsyms_CXX \
22439 file_list_spec_CXX \
22440 compiler_lib_search_dirs_CXX \
22441 predep_objects_CXX \
22442 postdep_objects_CXX \
22443 predeps_CXX \
22444 postdeps_CXX \
22445 compiler_lib_search_path_CXX; do
22446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22447 *[\\\\\\\`\\"\\\$]*)
22448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22449 ;;
22450 *)
22451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22452 ;;
22453 esac
22454 done
22455
22456 # Double-quote double-evaled strings.
22457 for var in reload_cmds \
22458 old_postinstall_cmds \
22459 old_postuninstall_cmds \
22460 old_archive_cmds \
22461 extract_expsyms_cmds \
22462 old_archive_from_new_cmds \
22463 old_archive_from_expsyms_cmds \
22464 archive_cmds \
22465 archive_expsym_cmds \
22466 module_cmds \
22467 module_expsym_cmds \
22468 export_symbols_cmds \
22469 prelink_cmds \
22470 postlink_cmds \
22471 postinstall_cmds \
22472 postuninstall_cmds \
22473 finish_cmds \
22474 sys_lib_search_path_spec \
22475 configure_time_dlsearch_path \
22476 configure_time_lt_sys_library_path \
22477 reload_cmds_CXX \
22478 old_archive_cmds_CXX \
22479 old_archive_from_new_cmds_CXX \
22480 old_archive_from_expsyms_cmds_CXX \
22481 archive_cmds_CXX \
22482 archive_expsym_cmds_CXX \
22483 module_cmds_CXX \
22484 module_expsym_cmds_CXX \
22485 export_symbols_cmds_CXX \
22486 prelink_cmds_CXX \
22487 postlink_cmds_CXX; do
22488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22489 *[\\\\\\\`\\"\\\$]*)
22490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22491 ;;
22492 *)
22493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22494 ;;
22495 esac
22496 done
22497
22498 ac_aux_dir='$ac_aux_dir'
22499
22500 # See if we are running on zsh, and set the options that allow our
22501 # commands through without removal of \ escapes INIT.
22502 if test -n "\${ZSH_VERSION+set}"; then
22503 setopt NO_GLOB_SUBST
22504 fi
22505
22506
22507 PACKAGE='$PACKAGE'
22508 VERSION='$VERSION'
22509 RM='$RM'
22510 ofile='$ofile'
22511
22512
22513
22514
22515
22516
22517 _ACEOF
22518
22519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22520
22521 # Handling of arguments.
22522 for ac_config_target in $ac_config_targets
22523 do
22524 case $ac_config_target in
22525 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22529
22530 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22531 esac
22532 done
22533
22534
22535 # If the user did not use the arguments to specify the items to instantiate,
22536 # then the envvar interface is used. Set only those that are not.
22537 # We use the long form for the default assignment because of an extremely
22538 # bizarre bug on SunOS 4.1.3.
22539 if $ac_need_defaults; then
22540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22543 fi
22544
22545 # Have a temporary directory for convenience. Make it in the build tree
22546 # simply because there is no reason against having it here, and in addition,
22547 # creating and moving files from /tmp can sometimes cause problems.
22548 # Hook for its removal unless debugging.
22549 # Note that there is a small window in which the directory will not be cleaned:
22550 # after its creation but before its name has been assigned to `$tmp'.
22551 $debug ||
22552 {
22553 tmp= ac_tmp=
22554 trap 'exit_status=$?
22555 : "${ac_tmp:=$tmp}"
22556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22557 ' 0
22558 trap 'as_fn_exit 1' 1 2 13 15
22559 }
22560 # Create a (secure) tmp directory for tmp files.
22561
22562 {
22563 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22564 test -d "$tmp"
22565 } ||
22566 {
22567 tmp=./conf$$-$RANDOM
22568 (umask 077 && mkdir "$tmp")
22569 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22570 ac_tmp=$tmp
22571
22572 # Set up the scripts for CONFIG_FILES section.
22573 # No need to generate them if there are no CONFIG_FILES.
22574 # This happens for instance with `./config.status config.h'.
22575 if test -n "$CONFIG_FILES"; then
22576
22577
22578 ac_cr=`echo X | tr X '\015'`
22579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22580 # But we know of no other shell where ac_cr would be empty at this
22581 # point, so we can use a bashism as a fallback.
22582 if test "x$ac_cr" = x; then
22583 eval ac_cr=\$\'\\r\'
22584 fi
22585 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22587 ac_cs_awk_cr='\\r'
22588 else
22589 ac_cs_awk_cr=$ac_cr
22590 fi
22591
22592 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22593 _ACEOF
22594
22595
22596 {
22597 echo "cat >conf$$subs.awk <<_ACEOF" &&
22598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22599 echo "_ACEOF"
22600 } >conf$$subs.sh ||
22601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22603 ac_delim='%!_!# '
22604 for ac_last_try in false false false false false :; do
22605 . ./conf$$subs.sh ||
22606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22607
22608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22609 if test $ac_delim_n = $ac_delim_num; then
22610 break
22611 elif $ac_last_try; then
22612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22613 else
22614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22615 fi
22616 done
22617 rm -f conf$$subs.sh
22618
22619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22620 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22621 _ACEOF
22622 sed -n '
22623 h
22624 s/^/S["/; s/!.*/"]=/
22625 p
22626 g
22627 s/^[^!]*!//
22628 :repl
22629 t repl
22630 s/'"$ac_delim"'$//
22631 t delim
22632 :nl
22633 h
22634 s/\(.\{148\}\)..*/\1/
22635 t more1
22636 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22637 p
22638 n
22639 b repl
22640 :more1
22641 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22642 p
22643 g
22644 s/.\{148\}//
22645 t nl
22646 :delim
22647 h
22648 s/\(.\{148\}\)..*/\1/
22649 t more2
22650 s/["\\]/\\&/g; s/^/"/; s/$/"/
22651 p
22652 b
22653 :more2
22654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22655 p
22656 g
22657 s/.\{148\}//
22658 t delim
22659 ' <conf$$subs.awk | sed '
22660 /^[^""]/{
22661 N
22662 s/\n//
22663 }
22664 ' >>$CONFIG_STATUS || ac_write_fail=1
22665 rm -f conf$$subs.awk
22666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22667 _ACAWK
22668 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22669 for (key in S) S_is_set[key] = 1
22670 FS = "\a"
22671
22672 }
22673 {
22674 line = $ 0
22675 nfields = split(line, field, "@")
22676 substed = 0
22677 len = length(field[1])
22678 for (i = 2; i < nfields; i++) {
22679 key = field[i]
22680 keylen = length(key)
22681 if (S_is_set[key]) {
22682 value = S[key]
22683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22684 len += length(value) + length(field[++i])
22685 substed = 1
22686 } else
22687 len += 1 + keylen
22688 }
22689
22690 print line
22691 }
22692
22693 _ACAWK
22694 _ACEOF
22695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22696 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22698 else
22699 cat
22700 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22701 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22702 _ACEOF
22703
22704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22706 # trailing colons and then remove the whole line if VPATH becomes empty
22707 # (actually we leave an empty line to preserve line numbers).
22708 if test "x$srcdir" = x.; then
22709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22710 h
22711 s///
22712 s/^/:/
22713 s/[ ]*$/:/
22714 s/:\$(srcdir):/:/g
22715 s/:\${srcdir}:/:/g
22716 s/:@srcdir@:/:/g
22717 s/^:*//
22718 s/:*$//
22719 x
22720 s/\(=[ ]*\).*/\1/
22721 G
22722 s/\n//
22723 s/^[^=]*=[ ]*$//
22724 }'
22725 fi
22726
22727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22728 fi # test -n "$CONFIG_FILES"
22729
22730 # Set up the scripts for CONFIG_HEADERS section.
22731 # No need to generate them if there are no CONFIG_HEADERS.
22732 # This happens for instance with `./config.status Makefile'.
22733 if test -n "$CONFIG_HEADERS"; then
22734 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22735 BEGIN {
22736 _ACEOF
22737
22738 # Transform confdefs.h into an awk script `defines.awk', embedded as
22739 # here-document in config.status, that substitutes the proper values into
22740 # config.h.in to produce config.h.
22741
22742 # Create a delimiter string that does not exist in confdefs.h, to ease
22743 # handling of long lines.
22744 ac_delim='%!_!# '
22745 for ac_last_try in false false :; do
22746 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22747 if test -z "$ac_tt"; then
22748 break
22749 elif $ac_last_try; then
22750 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22751 else
22752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22753 fi
22754 done
22755
22756 # For the awk script, D is an array of macro values keyed by name,
22757 # likewise P contains macro parameters if any. Preserve backslash
22758 # newline sequences.
22759
22760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22761 sed -n '
22762 s/.\{148\}/&'"$ac_delim"'/g
22763 t rset
22764 :rset
22765 s/^[ ]*#[ ]*define[ ][ ]*/ /
22766 t def
22767 d
22768 :def
22769 s/\\$//
22770 t bsnl
22771 s/["\\]/\\&/g
22772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22773 D["\1"]=" \3"/p
22774 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22775 d
22776 :bsnl
22777 s/["\\]/\\&/g
22778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22779 D["\1"]=" \3\\\\\\n"\\/p
22780 t cont
22781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22782 t cont
22783 d
22784 :cont
22785 n
22786 s/.\{148\}/&'"$ac_delim"'/g
22787 t clear
22788 :clear
22789 s/\\$//
22790 t bsnlc
22791 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22792 d
22793 :bsnlc
22794 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22795 b cont
22796 ' <confdefs.h | sed '
22797 s/'"$ac_delim"'/"\\\
22798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22799
22800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22801 for (key in D) D_is_set[key] = 1
22802 FS = "\a"
22803 }
22804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22805 line = \$ 0
22806 split(line, arg, " ")
22807 if (arg[1] == "#") {
22808 defundef = arg[2]
22809 mac1 = arg[3]
22810 } else {
22811 defundef = substr(arg[1], 2)
22812 mac1 = arg[2]
22813 }
22814 split(mac1, mac2, "(") #)
22815 macro = mac2[1]
22816 prefix = substr(line, 1, index(line, defundef) - 1)
22817 if (D_is_set[macro]) {
22818 # Preserve the white space surrounding the "#".
22819 print prefix "define", macro P[macro] D[macro]
22820 next
22821 } else {
22822 # Replace #undef with comments. This is necessary, for example,
22823 # in the case of _POSIX_SOURCE, which is predefined and required
22824 # on some systems where configure will not decide to define it.
22825 if (defundef == "undef") {
22826 print "/*", prefix defundef, macro, "*/"
22827 next
22828 }
22829 }
22830 }
22831 { print }
22832 _ACAWK
22833 _ACEOF
22834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22835 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22836 fi # test -n "$CONFIG_HEADERS"
22837
22838
22839 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22840 shift
22841 for ac_tag
22842 do
22843 case $ac_tag in
22844 :[FHLC]) ac_mode=$ac_tag; continue;;
22845 esac
22846 case $ac_mode$ac_tag in
22847 :[FHL]*:*);;
22848 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22849 :[FH]-) ac_tag=-:-;;
22850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22851 esac
22852 ac_save_IFS=$IFS
22853 IFS=:
22854 set x $ac_tag
22855 IFS=$ac_save_IFS
22856 shift
22857 ac_file=$1
22858 shift
22859
22860 case $ac_mode in
22861 :L) ac_source=$1;;
22862 :[FH])
22863 ac_file_inputs=
22864 for ac_f
22865 do
22866 case $ac_f in
22867 -) ac_f="$ac_tmp/stdin";;
22868 *) # Look for the file first in the build tree, then in the source tree
22869 # (if the path is not absolute). The absolute path cannot be DOS-style,
22870 # because $ac_f cannot contain `:'.
22871 test -f "$ac_f" ||
22872 case $ac_f in
22873 [\\/$]*) false;;
22874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22875 esac ||
22876 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22877 esac
22878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22879 as_fn_append ac_file_inputs " '$ac_f'"
22880 done
22881
22882 # Let's still pretend it is `configure' which instantiates (i.e., don't
22883 # use $as_me), people would be surprised to read:
22884 # /* config.h. Generated by config.status. */
22885 configure_input='Generated from '`
22886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22887 `' by configure.'
22888 if test x"$ac_file" != x-; then
22889 configure_input="$ac_file. $configure_input"
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22891 $as_echo "$as_me: creating $ac_file" >&6;}
22892 fi
22893 # Neutralize special characters interpreted by sed in replacement strings.
22894 case $configure_input in #(
22895 *\&* | *\|* | *\\* )
22896 ac_sed_conf_input=`$as_echo "$configure_input" |
22897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22898 *) ac_sed_conf_input=$configure_input;;
22899 esac
22900
22901 case $ac_tag in
22902 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22904 esac
22905 ;;
22906 esac
22907
22908 ac_dir=`$as_dirname -- "$ac_file" ||
22909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$ac_file" : 'X\(//\)[^/]' \| \
22911 X"$ac_file" : 'X\(//\)$' \| \
22912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22913 $as_echo X"$ac_file" |
22914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22915 s//\1/
22916 q
22917 }
22918 /^X\(\/\/\)[^/].*/{
22919 s//\1/
22920 q
22921 }
22922 /^X\(\/\/\)$/{
22923 s//\1/
22924 q
22925 }
22926 /^X\(\/\).*/{
22927 s//\1/
22928 q
22929 }
22930 s/.*/./; q'`
22931 as_dir="$ac_dir"; as_fn_mkdir_p
22932 ac_builddir=.
22933
22934 case "$ac_dir" in
22935 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22936 *)
22937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22938 # A ".." for each directory in $ac_dir_suffix.
22939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22940 case $ac_top_builddir_sub in
22941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22943 esac ;;
22944 esac
22945 ac_abs_top_builddir=$ac_pwd
22946 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22947 # for backward compatibility:
22948 ac_top_builddir=$ac_top_build_prefix
22949
22950 case $srcdir in
22951 .) # We are building in place.
22952 ac_srcdir=.
22953 ac_top_srcdir=$ac_top_builddir_sub
22954 ac_abs_top_srcdir=$ac_pwd ;;
22955 [\\/]* | ?:[\\/]* ) # Absolute name.
22956 ac_srcdir=$srcdir$ac_dir_suffix;
22957 ac_top_srcdir=$srcdir
22958 ac_abs_top_srcdir=$srcdir ;;
22959 *) # Relative name.
22960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22961 ac_top_srcdir=$ac_top_build_prefix$srcdir
22962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22963 esac
22964 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22965
22966
22967 case $ac_mode in
22968 :F)
22969 #
22970 # CONFIG_FILE
22971 #
22972
22973 case $INSTALL in
22974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22976 esac
22977 ac_MKDIR_P=$MKDIR_P
22978 case $MKDIR_P in
22979 [\\/$]* | ?:[\\/]* ) ;;
22980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22981 esac
22982 _ACEOF
22983
22984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22985 # If the template does not know about datarootdir, expand it.
22986 # FIXME: This hack should be removed a few years after 2.60.
22987 ac_datarootdir_hack=; ac_datarootdir_seen=
22988 ac_sed_dataroot='
22989 /datarootdir/ {
22990 p
22991 q
22992 }
22993 /@datadir@/p
22994 /@docdir@/p
22995 /@infodir@/p
22996 /@localedir@/p
22997 /@mandir@/p'
22998 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22999 *datarootdir*) ac_datarootdir_seen=yes;;
23000 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23002 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23003 _ACEOF
23004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23005 ac_datarootdir_hack='
23006 s&@datadir@&$datadir&g
23007 s&@docdir@&$docdir&g
23008 s&@infodir@&$infodir&g
23009 s&@localedir@&$localedir&g
23010 s&@mandir@&$mandir&g
23011 s&\\\${datarootdir}&$datarootdir&g' ;;
23012 esac
23013 _ACEOF
23014
23015 # Neutralize VPATH when `$srcdir' = `.'.
23016 # Shell code in configure.ac might set extrasub.
23017 # FIXME: do we really want to maintain this feature?
23018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23019 ac_sed_extra="$ac_vpsub
23020 $extrasub
23021 _ACEOF
23022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023 :t
23024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23025 s|@configure_input@|$ac_sed_conf_input|;t t
23026 s&@top_builddir@&$ac_top_builddir_sub&;t t
23027 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23028 s&@srcdir@&$ac_srcdir&;t t
23029 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23030 s&@top_srcdir@&$ac_top_srcdir&;t t
23031 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23032 s&@builddir@&$ac_builddir&;t t
23033 s&@abs_builddir@&$ac_abs_builddir&;t t
23034 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23035 s&@INSTALL@&$ac_INSTALL&;t t
23036 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23037 $ac_datarootdir_hack
23038 "
23039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23041
23042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23047 which seems to be undefined. Please make sure it is defined" >&5
23048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23049 which seems to be undefined. Please make sure it is defined" >&2;}
23050
23051 rm -f "$ac_tmp/stdin"
23052 case $ac_file in
23053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23055 esac \
23056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23057 ;;
23058 :H)
23059 #
23060 # CONFIG_HEADER
23061 #
23062 if test x"$ac_file" != x-; then
23063 {
23064 $as_echo "/* $configure_input */" \
23065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23066 } >"$ac_tmp/config.h" \
23067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23071 else
23072 rm -f "$ac_file"
23073 mv "$ac_tmp/config.h" "$ac_file" \
23074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23075 fi
23076 else
23077 $as_echo "/* $configure_input */" \
23078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23079 || as_fn_error $? "could not create -" "$LINENO" 5
23080 fi
23081 # Compute "$ac_file"'s index in $config_headers.
23082 _am_arg="$ac_file"
23083 _am_stamp_count=1
23084 for _am_header in $config_headers :; do
23085 case $_am_header in
23086 $_am_arg | $_am_arg:* )
23087 break ;;
23088 * )
23089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23090 esac
23091 done
23092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094 X"$_am_arg" : 'X\(//\)[^/]' \| \
23095 X"$_am_arg" : 'X\(//\)$' \| \
23096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23097 $as_echo X"$_am_arg" |
23098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23099 s//\1/
23100 q
23101 }
23102 /^X\(\/\/\)[^/].*/{
23103 s//\1/
23104 q
23105 }
23106 /^X\(\/\/\)$/{
23107 s//\1/
23108 q
23109 }
23110 /^X\(\/\).*/{
23111 s//\1/
23112 q
23113 }
23114 s/.*/./; q'`/stamp-h$_am_stamp_count
23115 ;;
23116
23117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23118 $as_echo "$as_me: executing $ac_file commands" >&6;}
23119 ;;
23120 esac
23121
23122
23123 case $ac_file$ac_mode in
23124 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23125 # Older Autoconf quotes --file arguments for eval, but not when files
23126 # are listed without --file. Let's play safe and only enable the eval
23127 # if we detect the quoting.
23128 case $CONFIG_FILES in
23129 *\'*) eval set x "$CONFIG_FILES" ;;
23130 *) set x $CONFIG_FILES ;;
23131 esac
23132 shift
23133 for mf
23134 do
23135 # Strip MF so we end up with the name of the file.
23136 mf=`echo "$mf" | sed -e 's/:.*$//'`
23137 # Check whether this is an Automake generated Makefile or not.
23138 # We used to match only the files named 'Makefile.in', but
23139 # some people rename them; so instead we look at the file content.
23140 # Grep'ing the first line is not enough: some people post-process
23141 # each Makefile.in and add a new line on top of each file to say so.
23142 # Grep'ing the whole file is not good either: AIX grep has a line
23143 # limit of 2048, but all sed's we know have understand at least 4000.
23144 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23145 dirpart=`$as_dirname -- "$mf" ||
23146 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23147 X"$mf" : 'X\(//\)[^/]' \| \
23148 X"$mf" : 'X\(//\)$' \| \
23149 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23150 $as_echo X"$mf" |
23151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23152 s//\1/
23153 q
23154 }
23155 /^X\(\/\/\)[^/].*/{
23156 s//\1/
23157 q
23158 }
23159 /^X\(\/\/\)$/{
23160 s//\1/
23161 q
23162 }
23163 /^X\(\/\).*/{
23164 s//\1/
23165 q
23166 }
23167 s/.*/./; q'`
23168 else
23169 continue
23170 fi
23171 # Extract the definition of DEPDIR, am__include, and am__quote
23172 # from the Makefile without running 'make'.
23173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23174 test -z "$DEPDIR" && continue
23175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23176 test -z "$am__include" && continue
23177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23178 # Find all dependency output files, they are included files with
23179 # $(DEPDIR) in their names. We invoke sed twice because it is the
23180 # simplest approach to changing $(DEPDIR) to its actual value in the
23181 # expansion.
23182 for file in `sed -n "
23183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23185 # Make sure the directory exists.
23186 test -f "$dirpart/$file" && continue
23187 fdir=`$as_dirname -- "$file" ||
23188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23189 X"$file" : 'X\(//\)[^/]' \| \
23190 X"$file" : 'X\(//\)$' \| \
23191 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23192 $as_echo X"$file" |
23193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23194 s//\1/
23195 q
23196 }
23197 /^X\(\/\/\)[^/].*/{
23198 s//\1/
23199 q
23200 }
23201 /^X\(\/\/\)$/{
23202 s//\1/
23203 q
23204 }
23205 /^X\(\/\).*/{
23206 s//\1/
23207 q
23208 }
23209 s/.*/./; q'`
23210 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23211 # echo "creating $dirpart/$file"
23212 echo '# dummy' > "$dirpart/$file"
23213 done
23214 done
23215 }
23216 ;;
23217 "libtool":C)
23218
23219 # See if we are running on zsh, and set the options that allow our
23220 # commands through without removal of \ escapes.
23221 if test -n "${ZSH_VERSION+set}"; then
23222 setopt NO_GLOB_SUBST
23223 fi
23224
23225 cfgfile=${ofile}T
23226 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23227 $RM "$cfgfile"
23228
23229 cat <<_LT_EOF >> "$cfgfile"
23230 #! $SHELL
23231 # Generated automatically by $as_me ($PACKAGE) $VERSION
23232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23233 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23234
23235 # Provide generalized library-building support services.
23236 # Written by Gordon Matzigkeit, 1996
23237
23238 # Copyright (C) 2014 Free Software Foundation, Inc.
23239 # This is free software; see the source for copying conditions. There is NO
23240 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23241
23242 # GNU Libtool is free software; you can redistribute it and/or modify
23243 # it under the terms of the GNU General Public License as published by
23244 # the Free Software Foundation; either version 2 of of the License, or
23245 # (at your option) any later version.
23246 #
23247 # As a special exception to the GNU General Public License, if you
23248 # distribute this file as part of a program or library that is built
23249 # using GNU Libtool, you may include this file under the same
23250 # distribution terms that you use for the rest of that program.
23251 #
23252 # GNU Libtool is distributed in the hope that it will be useful, but
23253 # WITHOUT ANY WARRANTY; without even the implied warranty of
23254 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23255 # GNU General Public License for more details.
23256 #
23257 # You should have received a copy of the GNU General Public License
23258 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23259
23260
23261 # The names of the tagged configurations supported by this script.
23262 available_tags='CXX '
23263
23264 # Configured defaults for sys_lib_dlsearch_path munging.
23265 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23266
23267 # ### BEGIN LIBTOOL CONFIG
23268
23269 # Which release of libtool.m4 was used?
23270 macro_version=$macro_version
23271 macro_revision=$macro_revision
23272
23273 # Whether or not to build static libraries.
23274 build_old_libs=$enable_static
23275
23276 # Whether or not to build shared libraries.
23277 build_libtool_libs=$enable_shared
23278
23279 # What type of objects to build.
23280 pic_mode=$pic_mode
23281
23282 # Whether or not to optimize for fast installation.
23283 fast_install=$enable_fast_install
23284
23285 # Shared archive member basename,for filename based shared library versioning on AIX.
23286 shared_archive_member_spec=$shared_archive_member_spec
23287
23288 # Shell to use when invoking shell scripts.
23289 SHELL=$lt_SHELL
23290
23291 # An echo program that protects backslashes.
23292 ECHO=$lt_ECHO
23293
23294 # The PATH separator for the build system.
23295 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23296
23297 # The host system.
23298 host_alias=$host_alias
23299 host=$host
23300 host_os=$host_os
23301
23302 # The build system.
23303 build_alias=$build_alias
23304 build=$build
23305 build_os=$build_os
23306
23307 # A sed program that does not truncate output.
23308 SED=$lt_SED
23309
23310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23311 Xsed="\$SED -e 1s/^X//"
23312
23313 # A grep program that handles long lines.
23314 GREP=$lt_GREP
23315
23316 # An ERE matcher.
23317 EGREP=$lt_EGREP
23318
23319 # A literal string matcher.
23320 FGREP=$lt_FGREP
23321
23322 # A BSD- or MS-compatible name lister.
23323 NM=$lt_NM
23324
23325 # Whether we need soft or hard links.
23326 LN_S=$lt_LN_S
23327
23328 # What is the maximum length of a command?
23329 max_cmd_len=$max_cmd_len
23330
23331 # Object file suffix (normally "o").
23332 objext=$ac_objext
23333
23334 # Executable file suffix (normally "").
23335 exeext=$exeext
23336
23337 # whether the shell understands "unset".
23338 lt_unset=$lt_unset
23339
23340 # turn spaces into newlines.
23341 SP2NL=$lt_lt_SP2NL
23342
23343 # turn newlines into spaces.
23344 NL2SP=$lt_lt_NL2SP
23345
23346 # convert \$build file names to \$host format.
23347 to_host_file_cmd=$lt_cv_to_host_file_cmd
23348
23349 # convert \$build files to toolchain format.
23350 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23351
23352 # An object symbol dumper.
23353 OBJDUMP=$lt_OBJDUMP
23354
23355 # Method to check whether dependent libraries are shared objects.
23356 deplibs_check_method=$lt_deplibs_check_method
23357
23358 # Command to use when deplibs_check_method = "file_magic".
23359 file_magic_cmd=$lt_file_magic_cmd
23360
23361 # How to find potential files when deplibs_check_method = "file_magic".
23362 file_magic_glob=$lt_file_magic_glob
23363
23364 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23365 want_nocaseglob=$lt_want_nocaseglob
23366
23367 # DLL creation program.
23368 DLLTOOL=$lt_DLLTOOL
23369
23370 # Command to associate shared and link libraries.
23371 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23372
23373 # The archiver.
23374 AR=$lt_AR
23375
23376 # Flags to create an archive.
23377 AR_FLAGS=$lt_AR_FLAGS
23378
23379 # How to feed a file listing to the archiver.
23380 archiver_list_spec=$lt_archiver_list_spec
23381
23382 # A symbol stripping program.
23383 STRIP=$lt_STRIP
23384
23385 # Commands used to install an old-style archive.
23386 RANLIB=$lt_RANLIB
23387 old_postinstall_cmds=$lt_old_postinstall_cmds
23388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23389
23390 # Whether to use a lock for old archive extraction.
23391 lock_old_archive_extraction=$lock_old_archive_extraction
23392
23393 # A C compiler.
23394 LTCC=$lt_CC
23395
23396 # LTCC compiler flags.
23397 LTCFLAGS=$lt_CFLAGS
23398
23399 # Take the output of nm and produce a listing of raw symbols and C names.
23400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23401
23402 # Transform the output of nm in a proper C declaration.
23403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23404
23405 # Transform the output of nm into a list of symbols to manually relocate.
23406 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23407
23408 # Transform the output of nm in a C name address pair.
23409 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23410
23411 # Transform the output of nm in a C name address pair when lib prefix is needed.
23412 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23413
23414 # The name lister interface.
23415 nm_interface=$lt_lt_cv_nm_interface
23416
23417 # Specify filename containing input files for \$NM.
23418 nm_file_list_spec=$lt_nm_file_list_spec
23419
23420 # The root where to search for dependent libraries,and where our libraries should be installed.
23421 lt_sysroot=$lt_sysroot
23422
23423 # Command to truncate a binary pipe.
23424 lt_truncate_bin=$lt_lt_cv_truncate_bin
23425
23426 # The name of the directory that contains temporary libtool files.
23427 objdir=$objdir
23428
23429 # Used to examine libraries when file_magic_cmd begins with "file".
23430 MAGIC_CMD=$MAGIC_CMD
23431
23432 # Must we lock files when doing compilation?
23433 need_locks=$lt_need_locks
23434
23435 # Manifest tool.
23436 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23437
23438 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23439 DSYMUTIL=$lt_DSYMUTIL
23440
23441 # Tool to change global to local symbols on Mac OS X.
23442 NMEDIT=$lt_NMEDIT
23443
23444 # Tool to manipulate fat objects and archives on Mac OS X.
23445 LIPO=$lt_LIPO
23446
23447 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23448 OTOOL=$lt_OTOOL
23449
23450 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23451 OTOOL64=$lt_OTOOL64
23452
23453 # Old archive suffix (normally "a").
23454 libext=$libext
23455
23456 # Shared library suffix (normally ".so").
23457 shrext_cmds=$lt_shrext_cmds
23458
23459 # The commands to extract the exported symbol list from a shared archive.
23460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23461
23462 # Variables whose values should be saved in libtool wrapper scripts and
23463 # restored at link time.
23464 variables_saved_for_relink=$lt_variables_saved_for_relink
23465
23466 # Do we need the "lib" prefix for modules?
23467 need_lib_prefix=$need_lib_prefix
23468
23469 # Do we need a version for libraries?
23470 need_version=$need_version
23471
23472 # Library versioning type.
23473 version_type=$version_type
23474
23475 # Shared library runtime path variable.
23476 runpath_var=$runpath_var
23477
23478 # Shared library path variable.
23479 shlibpath_var=$shlibpath_var
23480
23481 # Is shlibpath searched before the hard-coded library search path?
23482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23483
23484 # Format of library name prefix.
23485 libname_spec=$lt_libname_spec
23486
23487 # List of archive names. First name is the real one, the rest are links.
23488 # The last name is the one that the linker finds with -lNAME
23489 library_names_spec=$lt_library_names_spec
23490
23491 # The coded name of the library, if different from the real name.
23492 soname_spec=$lt_soname_spec
23493
23494 # Permission mode override for installation of shared libraries.
23495 install_override_mode=$lt_install_override_mode
23496
23497 # Command to use after installation of a shared archive.
23498 postinstall_cmds=$lt_postinstall_cmds
23499
23500 # Command to use after uninstallation of a shared archive.
23501 postuninstall_cmds=$lt_postuninstall_cmds
23502
23503 # Commands used to finish a libtool library installation in a directory.
23504 finish_cmds=$lt_finish_cmds
23505
23506 # As "finish_cmds", except a single script fragment to be evaled but
23507 # not shown.
23508 finish_eval=$lt_finish_eval
23509
23510 # Whether we should hardcode library paths into libraries.
23511 hardcode_into_libs=$hardcode_into_libs
23512
23513 # Compile-time system search path for libraries.
23514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23515
23516 # Detected run-time system search path for libraries.
23517 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23518
23519 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23520 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23521
23522 # Whether dlopen is supported.
23523 dlopen_support=$enable_dlopen
23524
23525 # Whether dlopen of programs is supported.
23526 dlopen_self=$enable_dlopen_self
23527
23528 # Whether dlopen of statically linked programs is supported.
23529 dlopen_self_static=$enable_dlopen_self_static
23530
23531 # Commands to strip libraries.
23532 old_striplib=$lt_old_striplib
23533 striplib=$lt_striplib
23534
23535
23536 # The linker used to build libraries.
23537 LD=$lt_LD
23538
23539 # How to create reloadable object files.
23540 reload_flag=$lt_reload_flag
23541 reload_cmds=$lt_reload_cmds
23542
23543 # Commands used to build an old-style archive.
23544 old_archive_cmds=$lt_old_archive_cmds
23545
23546 # A language specific compiler.
23547 CC=$lt_compiler
23548
23549 # Is the compiler the GNU compiler?
23550 with_gcc=$GCC
23551
23552 # Compiler flag to turn off builtin functions.
23553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23554
23555 # Additional compiler flags for building library objects.
23556 pic_flag=$lt_lt_prog_compiler_pic
23557
23558 # How to pass a linker flag through the compiler.
23559 wl=$lt_lt_prog_compiler_wl
23560
23561 # Compiler flag to prevent dynamic linking.
23562 link_static_flag=$lt_lt_prog_compiler_static
23563
23564 # Does compiler simultaneously support -c and -o options?
23565 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23566
23567 # Whether or not to add -lc for building shared libraries.
23568 build_libtool_need_lc=$archive_cmds_need_lc
23569
23570 # Whether or not to disallow shared libs when runtime libs are static.
23571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23572
23573 # Compiler flag to allow reflexive dlopens.
23574 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23575
23576 # Compiler flag to generate shared objects directly from archives.
23577 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23578
23579 # Whether the compiler copes with passing no objects directly.
23580 compiler_needs_object=$lt_compiler_needs_object
23581
23582 # Create an old-style archive from a shared archive.
23583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23584
23585 # Create a temporary old-style archive to link instead of a shared archive.
23586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23587
23588 # Commands used to build a shared archive.
23589 archive_cmds=$lt_archive_cmds
23590 archive_expsym_cmds=$lt_archive_expsym_cmds
23591
23592 # Commands used to build a loadable module if different from building
23593 # a shared archive.
23594 module_cmds=$lt_module_cmds
23595 module_expsym_cmds=$lt_module_expsym_cmds
23596
23597 # Whether we are building with GNU ld or not.
23598 with_gnu_ld=$lt_with_gnu_ld
23599
23600 # Flag that allows shared libraries with undefined symbols to be built.
23601 allow_undefined_flag=$lt_allow_undefined_flag
23602
23603 # Flag that enforces no undefined symbols.
23604 no_undefined_flag=$lt_no_undefined_flag
23605
23606 # Flag to hardcode \$libdir into a binary during linking.
23607 # This must work even if \$libdir does not exist
23608 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23609
23610 # Whether we need a single "-rpath" flag with a separated argument.
23611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23612
23613 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23614 # DIR into the resulting binary.
23615 hardcode_direct=$hardcode_direct
23616
23617 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23618 # DIR into the resulting binary and the resulting library dependency is
23619 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23620 # library is relocated.
23621 hardcode_direct_absolute=$hardcode_direct_absolute
23622
23623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23624 # into the resulting binary.
23625 hardcode_minus_L=$hardcode_minus_L
23626
23627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23628 # into the resulting binary.
23629 hardcode_shlibpath_var=$hardcode_shlibpath_var
23630
23631 # Set to "yes" if building a shared library automatically hardcodes DIR
23632 # into the library and all subsequent libraries and executables linked
23633 # against it.
23634 hardcode_automatic=$hardcode_automatic
23635
23636 # Set to yes if linker adds runtime paths of dependent libraries
23637 # to runtime path list.
23638 inherit_rpath=$inherit_rpath
23639
23640 # Whether libtool must link a program against all its dependency libraries.
23641 link_all_deplibs=$link_all_deplibs
23642
23643 # Set to "yes" if exported symbols are required.
23644 always_export_symbols=$always_export_symbols
23645
23646 # The commands to list exported symbols.
23647 export_symbols_cmds=$lt_export_symbols_cmds
23648
23649 # Symbols that should not be listed in the preloaded symbols.
23650 exclude_expsyms=$lt_exclude_expsyms
23651
23652 # Symbols that must always be exported.
23653 include_expsyms=$lt_include_expsyms
23654
23655 # Commands necessary for linking programs (against libraries) with templates.
23656 prelink_cmds=$lt_prelink_cmds
23657
23658 # Commands necessary for finishing linking programs.
23659 postlink_cmds=$lt_postlink_cmds
23660
23661 # Specify filename containing input files.
23662 file_list_spec=$lt_file_list_spec
23663
23664 # How to hardcode a shared library path into an executable.
23665 hardcode_action=$hardcode_action
23666
23667 # The directories searched by this compiler when creating a shared library.
23668 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23669
23670 # Dependencies to place before and after the objects being linked to
23671 # create a shared library.
23672 predep_objects=$lt_predep_objects
23673 postdep_objects=$lt_postdep_objects
23674 predeps=$lt_predeps
23675 postdeps=$lt_postdeps
23676
23677 # The library search path used internally by the compiler when linking
23678 # a shared library.
23679 compiler_lib_search_path=$lt_compiler_lib_search_path
23680
23681 # ### END LIBTOOL CONFIG
23682
23683 _LT_EOF
23684
23685 cat <<'_LT_EOF' >> "$cfgfile"
23686
23687 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23688
23689 # func_munge_path_list VARIABLE PATH
23690 # -----------------------------------
23691 # VARIABLE is name of variable containing _space_ separated list of
23692 # directories to be munged by the contents of PATH, which is string
23693 # having a format:
23694 # "DIR[:DIR]:"
23695 # string "DIR[ DIR]" will be prepended to VARIABLE
23696 # ":DIR[:DIR]"
23697 # string "DIR[ DIR]" will be appended to VARIABLE
23698 # "DIRP[:DIRP]::[DIRA:]DIRA"
23699 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23700 # "DIRA[ DIRA]" will be appended to VARIABLE
23701 # "DIR[:DIR]"
23702 # VARIABLE will be replaced by "DIR[ DIR]"
23703 func_munge_path_list ()
23704 {
23705 case x$2 in
23706 x)
23707 ;;
23708 *:)
23709 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23710 ;;
23711 x:*)
23712 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23713 ;;
23714 *::*)
23715 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23716 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23717 ;;
23718 *)
23719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23720 ;;
23721 esac
23722 }
23723
23724
23725 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23726 func_cc_basename ()
23727 {
23728 for cc_temp in $*""; do
23729 case $cc_temp in
23730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23732 \-*) ;;
23733 *) break;;
23734 esac
23735 done
23736 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23737 }
23738
23739
23740 # ### END FUNCTIONS SHARED WITH CONFIGURE
23741
23742 _LT_EOF
23743
23744 case $host_os in
23745 aix3*)
23746 cat <<\_LT_EOF >> "$cfgfile"
23747 # AIX sometimes has problems with the GCC collect2 program. For some
23748 # reason, if we set the COLLECT_NAMES environment variable, the problems
23749 # vanish in a puff of smoke.
23750 if test set != "${COLLECT_NAMES+set}"; then
23751 COLLECT_NAMES=
23752 export COLLECT_NAMES
23753 fi
23754 _LT_EOF
23755 ;;
23756 esac
23757
23758
23759 ltmain=$ac_aux_dir/ltmain.sh
23760
23761
23762 # We use sed instead of cat because bash on DJGPP gets confused if
23763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23764 # text mode, it properly converts lines to CR/LF. This bash problem
23765 # is reportedly fixed, but why not run on old versions too?
23766 sed '$q' "$ltmain" >> "$cfgfile" \
23767 || (rm -f "$cfgfile"; exit 1)
23768
23769 mv -f "$cfgfile" "$ofile" ||
23770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23771 chmod +x "$ofile"
23772
23773
23774 cat <<_LT_EOF >> "$ofile"
23775
23776 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23777
23778 # The linker used to build libraries.
23779 LD=$lt_LD_CXX
23780
23781 # How to create reloadable object files.
23782 reload_flag=$lt_reload_flag_CXX
23783 reload_cmds=$lt_reload_cmds_CXX
23784
23785 # Commands used to build an old-style archive.
23786 old_archive_cmds=$lt_old_archive_cmds_CXX
23787
23788 # A language specific compiler.
23789 CC=$lt_compiler_CXX
23790
23791 # Is the compiler the GNU compiler?
23792 with_gcc=$GCC_CXX
23793
23794 # Compiler flag to turn off builtin functions.
23795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23796
23797 # Additional compiler flags for building library objects.
23798 pic_flag=$lt_lt_prog_compiler_pic_CXX
23799
23800 # How to pass a linker flag through the compiler.
23801 wl=$lt_lt_prog_compiler_wl_CXX
23802
23803 # Compiler flag to prevent dynamic linking.
23804 link_static_flag=$lt_lt_prog_compiler_static_CXX
23805
23806 # Does compiler simultaneously support -c and -o options?
23807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23808
23809 # Whether or not to add -lc for building shared libraries.
23810 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23811
23812 # Whether or not to disallow shared libs when runtime libs are static.
23813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23814
23815 # Compiler flag to allow reflexive dlopens.
23816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23817
23818 # Compiler flag to generate shared objects directly from archives.
23819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23820
23821 # Whether the compiler copes with passing no objects directly.
23822 compiler_needs_object=$lt_compiler_needs_object_CXX
23823
23824 # Create an old-style archive from a shared archive.
23825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23826
23827 # Create a temporary old-style archive to link instead of a shared archive.
23828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23829
23830 # Commands used to build a shared archive.
23831 archive_cmds=$lt_archive_cmds_CXX
23832 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23833
23834 # Commands used to build a loadable module if different from building
23835 # a shared archive.
23836 module_cmds=$lt_module_cmds_CXX
23837 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23838
23839 # Whether we are building with GNU ld or not.
23840 with_gnu_ld=$lt_with_gnu_ld_CXX
23841
23842 # Flag that allows shared libraries with undefined symbols to be built.
23843 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23844
23845 # Flag that enforces no undefined symbols.
23846 no_undefined_flag=$lt_no_undefined_flag_CXX
23847
23848 # Flag to hardcode \$libdir into a binary during linking.
23849 # This must work even if \$libdir does not exist
23850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23851
23852 # Whether we need a single "-rpath" flag with a separated argument.
23853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23854
23855 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23856 # DIR into the resulting binary.
23857 hardcode_direct=$hardcode_direct_CXX
23858
23859 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23860 # DIR into the resulting binary and the resulting library dependency is
23861 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23862 # library is relocated.
23863 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23864
23865 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23866 # into the resulting binary.
23867 hardcode_minus_L=$hardcode_minus_L_CXX
23868
23869 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23870 # into the resulting binary.
23871 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23872
23873 # Set to "yes" if building a shared library automatically hardcodes DIR
23874 # into the library and all subsequent libraries and executables linked
23875 # against it.
23876 hardcode_automatic=$hardcode_automatic_CXX
23877
23878 # Set to yes if linker adds runtime paths of dependent libraries
23879 # to runtime path list.
23880 inherit_rpath=$inherit_rpath_CXX
23881
23882 # Whether libtool must link a program against all its dependency libraries.
23883 link_all_deplibs=$link_all_deplibs_CXX
23884
23885 # Set to "yes" if exported symbols are required.
23886 always_export_symbols=$always_export_symbols_CXX
23887
23888 # The commands to list exported symbols.
23889 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23890
23891 # Symbols that should not be listed in the preloaded symbols.
23892 exclude_expsyms=$lt_exclude_expsyms_CXX
23893
23894 # Symbols that must always be exported.
23895 include_expsyms=$lt_include_expsyms_CXX
23896
23897 # Commands necessary for linking programs (against libraries) with templates.
23898 prelink_cmds=$lt_prelink_cmds_CXX
23899
23900 # Commands necessary for finishing linking programs.
23901 postlink_cmds=$lt_postlink_cmds_CXX
23902
23903 # Specify filename containing input files.
23904 file_list_spec=$lt_file_list_spec_CXX
23905
23906 # How to hardcode a shared library path into an executable.
23907 hardcode_action=$hardcode_action_CXX
23908
23909 # The directories searched by this compiler when creating a shared library.
23910 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23911
23912 # Dependencies to place before and after the objects being linked to
23913 # create a shared library.
23914 predep_objects=$lt_predep_objects_CXX
23915 postdep_objects=$lt_postdep_objects_CXX
23916 predeps=$lt_predeps_CXX
23917 postdeps=$lt_postdeps_CXX
23918
23919 # The library search path used internally by the compiler when linking
23920 # a shared library.
23921 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23922
23923 # ### END LIBTOOL TAG CONFIG: CXX
23924 _LT_EOF
23925
23926 ;;
23927
23928 esac
23929 done # for ac_tag
23930
23931
23932 as_fn_exit 0
23933 _ACEOF
23934 ac_clean_files=$ac_clean_files_save
23935
23936 test $ac_write_fail = 0 ||
23937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23938
23939
23940 # configure is writing to config.log, and then calls config.status.
23941 # config.status does its own redirection, appending to config.log.
23942 # Unfortunately, on DOS this fails, as config.log is still kept open
23943 # by configure, so config.status won't be able to write to it; its
23944 # output is simply discarded. So we exec the FD to /dev/null,
23945 # effectively closing config.log, so it can be properly (re)opened and
23946 # appended to by config.status. When coming back to configure, we
23947 # need to make the FD available again.
23948 if test "$no_create" != yes; then
23949 ac_cs_success=:
23950 ac_config_status_args=
23951 test "$silent" = yes &&
23952 ac_config_status_args="$ac_config_status_args --quiet"
23953 exec 5>/dev/null
23954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23955 exec 5>>config.log
23956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23957 # would make configure fail if this is the last instruction.
23958 $ac_cs_success || as_fn_exit 1
23959 fi
23960 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23962 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23963 fi
23964