]> git.saurik.com Git - cycript.git/blob - configure
Sort-of improve multi-line editor when in vi mode.
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2009-2015 Jay Freeman (saurik)
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='Cycript'
594 PACKAGE_TARNAME='cycript'
595 PACKAGE_VERSION='0.9'
596 PACKAGE_STRING='Cycript 0.9'
597 PACKAGE_BUGREPORT='saurik@saurik.com'
598 PACKAGE_URL='http://www.cycript.org/'
599
600 ac_unique_file="Console.cpp"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 SO
642 LTFLAGS
643 LTLIBGCC
644 LTLIBTERMCAP
645 LTLIBREADLINE
646 CY_OBJECTIVEC_FALSE
647 CY_OBJECTIVEC_TRUE
648 CY_JAVA_FALSE
649 CY_JAVA_TRUE
650 LTOBJECTIVEC
651 GNUSTEP_CONFIG
652 CY_OBJECTIVEC
653 LTJAVA
654 CY_JAVA
655 LTLIBFFI
656 LIBFFI_LIBS
657 LIBFFI_CFLAGS
658 LTLIBUV
659 CY_EXECUTE_FALSE
660 CY_EXECUTE_TRUE
661 CY_ATTACH_FALSE
662 CY_ATTACH_TRUE
663 CY_CONSOLE_FALSE
664 CY_CONSOLE_TRUE
665 LTJAVASCRIPTCORE
666 WEBKIT_LIBS
667 WEBKIT_CFLAGS
668 CY_EXECUTE
669 PTHREAD_CFLAGS
670 PTHREAD_LIBS
671 PTHREAD_CC
672 ax_pthread_config
673 LFLAGS
674 GNUTAR
675 GPERF
676 FLEX
677 BISON
678 TIME
679 GIT
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 HAVE_CXX11
684 CXXCPP
685 CPP
686 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 DLLTOOL
695 OBJDUMP
696 LN_S
697 NM
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 EGREP
703 GREP
704 SED
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 ac_ct_AR
715 AR
716 am__fastdepOBJCXX_FALSE
717 am__fastdepOBJCXX_TRUE
718 OBJCXXDEPMODE
719 ac_ct_OBJCXX
720 OBJCXXFLAGS
721 OBJCXX
722 am__fastdepCXX_FALSE
723 am__fastdepCXX_TRUE
724 CXXDEPMODE
725 ac_ct_CXX
726 CXXFLAGS
727 CXX
728 am__fastdepCC_FALSE
729 am__fastdepCC_TRUE
730 CCDEPMODE
731 am__nodep
732 AMDEPBACKSLASH
733 AMDEP_FALSE
734 AMDEP_TRUE
735 am__quote
736 am__include
737 DEPDIR
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 MAINT
746 MAINTAINER_MODE_FALSE
747 MAINTAINER_MODE_TRUE
748 AM_BACKSLASH
749 AM_DEFAULT_VERBOSITY
750 AM_DEFAULT_V
751 AM_V
752 am__untar
753 am__tar
754 AMTAR
755 am__leading_dot
756 SET_MAKE
757 AWK
758 mkdir_p
759 MKDIR_P
760 INSTALL_STRIP_PROGRAM
761 STRIP
762 install_sh
763 MAKEINFO
764 AUTOHEADER
765 AUTOMAKE
766 AUTOCONF
767 ACLOCAL
768 VERSION
769 PACKAGE
770 CYGPATH_W
771 am__isrc
772 INSTALL_DATA
773 INSTALL_SCRIPT
774 INSTALL_PROGRAM
775 target_alias
776 host_alias
777 build_alias
778 LIBS
779 ECHO_T
780 ECHO_N
781 ECHO_C
782 DEFS
783 mandir
784 localedir
785 libdir
786 psdir
787 pdfdir
788 dvidir
789 htmldir
790 infodir
791 docdir
792 oldincludedir
793 includedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_silent_rules
817 enable_maintainer_mode
818 enable_dependency_tracking
819 enable_static
820 enable_shared
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_javascript
828 enable_console
829 enable_attach
830 '
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CXX
840 CXXFLAGS
841 CCC
842 OBJCXX
843 OBJCXXFLAGS
844 LT_SYS_LIBRARY_PATH
845 CPP
846 CXXCPP
847 PKG_CONFIG
848 PKG_CONFIG_PATH
849 PKG_CONFIG_LIBDIR
850 BISON
851 FLEX
852 GPERF
853 GNUTAR
854 LFLAGS
855 WEBKIT_CFLAGS
856 WEBKIT_LIBS
857 LIBFFI_CFLAGS
858 LIBFFI_LIBS
859 GNUSTEP_CONFIG'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1273 fi
1274
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1281 fi
1282
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1288 do
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of Cycript 0.9:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
1487 --enable-static[=PKGS] build static libraries [default=no]
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --enable-javascript[=ENGINE]
1493 use a JavaScript runtime (currently the only
1494 available option for ENGINE is JavaScriptCore)
1495 [default=yes]
1496 --disable-console disable console
1497 --disable-attach disable attach
1498
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-aix-soname=aix|svr4|both
1505 shared library versioning (aka "SONAME") variant to
1506 provide on AIX, [default=aix].
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1509 compiler's sysroot if not specified).
1510
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1521 OBJCXX Objective C++ compiler command
1522 OBJCXXFLAGS Objective C++ compiler flags
1523 LT_SYS_LIBRARY_PATH
1524 User-defined run-time library search path.
1525 CPP C preprocessor
1526 CXXCPP C++ preprocessor
1527 PKG_CONFIG path to pkg-config utility
1528 PKG_CONFIG_PATH
1529 directories to add to pkg-config's search path
1530 PKG_CONFIG_LIBDIR
1531 path overriding pkg-config's built-in search path
1532 BISON GNU Project parser generator (yacc replacement)
1533 FLEX the fast lexical analyser generator
1534 GPERF perfect hash function generator
1535 GNUTAR a very sticky lump of files
1536 LFLAGS flex flags
1537 WEBKIT_CFLAGS
1538 C compiler flags for WEBKIT, overriding pkg-config
1539 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1540 GNUSTEP_CONFIG
1541 prints information about the current gnustep installation
1542
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1545
1546 Report bugs to <saurik@saurik.com>.
1547 Cycript home page: <http://www.cycript.org/>.
1548 _ACEOF
1549 ac_status=$?
1550 fi
1551
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609 cat <<\_ACEOF
1610 Cycript configure 0.9
1611 generated by GNU Autoconf 2.69
1612
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1616
1617 Copyright (C) 2009-2015 Jay Freeman (saurik)
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_cxx_try_compile LINENO
1665 # ----------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_cxx_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_cxx_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_cxx_try_compile
1701
1702 # ac_fn_objcxx_try_compile LINENO
1703 # -------------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_objcxx_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_objcxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_objcxx_try_compile
1739
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775 fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_link
1785
1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787 # -------------------------------------------------------
1788 # Tests whether HEADER exists and can be compiled using the include files in
1789 # INCLUDES, setting the cache variable VAR accordingly.
1790 ac_fn_c_check_header_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805 else
1806 eval "$3=no"
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
1815 } # ac_fn_c_check_header_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } > conftest.i && {
1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_c_try_run LINENO
1855 # ----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857 # that executables *can* be run.
1858 ac_fn_c_try_run ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862 case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875 esac
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889 fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1893
1894 } # ac_fn_c_try_run
1895
1896 # ac_fn_c_check_func LINENO FUNC VAR
1897 # ----------------------------------
1898 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1899 ac_fn_c_check_func ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911 #define $2 innocuous_$2
1912
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918 #ifdef __STDC__
1919 # include <limits.h>
1920 #else
1921 # include <assert.h>
1922 #endif
1923
1924 #undef $2
1925
1926 /* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929 #ifdef __cplusplus
1930 extern "C"
1931 #endif
1932 char $2 ();
1933 /* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936 #if defined __stub_$2 || defined __stub___$2
1937 choke me
1938 #endif
1939
1940 int
1941 main ()
1942 {
1943 return $2 ();
1944 ;
1945 return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950 else
1951 eval "$3=no"
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960
1961 } # ac_fn_c_check_func
1962
1963 # ac_fn_cxx_try_cpp LINENO
1964 # ------------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_cxx_try_cpp ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994 fi
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1997
1998 } # ac_fn_cxx_try_cpp
1999
2000 # ac_fn_cxx_try_link LINENO
2001 # -------------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_cxx_try_link ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2008 case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
2027 test -x conftest$ac_exeext
2028 }; then :
2029 ac_retval=0
2030 else
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035 fi
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2043
2044 } # ac_fn_cxx_try_link
2045
2046 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2047 # ---------------------------------------------------------
2048 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2049 # the include files in INCLUDES and setting the cache variable VAR
2050 # accordingly.
2051 ac_fn_cxx_check_header_mongrel ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if eval \${$3+:} false; then :
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2059 fi
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 else
2064 # Is the header compilable?
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2066 $as_echo_n "checking $2 usability... " >&6; }
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 #include <$2>
2071 _ACEOF
2072 if ac_fn_cxx_try_compile "$LINENO"; then :
2073 ac_header_compiler=yes
2074 else
2075 ac_header_compiler=no
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2079 $as_echo "$ac_header_compiler" >&6; }
2080
2081 # Is the header present?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2083 $as_echo_n "checking $2 presence... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_cpp "$LINENO"; then :
2089 ac_header_preproc=yes
2090 else
2091 ac_header_preproc=no
2092 fi
2093 rm -f conftest.err conftest.i conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2095 $as_echo "$ac_header_preproc" >&6; }
2096
2097 # So? What about this header?
2098 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 yes:no: )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2101 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105 no:yes:* )
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2107 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2109 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2111 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2113 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 ( $as_echo "## -------------------------------- ##
2117 ## Report this to saurik@saurik.com ##
2118 ## -------------------------------- ##"
2119 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 ;;
2121 esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=\$ac_header_compiler"
2128 fi
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 fi
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_cxx_check_header_mongrel
2136
2137 # ac_fn_objcxx_try_link LINENO
2138 # ----------------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_objcxx_try_link ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_objcxx_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
2164 test -x conftest$ac_exeext
2165 }; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172 fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2180
2181 } # ac_fn_objcxx_try_link
2182 cat >config.log <<_ACEOF
2183 This file contains any messages produced by compilers while
2184 running configure, to aid debugging if configure makes a mistake.
2185
2186 It was created by Cycript $as_me 0.9, which was
2187 generated by GNU Autoconf 2.69. Invocation command line was
2188
2189 $ $0 $@
2190
2191 _ACEOF
2192 exec 5>>config.log
2193 {
2194 cat <<_ASUNAME
2195 ## --------- ##
2196 ## Platform. ##
2197 ## --------- ##
2198
2199 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207
2208 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215
2216 _ASUNAME
2217
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2220 do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225 IFS=$as_save_IFS
2226
2227 } >&5
2228
2229 cat >&5 <<_ACEOF
2230
2231
2232 ## ----------- ##
2233 ## Core tests. ##
2234 ## ----------- ##
2235
2236 _ACEOF
2237
2238
2239 # Keep a trace of the command line.
2240 # Strip out --no-create and --no-recursion so they do not pile up.
2241 # Strip out --silent because we don't want to record it for future runs.
2242 # Also quote any args containing shell meta-characters.
2243 # Make two passes to allow for proper duplicate-argument suppression.
2244 ac_configure_args=
2245 ac_configure_args0=
2246 ac_configure_args1=
2247 ac_must_keep_next=false
2248 for ac_pass in 1 2
2249 do
2250 for ac_arg
2251 do
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 2)
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2275 ;;
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2278 fi
2279 as_fn_append ac_configure_args " '$ac_arg'"
2280 ;;
2281 esac
2282 done
2283 done
2284 { ac_configure_args0=; unset ac_configure_args0;}
2285 { ac_configure_args1=; unset ac_configure_args1;}
2286
2287 # When interrupted or exit'd, cleanup temporary files, and complete
2288 # config.log. We remove comments because anyway the quotes in there
2289 # would cause problems or look ugly.
2290 # WARNING: Use '\'' to represent an apostrophe within the trap.
2291 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292 trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2294 {
2295 echo
2296
2297 $as_echo "## ---------------- ##
2298 ## Cache variables. ##
2299 ## ---------------- ##"
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2302 (
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2325 *)
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 ;;
2328 esac |
2329 sort
2330 )
2331 echo
2332
2333 $as_echo "## ----------------- ##
2334 ## Output variables. ##
2335 ## ----------------- ##"
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
2348 $as_echo "## ------------------- ##
2349 ## File substitutions. ##
2350 ## ------------------- ##"
2351 echo
2352 for ac_var in $ac_subst_files
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361 fi
2362
2363 if test -s confdefs.h; then
2364 $as_echo "## ----------- ##
2365 ## confdefs.h. ##
2366 ## ----------- ##"
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378 ' 0
2379 for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381 done
2382 ac_signal=0
2383
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest* confdefs.h
2386
2387 $as_echo "/* confdefs.h */" > confdefs.h
2388
2389 # Predefined preprocessor variables.
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2413 _ACEOF
2414
2415
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2418 ac_site_file1=NONE
2419 ac_site_file2=NONE
2420 if test -n "$CONFIG_SITE"; then
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
2427 elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430 else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433 fi
2434 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435 do
2436 test "x$ac_site_file" = xNONE && continue
2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444 as_fn_error $? "failed to load site script $ac_site_file
2445 See \`config.log' for more details" "$LINENO" 5; }
2446 fi
2447 done
2448
2449 if test -r "$cache_file"; then
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454 $as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462 $as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464 fi
2465
2466 # Check that the precious variables saved in the cache have kept the same
2467 # value.
2468 ac_cache_corrupted=false
2469 for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2484 *)
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2514 fi
2515 done
2516 if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522 fi
2523 ## -------------------- ##
2524 ## Main body of script. ##
2525 ## -------------------- ##
2526
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534
2535
2536
2537 ac_aux_dir=
2538 for ac_dir in . "$srcdir"/.; do
2539 if test -f "$ac_dir/install-sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 break
2543 elif test -f "$ac_dir/install.sh"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 break
2547 elif test -f "$ac_dir/shtool"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 break
2551 fi
2552 done
2553 if test -z "$ac_aux_dir"; then
2554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2555 fi
2556
2557 # These three variables are undocumented and unsupported,
2558 # and are intended to be withdrawn in a future Autoconf release.
2559 # They can cause serious problems if a builder's source tree is in a directory
2560 # whose full name contains unusual characters.
2561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
2566
2567 ac_config_headers="$ac_config_headers config.h"
2568
2569
2570 am__api_version='1.15'
2571
2572 # Find a good install program. We prefer a C program (faster),
2573 # so one script is as good as another. But avoid the broken or
2574 # incompatible versions:
2575 # SysV /etc/install, /usr/sbin/install
2576 # SunOS /usr/etc/install
2577 # IRIX /sbin/install
2578 # AIX /bin/install
2579 # AmigaOS /C/install, which installs bootblocks on floppy discs
2580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583 # OS/2's system install, which has a completely different semantic
2584 # ./install, which can be erroneously created by make from ./install.sh.
2585 # Reject install programs that cannot install multiple files.
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2588 if test -z "$INSTALL"; then
2589 if ${ac_cv_path_install+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598 case $as_dir/ in #((
2599 ./ | .// | /[cC]/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2610 if test $ac_prog = install &&
2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # AIX install. It has an incompatible calling convention.
2613 :
2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2618 else
2619 rm -rf conftest.one conftest.two conftest.dir
2620 echo one > conftest.one
2621 echo two > conftest.two
2622 mkdir conftest.dir
2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2624 test -s conftest.one && test -s conftest.two &&
2625 test -s conftest.dir/conftest.one &&
2626 test -s conftest.dir/conftest.two
2627 then
2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2629 break 3
2630 fi
2631 fi
2632 fi
2633 done
2634 done
2635 ;;
2636 esac
2637
2638 done
2639 IFS=$as_save_IFS
2640
2641 rm -rf conftest.one conftest.two conftest.dir
2642
2643 fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL=$ac_cv_path_install
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 INSTALL=$ac_install_sh
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2655 $as_echo "$INSTALL" >&6; }
2656
2657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2658 # It thinks the first close brace ends the variable substitution.
2659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2660
2661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2662
2663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2666 $as_echo_n "checking whether build environment is sane... " >&6; }
2667 # Reject unsafe characters in $srcdir or the absolute working directory
2668 # name. Accept space and tab only in the latter.
2669 am_lf='
2670 '
2671 case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2674 esac
2675 case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2678 esac
2679
2680 # Do 'set' in a subshell so we don't clobber the current shell's
2681 # arguments. Must try -L first in case configure is actually a
2682 # symlink; some systems play weird games with the mod time of symlinks
2683 # (eg FreeBSD returns the mod time of the symlink's containing
2684 # directory).
2685 if (
2686 am_has_slept=no
2687 for am_try in 1 2; do
2688 echo "timestamp, slept: $am_has_slept" > conftest.file
2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2690 if test "$*" = "X"; then
2691 # -L didn't work.
2692 set X `ls -t "$srcdir/configure" conftest.file`
2693 fi
2694 if test "$*" != "X $srcdir/configure conftest.file" \
2695 && test "$*" != "X conftest.file $srcdir/configure"; then
2696
2697 # If neither matched, then we have a broken ls. This can happen
2698 # if, for instance, CONFIG_SHELL is bash and it inherits a
2699 # broken ls alias from the environment. This has actually
2700 # happened. Such a system could not be considered "sane".
2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2702 alias in your environment" "$LINENO" 5
2703 fi
2704 if test "$2" = conftest.file || test $am_try -eq 2; then
2705 break
2706 fi
2707 # Just in case.
2708 sleep 1
2709 am_has_slept=yes
2710 done
2711 test "$2" = conftest.file
2712 )
2713 then
2714 # Ok.
2715 :
2716 else
2717 as_fn_error $? "newly created file is older than distributed files!
2718 Check your system clock" "$LINENO" 5
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722 # If we didn't sleep, we still need to ensure time stamps of config.status and
2723 # generated files are strictly newer.
2724 am_sleep_pid=
2725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2726 ( sleep 1 ) &
2727 am_sleep_pid=$!
2728 fi
2729
2730 rm -f conftest.file
2731
2732 test "$program_prefix" != NONE &&
2733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2734 # Use a double $ so make ignores it.
2735 test "$program_suffix" != NONE &&
2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2737 # Double any \ or $.
2738 # By default was `s,x,x', remove it if useless.
2739 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2740 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741
2742 # Expand $ac_aux_dir to an absolute path.
2743 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744
2745 if test x"${MISSING+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 *)
2750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2751 esac
2752 fi
2753 # Use eval to expand $SHELL
2754 if eval "$MISSING --is-lightweight"; then
2755 am_missing_run="$MISSING "
2756 else
2757 am_missing_run=
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2759 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2760 fi
2761
2762 if test x"${install_sh+set}" != xset; then
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 *)
2767 install_sh="\${SHELL} $am_aux_dir/install-sh"
2768 esac
2769 fi
2770
2771 # Installed binaries are usually stripped using 'strip' when the user
2772 # run "make install-strip". However 'strip' might not be the right
2773 # tool to use in cross-compilation environments, therefore Automake
2774 # will honor the 'STRIP' environment variable to overrule this program.
2775 if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}strip; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_STRIP+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 STRIP=$ac_cv_prog_STRIP
2805 if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807 $as_echo "$STRIP" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 fi
2815 if test -z "$ac_cv_prog_STRIP"; then
2816 ac_ct_STRIP=$STRIP
2817 # Extract the first word of "strip", so it can be a program name with args.
2818 set dummy strip; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 $as_echo "$ac_ct_STRIP" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 STRIP=$ac_ct_STRIP
2863 fi
2864 else
2865 STRIP="$ac_cv_prog_STRIP"
2866 fi
2867
2868 fi
2869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2872 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2873 if test -z "$MKDIR_P"; then
2874 if ${ac_cv_path_mkdir+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in mkdir gmkdir; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2886 'mkdir (GNU coreutils) '* | \
2887 'mkdir (coreutils) '* | \
2888 'mkdir (fileutils) '4.1*)
2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 break 3;;
2891 esac
2892 done
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898
2899 test -d ./--version && rmdir ./--version
2900 if test "${ac_cv_path_mkdir+set}" = set; then
2901 MKDIR_P="$ac_cv_path_mkdir -p"
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for MKDIR_P within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 MKDIR_P="$ac_install_sh -d"
2908 fi
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2911 $as_echo "$MKDIR_P" >&6; }
2912
2913 for ac_prog in gawk mawk nawk awk
2914 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_AWK+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$AWK"; then
2923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_AWK="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 AWK=$ac_cv_prog_AWK
2943 if test -n "$AWK"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2945 $as_echo "$AWK" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 test -n "$AWK" && break
2953 done
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2957 set x ${MAKE-make}
2958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 cat >conftest.make <<\_ACEOF
2963 SHELL = /bin/sh
2964 all:
2965 @echo '@@@%%%=$(MAKE)=@@@%%%'
2966 _ACEOF
2967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2969 *@@@%%%=?*=@@@%%%*)
2970 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 *)
2972 eval ac_cv_prog_make_${ac_make}_set=no;;
2973 esac
2974 rm -f conftest.make
2975 fi
2976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978 $as_echo "yes" >&6; }
2979 SET_MAKE=
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 SET_MAKE="MAKE=${MAKE-make}"
2984 fi
2985
2986 rm -rf .tst 2>/dev/null
2987 mkdir .tst 2>/dev/null
2988 if test -d .tst; then
2989 am__leading_dot=.
2990 else
2991 am__leading_dot=_
2992 fi
2993 rmdir .tst 2>/dev/null
2994
2995 # Check whether --enable-silent-rules was given.
2996 if test "${enable_silent_rules+set}" = set; then :
2997 enableval=$enable_silent_rules;
2998 fi
2999
3000 case $enable_silent_rules in # (((
3001 yes) AM_DEFAULT_VERBOSITY=0;;
3002 no) AM_DEFAULT_VERBOSITY=1;;
3003 *) AM_DEFAULT_VERBOSITY=1;;
3004 esac
3005 am_make=${MAKE-make}
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3007 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3008 if ${am_cv_make_support_nested_variables+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if $as_echo 'TRUE=$(BAR$(V))
3012 BAR0=false
3013 BAR1=true
3014 V=1
3015 am__doit:
3016 @$(TRUE)
3017 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3018 am_cv_make_support_nested_variables=yes
3019 else
3020 am_cv_make_support_nested_variables=no
3021 fi
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3024 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3025 if test $am_cv_make_support_nested_variables = yes; then
3026 AM_V='$(V)'
3027 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3028 else
3029 AM_V=$AM_DEFAULT_VERBOSITY
3030 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031 fi
3032 AM_BACKSLASH='\'
3033
3034 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status; then
3040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041 fi
3042 fi
3043
3044 # test whether we have cygpath
3045 if test -z "$CYGPATH_W"; then
3046 if (cygpath --version) >/dev/null 2>/dev/null; then
3047 CYGPATH_W='cygpath -w'
3048 else
3049 CYGPATH_W=echo
3050 fi
3051 fi
3052
3053
3054 # Define the identity of the package.
3055 PACKAGE='cycript'
3056 VERSION='0.9'
3057
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE "$PACKAGE"
3061 _ACEOF
3062
3063
3064 cat >>confdefs.h <<_ACEOF
3065 #define VERSION "$VERSION"
3066 _ACEOF
3067
3068 # Some tools Automake needs.
3069
3070 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084 # For better backward compatibility. To be removed once Automake 1.9.x
3085 # dies out for good. For more background, see:
3086 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3087 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3088 mkdir_p='$(MKDIR_P)'
3089
3090 # We need awk for the "check" target (and possibly the TAP driver). The
3091 # system "awk" is bad on some platforms.
3092 # Always define AMTAR for backward compatibility. Yes, it's still used
3093 # in the wild :-( We should find a proper way to deprecate it ...
3094 AMTAR='$${TAR-tar}'
3095
3096
3097 # We'll loop over all known methods to create a tar archive until one works.
3098 _am_tools='gnutar pax cpio none'
3099
3100 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3101
3102
3103
3104
3105
3106
3107 # POSIX will say in a future version that running "rm -f" with no argument
3108 # is OK; and we want to be able to make that assumption in our Makefile
3109 # recipes. So use an aggressive probe to check that the usage we want is
3110 # actually supported "in the wild" to an acceptable degree.
3111 # See automake bug#10828.
3112 # To make any issue more visible, cause the running configure to be aborted
3113 # by default if the 'rm' program in use doesn't match our expectations; the
3114 # user can still override this though.
3115 if rm -f && rm -fr && rm -rf; then : OK; else
3116 cat >&2 <<'END'
3117 Oops!
3118
3119 Your 'rm' program seems unable to run without file operands specified
3120 on the command line, even when the '-f' option is present. This is contrary
3121 to the behaviour of most rm programs out there, and not conforming with
3122 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124 Please tell bug-automake@gnu.org about your system, including the value
3125 of your $PATH and any error possibly output before this message. This
3126 can help us improve future automake versions.
3127
3128 END
3129 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130 echo 'Configuration will proceed anyway, since you have set the' >&2
3131 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 echo >&2
3133 else
3134 cat >&2 <<'END'
3135 Aborting the configuration process, to ensure you take notice of the issue.
3136
3137 You can download and install GNU coreutils to get an 'rm' implementation
3138 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3139
3140 If you want to complete the configuration process using your problematic
3141 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142 to "yes", and re-run configure.
3143
3144 END
3145 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146 fi
3147 fi
3148
3149
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3151 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3152 # Check whether --enable-maintainer-mode was given.
3153 if test "${enable_maintainer_mode+set}" = set; then :
3154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3155 else
3156 USE_MAINTAINER_MODE=no
3157 fi
3158
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3160 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3161 if test $USE_MAINTAINER_MODE = yes; then
3162 MAINTAINER_MODE_TRUE=
3163 MAINTAINER_MODE_FALSE='#'
3164 else
3165 MAINTAINER_MODE_TRUE='#'
3166 MAINTAINER_MODE_FALSE=
3167 fi
3168
3169 MAINT=$MAINTAINER_MODE_TRUE
3170
3171
3172
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215
3216 fi
3217 if test -z "$ac_cv_prog_CC"; then
3218 ac_ct_CC=$CC
3219 # Extract the first word of "gcc", so it can be a program name with args.
3220 set dummy gcc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3231 do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_ac_ct_CC="gcc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 fi
3245 fi
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249 $as_echo "$ac_ct_CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 fi
3254
3255 if test "x$ac_ct_CC" = x; then
3256 CC=""
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259 yes:)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3263 esac
3264 CC=$ac_ct_CC
3265 fi
3266 else
3267 CC="$ac_cv_prog_CC"
3268 fi
3269
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3273 set dummy ${ac_tool_prefix}cc; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CC="${ac_tool_prefix}cc"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 CC=$ac_cv_prog_CC
3300 if test -n "$CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302 $as_echo "$CC" >&6; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 fi
3310 fi
3311 if test -z "$CC"; then
3312 # Extract the first word of "cc", so it can be a program name with args.
3313 set dummy cc; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 ac_prog_rejected=no
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3331 ac_prog_rejected=yes
3332 continue
3333 fi
3334 ac_cv_prog_CC="cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 if test $ac_prog_rejected = yes; then
3343 # We found a bogon in the path, so make sure we never use it.
3344 set dummy $ac_cv_prog_CC
3345 shift
3346 if test $# != 0; then
3347 # We chose a different compiler from the bogus one.
3348 # However, it has the same basename, so the bogon will be chosen
3349 # first if we set CC to just the basename; use the full file name.
3350 shift
3351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3352 fi
3353 fi
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366 fi
3367 if test -z "$CC"; then
3368 if test -n "$ac_tool_prefix"; then
3369 for ac_prog in cl.exe
3370 do
3371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC="$CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 CC=$ac_cv_prog_CC
3399 if test -n "$CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 $as_echo "$CC" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407
3408 test -n "$CC" && break
3409 done
3410 fi
3411 if test -z "$CC"; then
3412 ac_ct_CC=$CC
3413 for ac_prog in cl.exe
3414 do
3415 # Extract the first word of "$ac_prog", so it can be a program name with args.
3416 set dummy $ac_prog; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_ac_ct_CC="$ac_prog"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 fi
3450
3451
3452 test -n "$ac_ct_CC" && break
3453 done
3454
3455 if test "x$ac_ct_CC" = x; then
3456 CC=""
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459 yes:)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned=yes ;;
3463 esac
3464 CC=$ac_ct_CC
3465 fi
3466 fi
3467
3468 fi
3469
3470
3471 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "no acceptable C compiler found in \$PATH
3474 See \`config.log' for more details" "$LINENO" 5; }
3475
3476 # Provide some information about the compiler.
3477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3478 set X $ac_compile
3479 ac_compiler=$2
3480 for ac_option in --version -v -V -qversion; do
3481 { { ac_try="$ac_compiler $ac_option >&5"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3489 ac_status=$?
3490 if test -s conftest.err; then
3491 sed '10a\
3492 ... rest of stderr output deleted ...
3493 10q' conftest.err >conftest.er1
3494 cat conftest.er1 >&5
3495 fi
3496 rm -f conftest.er1 conftest.err
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499 done
3500
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 ac_clean_files_save=$ac_clean_files
3513 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3514 # Try to create an executable without -o first, disregard a.out.
3515 # It will help us diagnose broken compilers, and finding out an intuition
3516 # of exeext.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3518 $as_echo_n "checking whether the C compiler works... " >&6; }
3519 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3520
3521 # The possible output files:
3522 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3523
3524 ac_rmfiles=
3525 for ac_file in $ac_files
3526 do
3527 case $ac_file in
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3530 esac
3531 done
3532 rm -f $ac_rmfiles
3533
3534 if { { ac_try="$ac_link_default"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_link_default") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3547 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3548 # so that the user can short-circuit this test for compilers unknown to
3549 # Autoconf.
3550 for ac_file in $ac_files ''
3551 do
3552 test -f "$ac_file" || continue
3553 case $ac_file in
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3555 ;;
3556 [ab].out )
3557 # We found the default executable, but exeext='' is most
3558 # certainly right.
3559 break;;
3560 *.* )
3561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3562 then :; else
3563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3564 fi
3565 # We set ac_cv_exeext here because the later test for it is not
3566 # safe: cross compilers may not add the suffix if given an `-o'
3567 # argument, so we may need to know it at that point already.
3568 # Even if this section looks crufty: it has the advantage of
3569 # actually working.
3570 break;;
3571 * )
3572 break;;
3573 esac
3574 done
3575 test "$ac_cv_exeext" = no && ac_cv_exeext=
3576
3577 else
3578 ac_file=''
3579 fi
3580 if test -z "$ac_file"; then :
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 $as_echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error 77 "C compiler cannot create executables
3589 See \`config.log' for more details" "$LINENO" 5; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 $as_echo "yes" >&6; }
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3595 $as_echo_n "checking for C compiler default output file name... " >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3597 $as_echo "$ac_file" >&6; }
3598 ac_exeext=$ac_cv_exeext
3599
3600 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3603 $as_echo_n "checking for suffix of executables... " >&6; }
3604 if { { ac_try="$ac_link"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3616 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3617 # work properly (i.e., refer to `conftest.exe'), while it won't with
3618 # `rm'.
3619 for ac_file in conftest.exe conftest conftest.*; do
3620 test -f "$ac_file" || continue
3621 case $ac_file in
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3624 break;;
3625 * ) break;;
3626 esac
3627 done
3628 else
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3632 See \`config.log' for more details" "$LINENO" 5; }
3633 fi
3634 rm -f conftest conftest$ac_cv_exeext
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3636 $as_echo "$ac_cv_exeext" >&6; }
3637
3638 rm -f conftest.$ac_ext
3639 EXEEXT=$ac_cv_exeext
3640 ac_exeext=$EXEEXT
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643 #include <stdio.h>
3644 int
3645 main ()
3646 {
3647 FILE *f = fopen ("conftest.out", "w");
3648 return ferror (f) || fclose (f) != 0;
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 ac_clean_files="$ac_clean_files conftest.out"
3655 # Check that the compiler produces executables we can run. If not, either
3656 # the compiler is broken, or we cross compile.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658 $as_echo_n "checking whether we are cross compiling... " >&6; }
3659 if test "$cross_compiling" != yes; then
3660 { { ac_try="$ac_link"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }
3671 if { ac_try='./conftest$ac_cv_exeext'
3672 { { case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3677 $as_echo "$ac_try_echo"; } >&5
3678 (eval "$ac_try") 2>&5
3679 ac_status=$?
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }; }; then
3682 cross_compiling=no
3683 else
3684 if test "$cross_compiling" = maybe; then
3685 cross_compiling=yes
3686 else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "cannot run C compiled programs.
3690 If you meant to cross compile, use \`--host'.
3691 See \`config.log' for more details" "$LINENO" 5; }
3692 fi
3693 fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3696 $as_echo "$cross_compiling" >&6; }
3697
3698 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3699 ac_clean_files=$ac_clean_files_save
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3701 $as_echo_n "checking for suffix of object files... " >&6; }
3702 if ${ac_cv_objext+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.o conftest.obj
3717 if { { ac_try="$ac_compile"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_compile") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 for ac_file in conftest.o conftest.obj conftest.*; do
3729 test -f "$ac_file" || continue;
3730 case $ac_file in
3731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3733 break;;
3734 esac
3735 done
3736 else
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742 as_fn_error $? "cannot compute suffix of object files: cannot compile
3743 See \`config.log' for more details" "$LINENO" 5; }
3744 fi
3745 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3748 $as_echo "$ac_cv_objext" >&6; }
3749 OBJEXT=$ac_cv_objext
3750 ac_objext=$OBJEXT
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3752 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3753 if ${ac_cv_c_compiler_gnu+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758
3759 int
3760 main ()
3761 {
3762 #ifndef __GNUC__
3763 choke me
3764 #endif
3765
3766 ;
3767 return 0;
3768 }
3769 _ACEOF
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_compiler_gnu=yes
3772 else
3773 ac_compiler_gnu=no
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3777
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3780 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3781 if test $ac_compiler_gnu = yes; then
3782 GCC=yes
3783 else
3784 GCC=
3785 fi
3786 ac_test_CFLAGS=${CFLAGS+set}
3787 ac_save_CFLAGS=$CFLAGS
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3789 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3790 if ${ac_cv_prog_cc_g+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 ac_save_c_werror_flag=$ac_c_werror_flag
3794 ac_c_werror_flag=yes
3795 ac_cv_prog_cc_g=no
3796 CFLAGS="-g"
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799
3800 int
3801 main ()
3802 {
3803
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_prog_cc_g=yes
3810 else
3811 CFLAGS=""
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 int
3816 main ()
3817 {
3818
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824
3825 else
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3827 CFLAGS="-g"
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_g=yes
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_c_werror_flag=$ac_save_c_werror_flag
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3850 $as_echo "$ac_cv_prog_cc_g" >&6; }
3851 if test "$ac_test_CFLAGS" = set; then
3852 CFLAGS=$ac_save_CFLAGS
3853 elif test $ac_cv_prog_cc_g = yes; then
3854 if test "$GCC" = yes; then
3855 CFLAGS="-g -O2"
3856 else
3857 CFLAGS="-g"
3858 fi
3859 else
3860 if test "$GCC" = yes; then
3861 CFLAGS="-O2"
3862 else
3863 CFLAGS=
3864 fi
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3867 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3868 if ${ac_cv_prog_cc_c89+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_cv_prog_cc_c89=no
3872 ac_save_CC=$CC
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875 #include <stdarg.h>
3876 #include <stdio.h>
3877 struct stat;
3878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879 struct buf { int x; };
3880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881 static char *e (p, i)
3882 char **p;
3883 int i;
3884 {
3885 return p[i];
3886 }
3887 static char *f (char * (*g) (char **, int), char **p, ...)
3888 {
3889 char *s;
3890 va_list v;
3891 va_start (v,p);
3892 s = g (p, va_arg (v,int));
3893 va_end (v);
3894 return s;
3895 }
3896
3897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
3900 as 'x'. The following induces an error, until -std is added to get
3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
3903 that's true only with -std. */
3904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3905
3906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3908 #define FOO(x) 'x'
3909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3910
3911 int test (int i, double x);
3912 struct s1 {int (*f) (int a);};
3913 struct s2 {int (*f) (double a);};
3914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3915 int argc;
3916 char **argv;
3917 int
3918 main ()
3919 {
3920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3927 do
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c89=$ac_arg
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3934 done
3935 rm -f conftest.$ac_ext
3936 CC=$ac_save_CC
3937
3938 fi
3939 # AC_CACHE_VAL
3940 case "x$ac_cv_prog_cc_c89" in
3941 x)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951 esac
3952 if test "x$ac_cv_prog_cc_c89" != xno; then :
3953
3954 fi
3955
3956 ac_ext=c
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3968 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3969 if ${am_cv_prog_cc_c_o+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main ()
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 # Make sure it works both with $CC and with simple cc.
3984 # Following AC_PROG_CC_C_O, we do the test twice because some
3985 # compilers refuse to overwrite an existing .o file with -o,
3986 # though they will create one.
3987 am_cv_prog_cc_c_o=yes
3988 for am_i in 1 2; do
3989 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3990 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } \
3994 && test -f conftest2.$ac_objext; then
3995 : OK
3996 else
3997 am_cv_prog_cc_c_o=no
3998 break
3999 fi
4000 done
4001 rm -f core conftest*
4002 unset am_i
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4005 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4006 if test "$am_cv_prog_cc_c_o" != yes; then
4007 # Losing compiler, so override with the script.
4008 # FIXME: It is wrong to rewrite CC.
4009 # But if we don't then we get into trouble of one sort or another.
4010 # A longer-term fix would be to have automake use am__CC in this case,
4011 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4012 CC="$am_aux_dir/compile $CC"
4013 fi
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020 DEPDIR="${am__leading_dot}deps"
4021
4022 ac_config_commands="$ac_config_commands depfiles"
4023
4024
4025 am_make=${MAKE-make}
4026 cat > confinc << 'END'
4027 am__doit:
4028 @echo this is the am__doit target
4029 .PHONY: am__doit
4030 END
4031 # If we don't find an include directive, just comment out the code.
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4033 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4034 am__include="#"
4035 am__quote=
4036 _am_result=none
4037 # First try GNU make style include.
4038 echo "include confinc" > confmf
4039 # Ignore all kinds of additional output from 'make'.
4040 case `$am_make -s -f confmf 2> /dev/null` in #(
4041 *the\ am__doit\ target*)
4042 am__include=include
4043 am__quote=
4044 _am_result=GNU
4045 ;;
4046 esac
4047 # Now try BSD make style include.
4048 if test "$am__include" = "#"; then
4049 echo '.include "confinc"' > confmf
4050 case `$am_make -s -f confmf 2> /dev/null` in #(
4051 *the\ am__doit\ target*)
4052 am__include=.include
4053 am__quote="\""
4054 _am_result=BSD
4055 ;;
4056 esac
4057 fi
4058
4059
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4061 $as_echo "$_am_result" >&6; }
4062 rm -f confinc confmf
4063
4064 # Check whether --enable-dependency-tracking was given.
4065 if test "${enable_dependency_tracking+set}" = set; then :
4066 enableval=$enable_dependency_tracking;
4067 fi
4068
4069 if test "x$enable_dependency_tracking" != xno; then
4070 am_depcomp="$ac_aux_dir/depcomp"
4071 AMDEPBACKSLASH='\'
4072 am__nodep='_no'
4073 fi
4074 if test "x$enable_dependency_tracking" != xno; then
4075 AMDEP_TRUE=
4076 AMDEP_FALSE='#'
4077 else
4078 AMDEP_TRUE='#'
4079 AMDEP_FALSE=
4080 fi
4081
4082
4083
4084 depcc="$CC" am_compiler_list=
4085
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4087 $as_echo_n "checking dependency style of $depcc... " >&6; }
4088 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4092 # We make a subdir and do the tests there. Otherwise we can end up
4093 # making bogus files that we don't know about and never remove. For
4094 # instance it was reported that on HP-UX the gcc test will end up
4095 # making a dummy file named 'D' -- because '-MD' means "put the output
4096 # in D".
4097 rm -rf conftest.dir
4098 mkdir conftest.dir
4099 # Copy depcomp to subdir because otherwise we won't find it if we're
4100 # using a relative directory.
4101 cp "$am_depcomp" conftest.dir
4102 cd conftest.dir
4103 # We will build objects and dependencies in a subdirectory because
4104 # it helps to detect inapplicable dependency modes. For instance
4105 # both Tru64's cc and ICC support -MD to output dependencies as a
4106 # side effect of compilation, but ICC will put the dependencies in
4107 # the current directory while Tru64 will put them in the object
4108 # directory.
4109 mkdir sub
4110
4111 am_cv_CC_dependencies_compiler_type=none
4112 if test "$am_compiler_list" = ""; then
4113 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 fi
4115 am__universal=false
4116 case " $depcc " in #(
4117 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4118 esac
4119
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4124 #
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4128 : > sub/conftest.c
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4132 # Solaris 10 /bin/sh.
4133 echo '/* dummy */' > sub/conftst$i.h
4134 done
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4136
4137 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4138 # mode. It turns out that the SunPro C++ compiler does not properly
4139 # handle '-M -o', and we need to detect this. Also, some Intel
4140 # versions had trouble with output in subdirs.
4141 am__obj=sub/conftest.${OBJEXT-o}
4142 am__minus_obj="-o $am__obj"
4143 case $depmode in
4144 gcc)
4145 # This depmode causes a compiler race in universal mode.
4146 test "$am__universal" = false || continue
4147 ;;
4148 nosideeffect)
4149 # After this tag, mechanisms are not by side-effect, so they'll
4150 # only be used when explicitly requested.
4151 if test "x$enable_dependency_tracking" = xyes; then
4152 continue
4153 else
4154 break
4155 fi
4156 ;;
4157 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4158 # This compiler won't grok '-c -o', but also, the minuso test has
4159 # not run yet. These depmodes are late enough in the game, and
4160 # so weak that their functioning should not be impacted.
4161 am__obj=conftest.${OBJEXT-o}
4162 am__minus_obj=
4163 ;;
4164 none) break ;;
4165 esac
4166 if depmode=$depmode \
4167 source=sub/conftest.c object=$am__obj \
4168 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4169 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4170 >/dev/null 2>conftest.err &&
4171 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4175 # icc doesn't choke on unknown options, it will just issue warnings
4176 # or remarks (even with -Werror). So we grep stderr for any message
4177 # that says an option was ignored or not supported.
4178 # When given -MP, icc 7.0 and 7.1 complain thusly:
4179 # icc: Command line warning: ignoring option '-M'; no argument required
4180 # The diagnosis changed in icc 8.0:
4181 # icc: Command line remark: option '-MP' not supported
4182 if (grep 'ignoring option' conftest.err ||
4183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4184 am_cv_CC_dependencies_compiler_type=$depmode
4185 break
4186 fi
4187 fi
4188 done
4189
4190 cd ..
4191 rm -rf conftest.dir
4192 else
4193 am_cv_CC_dependencies_compiler_type=none
4194 fi
4195
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4200
4201 if
4202 test "x$enable_dependency_tracking" != xno \
4203 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4204 am__fastdepCC_TRUE=
4205 am__fastdepCC_FALSE='#'
4206 else
4207 am__fastdepCC_TRUE='#'
4208 am__fastdepCC_FALSE=
4209 fi
4210
4211
4212 ac_ext=cpp
4213 ac_cpp='$CXXCPP $CPPFLAGS'
4214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4217 if test -z "$CXX"; then
4218 if test -n "$CCC"; then
4219 CXX=$CCC
4220 else
4221 if test -n "$ac_tool_prefix"; then
4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4223 do
4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_CXX+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$CXX"; then
4232 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 CXX=$ac_cv_prog_CXX
4252 if test -n "$CXX"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4254 $as_echo "$CXX" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$CXX" && break
4262 done
4263 fi
4264 if test -z "$CXX"; then
4265 ac_ct_CXX=$CXX
4266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4267 do
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$ac_ct_CXX"; then
4276 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_ac_ct_CXX="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289 done
4290 done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4296 if test -n "$ac_ct_CXX"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4298 $as_echo "$ac_ct_CXX" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304
4305 test -n "$ac_ct_CXX" && break
4306 done
4307
4308 if test "x$ac_ct_CXX" = x; then
4309 CXX="g++"
4310 else
4311 case $cross_compiling:$ac_tool_warned in
4312 yes:)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315 ac_tool_warned=yes ;;
4316 esac
4317 CXX=$ac_ct_CXX
4318 fi
4319 fi
4320
4321 fi
4322 fi
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336 ac_status=$?
4337 if test -s conftest.err; then
4338 sed '10a\
4339 ... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 fi
4343 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346 done
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4349 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4350 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355
4356 int
4357 main ()
4358 {
4359 #ifndef __GNUC__
4360 choke me
4361 #endif
4362
4363 ;
4364 return 0;
4365 }
4366 _ACEOF
4367 if ac_fn_cxx_try_compile "$LINENO"; then :
4368 ac_compiler_gnu=yes
4369 else
4370 ac_compiler_gnu=no
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4374
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4377 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4378 if test $ac_compiler_gnu = yes; then
4379 GXX=yes
4380 else
4381 GXX=
4382 fi
4383 ac_test_CXXFLAGS=${CXXFLAGS+set}
4384 ac_save_CXXFLAGS=$CXXFLAGS
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4386 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4387 if ${ac_cv_prog_cxx_g+:} false; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4391 ac_cxx_werror_flag=yes
4392 ac_cv_prog_cxx_g=no
4393 CXXFLAGS="-g"
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_cxx_try_compile "$LINENO"; then :
4406 ac_cv_prog_cxx_g=yes
4407 else
4408 CXXFLAGS=""
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 int
4413 main ()
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_cxx_try_compile "$LINENO"; then :
4421
4422 else
4423 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4424 CXXFLAGS="-g"
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427
4428 int
4429 main ()
4430 {
4431
4432 ;
4433 return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_cxx_try_compile "$LINENO"; then :
4437 ac_cv_prog_cxx_g=yes
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4447 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4448 if test "$ac_test_CXXFLAGS" = set; then
4449 CXXFLAGS=$ac_save_CXXFLAGS
4450 elif test $ac_cv_prog_cxx_g = yes; then
4451 if test "$GXX" = yes; then
4452 CXXFLAGS="-g -O2"
4453 else
4454 CXXFLAGS="-g"
4455 fi
4456 else
4457 if test "$GXX" = yes; then
4458 CXXFLAGS="-O2"
4459 else
4460 CXXFLAGS=
4461 fi
4462 fi
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469 depcc="$CXX" am_compiler_list=
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4472 $as_echo_n "checking dependency style of $depcc... " >&6; }
4473 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477 # We make a subdir and do the tests there. Otherwise we can end up
4478 # making bogus files that we don't know about and never remove. For
4479 # instance it was reported that on HP-UX the gcc test will end up
4480 # making a dummy file named 'D' -- because '-MD' means "put the output
4481 # in D".
4482 rm -rf conftest.dir
4483 mkdir conftest.dir
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4487 cd conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4493 # directory.
4494 mkdir sub
4495
4496 am_cv_CXX_dependencies_compiler_type=none
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4499 fi
4500 am__universal=false
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4503 esac
4504
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4509 #
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4513 : > sub/conftest.c
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517 # Solaris 10 /bin/sh.
4518 echo '/* dummy */' > sub/conftst$i.h
4519 done
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4521
4522 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle '-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs.
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4528 case $depmode in
4529 gcc)
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4532 ;;
4533 nosideeffect)
4534 # After this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested.
4536 if test "x$enable_dependency_tracking" = xyes; then
4537 continue
4538 else
4539 break
4540 fi
4541 ;;
4542 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543 # This compiler won't grok '-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4547 am__minus_obj=
4548 ;;
4549 none) break ;;
4550 esac
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569 am_cv_CXX_dependencies_compiler_type=$depmode
4570 break
4571 fi
4572 fi
4573 done
4574
4575 cd ..
4576 rm -rf conftest.dir
4577 else
4578 am_cv_CXX_dependencies_compiler_type=none
4579 fi
4580
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4583 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4585
4586 if
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4589 am__fastdepCXX_TRUE=
4590 am__fastdepCXX_FALSE='#'
4591 else
4592 am__fastdepCXX_TRUE='#'
4593 am__fastdepCXX_FALSE=
4594 fi
4595
4596
4597 ac_ext=mm
4598 ac_cpp='$OBJCXXCPP $CPPFLAGS'
4599 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in g++ objc++ objcxx c++ CXX
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_prog_OBJCXX+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$OBJCXX"; then
4613 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 OBJCXX=$ac_cv_prog_OBJCXX
4633 if test -n "$OBJCXX"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4635 $as_echo "$OBJCXX" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640
4641
4642 test -n "$OBJCXX" && break
4643 done
4644 fi
4645 if test -z "$OBJCXX"; then
4646 ac_ct_OBJCXX=$OBJCXX
4647 for ac_prog in g++ objc++ objcxx c++ CXX
4648 do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$ac_ct_OBJCXX"; then
4657 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4677 if test -n "$ac_ct_OBJCXX"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4679 $as_echo "$ac_ct_OBJCXX" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685
4686 test -n "$ac_ct_OBJCXX" && break
4687 done
4688
4689 if test "x$ac_ct_OBJCXX" = x; then
4690 OBJCXX="g++"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693 yes:)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned=yes ;;
4697 esac
4698 OBJCXX=$ac_ct_OBJCXX
4699 fi
4700 fi
4701
4702 # Provide some information about the compiler.
4703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
4704 set X $ac_compile
4705 ac_compiler=$2
4706 for ac_option in --version -v -V -qversion; do
4707 { { ac_try="$ac_compiler $ac_option >&5"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713 $as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4715 ac_status=$?
4716 if test -s conftest.err; then
4717 sed '10a\
4718 ... rest of stderr output deleted ...
4719 10q' conftest.err >conftest.er1
4720 cat conftest.er1 >&5
4721 fi
4722 rm -f conftest.er1 conftest.err
4723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4724 test $ac_status = 0; }
4725 done
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4728 $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4729 if ${ac_cv_objcxx_compiler_gnu+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734
4735 int
4736 main ()
4737 {
4738 #ifndef __GNUC__
4739 choke me
4740 #endif
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_objcxx_try_compile "$LINENO"; then :
4747 ac_compiler_gnu=yes
4748 else
4749 ac_compiler_gnu=no
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
4753
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4756 $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
4757 if test $ac_compiler_gnu = yes; then
4758 GOBJCXX=yes
4759 else
4760 GOBJCXX=
4761 fi
4762 ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4763 ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4765 $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4766 if ${ac_cv_prog_objcxx_g+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4770 ac_objcxx_werror_flag=yes
4771 ac_cv_prog_objcxx_g=no
4772 OBJCXXFLAGS="-g"
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_objcxx_try_compile "$LINENO"; then :
4785 ac_cv_prog_objcxx_g=yes
4786 else
4787 OBJCXXFLAGS=""
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794
4795 ;
4796 return 0;
4797 }
4798 _ACEOF
4799 if ac_fn_objcxx_try_compile "$LINENO"; then :
4800
4801 else
4802 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4803 OBJCXXFLAGS="-g"
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4806
4807 int
4808 main ()
4809 {
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 if ac_fn_objcxx_try_compile "$LINENO"; then :
4816 ac_cv_prog_objcxx_g=yes
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 fi
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4826 $as_echo "$ac_cv_prog_objcxx_g" >&6; }
4827 if test "$ac_test_OBJCXXFLAGS" = set; then
4828 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4829 elif test $ac_cv_prog_objcxx_g = yes; then
4830 if test "$GOBJCXX" = yes; then
4831 OBJCXXFLAGS="-g -O2"
4832 else
4833 OBJCXXFLAGS="-g"
4834 fi
4835 else
4836 if test "$GOBJCXX" = yes; then
4837 OBJCXXFLAGS="-O2"
4838 else
4839 OBJCXXFLAGS=
4840 fi
4841 fi
4842 ac_ext=c
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848 depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851 $as_echo_n "checking dependency style of $depcc... " >&6; }
4852 if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856 # We make a subdir and do the tests there. Otherwise we can end up
4857 # making bogus files that we don't know about and never remove. For
4858 # instance it was reported that on HP-UX the gcc test will end up
4859 # making a dummy file named 'D' -- because '-MD' means "put the output
4860 # in D".
4861 rm -rf conftest.dir
4862 mkdir conftest.dir
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4866 cd conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4872 # directory.
4873 mkdir sub
4874
4875 am_cv_OBJCXX_dependencies_compiler_type=none
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4878 fi
4879 am__universal=false
4880
4881
4882 for depmode in $am_compiler_list; do
4883 # Setup a source with many dependencies, because some compilers
4884 # like to wrap large dependency lists on column 80 (with \), and
4885 # we should not choose a depcomp mode which is confused by this.
4886 #
4887 # We need to recreate these files for each test, as the compiler may
4888 # overwrite some of them when testing with obscure command lines.
4889 # This happens at least with the AIX C compiler.
4890 : > sub/conftest.c
4891 for i in 1 2 3 4 5 6; do
4892 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4894 # Solaris 10 /bin/sh.
4895 echo '/* dummy */' > sub/conftst$i.h
4896 done
4897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4898
4899 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4900 # mode. It turns out that the SunPro C++ compiler does not properly
4901 # handle '-M -o', and we need to detect this. Also, some Intel
4902 # versions had trouble with output in subdirs.
4903 am__obj=sub/conftest.${OBJEXT-o}
4904 am__minus_obj="-o $am__obj"
4905 case $depmode in
4906 gcc)
4907 # This depmode causes a compiler race in universal mode.
4908 test "$am__universal" = false || continue
4909 ;;
4910 nosideeffect)
4911 # After this tag, mechanisms are not by side-effect, so they'll
4912 # only be used when explicitly requested.
4913 if test "x$enable_dependency_tracking" = xyes; then
4914 continue
4915 else
4916 break
4917 fi
4918 ;;
4919 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4920 # This compiler won't grok '-c -o', but also, the minuso test has
4921 # not run yet. These depmodes are late enough in the game, and
4922 # so weak that their functioning should not be impacted.
4923 am__obj=conftest.${OBJEXT-o}
4924 am__minus_obj=
4925 ;;
4926 none) break ;;
4927 esac
4928 if depmode=$depmode \
4929 source=sub/conftest.c object=$am__obj \
4930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4932 >/dev/null 2>conftest.err &&
4933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4937 # icc doesn't choke on unknown options, it will just issue warnings
4938 # or remarks (even with -Werror). So we grep stderr for any message
4939 # that says an option was ignored or not supported.
4940 # When given -MP, icc 7.0 and 7.1 complain thusly:
4941 # icc: Command line warning: ignoring option '-M'; no argument required
4942 # The diagnosis changed in icc 8.0:
4943 # icc: Command line remark: option '-MP' not supported
4944 if (grep 'ignoring option' conftest.err ||
4945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4946 am_cv_OBJCXX_dependencies_compiler_type=$depmode
4947 break
4948 fi
4949 fi
4950 done
4951
4952 cd ..
4953 rm -rf conftest.dir
4954 else
4955 am_cv_OBJCXX_dependencies_compiler_type=none
4956 fi
4957
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4960 $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4961 OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
4962
4963 if
4964 test "x$enable_dependency_tracking" != xno \
4965 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4966 am__fastdepOBJCXX_TRUE=
4967 am__fastdepOBJCXX_FALSE='#'
4968 else
4969 am__fastdepOBJCXX_TRUE='#'
4970 am__fastdepOBJCXX_FALSE=
4971 fi
4972
4973
4974
4975
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in ar lib "link -lib"
4978 do
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_AR+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$AR"; then
4987 ac_cv_prog_AR="$AR" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004 fi
5005 fi
5006 AR=$ac_cv_prog_AR
5007 if test -n "$AR"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5009 $as_echo "$AR" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015
5016 test -n "$AR" && break
5017 done
5018 fi
5019 if test -z "$AR"; then
5020 ac_ct_AR=$AR
5021 for ac_prog in ar lib "link -lib"
5022 do
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_ac_ct_AR="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044 done
5045 done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5051 if test -n "$ac_ct_AR"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5053 $as_echo "$ac_ct_AR" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058
5059
5060 test -n "$ac_ct_AR" && break
5061 done
5062
5063 if test "x$ac_ct_AR" = x; then
5064 AR="false"
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070 ac_tool_warned=yes ;;
5071 esac
5072 AR=$ac_ct_AR
5073 fi
5074 fi
5075
5076 : ${AR=ar}
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5079 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5080 if ${am_cv_ar_interface+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088
5089 am_cv_ar_interface=ar
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 int some_variable = 0;
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5097 (eval $am_ar_try) 2>&5
5098 ac_status=$?
5099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5100 test $ac_status = 0; }
5101 if test "$ac_status" -eq 0; then
5102 am_cv_ar_interface=ar
5103 else
5104 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5106 (eval $am_ar_try) 2>&5
5107 ac_status=$?
5108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5109 test $ac_status = 0; }
5110 if test "$ac_status" -eq 0; then
5111 am_cv_ar_interface=lib
5112 else
5113 am_cv_ar_interface=unknown
5114 fi
5115 fi
5116 rm -f conftest.lib libconftest.a
5117
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126 fi
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5128 $as_echo "$am_cv_ar_interface" >&6; }
5129
5130 case $am_cv_ar_interface in
5131 ar)
5132 ;;
5133 lib)
5134 # Microsoft lib, so override with the ar-lib wrapper script.
5135 # FIXME: It is wrong to rewrite AR.
5136 # But if we don't then we get into trouble of one sort or another.
5137 # A longer-term fix would be to have automake use am__AR in this case,
5138 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5139 # similar.
5140 AR="$am_aux_dir/ar-lib $AR"
5141 ;;
5142 unknown)
5143 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5144 ;;
5145 esac
5146
5147
5148
5149 case `pwd` in
5150 *\ * | *\ *)
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5152 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5153 esac
5154
5155
5156
5157 macro_version='2.4.6'
5158 macro_revision='2.4.6'
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172 ltmain=$ac_aux_dir/ltmain.sh
5173
5174 # Make sure we can run config.sub.
5175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5176 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5179 $as_echo_n "checking build system type... " >&6; }
5180 if ${ac_cv_build+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 ac_build_alias=$build_alias
5184 test "x$ac_build_alias" = x &&
5185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5186 test "x$ac_build_alias" = x &&
5187 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5189 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5190
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5193 $as_echo "$ac_cv_build" >&6; }
5194 case $ac_cv_build in
5195 *-*-*) ;;
5196 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5197 esac
5198 build=$ac_cv_build
5199 ac_save_IFS=$IFS; IFS='-'
5200 set x $ac_cv_build
5201 shift
5202 build_cpu=$1
5203 build_vendor=$2
5204 shift; shift
5205 # Remember, the first character of IFS is used to create $*,
5206 # except with old shells:
5207 build_os=$*
5208 IFS=$ac_save_IFS
5209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5213 $as_echo_n "checking host system type... " >&6; }
5214 if ${ac_cv_host+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test "x$host_alias" = x; then
5218 ac_cv_host=$ac_cv_build
5219 else
5220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5222 fi
5223
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5226 $as_echo "$ac_cv_host" >&6; }
5227 case $ac_cv_host in
5228 *-*-*) ;;
5229 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5230 esac
5231 host=$ac_cv_host
5232 ac_save_IFS=$IFS; IFS='-'
5233 set x $ac_cv_host
5234 shift
5235 host_cpu=$1
5236 host_vendor=$2
5237 shift; shift
5238 # Remember, the first character of IFS is used to create $*,
5239 # except with old shells:
5240 host_os=$*
5241 IFS=$ac_save_IFS
5242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5243
5244
5245 # Backslashify metacharacters that are still active within
5246 # double-quoted strings.
5247 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5248
5249 # Same as above, but do not quote variable references.
5250 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5251
5252 # Sed substitution to delay expansion of an escaped shell variable in a
5253 # double_quote_subst'ed string.
5254 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5255
5256 # Sed substitution to delay expansion of an escaped single quote.
5257 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5258
5259 # Sed substitution to avoid accidental globbing in evaled expressions
5260 no_glob_subst='s/\*/\\\*/g'
5261
5262 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5263 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5264 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5267 $as_echo_n "checking how to print strings... " >&6; }
5268 # Test print first, because it will be a builtin if present.
5269 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5270 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5271 ECHO='print -r --'
5272 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5273 ECHO='printf %s\n'
5274 else
5275 # Use this function as a fallback that always works.
5276 func_fallback_echo ()
5277 {
5278 eval 'cat <<_LTECHO_EOF
5279 $1
5280 _LTECHO_EOF'
5281 }
5282 ECHO='func_fallback_echo'
5283 fi
5284
5285 # func_echo_all arg...
5286 # Invoke $ECHO with all args, space-separated.
5287 func_echo_all ()
5288 {
5289 $ECHO ""
5290 }
5291
5292 case $ECHO in
5293 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5294 $as_echo "printf" >&6; } ;;
5295 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5296 $as_echo "print -r" >&6; } ;;
5297 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5298 $as_echo "cat" >&6; } ;;
5299 esac
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5315 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5316 if ${ac_cv_path_SED+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5320 for ac_i in 1 2 3 4 5 6 7; do
5321 ac_script="$ac_script$as_nl$ac_script"
5322 done
5323 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5324 { ac_script=; unset ac_script;}
5325 if test -z "$SED"; then
5326 ac_path_SED_found=false
5327 # Loop through the user's path and test for each of PROGNAME-LIST
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
5333 for ac_prog in sed gsed; do
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5336 as_fn_executable_p "$ac_path_SED" || continue
5337 # Check for GNU ac_path_SED and select it if it is found.
5338 # Check for GNU $ac_path_SED
5339 case `"$ac_path_SED" --version 2>&1` in
5340 *GNU*)
5341 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5342 *)
5343 ac_count=0
5344 $as_echo_n 0123456789 >"conftest.in"
5345 while :
5346 do
5347 cat "conftest.in" "conftest.in" >"conftest.tmp"
5348 mv "conftest.tmp" "conftest.in"
5349 cp "conftest.in" "conftest.nl"
5350 $as_echo '' >> "conftest.nl"
5351 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5353 as_fn_arith $ac_count + 1 && ac_count=$as_val
5354 if test $ac_count -gt ${ac_path_SED_max-0}; then
5355 # Best one so far, save it but keep looking for a better one
5356 ac_cv_path_SED="$ac_path_SED"
5357 ac_path_SED_max=$ac_count
5358 fi
5359 # 10*(2^10) chars as input seems more than enough
5360 test $ac_count -gt 10 && break
5361 done
5362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363 esac
5364
5365 $ac_path_SED_found && break 3
5366 done
5367 done
5368 done
5369 IFS=$as_save_IFS
5370 if test -z "$ac_cv_path_SED"; then
5371 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5372 fi
5373 else
5374 ac_cv_path_SED=$SED
5375 fi
5376
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5379 $as_echo "$ac_cv_path_SED" >&6; }
5380 SED="$ac_cv_path_SED"
5381 rm -f conftest.sed
5382
5383 test -z "$SED" && SED=sed
5384 Xsed="$SED -e 1s/^X//"
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_prog in grep ggrep; do
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p "$ac_path_GREP" || continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5416 *GNU*)
5417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5418 *)
5419 ac_count=0
5420 $as_echo_n 0123456789 >"conftest.in"
5421 while :
5422 do
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5429 as_fn_arith $ac_count + 1 && ac_count=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP="$ac_path_GREP"
5433 ac_path_GREP_max=$ac_count
5434 fi
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5437 done
5438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5439 esac
5440
5441 $ac_path_GREP_found && break 3
5442 done
5443 done
5444 done
5445 IFS=$as_save_IFS
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 fi
5449 else
5450 ac_cv_path_GREP=$GREP
5451 fi
5452
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP="$ac_cv_path_GREP"
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5465 then ac_cv_path_EGREP="$GREP -E"
5466 else
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_prog in egrep; do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_EGREP" || continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5482 *GNU*)
5483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5484 *)
5485 ac_count=0
5486 $as_echo_n 0123456789 >"conftest.in"
5487 while :
5488 do
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5495 as_fn_arith $ac_count + 1 && ac_count=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP="$ac_path_EGREP"
5499 ac_path_EGREP_max=$ac_count
5500 fi
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5503 done
5504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5505 esac
5506
5507 $ac_path_EGREP_found && break 3
5508 done
5509 done
5510 done
5511 IFS=$as_save_IFS
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5514 fi
5515 else
5516 ac_cv_path_EGREP=$EGREP
5517 fi
5518
5519 fi
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP="$ac_cv_path_EGREP"
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5527 $as_echo_n "checking for fgrep... " >&6; }
5528 if ${ac_cv_path_FGREP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5532 then ac_cv_path_FGREP="$GREP -F"
5533 else
5534 if test -z "$FGREP"; then
5535 ac_path_FGREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_prog in fgrep; do
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5545 as_fn_executable_p "$ac_path_FGREP" || continue
5546 # Check for GNU ac_path_FGREP and select it if it is found.
5547 # Check for GNU $ac_path_FGREP
5548 case `"$ac_path_FGREP" --version 2>&1` in
5549 *GNU*)
5550 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5551 *)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
5559 $as_echo 'FGREP' >> "conftest.nl"
5560 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
5563 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5564 # Best one so far, save it but keep looking for a better one
5565 ac_cv_path_FGREP="$ac_path_FGREP"
5566 ac_path_FGREP_max=$ac_count
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572 esac
5573
5574 $ac_path_FGREP_found && break 3
5575 done
5576 done
5577 done
5578 IFS=$as_save_IFS
5579 if test -z "$ac_cv_path_FGREP"; then
5580 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5581 fi
5582 else
5583 ac_cv_path_FGREP=$FGREP
5584 fi
5585
5586 fi
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5589 $as_echo "$ac_cv_path_FGREP" >&6; }
5590 FGREP="$ac_cv_path_FGREP"
5591
5592
5593 test -z "$GREP" && GREP=grep
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 # Check whether --with-gnu-ld was given.
5614 if test "${with_gnu_ld+set}" = set; then :
5615 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5616 else
5617 with_gnu_ld=no
5618 fi
5619
5620 ac_prog=ld
5621 if test yes = "$GCC"; then
5622 # Check if gcc -print-prog-name=ld gives a path.
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5624 $as_echo_n "checking for ld used by $CC... " >&6; }
5625 case $host in
5626 *-*-mingw*)
5627 # gcc leaves a trailing carriage return, which upsets mingw
5628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5629 *)
5630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5631 esac
5632 case $ac_prog in
5633 # Accept absolute paths.
5634 [\\/]* | ?:[\\/]*)
5635 re_direlt='/[^/][^/]*/\.\./'
5636 # Canonicalize the pathname of ld
5637 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5638 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5639 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5640 done
5641 test -z "$LD" && LD=$ac_prog
5642 ;;
5643 "")
5644 # If it fails, then pretend we aren't using GCC.
5645 ac_prog=ld
5646 ;;
5647 *)
5648 # If it is relative, then search for the first ld in PATH.
5649 with_gnu_ld=unknown
5650 ;;
5651 esac
5652 elif test yes = "$with_gnu_ld"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5654 $as_echo_n "checking for GNU ld... " >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5657 $as_echo_n "checking for non-GNU ld... " >&6; }
5658 fi
5659 if ${lt_cv_path_LD+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -z "$LD"; then
5663 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS=$lt_save_ifs
5666 test -z "$ac_dir" && ac_dir=.
5667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5668 lt_cv_path_LD=$ac_dir/$ac_prog
5669 # Check to see if the program is GNU ld. I'd rather use --version,
5670 # but apparently some variants of GNU ld only accept -v.
5671 # Break only if it was the GNU/non-GNU ld that we prefer.
5672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5673 *GNU* | *'with BFD'*)
5674 test no != "$with_gnu_ld" && break
5675 ;;
5676 *)
5677 test yes != "$with_gnu_ld" && break
5678 ;;
5679 esac
5680 fi
5681 done
5682 IFS=$lt_save_ifs
5683 else
5684 lt_cv_path_LD=$LD # Let the user override the test with a path.
5685 fi
5686 fi
5687
5688 LD=$lt_cv_path_LD
5689 if test -n "$LD"; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5691 $as_echo "$LD" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5698 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5699 if ${lt_cv_prog_gnu_ld+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5703 case `$LD -v 2>&1 </dev/null` in
5704 *GNU* | *'with BFD'*)
5705 lt_cv_prog_gnu_ld=yes
5706 ;;
5707 *)
5708 lt_cv_prog_gnu_ld=no
5709 ;;
5710 esac
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5713 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5714 with_gnu_ld=$lt_cv_prog_gnu_ld
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5725 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5726 if ${lt_cv_path_NM+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$NM"; then
5730 # Let the user override the test.
5731 lt_cv_path_NM=$NM
5732 else
5733 lt_nm_to_check=${ac_tool_prefix}nm
5734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735 lt_nm_to_check="$lt_nm_to_check nm"
5736 fi
5737 for lt_tmp_nm in $lt_nm_to_check; do
5738 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5740 IFS=$lt_save_ifs
5741 test -z "$ac_dir" && ac_dir=.
5742 tmp_nm=$ac_dir/$lt_tmp_nm
5743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5744 # Check to see if the nm accepts a BSD-compat flag.
5745 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5746 # nm: unknown option "B" ignored
5747 # Tru64's nm complains that /dev/null is an invalid object file
5748 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5749 case $build_os in
5750 mingw*) lt_bad_file=conftest.nm/nofile ;;
5751 *) lt_bad_file=/dev/null ;;
5752 esac
5753 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5754 *$lt_bad_file* | *'Invalid file or object type'*)
5755 lt_cv_path_NM="$tmp_nm -B"
5756 break 2
5757 ;;
5758 *)
5759 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5760 */dev/null*)
5761 lt_cv_path_NM="$tmp_nm -p"
5762 break 2
5763 ;;
5764 *)
5765 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5766 continue # so that we can try to find one that supports BSD flags
5767 ;;
5768 esac
5769 ;;
5770 esac
5771 fi
5772 done
5773 IFS=$lt_save_ifs
5774 done
5775 : ${lt_cv_path_NM=no}
5776 fi
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5779 $as_echo "$lt_cv_path_NM" >&6; }
5780 if test no != "$lt_cv_path_NM"; then
5781 NM=$lt_cv_path_NM
5782 else
5783 # Didn't find any BSD compatible name lister, look for dumpbin.
5784 if test -n "$DUMPBIN"; then :
5785 # Let the user override the test.
5786 else
5787 if test -n "$ac_tool_prefix"; then
5788 for ac_prog in dumpbin "link -dump"
5789 do
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if ${ac_cv_prog_DUMPBIN+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$DUMPBIN"; then
5798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 break 2
5810 fi
5811 done
5812 done
5813 IFS=$as_save_IFS
5814
5815 fi
5816 fi
5817 DUMPBIN=$ac_cv_prog_DUMPBIN
5818 if test -n "$DUMPBIN"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5820 $as_echo "$DUMPBIN" >&6; }
5821 else
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825
5826
5827 test -n "$DUMPBIN" && break
5828 done
5829 fi
5830 if test -z "$DUMPBIN"; then
5831 ac_ct_DUMPBIN=$DUMPBIN
5832 for ac_prog in dumpbin "link -dump"
5833 do
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 if test -n "$ac_ct_DUMPBIN"; then
5842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5862 if test -n "$ac_ct_DUMPBIN"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5864 $as_echo "$ac_ct_DUMPBIN" >&6; }
5865 else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869
5870
5871 test -n "$ac_ct_DUMPBIN" && break
5872 done
5873
5874 if test "x$ac_ct_DUMPBIN" = x; then
5875 DUMPBIN=":"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 DUMPBIN=$ac_ct_DUMPBIN
5884 fi
5885 fi
5886
5887 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5888 *COFF*)
5889 DUMPBIN="$DUMPBIN -symbols -headers"
5890 ;;
5891 *)
5892 DUMPBIN=:
5893 ;;
5894 esac
5895 fi
5896
5897 if test : != "$DUMPBIN"; then
5898 NM=$DUMPBIN
5899 fi
5900 fi
5901 test -z "$NM" && NM=nm
5902
5903
5904
5905
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5909 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5910 if ${lt_cv_nm_interface+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 lt_cv_nm_interface="BSD nm"
5914 echo "int some_variable = 0;" > conftest.$ac_ext
5915 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5916 (eval "$ac_compile" 2>conftest.err)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5919 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5920 cat conftest.err >&5
5921 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5922 cat conftest.out >&5
5923 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5924 lt_cv_nm_interface="MS dumpbin"
5925 fi
5926 rm -rf conftest*
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5929 $as_echo "$lt_cv_nm_interface" >&6; }
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5932 $as_echo_n "checking whether ln -s works... " >&6; }
5933 LN_S=$as_ln_s
5934 if test "$LN_S" = "ln -s"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5936 $as_echo "yes" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5939 $as_echo "no, using $LN_S" >&6; }
5940 fi
5941
5942 # find the maximum length of command line arguments
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5945 if ${lt_cv_sys_max_cmd_len+:} false; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 i=0
5949 teststring=ABCD
5950
5951 case $build_os in
5952 msdosdjgpp*)
5953 # On DJGPP, this test can blow up pretty badly due to problems in libc
5954 # (any single argument exceeding 2000 bytes causes a buffer overrun
5955 # during glob expansion). Even if it were fixed, the result of this
5956 # check would be larger than it should be.
5957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5958 ;;
5959
5960 gnu*)
5961 # Under GNU Hurd, this test is not required because there is
5962 # no limit to the length of command line arguments.
5963 # Libtool will interpret -1 as no limit whatsoever
5964 lt_cv_sys_max_cmd_len=-1;
5965 ;;
5966
5967 cygwin* | mingw* | cegcc*)
5968 # On Win9x/ME, this test blows up -- it succeeds, but takes
5969 # about 5 minutes as the teststring grows exponentially.
5970 # Worse, since 9x/ME are not pre-emptively multitasking,
5971 # you end up with a "frozen" computer, even though with patience
5972 # the test eventually succeeds (with a max line length of 256k).
5973 # Instead, let's just punt: use the minimum linelength reported by
5974 # all of the supported platforms: 8192 (on NT/2K/XP).
5975 lt_cv_sys_max_cmd_len=8192;
5976 ;;
5977
5978 mint*)
5979 # On MiNT this can take a long time and run out of memory.
5980 lt_cv_sys_max_cmd_len=8192;
5981 ;;
5982
5983 amigaos*)
5984 # On AmigaOS with pdksh, this test takes hours, literally.
5985 # So we just punt and use a minimum line length of 8192.
5986 lt_cv_sys_max_cmd_len=8192;
5987 ;;
5988
5989 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5990 # This has been around since 386BSD, at least. Likely further.
5991 if test -x /sbin/sysctl; then
5992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5993 elif test -x /usr/sbin/sysctl; then
5994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5995 else
5996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5997 fi
5998 # And add a safety zone
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6001 ;;
6002
6003 interix*)
6004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6005 lt_cv_sys_max_cmd_len=196608
6006 ;;
6007
6008 os2*)
6009 # The test takes a long time on OS/2.
6010 lt_cv_sys_max_cmd_len=8192
6011 ;;
6012
6013 osf*)
6014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6016 # nice to cause kernel panics so lets avoid the loop below.
6017 # First set a reasonable default.
6018 lt_cv_sys_max_cmd_len=16384
6019 #
6020 if test -x /sbin/sysconfig; then
6021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6023 esac
6024 fi
6025 ;;
6026 sco3.2v5*)
6027 lt_cv_sys_max_cmd_len=102400
6028 ;;
6029 sysv5* | sco5v6* | sysv4.2uw2*)
6030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6031 if test -n "$kargmax"; then
6032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6033 else
6034 lt_cv_sys_max_cmd_len=32768
6035 fi
6036 ;;
6037 *)
6038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6039 if test -n "$lt_cv_sys_max_cmd_len" && \
6040 test undefined != "$lt_cv_sys_max_cmd_len"; then
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6043 else
6044 # Make teststring a little bigger before we do anything with it.
6045 # a 1K string should be a reasonable start.
6046 for i in 1 2 3 4 5 6 7 8; do
6047 teststring=$teststring$teststring
6048 done
6049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6050 # If test is not a shell built-in, we'll probably end up computing a
6051 # maximum length that is only half of the actual maximum length, but
6052 # we can't tell.
6053 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6054 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6055 test 17 != "$i" # 1/2 MB should be enough
6056 do
6057 i=`expr $i + 1`
6058 teststring=$teststring$teststring
6059 done
6060 # Only check the string length outside the loop.
6061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6062 teststring=
6063 # Add a significant safety factor because C++ compilers can tack on
6064 # massive amounts of additional arguments before passing them to the
6065 # linker. It appears as though 1/2 is a usable value.
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6067 fi
6068 ;;
6069 esac
6070
6071 fi
6072
6073 if test -n "$lt_cv_sys_max_cmd_len"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6075 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6076 else
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6078 $as_echo "none" >&6; }
6079 fi
6080 max_cmd_len=$lt_cv_sys_max_cmd_len
6081
6082
6083
6084
6085
6086
6087 : ${CP="cp -f"}
6088 : ${MV="mv -f"}
6089 : ${RM="rm -f"}
6090
6091 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6092 lt_unset=unset
6093 else
6094 lt_unset=false
6095 fi
6096
6097
6098
6099
6100
6101 # test EBCDIC or ASCII
6102 case `echo X|tr X '\101'` in
6103 A) # ASCII based system
6104 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6105 lt_SP2NL='tr \040 \012'
6106 lt_NL2SP='tr \015\012 \040\040'
6107 ;;
6108 *) # EBCDIC based system
6109 lt_SP2NL='tr \100 \n'
6110 lt_NL2SP='tr \r\n \100\100'
6111 ;;
6112 esac
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6123 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6124 if ${lt_cv_to_host_file_cmd+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 case $host in
6128 *-*-mingw* )
6129 case $build in
6130 *-*-mingw* ) # actually msys
6131 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6132 ;;
6133 *-*-cygwin* )
6134 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6135 ;;
6136 * ) # otherwise, assume *nix
6137 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6138 ;;
6139 esac
6140 ;;
6141 *-*-cygwin* )
6142 case $build in
6143 *-*-mingw* ) # actually msys
6144 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6145 ;;
6146 *-*-cygwin* )
6147 lt_cv_to_host_file_cmd=func_convert_file_noop
6148 ;;
6149 * ) # otherwise, assume *nix
6150 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6151 ;;
6152 esac
6153 ;;
6154 * ) # unhandled hosts (and "normal" native builds)
6155 lt_cv_to_host_file_cmd=func_convert_file_noop
6156 ;;
6157 esac
6158
6159 fi
6160
6161 to_host_file_cmd=$lt_cv_to_host_file_cmd
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6163 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6164
6165
6166
6167
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6170 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6171 if ${lt_cv_to_tool_file_cmd+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 #assume ordinary cross tools, or native build.
6175 lt_cv_to_tool_file_cmd=func_convert_file_noop
6176 case $host in
6177 *-*-mingw* )
6178 case $build in
6179 *-*-mingw* ) # actually msys
6180 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6181 ;;
6182 esac
6183 ;;
6184 esac
6185
6186 fi
6187
6188 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6190 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6191
6192
6193
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6197 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6198 if ${lt_cv_ld_reload_flag+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 lt_cv_ld_reload_flag='-r'
6202 fi
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6204 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6205 reload_flag=$lt_cv_ld_reload_flag
6206 case $reload_flag in
6207 "" | " "*) ;;
6208 *) reload_flag=" $reload_flag" ;;
6209 esac
6210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6211 case $host_os in
6212 cygwin* | mingw* | pw32* | cegcc*)
6213 if test yes != "$GCC"; then
6214 reload_cmds=false
6215 fi
6216 ;;
6217 darwin*)
6218 if test yes = "$GCC"; then
6219 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6220 else
6221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6222 fi
6223 ;;
6224 esac
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_OBJDUMP+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$OBJDUMP"; then
6243 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 OBJDUMP=$ac_cv_prog_OBJDUMP
6263 if test -n "$OBJDUMP"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6265 $as_echo "$OBJDUMP" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271
6272 fi
6273 if test -z "$ac_cv_prog_OBJDUMP"; then
6274 ac_ct_OBJDUMP=$OBJDUMP
6275 # Extract the first word of "objdump", so it can be a program name with args.
6276 set dummy objdump; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$ac_ct_OBJDUMP"; then
6283 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6287 do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296 done
6297 done
6298 IFS=$as_save_IFS
6299
6300 fi
6301 fi
6302 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6303 if test -n "$ac_ct_OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6305 $as_echo "$ac_ct_OBJDUMP" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6309 fi
6310
6311 if test "x$ac_ct_OBJDUMP" = x; then
6312 OBJDUMP="false"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318 ac_tool_warned=yes ;;
6319 esac
6320 OBJDUMP=$ac_ct_OBJDUMP
6321 fi
6322 else
6323 OBJDUMP="$ac_cv_prog_OBJDUMP"
6324 fi
6325
6326 test -z "$OBJDUMP" && OBJDUMP=objdump
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6337 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6338 if ${lt_cv_deplibs_check_method+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 lt_cv_file_magic_cmd='$MAGIC_CMD'
6342 lt_cv_file_magic_test_file=
6343 lt_cv_deplibs_check_method='unknown'
6344 # Need to set the preceding variable on all platforms that support
6345 # interlibrary dependencies.
6346 # 'none' -- dependencies not supported.
6347 # 'unknown' -- same as none, but documents that we really don't know.
6348 # 'pass_all' -- all dependencies passed with no checks.
6349 # 'test_compile' -- check by making test program.
6350 # 'file_magic [[regex]]' -- check by looking for files in library path
6351 # that responds to the $file_magic_cmd with a given extended regex.
6352 # If you have 'file' or equivalent on your system and you're not sure
6353 # whether 'pass_all' will *always* work, you probably want this one.
6354
6355 case $host_os in
6356 aix[4-9]*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
6359
6360 beos*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 bsdi[45]*)
6365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6366 lt_cv_file_magic_cmd='/usr/bin/file -L'
6367 lt_cv_file_magic_test_file=/shlib/libc.so
6368 ;;
6369
6370 cygwin*)
6371 # func_win32_libid is a shell function defined in ltmain.sh
6372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6373 lt_cv_file_magic_cmd='func_win32_libid'
6374 ;;
6375
6376 mingw* | pw32*)
6377 # Base MSYS/MinGW do not provide the 'file' command needed by
6378 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6379 # unless we find 'file', for example because we are cross-compiling.
6380 if ( file / ) >/dev/null 2>&1; then
6381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6382 lt_cv_file_magic_cmd='func_win32_libid'
6383 else
6384 # Keep this pattern in sync with the one in func_win32_libid.
6385 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6386 lt_cv_file_magic_cmd='$OBJDUMP -f'
6387 fi
6388 ;;
6389
6390 cegcc*)
6391 # use the weaker test based on 'objdump'. See mingw*.
6392 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6393 lt_cv_file_magic_cmd='$OBJDUMP -f'
6394 ;;
6395
6396 darwin* | rhapsody*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 freebsd* | dragonfly*)
6401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6402 case $host_cpu in
6403 i*86 )
6404 # Not sure whether the presence of OpenBSD here was a mistake.
6405 # Let's accept both of them until this is cleared up.
6406 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6409 ;;
6410 esac
6411 else
6412 lt_cv_deplibs_check_method=pass_all
6413 fi
6414 ;;
6415
6416 haiku*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420 hpux10.20* | hpux11*)
6421 lt_cv_file_magic_cmd=/usr/bin/file
6422 case $host_cpu in
6423 ia64*)
6424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6425 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6426 ;;
6427 hppa*64*)
6428 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]'
6429 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6430 ;;
6431 *)
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6433 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6434 ;;
6435 esac
6436 ;;
6437
6438 interix[3-9]*)
6439 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6441 ;;
6442
6443 irix5* | irix6* | nonstopux*)
6444 case $LD in
6445 *-32|*"-32 ") libmagic=32-bit;;
6446 *-n32|*"-n32 ") libmagic=N32;;
6447 *-64|*"-64 ") libmagic=64-bit;;
6448 *) libmagic=never-match;;
6449 esac
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453 # This must be glibc/ELF.
6454 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457
6458 netbsd*)
6459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6461 else
6462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6463 fi
6464 ;;
6465
6466 newos6*)
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6468 lt_cv_file_magic_cmd=/usr/bin/file
6469 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6470 ;;
6471
6472 *nto* | *qnx*)
6473 lt_cv_deplibs_check_method=pass_all
6474 ;;
6475
6476 openbsd* | bitrig*)
6477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6479 else
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481 fi
6482 ;;
6483
6484 osf3* | osf4* | osf5*)
6485 lt_cv_deplibs_check_method=pass_all
6486 ;;
6487
6488 rdos*)
6489 lt_cv_deplibs_check_method=pass_all
6490 ;;
6491
6492 solaris*)
6493 lt_cv_deplibs_check_method=pass_all
6494 ;;
6495
6496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 sysv4 | sysv4.3*)
6501 case $host_vendor in
6502 motorola)
6503 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]'
6504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6505 ;;
6506 ncr)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509 sequent)
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6512 ;;
6513 sni)
6514 lt_cv_file_magic_cmd='/bin/file'
6515 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6516 lt_cv_file_magic_test_file=/lib/libc.so
6517 ;;
6518 siemens)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 pc)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524 esac
6525 ;;
6526
6527 tpf*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530 os2*)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 esac
6534
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6537 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6538
6539 file_magic_glob=
6540 want_nocaseglob=no
6541 if test "$build" = "$host"; then
6542 case $host_os in
6543 mingw* | pw32*)
6544 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6545 want_nocaseglob=yes
6546 else
6547 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6548 fi
6549 ;;
6550 esac
6551 fi
6552
6553 file_magic_cmd=$lt_cv_file_magic_cmd
6554 deplibs_check_method=$lt_cv_deplibs_check_method
6555 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578 if test -n "$ac_tool_prefix"; then
6579 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6580 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if ${ac_cv_prog_DLLTOOL+:} false; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$DLLTOOL"; then
6587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600 done
6601 done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 DLLTOOL=$ac_cv_prog_DLLTOOL
6607 if test -n "$DLLTOOL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6609 $as_echo "$DLLTOOL" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615
6616 fi
6617 if test -z "$ac_cv_prog_DLLTOOL"; then
6618 ac_ct_DLLTOOL=$DLLTOOL
6619 # Extract the first word of "dlltool", so it can be a program name with args.
6620 set dummy dlltool; ac_word=$2
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6622 $as_echo_n "checking for $ac_word... " >&6; }
6623 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$ac_ct_DLLTOOL"; then
6627 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6628 else
6629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
6635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644 fi
6645 fi
6646 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6647 if test -n "$ac_ct_DLLTOOL"; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6649 $as_echo "$ac_ct_DLLTOOL" >&6; }
6650 else
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6652 $as_echo "no" >&6; }
6653 fi
6654
6655 if test "x$ac_ct_DLLTOOL" = x; then
6656 DLLTOOL="false"
6657 else
6658 case $cross_compiling:$ac_tool_warned in
6659 yes:)
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6662 ac_tool_warned=yes ;;
6663 esac
6664 DLLTOOL=$ac_ct_DLLTOOL
6665 fi
6666 else
6667 DLLTOOL="$ac_cv_prog_DLLTOOL"
6668 fi
6669
6670 test -z "$DLLTOOL" && DLLTOOL=dlltool
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6682 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6683 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 lt_cv_sharedlib_from_linklib_cmd='unknown'
6687
6688 case $host_os in
6689 cygwin* | mingw* | pw32* | cegcc*)
6690 # two different shell functions defined in ltmain.sh;
6691 # decide which one to use based on capabilities of $DLLTOOL
6692 case `$DLLTOOL --help 2>&1` in
6693 *--identify-strict*)
6694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6695 ;;
6696 *)
6697 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6698 ;;
6699 esac
6700 ;;
6701 *)
6702 # fallback: assume linklib IS sharedlib
6703 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6704 ;;
6705 esac
6706
6707 fi
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6709 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6710 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6711 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6712
6713
6714
6715
6716
6717
6718
6719 if test -n "$ac_tool_prefix"; then
6720 for ac_prog in ar
6721 do
6722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_AR+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$AR"; then
6730 ac_cv_prog_AR="$AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 AR=$ac_cv_prog_AR
6750 if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 test -n "$AR" && break
6760 done
6761 fi
6762 if test -z "$AR"; then
6763 ac_ct_AR=$AR
6764 for ac_prog in ar
6765 do
6766 # Extract the first word of "$ac_prog", so it can be a program name with args.
6767 set dummy $ac_prog; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$ac_ct_AR"; then
6774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_ac_ct_AR="$ac_prog"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794 if test -n "$ac_ct_AR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6796 $as_echo "$ac_ct_AR" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802
6803 test -n "$ac_ct_AR" && break
6804 done
6805
6806 if test "x$ac_ct_AR" = x; then
6807 AR="false"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 AR=$ac_ct_AR
6816 fi
6817 fi
6818
6819 : ${AR=ar}
6820 : ${AR_FLAGS=cru}
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6833 $as_echo_n "checking for archiver @FILE support... " >&6; }
6834 if ${lt_cv_ar_at_file+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 lt_cv_ar_at_file=no
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840
6841 int
6842 main ()
6843 {
6844
6845 ;
6846 return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 echo conftest.$ac_objext > conftest.lst
6851 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6853 (eval $lt_ar_try) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }
6857 if test 0 -eq "$ac_status"; then
6858 # Ensure the archiver fails upon bogus file names.
6859 rm -f conftest.$ac_objext libconftest.a
6860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6861 (eval $lt_ar_try) 2>&5
6862 ac_status=$?
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; }
6865 if test 0 -ne "$ac_status"; then
6866 lt_cv_ar_at_file=@
6867 fi
6868 fi
6869 rm -f conftest.* libconftest.a
6870
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873
6874 fi
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6876 $as_echo "$lt_cv_ar_at_file" >&6; }
6877
6878 if test no = "$lt_cv_ar_at_file"; then
6879 archiver_list_spec=
6880 else
6881 archiver_list_spec=$lt_cv_ar_at_file
6882 fi
6883
6884
6885
6886
6887
6888
6889
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}strip; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_STRIP+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$STRIP"; then
6899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 STRIP=$ac_cv_prog_STRIP
6919 if test -n "$STRIP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6921 $as_echo "$STRIP" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_STRIP"; then
6930 ac_ct_STRIP=$STRIP
6931 # Extract the first word of "strip", so it can be a program name with args.
6932 set dummy strip; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$ac_ct_STRIP"; then
6939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_STRIP="strip"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6959 if test -n "$ac_ct_STRIP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6961 $as_echo "$ac_ct_STRIP" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967 if test "x$ac_ct_STRIP" = x; then
6968 STRIP=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976 STRIP=$ac_ct_STRIP
6977 fi
6978 else
6979 STRIP="$ac_cv_prog_STRIP"
6980 fi
6981
6982 test -z "$STRIP" && STRIP=:
6983
6984
6985
6986
6987
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_RANLIB+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$RANLIB"; then
6998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 RANLIB=$ac_cv_prog_RANLIB
7018 if test -n "$RANLIB"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7020 $as_echo "$RANLIB" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_RANLIB"; then
7029 ac_ct_RANLIB=$RANLIB
7030 # Extract the first word of "ranlib", so it can be a program name with args.
7031 set dummy ranlib; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$ac_ct_RANLIB"; then
7038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_RANLIB="ranlib"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7058 if test -n "$ac_ct_RANLIB"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7060 $as_echo "$ac_ct_RANLIB" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 if test "x$ac_ct_RANLIB" = x; then
7067 RANLIB=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 RANLIB=$ac_ct_RANLIB
7076 fi
7077 else
7078 RANLIB="$ac_cv_prog_RANLIB"
7079 fi
7080
7081 test -z "$RANLIB" && RANLIB=:
7082
7083
7084
7085
7086
7087
7088 # Determine commands to create old-style static archives.
7089 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7090 old_postinstall_cmds='chmod 644 $oldlib'
7091 old_postuninstall_cmds=
7092
7093 if test -n "$RANLIB"; then
7094 case $host_os in
7095 bitrig* | openbsd*)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7097 ;;
7098 *)
7099 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7100 ;;
7101 esac
7102 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7103 fi
7104
7105 case $host_os in
7106 darwin*)
7107 lock_old_archive_extraction=yes ;;
7108 *)
7109 lock_old_archive_extraction=no ;;
7110 esac
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 # If no C compiler was specified, use CC.
7151 LTCC=${LTCC-"$CC"}
7152
7153 # If no C compiler flags were specified, use CFLAGS.
7154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7155
7156 # Allow CC to be a program name with arguments.
7157 compiler=$CC
7158
7159
7160 # Check for command to grab the raw symbol name followed by C symbol from nm.
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7162 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7163 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166
7167 # These are sane defaults that work on at least a few old systems.
7168 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7169
7170 # Character class describing NM global symbol codes.
7171 symcode='[BCDEGRST]'
7172
7173 # Regexp to match symbols that can be accessed directly from C.
7174 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7175
7176 # Define system-specific variables.
7177 case $host_os in
7178 aix*)
7179 symcode='[BCDT]'
7180 ;;
7181 cygwin* | mingw* | pw32* | cegcc*)
7182 symcode='[ABCDGISTW]'
7183 ;;
7184 hpux*)
7185 if test ia64 = "$host_cpu"; then
7186 symcode='[ABCDEGRST]'
7187 fi
7188 ;;
7189 irix* | nonstopux*)
7190 symcode='[BCDEGRST]'
7191 ;;
7192 osf*)
7193 symcode='[BCDEGQRST]'
7194 ;;
7195 solaris*)
7196 symcode='[BDRT]'
7197 ;;
7198 sco3.2v5*)
7199 symcode='[DT]'
7200 ;;
7201 sysv4.2uw2*)
7202 symcode='[DT]'
7203 ;;
7204 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7205 symcode='[ABDT]'
7206 ;;
7207 sysv4)
7208 symcode='[DFNSTU]'
7209 ;;
7210 esac
7211
7212 # If we're using GNU nm, then use its standard symbol codes.
7213 case `$NM -V 2>&1` in
7214 *GNU* | *'with BFD'*)
7215 symcode='[ABCDGIRSTW]' ;;
7216 esac
7217
7218 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7219 # Gets list of data symbols to import.
7220 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7221 # Adjust the below global symbol transforms to fixup imported variables.
7222 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7223 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7224 lt_c_name_lib_hook="\
7225 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7226 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7227 else
7228 # Disable hooks by default.
7229 lt_cv_sys_global_symbol_to_import=
7230 lt_cdecl_hook=
7231 lt_c_name_hook=
7232 lt_c_name_lib_hook=
7233 fi
7234
7235 # Transform an extracted symbol line into a proper C declaration.
7236 # Some systems (esp. on ia64) link data and code symbols differently,
7237 # so use this general approach.
7238 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7239 $lt_cdecl_hook\
7240 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7241 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7242
7243 # Transform an extracted symbol line into symbol name and symbol address
7244 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7245 $lt_c_name_hook\
7246 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7247 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7248
7249 # Transform an extracted symbol line into symbol name with lib prefix and
7250 # symbol address.
7251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7252 $lt_c_name_lib_hook\
7253 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7254 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7255 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7256
7257 # Handle CRLF in mingw tool chain
7258 opt_cr=
7259 case $build_os in
7260 mingw*)
7261 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7262 ;;
7263 esac
7264
7265 # Try without a prefix underscore, then with it.
7266 for ac_symprfx in "" "_"; do
7267
7268 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7269 symxfrm="\\1 $ac_symprfx\\2 \\2"
7270
7271 # Write the raw and C identifiers.
7272 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7273 # Fake it for dumpbin and say T for any non-static function,
7274 # D for any global variable and I for any imported variable.
7275 # Also find C++ and __fastcall symbols from MSVC++,
7276 # which start with @ or ?.
7277 lt_cv_sys_global_symbol_pipe="$AWK '"\
7278 " {last_section=section; section=\$ 3};"\
7279 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7280 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7281 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7282 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7283 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7284 " \$ 0!~/External *\|/{next};"\
7285 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7286 " {if(hide[section]) next};"\
7287 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7288 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7289 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7290 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7291 " ' prfx=^$ac_symprfx"
7292 else
7293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294 fi
7295 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7296
7297 # Check to see that the pipe works correctly.
7298 pipe_works=no
7299
7300 rm -rf conftest*
7301 cat > conftest.$ac_ext <<_LT_EOF
7302 #ifdef __cplusplus
7303 extern "C" {
7304 #endif
7305 char nm_test_var;
7306 void nm_test_func(void);
7307 void nm_test_func(void){}
7308 #ifdef __cplusplus
7309 }
7310 #endif
7311 int main(){nm_test_var='a';nm_test_func();return(0);}
7312 _LT_EOF
7313
7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315 (eval $ac_compile) 2>&5
7316 ac_status=$?
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }; then
7319 # Now try to grab the symbols.
7320 nlist=conftest.nm
7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7323 ac_status=$?
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; } && test -s "$nlist"; then
7326 # Try sorting and uniquifying the output.
7327 if sort "$nlist" | uniq > "$nlist"T; then
7328 mv -f "$nlist"T "$nlist"
7329 else
7330 rm -f "$nlist"T
7331 fi
7332
7333 # Make sure that we snagged all the symbols we need.
7334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7336 cat <<_LT_EOF > conftest.$ac_ext
7337 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7338 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7339 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7340 relocations are performed -- see ld's documentation on pseudo-relocs. */
7341 # define LT_DLSYM_CONST
7342 #elif defined __osf__
7343 /* This system does not cope well with relocations in const data. */
7344 # define LT_DLSYM_CONST
7345 #else
7346 # define LT_DLSYM_CONST const
7347 #endif
7348
7349 #ifdef __cplusplus
7350 extern "C" {
7351 #endif
7352
7353 _LT_EOF
7354 # Now generate the symbol file.
7355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7356
7357 cat <<_LT_EOF >> conftest.$ac_ext
7358
7359 /* The mapping between symbol names and symbols. */
7360 LT_DLSYM_CONST struct {
7361 const char *name;
7362 void *address;
7363 }
7364 lt__PROGRAM__LTX_preloaded_symbols[] =
7365 {
7366 { "@PROGRAM@", (void *) 0 },
7367 _LT_EOF
7368 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7369 cat <<\_LT_EOF >> conftest.$ac_ext
7370 {0, (void *) 0}
7371 };
7372
7373 /* This works around a problem in FreeBSD linker */
7374 #ifdef FREEBSD_WORKAROUND
7375 static const void *lt_preloaded_setup() {
7376 return lt__PROGRAM__LTX_preloaded_symbols;
7377 }
7378 #endif
7379
7380 #ifdef __cplusplus
7381 }
7382 #endif
7383 _LT_EOF
7384 # Now try linking the two files.
7385 mv conftest.$ac_objext conftstm.$ac_objext
7386 lt_globsym_save_LIBS=$LIBS
7387 lt_globsym_save_CFLAGS=$CFLAGS
7388 LIBS=conftstm.$ac_objext
7389 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7391 (eval $ac_link) 2>&5
7392 ac_status=$?
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7395 pipe_works=yes
7396 fi
7397 LIBS=$lt_globsym_save_LIBS
7398 CFLAGS=$lt_globsym_save_CFLAGS
7399 else
7400 echo "cannot find nm_test_func in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot find nm_test_var in $nlist" >&5
7404 fi
7405 else
7406 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7407 fi
7408 else
7409 echo "$progname: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 fi
7412 rm -rf conftest* conftst*
7413
7414 # Do not use the global_symbol_pipe unless it works.
7415 if test yes = "$pipe_works"; then
7416 break
7417 else
7418 lt_cv_sys_global_symbol_pipe=
7419 fi
7420 done
7421
7422 fi
7423
7424 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7425 lt_cv_sys_global_symbol_to_cdecl=
7426 fi
7427 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7429 $as_echo "failed" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7432 $as_echo "ok" >&6; }
7433 fi
7434
7435 # Response file support.
7436 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7437 nm_file_list_spec='@'
7438 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7439 nm_file_list_spec='@'
7440 fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7479 $as_echo_n "checking for sysroot... " >&6; }
7480
7481 # Check whether --with-sysroot was given.
7482 if test "${with_sysroot+set}" = set; then :
7483 withval=$with_sysroot;
7484 else
7485 with_sysroot=no
7486 fi
7487
7488
7489 lt_sysroot=
7490 case $with_sysroot in #(
7491 yes)
7492 if test yes = "$GCC"; then
7493 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7494 fi
7495 ;; #(
7496 /*)
7497 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7498 ;; #(
7499 no|'')
7500 ;; #(
7501 *)
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7503 $as_echo "$with_sysroot" >&6; }
7504 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7505 ;;
7506 esac
7507
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7509 $as_echo "${lt_sysroot:-no}" >&6; }
7510
7511
7512
7513
7514
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7516 $as_echo_n "checking for a working dd... " >&6; }
7517 if ${ac_cv_path_lt_DD+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 printf 0123456789abcdef0123456789abcdef >conftest.i
7521 cat conftest.i conftest.i >conftest2.i
7522 : ${lt_DD:=$DD}
7523 if test -z "$lt_DD"; then
7524 ac_path_lt_DD_found=false
7525 # Loop through the user's path and test for each of PROGNAME-LIST
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_prog in dd; do
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7534 as_fn_executable_p "$ac_path_lt_DD" || continue
7535 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7536 cmp -s conftest.i conftest.out \
7537 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7538 fi
7539 $ac_path_lt_DD_found && break 3
7540 done
7541 done
7542 done
7543 IFS=$as_save_IFS
7544 if test -z "$ac_cv_path_lt_DD"; then
7545 :
7546 fi
7547 else
7548 ac_cv_path_lt_DD=$lt_DD
7549 fi
7550
7551 rm -f conftest.i conftest2.i conftest.out
7552 fi
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7554 $as_echo "$ac_cv_path_lt_DD" >&6; }
7555
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7558 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7559 if ${lt_cv_truncate_bin+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 printf 0123456789abcdef0123456789abcdef >conftest.i
7563 cat conftest.i conftest.i >conftest2.i
7564 lt_cv_truncate_bin=
7565 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7566 cmp -s conftest.i conftest.out \
7567 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7568 fi
7569 rm -f conftest.i conftest2.i conftest.out
7570 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7573 $as_echo "$lt_cv_truncate_bin" >&6; }
7574
7575
7576
7577
7578
7579
7580
7581 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7582 func_cc_basename ()
7583 {
7584 for cc_temp in $*""; do
7585 case $cc_temp in
7586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7588 \-*) ;;
7589 *) break;;
7590 esac
7591 done
7592 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7593 }
7594
7595 # Check whether --enable-libtool-lock was given.
7596 if test "${enable_libtool_lock+set}" = set; then :
7597 enableval=$enable_libtool_lock;
7598 fi
7599
7600 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7601
7602 # Some flags need to be propagated to the compiler or linker for good
7603 # libtool support.
7604 case $host in
7605 ia64-*-hpux*)
7606 # Find out what ABI is being produced by ac_compile, and set mode
7607 # options accordingly.
7608 echo 'int i;' > conftest.$ac_ext
7609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7610 (eval $ac_compile) 2>&5
7611 ac_status=$?
7612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7613 test $ac_status = 0; }; then
7614 case `/usr/bin/file conftest.$ac_objext` in
7615 *ELF-32*)
7616 HPUX_IA64_MODE=32
7617 ;;
7618 *ELF-64*)
7619 HPUX_IA64_MODE=64
7620 ;;
7621 esac
7622 fi
7623 rm -rf conftest*
7624 ;;
7625 *-*-irix6*)
7626 # Find out what ABI is being produced by ac_compile, and set linker
7627 # options accordingly.
7628 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 if test yes = "$lt_cv_prog_gnu_ld"; then
7635 case `/usr/bin/file conftest.$ac_objext` in
7636 *32-bit*)
7637 LD="${LD-ld} -melf32bsmip"
7638 ;;
7639 *N32*)
7640 LD="${LD-ld} -melf32bmipn32"
7641 ;;
7642 *64-bit*)
7643 LD="${LD-ld} -melf64bmip"
7644 ;;
7645 esac
7646 else
7647 case `/usr/bin/file conftest.$ac_objext` in
7648 *32-bit*)
7649 LD="${LD-ld} -32"
7650 ;;
7651 *N32*)
7652 LD="${LD-ld} -n32"
7653 ;;
7654 *64-bit*)
7655 LD="${LD-ld} -64"
7656 ;;
7657 esac
7658 fi
7659 fi
7660 rm -rf conftest*
7661 ;;
7662
7663 mips64*-*linux*)
7664 # Find out what ABI is being produced by ac_compile, and set linker
7665 # options accordingly.
7666 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7668 (eval $ac_compile) 2>&5
7669 ac_status=$?
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; }; then
7672 emul=elf
7673 case `/usr/bin/file conftest.$ac_objext` in
7674 *32-bit*)
7675 emul="${emul}32"
7676 ;;
7677 *64-bit*)
7678 emul="${emul}64"
7679 ;;
7680 esac
7681 case `/usr/bin/file conftest.$ac_objext` in
7682 *MSB*)
7683 emul="${emul}btsmip"
7684 ;;
7685 *LSB*)
7686 emul="${emul}ltsmip"
7687 ;;
7688 esac
7689 case `/usr/bin/file conftest.$ac_objext` in
7690 *N32*)
7691 emul="${emul}n32"
7692 ;;
7693 esac
7694 LD="${LD-ld} -m $emul"
7695 fi
7696 rm -rf conftest*
7697 ;;
7698
7699 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7700 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7701 # Find out what ABI is being produced by ac_compile, and set linker
7702 # options accordingly. Note that the listed cases only cover the
7703 # situations where additional linker options are needed (such as when
7704 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7705 # vice versa); the common cases where no linker options are needed do
7706 # not appear in the list.
7707 echo 'int i;' > conftest.$ac_ext
7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709 (eval $ac_compile) 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 case `/usr/bin/file conftest.o` in
7714 *32-bit*)
7715 case $host in
7716 x86_64-*kfreebsd*-gnu)
7717 LD="${LD-ld} -m elf_i386_fbsd"
7718 ;;
7719 x86_64-*linux*)
7720 case `/usr/bin/file conftest.o` in
7721 *x86-64*)
7722 LD="${LD-ld} -m elf32_x86_64"
7723 ;;
7724 *)
7725 LD="${LD-ld} -m elf_i386"
7726 ;;
7727 esac
7728 ;;
7729 powerpc64le-*linux*)
7730 LD="${LD-ld} -m elf32lppclinux"
7731 ;;
7732 powerpc64-*linux*)
7733 LD="${LD-ld} -m elf32ppclinux"
7734 ;;
7735 s390x-*linux*)
7736 LD="${LD-ld} -m elf_s390"
7737 ;;
7738 sparc64-*linux*)
7739 LD="${LD-ld} -m elf32_sparc"
7740 ;;
7741 esac
7742 ;;
7743 *64-bit*)
7744 case $host in
7745 x86_64-*kfreebsd*-gnu)
7746 LD="${LD-ld} -m elf_x86_64_fbsd"
7747 ;;
7748 x86_64-*linux*)
7749 LD="${LD-ld} -m elf_x86_64"
7750 ;;
7751 powerpcle-*linux*)
7752 LD="${LD-ld} -m elf64lppc"
7753 ;;
7754 powerpc-*linux*)
7755 LD="${LD-ld} -m elf64ppc"
7756 ;;
7757 s390*-*linux*|s390*-*tpf*)
7758 LD="${LD-ld} -m elf64_s390"
7759 ;;
7760 sparc*-*linux*)
7761 LD="${LD-ld} -m elf64_sparc"
7762 ;;
7763 esac
7764 ;;
7765 esac
7766 fi
7767 rm -rf conftest*
7768 ;;
7769
7770 *-*-sco3.2v5*)
7771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7772 SAVE_CFLAGS=$CFLAGS
7773 CFLAGS="$CFLAGS -belf"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7776 if ${lt_cv_cc_needs_belf+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787
7788 int
7789 main ()
7790 {
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 lt_cv_cc_needs_belf=yes
7798 else
7799 lt_cv_cc_needs_belf=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7811 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7812 if test yes != "$lt_cv_cc_needs_belf"; then
7813 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7814 CFLAGS=$SAVE_CFLAGS
7815 fi
7816 ;;
7817 *-*solaris*)
7818 # Find out what ABI is being produced by ac_compile, and set linker
7819 # options accordingly.
7820 echo 'int i;' > conftest.$ac_ext
7821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7822 (eval $ac_compile) 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; then
7826 case `/usr/bin/file conftest.o` in
7827 *64-bit*)
7828 case $lt_cv_prog_gnu_ld in
7829 yes*)
7830 case $host in
7831 i?86-*-solaris*|x86_64-*-solaris*)
7832 LD="${LD-ld} -m elf_x86_64"
7833 ;;
7834 sparc*-*-solaris*)
7835 LD="${LD-ld} -m elf64_sparc"
7836 ;;
7837 esac
7838 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7839 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7840 LD=${LD-ld}_sol2
7841 fi
7842 ;;
7843 *)
7844 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7845 LD="${LD-ld} -64"
7846 fi
7847 ;;
7848 esac
7849 ;;
7850 esac
7851 fi
7852 rm -rf conftest*
7853 ;;
7854 esac
7855
7856 need_locks=$enable_libtool_lock
7857
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}mt; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$MANIFEST_TOOL"; then
7867 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7879 fi
7880 done
7881 done
7882 IFS=$as_save_IFS
7883
7884 fi
7885 fi
7886 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7887 if test -n "$MANIFEST_TOOL"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7889 $as_echo "$MANIFEST_TOOL" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7893 fi
7894
7895
7896 fi
7897 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7898 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7899 # Extract the first word of "mt", so it can be a program name with args.
7900 set dummy mt; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$ac_ct_MANIFEST_TOOL"; then
7907 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7927 if test -n "$ac_ct_MANIFEST_TOOL"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7929 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7936 MANIFEST_TOOL=":"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939 yes:)
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942 ac_tool_warned=yes ;;
7943 esac
7944 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7945 fi
7946 else
7947 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7948 fi
7949
7950 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7952 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7953 if ${lt_cv_path_mainfest_tool+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 lt_cv_path_mainfest_tool=no
7957 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7958 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7959 cat conftest.err >&5
7960 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7961 lt_cv_path_mainfest_tool=yes
7962 fi
7963 rm -rf conftest*
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7966 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7967 if test yes != "$lt_cv_path_mainfest_tool"; then
7968 MANIFEST_TOOL=:
7969 fi
7970
7971
7972
7973
7974
7975
7976 case $host_os in
7977 rhapsody* | darwin*)
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 if test -n "$DSYMUTIL"; then
7987 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8007 if test -n "$DSYMUTIL"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8009 $as_echo "$DSYMUTIL" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_DSYMUTIL"; then
8018 ac_ct_DSYMUTIL=$DSYMUTIL
8019 # Extract the first word of "dsymutil", so it can be a program name with args.
8020 set dummy dsymutil; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 if test -n "$ac_ct_DSYMUTIL"; then
8027 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8047 if test -n "$ac_ct_DSYMUTIL"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8049 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055 if test "x$ac_ct_DSYMUTIL" = x; then
8056 DSYMUTIL=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 DSYMUTIL=$ac_ct_DSYMUTIL
8065 fi
8066 else
8067 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8068 fi
8069
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_NMEDIT+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 if test -n "$NMEDIT"; then
8079 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 NMEDIT=$ac_cv_prog_NMEDIT
8099 if test -n "$NMEDIT"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8101 $as_echo "$NMEDIT" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108 fi
8109 if test -z "$ac_cv_prog_NMEDIT"; then
8110 ac_ct_NMEDIT=$NMEDIT
8111 # Extract the first word of "nmedit", so it can be a program name with args.
8112 set dummy nmedit; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$ac_ct_NMEDIT"; then
8119 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8131 fi
8132 done
8133 done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8139 if test -n "$ac_ct_NMEDIT"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8141 $as_echo "$ac_ct_NMEDIT" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147 if test "x$ac_ct_NMEDIT" = x; then
8148 NMEDIT=":"
8149 else
8150 case $cross_compiling:$ac_tool_warned in
8151 yes:)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8155 esac
8156 NMEDIT=$ac_ct_NMEDIT
8157 fi
8158 else
8159 NMEDIT="$ac_cv_prog_NMEDIT"
8160 fi
8161
8162 if test -n "$ac_tool_prefix"; then
8163 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8164 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_prog_LIPO+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$LIPO"; then
8171 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 LIPO=$ac_cv_prog_LIPO
8191 if test -n "$LIPO"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8193 $as_echo "$LIPO" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_LIPO"; then
8202 ac_ct_LIPO=$LIPO
8203 # Extract the first word of "lipo", so it can be a program name with args.
8204 set dummy lipo; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 if test -n "$ac_ct_LIPO"; then
8211 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_ac_ct_LIPO="lipo"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8223 fi
8224 done
8225 done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8231 if test -n "$ac_ct_LIPO"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8233 $as_echo "$ac_ct_LIPO" >&6; }
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239 if test "x$ac_ct_LIPO" = x; then
8240 LIPO=":"
8241 else
8242 case $cross_compiling:$ac_tool_warned in
8243 yes:)
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246 ac_tool_warned=yes ;;
8247 esac
8248 LIPO=$ac_ct_LIPO
8249 fi
8250 else
8251 LIPO="$ac_cv_prog_LIPO"
8252 fi
8253
8254 if test -n "$ac_tool_prefix"; then
8255 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8256 set dummy ${ac_tool_prefix}otool; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_prog_OTOOL+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$OTOOL"; then
8263 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276 done
8277 done
8278 IFS=$as_save_IFS
8279
8280 fi
8281 fi
8282 OTOOL=$ac_cv_prog_OTOOL
8283 if test -n "$OTOOL"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8285 $as_echo "$OTOOL" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291
8292 fi
8293 if test -z "$ac_cv_prog_OTOOL"; then
8294 ac_ct_OTOOL=$OTOOL
8295 # Extract the first word of "otool", so it can be a program name with args.
8296 set dummy otool; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$ac_ct_OTOOL"; then
8303 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_prog_ac_ct_OTOOL="otool"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316 done
8317 done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8323 if test -n "$ac_ct_OTOOL"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8325 $as_echo "$ac_ct_OTOOL" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331 if test "x$ac_ct_OTOOL" = x; then
8332 OTOOL=":"
8333 else
8334 case $cross_compiling:$ac_tool_warned in
8335 yes:)
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338 ac_tool_warned=yes ;;
8339 esac
8340 OTOOL=$ac_ct_OTOOL
8341 fi
8342 else
8343 OTOOL="$ac_cv_prog_OTOOL"
8344 fi
8345
8346 if test -n "$ac_tool_prefix"; then
8347 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8348 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_prog_OTOOL64+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test -n "$OTOOL64"; then
8355 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8356 else
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368 done
8369 done
8370 IFS=$as_save_IFS
8371
8372 fi
8373 fi
8374 OTOOL64=$ac_cv_prog_OTOOL64
8375 if test -n "$OTOOL64"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8377 $as_echo "$OTOOL64" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382
8383
8384 fi
8385 if test -z "$ac_cv_prog_OTOOL64"; then
8386 ac_ct_OTOOL64=$OTOOL64
8387 # Extract the first word of "otool64", so it can be a program name with args.
8388 set dummy otool64; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 if test -n "$ac_ct_OTOOL64"; then
8395 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
8402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8404 ac_cv_prog_ac_ct_OTOOL64="otool64"
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 break 2
8407 fi
8408 done
8409 done
8410 IFS=$as_save_IFS
8411
8412 fi
8413 fi
8414 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8415 if test -n "$ac_ct_OTOOL64"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8417 $as_echo "$ac_ct_OTOOL64" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423 if test "x$ac_ct_OTOOL64" = x; then
8424 OTOOL64=":"
8425 else
8426 case $cross_compiling:$ac_tool_warned in
8427 yes:)
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8430 ac_tool_warned=yes ;;
8431 esac
8432 OTOOL64=$ac_ct_OTOOL64
8433 fi
8434 else
8435 OTOOL64="$ac_cv_prog_OTOOL64"
8436 fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8465 $as_echo_n "checking for -single_module linker flag... " >&6; }
8466 if ${lt_cv_apple_cc_single_mod+:} false; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 lt_cv_apple_cc_single_mod=no
8470 if test -z "$LT_MULTI_MODULE"; then
8471 # By default we will add the -single_module flag. You can override
8472 # by either setting the environment variable LT_MULTI_MODULE
8473 # non-empty at configure time, or by adding -multi_module to the
8474 # link flags.
8475 rm -rf libconftest.dylib*
8476 echo "int foo(void){return 1;}" > conftest.c
8477 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8478 -dynamiclib -Wl,-single_module conftest.c" >&5
8479 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8480 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8481 _lt_result=$?
8482 # If there is a non-empty error log, and "single_module"
8483 # appears in it, assume the flag caused a linker warning
8484 if test -s conftest.err && $GREP single_module conftest.err; then
8485 cat conftest.err >&5
8486 # Otherwise, if the output was created with a 0 exit code from
8487 # the compiler, it worked.
8488 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8489 lt_cv_apple_cc_single_mod=yes
8490 else
8491 cat conftest.err >&5
8492 fi
8493 rm -rf libconftest.dylib*
8494 rm -f conftest.*
8495 fi
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8498 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8501 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8502 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_ld_exported_symbols_list=no
8506 save_LDFLAGS=$LDFLAGS
8507 echo "_main" > conftest.sym
8508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8511
8512 int
8513 main ()
8514 {
8515
8516 ;
8517 return 0;
8518 }
8519 _ACEOF
8520 if ac_fn_c_try_link "$LINENO"; then :
8521 lt_cv_ld_exported_symbols_list=yes
8522 else
8523 lt_cv_ld_exported_symbols_list=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 LDFLAGS=$save_LDFLAGS
8528
8529 fi
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8531 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8534 $as_echo_n "checking for -force_load linker flag... " >&6; }
8535 if ${lt_cv_ld_force_load+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 lt_cv_ld_force_load=no
8539 cat > conftest.c << _LT_EOF
8540 int forced_loaded() { return 2;}
8541 _LT_EOF
8542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8544 echo "$AR cru libconftest.a conftest.o" >&5
8545 $AR cru libconftest.a conftest.o 2>&5
8546 echo "$RANLIB libconftest.a" >&5
8547 $RANLIB libconftest.a 2>&5
8548 cat > conftest.c << _LT_EOF
8549 int main() { return 0;}
8550 _LT_EOF
8551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8553 _lt_result=$?
8554 if test -s conftest.err && $GREP force_load conftest.err; then
8555 cat conftest.err >&5
8556 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8557 lt_cv_ld_force_load=yes
8558 else
8559 cat conftest.err >&5
8560 fi
8561 rm -f conftest.err libconftest.a conftest conftest.c
8562 rm -rf conftest.dSYM
8563
8564 fi
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8566 $as_echo "$lt_cv_ld_force_load" >&6; }
8567 case $host_os in
8568 rhapsody* | darwin1.[012])
8569 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8570 darwin1.*)
8571 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8572 darwin*) # darwin 5.x on
8573 # if running on 10.5 or later, the deployment target defaults
8574 # to the OS version, if on x86, and 10.4, the deployment
8575 # target defaults to 10.4. Don't you love it?
8576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8577 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8579 10.[012][,.]*)
8580 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8581 10.*)
8582 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8583 esac
8584 ;;
8585 esac
8586 if test yes = "$lt_cv_apple_cc_single_mod"; then
8587 _lt_dar_single_mod='$single_module'
8588 fi
8589 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8590 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8591 else
8592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8593 fi
8594 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8595 _lt_dsymutil='~$DSYMUTIL $lib || :'
8596 else
8597 _lt_dsymutil=
8598 fi
8599 ;;
8600 esac
8601
8602 # func_munge_path_list VARIABLE PATH
8603 # -----------------------------------
8604 # VARIABLE is name of variable containing _space_ separated list of
8605 # directories to be munged by the contents of PATH, which is string
8606 # having a format:
8607 # "DIR[:DIR]:"
8608 # string "DIR[ DIR]" will be prepended to VARIABLE
8609 # ":DIR[:DIR]"
8610 # string "DIR[ DIR]" will be appended to VARIABLE
8611 # "DIRP[:DIRP]::[DIRA:]DIRA"
8612 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8613 # "DIRA[ DIRA]" will be appended to VARIABLE
8614 # "DIR[:DIR]"
8615 # VARIABLE will be replaced by "DIR[ DIR]"
8616 func_munge_path_list ()
8617 {
8618 case x$2 in
8619 x)
8620 ;;
8621 *:)
8622 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8623 ;;
8624 x:*)
8625 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8626 ;;
8627 *::*)
8628 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8629 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8630 ;;
8631 *)
8632 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8633 ;;
8634 esac
8635 }
8636
8637 ac_ext=c
8638 ac_cpp='$CPP $CPPFLAGS'
8639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8644 # On Suns, sometimes $CPP names a directory.
8645 if test -n "$CPP" && test -d "$CPP"; then
8646 CPP=
8647 fi
8648 if test -z "$CPP"; then
8649 if ${ac_cv_prog_CPP+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 # Double quotes because CPP needs to be expanded
8653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8654 do
8655 ac_preproc_ok=false
8656 for ac_c_preproc_warn_flag in '' yes
8657 do
8658 # Use a header file that comes with gcc, so configuring glibc
8659 # with a fresh cross-compiler works.
8660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 # <limits.h> exists even on freestanding compilers.
8662 # On the NeXT, cc -E runs the code through the compiler's parser,
8663 # not just through cpp. "Syntax error" is here to catch this case.
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #ifdef __STDC__
8667 # include <limits.h>
8668 #else
8669 # include <assert.h>
8670 #endif
8671 Syntax error
8672 _ACEOF
8673 if ac_fn_c_try_cpp "$LINENO"; then :
8674
8675 else
8676 # Broken: fails on valid input.
8677 continue
8678 fi
8679 rm -f conftest.err conftest.i conftest.$ac_ext
8680
8681 # OK, works on sane cases. Now check whether nonexistent headers
8682 # can be detected and how.
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <ac_nonexistent.h>
8686 _ACEOF
8687 if ac_fn_c_try_cpp "$LINENO"; then :
8688 # Broken: success on invalid input.
8689 continue
8690 else
8691 # Passes both tests.
8692 ac_preproc_ok=:
8693 break
8694 fi
8695 rm -f conftest.err conftest.i conftest.$ac_ext
8696
8697 done
8698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8699 rm -f conftest.i conftest.err conftest.$ac_ext
8700 if $ac_preproc_ok; then :
8701 break
8702 fi
8703
8704 done
8705 ac_cv_prog_CPP=$CPP
8706
8707 fi
8708 CPP=$ac_cv_prog_CPP
8709 else
8710 ac_cv_prog_CPP=$CPP
8711 fi
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8713 $as_echo "$CPP" >&6; }
8714 ac_preproc_ok=false
8715 for ac_c_preproc_warn_flag in '' yes
8716 do
8717 # Use a header file that comes with gcc, so configuring glibc
8718 # with a fresh cross-compiler works.
8719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 # <limits.h> exists even on freestanding compilers.
8721 # On the NeXT, cc -E runs the code through the compiler's parser,
8722 # not just through cpp. "Syntax error" is here to catch this case.
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730 Syntax error
8731 _ACEOF
8732 if ac_fn_c_try_cpp "$LINENO"; then :
8733
8734 else
8735 # Broken: fails on valid input.
8736 continue
8737 fi
8738 rm -f conftest.err conftest.i conftest.$ac_ext
8739
8740 # OK, works on sane cases. Now check whether nonexistent headers
8741 # can be detected and how.
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <ac_nonexistent.h>
8745 _ACEOF
8746 if ac_fn_c_try_cpp "$LINENO"; then :
8747 # Broken: success on invalid input.
8748 continue
8749 else
8750 # Passes both tests.
8751 ac_preproc_ok=:
8752 break
8753 fi
8754 rm -f conftest.err conftest.i conftest.$ac_ext
8755
8756 done
8757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8758 rm -f conftest.i conftest.err conftest.$ac_ext
8759 if $ac_preproc_ok; then :
8760
8761 else
8762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8764 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8765 See \`config.log' for more details" "$LINENO" 5; }
8766 fi
8767
8768 ac_ext=c
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8776 $as_echo_n "checking for ANSI C header files... " >&6; }
8777 if ${ac_cv_header_stdc+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #include <stdlib.h>
8783 #include <stdarg.h>
8784 #include <string.h>
8785 #include <float.h>
8786
8787 int
8788 main ()
8789 {
8790
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 if ac_fn_c_try_compile "$LINENO"; then :
8796 ac_cv_header_stdc=yes
8797 else
8798 ac_cv_header_stdc=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801
8802 if test $ac_cv_header_stdc = yes; then
8803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #include <string.h>
8807
8808 _ACEOF
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "memchr" >/dev/null 2>&1; then :
8811
8812 else
8813 ac_cv_header_stdc=no
8814 fi
8815 rm -f conftest*
8816
8817 fi
8818
8819 if test $ac_cv_header_stdc = yes; then
8820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #include <stdlib.h>
8824
8825 _ACEOF
8826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 $EGREP "free" >/dev/null 2>&1; then :
8828
8829 else
8830 ac_cv_header_stdc=no
8831 fi
8832 rm -f conftest*
8833
8834 fi
8835
8836 if test $ac_cv_header_stdc = yes; then
8837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8838 if test "$cross_compiling" = yes; then :
8839 :
8840 else
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <ctype.h>
8844 #include <stdlib.h>
8845 #if ((' ' & 0x0FF) == 0x020)
8846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8848 #else
8849 # define ISLOWER(c) \
8850 (('a' <= (c) && (c) <= 'i') \
8851 || ('j' <= (c) && (c) <= 'r') \
8852 || ('s' <= (c) && (c) <= 'z'))
8853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8854 #endif
8855
8856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8857 int
8858 main ()
8859 {
8860 int i;
8861 for (i = 0; i < 256; i++)
8862 if (XOR (islower (i), ISLOWER (i))
8863 || toupper (i) != TOUPPER (i))
8864 return 2;
8865 return 0;
8866 }
8867 _ACEOF
8868 if ac_fn_c_try_run "$LINENO"; then :
8869
8870 else
8871 ac_cv_header_stdc=no
8872 fi
8873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8874 conftest.$ac_objext conftest.beam conftest.$ac_ext
8875 fi
8876
8877 fi
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8880 $as_echo "$ac_cv_header_stdc" >&6; }
8881 if test $ac_cv_header_stdc = yes; then
8882
8883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8884
8885 fi
8886
8887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8888 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8889 inttypes.h stdint.h unistd.h
8890 do :
8891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8893 "
8894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 _ACEOF
8898
8899 fi
8900
8901 done
8902
8903
8904 for ac_header in dlfcn.h
8905 do :
8906 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8907 "
8908 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define HAVE_DLFCN_H 1
8911 _ACEOF
8912
8913 fi
8914
8915 done
8916
8917
8918
8919
8920 func_stripname_cnf ()
8921 {
8922 case $2 in
8923 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8924 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8925 esac
8926 } # func_stripname_cnf
8927
8928
8929
8930
8931
8932 # Set options
8933 # Check whether --enable-static was given.
8934 if test "${enable_static+set}" = set; then :
8935 enableval=$enable_static; p=${PACKAGE-default}
8936 case $enableval in
8937 yes) enable_static=yes ;;
8938 no) enable_static=no ;;
8939 *)
8940 enable_static=no
8941 # Look at the argument we got. We use all the common list separators.
8942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8943 for pkg in $enableval; do
8944 IFS=$lt_save_ifs
8945 if test "X$pkg" = "X$p"; then
8946 enable_static=yes
8947 fi
8948 done
8949 IFS=$lt_save_ifs
8950 ;;
8951 esac
8952 else
8953 enable_static=no
8954 fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965 enable_dlopen=no
8966
8967
8968 enable_win32_dll=no
8969
8970
8971 # Check whether --enable-shared was given.
8972 if test "${enable_shared+set}" = set; then :
8973 enableval=$enable_shared; p=${PACKAGE-default}
8974 case $enableval in
8975 yes) enable_shared=yes ;;
8976 no) enable_shared=no ;;
8977 *)
8978 enable_shared=no
8979 # Look at the argument we got. We use all the common list separators.
8980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8981 for pkg in $enableval; do
8982 IFS=$lt_save_ifs
8983 if test "X$pkg" = "X$p"; then
8984 enable_shared=yes
8985 fi
8986 done
8987 IFS=$lt_save_ifs
8988 ;;
8989 esac
8990 else
8991 enable_shared=yes
8992 fi
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004 # Check whether --with-pic was given.
9005 if test "${with_pic+set}" = set; then :
9006 withval=$with_pic; lt_p=${PACKAGE-default}
9007 case $withval in
9008 yes|no) pic_mode=$withval ;;
9009 *)
9010 pic_mode=default
9011 # Look at the argument we got. We use all the common list separators.
9012 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9013 for lt_pkg in $withval; do
9014 IFS=$lt_save_ifs
9015 if test "X$lt_pkg" = "X$lt_p"; then
9016 pic_mode=yes
9017 fi
9018 done
9019 IFS=$lt_save_ifs
9020 ;;
9021 esac
9022 else
9023 pic_mode=default
9024 fi
9025
9026
9027
9028
9029
9030
9031
9032
9033 # Check whether --enable-fast-install was given.
9034 if test "${enable_fast_install+set}" = set; then :
9035 enableval=$enable_fast_install; p=${PACKAGE-default}
9036 case $enableval in
9037 yes) enable_fast_install=yes ;;
9038 no) enable_fast_install=no ;;
9039 *)
9040 enable_fast_install=no
9041 # Look at the argument we got. We use all the common list separators.
9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9043 for pkg in $enableval; do
9044 IFS=$lt_save_ifs
9045 if test "X$pkg" = "X$p"; then
9046 enable_fast_install=yes
9047 fi
9048 done
9049 IFS=$lt_save_ifs
9050 ;;
9051 esac
9052 else
9053 enable_fast_install=yes
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062
9063 shared_archive_member_spec=
9064 case $host,$enable_shared in
9065 power*-*-aix[5-9]*,yes)
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9067 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9068
9069 # Check whether --with-aix-soname was given.
9070 if test "${with_aix_soname+set}" = set; then :
9071 withval=$with_aix_soname; case $withval in
9072 aix|svr4|both)
9073 ;;
9074 *)
9075 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9076 ;;
9077 esac
9078 lt_cv_with_aix_soname=$with_aix_soname
9079 else
9080 if ${lt_cv_with_aix_soname+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 lt_cv_with_aix_soname=aix
9084 fi
9085
9086 with_aix_soname=$lt_cv_with_aix_soname
9087 fi
9088
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9090 $as_echo "$with_aix_soname" >&6; }
9091 if test aix != "$with_aix_soname"; then
9092 # For the AIX way of multilib, we name the shared archive member
9093 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9094 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9095 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9096 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9097 if test 64 = "${OBJECT_MODE-32}"; then
9098 shared_archive_member_spec=shr_64
9099 else
9100 shared_archive_member_spec=shr
9101 fi
9102 fi
9103 ;;
9104 *)
9105 with_aix_soname=aix
9106 ;;
9107 esac
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118 # This can be used to rebuild libtool when needed
9119 LIBTOOL_DEPS=$ltmain
9120
9121 # Always use our own libtool.
9122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 test -z "$LN_S" && LN_S="ln -s"
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 if test -n "${ZSH_VERSION+set}"; then
9169 setopt NO_GLOB_SUBST
9170 fi
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9173 $as_echo_n "checking for objdir... " >&6; }
9174 if ${lt_cv_objdir+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 rm -f .libs 2>/dev/null
9178 mkdir .libs 2>/dev/null
9179 if test -d .libs; then
9180 lt_cv_objdir=.libs
9181 else
9182 # MS-DOS does not allow filenames that begin with a dot.
9183 lt_cv_objdir=_libs
9184 fi
9185 rmdir .libs 2>/dev/null
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9188 $as_echo "$lt_cv_objdir" >&6; }
9189 objdir=$lt_cv_objdir
9190
9191
9192
9193
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define LT_OBJDIR "$lt_cv_objdir/"
9197 _ACEOF
9198
9199
9200
9201
9202 case $host_os in
9203 aix3*)
9204 # AIX sometimes has problems with the GCC collect2 program. For some
9205 # reason, if we set the COLLECT_NAMES environment variable, the problems
9206 # vanish in a puff of smoke.
9207 if test set != "${COLLECT_NAMES+set}"; then
9208 COLLECT_NAMES=
9209 export COLLECT_NAMES
9210 fi
9211 ;;
9212 esac
9213
9214 # Global variables:
9215 ofile=libtool
9216 can_build_shared=yes
9217
9218 # All known linkers require a '.a' archive for static linking (except MSVC,
9219 # which needs '.lib').
9220 libext=a
9221
9222 with_gnu_ld=$lt_cv_prog_gnu_ld
9223
9224 old_CC=$CC
9225 old_CFLAGS=$CFLAGS
9226
9227 # Set sane defaults for various variables
9228 test -z "$CC" && CC=cc
9229 test -z "$LTCC" && LTCC=$CC
9230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9231 test -z "$LD" && LD=ld
9232 test -z "$ac_objext" && ac_objext=o
9233
9234 func_cc_basename $compiler
9235 cc_basename=$func_cc_basename_result
9236
9237
9238 # Only perform the check for file, if the check method requires it
9239 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9240 case $deplibs_check_method in
9241 file_magic*)
9242 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9244 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9246 $as_echo_n "(cached) " >&6
9247 else
9248 case $MAGIC_CMD in
9249 [\\/*] | ?:[\\/]*)
9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9251 ;;
9252 *)
9253 lt_save_MAGIC_CMD=$MAGIC_CMD
9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9256 for ac_dir in $ac_dummy; do
9257 IFS=$lt_save_ifs
9258 test -z "$ac_dir" && ac_dir=.
9259 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9260 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9261 if test -n "$file_magic_test_file"; then
9262 case $deplibs_check_method in
9263 "file_magic "*)
9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9267 $EGREP "$file_magic_regex" > /dev/null; then
9268 :
9269 else
9270 cat <<_LT_EOF 1>&2
9271
9272 *** Warning: the command libtool uses to detect shared libraries,
9273 *** $file_magic_cmd, produces output that libtool cannot recognize.
9274 *** The result is that libtool may fail to recognize shared libraries
9275 *** as such. This will affect the creation of libtool libraries that
9276 *** depend on shared libraries, but programs linked with such libtool
9277 *** libraries will work regardless of this problem. Nevertheless, you
9278 *** may want to report the problem to your system manager and/or to
9279 *** bug-libtool@gnu.org
9280
9281 _LT_EOF
9282 fi ;;
9283 esac
9284 fi
9285 break
9286 fi
9287 done
9288 IFS=$lt_save_ifs
9289 MAGIC_CMD=$lt_save_MAGIC_CMD
9290 ;;
9291 esac
9292 fi
9293
9294 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9295 if test -n "$MAGIC_CMD"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9297 $as_echo "$MAGIC_CMD" >&6; }
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9301 fi
9302
9303
9304
9305
9306
9307 if test -z "$lt_cv_path_MAGIC_CMD"; then
9308 if test -n "$ac_tool_prefix"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9310 $as_echo_n "checking for file... " >&6; }
9311 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 case $MAGIC_CMD in
9315 [\\/*] | ?:[\\/]*)
9316 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9317 ;;
9318 *)
9319 lt_save_MAGIC_CMD=$MAGIC_CMD
9320 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322 for ac_dir in $ac_dummy; do
9323 IFS=$lt_save_ifs
9324 test -z "$ac_dir" && ac_dir=.
9325 if test -f "$ac_dir/file"; then
9326 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9327 if test -n "$file_magic_test_file"; then
9328 case $deplibs_check_method in
9329 "file_magic "*)
9330 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333 $EGREP "$file_magic_regex" > /dev/null; then
9334 :
9335 else
9336 cat <<_LT_EOF 1>&2
9337
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such. This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem. Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9346
9347 _LT_EOF
9348 fi ;;
9349 esac
9350 fi
9351 break
9352 fi
9353 done
9354 IFS=$lt_save_ifs
9355 MAGIC_CMD=$lt_save_MAGIC_CMD
9356 ;;
9357 esac
9358 fi
9359
9360 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9361 if test -n "$MAGIC_CMD"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370 else
9371 MAGIC_CMD=:
9372 fi
9373 fi
9374
9375 fi
9376 ;;
9377 esac
9378
9379 # Use C for the default configuration in the libtool script
9380
9381 lt_save_CC=$CC
9382 ac_ext=c
9383 ac_cpp='$CPP $CPPFLAGS'
9384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9387
9388
9389 # Source file extension for C test sources.
9390 ac_ext=c
9391
9392 # Object file extension for compiled C test sources.
9393 objext=o
9394 objext=$objext
9395
9396 # Code to be used in simple compile tests
9397 lt_simple_compile_test_code="int some_variable = 0;"
9398
9399 # Code to be used in simple link tests
9400 lt_simple_link_test_code='int main(){return(0);}'
9401
9402
9403
9404
9405
9406
9407
9408 # If no C compiler was specified, use CC.
9409 LTCC=${LTCC-"$CC"}
9410
9411 # If no C compiler flags were specified, use CFLAGS.
9412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9413
9414 # Allow CC to be a program name with arguments.
9415 compiler=$CC
9416
9417 # Save the default compiler, since it gets overwritten when the other
9418 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9419 compiler_DEFAULT=$CC
9420
9421 # save warnings/boilerplate of simple test code
9422 ac_outfile=conftest.$ac_objext
9423 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9424 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9425 _lt_compiler_boilerplate=`cat conftest.err`
9426 $RM -r conftest*
9427
9428 ac_outfile=conftest.$ac_objext
9429 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9430 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9431 _lt_linker_boilerplate=`cat conftest.err`
9432 $RM -r conftest*
9433
9434
9435 ## CAVEAT EMPTOR:
9436 ## There is no encapsulation within the following macros, do not change
9437 ## the running order or otherwise move them around unless you know exactly
9438 ## what you are doing...
9439 if test -n "$compiler"; then
9440
9441 lt_prog_compiler_no_builtin_flag=
9442
9443 if test yes = "$GCC"; then
9444 case $cc_basename in
9445 nvcc*)
9446 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9447 *)
9448 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9449 esac
9450
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9452 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9453 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 lt_cv_prog_compiler_rtti_exceptions=no
9457 ac_outfile=conftest.$ac_objext
9458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9460 # Insert the option either (1) after the last *FLAGS variable, or
9461 # (2) before a word containing "conftest.", or (3) at the end.
9462 # Note that $ac_compile itself does not contain backslashes and begins
9463 # with a dollar sign (not a hyphen), so the echo should work correctly.
9464 # The option is referenced via a variable to avoid confusing sed.
9465 lt_compile=`echo "$ac_compile" | $SED \
9466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9468 -e 's:$: $lt_compiler_flag:'`
9469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9470 (eval "$lt_compile" 2>conftest.err)
9471 ac_status=$?
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 if (exit $ac_status) && test -s "$ac_outfile"; then
9475 # The compiler can only warn and ignore the option if not recognized
9476 # So say no if there are warnings other than the usual output.
9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_rtti_exceptions=yes
9481 fi
9482 fi
9483 $RM -r conftest*
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9487 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9488
9489 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9491 else
9492 :
9493 fi
9494
9495 fi
9496
9497
9498
9499
9500
9501
9502 lt_prog_compiler_wl=
9503 lt_prog_compiler_pic=
9504 lt_prog_compiler_static=
9505
9506
9507 if test yes = "$GCC"; then
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_static='-static'
9510
9511 case $host_os in
9512 aix*)
9513 # All AIX code is PIC.
9514 if test ia64 = "$host_cpu"; then
9515 # AIX 5 now supports IA64 processor
9516 lt_prog_compiler_static='-Bstatic'
9517 fi
9518 lt_prog_compiler_pic='-fPIC'
9519 ;;
9520
9521 amigaos*)
9522 case $host_cpu in
9523 powerpc)
9524 # see comment about AmigaOS4 .so support
9525 lt_prog_compiler_pic='-fPIC'
9526 ;;
9527 m68k)
9528 # FIXME: we need at least 68020 code to build shared libraries, but
9529 # adding the '-m68020' flag to GCC prevents building anything better,
9530 # like '-m68040'.
9531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9532 ;;
9533 esac
9534 ;;
9535
9536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9537 # PIC is the default for these OSes.
9538 ;;
9539
9540 mingw* | cygwin* | pw32* | os2* | cegcc*)
9541 # This hack is so that the source file can tell whether it is being
9542 # built for inclusion in a dll (and should export symbols for example).
9543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9544 # (--disable-auto-import) libraries
9545 lt_prog_compiler_pic='-DDLL_EXPORT'
9546 case $host_os in
9547 os2*)
9548 lt_prog_compiler_static='$wl-static'
9549 ;;
9550 esac
9551 ;;
9552
9553 darwin* | rhapsody*)
9554 # PIC is the default on this platform
9555 # Common symbols not allowed in MH_DYLIB files
9556 lt_prog_compiler_pic='-fno-common'
9557 ;;
9558
9559 haiku*)
9560 # PIC is the default for Haiku.
9561 # The "-static" flag exists, but is broken.
9562 lt_prog_compiler_static=
9563 ;;
9564
9565 hpux*)
9566 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9567 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9568 # sets the default TLS model and affects inlining.
9569 case $host_cpu in
9570 hppa*64*)
9571 # +Z the default
9572 ;;
9573 *)
9574 lt_prog_compiler_pic='-fPIC'
9575 ;;
9576 esac
9577 ;;
9578
9579 interix[3-9]*)
9580 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9581 # Instead, we relocate shared libraries at runtime.
9582 ;;
9583
9584 msdosdjgpp*)
9585 # Just because we use GCC doesn't mean we suddenly get shared libraries
9586 # on systems that don't support them.
9587 lt_prog_compiler_can_build_shared=no
9588 enable_shared=no
9589 ;;
9590
9591 *nto* | *qnx*)
9592 # QNX uses GNU C++, but need to define -shared option too, otherwise
9593 # it will coredump.
9594 lt_prog_compiler_pic='-fPIC -shared'
9595 ;;
9596
9597 sysv4*MP*)
9598 if test -d /usr/nec; then
9599 lt_prog_compiler_pic=-Kconform_pic
9600 fi
9601 ;;
9602
9603 *)
9604 lt_prog_compiler_pic='-fPIC'
9605 ;;
9606 esac
9607
9608 case $cc_basename in
9609 nvcc*) # Cuda Compiler Driver 2.2
9610 lt_prog_compiler_wl='-Xlinker '
9611 if test -n "$lt_prog_compiler_pic"; then
9612 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9613 fi
9614 ;;
9615 esac
9616 else
9617 # PORTME Check for flag to pass linker flags through the system compiler.
9618 case $host_os in
9619 aix*)
9620 lt_prog_compiler_wl='-Wl,'
9621 if test ia64 = "$host_cpu"; then
9622 # AIX 5 now supports IA64 processor
9623 lt_prog_compiler_static='-Bstatic'
9624 else
9625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9626 fi
9627 ;;
9628
9629 darwin* | rhapsody*)
9630 # PIC is the default on this platform
9631 # Common symbols not allowed in MH_DYLIB files
9632 lt_prog_compiler_pic='-fno-common'
9633 case $cc_basename in
9634 nagfor*)
9635 # NAG Fortran compiler
9636 lt_prog_compiler_wl='-Wl,-Wl,,'
9637 lt_prog_compiler_pic='-PIC'
9638 lt_prog_compiler_static='-Bstatic'
9639 ;;
9640 esac
9641 ;;
9642
9643 mingw* | cygwin* | pw32* | os2* | cegcc*)
9644 # This hack is so that the source file can tell whether it is being
9645 # built for inclusion in a dll (and should export symbols for example).
9646 lt_prog_compiler_pic='-DDLL_EXPORT'
9647 case $host_os in
9648 os2*)
9649 lt_prog_compiler_static='$wl-static'
9650 ;;
9651 esac
9652 ;;
9653
9654 hpux9* | hpux10* | hpux11*)
9655 lt_prog_compiler_wl='-Wl,'
9656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9657 # not for PA HP-UX.
9658 case $host_cpu in
9659 hppa*64*|ia64*)
9660 # +Z the default
9661 ;;
9662 *)
9663 lt_prog_compiler_pic='+Z'
9664 ;;
9665 esac
9666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9667 lt_prog_compiler_static='$wl-a ${wl}archive'
9668 ;;
9669
9670 irix5* | irix6* | nonstopux*)
9671 lt_prog_compiler_wl='-Wl,'
9672 # PIC (with -KPIC) is the default.
9673 lt_prog_compiler_static='-non_shared'
9674 ;;
9675
9676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9677 case $cc_basename in
9678 # old Intel for x86_64, which still supported -KPIC.
9679 ecc*)
9680 lt_prog_compiler_wl='-Wl,'
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-static'
9683 ;;
9684 # icc used to be incompatible with GCC.
9685 # ICC 10 doesn't accept -KPIC any more.
9686 icc* | ifort*)
9687 lt_prog_compiler_wl='-Wl,'
9688 lt_prog_compiler_pic='-fPIC'
9689 lt_prog_compiler_static='-static'
9690 ;;
9691 # Lahey Fortran 8.1.
9692 lf95*)
9693 lt_prog_compiler_wl='-Wl,'
9694 lt_prog_compiler_pic='--shared'
9695 lt_prog_compiler_static='--static'
9696 ;;
9697 nagfor*)
9698 # NAG Fortran compiler
9699 lt_prog_compiler_wl='-Wl,-Wl,,'
9700 lt_prog_compiler_pic='-PIC'
9701 lt_prog_compiler_static='-Bstatic'
9702 ;;
9703 tcc*)
9704 # Fabrice Bellard et al's Tiny C Compiler
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-fPIC'
9707 lt_prog_compiler_static='-static'
9708 ;;
9709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9710 # Portland Group compilers (*not* the Pentium gcc compiler,
9711 # which looks to be a dead project)
9712 lt_prog_compiler_wl='-Wl,'
9713 lt_prog_compiler_pic='-fpic'
9714 lt_prog_compiler_static='-Bstatic'
9715 ;;
9716 ccc*)
9717 lt_prog_compiler_wl='-Wl,'
9718 # All Alpha code is PIC.
9719 lt_prog_compiler_static='-non_shared'
9720 ;;
9721 xl* | bgxl* | bgf* | mpixl*)
9722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9723 lt_prog_compiler_wl='-Wl,'
9724 lt_prog_compiler_pic='-qpic'
9725 lt_prog_compiler_static='-qstaticlink'
9726 ;;
9727 *)
9728 case `$CC -V 2>&1 | sed 5q` in
9729 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-Bstatic'
9733 lt_prog_compiler_wl=''
9734 ;;
9735 *Sun\ F* | *Sun*Fortran*)
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 lt_prog_compiler_wl='-Qoption ld '
9739 ;;
9740 *Sun\ C*)
9741 # Sun C 5.9
9742 lt_prog_compiler_pic='-KPIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 lt_prog_compiler_wl='-Wl,'
9745 ;;
9746 *Intel*\ [CF]*Compiler*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-fPIC'
9749 lt_prog_compiler_static='-static'
9750 ;;
9751 *Portland\ Group*)
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_pic='-fpic'
9754 lt_prog_compiler_static='-Bstatic'
9755 ;;
9756 esac
9757 ;;
9758 esac
9759 ;;
9760
9761 newsos6)
9762 lt_prog_compiler_pic='-KPIC'
9763 lt_prog_compiler_static='-Bstatic'
9764 ;;
9765
9766 *nto* | *qnx*)
9767 # QNX uses GNU C++, but need to define -shared option too, otherwise
9768 # it will coredump.
9769 lt_prog_compiler_pic='-fPIC -shared'
9770 ;;
9771
9772 osf3* | osf4* | osf5*)
9773 lt_prog_compiler_wl='-Wl,'
9774 # All OSF/1 code is PIC.
9775 lt_prog_compiler_static='-non_shared'
9776 ;;
9777
9778 rdos*)
9779 lt_prog_compiler_static='-non_shared'
9780 ;;
9781
9782 solaris*)
9783 lt_prog_compiler_pic='-KPIC'
9784 lt_prog_compiler_static='-Bstatic'
9785 case $cc_basename in
9786 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9787 lt_prog_compiler_wl='-Qoption ld ';;
9788 *)
9789 lt_prog_compiler_wl='-Wl,';;
9790 esac
9791 ;;
9792
9793 sunos4*)
9794 lt_prog_compiler_wl='-Qoption ld '
9795 lt_prog_compiler_pic='-PIC'
9796 lt_prog_compiler_static='-Bstatic'
9797 ;;
9798
9799 sysv4 | sysv4.2uw2* | sysv4.3*)
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9803 ;;
9804
9805 sysv4*MP*)
9806 if test -d /usr/nec; then
9807 lt_prog_compiler_pic='-Kconform_pic'
9808 lt_prog_compiler_static='-Bstatic'
9809 fi
9810 ;;
9811
9812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9813 lt_prog_compiler_wl='-Wl,'
9814 lt_prog_compiler_pic='-KPIC'
9815 lt_prog_compiler_static='-Bstatic'
9816 ;;
9817
9818 unicos*)
9819 lt_prog_compiler_wl='-Wl,'
9820 lt_prog_compiler_can_build_shared=no
9821 ;;
9822
9823 uts4*)
9824 lt_prog_compiler_pic='-pic'
9825 lt_prog_compiler_static='-Bstatic'
9826 ;;
9827
9828 *)
9829 lt_prog_compiler_can_build_shared=no
9830 ;;
9831 esac
9832 fi
9833
9834 case $host_os in
9835 # For platforms that do not support PIC, -DPIC is meaningless:
9836 *djgpp*)
9837 lt_prog_compiler_pic=
9838 ;;
9839 *)
9840 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9841 ;;
9842 esac
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9845 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9846 if ${lt_cv_prog_compiler_pic+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9852 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9853 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9854
9855 #
9856 # Check to make sure the PIC flag actually works.
9857 #
9858 if test -n "$lt_prog_compiler_pic"; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 lt_cv_prog_compiler_pic_works=no
9865 ac_outfile=conftest.$ac_objext
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9868 # Insert the option either (1) after the last *FLAGS variable, or
9869 # (2) before a word containing "conftest.", or (3) at the end.
9870 # Note that $ac_compile itself does not contain backslashes and begins
9871 # with a dollar sign (not a hyphen), so the echo should work correctly.
9872 # The option is referenced via a variable to avoid confusing sed.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>conftest.err)
9879 ac_status=$?
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s "$ac_outfile"; then
9883 # The compiler can only warn and ignore the option if not recognized
9884 # So say no if there are warnings other than the usual output.
9885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9888 lt_cv_prog_compiler_pic_works=yes
9889 fi
9890 fi
9891 $RM -r conftest*
9892
9893 fi
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9896
9897 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9898 case $lt_prog_compiler_pic in
9899 "" | " "*) ;;
9900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9901 esac
9902 else
9903 lt_prog_compiler_pic=
9904 lt_prog_compiler_can_build_shared=no
9905 fi
9906
9907 fi
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919 #
9920 # Check to make sure the static flag actually works.
9921 #
9922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9925 if ${lt_cv_prog_compiler_static_works+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 lt_cv_prog_compiler_static_works=no
9929 save_LDFLAGS=$LDFLAGS
9930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9933 # The linker can only warn and ignore the option if not recognized
9934 # So say no if there are warnings
9935 if test -s conftest.err; then
9936 # Append any errors to the config.log.
9937 cat conftest.err 1>&5
9938 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9940 if diff conftest.exp conftest.er2 >/dev/null; then
9941 lt_cv_prog_compiler_static_works=yes
9942 fi
9943 else
9944 lt_cv_prog_compiler_static_works=yes
9945 fi
9946 fi
9947 $RM -r conftest*
9948 LDFLAGS=$save_LDFLAGS
9949
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9952 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9953
9954 if test yes = "$lt_cv_prog_compiler_static_works"; then
9955 :
9956 else
9957 lt_prog_compiler_static=
9958 fi
9959
9960
9961
9962
9963
9964
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9968 if ${lt_cv_prog_compiler_c_o+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 lt_cv_prog_compiler_c_o=no
9972 $RM -r conftest 2>/dev/null
9973 mkdir conftest
9974 cd conftest
9975 mkdir out
9976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9977
9978 lt_compiler_flag="-o out/conftest2.$ac_objext"
9979 # Insert the option either (1) after the last *FLAGS variable, or
9980 # (2) before a word containing "conftest.", or (3) at the end.
9981 # Note that $ac_compile itself does not contain backslashes and begins
9982 # with a dollar sign (not a hyphen), so the echo should work correctly.
9983 lt_compile=`echo "$ac_compile" | $SED \
9984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9986 -e 's:$: $lt_compiler_flag:'`
9987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9988 (eval "$lt_compile" 2>out/conftest.err)
9989 ac_status=$?
9990 cat out/conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9993 then
9994 # The compiler can only warn and ignore the option if not recognized
9995 # So say no if there are warnings
9996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9999 lt_cv_prog_compiler_c_o=yes
10000 fi
10001 fi
10002 chmod u+w . 2>&5
10003 $RM -r conftest*
10004 # SGI C++ compiler will create directory out/ii_files/ for
10005 # template instantiation
10006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10007 $RM out/* && rmdir out
10008 cd ..
10009 $RM -r conftest
10010 $RM -r conftest*
10011
10012 fi
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10015
10016
10017
10018
10019
10020
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10023 if ${lt_cv_prog_compiler_c_o+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 lt_cv_prog_compiler_c_o=no
10027 $RM -r conftest 2>/dev/null
10028 mkdir conftest
10029 cd conftest
10030 mkdir out
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10032
10033 lt_compiler_flag="-o out/conftest2.$ac_objext"
10034 # Insert the option either (1) after the last *FLAGS variable, or
10035 # (2) before a word containing "conftest.", or (3) at the end.
10036 # Note that $ac_compile itself does not contain backslashes and begins
10037 # with a dollar sign (not a hyphen), so the echo should work correctly.
10038 lt_compile=`echo "$ac_compile" | $SED \
10039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10041 -e 's:$: $lt_compiler_flag:'`
10042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10043 (eval "$lt_compile" 2>out/conftest.err)
10044 ac_status=$?
10045 cat out/conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10048 then
10049 # The compiler can only warn and ignore the option if not recognized
10050 # So say no if there are warnings
10051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler_c_o=yes
10055 fi
10056 fi
10057 chmod u+w . 2>&5
10058 $RM -r conftest*
10059 # SGI C++ compiler will create directory out/ii_files/ for
10060 # template instantiation
10061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10062 $RM out/* && rmdir out
10063 cd ..
10064 $RM -r conftest
10065 $RM -r conftest*
10066
10067 fi
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10070
10071
10072
10073
10074 hard_links=nottested
10075 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10076 # do not overwrite the value of need_locks provided by the user
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10078 $as_echo_n "checking if we can lock with hard links... " >&6; }
10079 hard_links=yes
10080 $RM -r conftest*
10081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10082 touch conftest.a
10083 ln conftest.a conftest.b 2>&5 || hard_links=no
10084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10086 $as_echo "$hard_links" >&6; }
10087 if test no = "$hard_links"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10089 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10090 need_locks=warn
10091 fi
10092 else
10093 need_locks=no
10094 fi
10095
10096
10097
10098
10099
10100
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10103
10104 runpath_var=
10105 allow_undefined_flag=
10106 always_export_symbols=no
10107 archive_cmds=
10108 archive_expsym_cmds=
10109 compiler_needs_object=no
10110 enable_shared_with_static_runtimes=no
10111 export_dynamic_flag_spec=
10112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10113 hardcode_automatic=no
10114 hardcode_direct=no
10115 hardcode_direct_absolute=no
10116 hardcode_libdir_flag_spec=
10117 hardcode_libdir_separator=
10118 hardcode_minus_L=no
10119 hardcode_shlibpath_var=unsupported
10120 inherit_rpath=no
10121 link_all_deplibs=unknown
10122 module_cmds=
10123 module_expsym_cmds=
10124 old_archive_from_new_cmds=
10125 old_archive_from_expsyms_cmds=
10126 thread_safe_flag_spec=
10127 whole_archive_flag_spec=
10128 # include_expsyms should be a list of space-separated symbols to be *always*
10129 # included in the symbol list
10130 include_expsyms=
10131 # exclude_expsyms can be an extended regexp of symbols to exclude
10132 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10133 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10134 # as well as any symbol that contains 'd'.
10135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10137 # platforms (ab)use it in PIC code, but their linkers get confused if
10138 # the symbol is explicitly referenced. Since portable code cannot
10139 # rely on this symbol name, it's probably fine to never include it in
10140 # preloaded symbol tables.
10141 # Exclude shared library initialization/finalization symbols.
10142 extract_expsyms_cmds=
10143
10144 case $host_os in
10145 cygwin* | mingw* | pw32* | cegcc*)
10146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10147 # When not using gcc, we currently assume that we are using
10148 # Microsoft Visual C++.
10149 if test yes != "$GCC"; then
10150 with_gnu_ld=no
10151 fi
10152 ;;
10153 interix*)
10154 # we just hope/assume this is gcc and not c89 (= MSVC++)
10155 with_gnu_ld=yes
10156 ;;
10157 openbsd* | bitrig*)
10158 with_gnu_ld=no
10159 ;;
10160 esac
10161
10162 ld_shlibs=yes
10163
10164 # On some targets, GNU ld is compatible enough with the native linker
10165 # that we're better off using the native interface for both.
10166 lt_use_gnu_ld_interface=no
10167 if test yes = "$with_gnu_ld"; then
10168 case $host_os in
10169 aix*)
10170 # The AIX port of GNU ld has always aspired to compatibility
10171 # with the native linker. However, as the warning in the GNU ld
10172 # block says, versions before 2.19.5* couldn't really create working
10173 # shared libraries, regardless of the interface used.
10174 case `$LD -v 2>&1` in
10175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10178 *)
10179 lt_use_gnu_ld_interface=yes
10180 ;;
10181 esac
10182 ;;
10183 *)
10184 lt_use_gnu_ld_interface=yes
10185 ;;
10186 esac
10187 fi
10188
10189 if test yes = "$lt_use_gnu_ld_interface"; then
10190 # If archive_cmds runs LD, not CC, wlarc should be empty
10191 wlarc='$wl'
10192
10193 # Set some defaults for GNU ld with shared library support. These
10194 # are reset later if shared libraries are not supported. Putting them
10195 # here allows them to be overridden if necessary.
10196 runpath_var=LD_RUN_PATH
10197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10198 export_dynamic_flag_spec='$wl--export-dynamic'
10199 # ancient GNU ld didn't support --whole-archive et. al.
10200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10201 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10202 else
10203 whole_archive_flag_spec=
10204 fi
10205 supports_anon_versioning=no
10206 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10207 *GNU\ gold*) supports_anon_versioning=yes ;;
10208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10211 *\ 2.11.*) ;; # other 2.11 versions
10212 *) supports_anon_versioning=yes ;;
10213 esac
10214
10215 # See if GNU ld supports shared libraries.
10216 case $host_os in
10217 aix[3-9]*)
10218 # On AIX/PPC, the GNU linker is very broken
10219 if test ia64 != "$host_cpu"; then
10220 ld_shlibs=no
10221 cat <<_LT_EOF 1>&2
10222
10223 *** Warning: the GNU linker, at least up to release 2.19, is reported
10224 *** to be unable to reliably create shared libraries on AIX.
10225 *** Therefore, libtool is disabling shared libraries support. If you
10226 *** really care for shared libraries, you may want to install binutils
10227 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10228 *** You will then need to restart the configuration process.
10229
10230 _LT_EOF
10231 fi
10232 ;;
10233
10234 amigaos*)
10235 case $host_cpu in
10236 powerpc)
10237 # see comment about AmigaOS4 .so support
10238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10239 archive_expsym_cmds=''
10240 ;;
10241 m68k)
10242 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)'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_minus_L=yes
10245 ;;
10246 esac
10247 ;;
10248
10249 beos*)
10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 allow_undefined_flag=unsupported
10252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10253 # support --undefined. This deserves some investigation. FIXME
10254 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10255 else
10256 ld_shlibs=no
10257 fi
10258 ;;
10259
10260 cygwin* | mingw* | pw32* | cegcc*)
10261 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10262 # as there is no search path for DLLs.
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 export_dynamic_flag_spec='$wl--export-all-symbols'
10265 allow_undefined_flag=unsupported
10266 always_export_symbols=no
10267 enable_shared_with_static_runtimes=yes
10268 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'
10269 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10270
10271 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10273 # If the export-symbols file already is a .def file, use it as
10274 # is; otherwise, prepend EXPORTS...
10275 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10276 cp $export_symbols $output_objdir/$soname.def;
10277 else
10278 echo EXPORTS > $output_objdir/$soname.def;
10279 cat $export_symbols >> $output_objdir/$soname.def;
10280 fi~
10281 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10282 else
10283 ld_shlibs=no
10284 fi
10285 ;;
10286
10287 haiku*)
10288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10289 link_all_deplibs=yes
10290 ;;
10291
10292 os2*)
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_minus_L=yes
10295 allow_undefined_flag=unsupported
10296 shrext_cmds=.dll
10297 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10300 $ECHO EXPORTS >> $output_objdir/$libname.def~
10301 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10302 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10303 emximp -o $lib $output_objdir/$libname.def'
10304 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10305 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10306 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10307 $ECHO EXPORTS >> $output_objdir/$libname.def~
10308 prefix_cmds="$SED"~
10309 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10310 prefix_cmds="$prefix_cmds -e 1d";
10311 fi~
10312 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10313 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10314 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10315 emximp -o $lib $output_objdir/$libname.def'
10316 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10317 enable_shared_with_static_runtimes=yes
10318 ;;
10319
10320 interix[3-9]*)
10321 hardcode_direct=no
10322 hardcode_shlibpath_var=no
10323 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10324 export_dynamic_flag_spec='$wl-E'
10325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10326 # Instead, shared libraries are loaded at an image base (0x10000000 by
10327 # default) and relocated if they conflict, which is a slow very memory
10328 # consuming and fragmenting process. To avoid this, we pick a random,
10329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10332 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'
10333 ;;
10334
10335 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10336 tmp_diet=no
10337 if test linux-dietlibc = "$host_os"; then
10338 case $cc_basename in
10339 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10340 esac
10341 fi
10342 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10343 && test no = "$tmp_diet"
10344 then
10345 tmp_addflag=' $pic_flag'
10346 tmp_sharedflag='-shared'
10347 case $cc_basename,$host_cpu in
10348 pgcc*) # Portland Group C compiler
10349 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'
10350 tmp_addflag=' $pic_flag'
10351 ;;
10352 pgf77* | pgf90* | pgf95* | pgfortran*)
10353 # Portland Group f77 and f90 compilers
10354 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'
10355 tmp_addflag=' $pic_flag -Mnomain' ;;
10356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10357 tmp_addflag=' -i_dynamic' ;;
10358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10359 tmp_addflag=' -i_dynamic -nofor_main' ;;
10360 ifc* | ifort*) # Intel Fortran compiler
10361 tmp_addflag=' -nofor_main' ;;
10362 lf95*) # Lahey Fortran 8.1
10363 whole_archive_flag_spec=
10364 tmp_sharedflag='--shared' ;;
10365 nagfor*) # NAGFOR 5.3
10366 tmp_sharedflag='-Wl,-shared' ;;
10367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10368 tmp_sharedflag='-qmkshrobj'
10369 tmp_addflag= ;;
10370 nvcc*) # Cuda Compiler Driver 2.2
10371 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'
10372 compiler_needs_object=yes
10373 ;;
10374 esac
10375 case `$CC -V 2>&1 | sed 5q` in
10376 *Sun\ C*) # Sun C 5.9
10377 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'
10378 compiler_needs_object=yes
10379 tmp_sharedflag='-G' ;;
10380 *Sun\ F*) # Sun Fortran 8.3
10381 tmp_sharedflag='-G' ;;
10382 esac
10383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10384
10385 if test yes = "$supports_anon_versioning"; then
10386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10388 echo "local: *; };" >> $output_objdir/$libname.ver~
10389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10390 fi
10391
10392 case $cc_basename in
10393 tcc*)
10394 export_dynamic_flag_spec='-rdynamic'
10395 ;;
10396 xlf* | bgf* | bgxlf* | mpixlf*)
10397 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10398 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10399 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10400 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10401 if test yes = "$supports_anon_versioning"; then
10402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10404 echo "local: *; };" >> $output_objdir/$libname.ver~
10405 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10406 fi
10407 ;;
10408 esac
10409 else
10410 ld_shlibs=no
10411 fi
10412 ;;
10413
10414 netbsd*)
10415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10417 wlarc=
10418 else
10419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10421 fi
10422 ;;
10423
10424 solaris*)
10425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10426 ld_shlibs=no
10427 cat <<_LT_EOF 1>&2
10428
10429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10430 *** create shared libraries on Solaris systems. Therefore, libtool
10431 *** is disabling shared libraries support. We urge you to upgrade GNU
10432 *** binutils to release 2.9.1 or newer. Another option is to modify
10433 *** your PATH or compiler configuration so that the native linker is
10434 *** used, and then restart.
10435
10436 _LT_EOF
10437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10440 else
10441 ld_shlibs=no
10442 fi
10443 ;;
10444
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10446 case `$LD -v 2>&1` in
10447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10448 ld_shlibs=no
10449 cat <<_LT_EOF 1>&2
10450
10451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10452 *** reliably create shared libraries on SCO systems. Therefore, libtool
10453 *** is disabling shared libraries support. We urge you to upgrade GNU
10454 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10455 *** your PATH or compiler configuration so that the native linker is
10456 *** used, and then restart.
10457
10458 _LT_EOF
10459 ;;
10460 *)
10461 # For security reasons, it is highly recommended that you always
10462 # use absolute paths for naming shared libraries, and exclude the
10463 # DT_RUNPATH tag from executables and libraries. But doing so
10464 # requires that you compile everything twice, which is a pain.
10465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10469 else
10470 ld_shlibs=no
10471 fi
10472 ;;
10473 esac
10474 ;;
10475
10476 sunos4*)
10477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10478 wlarc=
10479 hardcode_direct=yes
10480 hardcode_shlibpath_var=no
10481 ;;
10482
10483 *)
10484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10486 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10487 else
10488 ld_shlibs=no
10489 fi
10490 ;;
10491 esac
10492
10493 if test no = "$ld_shlibs"; then
10494 runpath_var=
10495 hardcode_libdir_flag_spec=
10496 export_dynamic_flag_spec=
10497 whole_archive_flag_spec=
10498 fi
10499 else
10500 # PORTME fill in a description of your system's linker (not GNU ld)
10501 case $host_os in
10502 aix3*)
10503 allow_undefined_flag=unsupported
10504 always_export_symbols=yes
10505 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'
10506 # Note: this linker hardcodes the directories in LIBPATH if there
10507 # are no directories specified by -L.
10508 hardcode_minus_L=yes
10509 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10510 # Neither direct hardcoding nor static linking is supported with a
10511 # broken collect2.
10512 hardcode_direct=unsupported
10513 fi
10514 ;;
10515
10516 aix[4-9]*)
10517 if test ia64 = "$host_cpu"; then
10518 # On IA64, the linker does run time linking by default, so we don't
10519 # have to do anything special.
10520 aix_use_runtimelinking=no
10521 exp_sym_flag='-Bexport'
10522 no_entry_flag=
10523 else
10524 # If we're using GNU nm, then we don't want the "-C" option.
10525 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10526 # Without the "-l" option, or with the "-B" option, AIX nm treats
10527 # weak defined symbols like other global defined symbols, whereas
10528 # GNU nm marks them as "W".
10529 # While the 'weak' keyword is ignored in the Export File, we need
10530 # it in the Import File for the 'aix-soname' feature, so we have
10531 # to replace the "-B" option with "-P" for AIX nm.
10532 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10533 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'
10534 else
10535 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'
10536 fi
10537 aix_use_runtimelinking=no
10538
10539 # Test if we are trying to use run time linking or normal
10540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10541 # have runtime linking enabled, and use it for executables.
10542 # For shared libraries, we enable/disable runtime linking
10543 # depending on the kind of the shared library created -
10544 # when "with_aix_soname,aix_use_runtimelinking" is:
10545 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10546 # "aix,yes" lib.so shared, rtl:yes, for executables
10547 # lib.a static archive
10548 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10549 # lib.a(lib.so.V) shared, rtl:no, for executables
10550 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10551 # lib.a(lib.so.V) shared, rtl:no
10552 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10553 # lib.a static archive
10554 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10555 for ld_flag in $LDFLAGS; do
10556 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10557 aix_use_runtimelinking=yes
10558 break
10559 fi
10560 done
10561 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10562 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10563 # so we don't have lib.a shared libs to link our executables.
10564 # We have to force runtime linking in this case.
10565 aix_use_runtimelinking=yes
10566 LDFLAGS="$LDFLAGS -Wl,-brtl"
10567 fi
10568 ;;
10569 esac
10570
10571 exp_sym_flag='-bexport'
10572 no_entry_flag='-bnoentry'
10573 fi
10574
10575 # When large executables or shared objects are built, AIX ld can
10576 # have problems creating the table of contents. If linking a library
10577 # or program results in "error TOC overflow" add -mminimal-toc to
10578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10580
10581 archive_cmds=''
10582 hardcode_direct=yes
10583 hardcode_direct_absolute=yes
10584 hardcode_libdir_separator=':'
10585 link_all_deplibs=yes
10586 file_list_spec='$wl-f,'
10587 case $with_aix_soname,$aix_use_runtimelinking in
10588 aix,*) ;; # traditional, no import file
10589 svr4,* | *,yes) # use import file
10590 # The Import File defines what to hardcode.
10591 hardcode_direct=no
10592 hardcode_direct_absolute=no
10593 ;;
10594 esac
10595
10596 if test yes = "$GCC"; then
10597 case $host_os in aix4.[012]|aix4.[012].*)
10598 # We only want to do this on AIX 4.2 and lower, the check
10599 # below for broken collect2 doesn't work under 4.3+
10600 collect2name=`$CC -print-prog-name=collect2`
10601 if test -f "$collect2name" &&
10602 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10603 then
10604 # We have reworked collect2
10605 :
10606 else
10607 # We have old collect2
10608 hardcode_direct=unsupported
10609 # It fails to find uninstalled libraries when the uninstalled
10610 # path is not listed in the libpath. Setting hardcode_minus_L
10611 # to unsupported forces relinking
10612 hardcode_minus_L=yes
10613 hardcode_libdir_flag_spec='-L$libdir'
10614 hardcode_libdir_separator=
10615 fi
10616 ;;
10617 esac
10618 shared_flag='-shared'
10619 if test yes = "$aix_use_runtimelinking"; then
10620 shared_flag="$shared_flag "'$wl-G'
10621 fi
10622 # Need to ensure runtime linking is disabled for the traditional
10623 # shared library, or the linker may eventually find shared libraries
10624 # /with/ Import File - we do not want to mix them.
10625 shared_flag_aix='-shared'
10626 shared_flag_svr4='-shared $wl-G'
10627 else
10628 # not using gcc
10629 if test ia64 = "$host_cpu"; then
10630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10631 # chokes on -Wl,-G. The following line is correct:
10632 shared_flag='-G'
10633 else
10634 if test yes = "$aix_use_runtimelinking"; then
10635 shared_flag='$wl-G'
10636 else
10637 shared_flag='$wl-bM:SRE'
10638 fi
10639 shared_flag_aix='$wl-bM:SRE'
10640 shared_flag_svr4='$wl-G'
10641 fi
10642 fi
10643
10644 export_dynamic_flag_spec='$wl-bexpall'
10645 # It seems that -bexpall does not export symbols beginning with
10646 # underscore (_), so it is better to generate a list of symbols to export.
10647 always_export_symbols=yes
10648 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10649 # Warning - without using the other runtime loading flags (-brtl),
10650 # -berok will link without error, but may produce a broken library.
10651 allow_undefined_flag='-berok'
10652 # Determine the default libpath from the value encoded in an
10653 # empty executable.
10654 if test set = "${lt_cv_aix_libpath+set}"; then
10655 aix_libpath=$lt_cv_aix_libpath
10656 else
10657 if ${lt_cv_aix_libpath_+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662
10663 int
10664 main ()
10665 {
10666
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672
10673 lt_aix_libpath_sed='
10674 /Import File Strings/,/^$/ {
10675 /^0/ {
10676 s/^0 *\([^ ]*\) *$/\1/
10677 p
10678 }
10679 }'
10680 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 # Check for a 64-bit object if we didn't find anything.
10682 if test -z "$lt_cv_aix_libpath_"; then
10683 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10684 fi
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 if test -z "$lt_cv_aix_libpath_"; then
10689 lt_cv_aix_libpath_=/usr/lib:/lib
10690 fi
10691
10692 fi
10693
10694 aix_libpath=$lt_cv_aix_libpath_
10695 fi
10696
10697 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10698 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
10699 else
10700 if test ia64 = "$host_cpu"; then
10701 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10702 allow_undefined_flag="-z nodefs"
10703 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"
10704 else
10705 # Determine the default libpath from the value encoded in an
10706 # empty executable.
10707 if test set = "${lt_cv_aix_libpath+set}"; then
10708 aix_libpath=$lt_cv_aix_libpath
10709 else
10710 if ${lt_cv_aix_libpath_+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715
10716 int
10717 main ()
10718 {
10719
10720 ;
10721 return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725
10726 lt_aix_libpath_sed='
10727 /Import File Strings/,/^$/ {
10728 /^0/ {
10729 s/^0 *\([^ ]*\) *$/\1/
10730 p
10731 }
10732 }'
10733 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734 # Check for a 64-bit object if we didn't find anything.
10735 if test -z "$lt_cv_aix_libpath_"; then
10736 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10737 fi
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 if test -z "$lt_cv_aix_libpath_"; then
10742 lt_cv_aix_libpath_=/usr/lib:/lib
10743 fi
10744
10745 fi
10746
10747 aix_libpath=$lt_cv_aix_libpath_
10748 fi
10749
10750 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10751 # Warning - without using the other run time loading flags,
10752 # -berok will link without error, but may produce a broken library.
10753 no_undefined_flag=' $wl-bernotok'
10754 allow_undefined_flag=' $wl-berok'
10755 if test yes = "$with_gnu_ld"; then
10756 # We only use this code for GNU lds that support --whole-archive.
10757 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10758 else
10759 # Exported symbols can be pulled into shared objects from archives
10760 whole_archive_flag_spec='$convenience'
10761 fi
10762 archive_cmds_need_lc=yes
10763 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10764 # -brtl affects multiple linker settings, -berok does not and is overridden later
10765 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10766 if test svr4 != "$with_aix_soname"; then
10767 # This is similar to how AIX traditionally builds its shared libraries.
10768 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'
10769 fi
10770 if test aix != "$with_aix_soname"; then
10771 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'
10772 else
10773 # used by -dlpreopen to get the symbols
10774 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10775 fi
10776 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10777 fi
10778 fi
10779 ;;
10780
10781 amigaos*)
10782 case $host_cpu in
10783 powerpc)
10784 # see comment about AmigaOS4 .so support
10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786 archive_expsym_cmds=''
10787 ;;
10788 m68k)
10789 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)'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_minus_L=yes
10792 ;;
10793 esac
10794 ;;
10795
10796 bsdi[45]*)
10797 export_dynamic_flag_spec=-rdynamic
10798 ;;
10799
10800 cygwin* | mingw* | pw32* | cegcc*)
10801 # When not using gcc, we currently assume that we are using
10802 # Microsoft Visual C++.
10803 # hardcode_libdir_flag_spec is actually meaningless, as there is
10804 # no search path for DLLs.
10805 case $cc_basename in
10806 cl*)
10807 # Native MSVC
10808 hardcode_libdir_flag_spec=' '
10809 allow_undefined_flag=unsupported
10810 always_export_symbols=yes
10811 file_list_spec='@'
10812 # Tell ltmain to make .lib files, not .a files.
10813 libext=lib
10814 # Tell ltmain to make .dll files, not .so files.
10815 shrext_cmds=.dll
10816 # FIXME: Setting linknames here is a bad hack.
10817 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10818 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10819 cp "$export_symbols" "$output_objdir/$soname.def";
10820 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10821 else
10822 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10823 fi~
10824 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10825 linknames='
10826 # The linker will not automatically build a static lib if we build a DLL.
10827 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10828 enable_shared_with_static_runtimes=yes
10829 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10831 # Don't use ranlib
10832 old_postinstall_cmds='chmod 644 $oldlib'
10833 postlink_cmds='lt_outputfile="@OUTPUT@"~
10834 lt_tool_outputfile="@TOOL_OUTPUT@"~
10835 case $lt_outputfile in
10836 *.exe|*.EXE) ;;
10837 *)
10838 lt_outputfile=$lt_outputfile.exe
10839 lt_tool_outputfile=$lt_tool_outputfile.exe
10840 ;;
10841 esac~
10842 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10843 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10844 $RM "$lt_outputfile.manifest";
10845 fi'
10846 ;;
10847 *)
10848 # Assume MSVC wrapper
10849 hardcode_libdir_flag_spec=' '
10850 allow_undefined_flag=unsupported
10851 # Tell ltmain to make .lib files, not .a files.
10852 libext=lib
10853 # Tell ltmain to make .dll files, not .so files.
10854 shrext_cmds=.dll
10855 # FIXME: Setting linknames here is a bad hack.
10856 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10857 # The linker will automatically build a .lib file if we build a DLL.
10858 old_archive_from_new_cmds='true'
10859 # FIXME: Should let the user specify the lib program.
10860 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10861 enable_shared_with_static_runtimes=yes
10862 ;;
10863 esac
10864 ;;
10865
10866 darwin* | rhapsody*)
10867
10868
10869 archive_cmds_need_lc=no
10870 hardcode_direct=no
10871 hardcode_automatic=yes
10872 hardcode_shlibpath_var=unsupported
10873 if test yes = "$lt_cv_ld_force_load"; then
10874 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\"`'
10875
10876 else
10877 whole_archive_flag_spec=''
10878 fi
10879 link_all_deplibs=yes
10880 allow_undefined_flag=$_lt_dar_allow_undefined
10881 case $cc_basename in
10882 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10883 *) _lt_dar_can_shared=$GCC ;;
10884 esac
10885 if test yes = "$_lt_dar_can_shared"; then
10886 output_verbose_link_cmd=func_echo_all
10887 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10888 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10889 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"
10890 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"
10891
10892 else
10893 ld_shlibs=no
10894 fi
10895
10896 ;;
10897
10898 dgux*)
10899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_libdir_flag_spec='-L$libdir'
10901 hardcode_shlibpath_var=no
10902 ;;
10903
10904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10905 # support. Future versions do this automatically, but an explicit c++rt0.o
10906 # does not break anything, and helps significantly (at the cost of a little
10907 # extra space).
10908 freebsd2.2*)
10909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10910 hardcode_libdir_flag_spec='-R$libdir'
10911 hardcode_direct=yes
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10916 freebsd2.*)
10917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_direct=yes
10919 hardcode_minus_L=yes
10920 hardcode_shlibpath_var=no
10921 ;;
10922
10923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10924 freebsd* | dragonfly*)
10925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10926 hardcode_libdir_flag_spec='-R$libdir'
10927 hardcode_direct=yes
10928 hardcode_shlibpath_var=no
10929 ;;
10930
10931 hpux9*)
10932 if test yes = "$GCC"; then
10933 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'
10934 else
10935 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'
10936 fi
10937 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10938 hardcode_libdir_separator=:
10939 hardcode_direct=yes
10940
10941 # hardcode_minus_L: Not really in the search PATH,
10942 # but as the default location of the library.
10943 hardcode_minus_L=yes
10944 export_dynamic_flag_spec='$wl-E'
10945 ;;
10946
10947 hpux10*)
10948 if test yes,no = "$GCC,$with_gnu_ld"; then
10949 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10950 else
10951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10952 fi
10953 if test no = "$with_gnu_ld"; then
10954 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10955 hardcode_libdir_separator=:
10956 hardcode_direct=yes
10957 hardcode_direct_absolute=yes
10958 export_dynamic_flag_spec='$wl-E'
10959 # hardcode_minus_L: Not really in the search PATH,
10960 # but as the default location of the library.
10961 hardcode_minus_L=yes
10962 fi
10963 ;;
10964
10965 hpux11*)
10966 if test yes,no = "$GCC,$with_gnu_ld"; then
10967 case $host_cpu in
10968 hppa*64*)
10969 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 ;;
10971 ia64*)
10972 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10973 ;;
10974 *)
10975 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10976 ;;
10977 esac
10978 else
10979 case $host_cpu in
10980 hppa*64*)
10981 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 ;;
10983 ia64*)
10984 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10985 ;;
10986 *)
10987
10988 # Older versions of the 11.00 compiler do not understand -b yet
10989 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10991 $as_echo_n "checking if $CC understands -b... " >&6; }
10992 if ${lt_cv_prog_compiler__b+:} false; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 lt_cv_prog_compiler__b=no
10996 save_LDFLAGS=$LDFLAGS
10997 LDFLAGS="$LDFLAGS -b"
10998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11000 # The linker can only warn and ignore the option if not recognized
11001 # So say no if there are warnings
11002 if test -s conftest.err; then
11003 # Append any errors to the config.log.
11004 cat conftest.err 1>&5
11005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11007 if diff conftest.exp conftest.er2 >/dev/null; then
11008 lt_cv_prog_compiler__b=yes
11009 fi
11010 else
11011 lt_cv_prog_compiler__b=yes
11012 fi
11013 fi
11014 $RM -r conftest*
11015 LDFLAGS=$save_LDFLAGS
11016
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11019 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11020
11021 if test yes = "$lt_cv_prog_compiler__b"; then
11022 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11023 else
11024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11025 fi
11026
11027 ;;
11028 esac
11029 fi
11030 if test no = "$with_gnu_ld"; then
11031 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11032 hardcode_libdir_separator=:
11033
11034 case $host_cpu in
11035 hppa*64*|ia64*)
11036 hardcode_direct=no
11037 hardcode_shlibpath_var=no
11038 ;;
11039 *)
11040 hardcode_direct=yes
11041 hardcode_direct_absolute=yes
11042 export_dynamic_flag_spec='$wl-E'
11043
11044 # hardcode_minus_L: Not really in the search PATH,
11045 # but as the default location of the library.
11046 hardcode_minus_L=yes
11047 ;;
11048 esac
11049 fi
11050 ;;
11051
11052 irix5* | irix6* | nonstopux*)
11053 if test yes = "$GCC"; then
11054 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'
11055 # Try to use the -exported_symbol ld option, if it does not
11056 # work, assume that -exports_file does not work either and
11057 # implicitly export all symbols.
11058 # This should be the same for all languages, so no per-tag cache variable.
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11060 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11061 if ${lt_cv_irix_exported_symbol+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 save_LDFLAGS=$LDFLAGS
11065 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068 int foo (void) { return 0; }
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 lt_cv_irix_exported_symbol=yes
11072 else
11073 lt_cv_irix_exported_symbol=no
11074 fi
11075 rm -f core conftest.err conftest.$ac_objext \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LDFLAGS=$save_LDFLAGS
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11080 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11081 if test yes = "$lt_cv_irix_exported_symbol"; then
11082 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'
11083 fi
11084 else
11085 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'
11086 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'
11087 fi
11088 archive_cmds_need_lc='no'
11089 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11090 hardcode_libdir_separator=:
11091 inherit_rpath=yes
11092 link_all_deplibs=yes
11093 ;;
11094
11095 linux*)
11096 case $cc_basename in
11097 tcc*)
11098 # Fabrice Bellard et al's Tiny C Compiler
11099 ld_shlibs=yes
11100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11101 ;;
11102 esac
11103 ;;
11104
11105 netbsd*)
11106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11108 else
11109 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11110 fi
11111 hardcode_libdir_flag_spec='-R$libdir'
11112 hardcode_direct=yes
11113 hardcode_shlibpath_var=no
11114 ;;
11115
11116 newsos6)
11117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118 hardcode_direct=yes
11119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11120 hardcode_libdir_separator=:
11121 hardcode_shlibpath_var=no
11122 ;;
11123
11124 *nto* | *qnx*)
11125 ;;
11126
11127 openbsd* | bitrig*)
11128 if test -f /usr/libexec/ld.so; then
11129 hardcode_direct=yes
11130 hardcode_shlibpath_var=no
11131 hardcode_direct_absolute=yes
11132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11134 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11135 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11136 export_dynamic_flag_spec='$wl-E'
11137 else
11138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11139 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11140 fi
11141 else
11142 ld_shlibs=no
11143 fi
11144 ;;
11145
11146 os2*)
11147 hardcode_libdir_flag_spec='-L$libdir'
11148 hardcode_minus_L=yes
11149 allow_undefined_flag=unsupported
11150 shrext_cmds=.dll
11151 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11152 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11153 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11154 $ECHO EXPORTS >> $output_objdir/$libname.def~
11155 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11156 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11157 emximp -o $lib $output_objdir/$libname.def'
11158 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11159 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11160 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11161 $ECHO EXPORTS >> $output_objdir/$libname.def~
11162 prefix_cmds="$SED"~
11163 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11164 prefix_cmds="$prefix_cmds -e 1d";
11165 fi~
11166 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11167 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11168 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11169 emximp -o $lib $output_objdir/$libname.def'
11170 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11171 enable_shared_with_static_runtimes=yes
11172 ;;
11173
11174 osf3*)
11175 if test yes = "$GCC"; then
11176 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11177 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'
11178 else
11179 allow_undefined_flag=' -expect_unresolved \*'
11180 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'
11181 fi
11182 archive_cmds_need_lc='no'
11183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11184 hardcode_libdir_separator=:
11185 ;;
11186
11187 osf4* | osf5*) # as osf3* with the addition of -msym flag
11188 if test yes = "$GCC"; then
11189 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11190 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'
11191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11192 else
11193 allow_undefined_flag=' -expect_unresolved \*'
11194 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'
11195 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~
11196 $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'
11197
11198 # Both c and cxx compiler support -rpath directly
11199 hardcode_libdir_flag_spec='-rpath $libdir'
11200 fi
11201 archive_cmds_need_lc='no'
11202 hardcode_libdir_separator=:
11203 ;;
11204
11205 solaris*)
11206 no_undefined_flag=' -z defs'
11207 if test yes = "$GCC"; then
11208 wlarc='$wl'
11209 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11211 $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'
11212 else
11213 case `$CC -V 2>&1` in
11214 *"Compilers 5.0"*)
11215 wlarc=''
11216 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11218 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11219 ;;
11220 *)
11221 wlarc='$wl'
11222 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11224 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11225 ;;
11226 esac
11227 fi
11228 hardcode_libdir_flag_spec='-R$libdir'
11229 hardcode_shlibpath_var=no
11230 case $host_os in
11231 solaris2.[0-5] | solaris2.[0-5].*) ;;
11232 *)
11233 # The compiler driver will combine and reorder linker options,
11234 # but understands '-z linker_flag'. GCC discards it without '$wl',
11235 # but is careful enough not to reorder.
11236 # Supported since Solaris 2.6 (maybe 2.5.1?)
11237 if test yes = "$GCC"; then
11238 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11239 else
11240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11241 fi
11242 ;;
11243 esac
11244 link_all_deplibs=yes
11245 ;;
11246
11247 sunos4*)
11248 if test sequent = "$host_vendor"; then
11249 # Use $CC to link under sequent, because it throws in some extra .o
11250 # files that make .init and .fini sections work.
11251 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11252 else
11253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11254 fi
11255 hardcode_libdir_flag_spec='-L$libdir'
11256 hardcode_direct=yes
11257 hardcode_minus_L=yes
11258 hardcode_shlibpath_var=no
11259 ;;
11260
11261 sysv4)
11262 case $host_vendor in
11263 sni)
11264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265 hardcode_direct=yes # is this really true???
11266 ;;
11267 siemens)
11268 ## LD is ld it makes a PLAMLIB
11269 ## CC just makes a GrossModule.
11270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11271 reload_cmds='$CC -r -o $output$reload_objs'
11272 hardcode_direct=no
11273 ;;
11274 motorola)
11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11277 ;;
11278 esac
11279 runpath_var='LD_RUN_PATH'
11280 hardcode_shlibpath_var=no
11281 ;;
11282
11283 sysv4.3*)
11284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11285 hardcode_shlibpath_var=no
11286 export_dynamic_flag_spec='-Bexport'
11287 ;;
11288
11289 sysv4*MP*)
11290 if test -d /usr/nec; then
11291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11292 hardcode_shlibpath_var=no
11293 runpath_var=LD_RUN_PATH
11294 hardcode_runpath_var=yes
11295 ld_shlibs=yes
11296 fi
11297 ;;
11298
11299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11300 no_undefined_flag='$wl-z,text'
11301 archive_cmds_need_lc=no
11302 hardcode_shlibpath_var=no
11303 runpath_var='LD_RUN_PATH'
11304
11305 if test yes = "$GCC"; then
11306 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 else
11309 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11310 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11311 fi
11312 ;;
11313
11314 sysv5* | sco3.2v5* | sco5v6*)
11315 # Note: We CANNOT use -z defs as we might desire, because we do not
11316 # link with -lc, and that would cause any symbols used from libc to
11317 # always be unresolved, which means just about no library would
11318 # ever link correctly. If we're not using GNU ld we use -z text
11319 # though, which does catch some bad symbols but isn't as heavy-handed
11320 # as -z defs.
11321 no_undefined_flag='$wl-z,text'
11322 allow_undefined_flag='$wl-z,nodefs'
11323 archive_cmds_need_lc=no
11324 hardcode_shlibpath_var=no
11325 hardcode_libdir_flag_spec='$wl-R,$libdir'
11326 hardcode_libdir_separator=':'
11327 link_all_deplibs=yes
11328 export_dynamic_flag_spec='$wl-Bexport'
11329 runpath_var='LD_RUN_PATH'
11330
11331 if test yes = "$GCC"; then
11332 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11334 else
11335 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11337 fi
11338 ;;
11339
11340 uts4*)
11341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342 hardcode_libdir_flag_spec='-L$libdir'
11343 hardcode_shlibpath_var=no
11344 ;;
11345
11346 *)
11347 ld_shlibs=no
11348 ;;
11349 esac
11350
11351 if test sni = "$host_vendor"; then
11352 case $host in
11353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11354 export_dynamic_flag_spec='$wl-Blargedynsym'
11355 ;;
11356 esac
11357 fi
11358 fi
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11361 $as_echo "$ld_shlibs" >&6; }
11362 test no = "$ld_shlibs" && can_build_shared=no
11363
11364 with_gnu_ld=$with_gnu_ld
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380 #
11381 # Do we need to explicitly link libc?
11382 #
11383 case "x$archive_cmds_need_lc" in
11384 x|xyes)
11385 # Assume -lc should be added
11386 archive_cmds_need_lc=yes
11387
11388 if test yes,yes = "$GCC,$enable_shared"; then
11389 case $archive_cmds in
11390 *'~'*)
11391 # FIXME: we may have to deal with multi-command sequences.
11392 ;;
11393 '$CC '*)
11394 # Test whether the compiler implicitly links with -lc since on some
11395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11396 # to ld, don't add -lc before -lgcc.
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11399 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 $RM -r conftest*
11403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11404
11405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11406 (eval $ac_compile) 2>&5
11407 ac_status=$?
11408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11409 test $ac_status = 0; } 2>conftest.err; then
11410 soname=conftest
11411 lib=conftest
11412 libobjs=conftest.$ac_objext
11413 deplibs=
11414 wl=$lt_prog_compiler_wl
11415 pic_flag=$lt_prog_compiler_pic
11416 compiler_flags=-v
11417 linker_flags=-v
11418 verstring=
11419 output_objdir=.
11420 libname=conftest
11421 lt_save_allow_undefined_flag=$allow_undefined_flag
11422 allow_undefined_flag=
11423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11425 ac_status=$?
11426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11427 test $ac_status = 0; }
11428 then
11429 lt_cv_archive_cmds_need_lc=no
11430 else
11431 lt_cv_archive_cmds_need_lc=yes
11432 fi
11433 allow_undefined_flag=$lt_save_allow_undefined_flag
11434 else
11435 cat conftest.err 1>&5
11436 fi
11437 $RM -r conftest*
11438
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11441 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11443 ;;
11444 esac
11445 fi
11446 ;;
11447 esac
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11601 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11602
11603 if test yes = "$GCC"; then
11604 case $host_os in
11605 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11606 *) lt_awk_arg='/^libraries:/' ;;
11607 esac
11608 case $host_os in
11609 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11610 *) lt_sed_strip_eq='s|=/|/|g' ;;
11611 esac
11612 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11613 case $lt_search_path_spec in
11614 *\;*)
11615 # if the path contains ";" then we assume it to be the separator
11616 # otherwise default to the standard path separator (i.e. ":") - it is
11617 # assumed that no part of a normal pathname contains ";" but that should
11618 # okay in the real world where ";" in dirpaths is itself problematic.
11619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11620 ;;
11621 *)
11622 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11623 ;;
11624 esac
11625 # Ok, now we have the path, separated by spaces, we can step through it
11626 # and add multilib dir if necessary...
11627 lt_tmp_lt_search_path_spec=
11628 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11629 # ...but if some path component already ends with the multilib dir we assume
11630 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11631 case "$lt_multi_os_dir; $lt_search_path_spec " in
11632 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11633 lt_multi_os_dir=
11634 ;;
11635 esac
11636 for lt_sys_path in $lt_search_path_spec; do
11637 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11639 elif test -n "$lt_multi_os_dir"; then
11640 test -d "$lt_sys_path" && \
11641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11642 fi
11643 done
11644 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11645 BEGIN {RS = " "; FS = "/|\n";} {
11646 lt_foo = "";
11647 lt_count = 0;
11648 for (lt_i = NF; lt_i > 0; lt_i--) {
11649 if ($lt_i != "" && $lt_i != ".") {
11650 if ($lt_i == "..") {
11651 lt_count++;
11652 } else {
11653 if (lt_count == 0) {
11654 lt_foo = "/" $lt_i lt_foo;
11655 } else {
11656 lt_count--;
11657 }
11658 }
11659 }
11660 }
11661 if (lt_foo != "") { lt_freq[lt_foo]++; }
11662 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11663 }'`
11664 # AWK program above erroneously prepends '/' to C:/dos/paths
11665 # for these hosts.
11666 case $host_os in
11667 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11668 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11669 esac
11670 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11671 else
11672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11673 fi
11674 library_names_spec=
11675 libname_spec='lib$name'
11676 soname_spec=
11677 shrext_cmds=.so
11678 postinstall_cmds=
11679 postuninstall_cmds=
11680 finish_cmds=
11681 finish_eval=
11682 shlibpath_var=
11683 shlibpath_overrides_runpath=unknown
11684 version_type=none
11685 dynamic_linker="$host_os ld.so"
11686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11687 need_lib_prefix=unknown
11688 hardcode_into_libs=no
11689
11690 # when you set need_version to no, make sure it does not cause -set_version
11691 # flags to be left without arguments
11692 need_version=unknown
11693
11694
11695
11696 case $host_os in
11697 aix3*)
11698 version_type=linux # correct to gnu/linux during the next big refactor
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11700 shlibpath_var=LIBPATH
11701
11702 # AIX 3 has no versioning support, so we append a major version to the name.
11703 soname_spec='$libname$release$shared_ext$major'
11704 ;;
11705
11706 aix[4-9]*)
11707 version_type=linux # correct to gnu/linux during the next big refactor
11708 need_lib_prefix=no
11709 need_version=no
11710 hardcode_into_libs=yes
11711 if test ia64 = "$host_cpu"; then
11712 # AIX 5 supports IA64
11713 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 else
11716 # With GCC up to 2.95.x, collect2 would create an import file
11717 # for dependence libraries. The import file would start with
11718 # the line '#! .'. This would cause the generated library to
11719 # depend on '.', always an invalid library. This was fixed in
11720 # development snapshots of GCC prior to 3.0.
11721 case $host_os in
11722 aix4 | aix4.[01] | aix4.[01].*)
11723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11724 echo ' yes '
11725 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11726 :
11727 else
11728 can_build_shared=no
11729 fi
11730 ;;
11731 esac
11732 # Using Import Files as archive members, it is possible to support
11733 # filename-based versioning of shared library archives on AIX. While
11734 # this would work for both with and without runtime linking, it will
11735 # prevent static linking of such archives. So we do filename-based
11736 # shared library versioning with .so extension only, which is used
11737 # when both runtime linking and shared linking is enabled.
11738 # Unfortunately, runtime linking may impact performance, so we do
11739 # not want this to be the default eventually. Also, we use the
11740 # versioned .so libs for executables only if there is the -brtl
11741 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11742 # To allow for filename-based versioning support, we need to create
11743 # libNAME.so.V as an archive file, containing:
11744 # *) an Import File, referring to the versioned filename of the
11745 # archive as well as the shared archive member, telling the
11746 # bitwidth (32 or 64) of that shared object, and providing the
11747 # list of exported symbols of that shared object, eventually
11748 # decorated with the 'weak' keyword
11749 # *) the shared object with the F_LOADONLY flag set, to really avoid
11750 # it being seen by the linker.
11751 # At run time we better use the real file rather than another symlink,
11752 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11753
11754 case $with_aix_soname,$aix_use_runtimelinking in
11755 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11756 # soname into executable. Probably we can add versioning support to
11757 # collect2, so additional links can be useful in future.
11758 aix,yes) # traditional libtool
11759 dynamic_linker='AIX unversionable lib.so'
11760 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11761 # instead of lib<name>.a to let people know that these are not
11762 # typical AIX shared libraries.
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11764 ;;
11765 aix,no) # traditional AIX only
11766 dynamic_linker='AIX lib.a(lib.so.V)'
11767 # We preserve .a as extension for shared libraries through AIX4.2
11768 # and later when we are not doing run time linking.
11769 library_names_spec='$libname$release.a $libname.a'
11770 soname_spec='$libname$release$shared_ext$major'
11771 ;;
11772 svr4,*) # full svr4 only
11773 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11774 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11775 # We do not specify a path in Import Files, so LIBPATH fires.
11776 shlibpath_overrides_runpath=yes
11777 ;;
11778 *,yes) # both, prefer svr4
11779 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11780 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11781 # unpreferred sharedlib libNAME.a needs extra handling
11782 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"'
11783 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"'
11784 # We do not specify a path in Import Files, so LIBPATH fires.
11785 shlibpath_overrides_runpath=yes
11786 ;;
11787 *,no) # both, prefer aix
11788 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11789 library_names_spec='$libname$release.a $libname.a'
11790 soname_spec='$libname$release$shared_ext$major'
11791 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11792 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)'
11793 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"'
11794 ;;
11795 esac
11796 shlibpath_var=LIBPATH
11797 fi
11798 ;;
11799
11800 amigaos*)
11801 case $host_cpu in
11802 powerpc)
11803 # Since July 2007 AmigaOS4 officially supports .so libraries.
11804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806 ;;
11807 m68k)
11808 library_names_spec='$libname.ixlibrary $libname.a'
11809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11810 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'
11811 ;;
11812 esac
11813 ;;
11814
11815 beos*)
11816 library_names_spec='$libname$shared_ext'
11817 dynamic_linker="$host_os ld.so"
11818 shlibpath_var=LIBRARY_PATH
11819 ;;
11820
11821 bsdi[45]*)
11822 version_type=linux # correct to gnu/linux during the next big refactor
11823 need_version=no
11824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11825 soname_spec='$libname$release$shared_ext$major'
11826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11830 # the default ld.so.conf also contains /usr/contrib/lib and
11831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11832 # libtool to hard-code these into programs
11833 ;;
11834
11835 cygwin* | mingw* | pw32* | cegcc*)
11836 version_type=windows
11837 shrext_cmds=.dll
11838 need_version=no
11839 need_lib_prefix=no
11840
11841 case $GCC,$cc_basename in
11842 yes,*)
11843 # gcc
11844 library_names_spec='$libname.dll.a'
11845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11846 postinstall_cmds='base_file=`basename \$file`~
11847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11848 dldir=$destdir/`dirname \$dlpath`~
11849 test -d \$dldir || mkdir -p \$dldir~
11850 $install_prog $dir/$dlname \$dldir/$dlname~
11851 chmod a+x \$dldir/$dlname~
11852 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11853 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11854 fi'
11855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11856 dlpath=$dir/\$dldll~
11857 $RM \$dlpath'
11858 shlibpath_overrides_runpath=yes
11859
11860 case $host_os in
11861 cygwin*)
11862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11863 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11864
11865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11866 ;;
11867 mingw* | cegcc*)
11868 # MinGW DLLs use traditional 'lib' prefix
11869 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11870 ;;
11871 pw32*)
11872 # pw32 DLLs use 'pw' prefix rather than 'lib'
11873 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11874 ;;
11875 esac
11876 dynamic_linker='Win32 ld.exe'
11877 ;;
11878
11879 *,cl*)
11880 # Native MSVC
11881 libname_spec='$name'
11882 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11883 library_names_spec='$libname.dll.lib'
11884
11885 case $build_os in
11886 mingw*)
11887 sys_lib_search_path_spec=
11888 lt_save_ifs=$IFS
11889 IFS=';'
11890 for lt_path in $LIB
11891 do
11892 IFS=$lt_save_ifs
11893 # Let DOS variable expansion print the short 8.3 style file name.
11894 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11895 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11896 done
11897 IFS=$lt_save_ifs
11898 # Convert to MSYS style.
11899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11900 ;;
11901 cygwin*)
11902 # Convert to unix form, then to dos form, then back to unix form
11903 # but this time dos style (no spaces!) so that the unix form looks
11904 # like /cygdrive/c/PROGRA~1:/cygdr...
11905 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11906 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11907 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11908 ;;
11909 *)
11910 sys_lib_search_path_spec=$LIB
11911 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11912 # It is most probably a Windows format PATH.
11913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11914 else
11915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916 fi
11917 # FIXME: find the short name or the path components, as spaces are
11918 # common. (e.g. "Program Files" -> "PROGRA~1")
11919 ;;
11920 esac
11921
11922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11923 postinstall_cmds='base_file=`basename \$file`~
11924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11925 dldir=$destdir/`dirname \$dlpath`~
11926 test -d \$dldir || mkdir -p \$dldir~
11927 $install_prog $dir/$dlname \$dldir/$dlname'
11928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11929 dlpath=$dir/\$dldll~
11930 $RM \$dlpath'
11931 shlibpath_overrides_runpath=yes
11932 dynamic_linker='Win32 link.exe'
11933 ;;
11934
11935 *)
11936 # Assume MSVC wrapper
11937 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11938 dynamic_linker='Win32 ld.exe'
11939 ;;
11940 esac
11941 # FIXME: first we should search . and the directory the executable is in
11942 shlibpath_var=PATH
11943 ;;
11944
11945 darwin* | rhapsody*)
11946 dynamic_linker="$host_os dyld"
11947 version_type=darwin
11948 need_lib_prefix=no
11949 need_version=no
11950 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11951 soname_spec='$libname$release$major$shared_ext'
11952 shlibpath_overrides_runpath=yes
11953 shlibpath_var=DYLD_LIBRARY_PATH
11954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11955
11956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11957 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11958 ;;
11959
11960 dgux*)
11961 version_type=linux # correct to gnu/linux during the next big refactor
11962 need_lib_prefix=no
11963 need_version=no
11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11965 soname_spec='$libname$release$shared_ext$major'
11966 shlibpath_var=LD_LIBRARY_PATH
11967 ;;
11968
11969 freebsd* | dragonfly*)
11970 # DragonFly does not have aout. When/if they implement a new
11971 # versioning mechanism, adjust this.
11972 if test -x /usr/bin/objformat; then
11973 objformat=`/usr/bin/objformat`
11974 else
11975 case $host_os in
11976 freebsd[23].*) objformat=aout ;;
11977 *) objformat=elf ;;
11978 esac
11979 fi
11980 version_type=freebsd-$objformat
11981 case $version_type in
11982 freebsd-elf*)
11983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984 soname_spec='$libname$release$shared_ext$major'
11985 need_version=no
11986 need_lib_prefix=no
11987 ;;
11988 freebsd-*)
11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11990 need_version=yes
11991 ;;
11992 esac
11993 shlibpath_var=LD_LIBRARY_PATH
11994 case $host_os in
11995 freebsd2.*)
11996 shlibpath_overrides_runpath=yes
11997 ;;
11998 freebsd3.[01]* | freebsdelf3.[01]*)
11999 shlibpath_overrides_runpath=yes
12000 hardcode_into_libs=yes
12001 ;;
12002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12004 shlibpath_overrides_runpath=no
12005 hardcode_into_libs=yes
12006 ;;
12007 *) # from 4.6 on, and DragonFly
12008 shlibpath_overrides_runpath=yes
12009 hardcode_into_libs=yes
12010 ;;
12011 esac
12012 ;;
12013
12014 haiku*)
12015 version_type=linux # correct to gnu/linux during the next big refactor
12016 need_lib_prefix=no
12017 need_version=no
12018 dynamic_linker="$host_os runtime_loader"
12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020 soname_spec='$libname$release$shared_ext$major'
12021 shlibpath_var=LIBRARY_PATH
12022 shlibpath_overrides_runpath=no
12023 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12024 hardcode_into_libs=yes
12025 ;;
12026
12027 hpux9* | hpux10* | hpux11*)
12028 # Give a soname corresponding to the major version so that dld.sl refuses to
12029 # link against other versions.
12030 version_type=sunos
12031 need_lib_prefix=no
12032 need_version=no
12033 case $host_cpu in
12034 ia64*)
12035 shrext_cmds='.so'
12036 hardcode_into_libs=yes
12037 dynamic_linker="$host_os dld.so"
12038 shlibpath_var=LD_LIBRARY_PATH
12039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 if test 32 = "$HPUX_IA64_MODE"; then
12043 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12044 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12045 else
12046 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12047 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12048 fi
12049 ;;
12050 hppa*64*)
12051 shrext_cmds='.sl'
12052 hardcode_into_libs=yes
12053 dynamic_linker="$host_os dld.sl"
12054 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12057 soname_spec='$libname$release$shared_ext$major'
12058 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12060 ;;
12061 *)
12062 shrext_cmds='.sl'
12063 dynamic_linker="$host_os dld.sl"
12064 shlibpath_var=SHLIB_PATH
12065 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12067 soname_spec='$libname$release$shared_ext$major'
12068 ;;
12069 esac
12070 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12071 postinstall_cmds='chmod 555 $lib'
12072 # or fails outright, so override atomically:
12073 install_override_mode=555
12074 ;;
12075
12076 interix[3-9]*)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 need_lib_prefix=no
12079 need_version=no
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
12082 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=no
12085 hardcode_into_libs=yes
12086 ;;
12087
12088 irix5* | irix6* | nonstopux*)
12089 case $host_os in
12090 nonstopux*) version_type=nonstopux ;;
12091 *)
12092 if test yes = "$lt_cv_prog_gnu_ld"; then
12093 version_type=linux # correct to gnu/linux during the next big refactor
12094 else
12095 version_type=irix
12096 fi ;;
12097 esac
12098 need_lib_prefix=no
12099 need_version=no
12100 soname_spec='$libname$release$shared_ext$major'
12101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12102 case $host_os in
12103 irix5* | nonstopux*)
12104 libsuff= shlibsuff=
12105 ;;
12106 *)
12107 case $LD in # libtool.m4 will add one of these switches to LD
12108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12109 libsuff= shlibsuff= libmagic=32-bit;;
12110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12111 libsuff=32 shlibsuff=N32 libmagic=N32;;
12112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12114 *) libsuff= shlibsuff= libmagic=never-match;;
12115 esac
12116 ;;
12117 esac
12118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12119 shlibpath_overrides_runpath=no
12120 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12121 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12122 hardcode_into_libs=yes
12123 ;;
12124
12125 # No shared lib support for Linux oldld, aout, or coff.
12126 linux*oldld* | linux*aout* | linux*coff*)
12127 dynamic_linker=no
12128 ;;
12129
12130 linux*android*)
12131 version_type=none # Android doesn't support versioned libraries.
12132 need_lib_prefix=no
12133 need_version=no
12134 library_names_spec='$libname$release$shared_ext'
12135 soname_spec='$libname$release$shared_ext'
12136 finish_cmds=
12137 shlibpath_var=LD_LIBRARY_PATH
12138 shlibpath_overrides_runpath=yes
12139
12140 # This implies no fast_install, which is unacceptable.
12141 # Some rework will be needed to allow for fast_install
12142 # before this can be enabled.
12143 hardcode_into_libs=yes
12144
12145 dynamic_linker='Android linker'
12146 # Don't embed -rpath directories since the linker doesn't support them.
12147 hardcode_libdir_flag_spec='-L$libdir'
12148 ;;
12149
12150 # This must be glibc/ELF.
12151 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12152 version_type=linux # correct to gnu/linux during the next big refactor
12153 need_lib_prefix=no
12154 need_version=no
12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156 soname_spec='$libname$release$shared_ext$major'
12157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 shlibpath_overrides_runpath=no
12160
12161 # Some binutils ld are patched to set DT_RUNPATH
12162 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 lt_cv_shlibpath_overrides_runpath=no
12166 save_LDFLAGS=$LDFLAGS
12167 save_libdir=$libdir
12168 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12169 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172
12173 int
12174 main ()
12175 {
12176
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 if ac_fn_c_try_link "$LINENO"; then :
12182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12183 lt_cv_shlibpath_overrides_runpath=yes
12184 fi
12185 fi
12186 rm -f core conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LDFLAGS=$save_LDFLAGS
12189 libdir=$save_libdir
12190
12191 fi
12192
12193 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12194
12195 # This implies no fast_install, which is unacceptable.
12196 # Some rework will be needed to allow for fast_install
12197 # before this can be enabled.
12198 hardcode_into_libs=yes
12199
12200 # Ideally, we could use ldconfig to report *all* directores which are
12201 # searched for libraries, however this is still not possible. Aside from not
12202 # being certain /sbin/ldconfig is available, command
12203 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12204 # even though it is searched at run-time. Try to do the best guess by
12205 # appending ld.so.conf contents (and includes) to the search path.
12206 if test -f /etc/ld.so.conf; then
12207 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' ' '`
12208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12209 fi
12210
12211 # We used to test for /lib/ld.so.1 and disable shared libraries on
12212 # powerpc, because MkLinux only supported shared libraries with the
12213 # GNU dynamic linker. Since this was broken with cross compilers,
12214 # most powerpc-linux boxes support dynamic linking these days and
12215 # people can always --disable-shared, the test was removed, and we
12216 # assume the GNU/Linux dynamic linker is in use.
12217 dynamic_linker='GNU/Linux ld.so'
12218 ;;
12219
12220 netbsd*)
12221 version_type=sunos
12222 need_lib_prefix=no
12223 need_version=no
12224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12227 dynamic_linker='NetBSD (a.out) ld.so'
12228 else
12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12230 soname_spec='$libname$release$shared_ext$major'
12231 dynamic_linker='NetBSD ld.elf_so'
12232 fi
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12235 hardcode_into_libs=yes
12236 ;;
12237
12238 newsos6)
12239 version_type=linux # correct to gnu/linux during the next big refactor
12240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes
12243 ;;
12244
12245 *nto* | *qnx*)
12246 version_type=qnx
12247 need_lib_prefix=no
12248 need_version=no
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250 soname_spec='$libname$release$shared_ext$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=no
12253 hardcode_into_libs=yes
12254 dynamic_linker='ldqnx.so'
12255 ;;
12256
12257 openbsd* | bitrig*)
12258 version_type=sunos
12259 sys_lib_dlsearch_path_spec=/usr/lib
12260 need_lib_prefix=no
12261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12262 need_version=no
12263 else
12264 need_version=yes
12265 fi
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
12270 ;;
12271
12272 os2*)
12273 libname_spec='$name'
12274 version_type=windows
12275 shrext_cmds=.dll
12276 need_version=no
12277 need_lib_prefix=no
12278 # OS/2 can only load a DLL with a base name of 8 characters or less.
12279 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12280 v=$($ECHO $release$versuffix | tr -d .-);
12281 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12282 $ECHO $n$v`$shared_ext'
12283 library_names_spec='${libname}_dll.$libext'
12284 dynamic_linker='OS/2 ld.exe'
12285 shlibpath_var=BEGINLIBPATH
12286 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12288 postinstall_cmds='base_file=`basename \$file`~
12289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12290 dldir=$destdir/`dirname \$dlpath`~
12291 test -d \$dldir || mkdir -p \$dldir~
12292 $install_prog $dir/$dlname \$dldir/$dlname~
12293 chmod a+x \$dldir/$dlname~
12294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12296 fi'
12297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12298 dlpath=$dir/\$dldll~
12299 $RM \$dlpath'
12300 ;;
12301
12302 osf3* | osf4* | osf5*)
12303 version_type=osf
12304 need_lib_prefix=no
12305 need_version=no
12306 soname_spec='$libname$release$shared_ext$major'
12307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12311 ;;
12312
12313 rdos*)
12314 dynamic_linker=no
12315 ;;
12316
12317 solaris*)
12318 version_type=linux # correct to gnu/linux during the next big refactor
12319 need_lib_prefix=no
12320 need_version=no
12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322 soname_spec='$libname$release$shared_ext$major'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12325 hardcode_into_libs=yes
12326 # ldd complains unless libraries are executable
12327 postinstall_cmds='chmod +x $lib'
12328 ;;
12329
12330 sunos4*)
12331 version_type=sunos
12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12334 shlibpath_var=LD_LIBRARY_PATH
12335 shlibpath_overrides_runpath=yes
12336 if test yes = "$with_gnu_ld"; then
12337 need_lib_prefix=no
12338 fi
12339 need_version=yes
12340 ;;
12341
12342 sysv4 | sysv4.3*)
12343 version_type=linux # correct to gnu/linux during the next big refactor
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
12346 shlibpath_var=LD_LIBRARY_PATH
12347 case $host_vendor in
12348 sni)
12349 shlibpath_overrides_runpath=no
12350 need_lib_prefix=no
12351 runpath_var=LD_RUN_PATH
12352 ;;
12353 siemens)
12354 need_lib_prefix=no
12355 ;;
12356 motorola)
12357 need_lib_prefix=no
12358 need_version=no
12359 shlibpath_overrides_runpath=no
12360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12361 ;;
12362 esac
12363 ;;
12364
12365 sysv4*MP*)
12366 if test -d /usr/nec; then
12367 version_type=linux # correct to gnu/linux during the next big refactor
12368 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12369 soname_spec='$libname$shared_ext.$major'
12370 shlibpath_var=LD_LIBRARY_PATH
12371 fi
12372 ;;
12373
12374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12375 version_type=sco
12376 need_lib_prefix=no
12377 need_version=no
12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12379 soname_spec='$libname$release$shared_ext$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 shlibpath_overrides_runpath=yes
12382 hardcode_into_libs=yes
12383 if test yes = "$with_gnu_ld"; then
12384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12385 else
12386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12387 case $host_os in
12388 sco3.2v5*)
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12390 ;;
12391 esac
12392 fi
12393 sys_lib_dlsearch_path_spec='/usr/lib'
12394 ;;
12395
12396 tpf*)
12397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12398 version_type=linux # correct to gnu/linux during the next big refactor
12399 need_lib_prefix=no
12400 need_version=no
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=no
12404 hardcode_into_libs=yes
12405 ;;
12406
12407 uts4*)
12408 version_type=linux # correct to gnu/linux during the next big refactor
12409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12410 soname_spec='$libname$release$shared_ext$major'
12411 shlibpath_var=LD_LIBRARY_PATH
12412 ;;
12413
12414 *)
12415 dynamic_linker=no
12416 ;;
12417 esac
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12419 $as_echo "$dynamic_linker" >&6; }
12420 test no = "$dynamic_linker" && can_build_shared=no
12421
12422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12423 if test yes = "$GCC"; then
12424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425 fi
12426
12427 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12428 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12429 fi
12430
12431 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12432 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12433 fi
12434
12435 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12436 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12437
12438 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12439 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12440
12441 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12442 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12542 hardcode_action=
12543 if test -n "$hardcode_libdir_flag_spec" ||
12544 test -n "$runpath_var" ||
12545 test yes = "$hardcode_automatic"; then
12546
12547 # We can hardcode non-existent directories.
12548 if test no != "$hardcode_direct" &&
12549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12550 # have to relink, otherwise we might link with an installed library
12551 # when we should be linking with a yet-to-be-installed one
12552 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12553 test no != "$hardcode_minus_L"; then
12554 # Linking always hardcodes the temporary library directory.
12555 hardcode_action=relink
12556 else
12557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12558 hardcode_action=immediate
12559 fi
12560 else
12561 # We cannot hardcode anything, or else we can only hardcode existing
12562 # directories.
12563 hardcode_action=unsupported
12564 fi
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12566 $as_echo "$hardcode_action" >&6; }
12567
12568 if test relink = "$hardcode_action" ||
12569 test yes = "$inherit_rpath"; then
12570 # Fast installation is not supported
12571 enable_fast_install=no
12572 elif test yes = "$shlibpath_overrides_runpath" ||
12573 test no = "$enable_shared"; then
12574 # Fast installation is not necessary
12575 enable_fast_install=needless
12576 fi
12577
12578
12579
12580
12581
12582
12583 if test yes != "$enable_dlopen"; then
12584 enable_dlopen=unknown
12585 enable_dlopen_self=unknown
12586 enable_dlopen_self_static=unknown
12587 else
12588 lt_cv_dlopen=no
12589 lt_cv_dlopen_libs=
12590
12591 case $host_os in
12592 beos*)
12593 lt_cv_dlopen=load_add_on
12594 lt_cv_dlopen_libs=
12595 lt_cv_dlopen_self=yes
12596 ;;
12597
12598 mingw* | pw32* | cegcc*)
12599 lt_cv_dlopen=LoadLibrary
12600 lt_cv_dlopen_libs=
12601 ;;
12602
12603 cygwin*)
12604 lt_cv_dlopen=dlopen
12605 lt_cv_dlopen_libs=
12606 ;;
12607
12608 darwin*)
12609 # if libdl is installed we need to link against it
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12612 if ${ac_cv_lib_dl_dlopen+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-ldl $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char dlopen ();
12627 int
12628 main ()
12629 {
12630 return dlopen ();
12631 ;
12632 return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_dl_dlopen=yes
12637 else
12638 ac_cv_lib_dl_dlopen=no
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12646 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12647 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12648 else
12649
12650 lt_cv_dlopen=dyld
12651 lt_cv_dlopen_libs=
12652 lt_cv_dlopen_self=yes
12653
12654 fi
12655
12656 ;;
12657
12658 tpf*)
12659 # Don't try to run any link tests for TPF. We know it's impossible
12660 # because TPF is a cross-compiler, and we know how we open DSOs.
12661 lt_cv_dlopen=dlopen
12662 lt_cv_dlopen_libs=
12663 lt_cv_dlopen_self=no
12664 ;;
12665
12666 *)
12667 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12668 if test "x$ac_cv_func_shl_load" = xyes; then :
12669 lt_cv_dlopen=shl_load
12670 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12672 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12673 if ${ac_cv_lib_dld_shl_load+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 ac_check_lib_save_LIBS=$LIBS
12677 LIBS="-ldld $LIBS"
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12680
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12684 #ifdef __cplusplus
12685 extern "C"
12686 #endif
12687 char shl_load ();
12688 int
12689 main ()
12690 {
12691 return shl_load ();
12692 ;
12693 return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697 ac_cv_lib_dld_shl_load=yes
12698 else
12699 ac_cv_lib_dld_shl_load=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_lib_save_LIBS
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12706 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12707 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12708 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12709 else
12710 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12711 if test "x$ac_cv_func_dlopen" = xyes; then :
12712 lt_cv_dlopen=dlopen
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12716 if ${ac_cv_lib_dl_dlopen+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-ldl $LIBS"
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723
12724 /* Override any GCC internal prototype to avoid an error.
12725 Use char because int might match the return type of a GCC
12726 builtin and then its argument prototype would still apply. */
12727 #ifdef __cplusplus
12728 extern "C"
12729 #endif
12730 char dlopen ();
12731 int
12732 main ()
12733 {
12734 return dlopen ();
12735 ;
12736 return 0;
12737 }
12738 _ACEOF
12739 if ac_fn_c_try_link "$LINENO"; then :
12740 ac_cv_lib_dl_dlopen=yes
12741 else
12742 ac_cv_lib_dl_dlopen=no
12743 fi
12744 rm -f core conftest.err conftest.$ac_objext \
12745 conftest$ac_exeext conftest.$ac_ext
12746 LIBS=$ac_check_lib_save_LIBS
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12750 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12751 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12754 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12755 if ${ac_cv_lib_svld_dlopen+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lsvld $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char dlopen ();
12770 int
12771 main ()
12772 {
12773 return dlopen ();
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_svld_dlopen=yes
12780 else
12781 ac_cv_lib_svld_dlopen=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12788 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12789 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12790 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12793 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12794 if ${ac_cv_lib_dld_dld_link+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 ac_check_lib_save_LIBS=$LIBS
12798 LIBS="-ldld $LIBS"
12799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12805 #ifdef __cplusplus
12806 extern "C"
12807 #endif
12808 char dld_link ();
12809 int
12810 main ()
12811 {
12812 return dld_link ();
12813 ;
12814 return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_lib_dld_dld_link=yes
12819 else
12820 ac_cv_lib_dld_dld_link=no
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 LIBS=$ac_check_lib_save_LIBS
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12827 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12828 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12829 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12830 fi
12831
12832
12833 fi
12834
12835
12836 fi
12837
12838
12839 fi
12840
12841
12842 fi
12843
12844
12845 fi
12846
12847 ;;
12848 esac
12849
12850 if test no = "$lt_cv_dlopen"; then
12851 enable_dlopen=no
12852 else
12853 enable_dlopen=yes
12854 fi
12855
12856 case $lt_cv_dlopen in
12857 dlopen)
12858 save_CPPFLAGS=$CPPFLAGS
12859 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12860
12861 save_LDFLAGS=$LDFLAGS
12862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12863
12864 save_LIBS=$LIBS
12865 LIBS="$lt_cv_dlopen_libs $LIBS"
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12868 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12869 if ${lt_cv_dlopen_self+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 if test yes = "$cross_compiling"; then :
12873 lt_cv_dlopen_self=cross
12874 else
12875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12876 lt_status=$lt_dlunknown
12877 cat > conftest.$ac_ext <<_LT_EOF
12878 #line $LINENO "configure"
12879 #include "confdefs.h"
12880
12881 #if HAVE_DLFCN_H
12882 #include <dlfcn.h>
12883 #endif
12884
12885 #include <stdio.h>
12886
12887 #ifdef RTLD_GLOBAL
12888 # define LT_DLGLOBAL RTLD_GLOBAL
12889 #else
12890 # ifdef DL_GLOBAL
12891 # define LT_DLGLOBAL DL_GLOBAL
12892 # else
12893 # define LT_DLGLOBAL 0
12894 # endif
12895 #endif
12896
12897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12898 find out it does not work in some platform. */
12899 #ifndef LT_DLLAZY_OR_NOW
12900 # ifdef RTLD_LAZY
12901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12902 # else
12903 # ifdef DL_LAZY
12904 # define LT_DLLAZY_OR_NOW DL_LAZY
12905 # else
12906 # ifdef RTLD_NOW
12907 # define LT_DLLAZY_OR_NOW RTLD_NOW
12908 # else
12909 # ifdef DL_NOW
12910 # define LT_DLLAZY_OR_NOW DL_NOW
12911 # else
12912 # define LT_DLLAZY_OR_NOW 0
12913 # endif
12914 # endif
12915 # endif
12916 # endif
12917 #endif
12918
12919 /* When -fvisibility=hidden is used, assume the code has been annotated
12920 correspondingly for the symbols needed. */
12921 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12922 int fnord () __attribute__((visibility("default")));
12923 #endif
12924
12925 int fnord () { return 42; }
12926 int main ()
12927 {
12928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12929 int status = $lt_dlunknown;
12930
12931 if (self)
12932 {
12933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12934 else
12935 {
12936 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12937 else puts (dlerror ());
12938 }
12939 /* dlclose (self); */
12940 }
12941 else
12942 puts (dlerror ());
12943
12944 return status;
12945 }
12946 _LT_EOF
12947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12948 (eval $ac_link) 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12952 (./conftest; exit; ) >&5 2>/dev/null
12953 lt_status=$?
12954 case x$lt_status in
12955 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12956 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12957 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12958 esac
12959 else :
12960 # compilation failed
12961 lt_cv_dlopen_self=no
12962 fi
12963 fi
12964 rm -fr conftest*
12965
12966
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12969 $as_echo "$lt_cv_dlopen_self" >&6; }
12970
12971 if test yes = "$lt_cv_dlopen_self"; then
12972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12974 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12975 if ${lt_cv_dlopen_self_static+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 if test yes = "$cross_compiling"; then :
12979 lt_cv_dlopen_self_static=cross
12980 else
12981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12982 lt_status=$lt_dlunknown
12983 cat > conftest.$ac_ext <<_LT_EOF
12984 #line $LINENO "configure"
12985 #include "confdefs.h"
12986
12987 #if HAVE_DLFCN_H
12988 #include <dlfcn.h>
12989 #endif
12990
12991 #include <stdio.h>
12992
12993 #ifdef RTLD_GLOBAL
12994 # define LT_DLGLOBAL RTLD_GLOBAL
12995 #else
12996 # ifdef DL_GLOBAL
12997 # define LT_DLGLOBAL DL_GLOBAL
12998 # else
12999 # define LT_DLGLOBAL 0
13000 # endif
13001 #endif
13002
13003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13004 find out it does not work in some platform. */
13005 #ifndef LT_DLLAZY_OR_NOW
13006 # ifdef RTLD_LAZY
13007 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13008 # else
13009 # ifdef DL_LAZY
13010 # define LT_DLLAZY_OR_NOW DL_LAZY
13011 # else
13012 # ifdef RTLD_NOW
13013 # define LT_DLLAZY_OR_NOW RTLD_NOW
13014 # else
13015 # ifdef DL_NOW
13016 # define LT_DLLAZY_OR_NOW DL_NOW
13017 # else
13018 # define LT_DLLAZY_OR_NOW 0
13019 # endif
13020 # endif
13021 # endif
13022 # endif
13023 #endif
13024
13025 /* When -fvisibility=hidden is used, assume the code has been annotated
13026 correspondingly for the symbols needed. */
13027 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13028 int fnord () __attribute__((visibility("default")));
13029 #endif
13030
13031 int fnord () { return 42; }
13032 int main ()
13033 {
13034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13035 int status = $lt_dlunknown;
13036
13037 if (self)
13038 {
13039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13040 else
13041 {
13042 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13043 else puts (dlerror ());
13044 }
13045 /* dlclose (self); */
13046 }
13047 else
13048 puts (dlerror ());
13049
13050 return status;
13051 }
13052 _LT_EOF
13053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13054 (eval $ac_link) 2>&5
13055 ac_status=$?
13056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13058 (./conftest; exit; ) >&5 2>/dev/null
13059 lt_status=$?
13060 case x$lt_status in
13061 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13062 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13063 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13064 esac
13065 else :
13066 # compilation failed
13067 lt_cv_dlopen_self_static=no
13068 fi
13069 fi
13070 rm -fr conftest*
13071
13072
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13075 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13076 fi
13077
13078 CPPFLAGS=$save_CPPFLAGS
13079 LDFLAGS=$save_LDFLAGS
13080 LIBS=$save_LIBS
13081 ;;
13082 esac
13083
13084 case $lt_cv_dlopen_self in
13085 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13086 *) enable_dlopen_self=unknown ;;
13087 esac
13088
13089 case $lt_cv_dlopen_self_static in
13090 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13091 *) enable_dlopen_self_static=unknown ;;
13092 esac
13093 fi
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111 striplib=
13112 old_striplib=
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13114 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13115 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13116 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13117 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13119 $as_echo "yes" >&6; }
13120 else
13121 # FIXME - insert some real tests, host_os isn't really good enough
13122 case $host_os in
13123 darwin*)
13124 if test -n "$STRIP"; then
13125 striplib="$STRIP -x"
13126 old_striplib="$STRIP -S"
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128 $as_echo "yes" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132 fi
13133 ;;
13134 *)
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 ;;
13138 esac
13139 fi
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152 # Report what library types will actually be built
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13154 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13156 $as_echo "$can_build_shared" >&6; }
13157
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13159 $as_echo_n "checking whether to build shared libraries... " >&6; }
13160 test no = "$can_build_shared" && enable_shared=no
13161
13162 # On AIX, shared libraries and static libraries use the same namespace, and
13163 # are all built from PIC.
13164 case $host_os in
13165 aix3*)
13166 test yes = "$enable_shared" && enable_static=no
13167 if test -n "$RANLIB"; then
13168 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13169 postinstall_cmds='$RANLIB $lib'
13170 fi
13171 ;;
13172
13173 aix[4-9]*)
13174 if test ia64 != "$host_cpu"; then
13175 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13176 yes,aix,yes) ;; # shared object as lib.so file only
13177 yes,svr4,*) ;; # shared object as lib.so archive member only
13178 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13179 esac
13180 fi
13181 ;;
13182 esac
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13184 $as_echo "$enable_shared" >&6; }
13185
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13187 $as_echo_n "checking whether to build static libraries... " >&6; }
13188 # Make sure either enable_shared or enable_static is yes.
13189 test yes = "$enable_shared" || enable_static=yes
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13191 $as_echo "$enable_static" >&6; }
13192
13193
13194
13195
13196 fi
13197 ac_ext=c
13198 ac_cpp='$CPP $CPPFLAGS'
13199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13202
13203 CC=$lt_save_CC
13204
13205 if test -n "$CXX" && ( test no != "$CXX" &&
13206 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13207 (test g++ != "$CXX"))); then
13208 ac_ext=cpp
13209 ac_cpp='$CXXCPP $CPPFLAGS'
13210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13214 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13215 if test -z "$CXXCPP"; then
13216 if ${ac_cv_prog_CXXCPP+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 # Double quotes because CXXCPP needs to be expanded
13220 for CXXCPP in "$CXX -E" "/lib/cpp"
13221 do
13222 ac_preproc_ok=false
13223 for ac_cxx_preproc_warn_flag in '' yes
13224 do
13225 # Use a header file that comes with gcc, so configuring glibc
13226 # with a fresh cross-compiler works.
13227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228 # <limits.h> exists even on freestanding compilers.
13229 # On the NeXT, cc -E runs the code through the compiler's parser,
13230 # not just through cpp. "Syntax error" is here to catch this case.
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233 #ifdef __STDC__
13234 # include <limits.h>
13235 #else
13236 # include <assert.h>
13237 #endif
13238 Syntax error
13239 _ACEOF
13240 if ac_fn_cxx_try_cpp "$LINENO"; then :
13241
13242 else
13243 # Broken: fails on valid input.
13244 continue
13245 fi
13246 rm -f conftest.err conftest.i conftest.$ac_ext
13247
13248 # OK, works on sane cases. Now check whether nonexistent headers
13249 # can be detected and how.
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 #include <ac_nonexistent.h>
13253 _ACEOF
13254 if ac_fn_cxx_try_cpp "$LINENO"; then :
13255 # Broken: success on invalid input.
13256 continue
13257 else
13258 # Passes both tests.
13259 ac_preproc_ok=:
13260 break
13261 fi
13262 rm -f conftest.err conftest.i conftest.$ac_ext
13263
13264 done
13265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13266 rm -f conftest.i conftest.err conftest.$ac_ext
13267 if $ac_preproc_ok; then :
13268 break
13269 fi
13270
13271 done
13272 ac_cv_prog_CXXCPP=$CXXCPP
13273
13274 fi
13275 CXXCPP=$ac_cv_prog_CXXCPP
13276 else
13277 ac_cv_prog_CXXCPP=$CXXCPP
13278 fi
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13280 $as_echo "$CXXCPP" >&6; }
13281 ac_preproc_ok=false
13282 for ac_cxx_preproc_warn_flag in '' yes
13283 do
13284 # Use a header file that comes with gcc, so configuring glibc
13285 # with a fresh cross-compiler works.
13286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13287 # <limits.h> exists even on freestanding compilers.
13288 # On the NeXT, cc -E runs the code through the compiler's parser,
13289 # not just through cpp. "Syntax error" is here to catch this case.
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #ifdef __STDC__
13293 # include <limits.h>
13294 #else
13295 # include <assert.h>
13296 #endif
13297 Syntax error
13298 _ACEOF
13299 if ac_fn_cxx_try_cpp "$LINENO"; then :
13300
13301 else
13302 # Broken: fails on valid input.
13303 continue
13304 fi
13305 rm -f conftest.err conftest.i conftest.$ac_ext
13306
13307 # OK, works on sane cases. Now check whether nonexistent headers
13308 # can be detected and how.
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13311 #include <ac_nonexistent.h>
13312 _ACEOF
13313 if ac_fn_cxx_try_cpp "$LINENO"; then :
13314 # Broken: success on invalid input.
13315 continue
13316 else
13317 # Passes both tests.
13318 ac_preproc_ok=:
13319 break
13320 fi
13321 rm -f conftest.err conftest.i conftest.$ac_ext
13322
13323 done
13324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13325 rm -f conftest.i conftest.err conftest.$ac_ext
13326 if $ac_preproc_ok; then :
13327
13328 else
13329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13331 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13332 See \`config.log' for more details" "$LINENO" 5; }
13333 fi
13334
13335 ac_ext=c
13336 ac_cpp='$CPP $CPPFLAGS'
13337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13340
13341 else
13342 _lt_caught_CXX_error=yes
13343 fi
13344
13345 ac_ext=cpp
13346 ac_cpp='$CXXCPP $CPPFLAGS'
13347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13350
13351 archive_cmds_need_lc_CXX=no
13352 allow_undefined_flag_CXX=
13353 always_export_symbols_CXX=no
13354 archive_expsym_cmds_CXX=
13355 compiler_needs_object_CXX=no
13356 export_dynamic_flag_spec_CXX=
13357 hardcode_direct_CXX=no
13358 hardcode_direct_absolute_CXX=no
13359 hardcode_libdir_flag_spec_CXX=
13360 hardcode_libdir_separator_CXX=
13361 hardcode_minus_L_CXX=no
13362 hardcode_shlibpath_var_CXX=unsupported
13363 hardcode_automatic_CXX=no
13364 inherit_rpath_CXX=no
13365 module_cmds_CXX=
13366 module_expsym_cmds_CXX=
13367 link_all_deplibs_CXX=unknown
13368 old_archive_cmds_CXX=$old_archive_cmds
13369 reload_flag_CXX=$reload_flag
13370 reload_cmds_CXX=$reload_cmds
13371 no_undefined_flag_CXX=
13372 whole_archive_flag_spec_CXX=
13373 enable_shared_with_static_runtimes_CXX=no
13374
13375 # Source file extension for C++ test sources.
13376 ac_ext=cpp
13377
13378 # Object file extension for compiled C++ test sources.
13379 objext=o
13380 objext_CXX=$objext
13381
13382 # No sense in running all these tests if we already determined that
13383 # the CXX compiler isn't working. Some variables (like enable_shared)
13384 # are currently assumed to apply to all compilers on this platform,
13385 # and will be corrupted by setting them based on a non-working compiler.
13386 if test yes != "$_lt_caught_CXX_error"; then
13387 # Code to be used in simple compile tests
13388 lt_simple_compile_test_code="int some_variable = 0;"
13389
13390 # Code to be used in simple link tests
13391 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13392
13393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13394
13395
13396
13397
13398
13399
13400 # If no C compiler was specified, use CC.
13401 LTCC=${LTCC-"$CC"}
13402
13403 # If no C compiler flags were specified, use CFLAGS.
13404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13405
13406 # Allow CC to be a program name with arguments.
13407 compiler=$CC
13408
13409
13410 # save warnings/boilerplate of simple test code
13411 ac_outfile=conftest.$ac_objext
13412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13414 _lt_compiler_boilerplate=`cat conftest.err`
13415 $RM -r conftest*
13416
13417 ac_outfile=conftest.$ac_objext
13418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13420 _lt_linker_boilerplate=`cat conftest.err`
13421 $RM -r conftest*
13422
13423
13424 # Allow CC to be a program name with arguments.
13425 lt_save_CC=$CC
13426 lt_save_CFLAGS=$CFLAGS
13427 lt_save_LD=$LD
13428 lt_save_GCC=$GCC
13429 GCC=$GXX
13430 lt_save_with_gnu_ld=$with_gnu_ld
13431 lt_save_path_LD=$lt_cv_path_LD
13432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13434 else
13435 $as_unset lt_cv_prog_gnu_ld
13436 fi
13437 if test -n "${lt_cv_path_LDCXX+set}"; then
13438 lt_cv_path_LD=$lt_cv_path_LDCXX
13439 else
13440 $as_unset lt_cv_path_LD
13441 fi
13442 test -z "${LDCXX+set}" || LD=$LDCXX
13443 CC=${CXX-"c++"}
13444 CFLAGS=$CXXFLAGS
13445 compiler=$CC
13446 compiler_CXX=$CC
13447 func_cc_basename $compiler
13448 cc_basename=$func_cc_basename_result
13449
13450
13451 if test -n "$compiler"; then
13452 # We don't want -fno-exception when compiling C++ code, so set the
13453 # no_builtin_flag separately
13454 if test yes = "$GXX"; then
13455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13456 else
13457 lt_prog_compiler_no_builtin_flag_CXX=
13458 fi
13459
13460 if test yes = "$GXX"; then
13461 # Set up default GNU C++ configuration
13462
13463
13464
13465 # Check whether --with-gnu-ld was given.
13466 if test "${with_gnu_ld+set}" = set; then :
13467 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13468 else
13469 with_gnu_ld=no
13470 fi
13471
13472 ac_prog=ld
13473 if test yes = "$GCC"; then
13474 # Check if gcc -print-prog-name=ld gives a path.
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13476 $as_echo_n "checking for ld used by $CC... " >&6; }
13477 case $host in
13478 *-*-mingw*)
13479 # gcc leaves a trailing carriage return, which upsets mingw
13480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13481 *)
13482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13483 esac
13484 case $ac_prog in
13485 # Accept absolute paths.
13486 [\\/]* | ?:[\\/]*)
13487 re_direlt='/[^/][^/]*/\.\./'
13488 # Canonicalize the pathname of ld
13489 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13490 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13491 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13492 done
13493 test -z "$LD" && LD=$ac_prog
13494 ;;
13495 "")
13496 # If it fails, then pretend we aren't using GCC.
13497 ac_prog=ld
13498 ;;
13499 *)
13500 # If it is relative, then search for the first ld in PATH.
13501 with_gnu_ld=unknown
13502 ;;
13503 esac
13504 elif test yes = "$with_gnu_ld"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13506 $as_echo_n "checking for GNU ld... " >&6; }
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13509 $as_echo_n "checking for non-GNU ld... " >&6; }
13510 fi
13511 if ${lt_cv_path_LD+:} false; then :
13512 $as_echo_n "(cached) " >&6
13513 else
13514 if test -z "$LD"; then
13515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13516 for ac_dir in $PATH; do
13517 IFS=$lt_save_ifs
13518 test -z "$ac_dir" && ac_dir=.
13519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13520 lt_cv_path_LD=$ac_dir/$ac_prog
13521 # Check to see if the program is GNU ld. I'd rather use --version,
13522 # but apparently some variants of GNU ld only accept -v.
13523 # Break only if it was the GNU/non-GNU ld that we prefer.
13524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13525 *GNU* | *'with BFD'*)
13526 test no != "$with_gnu_ld" && break
13527 ;;
13528 *)
13529 test yes != "$with_gnu_ld" && break
13530 ;;
13531 esac
13532 fi
13533 done
13534 IFS=$lt_save_ifs
13535 else
13536 lt_cv_path_LD=$LD # Let the user override the test with a path.
13537 fi
13538 fi
13539
13540 LD=$lt_cv_path_LD
13541 if test -n "$LD"; then
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13543 $as_echo "$LD" >&6; }
13544 else
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13546 $as_echo "no" >&6; }
13547 fi
13548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13551 if ${lt_cv_prog_gnu_ld+:} false; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13555 case `$LD -v 2>&1 </dev/null` in
13556 *GNU* | *'with BFD'*)
13557 lt_cv_prog_gnu_ld=yes
13558 ;;
13559 *)
13560 lt_cv_prog_gnu_ld=no
13561 ;;
13562 esac
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13565 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13566 with_gnu_ld=$lt_cv_prog_gnu_ld
13567
13568
13569
13570
13571
13572
13573
13574 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13575 # archiving commands below assume that GNU ld is being used.
13576 if test yes = "$with_gnu_ld"; then
13577 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13578 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'
13579
13580 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13581 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13582
13583 # If archive_cmds runs LD, not CC, wlarc should be empty
13584 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13585 # investigate it a little bit more. (MM)
13586 wlarc='$wl'
13587
13588 # ancient GNU ld didn't support --whole-archive et. al.
13589 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13590 $GREP 'no-whole-archive' > /dev/null; then
13591 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13592 else
13593 whole_archive_flag_spec_CXX=
13594 fi
13595 else
13596 with_gnu_ld=no
13597 wlarc=
13598
13599 # A generic and very simple default shared library creation
13600 # command for GNU C++ for the case where it uses the native
13601 # linker, instead of GNU ld. If possible, this setting should
13602 # overridden to take advantage of the native linker features on
13603 # the platform it is being used on.
13604 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13605 fi
13606
13607 # Commands to make compiler produce verbose output that lists
13608 # what "hidden" libraries, object files and flags are used when
13609 # linking a shared library.
13610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13611
13612 else
13613 GXX=no
13614 with_gnu_ld=no
13615 wlarc=
13616 fi
13617
13618 # PORTME: fill in a description of your system's C++ link characteristics
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13620 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13621 ld_shlibs_CXX=yes
13622 case $host_os in
13623 aix3*)
13624 # FIXME: insert proper C++ library support
13625 ld_shlibs_CXX=no
13626 ;;
13627 aix[4-9]*)
13628 if test ia64 = "$host_cpu"; then
13629 # On IA64, the linker does run time linking by default, so we don't
13630 # have to do anything special.
13631 aix_use_runtimelinking=no
13632 exp_sym_flag='-Bexport'
13633 no_entry_flag=
13634 else
13635 aix_use_runtimelinking=no
13636
13637 # Test if we are trying to use run time linking or normal
13638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13639 # have runtime linking enabled, and use it for executables.
13640 # For shared libraries, we enable/disable runtime linking
13641 # depending on the kind of the shared library created -
13642 # when "with_aix_soname,aix_use_runtimelinking" is:
13643 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13644 # "aix,yes" lib.so shared, rtl:yes, for executables
13645 # lib.a static archive
13646 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13647 # lib.a(lib.so.V) shared, rtl:no, for executables
13648 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13649 # lib.a(lib.so.V) shared, rtl:no
13650 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13651 # lib.a static archive
13652 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13653 for ld_flag in $LDFLAGS; do
13654 case $ld_flag in
13655 *-brtl*)
13656 aix_use_runtimelinking=yes
13657 break
13658 ;;
13659 esac
13660 done
13661 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13662 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13663 # so we don't have lib.a shared libs to link our executables.
13664 # We have to force runtime linking in this case.
13665 aix_use_runtimelinking=yes
13666 LDFLAGS="$LDFLAGS -Wl,-brtl"
13667 fi
13668 ;;
13669 esac
13670
13671 exp_sym_flag='-bexport'
13672 no_entry_flag='-bnoentry'
13673 fi
13674
13675 # When large executables or shared objects are built, AIX ld can
13676 # have problems creating the table of contents. If linking a library
13677 # or program results in "error TOC overflow" add -mminimal-toc to
13678 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13679 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13680
13681 archive_cmds_CXX=''
13682 hardcode_direct_CXX=yes
13683 hardcode_direct_absolute_CXX=yes
13684 hardcode_libdir_separator_CXX=':'
13685 link_all_deplibs_CXX=yes
13686 file_list_spec_CXX='$wl-f,'
13687 case $with_aix_soname,$aix_use_runtimelinking in
13688 aix,*) ;; # no import file
13689 svr4,* | *,yes) # use import file
13690 # The Import File defines what to hardcode.
13691 hardcode_direct_CXX=no
13692 hardcode_direct_absolute_CXX=no
13693 ;;
13694 esac
13695
13696 if test yes = "$GXX"; then
13697 case $host_os in aix4.[012]|aix4.[012].*)
13698 # We only want to do this on AIX 4.2 and lower, the check
13699 # below for broken collect2 doesn't work under 4.3+
13700 collect2name=`$CC -print-prog-name=collect2`
13701 if test -f "$collect2name" &&
13702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13703 then
13704 # We have reworked collect2
13705 :
13706 else
13707 # We have old collect2
13708 hardcode_direct_CXX=unsupported
13709 # It fails to find uninstalled libraries when the uninstalled
13710 # path is not listed in the libpath. Setting hardcode_minus_L
13711 # to unsupported forces relinking
13712 hardcode_minus_L_CXX=yes
13713 hardcode_libdir_flag_spec_CXX='-L$libdir'
13714 hardcode_libdir_separator_CXX=
13715 fi
13716 esac
13717 shared_flag='-shared'
13718 if test yes = "$aix_use_runtimelinking"; then
13719 shared_flag=$shared_flag' $wl-G'
13720 fi
13721 # Need to ensure runtime linking is disabled for the traditional
13722 # shared library, or the linker may eventually find shared libraries
13723 # /with/ Import File - we do not want to mix them.
13724 shared_flag_aix='-shared'
13725 shared_flag_svr4='-shared $wl-G'
13726 else
13727 # not using gcc
13728 if test ia64 = "$host_cpu"; then
13729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13730 # chokes on -Wl,-G. The following line is correct:
13731 shared_flag='-G'
13732 else
13733 if test yes = "$aix_use_runtimelinking"; then
13734 shared_flag='$wl-G'
13735 else
13736 shared_flag='$wl-bM:SRE'
13737 fi
13738 shared_flag_aix='$wl-bM:SRE'
13739 shared_flag_svr4='$wl-G'
13740 fi
13741 fi
13742
13743 export_dynamic_flag_spec_CXX='$wl-bexpall'
13744 # It seems that -bexpall does not export symbols beginning with
13745 # underscore (_), so it is better to generate a list of symbols to
13746 # export.
13747 always_export_symbols_CXX=yes
13748 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13749 # Warning - without using the other runtime loading flags (-brtl),
13750 # -berok will link without error, but may produce a broken library.
13751 # The "-G" linker flag allows undefined symbols.
13752 no_undefined_flag_CXX='-bernotok'
13753 # Determine the default libpath from the value encoded in an empty
13754 # executable.
13755 if test set = "${lt_cv_aix_libpath+set}"; then
13756 aix_libpath=$lt_cv_aix_libpath
13757 else
13758 if ${lt_cv_aix_libpath__CXX+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763
13764 int
13765 main ()
13766 {
13767
13768 ;
13769 return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_cxx_try_link "$LINENO"; then :
13773
13774 lt_aix_libpath_sed='
13775 /Import File Strings/,/^$/ {
13776 /^0/ {
13777 s/^0 *\([^ ]*\) *$/\1/
13778 p
13779 }
13780 }'
13781 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 # Check for a 64-bit object if we didn't find anything.
13783 if test -z "$lt_cv_aix_libpath__CXX"; then
13784 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13785 fi
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 if test -z "$lt_cv_aix_libpath__CXX"; then
13790 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13791 fi
13792
13793 fi
13794
13795 aix_libpath=$lt_cv_aix_libpath__CXX
13796 fi
13797
13798 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13799
13800 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
13801 else
13802 if test ia64 = "$host_cpu"; then
13803 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13804 allow_undefined_flag_CXX="-z nodefs"
13805 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"
13806 else
13807 # Determine the default libpath from the value encoded in an
13808 # empty executable.
13809 if test set = "${lt_cv_aix_libpath+set}"; then
13810 aix_libpath=$lt_cv_aix_libpath
13811 else
13812 if ${lt_cv_aix_libpath__CXX+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817
13818 int
13819 main ()
13820 {
13821
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_cxx_try_link "$LINENO"; then :
13827
13828 lt_aix_libpath_sed='
13829 /Import File Strings/,/^$/ {
13830 /^0/ {
13831 s/^0 *\([^ ]*\) *$/\1/
13832 p
13833 }
13834 }'
13835 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836 # Check for a 64-bit object if we didn't find anything.
13837 if test -z "$lt_cv_aix_libpath__CXX"; then
13838 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13839 fi
13840 fi
13841 rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext conftest.$ac_ext
13843 if test -z "$lt_cv_aix_libpath__CXX"; then
13844 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13845 fi
13846
13847 fi
13848
13849 aix_libpath=$lt_cv_aix_libpath__CXX
13850 fi
13851
13852 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13853 # Warning - without using the other run time loading flags,
13854 # -berok will link without error, but may produce a broken library.
13855 no_undefined_flag_CXX=' $wl-bernotok'
13856 allow_undefined_flag_CXX=' $wl-berok'
13857 if test yes = "$with_gnu_ld"; then
13858 # We only use this code for GNU lds that support --whole-archive.
13859 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13860 else
13861 # Exported symbols can be pulled into shared objects from archives
13862 whole_archive_flag_spec_CXX='$convenience'
13863 fi
13864 archive_cmds_need_lc_CXX=yes
13865 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13866 # -brtl affects multiple linker settings, -berok does not and is overridden later
13867 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13868 if test svr4 != "$with_aix_soname"; then
13869 # This is similar to how AIX traditionally builds its shared
13870 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13871 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'
13872 fi
13873 if test aix != "$with_aix_soname"; then
13874 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'
13875 else
13876 # used by -dlpreopen to get the symbols
13877 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13878 fi
13879 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13880 fi
13881 fi
13882 ;;
13883
13884 beos*)
13885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13886 allow_undefined_flag_CXX=unsupported
13887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13888 # support --undefined. This deserves some investigation. FIXME
13889 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13890 else
13891 ld_shlibs_CXX=no
13892 fi
13893 ;;
13894
13895 chorus*)
13896 case $cc_basename in
13897 *)
13898 # FIXME: insert proper C++ library support
13899 ld_shlibs_CXX=no
13900 ;;
13901 esac
13902 ;;
13903
13904 cygwin* | mingw* | pw32* | cegcc*)
13905 case $GXX,$cc_basename in
13906 ,cl* | no,cl*)
13907 # Native MSVC
13908 # hardcode_libdir_flag_spec is actually meaningless, as there is
13909 # no search path for DLLs.
13910 hardcode_libdir_flag_spec_CXX=' '
13911 allow_undefined_flag_CXX=unsupported
13912 always_export_symbols_CXX=yes
13913 file_list_spec_CXX='@'
13914 # Tell ltmain to make .lib files, not .a files.
13915 libext=lib
13916 # Tell ltmain to make .dll files, not .so files.
13917 shrext_cmds=.dll
13918 # FIXME: Setting linknames here is a bad hack.
13919 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13920 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13921 cp "$export_symbols" "$output_objdir/$soname.def";
13922 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13923 else
13924 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13925 fi~
13926 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13927 linknames='
13928 # The linker will not automatically build a static lib if we build a DLL.
13929 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13930 enable_shared_with_static_runtimes_CXX=yes
13931 # Don't use ranlib
13932 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13933 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13934 lt_tool_outputfile="@TOOL_OUTPUT@"~
13935 case $lt_outputfile in
13936 *.exe|*.EXE) ;;
13937 *)
13938 lt_outputfile=$lt_outputfile.exe
13939 lt_tool_outputfile=$lt_tool_outputfile.exe
13940 ;;
13941 esac~
13942 func_to_tool_file "$lt_outputfile"~
13943 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13944 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13945 $RM "$lt_outputfile.manifest";
13946 fi'
13947 ;;
13948 *)
13949 # g++
13950 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13951 # as there is no search path for DLLs.
13952 hardcode_libdir_flag_spec_CXX='-L$libdir'
13953 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13954 allow_undefined_flag_CXX=unsupported
13955 always_export_symbols_CXX=no
13956 enable_shared_with_static_runtimes_CXX=yes
13957
13958 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13959 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'
13960 # If the export-symbols file already is a .def file, use it as
13961 # is; otherwise, prepend EXPORTS...
13962 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13963 cp $export_symbols $output_objdir/$soname.def;
13964 else
13965 echo EXPORTS > $output_objdir/$soname.def;
13966 cat $export_symbols >> $output_objdir/$soname.def;
13967 fi~
13968 $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'
13969 else
13970 ld_shlibs_CXX=no
13971 fi
13972 ;;
13973 esac
13974 ;;
13975 darwin* | rhapsody*)
13976
13977
13978 archive_cmds_need_lc_CXX=no
13979 hardcode_direct_CXX=no
13980 hardcode_automatic_CXX=yes
13981 hardcode_shlibpath_var_CXX=unsupported
13982 if test yes = "$lt_cv_ld_force_load"; then
13983 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\"`'
13984
13985 else
13986 whole_archive_flag_spec_CXX=''
13987 fi
13988 link_all_deplibs_CXX=yes
13989 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13990 case $cc_basename in
13991 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13992 *) _lt_dar_can_shared=$GCC ;;
13993 esac
13994 if test yes = "$_lt_dar_can_shared"; then
13995 output_verbose_link_cmd=func_echo_all
13996 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"
13997 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13998 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"
13999 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"
14000 if test yes != "$lt_cv_apple_cc_single_mod"; then
14001 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"
14002 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"
14003 fi
14004
14005 else
14006 ld_shlibs_CXX=no
14007 fi
14008
14009 ;;
14010
14011 os2*)
14012 hardcode_libdir_flag_spec_CXX='-L$libdir'
14013 hardcode_minus_L_CXX=yes
14014 allow_undefined_flag_CXX=unsupported
14015 shrext_cmds=.dll
14016 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14017 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14018 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14019 $ECHO EXPORTS >> $output_objdir/$libname.def~
14020 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14021 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14022 emximp -o $lib $output_objdir/$libname.def'
14023 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14024 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14025 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14026 $ECHO EXPORTS >> $output_objdir/$libname.def~
14027 prefix_cmds="$SED"~
14028 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14029 prefix_cmds="$prefix_cmds -e 1d";
14030 fi~
14031 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14032 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14033 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14034 emximp -o $lib $output_objdir/$libname.def'
14035 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14036 enable_shared_with_static_runtimes_CXX=yes
14037 ;;
14038
14039 dgux*)
14040 case $cc_basename in
14041 ec++*)
14042 # FIXME: insert proper C++ library support
14043 ld_shlibs_CXX=no
14044 ;;
14045 ghcx*)
14046 # Green Hills C++ Compiler
14047 # FIXME: insert proper C++ library support
14048 ld_shlibs_CXX=no
14049 ;;
14050 *)
14051 # FIXME: insert proper C++ library support
14052 ld_shlibs_CXX=no
14053 ;;
14054 esac
14055 ;;
14056
14057 freebsd2.*)
14058 # C++ shared libraries reported to be fairly broken before
14059 # switch to ELF
14060 ld_shlibs_CXX=no
14061 ;;
14062
14063 freebsd-elf*)
14064 archive_cmds_need_lc_CXX=no
14065 ;;
14066
14067 freebsd* | dragonfly*)
14068 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14069 # conventions
14070 ld_shlibs_CXX=yes
14071 ;;
14072
14073 haiku*)
14074 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14075 link_all_deplibs_CXX=yes
14076 ;;
14077
14078 hpux9*)
14079 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14080 hardcode_libdir_separator_CXX=:
14081 export_dynamic_flag_spec_CXX='$wl-E'
14082 hardcode_direct_CXX=yes
14083 hardcode_minus_L_CXX=yes # Not in the search PATH,
14084 # but as the default
14085 # location of the library.
14086
14087 case $cc_basename in
14088 CC*)
14089 # FIXME: insert proper C++ library support
14090 ld_shlibs_CXX=no
14091 ;;
14092 aCC*)
14093 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'
14094 # Commands to make compiler produce verbose output that lists
14095 # what "hidden" libraries, object files and flags are used when
14096 # linking a shared library.
14097 #
14098 # There doesn't appear to be a way to prevent this compiler from
14099 # explicitly linking system object files so we need to strip them
14100 # from the output so that they don't get included in the library
14101 # dependencies.
14102 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"'
14103 ;;
14104 *)
14105 if test yes = "$GXX"; then
14106 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'
14107 else
14108 # FIXME: insert proper C++ library support
14109 ld_shlibs_CXX=no
14110 fi
14111 ;;
14112 esac
14113 ;;
14114
14115 hpux10*|hpux11*)
14116 if test no = "$with_gnu_ld"; then
14117 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14118 hardcode_libdir_separator_CXX=:
14119
14120 case $host_cpu in
14121 hppa*64*|ia64*)
14122 ;;
14123 *)
14124 export_dynamic_flag_spec_CXX='$wl-E'
14125 ;;
14126 esac
14127 fi
14128 case $host_cpu in
14129 hppa*64*|ia64*)
14130 hardcode_direct_CXX=no
14131 hardcode_shlibpath_var_CXX=no
14132 ;;
14133 *)
14134 hardcode_direct_CXX=yes
14135 hardcode_direct_absolute_CXX=yes
14136 hardcode_minus_L_CXX=yes # Not in the search PATH,
14137 # but as the default
14138 # location of the library.
14139 ;;
14140 esac
14141
14142 case $cc_basename in
14143 CC*)
14144 # FIXME: insert proper C++ library support
14145 ld_shlibs_CXX=no
14146 ;;
14147 aCC*)
14148 case $host_cpu in
14149 hppa*64*)
14150 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14151 ;;
14152 ia64*)
14153 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14154 ;;
14155 *)
14156 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14157 ;;
14158 esac
14159 # Commands to make compiler produce verbose output that lists
14160 # what "hidden" libraries, object files and flags are used when
14161 # linking a shared library.
14162 #
14163 # There doesn't appear to be a way to prevent this compiler from
14164 # explicitly linking system object files so we need to strip them
14165 # from the output so that they don't get included in the library
14166 # dependencies.
14167 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"'
14168 ;;
14169 *)
14170 if test yes = "$GXX"; then
14171 if test no = "$with_gnu_ld"; then
14172 case $host_cpu in
14173 hppa*64*)
14174 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14175 ;;
14176 ia64*)
14177 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14178 ;;
14179 *)
14180 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'
14181 ;;
14182 esac
14183 fi
14184 else
14185 # FIXME: insert proper C++ library support
14186 ld_shlibs_CXX=no
14187 fi
14188 ;;
14189 esac
14190 ;;
14191
14192 interix[3-9]*)
14193 hardcode_direct_CXX=no
14194 hardcode_shlibpath_var_CXX=no
14195 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14196 export_dynamic_flag_spec_CXX='$wl-E'
14197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14198 # Instead, shared libraries are loaded at an image base (0x10000000 by
14199 # default) and relocated if they conflict, which is a slow very memory
14200 # consuming and fragmenting process. To avoid this, we pick a random,
14201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14203 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'
14204 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'
14205 ;;
14206 irix5* | irix6*)
14207 case $cc_basename in
14208 CC*)
14209 # SGI C++
14210 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'
14211
14212 # Archives containing C++ object files must be created using
14213 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14214 # necessary to make sure instantiated templates are included
14215 # in the archive.
14216 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14217 ;;
14218 *)
14219 if test yes = "$GXX"; then
14220 if test no = "$with_gnu_ld"; then
14221 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'
14222 else
14223 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'
14224 fi
14225 fi
14226 link_all_deplibs_CXX=yes
14227 ;;
14228 esac
14229 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14230 hardcode_libdir_separator_CXX=:
14231 inherit_rpath_CXX=yes
14232 ;;
14233
14234 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14235 case $cc_basename in
14236 KCC*)
14237 # Kuck and Associates, Inc. (KAI) C++ Compiler
14238
14239 # KCC will only create a shared library if the output file
14240 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14241 # to its proper name (with version) after linking.
14242 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'
14243 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'
14244 # Commands to make compiler produce verbose output that lists
14245 # what "hidden" libraries, object files and flags are used when
14246 # linking a shared library.
14247 #
14248 # There doesn't appear to be a way to prevent this compiler from
14249 # explicitly linking system object files so we need to strip them
14250 # from the output so that they don't get included in the library
14251 # dependencies.
14252 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"'
14253
14254 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14256
14257 # Archives containing C++ object files must be created using
14258 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14259 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14260 ;;
14261 icpc* | ecpc* )
14262 # Intel C++
14263 with_gnu_ld=yes
14264 # version 8.0 and above of icpc choke on multiply defined symbols
14265 # if we add $predep_objects and $postdep_objects, however 7.1 and
14266 # earlier do not add the objects themselves.
14267 case `$CC -V 2>&1` in
14268 *"Version 7."*)
14269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14270 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'
14271 ;;
14272 *) # Version 8.0 or newer
14273 tmp_idyn=
14274 case $host_cpu in
14275 ia64*) tmp_idyn=' -i_dynamic';;
14276 esac
14277 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14278 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'
14279 ;;
14280 esac
14281 archive_cmds_need_lc_CXX=no
14282 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14283 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14284 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14285 ;;
14286 pgCC* | pgcpp*)
14287 # Portland Group C++ compiler
14288 case `$CC -V` in
14289 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14290 prelink_cmds_CXX='tpldir=Template.dir~
14291 rm -rf $tpldir~
14292 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14293 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14294 old_archive_cmds_CXX='tpldir=Template.dir~
14295 rm -rf $tpldir~
14296 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14297 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14298 $RANLIB $oldlib'
14299 archive_cmds_CXX='tpldir=Template.dir~
14300 rm -rf $tpldir~
14301 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14302 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14303 archive_expsym_cmds_CXX='tpldir=Template.dir~
14304 rm -rf $tpldir~
14305 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14306 $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'
14307 ;;
14308 *) # Version 6 and above use weak symbols
14309 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14310 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'
14311 ;;
14312 esac
14313
14314 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14315 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14316 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'
14317 ;;
14318 cxx*)
14319 # Compaq C++
14320 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14321 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'
14322
14323 runpath_var=LD_RUN_PATH
14324 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14325 hardcode_libdir_separator_CXX=:
14326
14327 # Commands to make compiler produce verbose output that lists
14328 # what "hidden" libraries, object files and flags are used when
14329 # linking a shared library.
14330 #
14331 # There doesn't appear to be a way to prevent this compiler from
14332 # explicitly linking system object files so we need to strip them
14333 # from the output so that they don't get included in the library
14334 # dependencies.
14335 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'
14336 ;;
14337 xl* | mpixl* | bgxl*)
14338 # IBM XL 8.0 on PPC, with GNU ld
14339 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14340 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14341 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14342 if test yes = "$supports_anon_versioning"; then
14343 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14345 echo "local: *; };" >> $output_objdir/$libname.ver~
14346 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14347 fi
14348 ;;
14349 *)
14350 case `$CC -V 2>&1 | sed 5q` in
14351 *Sun\ C*)
14352 # Sun C++ 5.9
14353 no_undefined_flag_CXX=' -zdefs'
14354 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14355 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'
14356 hardcode_libdir_flag_spec_CXX='-R$libdir'
14357 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'
14358 compiler_needs_object_CXX=yes
14359
14360 # Not sure whether something based on
14361 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14362 # would be better.
14363 output_verbose_link_cmd='func_echo_all'
14364
14365 # Archives containing C++ object files must be created using
14366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14367 # necessary to make sure instantiated templates are included
14368 # in the archive.
14369 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14370 ;;
14371 esac
14372 ;;
14373 esac
14374 ;;
14375
14376 lynxos*)
14377 # FIXME: insert proper C++ library support
14378 ld_shlibs_CXX=no
14379 ;;
14380
14381 m88k*)
14382 # FIXME: insert proper C++ library support
14383 ld_shlibs_CXX=no
14384 ;;
14385
14386 mvs*)
14387 case $cc_basename in
14388 cxx*)
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14391 ;;
14392 *)
14393 # FIXME: insert proper C++ library support
14394 ld_shlibs_CXX=no
14395 ;;
14396 esac
14397 ;;
14398
14399 netbsd*)
14400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14401 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14402 wlarc=
14403 hardcode_libdir_flag_spec_CXX='-R$libdir'
14404 hardcode_direct_CXX=yes
14405 hardcode_shlibpath_var_CXX=no
14406 fi
14407 # Workaround some broken pre-1.5 toolchains
14408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14409 ;;
14410
14411 *nto* | *qnx*)
14412 ld_shlibs_CXX=yes
14413 ;;
14414
14415 openbsd* | bitrig*)
14416 if test -f /usr/libexec/ld.so; then
14417 hardcode_direct_CXX=yes
14418 hardcode_shlibpath_var_CXX=no
14419 hardcode_direct_absolute_CXX=yes
14420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14421 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14423 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14424 export_dynamic_flag_spec_CXX='$wl-E'
14425 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14426 fi
14427 output_verbose_link_cmd=func_echo_all
14428 else
14429 ld_shlibs_CXX=no
14430 fi
14431 ;;
14432
14433 osf3* | osf4* | osf5*)
14434 case $cc_basename in
14435 KCC*)
14436 # Kuck and Associates, Inc. (KAI) C++ Compiler
14437
14438 # KCC will only create a shared library if the output file
14439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14440 # to its proper name (with version) after linking.
14441 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'
14442
14443 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14444 hardcode_libdir_separator_CXX=:
14445
14446 # Archives containing C++ object files must be created using
14447 # the KAI C++ compiler.
14448 case $host in
14449 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14450 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14451 esac
14452 ;;
14453 RCC*)
14454 # Rational C++ 2.4.1
14455 # FIXME: insert proper C++ library support
14456 ld_shlibs_CXX=no
14457 ;;
14458 cxx*)
14459 case $host in
14460 osf3*)
14461 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14462 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'
14463 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14464 ;;
14465 *)
14466 allow_undefined_flag_CXX=' -expect_unresolved \*'
14467 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'
14468 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14469 echo "-hidden">> $lib.exp~
14470 $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~
14471 $RM $lib.exp'
14472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14473 ;;
14474 esac
14475
14476 hardcode_libdir_separator_CXX=:
14477
14478 # Commands to make compiler produce verbose output that lists
14479 # what "hidden" libraries, object files and flags are used when
14480 # linking a shared library.
14481 #
14482 # There doesn't appear to be a way to prevent this compiler from
14483 # explicitly linking system object files so we need to strip them
14484 # from the output so that they don't get included in the library
14485 # dependencies.
14486 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"'
14487 ;;
14488 *)
14489 if test yes,no = "$GXX,$with_gnu_ld"; then
14490 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14491 case $host in
14492 osf3*)
14493 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'
14494 ;;
14495 *)
14496 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'
14497 ;;
14498 esac
14499
14500 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14501 hardcode_libdir_separator_CXX=:
14502
14503 # Commands to make compiler produce verbose output that lists
14504 # what "hidden" libraries, object files and flags are used when
14505 # linking a shared library.
14506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14507
14508 else
14509 # FIXME: insert proper C++ library support
14510 ld_shlibs_CXX=no
14511 fi
14512 ;;
14513 esac
14514 ;;
14515
14516 psos*)
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14519 ;;
14520
14521 sunos4*)
14522 case $cc_basename in
14523 CC*)
14524 # Sun C++ 4.x
14525 # FIXME: insert proper C++ library support
14526 ld_shlibs_CXX=no
14527 ;;
14528 lcc*)
14529 # Lucid
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533 *)
14534 # FIXME: insert proper C++ library support
14535 ld_shlibs_CXX=no
14536 ;;
14537 esac
14538 ;;
14539
14540 solaris*)
14541 case $cc_basename in
14542 CC* | sunCC*)
14543 # Sun C++ 4.2, 5.x and Centerline C++
14544 archive_cmds_need_lc_CXX=yes
14545 no_undefined_flag_CXX=' -zdefs'
14546 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14548 $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'
14549
14550 hardcode_libdir_flag_spec_CXX='-R$libdir'
14551 hardcode_shlibpath_var_CXX=no
14552 case $host_os in
14553 solaris2.[0-5] | solaris2.[0-5].*) ;;
14554 *)
14555 # The compiler driver will combine and reorder linker options,
14556 # but understands '-z linker_flag'.
14557 # Supported since Solaris 2.6 (maybe 2.5.1?)
14558 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14559 ;;
14560 esac
14561 link_all_deplibs_CXX=yes
14562
14563 output_verbose_link_cmd='func_echo_all'
14564
14565 # Archives containing C++ object files must be created using
14566 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14567 # necessary to make sure instantiated templates are included
14568 # in the archive.
14569 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14570 ;;
14571 gcx*)
14572 # Green Hills C++ Compiler
14573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14574
14575 # The C++ compiler must be used to create the archive.
14576 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14577 ;;
14578 *)
14579 # GNU C++ compiler with Solaris linker
14580 if test yes,no = "$GXX,$with_gnu_ld"; then
14581 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14582 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14583 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14584 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14585 $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'
14586
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
14590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14591 else
14592 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14593 # platform.
14594 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14595 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14596 $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'
14597
14598 # Commands to make compiler produce verbose output that lists
14599 # what "hidden" libraries, object files and flags are used when
14600 # linking a shared library.
14601 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14602 fi
14603
14604 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14605 case $host_os in
14606 solaris2.[0-5] | solaris2.[0-5].*) ;;
14607 *)
14608 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14609 ;;
14610 esac
14611 fi
14612 ;;
14613 esac
14614 ;;
14615
14616 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14617 no_undefined_flag_CXX='$wl-z,text'
14618 archive_cmds_need_lc_CXX=no
14619 hardcode_shlibpath_var_CXX=no
14620 runpath_var='LD_RUN_PATH'
14621
14622 case $cc_basename in
14623 CC*)
14624 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 ;;
14627 *)
14628 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14629 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14630 ;;
14631 esac
14632 ;;
14633
14634 sysv5* | sco3.2v5* | sco5v6*)
14635 # Note: We CANNOT use -z defs as we might desire, because we do not
14636 # link with -lc, and that would cause any symbols used from libc to
14637 # always be unresolved, which means just about no library would
14638 # ever link correctly. If we're not using GNU ld we use -z text
14639 # though, which does catch some bad symbols but isn't as heavy-handed
14640 # as -z defs.
14641 no_undefined_flag_CXX='$wl-z,text'
14642 allow_undefined_flag_CXX='$wl-z,nodefs'
14643 archive_cmds_need_lc_CXX=no
14644 hardcode_shlibpath_var_CXX=no
14645 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14646 hardcode_libdir_separator_CXX=':'
14647 link_all_deplibs_CXX=yes
14648 export_dynamic_flag_spec_CXX='$wl-Bexport'
14649 runpath_var='LD_RUN_PATH'
14650
14651 case $cc_basename in
14652 CC*)
14653 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14654 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14655 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14656 '"$old_archive_cmds_CXX"
14657 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14658 '"$reload_cmds_CXX"
14659 ;;
14660 *)
14661 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14662 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14663 ;;
14664 esac
14665 ;;
14666
14667 tandem*)
14668 case $cc_basename in
14669 NCC*)
14670 # NonStop-UX NCC 3.20
14671 # FIXME: insert proper C++ library support
14672 ld_shlibs_CXX=no
14673 ;;
14674 *)
14675 # FIXME: insert proper C++ library support
14676 ld_shlibs_CXX=no
14677 ;;
14678 esac
14679 ;;
14680
14681 vxworks*)
14682 # FIXME: insert proper C++ library support
14683 ld_shlibs_CXX=no
14684 ;;
14685
14686 *)
14687 # FIXME: insert proper C++ library support
14688 ld_shlibs_CXX=no
14689 ;;
14690 esac
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14693 $as_echo "$ld_shlibs_CXX" >&6; }
14694 test no = "$ld_shlibs_CXX" && can_build_shared=no
14695
14696 GCC_CXX=$GXX
14697 LD_CXX=$LD
14698
14699 ## CAVEAT EMPTOR:
14700 ## There is no encapsulation within the following macros, do not change
14701 ## the running order or otherwise move them around unless you know exactly
14702 ## what you are doing...
14703 # Dependencies to place before and after the object being linked:
14704 predep_objects_CXX=
14705 postdep_objects_CXX=
14706 predeps_CXX=
14707 postdeps_CXX=
14708 compiler_lib_search_path_CXX=
14709
14710 cat > conftest.$ac_ext <<_LT_EOF
14711 class Foo
14712 {
14713 public:
14714 Foo (void) { a = 0; }
14715 private:
14716 int a;
14717 };
14718 _LT_EOF
14719
14720
14721 _lt_libdeps_save_CFLAGS=$CFLAGS
14722 case "$CC $CFLAGS " in #(
14723 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14724 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14725 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14726 esac
14727
14728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14729 (eval $ac_compile) 2>&5
14730 ac_status=$?
14731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14732 test $ac_status = 0; }; then
14733 # Parse the compiler output and extract the necessary
14734 # objects, libraries and library flags.
14735
14736 # Sentinel used to keep track of whether or not we are before
14737 # the conftest object file.
14738 pre_test_object_deps_done=no
14739
14740 for p in `eval "$output_verbose_link_cmd"`; do
14741 case $prev$p in
14742
14743 -L* | -R* | -l*)
14744 # Some compilers place space between "-{L,R}" and the path.
14745 # Remove the space.
14746 if test x-L = "$p" ||
14747 test x-R = "$p"; then
14748 prev=$p
14749 continue
14750 fi
14751
14752 # Expand the sysroot to ease extracting the directories later.
14753 if test -z "$prev"; then
14754 case $p in
14755 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14756 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14757 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14758 esac
14759 fi
14760 case $p in
14761 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14762 esac
14763 if test no = "$pre_test_object_deps_done"; then
14764 case $prev in
14765 -L | -R)
14766 # Internal compiler library paths should come after those
14767 # provided the user. The postdeps already come after the
14768 # user supplied libs so there is no need to process them.
14769 if test -z "$compiler_lib_search_path_CXX"; then
14770 compiler_lib_search_path_CXX=$prev$p
14771 else
14772 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14773 fi
14774 ;;
14775 # The "-l" case would never come before the object being
14776 # linked, so don't bother handling this case.
14777 esac
14778 else
14779 if test -z "$postdeps_CXX"; then
14780 postdeps_CXX=$prev$p
14781 else
14782 postdeps_CXX="${postdeps_CXX} $prev$p"
14783 fi
14784 fi
14785 prev=
14786 ;;
14787
14788 *.lto.$objext) ;; # Ignore GCC LTO objects
14789 *.$objext)
14790 # This assumes that the test object file only shows up
14791 # once in the compiler output.
14792 if test "$p" = "conftest.$objext"; then
14793 pre_test_object_deps_done=yes
14794 continue
14795 fi
14796
14797 if test no = "$pre_test_object_deps_done"; then
14798 if test -z "$predep_objects_CXX"; then
14799 predep_objects_CXX=$p
14800 else
14801 predep_objects_CXX="$predep_objects_CXX $p"
14802 fi
14803 else
14804 if test -z "$postdep_objects_CXX"; then
14805 postdep_objects_CXX=$p
14806 else
14807 postdep_objects_CXX="$postdep_objects_CXX $p"
14808 fi
14809 fi
14810 ;;
14811
14812 *) ;; # Ignore the rest.
14813
14814 esac
14815 done
14816
14817 # Clean up.
14818 rm -f a.out a.exe
14819 else
14820 echo "libtool.m4: error: problem compiling CXX test program"
14821 fi
14822
14823 $RM -f confest.$objext
14824 CFLAGS=$_lt_libdeps_save_CFLAGS
14825
14826 # PORTME: override above test on systems where it is broken
14827 case $host_os in
14828 interix[3-9]*)
14829 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14830 # hack all around it, let's just trust "g++" to DTRT.
14831 predep_objects_CXX=
14832 postdep_objects_CXX=
14833 postdeps_CXX=
14834 ;;
14835 esac
14836
14837
14838 case " $postdeps_CXX " in
14839 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14840 esac
14841 compiler_lib_search_dirs_CXX=
14842 if test -n "${compiler_lib_search_path_CXX}"; then
14843 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14844 fi
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876 lt_prog_compiler_wl_CXX=
14877 lt_prog_compiler_pic_CXX=
14878 lt_prog_compiler_static_CXX=
14879
14880
14881 # C++ specific cases for pic, static, wl, etc.
14882 if test yes = "$GXX"; then
14883 lt_prog_compiler_wl_CXX='-Wl,'
14884 lt_prog_compiler_static_CXX='-static'
14885
14886 case $host_os in
14887 aix*)
14888 # All AIX code is PIC.
14889 if test ia64 = "$host_cpu"; then
14890 # AIX 5 now supports IA64 processor
14891 lt_prog_compiler_static_CXX='-Bstatic'
14892 fi
14893 lt_prog_compiler_pic_CXX='-fPIC'
14894 ;;
14895
14896 amigaos*)
14897 case $host_cpu in
14898 powerpc)
14899 # see comment about AmigaOS4 .so support
14900 lt_prog_compiler_pic_CXX='-fPIC'
14901 ;;
14902 m68k)
14903 # FIXME: we need at least 68020 code to build shared libraries, but
14904 # adding the '-m68020' flag to GCC prevents building anything better,
14905 # like '-m68040'.
14906 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14907 ;;
14908 esac
14909 ;;
14910
14911 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14912 # PIC is the default for these OSes.
14913 ;;
14914 mingw* | cygwin* | os2* | pw32* | cegcc*)
14915 # This hack is so that the source file can tell whether it is being
14916 # built for inclusion in a dll (and should export symbols for example).
14917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14918 # (--disable-auto-import) libraries
14919 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14920 case $host_os in
14921 os2*)
14922 lt_prog_compiler_static_CXX='$wl-static'
14923 ;;
14924 esac
14925 ;;
14926 darwin* | rhapsody*)
14927 # PIC is the default on this platform
14928 # Common symbols not allowed in MH_DYLIB files
14929 lt_prog_compiler_pic_CXX='-fno-common'
14930 ;;
14931 *djgpp*)
14932 # DJGPP does not support shared libraries at all
14933 lt_prog_compiler_pic_CXX=
14934 ;;
14935 haiku*)
14936 # PIC is the default for Haiku.
14937 # The "-static" flag exists, but is broken.
14938 lt_prog_compiler_static_CXX=
14939 ;;
14940 interix[3-9]*)
14941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14942 # Instead, we relocate shared libraries at runtime.
14943 ;;
14944 sysv4*MP*)
14945 if test -d /usr/nec; then
14946 lt_prog_compiler_pic_CXX=-Kconform_pic
14947 fi
14948 ;;
14949 hpux*)
14950 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14951 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14952 # sets the default TLS model and affects inlining.
14953 case $host_cpu in
14954 hppa*64*)
14955 ;;
14956 *)
14957 lt_prog_compiler_pic_CXX='-fPIC'
14958 ;;
14959 esac
14960 ;;
14961 *qnx* | *nto*)
14962 # QNX uses GNU C++, but need to define -shared option too, otherwise
14963 # it will coredump.
14964 lt_prog_compiler_pic_CXX='-fPIC -shared'
14965 ;;
14966 *)
14967 lt_prog_compiler_pic_CXX='-fPIC'
14968 ;;
14969 esac
14970 else
14971 case $host_os in
14972 aix[4-9]*)
14973 # All AIX code is PIC.
14974 if test ia64 = "$host_cpu"; then
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static_CXX='-Bstatic'
14977 else
14978 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14979 fi
14980 ;;
14981 chorus*)
14982 case $cc_basename in
14983 cxch68*)
14984 # Green Hills C++ Compiler
14985 # _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"
14986 ;;
14987 esac
14988 ;;
14989 mingw* | cygwin* | os2* | pw32* | cegcc*)
14990 # This hack is so that the source file can tell whether it is being
14991 # built for inclusion in a dll (and should export symbols for example).
14992 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14993 ;;
14994 dgux*)
14995 case $cc_basename in
14996 ec++*)
14997 lt_prog_compiler_pic_CXX='-KPIC'
14998 ;;
14999 ghcx*)
15000 # Green Hills C++ Compiler
15001 lt_prog_compiler_pic_CXX='-pic'
15002 ;;
15003 *)
15004 ;;
15005 esac
15006 ;;
15007 freebsd* | dragonfly*)
15008 # FreeBSD uses GNU C++
15009 ;;
15010 hpux9* | hpux10* | hpux11*)
15011 case $cc_basename in
15012 CC*)
15013 lt_prog_compiler_wl_CXX='-Wl,'
15014 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15015 if test ia64 != "$host_cpu"; then
15016 lt_prog_compiler_pic_CXX='+Z'
15017 fi
15018 ;;
15019 aCC*)
15020 lt_prog_compiler_wl_CXX='-Wl,'
15021 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15022 case $host_cpu in
15023 hppa*64*|ia64*)
15024 # +Z the default
15025 ;;
15026 *)
15027 lt_prog_compiler_pic_CXX='+Z'
15028 ;;
15029 esac
15030 ;;
15031 *)
15032 ;;
15033 esac
15034 ;;
15035 interix*)
15036 # This is c89, which is MS Visual C++ (no shared libs)
15037 # Anyone wants to do a port?
15038 ;;
15039 irix5* | irix6* | nonstopux*)
15040 case $cc_basename in
15041 CC*)
15042 lt_prog_compiler_wl_CXX='-Wl,'
15043 lt_prog_compiler_static_CXX='-non_shared'
15044 # CC pic flag -KPIC is the default.
15045 ;;
15046 *)
15047 ;;
15048 esac
15049 ;;
15050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15051 case $cc_basename in
15052 KCC*)
15053 # KAI C++ Compiler
15054 lt_prog_compiler_wl_CXX='--backend -Wl,'
15055 lt_prog_compiler_pic_CXX='-fPIC'
15056 ;;
15057 ecpc* )
15058 # old Intel C++ for x86_64, which still supported -KPIC.
15059 lt_prog_compiler_wl_CXX='-Wl,'
15060 lt_prog_compiler_pic_CXX='-KPIC'
15061 lt_prog_compiler_static_CXX='-static'
15062 ;;
15063 icpc* )
15064 # Intel C++, used to be incompatible with GCC.
15065 # ICC 10 doesn't accept -KPIC any more.
15066 lt_prog_compiler_wl_CXX='-Wl,'
15067 lt_prog_compiler_pic_CXX='-fPIC'
15068 lt_prog_compiler_static_CXX='-static'
15069 ;;
15070 pgCC* | pgcpp*)
15071 # Portland Group C++ compiler
15072 lt_prog_compiler_wl_CXX='-Wl,'
15073 lt_prog_compiler_pic_CXX='-fpic'
15074 lt_prog_compiler_static_CXX='-Bstatic'
15075 ;;
15076 cxx*)
15077 # Compaq C++
15078 # Make sure the PIC flag is empty. It appears that all Alpha
15079 # Linux and Compaq Tru64 Unix objects are PIC.
15080 lt_prog_compiler_pic_CXX=
15081 lt_prog_compiler_static_CXX='-non_shared'
15082 ;;
15083 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15084 # IBM XL 8.0, 9.0 on PPC and BlueGene
15085 lt_prog_compiler_wl_CXX='-Wl,'
15086 lt_prog_compiler_pic_CXX='-qpic'
15087 lt_prog_compiler_static_CXX='-qstaticlink'
15088 ;;
15089 *)
15090 case `$CC -V 2>&1 | sed 5q` in
15091 *Sun\ C*)
15092 # Sun C++ 5.9
15093 lt_prog_compiler_pic_CXX='-KPIC'
15094 lt_prog_compiler_static_CXX='-Bstatic'
15095 lt_prog_compiler_wl_CXX='-Qoption ld '
15096 ;;
15097 esac
15098 ;;
15099 esac
15100 ;;
15101 lynxos*)
15102 ;;
15103 m88k*)
15104 ;;
15105 mvs*)
15106 case $cc_basename in
15107 cxx*)
15108 lt_prog_compiler_pic_CXX='-W c,exportall'
15109 ;;
15110 *)
15111 ;;
15112 esac
15113 ;;
15114 netbsd*)
15115 ;;
15116 *qnx* | *nto*)
15117 # QNX uses GNU C++, but need to define -shared option too, otherwise
15118 # it will coredump.
15119 lt_prog_compiler_pic_CXX='-fPIC -shared'
15120 ;;
15121 osf3* | osf4* | osf5*)
15122 case $cc_basename in
15123 KCC*)
15124 lt_prog_compiler_wl_CXX='--backend -Wl,'
15125 ;;
15126 RCC*)
15127 # Rational C++ 2.4.1
15128 lt_prog_compiler_pic_CXX='-pic'
15129 ;;
15130 cxx*)
15131 # Digital/Compaq C++
15132 lt_prog_compiler_wl_CXX='-Wl,'
15133 # Make sure the PIC flag is empty. It appears that all Alpha
15134 # Linux and Compaq Tru64 Unix objects are PIC.
15135 lt_prog_compiler_pic_CXX=
15136 lt_prog_compiler_static_CXX='-non_shared'
15137 ;;
15138 *)
15139 ;;
15140 esac
15141 ;;
15142 psos*)
15143 ;;
15144 solaris*)
15145 case $cc_basename in
15146 CC* | sunCC*)
15147 # Sun C++ 4.2, 5.x and Centerline C++
15148 lt_prog_compiler_pic_CXX='-KPIC'
15149 lt_prog_compiler_static_CXX='-Bstatic'
15150 lt_prog_compiler_wl_CXX='-Qoption ld '
15151 ;;
15152 gcx*)
15153 # Green Hills C++ Compiler
15154 lt_prog_compiler_pic_CXX='-PIC'
15155 ;;
15156 *)
15157 ;;
15158 esac
15159 ;;
15160 sunos4*)
15161 case $cc_basename in
15162 CC*)
15163 # Sun C++ 4.x
15164 lt_prog_compiler_pic_CXX='-pic'
15165 lt_prog_compiler_static_CXX='-Bstatic'
15166 ;;
15167 lcc*)
15168 # Lucid
15169 lt_prog_compiler_pic_CXX='-pic'
15170 ;;
15171 *)
15172 ;;
15173 esac
15174 ;;
15175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15176 case $cc_basename in
15177 CC*)
15178 lt_prog_compiler_wl_CXX='-Wl,'
15179 lt_prog_compiler_pic_CXX='-KPIC'
15180 lt_prog_compiler_static_CXX='-Bstatic'
15181 ;;
15182 esac
15183 ;;
15184 tandem*)
15185 case $cc_basename in
15186 NCC*)
15187 # NonStop-UX NCC 3.20
15188 lt_prog_compiler_pic_CXX='-KPIC'
15189 ;;
15190 *)
15191 ;;
15192 esac
15193 ;;
15194 vxworks*)
15195 ;;
15196 *)
15197 lt_prog_compiler_can_build_shared_CXX=no
15198 ;;
15199 esac
15200 fi
15201
15202 case $host_os in
15203 # For platforms that do not support PIC, -DPIC is meaningless:
15204 *djgpp*)
15205 lt_prog_compiler_pic_CXX=
15206 ;;
15207 *)
15208 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15209 ;;
15210 esac
15211
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15213 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15214 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15215 $as_echo_n "(cached) " >&6
15216 else
15217 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15218 fi
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15220 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15221 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15222
15223 #
15224 # Check to make sure the PIC flag actually works.
15225 #
15226 if test -n "$lt_prog_compiler_pic_CXX"; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15228 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15229 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 lt_cv_prog_compiler_pic_works_CXX=no
15233 ac_outfile=conftest.$ac_objext
15234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15235 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15236 # Insert the option either (1) after the last *FLAGS variable, or
15237 # (2) before a word containing "conftest.", or (3) at the end.
15238 # Note that $ac_compile itself does not contain backslashes and begins
15239 # with a dollar sign (not a hyphen), so the echo should work correctly.
15240 # The option is referenced via a variable to avoid confusing sed.
15241 lt_compile=`echo "$ac_compile" | $SED \
15242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15244 -e 's:$: $lt_compiler_flag:'`
15245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15246 (eval "$lt_compile" 2>conftest.err)
15247 ac_status=$?
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 if (exit $ac_status) && test -s "$ac_outfile"; then
15251 # The compiler can only warn and ignore the option if not recognized
15252 # So say no if there are warnings other than the usual output.
15253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15256 lt_cv_prog_compiler_pic_works_CXX=yes
15257 fi
15258 fi
15259 $RM -r conftest*
15260
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15263 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15264
15265 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15266 case $lt_prog_compiler_pic_CXX in
15267 "" | " "*) ;;
15268 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15269 esac
15270 else
15271 lt_prog_compiler_pic_CXX=
15272 lt_prog_compiler_can_build_shared_CXX=no
15273 fi
15274
15275 fi
15276
15277
15278
15279
15280
15281 #
15282 # Check to make sure the static flag actually works.
15283 #
15284 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15286 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15287 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 lt_cv_prog_compiler_static_works_CXX=no
15291 save_LDFLAGS=$LDFLAGS
15292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15295 # The linker can only warn and ignore the option if not recognized
15296 # So say no if there are warnings
15297 if test -s conftest.err; then
15298 # Append any errors to the config.log.
15299 cat conftest.err 1>&5
15300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15302 if diff conftest.exp conftest.er2 >/dev/null; then
15303 lt_cv_prog_compiler_static_works_CXX=yes
15304 fi
15305 else
15306 lt_cv_prog_compiler_static_works_CXX=yes
15307 fi
15308 fi
15309 $RM -r conftest*
15310 LDFLAGS=$save_LDFLAGS
15311
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15314 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15315
15316 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15317 :
15318 else
15319 lt_prog_compiler_static_CXX=
15320 fi
15321
15322
15323
15324
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15326 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15327 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 lt_cv_prog_compiler_c_o_CXX=no
15331 $RM -r conftest 2>/dev/null
15332 mkdir conftest
15333 cd conftest
15334 mkdir out
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336
15337 lt_compiler_flag="-o out/conftest2.$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>out/conftest.err)
15348 ac_status=$?
15349 cat out/conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352 then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358 lt_cv_prog_compiler_c_o_CXX=yes
15359 fi
15360 fi
15361 chmod u+w . 2>&5
15362 $RM -r conftest*
15363 # SGI C++ compiler will create directory out/ii_files/ for
15364 # template instantiation
15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366 $RM out/* && rmdir out
15367 cd ..
15368 $RM -r conftest
15369 $RM -r conftest*
15370
15371 fi
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15373 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15374
15375
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15379 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 lt_cv_prog_compiler_c_o_CXX=no
15383 $RM -r conftest 2>/dev/null
15384 mkdir conftest
15385 cd conftest
15386 mkdir out
15387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15388
15389 lt_compiler_flag="-o out/conftest2.$ac_objext"
15390 # Insert the option either (1) after the last *FLAGS variable, or
15391 # (2) before a word containing "conftest.", or (3) at the end.
15392 # Note that $ac_compile itself does not contain backslashes and begins
15393 # with a dollar sign (not a hyphen), so the echo should work correctly.
15394 lt_compile=`echo "$ac_compile" | $SED \
15395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15397 -e 's:$: $lt_compiler_flag:'`
15398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15399 (eval "$lt_compile" 2>out/conftest.err)
15400 ac_status=$?
15401 cat out/conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15404 then
15405 # The compiler can only warn and ignore the option if not recognized
15406 # So say no if there are warnings
15407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15410 lt_cv_prog_compiler_c_o_CXX=yes
15411 fi
15412 fi
15413 chmod u+w . 2>&5
15414 $RM -r conftest*
15415 # SGI C++ compiler will create directory out/ii_files/ for
15416 # template instantiation
15417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15418 $RM out/* && rmdir out
15419 cd ..
15420 $RM -r conftest
15421 $RM -r conftest*
15422
15423 fi
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15426
15427
15428
15429
15430 hard_links=nottested
15431 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15432 # do not overwrite the value of need_locks provided by the user
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15434 $as_echo_n "checking if we can lock with hard links... " >&6; }
15435 hard_links=yes
15436 $RM -r conftest*
15437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15438 touch conftest.a
15439 ln conftest.a conftest.b 2>&5 || hard_links=no
15440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15442 $as_echo "$hard_links" >&6; }
15443 if test no = "$hard_links"; then
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15445 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15446 need_locks=warn
15447 fi
15448 else
15449 need_locks=no
15450 fi
15451
15452
15453
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15455 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15456
15457 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15458 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15459 case $host_os in
15460 aix[4-9]*)
15461 # If we're using GNU nm, then we don't want the "-C" option.
15462 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15463 # Without the "-l" option, or with the "-B" option, AIX nm treats
15464 # weak defined symbols like other global defined symbols, whereas
15465 # GNU nm marks them as "W".
15466 # While the 'weak' keyword is ignored in the Export File, we need
15467 # it in the Import File for the 'aix-soname' feature, so we have
15468 # to replace the "-B" option with "-P" for AIX nm.
15469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15470 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'
15471 else
15472 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'
15473 fi
15474 ;;
15475 pw32*)
15476 export_symbols_cmds_CXX=$ltdll_cmds
15477 ;;
15478 cygwin* | mingw* | cegcc*)
15479 case $cc_basename in
15480 cl*)
15481 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15482 ;;
15483 *)
15484 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'
15485 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15486 ;;
15487 esac
15488 ;;
15489 *)
15490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15491 ;;
15492 esac
15493
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15495 $as_echo "$ld_shlibs_CXX" >&6; }
15496 test no = "$ld_shlibs_CXX" && can_build_shared=no
15497
15498 with_gnu_ld_CXX=$with_gnu_ld
15499
15500
15501
15502
15503
15504
15505 #
15506 # Do we need to explicitly link libc?
15507 #
15508 case "x$archive_cmds_need_lc_CXX" in
15509 x|xyes)
15510 # Assume -lc should be added
15511 archive_cmds_need_lc_CXX=yes
15512
15513 if test yes,yes = "$GCC,$enable_shared"; then
15514 case $archive_cmds_CXX in
15515 *'~'*)
15516 # FIXME: we may have to deal with multi-command sequences.
15517 ;;
15518 '$CC '*)
15519 # Test whether the compiler implicitly links with -lc since on some
15520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15521 # to ld, don't add -lc before -lgcc.
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15524 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 $RM -r conftest*
15528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15529
15530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15531 (eval $ac_compile) 2>&5
15532 ac_status=$?
15533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15534 test $ac_status = 0; } 2>conftest.err; then
15535 soname=conftest
15536 lib=conftest
15537 libobjs=conftest.$ac_objext
15538 deplibs=
15539 wl=$lt_prog_compiler_wl_CXX
15540 pic_flag=$lt_prog_compiler_pic_CXX
15541 compiler_flags=-v
15542 linker_flags=-v
15543 verstring=
15544 output_objdir=.
15545 libname=conftest
15546 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15547 allow_undefined_flag_CXX=
15548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15549 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15550 ac_status=$?
15551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 test $ac_status = 0; }
15553 then
15554 lt_cv_archive_cmds_need_lc_CXX=no
15555 else
15556 lt_cv_archive_cmds_need_lc_CXX=yes
15557 fi
15558 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15559 else
15560 cat conftest.err 1>&5
15561 fi
15562 $RM -r conftest*
15563
15564 fi
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15566 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15567 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15568 ;;
15569 esac
15570 fi
15571 ;;
15572 esac
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15636 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15637
15638 library_names_spec=
15639 libname_spec='lib$name'
15640 soname_spec=
15641 shrext_cmds=.so
15642 postinstall_cmds=
15643 postuninstall_cmds=
15644 finish_cmds=
15645 finish_eval=
15646 shlibpath_var=
15647 shlibpath_overrides_runpath=unknown
15648 version_type=none
15649 dynamic_linker="$host_os ld.so"
15650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15651 need_lib_prefix=unknown
15652 hardcode_into_libs=no
15653
15654 # when you set need_version to no, make sure it does not cause -set_version
15655 # flags to be left without arguments
15656 need_version=unknown
15657
15658
15659
15660 case $host_os in
15661 aix3*)
15662 version_type=linux # correct to gnu/linux during the next big refactor
15663 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15664 shlibpath_var=LIBPATH
15665
15666 # AIX 3 has no versioning support, so we append a major version to the name.
15667 soname_spec='$libname$release$shared_ext$major'
15668 ;;
15669
15670 aix[4-9]*)
15671 version_type=linux # correct to gnu/linux during the next big refactor
15672 need_lib_prefix=no
15673 need_version=no
15674 hardcode_into_libs=yes
15675 if test ia64 = "$host_cpu"; then
15676 # AIX 5 supports IA64
15677 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 else
15680 # With GCC up to 2.95.x, collect2 would create an import file
15681 # for dependence libraries. The import file would start with
15682 # the line '#! .'. This would cause the generated library to
15683 # depend on '.', always an invalid library. This was fixed in
15684 # development snapshots of GCC prior to 3.0.
15685 case $host_os in
15686 aix4 | aix4.[01] | aix4.[01].*)
15687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15688 echo ' yes '
15689 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15690 :
15691 else
15692 can_build_shared=no
15693 fi
15694 ;;
15695 esac
15696 # Using Import Files as archive members, it is possible to support
15697 # filename-based versioning of shared library archives on AIX. While
15698 # this would work for both with and without runtime linking, it will
15699 # prevent static linking of such archives. So we do filename-based
15700 # shared library versioning with .so extension only, which is used
15701 # when both runtime linking and shared linking is enabled.
15702 # Unfortunately, runtime linking may impact performance, so we do
15703 # not want this to be the default eventually. Also, we use the
15704 # versioned .so libs for executables only if there is the -brtl
15705 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15706 # To allow for filename-based versioning support, we need to create
15707 # libNAME.so.V as an archive file, containing:
15708 # *) an Import File, referring to the versioned filename of the
15709 # archive as well as the shared archive member, telling the
15710 # bitwidth (32 or 64) of that shared object, and providing the
15711 # list of exported symbols of that shared object, eventually
15712 # decorated with the 'weak' keyword
15713 # *) the shared object with the F_LOADONLY flag set, to really avoid
15714 # it being seen by the linker.
15715 # At run time we better use the real file rather than another symlink,
15716 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15717
15718 case $with_aix_soname,$aix_use_runtimelinking in
15719 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15720 # soname into executable. Probably we can add versioning support to
15721 # collect2, so additional links can be useful in future.
15722 aix,yes) # traditional libtool
15723 dynamic_linker='AIX unversionable lib.so'
15724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15725 # instead of lib<name>.a to let people know that these are not
15726 # typical AIX shared libraries.
15727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15728 ;;
15729 aix,no) # traditional AIX only
15730 dynamic_linker='AIX lib.a(lib.so.V)'
15731 # We preserve .a as extension for shared libraries through AIX4.2
15732 # and later when we are not doing run time linking.
15733 library_names_spec='$libname$release.a $libname.a'
15734 soname_spec='$libname$release$shared_ext$major'
15735 ;;
15736 svr4,*) # full svr4 only
15737 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15738 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15739 # We do not specify a path in Import Files, so LIBPATH fires.
15740 shlibpath_overrides_runpath=yes
15741 ;;
15742 *,yes) # both, prefer svr4
15743 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15744 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15745 # unpreferred sharedlib libNAME.a needs extra handling
15746 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"'
15747 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"'
15748 # We do not specify a path in Import Files, so LIBPATH fires.
15749 shlibpath_overrides_runpath=yes
15750 ;;
15751 *,no) # both, prefer aix
15752 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15753 library_names_spec='$libname$release.a $libname.a'
15754 soname_spec='$libname$release$shared_ext$major'
15755 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15756 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)'
15757 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"'
15758 ;;
15759 esac
15760 shlibpath_var=LIBPATH
15761 fi
15762 ;;
15763
15764 amigaos*)
15765 case $host_cpu in
15766 powerpc)
15767 # Since July 2007 AmigaOS4 officially supports .so libraries.
15768 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15770 ;;
15771 m68k)
15772 library_names_spec='$libname.ixlibrary $libname.a'
15773 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15774 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'
15775 ;;
15776 esac
15777 ;;
15778
15779 beos*)
15780 library_names_spec='$libname$shared_ext'
15781 dynamic_linker="$host_os ld.so"
15782 shlibpath_var=LIBRARY_PATH
15783 ;;
15784
15785 bsdi[45]*)
15786 version_type=linux # correct to gnu/linux during the next big refactor
15787 need_version=no
15788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15789 soname_spec='$libname$release$shared_ext$major'
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15793 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15794 # the default ld.so.conf also contains /usr/contrib/lib and
15795 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15796 # libtool to hard-code these into programs
15797 ;;
15798
15799 cygwin* | mingw* | pw32* | cegcc*)
15800 version_type=windows
15801 shrext_cmds=.dll
15802 need_version=no
15803 need_lib_prefix=no
15804
15805 case $GCC,$cc_basename in
15806 yes,*)
15807 # gcc
15808 library_names_spec='$libname.dll.a'
15809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15810 postinstall_cmds='base_file=`basename \$file`~
15811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15812 dldir=$destdir/`dirname \$dlpath`~
15813 test -d \$dldir || mkdir -p \$dldir~
15814 $install_prog $dir/$dlname \$dldir/$dlname~
15815 chmod a+x \$dldir/$dlname~
15816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15818 fi'
15819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15820 dlpath=$dir/\$dldll~
15821 $RM \$dlpath'
15822 shlibpath_overrides_runpath=yes
15823
15824 case $host_os in
15825 cygwin*)
15826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15827 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15828
15829 ;;
15830 mingw* | cegcc*)
15831 # MinGW DLLs use traditional 'lib' prefix
15832 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15833 ;;
15834 pw32*)
15835 # pw32 DLLs use 'pw' prefix rather than 'lib'
15836 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15837 ;;
15838 esac
15839 dynamic_linker='Win32 ld.exe'
15840 ;;
15841
15842 *,cl*)
15843 # Native MSVC
15844 libname_spec='$name'
15845 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15846 library_names_spec='$libname.dll.lib'
15847
15848 case $build_os in
15849 mingw*)
15850 sys_lib_search_path_spec=
15851 lt_save_ifs=$IFS
15852 IFS=';'
15853 for lt_path in $LIB
15854 do
15855 IFS=$lt_save_ifs
15856 # Let DOS variable expansion print the short 8.3 style file name.
15857 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15858 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15859 done
15860 IFS=$lt_save_ifs
15861 # Convert to MSYS style.
15862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15863 ;;
15864 cygwin*)
15865 # Convert to unix form, then to dos form, then back to unix form
15866 # but this time dos style (no spaces!) so that the unix form looks
15867 # like /cygdrive/c/PROGRA~1:/cygdr...
15868 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15869 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15870 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15871 ;;
15872 *)
15873 sys_lib_search_path_spec=$LIB
15874 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15875 # It is most probably a Windows format PATH.
15876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15877 else
15878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15879 fi
15880 # FIXME: find the short name or the path components, as spaces are
15881 # common. (e.g. "Program Files" -> "PROGRA~1")
15882 ;;
15883 esac
15884
15885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15886 postinstall_cmds='base_file=`basename \$file`~
15887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15888 dldir=$destdir/`dirname \$dlpath`~
15889 test -d \$dldir || mkdir -p \$dldir~
15890 $install_prog $dir/$dlname \$dldir/$dlname'
15891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15892 dlpath=$dir/\$dldll~
15893 $RM \$dlpath'
15894 shlibpath_overrides_runpath=yes
15895 dynamic_linker='Win32 link.exe'
15896 ;;
15897
15898 *)
15899 # Assume MSVC wrapper
15900 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15901 dynamic_linker='Win32 ld.exe'
15902 ;;
15903 esac
15904 # FIXME: first we should search . and the directory the executable is in
15905 shlibpath_var=PATH
15906 ;;
15907
15908 darwin* | rhapsody*)
15909 dynamic_linker="$host_os dyld"
15910 version_type=darwin
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15914 soname_spec='$libname$release$major$shared_ext'
15915 shlibpath_overrides_runpath=yes
15916 shlibpath_var=DYLD_LIBRARY_PATH
15917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15918
15919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15920 ;;
15921
15922 dgux*)
15923 version_type=linux # correct to gnu/linux during the next big refactor
15924 need_lib_prefix=no
15925 need_version=no
15926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15927 soname_spec='$libname$release$shared_ext$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 ;;
15930
15931 freebsd* | dragonfly*)
15932 # DragonFly does not have aout. When/if they implement a new
15933 # versioning mechanism, adjust this.
15934 if test -x /usr/bin/objformat; then
15935 objformat=`/usr/bin/objformat`
15936 else
15937 case $host_os in
15938 freebsd[23].*) objformat=aout ;;
15939 *) objformat=elf ;;
15940 esac
15941 fi
15942 version_type=freebsd-$objformat
15943 case $version_type in
15944 freebsd-elf*)
15945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15946 soname_spec='$libname$release$shared_ext$major'
15947 need_version=no
15948 need_lib_prefix=no
15949 ;;
15950 freebsd-*)
15951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15952 need_version=yes
15953 ;;
15954 esac
15955 shlibpath_var=LD_LIBRARY_PATH
15956 case $host_os in
15957 freebsd2.*)
15958 shlibpath_overrides_runpath=yes
15959 ;;
15960 freebsd3.[01]* | freebsdelf3.[01]*)
15961 shlibpath_overrides_runpath=yes
15962 hardcode_into_libs=yes
15963 ;;
15964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15966 shlibpath_overrides_runpath=no
15967 hardcode_into_libs=yes
15968 ;;
15969 *) # from 4.6 on, and DragonFly
15970 shlibpath_overrides_runpath=yes
15971 hardcode_into_libs=yes
15972 ;;
15973 esac
15974 ;;
15975
15976 haiku*)
15977 version_type=linux # correct to gnu/linux during the next big refactor
15978 need_lib_prefix=no
15979 need_version=no
15980 dynamic_linker="$host_os runtime_loader"
15981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15982 soname_spec='$libname$release$shared_ext$major'
15983 shlibpath_var=LIBRARY_PATH
15984 shlibpath_overrides_runpath=no
15985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15986 hardcode_into_libs=yes
15987 ;;
15988
15989 hpux9* | hpux10* | hpux11*)
15990 # Give a soname corresponding to the major version so that dld.sl refuses to
15991 # link against other versions.
15992 version_type=sunos
15993 need_lib_prefix=no
15994 need_version=no
15995 case $host_cpu in
15996 ia64*)
15997 shrext_cmds='.so'
15998 hardcode_into_libs=yes
15999 dynamic_linker="$host_os dld.so"
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16003 soname_spec='$libname$release$shared_ext$major'
16004 if test 32 = "$HPUX_IA64_MODE"; then
16005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16007 else
16008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16010 fi
16011 ;;
16012 hppa*64*)
16013 shrext_cmds='.sl'
16014 hardcode_into_libs=yes
16015 dynamic_linker="$host_os dld.sl"
16016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16019 soname_spec='$libname$release$shared_ext$major'
16020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16022 ;;
16023 *)
16024 shrext_cmds='.sl'
16025 dynamic_linker="$host_os dld.sl"
16026 shlibpath_var=SHLIB_PATH
16027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16029 soname_spec='$libname$release$shared_ext$major'
16030 ;;
16031 esac
16032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16033 postinstall_cmds='chmod 555 $lib'
16034 # or fails outright, so override atomically:
16035 install_override_mode=555
16036 ;;
16037
16038 interix[3-9]*)
16039 version_type=linux # correct to gnu/linux during the next big refactor
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16043 soname_spec='$libname$release$shared_ext$major'
16044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16045 shlibpath_var=LD_LIBRARY_PATH
16046 shlibpath_overrides_runpath=no
16047 hardcode_into_libs=yes
16048 ;;
16049
16050 irix5* | irix6* | nonstopux*)
16051 case $host_os in
16052 nonstopux*) version_type=nonstopux ;;
16053 *)
16054 if test yes = "$lt_cv_prog_gnu_ld"; then
16055 version_type=linux # correct to gnu/linux during the next big refactor
16056 else
16057 version_type=irix
16058 fi ;;
16059 esac
16060 need_lib_prefix=no
16061 need_version=no
16062 soname_spec='$libname$release$shared_ext$major'
16063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16064 case $host_os in
16065 irix5* | nonstopux*)
16066 libsuff= shlibsuff=
16067 ;;
16068 *)
16069 case $LD in # libtool.m4 will add one of these switches to LD
16070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16071 libsuff= shlibsuff= libmagic=32-bit;;
16072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16073 libsuff=32 shlibsuff=N32 libmagic=N32;;
16074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16076 *) libsuff= shlibsuff= libmagic=never-match;;
16077 esac
16078 ;;
16079 esac
16080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16081 shlibpath_overrides_runpath=no
16082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16084 hardcode_into_libs=yes
16085 ;;
16086
16087 # No shared lib support for Linux oldld, aout, or coff.
16088 linux*oldld* | linux*aout* | linux*coff*)
16089 dynamic_linker=no
16090 ;;
16091
16092 linux*android*)
16093 version_type=none # Android doesn't support versioned libraries.
16094 need_lib_prefix=no
16095 need_version=no
16096 library_names_spec='$libname$release$shared_ext'
16097 soname_spec='$libname$release$shared_ext'
16098 finish_cmds=
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=yes
16101
16102 # This implies no fast_install, which is unacceptable.
16103 # Some rework will be needed to allow for fast_install
16104 # before this can be enabled.
16105 hardcode_into_libs=yes
16106
16107 dynamic_linker='Android linker'
16108 # Don't embed -rpath directories since the linker doesn't support them.
16109 hardcode_libdir_flag_spec_CXX='-L$libdir'
16110 ;;
16111
16112 # This must be glibc/ELF.
16113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16114 version_type=linux # correct to gnu/linux during the next big refactor
16115 need_lib_prefix=no
16116 need_version=no
16117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16118 soname_spec='$libname$release$shared_ext$major'
16119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 shlibpath_overrides_runpath=no
16122
16123 # Some binutils ld are patched to set DT_RUNPATH
16124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16125 $as_echo_n "(cached) " >&6
16126 else
16127 lt_cv_shlibpath_overrides_runpath=no
16128 save_LDFLAGS=$LDFLAGS
16129 save_libdir=$libdir
16130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134
16135 int
16136 main ()
16137 {
16138
16139 ;
16140 return 0;
16141 }
16142 _ACEOF
16143 if ac_fn_cxx_try_link "$LINENO"; then :
16144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16145 lt_cv_shlibpath_overrides_runpath=yes
16146 fi
16147 fi
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16150 LDFLAGS=$save_LDFLAGS
16151 libdir=$save_libdir
16152
16153 fi
16154
16155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16156
16157 # This implies no fast_install, which is unacceptable.
16158 # Some rework will be needed to allow for fast_install
16159 # before this can be enabled.
16160 hardcode_into_libs=yes
16161
16162 # Ideally, we could use ldconfig to report *all* directores which are
16163 # searched for libraries, however this is still not possible. Aside from not
16164 # being certain /sbin/ldconfig is available, command
16165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16166 # even though it is searched at run-time. Try to do the best guess by
16167 # appending ld.so.conf contents (and includes) to the search path.
16168 if test -f /etc/ld.so.conf; then
16169 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' ' '`
16170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16171 fi
16172
16173 # We used to test for /lib/ld.so.1 and disable shared libraries on
16174 # powerpc, because MkLinux only supported shared libraries with the
16175 # GNU dynamic linker. Since this was broken with cross compilers,
16176 # most powerpc-linux boxes support dynamic linking these days and
16177 # people can always --disable-shared, the test was removed, and we
16178 # assume the GNU/Linux dynamic linker is in use.
16179 dynamic_linker='GNU/Linux ld.so'
16180 ;;
16181
16182 netbsd*)
16183 version_type=sunos
16184 need_lib_prefix=no
16185 need_version=no
16186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16189 dynamic_linker='NetBSD (a.out) ld.so'
16190 else
16191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16192 soname_spec='$libname$release$shared_ext$major'
16193 dynamic_linker='NetBSD ld.elf_so'
16194 fi
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16198 ;;
16199
16200 newsos6)
16201 version_type=linux # correct to gnu/linux during the next big refactor
16202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16203 shlibpath_var=LD_LIBRARY_PATH
16204 shlibpath_overrides_runpath=yes
16205 ;;
16206
16207 *nto* | *qnx*)
16208 version_type=qnx
16209 need_lib_prefix=no
16210 need_version=no
16211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16212 soname_spec='$libname$release$shared_ext$major'
16213 shlibpath_var=LD_LIBRARY_PATH
16214 shlibpath_overrides_runpath=no
16215 hardcode_into_libs=yes
16216 dynamic_linker='ldqnx.so'
16217 ;;
16218
16219 openbsd* | bitrig*)
16220 version_type=sunos
16221 sys_lib_dlsearch_path_spec=/usr/lib
16222 need_lib_prefix=no
16223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16224 need_version=no
16225 else
16226 need_version=yes
16227 fi
16228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16230 shlibpath_var=LD_LIBRARY_PATH
16231 shlibpath_overrides_runpath=yes
16232 ;;
16233
16234 os2*)
16235 libname_spec='$name'
16236 version_type=windows
16237 shrext_cmds=.dll
16238 need_version=no
16239 need_lib_prefix=no
16240 # OS/2 can only load a DLL with a base name of 8 characters or less.
16241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16242 v=$($ECHO $release$versuffix | tr -d .-);
16243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16244 $ECHO $n$v`$shared_ext'
16245 library_names_spec='${libname}_dll.$libext'
16246 dynamic_linker='OS/2 ld.exe'
16247 shlibpath_var=BEGINLIBPATH
16248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250 postinstall_cmds='base_file=`basename \$file`~
16251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16252 dldir=$destdir/`dirname \$dlpath`~
16253 test -d \$dldir || mkdir -p \$dldir~
16254 $install_prog $dir/$dlname \$dldir/$dlname~
16255 chmod a+x \$dldir/$dlname~
16256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16258 fi'
16259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16260 dlpath=$dir/\$dldll~
16261 $RM \$dlpath'
16262 ;;
16263
16264 osf3* | osf4* | osf5*)
16265 version_type=osf
16266 need_lib_prefix=no
16267 need_version=no
16268 soname_spec='$libname$release$shared_ext$major'
16269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16273 ;;
16274
16275 rdos*)
16276 dynamic_linker=no
16277 ;;
16278
16279 solaris*)
16280 version_type=linux # correct to gnu/linux during the next big refactor
16281 need_lib_prefix=no
16282 need_version=no
16283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16284 soname_spec='$libname$release$shared_ext$major'
16285 shlibpath_var=LD_LIBRARY_PATH
16286 shlibpath_overrides_runpath=yes
16287 hardcode_into_libs=yes
16288 # ldd complains unless libraries are executable
16289 postinstall_cmds='chmod +x $lib'
16290 ;;
16291
16292 sunos4*)
16293 version_type=sunos
16294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes
16298 if test yes = "$with_gnu_ld"; then
16299 need_lib_prefix=no
16300 fi
16301 need_version=yes
16302 ;;
16303
16304 sysv4 | sysv4.3*)
16305 version_type=linux # correct to gnu/linux during the next big refactor
16306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16307 soname_spec='$libname$release$shared_ext$major'
16308 shlibpath_var=LD_LIBRARY_PATH
16309 case $host_vendor in
16310 sni)
16311 shlibpath_overrides_runpath=no
16312 need_lib_prefix=no
16313 runpath_var=LD_RUN_PATH
16314 ;;
16315 siemens)
16316 need_lib_prefix=no
16317 ;;
16318 motorola)
16319 need_lib_prefix=no
16320 need_version=no
16321 shlibpath_overrides_runpath=no
16322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16323 ;;
16324 esac
16325 ;;
16326
16327 sysv4*MP*)
16328 if test -d /usr/nec; then
16329 version_type=linux # correct to gnu/linux during the next big refactor
16330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16331 soname_spec='$libname$shared_ext.$major'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 fi
16334 ;;
16335
16336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16337 version_type=sco
16338 need_lib_prefix=no
16339 need_version=no
16340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16341 soname_spec='$libname$release$shared_ext$major'
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16344 hardcode_into_libs=yes
16345 if test yes = "$with_gnu_ld"; then
16346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16347 else
16348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16349 case $host_os in
16350 sco3.2v5*)
16351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16352 ;;
16353 esac
16354 fi
16355 sys_lib_dlsearch_path_spec='/usr/lib'
16356 ;;
16357
16358 tpf*)
16359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16360 version_type=linux # correct to gnu/linux during the next big refactor
16361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 hardcode_into_libs=yes
16367 ;;
16368
16369 uts4*)
16370 version_type=linux # correct to gnu/linux during the next big refactor
16371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16372 soname_spec='$libname$release$shared_ext$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 ;;
16375
16376 *)
16377 dynamic_linker=no
16378 ;;
16379 esac
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16381 $as_echo "$dynamic_linker" >&6; }
16382 test no = "$dynamic_linker" && can_build_shared=no
16383
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test yes = "$GCC"; then
16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387 fi
16388
16389 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16391 fi
16392
16393 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16395 fi
16396
16397 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16398 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16399
16400 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16401 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16402
16403 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16404 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16446 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16447 hardcode_action_CXX=
16448 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16449 test -n "$runpath_var_CXX" ||
16450 test yes = "$hardcode_automatic_CXX"; then
16451
16452 # We can hardcode non-existent directories.
16453 if test no != "$hardcode_direct_CXX" &&
16454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16455 # have to relink, otherwise we might link with an installed library
16456 # when we should be linking with a yet-to-be-installed one
16457 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16458 test no != "$hardcode_minus_L_CXX"; then
16459 # Linking always hardcodes the temporary library directory.
16460 hardcode_action_CXX=relink
16461 else
16462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16463 hardcode_action_CXX=immediate
16464 fi
16465 else
16466 # We cannot hardcode anything, or else we can only hardcode existing
16467 # directories.
16468 hardcode_action_CXX=unsupported
16469 fi
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16471 $as_echo "$hardcode_action_CXX" >&6; }
16472
16473 if test relink = "$hardcode_action_CXX" ||
16474 test yes = "$inherit_rpath_CXX"; then
16475 # Fast installation is not supported
16476 enable_fast_install=no
16477 elif test yes = "$shlibpath_overrides_runpath" ||
16478 test no = "$enable_shared"; then
16479 # Fast installation is not necessary
16480 enable_fast_install=needless
16481 fi
16482
16483
16484
16485
16486
16487
16488
16489 fi # test -n "$compiler"
16490
16491 CC=$lt_save_CC
16492 CFLAGS=$lt_save_CFLAGS
16493 LDCXX=$LD
16494 LD=$lt_save_LD
16495 GCC=$lt_save_GCC
16496 with_gnu_ld=$lt_save_with_gnu_ld
16497 lt_cv_path_LDCXX=$lt_cv_path_LD
16498 lt_cv_path_LD=$lt_save_path_LD
16499 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16500 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16501 fi # test yes != "$_lt_caught_CXX_error"
16502
16503 ac_ext=c
16504 ac_cpp='$CPP $CPPFLAGS'
16505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523 ac_config_commands="$ac_config_commands libtool"
16524
16525
16526
16527
16528 # Only expand once:
16529
16530
16531
16532 ac_ext=cpp
16533 ac_cpp='$CXXCPP $CPPFLAGS'
16534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16537
16538
16539 ax_cxx_compile_cxx11_required=true
16540 ac_ext=cpp
16541 ac_cpp='$CXXCPP $CPPFLAGS'
16542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16545 ac_success=no
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16547 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16548 if ${ax_cv_cxx_compile_cxx11+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553
16554 template <typename T>
16555 struct check
16556 {
16557 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16558 };
16559
16560 struct Base {
16561 virtual void f() {}
16562 };
16563 struct Child : public Base {
16564 virtual void f() override {}
16565 };
16566
16567 typedef check<check<bool>> right_angle_brackets;
16568
16569 int a;
16570 decltype(a) b;
16571
16572 typedef check<int> check_type;
16573 check_type c;
16574 check_type&& cr = static_cast<check_type&&>(c);
16575
16576 auto d = a;
16577 auto l = [](){};
16578
16579 _ACEOF
16580 if ac_fn_cxx_try_compile "$LINENO"; then :
16581 ax_cv_cxx_compile_cxx11=yes
16582 else
16583 ax_cv_cxx_compile_cxx11=no
16584 fi
16585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16586 fi
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16588 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16589 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16590 ac_success=yes
16591 fi
16592
16593 if test x$ac_success = xno; then
16594 for switch in -std=gnu++11 -std=gnu++0x; do
16595 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16597 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16598 if eval \${$cachevar+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 ac_save_CXXFLAGS="$CXXFLAGS"
16602 CXXFLAGS="$CXXFLAGS $switch"
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16605
16606 template <typename T>
16607 struct check
16608 {
16609 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16610 };
16611
16612 struct Base {
16613 virtual void f() {}
16614 };
16615 struct Child : public Base {
16616 virtual void f() override {}
16617 };
16618
16619 typedef check<check<bool>> right_angle_brackets;
16620
16621 int a;
16622 decltype(a) b;
16623
16624 typedef check<int> check_type;
16625 check_type c;
16626 check_type&& cr = static_cast<check_type&&>(c);
16627
16628 auto d = a;
16629 auto l = [](){};
16630
16631 _ACEOF
16632 if ac_fn_cxx_try_compile "$LINENO"; then :
16633 eval $cachevar=yes
16634 else
16635 eval $cachevar=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 CXXFLAGS="$ac_save_CXXFLAGS"
16639 fi
16640 eval ac_res=\$$cachevar
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16642 $as_echo "$ac_res" >&6; }
16643 if eval test x\$$cachevar = xyes; then
16644 CXXFLAGS="$CXXFLAGS $switch"
16645 ac_success=yes
16646 break
16647 fi
16648 done
16649 fi
16650
16651
16652 ac_ext=cpp
16653 ac_cpp='$CXXCPP $CPPFLAGS'
16654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16657
16658 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16659 if test x$ac_success = xno; then
16660 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16661 fi
16662 else
16663 if test x$ac_success = xno; then
16664 HAVE_CXX11=0
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16666 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16667 else
16668 HAVE_CXX11=1
16669
16670 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
16671
16672 fi
16673
16674
16675 fi
16676
16677 OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16678
16679
16680
16681
16682
16683
16684
16685
16686 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16687 if test -n "$ac_tool_prefix"; then
16688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16689 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16691 $as_echo_n "checking for $ac_word... " >&6; }
16692 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16693 $as_echo_n "(cached) " >&6
16694 else
16695 case $PKG_CONFIG in
16696 [\\/]* | ?:[\\/]*)
16697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16698 ;;
16699 *)
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701 for as_dir in $PATH
16702 do
16703 IFS=$as_save_IFS
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 break 2
16710 fi
16711 done
16712 done
16713 IFS=$as_save_IFS
16714
16715 ;;
16716 esac
16717 fi
16718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16719 if test -n "$PKG_CONFIG"; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16721 $as_echo "$PKG_CONFIG" >&6; }
16722 else
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724 $as_echo "no" >&6; }
16725 fi
16726
16727
16728 fi
16729 if test -z "$ac_cv_path_PKG_CONFIG"; then
16730 ac_pt_PKG_CONFIG=$PKG_CONFIG
16731 # Extract the first word of "pkg-config", so it can be a program name with args.
16732 set dummy pkg-config; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16736 $as_echo_n "(cached) " >&6
16737 else
16738 case $ac_pt_PKG_CONFIG in
16739 [\\/]* | ?:[\\/]*)
16740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16741 ;;
16742 *)
16743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744 for as_dir in $PATH
16745 do
16746 IFS=$as_save_IFS
16747 test -z "$as_dir" && as_dir=.
16748 for ac_exec_ext in '' $ac_executable_extensions; do
16749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752 break 2
16753 fi
16754 done
16755 done
16756 IFS=$as_save_IFS
16757
16758 ;;
16759 esac
16760 fi
16761 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16762 if test -n "$ac_pt_PKG_CONFIG"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16764 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769
16770 if test "x$ac_pt_PKG_CONFIG" = x; then
16771 PKG_CONFIG=""
16772 else
16773 case $cross_compiling:$ac_tool_warned in
16774 yes:)
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16777 ac_tool_warned=yes ;;
16778 esac
16779 PKG_CONFIG=$ac_pt_PKG_CONFIG
16780 fi
16781 else
16782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16783 fi
16784
16785 fi
16786 if test -n "$PKG_CONFIG"; then
16787 _pkg_min_version=0.22
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16789 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792 $as_echo "yes" >&6; }
16793 else
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16795 $as_echo "no" >&6; }
16796 PKG_CONFIG=""
16797 fi
16798 fi
16799
16800 # Extract the first word of "git", so it can be a program name with args.
16801 set dummy git; ac_word=$2
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16803 $as_echo_n "checking for $ac_word... " >&6; }
16804 if ${ac_cv_path_GIT+:} false; then :
16805 $as_echo_n "(cached) " >&6
16806 else
16807 case $GIT in
16808 [\\/]* | ?:[\\/]*)
16809 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16810 ;;
16811 *)
16812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813 for as_dir in $PATH
16814 do
16815 IFS=$as_save_IFS
16816 test -z "$as_dir" && as_dir=.
16817 for ac_exec_ext in '' $ac_executable_extensions; do
16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16819 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16821 break 2
16822 fi
16823 done
16824 done
16825 IFS=$as_save_IFS
16826
16827 ;;
16828 esac
16829 fi
16830 GIT=$ac_cv_path_GIT
16831 if test -n "$GIT"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16833 $as_echo "$GIT" >&6; }
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837 fi
16838
16839
16840 # Extract the first word of "time", so it can be a program name with args.
16841 set dummy time; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16843 $as_echo_n "checking for $ac_word... " >&6; }
16844 if ${ac_cv_path_TIME+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 case $TIME in
16848 [\\/]* | ?:[\\/]*)
16849 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16850 ;;
16851 *)
16852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16853 for as_dir in $PATH
16854 do
16855 IFS=$as_save_IFS
16856 test -z "$as_dir" && as_dir=.
16857 for ac_exec_ext in '' $ac_executable_extensions; do
16858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16859 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
16860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16861 break 2
16862 fi
16863 done
16864 done
16865 IFS=$as_save_IFS
16866
16867 ;;
16868 esac
16869 fi
16870 TIME=$ac_cv_path_TIME
16871 if test -n "$TIME"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16873 $as_echo "$TIME" >&6; }
16874 else
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16877 fi
16878
16879
16880
16881
16882
16883
16884
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16886 $as_echo_n "checking for bison >= 3.0... " >&6; }
16887 if test -z "$BISON"; then
16888 ac_path_BISON_found=false
16889 # Loop through the user's path and test for each of PROGNAME-LIST
16890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16891 for as_dir in $PATH
16892 do
16893 IFS=$as_save_IFS
16894 test -z "$as_dir" && as_dir=.
16895 for ac_prog in bison; do
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16898 as_fn_executable_p "$ac_path_BISON" || continue
16899 version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16900 if ${version:+false} :; then :
16901
16902 else
16903 as_awk_strverscmp='
16904 # Use only awk features that work with 7th edition Unix awk (1978).
16905 # My, what an old awk you have, Mr. Solaris!
16906 END {
16907 while (length(v1) && length(v2)) {
16908 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16909 # Normally this is a single character, but if v1 and v2 contain digits,
16910 # compare them as integers and fractions as strverscmp does.
16911 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16912 # Split v1 and v2 into their leading digit string components d1 and d2,
16913 # and advance v1 and v2 past the leading digit strings.
16914 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16915 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16916 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16917 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16918 if (d1 ~ /^0/) {
16919 if (d2 ~ /^0/) {
16920 # Compare two fractions.
16921 while (d1 ~ /^0/ && d2 ~ /^0/) {
16922 d1 = substr(d1, 2); len1--
16923 d2 = substr(d2, 2); len2--
16924 }
16925 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16926 # The two components differ in length, and the common prefix
16927 # contains only leading zeros. Consider the longer to be less.
16928 d1 = -len1
16929 d2 = -len2
16930 } else {
16931 # Otherwise, compare as strings.
16932 d1 = "x" d1
16933 d2 = "x" d2
16934 }
16935 } else {
16936 # A fraction is less than an integer.
16937 exit 1
16938 }
16939 } else {
16940 if (d2 ~ /^0/) {
16941 # An integer is greater than a fraction.
16942 exit 2
16943 } else {
16944 # Compare two integers.
16945 d1 += 0
16946 d2 += 0
16947 }
16948 }
16949 } else {
16950 # The normal case, without worrying about digits.
16951 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16952 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16953 }
16954 if (d1 < d2) exit 1
16955 if (d1 > d2) exit 2
16956 }
16957 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16958 # which mishandles some comparisons of empty strings to integers.
16959 if (length(v2)) exit 1
16960 if (length(v1)) exit 2
16961 }
16962 '
16963 as_arg_v1=$version
16964 as_arg_v2=3.0
16965 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16966 case $? in #(
16967 1) :
16968 ;; #(
16969 0) :
16970 ac_cv_path_BISON=$ac_path_BISON ;; #(
16971 2) :
16972 ac_cv_path_BISON=$ac_path_BISON ;; #(
16973 *) :
16974 ;;
16975 esac
16976 fi
16977
16978 $ac_path_BISON_found && break 3
16979 done
16980 done
16981 done
16982 IFS=$as_save_IFS
16983 if test -z "$ac_cv_path_BISON"; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16985 $as_echo "no" >&6; }
16986 fi
16987 else
16988 ac_cv_path_BISON=$BISON
16989 fi
16990
16991
16992 if true; then :
16993
16994 BISON=$ac_cv_path_BISON
16995
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16997 $as_echo "$BISON" >&6; }
16998
16999 else
17000 if true; then :
17001
17002 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
17003
17004 else
17005
17006 BISON=:
17007
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009 $as_echo "no" >&6; }
17010
17011 fi
17012 fi
17013
17014
17015
17016
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17018 $as_echo_n "checking for flex >= 2.5.33... " >&6; }
17019 if test -z "$FLEX"; then
17020 ac_path_FLEX_found=false
17021 # Loop through the user's path and test for each of PROGNAME-LIST
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023 for as_dir in $PATH
17024 do
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for ac_prog in flex; do
17028 for ac_exec_ext in '' $ac_executable_extensions; do
17029 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17030 as_fn_executable_p "$ac_path_FLEX" || continue
17031 version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17032 if ${version:+false} :; then :
17033
17034 else
17035 as_arg_v1=$version
17036 as_arg_v2=2.5.33
17037 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17038 case $? in #(
17039 1) :
17040 ;; #(
17041 0) :
17042 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17043 2) :
17044 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17045 *) :
17046 ;;
17047 esac
17048 fi
17049
17050 $ac_path_FLEX_found && break 3
17051 done
17052 done
17053 done
17054 IFS=$as_save_IFS
17055 if test -z "$ac_cv_path_FLEX"; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17058 fi
17059 else
17060 ac_cv_path_FLEX=$FLEX
17061 fi
17062
17063
17064 if true; then :
17065
17066 FLEX=$ac_cv_path_FLEX
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17069 $as_echo "$FLEX" >&6; }
17070
17071 else
17072 if true; then :
17073
17074 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
17075
17076 else
17077
17078 FLEX=:
17079
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17082
17083 fi
17084 fi
17085
17086
17087
17088
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17090 $as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17091 if test -z "$GPERF"; then
17092 ac_path_GPERF_found=false
17093 # Loop through the user's path and test for each of PROGNAME-LIST
17094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17095 for as_dir in $PATH
17096 do
17097 IFS=$as_save_IFS
17098 test -z "$as_dir" && as_dir=.
17099 for ac_prog in gperf; do
17100 for ac_exec_ext in '' $ac_executable_extensions; do
17101 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17102 as_fn_executable_p "$ac_path_GPERF" || continue
17103 version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17104 if ${version:+false} :; then :
17105
17106 else
17107 as_arg_v1=$version
17108 as_arg_v2=3.0.3
17109 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17110 case $? in #(
17111 1) :
17112 ;; #(
17113 0) :
17114 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17115 2) :
17116 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17117 *) :
17118 ;;
17119 esac
17120 fi
17121
17122 $ac_path_GPERF_found && break 3
17123 done
17124 done
17125 done
17126 IFS=$as_save_IFS
17127 if test -z "$ac_cv_path_GPERF"; then
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 $as_echo "no" >&6; }
17130 fi
17131 else
17132 ac_cv_path_GPERF=$GPERF
17133 fi
17134
17135
17136 if true; then :
17137
17138 GPERF=$ac_cv_path_GPERF
17139
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17141 $as_echo "$GPERF" >&6; }
17142
17143 else
17144 if true; then :
17145
17146 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17147
17148 else
17149
17150 GPERF=:
17151
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17153 $as_echo "no" >&6; }
17154
17155 fi
17156 fi
17157
17158
17159
17160
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17162 $as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17163 if test -z "$GNUTAR"; then
17164 ac_path_GNUTAR_found=false
17165 # Loop through the user's path and test for each of PROGNAME-LIST
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17168 do
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
17171 for ac_prog in tar gtar gnutar; do
17172 for ac_exec_ext in '' $ac_executable_extensions; do
17173 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17174 as_fn_executable_p "$ac_path_GNUTAR" || continue
17175 version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17176 if ${version:+false} :; then :
17177
17178 else
17179 as_arg_v1=$version
17180 as_arg_v2=1.19
17181 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17182 case $? in #(
17183 1) :
17184 ;; #(
17185 0) :
17186 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17187 2) :
17188 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17189 *) :
17190 ;;
17191 esac
17192 fi
17193
17194 $ac_path_GNUTAR_found && break 3
17195 done
17196 done
17197 done
17198 IFS=$as_save_IFS
17199 if test -z "$ac_cv_path_GNUTAR"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201 $as_echo "no" >&6; }
17202 fi
17203 else
17204 ac_cv_path_GNUTAR=$GNUTAR
17205 fi
17206
17207
17208 if true; then :
17209
17210 GNUTAR=$ac_cv_path_GNUTAR
17211
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17213 $as_echo "$GNUTAR" >&6; }
17214
17215 else
17216 if true; then :
17217
17218 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
17219
17220 else
17221
17222 GNUTAR=:
17223
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17225 $as_echo "no" >&6; }
17226
17227 fi
17228 fi
17229
17230
17231
17232
17233
17234
17235
17236 if test "x$LFLAGS" = x; then :
17237 LFLAGS="--full --ecs"
17238 fi
17239
17240
17241
17242
17243
17244 ac_ext=c
17245 ac_cpp='$CPP $CPPFLAGS'
17246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17249
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17251 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17252 if ${ac_cv_cflags_warn_all+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 ac_cv_cflags_warn_all="no, unknown"
17256 ac_save_CFLAGS="$CFLAGS"
17257 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" #
17258 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261
17262 int
17263 main ()
17264 {
17265
17266 ;
17267 return 0;
17268 }
17269 _ACEOF
17270 if ac_fn_c_try_compile "$LINENO"; then :
17271 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 done
17275 CFLAGS="$ac_save_CFLAGS"
17276
17277 fi
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17279 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17280
17281
17282 case ".$ac_cv_cflags_warn_all" in
17283 .ok|.ok,*) ;;
17284 .|.no|.no,*) ;;
17285 *) if ${CFLAGS+:} false; then :
17286 case " $CFLAGS " in
17287 *" $ac_cv_cflags_warn_all "*)
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17289 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }
17293 ;;
17294 *)
17295 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17296 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17297 ac_status=$?
17298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17299 test $ac_status = 0; }
17300 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17301 ;;
17302 esac
17303 else
17304 CFLAGS="$ac_cv_cflags_warn_all"
17305 fi
17306 ;;
17307 esac
17308
17309 ac_ext=cpp
17310 ac_cpp='$CXXCPP $CPPFLAGS'
17311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17314
17315
17316 ac_ext=cpp
17317 ac_cpp='$CXXCPP $CPPFLAGS'
17318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17321
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17323 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17324 if ${ac_cv_cxxflags_warn_all+:} false; then :
17325 $as_echo_n "(cached) " >&6
17326 else
17327 ac_cv_cxxflags_warn_all="no, unknown"
17328 ac_save_CXXFLAGS="$CXXFLAGS"
17329 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" #
17330 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17333
17334 int
17335 main ()
17336 {
17337
17338 ;
17339 return 0;
17340 }
17341 _ACEOF
17342 if ac_fn_cxx_try_compile "$LINENO"; then :
17343 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 done
17347 CXXFLAGS="$ac_save_CXXFLAGS"
17348
17349 fi
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17351 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17352
17353
17354 case ".$ac_cv_cxxflags_warn_all" in
17355 .ok|.ok,*) ;;
17356 .|.no|.no,*) ;;
17357 *) if ${CXXFLAGS+:} false; then :
17358 case " $CXXFLAGS " in
17359 *" $ac_cv_cxxflags_warn_all "*)
17360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17361 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17362 ac_status=$?
17363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364 test $ac_status = 0; }
17365 ;;
17366 *)
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17368 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17369 ac_status=$?
17370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17371 test $ac_status = 0; }
17372 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17373 ;;
17374 esac
17375 else
17376 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17377 fi
17378 ;;
17379 esac
17380
17381 ac_ext=cpp
17382 ac_cpp='$CXXCPP $CPPFLAGS'
17383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17386
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17389 $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17390 if ${ac_cv_cxxflags_warn_all+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 ac_cv_cxxflags_warn_all="no, unknown"
17394 ac_save_CXXFLAGS="$CXXFLAGS"
17395 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" #
17396 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399
17400 int
17401 main ()
17402 {
17403
17404 ;
17405 return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_cxx_try_compile "$LINENO"; then :
17409 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 done
17413 CXXFLAGS="$ac_save_CXXFLAGS"
17414
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17417 $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17418
17419
17420 case ".$ac_cv_cxxflags_warn_all" in
17421 .ok|.ok,*) ;;
17422 .|.no|.no,*) ;;
17423 *) if ${CXXFLAGS+:} false; then :
17424 case " $CXXFLAGS " in
17425 *" $ac_cv_cxxflags_warn_all "*)
17426 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17427 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17428 ac_status=$?
17429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17430 test $ac_status = 0; }
17431 ;;
17432 *)
17433 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17434 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17435 ac_status=$?
17436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17437 test $ac_status = 0; }
17438 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17439 ;;
17440 esac
17441 else
17442 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17443 fi
17444 ;;
17445 esac
17446
17447
17448
17449
17450
17451 ac_ext=c
17452 ac_cpp='$CPP $CPPFLAGS'
17453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17456
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17458 $as_echo_n "checking for cc -Werror... " >&6; }
17459
17460 cy_save=$CFLAGS
17461
17462 for element in -Werror; do
17463 haveit=
17464 for x in $CFLAGS; do
17465
17466 acl_save_prefix="$prefix"
17467 prefix="$acl_final_prefix"
17468 acl_save_exec_prefix="$exec_prefix"
17469 exec_prefix="$acl_final_exec_prefix"
17470 eval x=\"$x\"
17471 exec_prefix="$acl_save_exec_prefix"
17472 prefix="$acl_save_prefix"
17473
17474 if test "X$x" = "X$element"; then
17475 haveit=yes
17476 break
17477 fi
17478 done
17479 if test -z "$haveit"; then
17480 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17481 fi
17482 done
17483
17484
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487
17488 _ACEOF
17489 if ac_fn_c_try_compile "$LINENO"; then :
17490 cy_good=1
17491 else
17492 cy_good=0
17493 fi
17494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17495
17496 CFLAGS=$cy_save
17497 if test "x$cy_good" = x1; then :
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17499 $as_echo "yes" >&6; }
17500
17501 for element in -Werror; do
17502 haveit=
17503 for x in $CFLAGS; do
17504
17505 acl_save_prefix="$prefix"
17506 prefix="$acl_final_prefix"
17507 acl_save_exec_prefix="$exec_prefix"
17508 exec_prefix="$acl_final_exec_prefix"
17509 eval x=\"$x\"
17510 exec_prefix="$acl_save_exec_prefix"
17511 prefix="$acl_save_prefix"
17512
17513 if test "X$x" = "X$element"; then
17514 haveit=yes
17515 break
17516 fi
17517 done
17518 if test -z "$haveit"; then
17519 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17520 fi
17521 done
17522
17523
17524 else
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526 $as_echo "no" >&6; }
17527 fi
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
17536
17537 ac_ext=cpp
17538 ac_cpp='$CXXCPP $CPPFLAGS'
17539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17544 $as_echo_n "checking for c++ -Werror... " >&6; }
17545
17546 cy_save=$CXXFLAGS
17547
17548 for element in -Werror; do
17549 haveit=
17550 for x in $CXXFLAGS; do
17551
17552 acl_save_prefix="$prefix"
17553 prefix="$acl_final_prefix"
17554 acl_save_exec_prefix="$exec_prefix"
17555 exec_prefix="$acl_final_exec_prefix"
17556 eval x=\"$x\"
17557 exec_prefix="$acl_save_exec_prefix"
17558 prefix="$acl_save_prefix"
17559
17560 if test "X$x" = "X$element"; then
17561 haveit=yes
17562 break
17563 fi
17564 done
17565 if test -z "$haveit"; then
17566 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17567 fi
17568 done
17569
17570
17571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h. */
17573
17574 _ACEOF
17575 if ac_fn_cxx_try_compile "$LINENO"; then :
17576 cy_good=1
17577 else
17578 cy_good=0
17579 fi
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581
17582 CXXFLAGS=$cy_save
17583 if test "x$cy_good" = x1; then :
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585 $as_echo "yes" >&6; }
17586
17587 for element in -Werror; do
17588 haveit=
17589 for x in $CXXFLAGS; do
17590
17591 acl_save_prefix="$prefix"
17592 prefix="$acl_final_prefix"
17593 acl_save_exec_prefix="$exec_prefix"
17594 exec_prefix="$acl_final_exec_prefix"
17595 eval x=\"$x\"
17596 exec_prefix="$acl_save_exec_prefix"
17597 prefix="$acl_save_prefix"
17598
17599 if test "X$x" = "X$element"; then
17600 haveit=yes
17601 break
17602 fi
17603 done
17604 if test -z "$haveit"; then
17605 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17606 fi
17607 done
17608
17609
17610 else
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612 $as_echo "no" >&6; }
17613 fi
17614
17615 ac_ext=cpp
17616 ac_cpp='$CXXCPP $CPPFLAGS'
17617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17620
17621
17622
17623 ac_ext=mm
17624 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17625 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17628
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17630 $as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
17631
17632 cy_save=$OBJCXXFLAGS
17633
17634 for element in -Werror; do
17635 haveit=
17636 for x in $OBJCXXFLAGS; do
17637
17638 acl_save_prefix="$prefix"
17639 prefix="$acl_final_prefix"
17640 acl_save_exec_prefix="$exec_prefix"
17641 exec_prefix="$acl_final_exec_prefix"
17642 eval x=\"$x\"
17643 exec_prefix="$acl_save_exec_prefix"
17644 prefix="$acl_save_prefix"
17645
17646 if test "X$x" = "X$element"; then
17647 haveit=yes
17648 break
17649 fi
17650 done
17651 if test -z "$haveit"; then
17652 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17653 fi
17654 done
17655
17656
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659
17660 _ACEOF
17661 if ac_fn_objcxx_try_compile "$LINENO"; then :
17662 cy_good=1
17663 else
17664 cy_good=0
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667
17668 OBJCXXFLAGS=$cy_save
17669 if test "x$cy_good" = x1; then :
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17671 $as_echo "yes" >&6; }
17672
17673 for element in -Werror; do
17674 haveit=
17675 for x in $OBJCXXFLAGS; do
17676
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17681 eval x=\"$x\"
17682 exec_prefix="$acl_save_exec_prefix"
17683 prefix="$acl_save_prefix"
17684
17685 if test "X$x" = "X$element"; then
17686 haveit=yes
17687 break
17688 fi
17689 done
17690 if test -z "$haveit"; then
17691 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17692 fi
17693 done
17694
17695
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17699 fi
17700
17701 ac_ext=cpp
17702 ac_cpp='$CXXCPP $CPPFLAGS'
17703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17706
17707
17708
17709
17710
17711
17712 ac_ext=c
17713 ac_cpp='$CPP $CPPFLAGS'
17714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17719 $as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
17720
17721 cy_save=$CFLAGS
17722
17723 for element in -Wno-deprecated-declarations; do
17724 haveit=
17725 for x in $CFLAGS; do
17726
17727 acl_save_prefix="$prefix"
17728 prefix="$acl_final_prefix"
17729 acl_save_exec_prefix="$exec_prefix"
17730 exec_prefix="$acl_final_exec_prefix"
17731 eval x=\"$x\"
17732 exec_prefix="$acl_save_exec_prefix"
17733 prefix="$acl_save_prefix"
17734
17735 if test "X$x" = "X$element"; then
17736 haveit=yes
17737 break
17738 fi
17739 done
17740 if test -z "$haveit"; then
17741 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17742 fi
17743 done
17744
17745
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748
17749 _ACEOF
17750 if ac_fn_c_try_compile "$LINENO"; then :
17751 cy_good=1
17752 else
17753 cy_good=0
17754 fi
17755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17756
17757 CFLAGS=$cy_save
17758 if test "x$cy_good" = x1; then :
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17760 $as_echo "yes" >&6; }
17761
17762 for element in -Wno-deprecated-declarations; do
17763 haveit=
17764 for x in $CFLAGS; do
17765
17766 acl_save_prefix="$prefix"
17767 prefix="$acl_final_prefix"
17768 acl_save_exec_prefix="$exec_prefix"
17769 exec_prefix="$acl_final_exec_prefix"
17770 eval x=\"$x\"
17771 exec_prefix="$acl_save_exec_prefix"
17772 prefix="$acl_save_prefix"
17773
17774 if test "X$x" = "X$element"; then
17775 haveit=yes
17776 break
17777 fi
17778 done
17779 if test -z "$haveit"; then
17780 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17781 fi
17782 done
17783
17784
17785 else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787 $as_echo "no" >&6; }
17788 fi
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
17797
17798 ac_ext=cpp
17799 ac_cpp='$CXXCPP $CPPFLAGS'
17800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17803
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17805 $as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
17806
17807 cy_save=$CXXFLAGS
17808
17809 for element in -Wno-deprecated-declarations; do
17810 haveit=
17811 for x in $CXXFLAGS; do
17812
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17817 eval x=\"$x\"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17820
17821 if test "X$x" = "X$element"; then
17822 haveit=yes
17823 break
17824 fi
17825 done
17826 if test -z "$haveit"; then
17827 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17828 fi
17829 done
17830
17831
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834
17835 _ACEOF
17836 if ac_fn_cxx_try_compile "$LINENO"; then :
17837 cy_good=1
17838 else
17839 cy_good=0
17840 fi
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842
17843 CXXFLAGS=$cy_save
17844 if test "x$cy_good" = x1; then :
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846 $as_echo "yes" >&6; }
17847
17848 for element in -Wno-deprecated-declarations; do
17849 haveit=
17850 for x in $CXXFLAGS; do
17851
17852 acl_save_prefix="$prefix"
17853 prefix="$acl_final_prefix"
17854 acl_save_exec_prefix="$exec_prefix"
17855 exec_prefix="$acl_final_exec_prefix"
17856 eval x=\"$x\"
17857 exec_prefix="$acl_save_exec_prefix"
17858 prefix="$acl_save_prefix"
17859
17860 if test "X$x" = "X$element"; then
17861 haveit=yes
17862 break
17863 fi
17864 done
17865 if test -z "$haveit"; then
17866 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17867 fi
17868 done
17869
17870
17871 else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17874 fi
17875
17876 ac_ext=cpp
17877 ac_cpp='$CXXCPP $CPPFLAGS'
17878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17881
17882
17883
17884 ac_ext=mm
17885 ac_cpp='$OBJCXXCPP $CPPFLAGS'
17886 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17887 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17888 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17889
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17891 $as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
17892
17893 cy_save=$OBJCXXFLAGS
17894
17895 for element in -Wno-deprecated-declarations; do
17896 haveit=
17897 for x in $OBJCXXFLAGS; do
17898
17899 acl_save_prefix="$prefix"
17900 prefix="$acl_final_prefix"
17901 acl_save_exec_prefix="$exec_prefix"
17902 exec_prefix="$acl_final_exec_prefix"
17903 eval x=\"$x\"
17904 exec_prefix="$acl_save_exec_prefix"
17905 prefix="$acl_save_prefix"
17906
17907 if test "X$x" = "X$element"; then
17908 haveit=yes
17909 break
17910 fi
17911 done
17912 if test -z "$haveit"; then
17913 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17914 fi
17915 done
17916
17917
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920
17921 _ACEOF
17922 if ac_fn_objcxx_try_compile "$LINENO"; then :
17923 cy_good=1
17924 else
17925 cy_good=0
17926 fi
17927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928
17929 OBJCXXFLAGS=$cy_save
17930 if test "x$cy_good" = x1; then :
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17932 $as_echo "yes" >&6; }
17933
17934 for element in -Wno-deprecated-declarations; do
17935 haveit=
17936 for x in $OBJCXXFLAGS; do
17937
17938 acl_save_prefix="$prefix"
17939 prefix="$acl_final_prefix"
17940 acl_save_exec_prefix="$exec_prefix"
17941 exec_prefix="$acl_final_exec_prefix"
17942 eval x=\"$x\"
17943 exec_prefix="$acl_save_exec_prefix"
17944 prefix="$acl_save_prefix"
17945
17946 if test "X$x" = "X$element"; then
17947 haveit=yes
17948 break
17949 fi
17950 done
17951 if test -z "$haveit"; then
17952 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17953 fi
17954 done
17955
17956
17957 else
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959 $as_echo "no" >&6; }
17960 fi
17961
17962 ac_ext=cpp
17963 ac_cpp='$CXXCPP $CPPFLAGS'
17964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17967
17968
17969
17970
17971
17972
17973 ac_ext=c
17974 ac_cpp='$CPP $CPPFLAGS'
17975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17980 $as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
17981
17982 cy_save=$CFLAGS
17983
17984 for element in -Wno-dangling-else; do
17985 haveit=
17986 for x in $CFLAGS; do
17987
17988 acl_save_prefix="$prefix"
17989 prefix="$acl_final_prefix"
17990 acl_save_exec_prefix="$exec_prefix"
17991 exec_prefix="$acl_final_exec_prefix"
17992 eval x=\"$x\"
17993 exec_prefix="$acl_save_exec_prefix"
17994 prefix="$acl_save_prefix"
17995
17996 if test "X$x" = "X$element"; then
17997 haveit=yes
17998 break
17999 fi
18000 done
18001 if test -z "$haveit"; then
18002 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18003 fi
18004 done
18005
18006
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18009
18010 _ACEOF
18011 if ac_fn_c_try_compile "$LINENO"; then :
18012 cy_good=1
18013 else
18014 cy_good=0
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017
18018 CFLAGS=$cy_save
18019 if test "x$cy_good" = x1; then :
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18021 $as_echo "yes" >&6; }
18022
18023 for element in -Wno-dangling-else; do
18024 haveit=
18025 for x in $CFLAGS; do
18026
18027 acl_save_prefix="$prefix"
18028 prefix="$acl_final_prefix"
18029 acl_save_exec_prefix="$exec_prefix"
18030 exec_prefix="$acl_final_exec_prefix"
18031 eval x=\"$x\"
18032 exec_prefix="$acl_save_exec_prefix"
18033 prefix="$acl_save_prefix"
18034
18035 if test "X$x" = "X$element"; then
18036 haveit=yes
18037 break
18038 fi
18039 done
18040 if test -z "$haveit"; then
18041 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18042 fi
18043 done
18044
18045
18046 else
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048 $as_echo "no" >&6; }
18049 fi
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
18058
18059 ac_ext=cpp
18060 ac_cpp='$CXXCPP $CPPFLAGS'
18061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18066 $as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
18067
18068 cy_save=$CXXFLAGS
18069
18070 for element in -Wno-dangling-else; do
18071 haveit=
18072 for x in $CXXFLAGS; do
18073
18074 acl_save_prefix="$prefix"
18075 prefix="$acl_final_prefix"
18076 acl_save_exec_prefix="$exec_prefix"
18077 exec_prefix="$acl_final_exec_prefix"
18078 eval x=\"$x\"
18079 exec_prefix="$acl_save_exec_prefix"
18080 prefix="$acl_save_prefix"
18081
18082 if test "X$x" = "X$element"; then
18083 haveit=yes
18084 break
18085 fi
18086 done
18087 if test -z "$haveit"; then
18088 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18089 fi
18090 done
18091
18092
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h. */
18095
18096 _ACEOF
18097 if ac_fn_cxx_try_compile "$LINENO"; then :
18098 cy_good=1
18099 else
18100 cy_good=0
18101 fi
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103
18104 CXXFLAGS=$cy_save
18105 if test "x$cy_good" = x1; then :
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18107 $as_echo "yes" >&6; }
18108
18109 for element in -Wno-dangling-else; do
18110 haveit=
18111 for x in $CXXFLAGS; do
18112
18113 acl_save_prefix="$prefix"
18114 prefix="$acl_final_prefix"
18115 acl_save_exec_prefix="$exec_prefix"
18116 exec_prefix="$acl_final_exec_prefix"
18117 eval x=\"$x\"
18118 exec_prefix="$acl_save_exec_prefix"
18119 prefix="$acl_save_prefix"
18120
18121 if test "X$x" = "X$element"; then
18122 haveit=yes
18123 break
18124 fi
18125 done
18126 if test -z "$haveit"; then
18127 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18128 fi
18129 done
18130
18131
18132 else
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18134 $as_echo "no" >&6; }
18135 fi
18136
18137 ac_ext=cpp
18138 ac_cpp='$CXXCPP $CPPFLAGS'
18139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18142
18143
18144
18145 ac_ext=mm
18146 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18147 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18148 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18149 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18150
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18152 $as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
18153
18154 cy_save=$OBJCXXFLAGS
18155
18156 for element in -Wno-dangling-else; do
18157 haveit=
18158 for x in $OBJCXXFLAGS; do
18159
18160 acl_save_prefix="$prefix"
18161 prefix="$acl_final_prefix"
18162 acl_save_exec_prefix="$exec_prefix"
18163 exec_prefix="$acl_final_exec_prefix"
18164 eval x=\"$x\"
18165 exec_prefix="$acl_save_exec_prefix"
18166 prefix="$acl_save_prefix"
18167
18168 if test "X$x" = "X$element"; then
18169 haveit=yes
18170 break
18171 fi
18172 done
18173 if test -z "$haveit"; then
18174 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18175 fi
18176 done
18177
18178
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181
18182 _ACEOF
18183 if ac_fn_objcxx_try_compile "$LINENO"; then :
18184 cy_good=1
18185 else
18186 cy_good=0
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18189
18190 OBJCXXFLAGS=$cy_save
18191 if test "x$cy_good" = x1; then :
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18193 $as_echo "yes" >&6; }
18194
18195 for element in -Wno-dangling-else; do
18196 haveit=
18197 for x in $OBJCXXFLAGS; do
18198
18199 acl_save_prefix="$prefix"
18200 prefix="$acl_final_prefix"
18201 acl_save_exec_prefix="$exec_prefix"
18202 exec_prefix="$acl_final_exec_prefix"
18203 eval x=\"$x\"
18204 exec_prefix="$acl_save_exec_prefix"
18205 prefix="$acl_save_prefix"
18206
18207 if test "X$x" = "X$element"; then
18208 haveit=yes
18209 break
18210 fi
18211 done
18212 if test -z "$haveit"; then
18213 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18214 fi
18215 done
18216
18217
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18221 fi
18222
18223 ac_ext=cpp
18224 ac_cpp='$CXXCPP $CPPFLAGS'
18225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18228
18229
18230
18231
18232
18233 ac_ext=c
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
18240 $as_echo_n "checking for cc -Wno-empty-body... " >&6; }
18241
18242 cy_save=$CFLAGS
18243
18244 for element in -Wno-empty-body; do
18245 haveit=
18246 for x in $CFLAGS; do
18247
18248 acl_save_prefix="$prefix"
18249 prefix="$acl_final_prefix"
18250 acl_save_exec_prefix="$exec_prefix"
18251 exec_prefix="$acl_final_exec_prefix"
18252 eval x=\"$x\"
18253 exec_prefix="$acl_save_exec_prefix"
18254 prefix="$acl_save_prefix"
18255
18256 if test "X$x" = "X$element"; then
18257 haveit=yes
18258 break
18259 fi
18260 done
18261 if test -z "$haveit"; then
18262 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18263 fi
18264 done
18265
18266
18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h. */
18269
18270 _ACEOF
18271 if ac_fn_c_try_compile "$LINENO"; then :
18272 cy_good=1
18273 else
18274 cy_good=0
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277
18278 CFLAGS=$cy_save
18279 if test "x$cy_good" = x1; then :
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18281 $as_echo "yes" >&6; }
18282
18283 for element in -Wno-empty-body; do
18284 haveit=
18285 for x in $CFLAGS; do
18286
18287 acl_save_prefix="$prefix"
18288 prefix="$acl_final_prefix"
18289 acl_save_exec_prefix="$exec_prefix"
18290 exec_prefix="$acl_final_exec_prefix"
18291 eval x=\"$x\"
18292 exec_prefix="$acl_save_exec_prefix"
18293 prefix="$acl_save_prefix"
18294
18295 if test "X$x" = "X$element"; then
18296 haveit=yes
18297 break
18298 fi
18299 done
18300 if test -z "$haveit"; then
18301 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18302 fi
18303 done
18304
18305
18306 else
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18309 fi
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
18318
18319 ac_ext=cpp
18320 ac_cpp='$CXXCPP $CPPFLAGS'
18321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18324
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
18326 $as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
18327
18328 cy_save=$CXXFLAGS
18329
18330 for element in -Wno-empty-body; do
18331 haveit=
18332 for x in $CXXFLAGS; do
18333
18334 acl_save_prefix="$prefix"
18335 prefix="$acl_final_prefix"
18336 acl_save_exec_prefix="$exec_prefix"
18337 exec_prefix="$acl_final_exec_prefix"
18338 eval x=\"$x\"
18339 exec_prefix="$acl_save_exec_prefix"
18340 prefix="$acl_save_prefix"
18341
18342 if test "X$x" = "X$element"; then
18343 haveit=yes
18344 break
18345 fi
18346 done
18347 if test -z "$haveit"; then
18348 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18349 fi
18350 done
18351
18352
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355
18356 _ACEOF
18357 if ac_fn_cxx_try_compile "$LINENO"; then :
18358 cy_good=1
18359 else
18360 cy_good=0
18361 fi
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18363
18364 CXXFLAGS=$cy_save
18365 if test "x$cy_good" = x1; then :
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18368
18369 for element in -Wno-empty-body; do
18370 haveit=
18371 for x in $CXXFLAGS; do
18372
18373 acl_save_prefix="$prefix"
18374 prefix="$acl_final_prefix"
18375 acl_save_exec_prefix="$exec_prefix"
18376 exec_prefix="$acl_final_exec_prefix"
18377 eval x=\"$x\"
18378 exec_prefix="$acl_save_exec_prefix"
18379 prefix="$acl_save_prefix"
18380
18381 if test "X$x" = "X$element"; then
18382 haveit=yes
18383 break
18384 fi
18385 done
18386 if test -z "$haveit"; then
18387 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18388 fi
18389 done
18390
18391
18392 else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395 fi
18396
18397 ac_ext=cpp
18398 ac_cpp='$CXXCPP $CPPFLAGS'
18399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402
18403
18404
18405 ac_ext=mm
18406 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18407 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
18412 $as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
18413
18414 cy_save=$OBJCXXFLAGS
18415
18416 for element in -Wno-empty-body; do
18417 haveit=
18418 for x in $OBJCXXFLAGS; do
18419
18420 acl_save_prefix="$prefix"
18421 prefix="$acl_final_prefix"
18422 acl_save_exec_prefix="$exec_prefix"
18423 exec_prefix="$acl_final_exec_prefix"
18424 eval x=\"$x\"
18425 exec_prefix="$acl_save_exec_prefix"
18426 prefix="$acl_save_prefix"
18427
18428 if test "X$x" = "X$element"; then
18429 haveit=yes
18430 break
18431 fi
18432 done
18433 if test -z "$haveit"; then
18434 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18435 fi
18436 done
18437
18438
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441
18442 _ACEOF
18443 if ac_fn_objcxx_try_compile "$LINENO"; then :
18444 cy_good=1
18445 else
18446 cy_good=0
18447 fi
18448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449
18450 OBJCXXFLAGS=$cy_save
18451 if test "x$cy_good" = x1; then :
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18453 $as_echo "yes" >&6; }
18454
18455 for element in -Wno-empty-body; do
18456 haveit=
18457 for x in $OBJCXXFLAGS; do
18458
18459 acl_save_prefix="$prefix"
18460 prefix="$acl_final_prefix"
18461 acl_save_exec_prefix="$exec_prefix"
18462 exec_prefix="$acl_final_exec_prefix"
18463 eval x=\"$x\"
18464 exec_prefix="$acl_save_exec_prefix"
18465 prefix="$acl_save_prefix"
18466
18467 if test "X$x" = "X$element"; then
18468 haveit=yes
18469 break
18470 fi
18471 done
18472 if test -z "$haveit"; then
18473 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18474 fi
18475 done
18476
18477
18478 else
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18480 $as_echo "no" >&6; }
18481 fi
18482
18483 ac_ext=cpp
18484 ac_cpp='$CXXCPP $CPPFLAGS'
18485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18488
18489
18490
18491
18492
18493 ac_ext=c
18494 ac_cpp='$CPP $CPPFLAGS'
18495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18498
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18500 $as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
18501
18502 cy_save=$CFLAGS
18503
18504 for element in -Wno-overloaded-virtual; do
18505 haveit=
18506 for x in $CFLAGS; do
18507
18508 acl_save_prefix="$prefix"
18509 prefix="$acl_final_prefix"
18510 acl_save_exec_prefix="$exec_prefix"
18511 exec_prefix="$acl_final_exec_prefix"
18512 eval x=\"$x\"
18513 exec_prefix="$acl_save_exec_prefix"
18514 prefix="$acl_save_prefix"
18515
18516 if test "X$x" = "X$element"; then
18517 haveit=yes
18518 break
18519 fi
18520 done
18521 if test -z "$haveit"; then
18522 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18523 fi
18524 done
18525
18526
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529
18530 _ACEOF
18531 if ac_fn_c_try_compile "$LINENO"; then :
18532 cy_good=1
18533 else
18534 cy_good=0
18535 fi
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537
18538 CFLAGS=$cy_save
18539 if test "x$cy_good" = x1; then :
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18541 $as_echo "yes" >&6; }
18542
18543 for element in -Wno-overloaded-virtual; do
18544 haveit=
18545 for x in $CFLAGS; do
18546
18547 acl_save_prefix="$prefix"
18548 prefix="$acl_final_prefix"
18549 acl_save_exec_prefix="$exec_prefix"
18550 exec_prefix="$acl_final_exec_prefix"
18551 eval x=\"$x\"
18552 exec_prefix="$acl_save_exec_prefix"
18553 prefix="$acl_save_prefix"
18554
18555 if test "X$x" = "X$element"; then
18556 haveit=yes
18557 break
18558 fi
18559 done
18560 if test -z "$haveit"; then
18561 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18562 fi
18563 done
18564
18565
18566 else
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 $as_echo "no" >&6; }
18569 fi
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
18578
18579 ac_ext=cpp
18580 ac_cpp='$CXXCPP $CPPFLAGS'
18581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18586 $as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
18587
18588 cy_save=$CXXFLAGS
18589
18590 for element in -Wno-overloaded-virtual; do
18591 haveit=
18592 for x in $CXXFLAGS; do
18593
18594 acl_save_prefix="$prefix"
18595 prefix="$acl_final_prefix"
18596 acl_save_exec_prefix="$exec_prefix"
18597 exec_prefix="$acl_final_exec_prefix"
18598 eval x=\"$x\"
18599 exec_prefix="$acl_save_exec_prefix"
18600 prefix="$acl_save_prefix"
18601
18602 if test "X$x" = "X$element"; then
18603 haveit=yes
18604 break
18605 fi
18606 done
18607 if test -z "$haveit"; then
18608 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18609 fi
18610 done
18611
18612
18613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18614 /* end confdefs.h. */
18615
18616 _ACEOF
18617 if ac_fn_cxx_try_compile "$LINENO"; then :
18618 cy_good=1
18619 else
18620 cy_good=0
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623
18624 CXXFLAGS=$cy_save
18625 if test "x$cy_good" = x1; then :
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18627 $as_echo "yes" >&6; }
18628
18629 for element in -Wno-overloaded-virtual; do
18630 haveit=
18631 for x in $CXXFLAGS; do
18632
18633 acl_save_prefix="$prefix"
18634 prefix="$acl_final_prefix"
18635 acl_save_exec_prefix="$exec_prefix"
18636 exec_prefix="$acl_final_exec_prefix"
18637 eval x=\"$x\"
18638 exec_prefix="$acl_save_exec_prefix"
18639 prefix="$acl_save_prefix"
18640
18641 if test "X$x" = "X$element"; then
18642 haveit=yes
18643 break
18644 fi
18645 done
18646 if test -z "$haveit"; then
18647 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18648 fi
18649 done
18650
18651
18652 else
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18654 $as_echo "no" >&6; }
18655 fi
18656
18657 ac_ext=cpp
18658 ac_cpp='$CXXCPP $CPPFLAGS'
18659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18662
18663
18664
18665 ac_ext=mm
18666 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18667 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18668 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18669 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18670
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18672 $as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
18673
18674 cy_save=$OBJCXXFLAGS
18675
18676 for element in -Wno-overloaded-virtual; do
18677 haveit=
18678 for x in $OBJCXXFLAGS; do
18679
18680 acl_save_prefix="$prefix"
18681 prefix="$acl_final_prefix"
18682 acl_save_exec_prefix="$exec_prefix"
18683 exec_prefix="$acl_final_exec_prefix"
18684 eval x=\"$x\"
18685 exec_prefix="$acl_save_exec_prefix"
18686 prefix="$acl_save_prefix"
18687
18688 if test "X$x" = "X$element"; then
18689 haveit=yes
18690 break
18691 fi
18692 done
18693 if test -z "$haveit"; then
18694 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18695 fi
18696 done
18697
18698
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701
18702 _ACEOF
18703 if ac_fn_objcxx_try_compile "$LINENO"; then :
18704 cy_good=1
18705 else
18706 cy_good=0
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709
18710 OBJCXXFLAGS=$cy_save
18711 if test "x$cy_good" = x1; then :
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714
18715 for element in -Wno-overloaded-virtual; do
18716 haveit=
18717 for x in $OBJCXXFLAGS; do
18718
18719 acl_save_prefix="$prefix"
18720 prefix="$acl_final_prefix"
18721 acl_save_exec_prefix="$exec_prefix"
18722 exec_prefix="$acl_final_exec_prefix"
18723 eval x=\"$x\"
18724 exec_prefix="$acl_save_exec_prefix"
18725 prefix="$acl_save_prefix"
18726
18727 if test "X$x" = "X$element"; then
18728 haveit=yes
18729 break
18730 fi
18731 done
18732 if test -z "$haveit"; then
18733 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18734 fi
18735 done
18736
18737
18738 else
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18741 fi
18742
18743 ac_ext=cpp
18744 ac_cpp='$CXXCPP $CPPFLAGS'
18745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18748
18749
18750
18751
18752
18753 ac_ext=c
18754 ac_cpp='$CPP $CPPFLAGS'
18755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18758
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18760 $as_echo_n "checking for cc -Wno-parentheses... " >&6; }
18761
18762 cy_save=$CFLAGS
18763
18764 for element in -Wno-parentheses; do
18765 haveit=
18766 for x in $CFLAGS; do
18767
18768 acl_save_prefix="$prefix"
18769 prefix="$acl_final_prefix"
18770 acl_save_exec_prefix="$exec_prefix"
18771 exec_prefix="$acl_final_exec_prefix"
18772 eval x=\"$x\"
18773 exec_prefix="$acl_save_exec_prefix"
18774 prefix="$acl_save_prefix"
18775
18776 if test "X$x" = "X$element"; then
18777 haveit=yes
18778 break
18779 fi
18780 done
18781 if test -z "$haveit"; then
18782 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18783 fi
18784 done
18785
18786
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789
18790 _ACEOF
18791 if ac_fn_c_try_compile "$LINENO"; then :
18792 cy_good=1
18793 else
18794 cy_good=0
18795 fi
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797
18798 CFLAGS=$cy_save
18799 if test "x$cy_good" = x1; then :
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18801 $as_echo "yes" >&6; }
18802
18803 for element in -Wno-parentheses; do
18804 haveit=
18805 for x in $CFLAGS; do
18806
18807 acl_save_prefix="$prefix"
18808 prefix="$acl_final_prefix"
18809 acl_save_exec_prefix="$exec_prefix"
18810 exec_prefix="$acl_final_exec_prefix"
18811 eval x=\"$x\"
18812 exec_prefix="$acl_save_exec_prefix"
18813 prefix="$acl_save_prefix"
18814
18815 if test "X$x" = "X$element"; then
18816 haveit=yes
18817 break
18818 fi
18819 done
18820 if test -z "$haveit"; then
18821 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18822 fi
18823 done
18824
18825
18826 else
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18828 $as_echo "no" >&6; }
18829 fi
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
18838
18839 ac_ext=cpp
18840 ac_cpp='$CXXCPP $CPPFLAGS'
18841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18844
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18846 $as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
18847
18848 cy_save=$CXXFLAGS
18849
18850 for element in -Wno-parentheses; do
18851 haveit=
18852 for x in $CXXFLAGS; do
18853
18854 acl_save_prefix="$prefix"
18855 prefix="$acl_final_prefix"
18856 acl_save_exec_prefix="$exec_prefix"
18857 exec_prefix="$acl_final_exec_prefix"
18858 eval x=\"$x\"
18859 exec_prefix="$acl_save_exec_prefix"
18860 prefix="$acl_save_prefix"
18861
18862 if test "X$x" = "X$element"; then
18863 haveit=yes
18864 break
18865 fi
18866 done
18867 if test -z "$haveit"; then
18868 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18869 fi
18870 done
18871
18872
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18875
18876 _ACEOF
18877 if ac_fn_cxx_try_compile "$LINENO"; then :
18878 cy_good=1
18879 else
18880 cy_good=0
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883
18884 CXXFLAGS=$cy_save
18885 if test "x$cy_good" = x1; then :
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18887 $as_echo "yes" >&6; }
18888
18889 for element in -Wno-parentheses; do
18890 haveit=
18891 for x in $CXXFLAGS; do
18892
18893 acl_save_prefix="$prefix"
18894 prefix="$acl_final_prefix"
18895 acl_save_exec_prefix="$exec_prefix"
18896 exec_prefix="$acl_final_exec_prefix"
18897 eval x=\"$x\"
18898 exec_prefix="$acl_save_exec_prefix"
18899 prefix="$acl_save_prefix"
18900
18901 if test "X$x" = "X$element"; then
18902 haveit=yes
18903 break
18904 fi
18905 done
18906 if test -z "$haveit"; then
18907 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18908 fi
18909 done
18910
18911
18912 else
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18914 $as_echo "no" >&6; }
18915 fi
18916
18917 ac_ext=cpp
18918 ac_cpp='$CXXCPP $CPPFLAGS'
18919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922
18923
18924
18925 ac_ext=mm
18926 ac_cpp='$OBJCXXCPP $CPPFLAGS'
18927 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18930
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18932 $as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
18933
18934 cy_save=$OBJCXXFLAGS
18935
18936 for element in -Wno-parentheses; do
18937 haveit=
18938 for x in $OBJCXXFLAGS; do
18939
18940 acl_save_prefix="$prefix"
18941 prefix="$acl_final_prefix"
18942 acl_save_exec_prefix="$exec_prefix"
18943 exec_prefix="$acl_final_exec_prefix"
18944 eval x=\"$x\"
18945 exec_prefix="$acl_save_exec_prefix"
18946 prefix="$acl_save_prefix"
18947
18948 if test "X$x" = "X$element"; then
18949 haveit=yes
18950 break
18951 fi
18952 done
18953 if test -z "$haveit"; then
18954 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18955 fi
18956 done
18957
18958
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961
18962 _ACEOF
18963 if ac_fn_objcxx_try_compile "$LINENO"; then :
18964 cy_good=1
18965 else
18966 cy_good=0
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969
18970 OBJCXXFLAGS=$cy_save
18971 if test "x$cy_good" = x1; then :
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18973 $as_echo "yes" >&6; }
18974
18975 for element in -Wno-parentheses; do
18976 haveit=
18977 for x in $OBJCXXFLAGS; do
18978
18979 acl_save_prefix="$prefix"
18980 prefix="$acl_final_prefix"
18981 acl_save_exec_prefix="$exec_prefix"
18982 exec_prefix="$acl_final_exec_prefix"
18983 eval x=\"$x\"
18984 exec_prefix="$acl_save_exec_prefix"
18985 prefix="$acl_save_prefix"
18986
18987 if test "X$x" = "X$element"; then
18988 haveit=yes
18989 break
18990 fi
18991 done
18992 if test -z "$haveit"; then
18993 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18994 fi
18995 done
18996
18997
18998 else
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000 $as_echo "no" >&6; }
19001 fi
19002
19003 ac_ext=cpp
19004 ac_cpp='$CXXCPP $CPPFLAGS'
19005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19008
19009
19010
19011
19012
19013 ac_ext=c
19014 ac_cpp='$CPP $CPPFLAGS'
19015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
19020 $as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
19021
19022 cy_save=$CFLAGS
19023
19024 for element in -Wno-tautological-undefined-compare; do
19025 haveit=
19026 for x in $CFLAGS; do
19027
19028 acl_save_prefix="$prefix"
19029 prefix="$acl_final_prefix"
19030 acl_save_exec_prefix="$exec_prefix"
19031 exec_prefix="$acl_final_exec_prefix"
19032 eval x=\"$x\"
19033 exec_prefix="$acl_save_exec_prefix"
19034 prefix="$acl_save_prefix"
19035
19036 if test "X$x" = "X$element"; then
19037 haveit=yes
19038 break
19039 fi
19040 done
19041 if test -z "$haveit"; then
19042 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19043 fi
19044 done
19045
19046
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19049
19050 _ACEOF
19051 if ac_fn_c_try_compile "$LINENO"; then :
19052 cy_good=1
19053 else
19054 cy_good=0
19055 fi
19056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057
19058 CFLAGS=$cy_save
19059 if test "x$cy_good" = x1; then :
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19061 $as_echo "yes" >&6; }
19062
19063 for element in -Wno-tautological-undefined-compare; do
19064 haveit=
19065 for x in $CFLAGS; do
19066
19067 acl_save_prefix="$prefix"
19068 prefix="$acl_final_prefix"
19069 acl_save_exec_prefix="$exec_prefix"
19070 exec_prefix="$acl_final_exec_prefix"
19071 eval x=\"$x\"
19072 exec_prefix="$acl_save_exec_prefix"
19073 prefix="$acl_save_prefix"
19074
19075 if test "X$x" = "X$element"; then
19076 haveit=yes
19077 break
19078 fi
19079 done
19080 if test -z "$haveit"; then
19081 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19082 fi
19083 done
19084
19085
19086 else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19088 $as_echo "no" >&6; }
19089 fi
19090
19091 ac_ext=cpp
19092 ac_cpp='$CXXCPP $CPPFLAGS'
19093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19096
19097
19098
19099 ac_ext=cpp
19100 ac_cpp='$CXXCPP $CPPFLAGS'
19101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19104
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
19106 $as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
19107
19108 cy_save=$CXXFLAGS
19109
19110 for element in -Wno-tautological-undefined-compare; do
19111 haveit=
19112 for x in $CXXFLAGS; do
19113
19114 acl_save_prefix="$prefix"
19115 prefix="$acl_final_prefix"
19116 acl_save_exec_prefix="$exec_prefix"
19117 exec_prefix="$acl_final_exec_prefix"
19118 eval x=\"$x\"
19119 exec_prefix="$acl_save_exec_prefix"
19120 prefix="$acl_save_prefix"
19121
19122 if test "X$x" = "X$element"; then
19123 haveit=yes
19124 break
19125 fi
19126 done
19127 if test -z "$haveit"; then
19128 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19129 fi
19130 done
19131
19132
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135
19136 _ACEOF
19137 if ac_fn_cxx_try_compile "$LINENO"; then :
19138 cy_good=1
19139 else
19140 cy_good=0
19141 fi
19142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19143
19144 CXXFLAGS=$cy_save
19145 if test "x$cy_good" = x1; then :
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19147 $as_echo "yes" >&6; }
19148
19149 for element in -Wno-tautological-undefined-compare; do
19150 haveit=
19151 for x in $CXXFLAGS; do
19152
19153 acl_save_prefix="$prefix"
19154 prefix="$acl_final_prefix"
19155 acl_save_exec_prefix="$exec_prefix"
19156 exec_prefix="$acl_final_exec_prefix"
19157 eval x=\"$x\"
19158 exec_prefix="$acl_save_exec_prefix"
19159 prefix="$acl_save_prefix"
19160
19161 if test "X$x" = "X$element"; then
19162 haveit=yes
19163 break
19164 fi
19165 done
19166 if test -z "$haveit"; then
19167 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19168 fi
19169 done
19170
19171
19172 else
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174 $as_echo "no" >&6; }
19175 fi
19176
19177 ac_ext=cpp
19178 ac_cpp='$CXXCPP $CPPFLAGS'
19179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19182
19183
19184
19185 ac_ext=mm
19186 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19187 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19190
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
19192 $as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
19193
19194 cy_save=$OBJCXXFLAGS
19195
19196 for element in -Wno-tautological-undefined-compare; do
19197 haveit=
19198 for x in $OBJCXXFLAGS; do
19199
19200 acl_save_prefix="$prefix"
19201 prefix="$acl_final_prefix"
19202 acl_save_exec_prefix="$exec_prefix"
19203 exec_prefix="$acl_final_exec_prefix"
19204 eval x=\"$x\"
19205 exec_prefix="$acl_save_exec_prefix"
19206 prefix="$acl_save_prefix"
19207
19208 if test "X$x" = "X$element"; then
19209 haveit=yes
19210 break
19211 fi
19212 done
19213 if test -z "$haveit"; then
19214 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19215 fi
19216 done
19217
19218
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19221
19222 _ACEOF
19223 if ac_fn_objcxx_try_compile "$LINENO"; then :
19224 cy_good=1
19225 else
19226 cy_good=0
19227 fi
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19229
19230 OBJCXXFLAGS=$cy_save
19231 if test "x$cy_good" = x1; then :
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19234
19235 for element in -Wno-tautological-undefined-compare; do
19236 haveit=
19237 for x in $OBJCXXFLAGS; do
19238
19239 acl_save_prefix="$prefix"
19240 prefix="$acl_final_prefix"
19241 acl_save_exec_prefix="$exec_prefix"
19242 exec_prefix="$acl_final_exec_prefix"
19243 eval x=\"$x\"
19244 exec_prefix="$acl_save_exec_prefix"
19245 prefix="$acl_save_prefix"
19246
19247 if test "X$x" = "X$element"; then
19248 haveit=yes
19249 break
19250 fi
19251 done
19252 if test -z "$haveit"; then
19253 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19254 fi
19255 done
19256
19257
19258 else
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19261 fi
19262
19263 ac_ext=cpp
19264 ac_cpp='$CXXCPP $CPPFLAGS'
19265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268
19269
19270
19271
19272
19273 ac_ext=c
19274 ac_cpp='$CPP $CPPFLAGS'
19275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
19280 $as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
19281
19282 cy_save=$CFLAGS
19283
19284 for element in -Wno-unneeded-internal-declaration; do
19285 haveit=
19286 for x in $CFLAGS; do
19287
19288 acl_save_prefix="$prefix"
19289 prefix="$acl_final_prefix"
19290 acl_save_exec_prefix="$exec_prefix"
19291 exec_prefix="$acl_final_exec_prefix"
19292 eval x=\"$x\"
19293 exec_prefix="$acl_save_exec_prefix"
19294 prefix="$acl_save_prefix"
19295
19296 if test "X$x" = "X$element"; then
19297 haveit=yes
19298 break
19299 fi
19300 done
19301 if test -z "$haveit"; then
19302 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19303 fi
19304 done
19305
19306
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19309
19310 _ACEOF
19311 if ac_fn_c_try_compile "$LINENO"; then :
19312 cy_good=1
19313 else
19314 cy_good=0
19315 fi
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317
19318 CFLAGS=$cy_save
19319 if test "x$cy_good" = x1; then :
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19321 $as_echo "yes" >&6; }
19322
19323 for element in -Wno-unneeded-internal-declaration; do
19324 haveit=
19325 for x in $CFLAGS; do
19326
19327 acl_save_prefix="$prefix"
19328 prefix="$acl_final_prefix"
19329 acl_save_exec_prefix="$exec_prefix"
19330 exec_prefix="$acl_final_exec_prefix"
19331 eval x=\"$x\"
19332 exec_prefix="$acl_save_exec_prefix"
19333 prefix="$acl_save_prefix"
19334
19335 if test "X$x" = "X$element"; then
19336 haveit=yes
19337 break
19338 fi
19339 done
19340 if test -z "$haveit"; then
19341 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19342 fi
19343 done
19344
19345
19346 else
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19348 $as_echo "no" >&6; }
19349 fi
19350
19351 ac_ext=cpp
19352 ac_cpp='$CXXCPP $CPPFLAGS'
19353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19356
19357
19358
19359 ac_ext=cpp
19360 ac_cpp='$CXXCPP $CPPFLAGS'
19361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19364
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
19366 $as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
19367
19368 cy_save=$CXXFLAGS
19369
19370 for element in -Wno-unneeded-internal-declaration; do
19371 haveit=
19372 for x in $CXXFLAGS; do
19373
19374 acl_save_prefix="$prefix"
19375 prefix="$acl_final_prefix"
19376 acl_save_exec_prefix="$exec_prefix"
19377 exec_prefix="$acl_final_exec_prefix"
19378 eval x=\"$x\"
19379 exec_prefix="$acl_save_exec_prefix"
19380 prefix="$acl_save_prefix"
19381
19382 if test "X$x" = "X$element"; then
19383 haveit=yes
19384 break
19385 fi
19386 done
19387 if test -z "$haveit"; then
19388 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19389 fi
19390 done
19391
19392
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395
19396 _ACEOF
19397 if ac_fn_cxx_try_compile "$LINENO"; then :
19398 cy_good=1
19399 else
19400 cy_good=0
19401 fi
19402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403
19404 CXXFLAGS=$cy_save
19405 if test "x$cy_good" = x1; then :
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19407 $as_echo "yes" >&6; }
19408
19409 for element in -Wno-unneeded-internal-declaration; do
19410 haveit=
19411 for x in $CXXFLAGS; do
19412
19413 acl_save_prefix="$prefix"
19414 prefix="$acl_final_prefix"
19415 acl_save_exec_prefix="$exec_prefix"
19416 exec_prefix="$acl_final_exec_prefix"
19417 eval x=\"$x\"
19418 exec_prefix="$acl_save_exec_prefix"
19419 prefix="$acl_save_prefix"
19420
19421 if test "X$x" = "X$element"; then
19422 haveit=yes
19423 break
19424 fi
19425 done
19426 if test -z "$haveit"; then
19427 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19428 fi
19429 done
19430
19431
19432 else
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19434 $as_echo "no" >&6; }
19435 fi
19436
19437 ac_ext=cpp
19438 ac_cpp='$CXXCPP $CPPFLAGS'
19439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19442
19443
19444
19445 ac_ext=mm
19446 ac_cpp='$OBJCXXCPP $CPPFLAGS'
19447 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
19452 $as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
19453
19454 cy_save=$OBJCXXFLAGS
19455
19456 for element in -Wno-unneeded-internal-declaration; do
19457 haveit=
19458 for x in $OBJCXXFLAGS; do
19459
19460 acl_save_prefix="$prefix"
19461 prefix="$acl_final_prefix"
19462 acl_save_exec_prefix="$exec_prefix"
19463 exec_prefix="$acl_final_exec_prefix"
19464 eval x=\"$x\"
19465 exec_prefix="$acl_save_exec_prefix"
19466 prefix="$acl_save_prefix"
19467
19468 if test "X$x" = "X$element"; then
19469 haveit=yes
19470 break
19471 fi
19472 done
19473 if test -z "$haveit"; then
19474 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19475 fi
19476 done
19477
19478
19479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19480 /* end confdefs.h. */
19481
19482 _ACEOF
19483 if ac_fn_objcxx_try_compile "$LINENO"; then :
19484 cy_good=1
19485 else
19486 cy_good=0
19487 fi
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489
19490 OBJCXXFLAGS=$cy_save
19491 if test "x$cy_good" = x1; then :
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19493 $as_echo "yes" >&6; }
19494
19495 for element in -Wno-unneeded-internal-declaration; do
19496 haveit=
19497 for x in $OBJCXXFLAGS; do
19498
19499 acl_save_prefix="$prefix"
19500 prefix="$acl_final_prefix"
19501 acl_save_exec_prefix="$exec_prefix"
19502 exec_prefix="$acl_final_exec_prefix"
19503 eval x=\"$x\"
19504 exec_prefix="$acl_save_exec_prefix"
19505 prefix="$acl_save_prefix"
19506
19507 if test "X$x" = "X$element"; then
19508 haveit=yes
19509 break
19510 fi
19511 done
19512 if test -z "$haveit"; then
19513 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19514 fi
19515 done
19516
19517
19518 else
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19520 $as_echo "no" >&6; }
19521 fi
19522
19523 ac_ext=cpp
19524 ac_cpp='$CXXCPP $CPPFLAGS'
19525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19528
19529
19530
19531
19532
19533
19534
19535 ac_ext=c
19536 ac_cpp='$CPP $CPPFLAGS'
19537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540
19541 ax_pthread_ok=no
19542
19543 # We used to check for pthread.h first, but this fails if pthread.h
19544 # requires special compiler flags (e.g. on Tru64 or Sequent).
19545 # It gets checked for in the link test anyway.
19546
19547 # First of all, check if the user has set any of the PTHREAD_LIBS,
19548 # etcetera environment variables, and if threads linking works using
19549 # them:
19550 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19551 save_CFLAGS="$CFLAGS"
19552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19553 save_LIBS="$LIBS"
19554 LIBS="$PTHREAD_LIBS $LIBS"
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19556 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19559
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563 #ifdef __cplusplus
19564 extern "C"
19565 #endif
19566 char pthread_join ();
19567 int
19568 main ()
19569 {
19570 return pthread_join ();
19571 ;
19572 return 0;
19573 }
19574 _ACEOF
19575 if ac_fn_c_try_link "$LINENO"; then :
19576 ax_pthread_ok=yes
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19581 $as_echo "$ax_pthread_ok" >&6; }
19582 if test x"$ax_pthread_ok" = xno; then
19583 PTHREAD_LIBS=""
19584 PTHREAD_CFLAGS=""
19585 fi
19586 LIBS="$save_LIBS"
19587 CFLAGS="$save_CFLAGS"
19588 fi
19589
19590 # We must check for the threads library under a number of different
19591 # names; the ordering is very important because some systems
19592 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19593 # libraries is broken (non-POSIX).
19594
19595 # Create a list of thread flags to try. Items starting with a "-" are
19596 # C compiler flags, and other items are library names, except for "none"
19597 # which indicates that we try without any flags at all, and "pthread-config"
19598 # which is a program returning the flags for the Pth emulation library.
19599
19600 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
19601
19602 # The ordering *is* (sometimes) important. Some notes on the
19603 # individual items follow:
19604
19605 # pthreads: AIX (must check this before -lpthread)
19606 # none: in case threads are in libc; should be tried before -Kthread and
19607 # other compiler flags to prevent continual compiler warnings
19608 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19609 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19610 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19611 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19612 # -pthreads: Solaris/gcc
19613 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19614 # doesn't hurt to check since this sometimes defines pthreads and
19615 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19616 # is present but should not be used directly)
19617 # -mthreads: Mingw32/gcc, Lynx/gcc
19618 # pthread: Linux, etcetera
19619 # --thread-safe: KAI C++
19620 # pthread-config: use pthread-config program (for GNU Pth library)
19621
19622 case $host_os in
19623
19624 hpux*)
19625
19626 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19627 # multi-threading and also sets -lpthread."
19628
19629 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19630 ;;
19631
19632 openedition*)
19633
19634 # IBM z/OS requires a feature-test macro to be defined in order to
19635 # enable POSIX threads at all, so give the user a hint if this is
19636 # not set. (We don't define these ourselves, as they can affect
19637 # other portions of the system API in unpredictable ways.)
19638
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19641
19642 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19643 AX_PTHREAD_ZOS_MISSING
19644 # endif
19645
19646 _ACEOF
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19650 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19651 fi
19652 rm -f conftest*
19653
19654 ;;
19655
19656 solaris*)
19657
19658 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19659 # check that first. On some older versions, libc contains stubbed
19660 # (non-functional) versions of the pthreads routines, so link-based
19661 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19662 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19663 # a function called by this macro, so we could check for that, but
19664 # who knows whether they'll stub that too in a future libc.) So
19665 # we'll look for -pthreads and -lpthread shortly thereafter.
19666
19667 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
19668 ;;
19669 esac
19670
19671 # Older versions of Clang only give a warning instead of an error for an
19672 # unrecognized option, unless we specify -Werror. (We throw in some extra
19673 # Clang warning flags for good measure.)
19674
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19676 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19677 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19678 $as_echo_n "(cached) " >&6
19679 else
19680 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19681 save_CFLAGS="$CFLAGS"
19682 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19683 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 int foo(void);
19687 int
19688 main ()
19689 {
19690 foo()
19691 ;
19692 return 0;
19693 }
19694 _ACEOF
19695 if ac_fn_c_try_compile "$LINENO"; then :
19696 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
19697 else
19698 ax_cv_PTHREAD_REJECT_UNKNOWN=no
19699 fi
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19701 CFLAGS="$save_CFLAGS"
19702
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19705 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19706 ax_pthread_extra_flags=
19707 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19708 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19709 fi
19710
19711 if test x"$ax_pthread_ok" = xno; then
19712 for flag in $ax_pthread_flags; do
19713
19714 case $flag in
19715 none)
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19717 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19718 ;;
19719
19720 -mt,pthread)
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19722 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19723 PTHREAD_CFLAGS="-mt"
19724 PTHREAD_LIBS="-lpthread"
19725 ;;
19726
19727 -*)
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19729 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
19730 PTHREAD_CFLAGS="$flag"
19731 ;;
19732
19733 pthread-config)
19734 # Extract the first word of "pthread-config", so it can be a program name with args.
19735 set dummy pthread-config; ac_word=$2
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19737 $as_echo_n "checking for $ac_word... " >&6; }
19738 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19739 $as_echo_n "(cached) " >&6
19740 else
19741 if test -n "$ax_pthread_config"; then
19742 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19743 else
19744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19745 for as_dir in $PATH
19746 do
19747 IFS=$as_save_IFS
19748 test -z "$as_dir" && as_dir=.
19749 for ac_exec_ext in '' $ac_executable_extensions; do
19750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19751 ac_cv_prog_ax_pthread_config="yes"
19752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19753 break 2
19754 fi
19755 done
19756 done
19757 IFS=$as_save_IFS
19758
19759 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19760 fi
19761 fi
19762 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19763 if test -n "$ax_pthread_config"; then
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19765 $as_echo "$ax_pthread_config" >&6; }
19766 else
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19768 $as_echo "no" >&6; }
19769 fi
19770
19771
19772 if test x"$ax_pthread_config" = xno; then continue; fi
19773 PTHREAD_CFLAGS="`pthread-config --cflags`"
19774 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19775 ;;
19776
19777 *)
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19779 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19780 PTHREAD_LIBS="-l$flag"
19781 ;;
19782 esac
19783
19784 save_LIBS="$LIBS"
19785 save_CFLAGS="$CFLAGS"
19786 LIBS="$PTHREAD_LIBS $LIBS"
19787 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19788
19789 # Check for various functions. We must include pthread.h,
19790 # since some functions may be macros. (On the Sequent, we
19791 # need a special flag -Kthread to make this header compile.)
19792 # We check for pthread_join because it is in -lpthread on IRIX
19793 # while pthread_create is in libc. We check for pthread_attr_init
19794 # due to DEC craziness with -lpthreads. We check for
19795 # pthread_cleanup_push because it is one of the few pthread
19796 # functions on Solaris that doesn't have a non-functional libc stub.
19797 # We try pthread_create on general principles.
19798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h. */
19800 #include <pthread.h>
19801 static void routine(void *a) { a = 0; }
19802 static void *start_routine(void *a) { return a; }
19803 int
19804 main ()
19805 {
19806 pthread_t th; pthread_attr_t attr;
19807 pthread_create(&th, 0, start_routine, 0);
19808 pthread_join(th, 0);
19809 pthread_attr_init(&attr);
19810 pthread_cleanup_push(routine, 0);
19811 pthread_cleanup_pop(0) /* ; */
19812 ;
19813 return 0;
19814 }
19815 _ACEOF
19816 if ac_fn_c_try_link "$LINENO"; then :
19817 ax_pthread_ok=yes
19818 fi
19819 rm -f core conftest.err conftest.$ac_objext \
19820 conftest$ac_exeext conftest.$ac_ext
19821
19822 LIBS="$save_LIBS"
19823 CFLAGS="$save_CFLAGS"
19824
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19826 $as_echo "$ax_pthread_ok" >&6; }
19827 if test "x$ax_pthread_ok" = xyes; then
19828 break;
19829 fi
19830
19831 PTHREAD_LIBS=""
19832 PTHREAD_CFLAGS=""
19833 done
19834 fi
19835
19836 # Various other checks:
19837 if test "x$ax_pthread_ok" = xyes; then
19838 save_LIBS="$LIBS"
19839 LIBS="$PTHREAD_LIBS $LIBS"
19840 save_CFLAGS="$CFLAGS"
19841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19842
19843 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19845 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19846 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19847 $as_echo_n "(cached) " >&6
19848 else
19849 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19850 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h. */
19853 #include <pthread.h>
19854 int
19855 main ()
19856 {
19857 int attr = $attr; return attr /* ; */
19858 ;
19859 return 0;
19860 }
19861 _ACEOF
19862 if ac_fn_c_try_link "$LINENO"; then :
19863 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
19864 fi
19865 rm -f core conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
19867 done
19868
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19871 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19872 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19873 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
19874
19875 cat >>confdefs.h <<_ACEOF
19876 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19877 _ACEOF
19878
19879 fi
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19882 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19883 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19884 $as_echo_n "(cached) " >&6
19885 else
19886 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19887 ax_pthread_special_flags_added=no
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889 /* end confdefs.h. */
19890
19891 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19892 AX_PTHREAD_NEED_SPECIAL_FLAG
19893 # endif
19894
19895 _ACEOF
19896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19897 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19898 case $host_os in
19899 aix* | freebsd*)
19900 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19901 ;;
19902 darwin* | hpux* | osf* | solaris*)
19903 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19904 ;;
19905 esac
19906
19907 fi
19908 rm -f conftest*
19909
19910
19911 fi
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19913 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19914 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19915 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19916 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19917 ax_pthread_special_flags_added=yes
19918 fi
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19921 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19922 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19923 $as_echo_n "(cached) " >&6
19924 else
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926 /* end confdefs.h. */
19927 #include <pthread.h>
19928 int
19929 main ()
19930 {
19931 int i = PTHREAD_PRIO_INHERIT;
19932 ;
19933 return 0;
19934 }
19935 _ACEOF
19936 if ac_fn_c_try_link "$LINENO"; then :
19937 ax_cv_PTHREAD_PRIO_INHERIT=yes
19938 else
19939 ax_cv_PTHREAD_PRIO_INHERIT=no
19940 fi
19941 rm -f core conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
19943
19944 fi
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19946 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19947 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19948
19949 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19950
19951 fi
19952
19953 LIBS="$save_LIBS"
19954 CFLAGS="$save_CFLAGS"
19955
19956 # More AIX lossage: compile with *_r variant
19957 if test "x$GCC" != xyes; then
19958 case $host_os in
19959 aix*)
19960 case "x/$CC" in #(
19961 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19962 #handle absolute path differently from PATH based program lookup
19963 case "x$CC" in #(
19964 x/*) :
19965 if as_fn_executable_p ${CC}_r; then :
19966 PTHREAD_CC="${CC}_r"
19967 fi ;; #(
19968 *) :
19969 for ac_prog in ${CC}_r
19970 do
19971 # Extract the first word of "$ac_prog", so it can be a program name with args.
19972 set dummy $ac_prog; ac_word=$2
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974 $as_echo_n "checking for $ac_word... " >&6; }
19975 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19976 $as_echo_n "(cached) " >&6
19977 else
19978 if test -n "$PTHREAD_CC"; then
19979 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19980 else
19981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19982 for as_dir in $PATH
19983 do
19984 IFS=$as_save_IFS
19985 test -z "$as_dir" && as_dir=.
19986 for ac_exec_ext in '' $ac_executable_extensions; do
19987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19988 ac_cv_prog_PTHREAD_CC="$ac_prog"
19989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19990 break 2
19991 fi
19992 done
19993 done
19994 IFS=$as_save_IFS
19995
19996 fi
19997 fi
19998 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19999 if test -n "$PTHREAD_CC"; then
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20001 $as_echo "$PTHREAD_CC" >&6; }
20002 else
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 $as_echo "no" >&6; }
20005 fi
20006
20007
20008 test -n "$PTHREAD_CC" && break
20009 done
20010 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20011 ;;
20012 esac ;; #(
20013 *) :
20014 ;;
20015 esac
20016 ;;
20017 esac
20018 fi
20019 fi
20020
20021 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20022
20023
20024
20025
20026
20027 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20028 if test x"$ax_pthread_ok" = xyes; then
20029
20030 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20031
20032 :
20033 else
20034 ax_pthread_ok=no
20035
20036 fi
20037 ac_ext=cpp
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051 # Check whether --enable-javascript was given.
20052 if test "${enable_javascript+set}" = set; then :
20053 enableval=$enable_javascript;
20054 case $enableval in #(
20055 yes) :
20056
20057
20058
20059
20060 cy_save=$LIBS
20061 LIBS=
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20063 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20064 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20065 $as_echo_n "(cached) " >&6
20066 else
20067 ac_func_search_save_LIBS=$LIBS
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20070
20071 /* Override any GCC internal prototype to avoid an error.
20072 Use char because int might match the return type of a GCC
20073 builtin and then its argument prototype would still apply. */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 char JSEvaluateScript ();
20078 int
20079 main ()
20080 {
20081 return JSEvaluateScript ();
20082 ;
20083 return 0;
20084 }
20085 _ACEOF
20086 for ac_lib in '' JavaScriptCore; do
20087 if test -z "$ac_lib"; then
20088 ac_res="none required"
20089 else
20090 ac_res=-l$ac_lib
20091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20092 fi
20093 if ac_fn_cxx_try_link "$LINENO"; then :
20094 ac_cv_search_JSEvaluateScript=$ac_res
20095 fi
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext
20098 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20099 break
20100 fi
20101 done
20102 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20103
20104 else
20105 ac_cv_search_JSEvaluateScript=no
20106 fi
20107 rm conftest.$ac_ext
20108 LIBS=$ac_func_search_save_LIBS
20109 fi
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20111 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20112 ac_res=$ac_cv_search_JSEvaluateScript
20113 if test "$ac_res" != no; then :
20114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20115
20116 CY_EXECUTE=1
20117
20118
20119 else
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20122 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20123 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126
20127 ac_check_framework_save_LIBS=$LIBS
20128 LIBS="-framework JavaScriptCore $LIBS"
20129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20130 /* end confdefs.h. */
20131
20132 #include <JavaScriptCore/JSBase.h>
20133
20134 int
20135 main ()
20136 {
20137
20138 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20139
20140 ;
20141 return 0;
20142 }
20143 _ACEOF
20144 if ac_fn_cxx_try_link "$LINENO"; then :
20145
20146 ac_cv_framework_JavaScriptCore=yes
20147
20148 else
20149 ac_cv_framework_JavaScriptCore=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_framework_save_LIBS
20154
20155 fi
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20157 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20158 if test $ac_cv_framework_JavaScriptCore = yes; then :
20159
20160
20161 for element in "-framework JavaScriptCore"; do
20162 haveit=
20163 for x in $LIBS; do
20164
20165 acl_save_prefix="$prefix"
20166 prefix="$acl_final_prefix"
20167 acl_save_exec_prefix="$exec_prefix"
20168 exec_prefix="$acl_final_exec_prefix"
20169 eval x=\"$x\"
20170 exec_prefix="$acl_save_exec_prefix"
20171 prefix="$acl_save_prefix"
20172
20173 if test "X$x" = "X$element"; then
20174 haveit=yes
20175 break
20176 fi
20177 done
20178 if test -z "$haveit"; then
20179 LIBS="${LIBS}${LIBS:+ }$element"
20180 fi
20181 done
20182
20183
20184 CY_EXECUTE=1
20185
20186
20187
20188 else
20189
20190 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20191
20192 pkg_failed=no
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20194 $as_echo_n "checking for WEBKIT... " >&6; }
20195
20196 if test -n "$WEBKIT_CFLAGS"; then
20197 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20198 elif test -n "$PKG_CONFIG"; then
20199 if test -n "$PKG_CONFIG" && \
20200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20201 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20202 ac_status=$?
20203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20204 test $ac_status = 0; }; then
20205 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20206 test "x$?" != "x0" && pkg_failed=yes
20207 else
20208 pkg_failed=yes
20209 fi
20210 else
20211 pkg_failed=untried
20212 fi
20213 if test -n "$WEBKIT_LIBS"; then
20214 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20215 elif test -n "$PKG_CONFIG"; then
20216 if test -n "$PKG_CONFIG" && \
20217 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20218 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20219 ac_status=$?
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; then
20222 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20223 test "x$?" != "x0" && pkg_failed=yes
20224 else
20225 pkg_failed=yes
20226 fi
20227 else
20228 pkg_failed=untried
20229 fi
20230
20231
20232
20233 if test $pkg_failed = yes; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20235 $as_echo "no" >&6; }
20236
20237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20238 _pkg_short_errors_supported=yes
20239 else
20240 _pkg_short_errors_supported=no
20241 fi
20242 if test $_pkg_short_errors_supported = yes; then
20243 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20244 else
20245 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20246 fi
20247 # Put the nasty error message in config.log where it belongs
20248 echo "$WEBKIT_PKG_ERRORS" >&5
20249
20250 :
20251 elif test $pkg_failed = untried; then
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253 $as_echo "no" >&6; }
20254 :
20255 else
20256 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20257 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20259 $as_echo "yes" >&6; }
20260
20261 CY_EXECUTE=1
20262
20263
20264 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20265 haveit=
20266 for x in $CPPFLAGS; do
20267
20268 acl_save_prefix="$prefix"
20269 prefix="$acl_final_prefix"
20270 acl_save_exec_prefix="$exec_prefix"
20271 exec_prefix="$acl_final_exec_prefix"
20272 eval x=\"$x\"
20273 exec_prefix="$acl_save_exec_prefix"
20274 prefix="$acl_save_prefix"
20275
20276 if test "X$x" = "X$element"; then
20277 haveit=yes
20278 break
20279 fi
20280 done
20281 if test -z "$haveit"; then
20282 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20283 fi
20284 done
20285
20286
20287 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20288 haveit=
20289 for x in $LIBS; do
20290
20291 acl_save_prefix="$prefix"
20292 prefix="$acl_final_prefix"
20293 acl_save_exec_prefix="$exec_prefix"
20294 exec_prefix="$acl_final_exec_prefix"
20295 eval x=\"$x\"
20296 exec_prefix="$acl_save_exec_prefix"
20297 prefix="$acl_save_prefix"
20298
20299 if test "X$x" = "X$element"; then
20300 haveit=yes
20301 break
20302 fi
20303 done
20304 if test -z "$haveit"; then
20305 LIBS="${LIBS}${LIBS:+ }$element"
20306 fi
20307 done
20308
20309
20310 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20311 done
20312
20313 fi
20314 fi
20315
20316 LTJAVASCRIPTCORE=$LIBS
20317 LIBS=$cy_save
20318
20319
20320 ;; #(
20321 no) :
20322
20323 CY_EXECUTE=0
20324 ;; #(
20325 JavaScriptCore) :
20326
20327
20328
20329 cy_save=$LIBS
20330 LIBS=
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20332 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20333 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20334 $as_echo_n "(cached) " >&6
20335 else
20336 ac_func_search_save_LIBS=$LIBS
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339
20340 /* Override any GCC internal prototype to avoid an error.
20341 Use char because int might match the return type of a GCC
20342 builtin and then its argument prototype would still apply. */
20343 #ifdef __cplusplus
20344 extern "C"
20345 #endif
20346 char JSEvaluateScript ();
20347 int
20348 main ()
20349 {
20350 return JSEvaluateScript ();
20351 ;
20352 return 0;
20353 }
20354 _ACEOF
20355 for ac_lib in '' JavaScriptCore; do
20356 if test -z "$ac_lib"; then
20357 ac_res="none required"
20358 else
20359 ac_res=-l$ac_lib
20360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20361 fi
20362 if ac_fn_cxx_try_link "$LINENO"; then :
20363 ac_cv_search_JSEvaluateScript=$ac_res
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext \
20366 conftest$ac_exeext
20367 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20368 break
20369 fi
20370 done
20371 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20372
20373 else
20374 ac_cv_search_JSEvaluateScript=no
20375 fi
20376 rm conftest.$ac_ext
20377 LIBS=$ac_func_search_save_LIBS
20378 fi
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20380 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20381 ac_res=$ac_cv_search_JSEvaluateScript
20382 if test "$ac_res" != no; then :
20383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20384
20385 CY_EXECUTE=1
20386
20387
20388 else
20389
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20391 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20392 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20393 $as_echo_n "(cached) " >&6
20394 else
20395
20396 ac_check_framework_save_LIBS=$LIBS
20397 LIBS="-framework JavaScriptCore $LIBS"
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20400
20401 #include <JavaScriptCore/JSBase.h>
20402
20403 int
20404 main ()
20405 {
20406
20407 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20408
20409 ;
20410 return 0;
20411 }
20412 _ACEOF
20413 if ac_fn_cxx_try_link "$LINENO"; then :
20414
20415 ac_cv_framework_JavaScriptCore=yes
20416
20417 else
20418 ac_cv_framework_JavaScriptCore=no
20419 fi
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_framework_save_LIBS
20423
20424 fi
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20426 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20427 if test $ac_cv_framework_JavaScriptCore = yes; then :
20428
20429
20430 for element in "-framework JavaScriptCore"; do
20431 haveit=
20432 for x in $LIBS; do
20433
20434 acl_save_prefix="$prefix"
20435 prefix="$acl_final_prefix"
20436 acl_save_exec_prefix="$exec_prefix"
20437 exec_prefix="$acl_final_exec_prefix"
20438 eval x=\"$x\"
20439 exec_prefix="$acl_save_exec_prefix"
20440 prefix="$acl_save_prefix"
20441
20442 if test "X$x" = "X$element"; then
20443 haveit=yes
20444 break
20445 fi
20446 done
20447 if test -z "$haveit"; then
20448 LIBS="${LIBS}${LIBS:+ }$element"
20449 fi
20450 done
20451
20452
20453 CY_EXECUTE=1
20454
20455
20456
20457 else
20458
20459 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20460
20461 pkg_failed=no
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20463 $as_echo_n "checking for WEBKIT... " >&6; }
20464
20465 if test -n "$WEBKIT_CFLAGS"; then
20466 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20467 elif test -n "$PKG_CONFIG"; then
20468 if test -n "$PKG_CONFIG" && \
20469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20470 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20471 ac_status=$?
20472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20473 test $ac_status = 0; }; then
20474 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20475 test "x$?" != "x0" && pkg_failed=yes
20476 else
20477 pkg_failed=yes
20478 fi
20479 else
20480 pkg_failed=untried
20481 fi
20482 if test -n "$WEBKIT_LIBS"; then
20483 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20484 elif test -n "$PKG_CONFIG"; then
20485 if test -n "$PKG_CONFIG" && \
20486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20487 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20488 ac_status=$?
20489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20490 test $ac_status = 0; }; then
20491 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20492 test "x$?" != "x0" && pkg_failed=yes
20493 else
20494 pkg_failed=yes
20495 fi
20496 else
20497 pkg_failed=untried
20498 fi
20499
20500
20501
20502 if test $pkg_failed = yes; then
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20505
20506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20507 _pkg_short_errors_supported=yes
20508 else
20509 _pkg_short_errors_supported=no
20510 fi
20511 if test $_pkg_short_errors_supported = yes; then
20512 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20513 else
20514 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20515 fi
20516 # Put the nasty error message in config.log where it belongs
20517 echo "$WEBKIT_PKG_ERRORS" >&5
20518
20519 :
20520 elif test $pkg_failed = untried; then
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20522 $as_echo "no" >&6; }
20523 :
20524 else
20525 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20526 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20529
20530 CY_EXECUTE=1
20531
20532
20533 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20534 haveit=
20535 for x in $CPPFLAGS; do
20536
20537 acl_save_prefix="$prefix"
20538 prefix="$acl_final_prefix"
20539 acl_save_exec_prefix="$exec_prefix"
20540 exec_prefix="$acl_final_exec_prefix"
20541 eval x=\"$x\"
20542 exec_prefix="$acl_save_exec_prefix"
20543 prefix="$acl_save_prefix"
20544
20545 if test "X$x" = "X$element"; then
20546 haveit=yes
20547 break
20548 fi
20549 done
20550 if test -z "$haveit"; then
20551 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20552 fi
20553 done
20554
20555
20556 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20557 haveit=
20558 for x in $LIBS; do
20559
20560 acl_save_prefix="$prefix"
20561 prefix="$acl_final_prefix"
20562 acl_save_exec_prefix="$exec_prefix"
20563 exec_prefix="$acl_final_exec_prefix"
20564 eval x=\"$x\"
20565 exec_prefix="$acl_save_exec_prefix"
20566 prefix="$acl_save_prefix"
20567
20568 if test "X$x" = "X$element"; then
20569 haveit=yes
20570 break
20571 fi
20572 done
20573 if test -z "$haveit"; then
20574 LIBS="${LIBS}${LIBS:+ }$element"
20575 fi
20576 done
20577
20578
20579 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20580 done
20581
20582 fi
20583 fi
20584
20585 LTJAVASCRIPTCORE=$LIBS
20586 LIBS=$cy_save
20587
20588
20589 ;; #(
20590 *) :
20591 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20592 esac
20593
20594 else
20595
20596
20597
20598 cy_save=$LIBS
20599 LIBS=
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20601 $as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20602 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20603 $as_echo_n "(cached) " >&6
20604 else
20605 ac_func_search_save_LIBS=$LIBS
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h. */
20608
20609 /* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20612 #ifdef __cplusplus
20613 extern "C"
20614 #endif
20615 char JSEvaluateScript ();
20616 int
20617 main ()
20618 {
20619 return JSEvaluateScript ();
20620 ;
20621 return 0;
20622 }
20623 _ACEOF
20624 for ac_lib in '' JavaScriptCore; do
20625 if test -z "$ac_lib"; then
20626 ac_res="none required"
20627 else
20628 ac_res=-l$ac_lib
20629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20630 fi
20631 if ac_fn_cxx_try_link "$LINENO"; then :
20632 ac_cv_search_JSEvaluateScript=$ac_res
20633 fi
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext
20636 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20637 break
20638 fi
20639 done
20640 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20641
20642 else
20643 ac_cv_search_JSEvaluateScript=no
20644 fi
20645 rm conftest.$ac_ext
20646 LIBS=$ac_func_search_save_LIBS
20647 fi
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20649 $as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20650 ac_res=$ac_cv_search_JSEvaluateScript
20651 if test "$ac_res" != no; then :
20652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20653
20654 CY_EXECUTE=1
20655
20656
20657 else
20658
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20660 $as_echo_n "checking for framework JavaScriptCore... " >&6; }
20661 if ${ac_cv_framework_JavaScriptCore+:} false; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664
20665 ac_check_framework_save_LIBS=$LIBS
20666 LIBS="-framework JavaScriptCore $LIBS"
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669
20670 #include <JavaScriptCore/JSBase.h>
20671
20672 int
20673 main ()
20674 {
20675
20676 JSEvaluateScript(0, 0, 0, 0, 0, 0);
20677
20678 ;
20679 return 0;
20680 }
20681 _ACEOF
20682 if ac_fn_cxx_try_link "$LINENO"; then :
20683
20684 ac_cv_framework_JavaScriptCore=yes
20685
20686 else
20687 ac_cv_framework_JavaScriptCore=no
20688 fi
20689 rm -f core conftest.err conftest.$ac_objext \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_framework_save_LIBS
20692
20693 fi
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20695 $as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20696 if test $ac_cv_framework_JavaScriptCore = yes; then :
20697
20698
20699 for element in "-framework JavaScriptCore"; do
20700 haveit=
20701 for x in $LIBS; do
20702
20703 acl_save_prefix="$prefix"
20704 prefix="$acl_final_prefix"
20705 acl_save_exec_prefix="$exec_prefix"
20706 exec_prefix="$acl_final_exec_prefix"
20707 eval x=\"$x\"
20708 exec_prefix="$acl_save_exec_prefix"
20709 prefix="$acl_save_prefix"
20710
20711 if test "X$x" = "X$element"; then
20712 haveit=yes
20713 break
20714 fi
20715 done
20716 if test -z "$haveit"; then
20717 LIBS="${LIBS}${LIBS:+ }$element"
20718 fi
20719 done
20720
20721
20722 CY_EXECUTE=1
20723
20724
20725
20726 else
20727
20728 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
20729
20730 pkg_failed=no
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20732 $as_echo_n "checking for WEBKIT... " >&6; }
20733
20734 if test -n "$WEBKIT_CFLAGS"; then
20735 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20736 elif test -n "$PKG_CONFIG"; then
20737 if test -n "$PKG_CONFIG" && \
20738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20739 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20740 ac_status=$?
20741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20742 test $ac_status = 0; }; then
20743 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
20744 test "x$?" != "x0" && pkg_failed=yes
20745 else
20746 pkg_failed=yes
20747 fi
20748 else
20749 pkg_failed=untried
20750 fi
20751 if test -n "$WEBKIT_LIBS"; then
20752 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20753 elif test -n "$PKG_CONFIG"; then
20754 if test -n "$PKG_CONFIG" && \
20755 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20756 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20757 ac_status=$?
20758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20759 test $ac_status = 0; }; then
20760 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
20761 test "x$?" != "x0" && pkg_failed=yes
20762 else
20763 pkg_failed=yes
20764 fi
20765 else
20766 pkg_failed=untried
20767 fi
20768
20769
20770
20771 if test $pkg_failed = yes; then
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20773 $as_echo "no" >&6; }
20774
20775 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20776 _pkg_short_errors_supported=yes
20777 else
20778 _pkg_short_errors_supported=no
20779 fi
20780 if test $_pkg_short_errors_supported = yes; then
20781 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20782 else
20783 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
20784 fi
20785 # Put the nasty error message in config.log where it belongs
20786 echo "$WEBKIT_PKG_ERRORS" >&5
20787
20788 :
20789 elif test $pkg_failed = untried; then
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 $as_echo "no" >&6; }
20792 :
20793 else
20794 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20795 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797 $as_echo "yes" >&6; }
20798
20799 CY_EXECUTE=1
20800
20801
20802 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20803 haveit=
20804 for x in $CPPFLAGS; do
20805
20806 acl_save_prefix="$prefix"
20807 prefix="$acl_final_prefix"
20808 acl_save_exec_prefix="$exec_prefix"
20809 exec_prefix="$acl_final_exec_prefix"
20810 eval x=\"$x\"
20811 exec_prefix="$acl_save_exec_prefix"
20812 prefix="$acl_save_prefix"
20813
20814 if test "X$x" = "X$element"; then
20815 haveit=yes
20816 break
20817 fi
20818 done
20819 if test -z "$haveit"; then
20820 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20821 fi
20822 done
20823
20824
20825 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20826 haveit=
20827 for x in $LIBS; do
20828
20829 acl_save_prefix="$prefix"
20830 prefix="$acl_final_prefix"
20831 acl_save_exec_prefix="$exec_prefix"
20832 exec_prefix="$acl_final_exec_prefix"
20833 eval x=\"$x\"
20834 exec_prefix="$acl_save_exec_prefix"
20835 prefix="$acl_save_prefix"
20836
20837 if test "X$x" = "X$element"; then
20838 haveit=yes
20839 break
20840 fi
20841 done
20842 if test -z "$haveit"; then
20843 LIBS="${LIBS}${LIBS:+ }$element"
20844 fi
20845 done
20846
20847
20848 fi; if test "x$CY_EXECUTE" = x1; then break; fi
20849 done
20850
20851 fi
20852 fi
20853
20854 LTJAVASCRIPTCORE=$LIBS
20855 LIBS=$cy_save
20856
20857
20858
20859 fi
20860
20861
20862 # Check whether --enable-console was given.
20863 if test "${enable_console+set}" = set; then :
20864 enableval=$enable_console;
20865 fi
20866
20867 if test "x$enable_console" != "xno"; then
20868 CY_CONSOLE_TRUE=
20869 CY_CONSOLE_FALSE='#'
20870 else
20871 CY_CONSOLE_TRUE='#'
20872 CY_CONSOLE_FALSE=
20873 fi
20874
20875
20876 # Check whether --enable-attach was given.
20877 if test "${enable_attach+set}" = set; then :
20878 enableval=$enable_attach;
20879 fi
20880
20881 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20882 CY_ATTACH_TRUE=
20883 CY_ATTACH_FALSE='#'
20884 else
20885 CY_ATTACH_TRUE='#'
20886 CY_ATTACH_FALSE=
20887 fi
20888
20889
20890
20891
20892 if test "x$CY_EXECUTE" = x1; then
20893 CY_EXECUTE_TRUE=
20894 CY_EXECUTE_FALSE='#'
20895 else
20896 CY_EXECUTE_TRUE='#'
20897 CY_EXECUTE_FALSE=
20898 fi
20899
20900
20901
20902 case $CY_EXECUTE in #(
20903 1) :
20904
20905
20906 cy_save=$LIBS
20907 LIBS=
20908 for ac_header in uv.h
20909 do :
20910 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
20911 if test "x$ac_cv_header_uv_h" = xyes; then :
20912 cat >>confdefs.h <<_ACEOF
20913 #define HAVE_UV_H 1
20914 _ACEOF
20915
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
20917 $as_echo_n "checking for library containing uv_loop_init... " >&6; }
20918 if ${ac_cv_search_uv_loop_init+:} false; then :
20919 $as_echo_n "(cached) " >&6
20920 else
20921 ac_func_search_save_LIBS=$LIBS
20922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20924
20925 /* Override any GCC internal prototype to avoid an error.
20926 Use char because int might match the return type of a GCC
20927 builtin and then its argument prototype would still apply. */
20928 #ifdef __cplusplus
20929 extern "C"
20930 #endif
20931 char uv_loop_init ();
20932 int
20933 main ()
20934 {
20935 return uv_loop_init ();
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 for ac_lib in '' uv; do
20941 if test -z "$ac_lib"; then
20942 ac_res="none required"
20943 else
20944 ac_res=-l$ac_lib
20945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20946 fi
20947 if ac_fn_cxx_try_link "$LINENO"; then :
20948 ac_cv_search_uv_loop_init=$ac_res
20949 fi
20950 rm -f core conftest.err conftest.$ac_objext \
20951 conftest$ac_exeext
20952 if ${ac_cv_search_uv_loop_init+:} false; then :
20953 break
20954 fi
20955 done
20956 if ${ac_cv_search_uv_loop_init+:} false; then :
20957
20958 else
20959 ac_cv_search_uv_loop_init=no
20960 fi
20961 rm conftest.$ac_ext
20962 LIBS=$ac_func_search_save_LIBS
20963 fi
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
20965 $as_echo "$ac_cv_search_uv_loop_init" >&6; }
20966 ac_res=$ac_cv_search_uv_loop_init
20967 if test "$ac_res" != no; then :
20968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20969
20970 fi
20971
20972
20973 fi
20974
20975 done
20976
20977 LTLIBUV=$LIBS
20978 LIBS=$cy_save
20979
20980
20981
20982 for ac_header in ffi.h ffi/ffi.h
20983 do :
20984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20985 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20987 cat >>confdefs.h <<_ACEOF
20988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20989 _ACEOF
20990 break
20991 fi
20992
20993 done
20994
20995
20996
20997 cy_save=$LIBS
20998 LIBS=
20999 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
21000
21001
21002 LIBFFI_CFLAGS
21003 C compiler flags for LIBFFI, overriding pkg-config
21004 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
21005
21006 pkg_failed=no
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21008 $as_echo_n "checking for LIBFFI... " >&6; }
21009
21010 if test -n "$LIBFFI_CFLAGS"; then
21011 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
21012 elif test -n "$PKG_CONFIG"; then
21013 if test -n "$PKG_CONFIG" && \
21014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21015 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21016 ac_status=$?
21017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21018 test $ac_status = 0; }; then
21019 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
21020 test "x$?" != "x0" && pkg_failed=yes
21021 else
21022 pkg_failed=yes
21023 fi
21024 else
21025 pkg_failed=untried
21026 fi
21027 if test -n "$LIBFFI_LIBS"; then
21028 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
21029 elif test -n "$PKG_CONFIG"; then
21030 if test -n "$PKG_CONFIG" && \
21031 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21032 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21033 ac_status=$?
21034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21035 test $ac_status = 0; }; then
21036 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
21037 test "x$?" != "x0" && pkg_failed=yes
21038 else
21039 pkg_failed=yes
21040 fi
21041 else
21042 pkg_failed=untried
21043 fi
21044
21045
21046
21047 if test $pkg_failed = yes; then
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049 $as_echo "no" >&6; }
21050
21051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21052 _pkg_short_errors_supported=yes
21053 else
21054 _pkg_short_errors_supported=no
21055 fi
21056 if test $_pkg_short_errors_supported = yes; then
21057 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
21058 else
21059 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
21060 fi
21061 # Put the nasty error message in config.log where it belongs
21062 echo "$LIBFFI_PKG_ERRORS" >&5
21063
21064 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21065 elif test $pkg_failed = untried; then
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21067 $as_echo "no" >&6; }
21068 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21069 else
21070 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21071 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21073 $as_echo "yes" >&6; }
21074
21075
21076 for element in `$PKG_CONFIG --cflags libffi`; do
21077 haveit=
21078 for x in $CPPFLAGS; do
21079
21080 acl_save_prefix="$prefix"
21081 prefix="$acl_final_prefix"
21082 acl_save_exec_prefix="$exec_prefix"
21083 exec_prefix="$acl_final_exec_prefix"
21084 eval x=\"$x\"
21085 exec_prefix="$acl_save_exec_prefix"
21086 prefix="$acl_save_prefix"
21087
21088 if test "X$x" = "X$element"; then
21089 haveit=yes
21090 break
21091 fi
21092 done
21093 if test -z "$haveit"; then
21094 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21095 fi
21096 done
21097
21098
21099 for element in `$PKG_CONFIG --libs libffi`; do
21100 haveit=
21101 for x in $LIBS; do
21102
21103 acl_save_prefix="$prefix"
21104 prefix="$acl_final_prefix"
21105 acl_save_exec_prefix="$exec_prefix"
21106 exec_prefix="$acl_final_exec_prefix"
21107 eval x=\"$x\"
21108 exec_prefix="$acl_save_exec_prefix"
21109 prefix="$acl_save_prefix"
21110
21111 if test "X$x" = "X$element"; then
21112 haveit=yes
21113 break
21114 fi
21115 done
21116 if test -z "$haveit"; then
21117 LIBS="${LIBS}${LIBS:+ }$element"
21118 fi
21119 done
21120
21121
21122 fi
21123
21124 else
21125
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
21127 $as_echo_n "checking for library containing ffi_call... " >&6; }
21128 if ${ac_cv_search_ffi_call+:} false; then :
21129 $as_echo_n "(cached) " >&6
21130 else
21131 ac_func_search_save_LIBS=$LIBS
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21134
21135 /* Override any GCC internal prototype to avoid an error.
21136 Use char because int might match the return type of a GCC
21137 builtin and then its argument prototype would still apply. */
21138 #ifdef __cplusplus
21139 extern "C"
21140 #endif
21141 char ffi_call ();
21142 int
21143 main ()
21144 {
21145 return ffi_call ();
21146 ;
21147 return 0;
21148 }
21149 _ACEOF
21150 for ac_lib in '' ffi; do
21151 if test -z "$ac_lib"; then
21152 ac_res="none required"
21153 else
21154 ac_res=-l$ac_lib
21155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21156 fi
21157 if ac_fn_cxx_try_link "$LINENO"; then :
21158 ac_cv_search_ffi_call=$ac_res
21159 fi
21160 rm -f core conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext
21162 if ${ac_cv_search_ffi_call+:} false; then :
21163 break
21164 fi
21165 done
21166 if ${ac_cv_search_ffi_call+:} false; then :
21167
21168 else
21169 ac_cv_search_ffi_call=no
21170 fi
21171 rm conftest.$ac_ext
21172 LIBS=$ac_func_search_save_LIBS
21173 fi
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
21175 $as_echo "$ac_cv_search_ffi_call" >&6; }
21176 ac_res=$ac_cv_search_ffi_call
21177 if test "$ac_res" != no; then :
21178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21179
21180 fi
21181
21182 case $ac_cv_search_ffi_call in #(
21183 no) :
21184
21185
21186 pkg_failed=no
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
21188 $as_echo_n "checking for LIBFFI... " >&6; }
21189
21190 if test -n "$LIBFFI_CFLAGS"; then
21191 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
21192 elif test -n "$PKG_CONFIG"; then
21193 if test -n "$PKG_CONFIG" && \
21194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21195 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21196 ac_status=$?
21197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198 test $ac_status = 0; }; then
21199 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
21200 test "x$?" != "x0" && pkg_failed=yes
21201 else
21202 pkg_failed=yes
21203 fi
21204 else
21205 pkg_failed=untried
21206 fi
21207 if test -n "$LIBFFI_LIBS"; then
21208 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
21209 elif test -n "$PKG_CONFIG"; then
21210 if test -n "$PKG_CONFIG" && \
21211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
21212 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
21213 ac_status=$?
21214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21215 test $ac_status = 0; }; then
21216 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
21217 test "x$?" != "x0" && pkg_failed=yes
21218 else
21219 pkg_failed=yes
21220 fi
21221 else
21222 pkg_failed=untried
21223 fi
21224
21225
21226
21227 if test $pkg_failed = yes; then
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21229 $as_echo "no" >&6; }
21230
21231 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21232 _pkg_short_errors_supported=yes
21233 else
21234 _pkg_short_errors_supported=no
21235 fi
21236 if test $_pkg_short_errors_supported = yes; then
21237 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
21238 else
21239 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
21240 fi
21241 # Put the nasty error message in config.log where it belongs
21242 echo "$LIBFFI_PKG_ERRORS" >&5
21243
21244 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21245 elif test $pkg_failed = untried; then
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21247 $as_echo "no" >&6; }
21248 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
21249 else
21250 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
21251 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21253 $as_echo "yes" >&6; }
21254
21255
21256 for element in `$PKG_CONFIG --cflags libffi`; do
21257 haveit=
21258 for x in $CPPFLAGS; do
21259
21260 acl_save_prefix="$prefix"
21261 prefix="$acl_final_prefix"
21262 acl_save_exec_prefix="$exec_prefix"
21263 exec_prefix="$acl_final_exec_prefix"
21264 eval x=\"$x\"
21265 exec_prefix="$acl_save_exec_prefix"
21266 prefix="$acl_save_prefix"
21267
21268 if test "X$x" = "X$element"; then
21269 haveit=yes
21270 break
21271 fi
21272 done
21273 if test -z "$haveit"; then
21274 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21275 fi
21276 done
21277
21278
21279 for element in `$PKG_CONFIG --libs libffi`; do
21280 haveit=
21281 for x in $LIBS; do
21282
21283 acl_save_prefix="$prefix"
21284 prefix="$acl_final_prefix"
21285 acl_save_exec_prefix="$exec_prefix"
21286 exec_prefix="$acl_final_exec_prefix"
21287 eval x=\"$x\"
21288 exec_prefix="$acl_save_exec_prefix"
21289 prefix="$acl_save_prefix"
21290
21291 if test "X$x" = "X$element"; then
21292 haveit=yes
21293 break
21294 fi
21295 done
21296 if test -z "$haveit"; then
21297 LIBS="${LIBS}${LIBS:+ }$element"
21298 fi
21299 done
21300
21301
21302 fi ;; #(
21303 *) :
21304 ;;
21305 esac
21306
21307 fi
21308 LTLIBFFI=$LIBS
21309 LIBS=$cy_save
21310
21311
21312
21313
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
21315 $as_echo_n "checking for framework JavaVM... " >&6; }
21316 if ${ac_cv_framework_JavaVM+:} false; then :
21317 $as_echo_n "(cached) " >&6
21318 else
21319
21320 ac_check_framework_save_LIBS=$LIBS
21321 LIBS="-framework JavaVM $LIBS"
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21324
21325 #include <JavaVM/jni.h>
21326
21327 int
21328 main ()
21329 {
21330 JNI_GetCreatedJavaVMs(NULL, 0, NULL);
21331 ;
21332 return 0;
21333 }
21334 _ACEOF
21335 if ac_fn_cxx_try_link "$LINENO"; then :
21336
21337 ac_cv_framework_JavaVM=yes
21338
21339 else
21340 ac_cv_framework_JavaVM=no
21341 fi
21342 rm -f core conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
21344 LIBS=$ac_check_framework_save_LIBS
21345
21346 fi
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
21348 $as_echo "$ac_cv_framework_JavaVM" >&6; }
21349 if test $ac_cv_framework_JavaVM = yes; then :
21350
21351
21352 for element in "-framework JavaVM"; do
21353 haveit=
21354 for x in $LIBS; do
21355
21356 acl_save_prefix="$prefix"
21357 prefix="$acl_final_prefix"
21358 acl_save_exec_prefix="$exec_prefix"
21359 exec_prefix="$acl_final_exec_prefix"
21360 eval x=\"$x\"
21361 exec_prefix="$acl_save_exec_prefix"
21362 prefix="$acl_save_prefix"
21363
21364 if test "X$x" = "X$element"; then
21365 haveit=yes
21366 break
21367 fi
21368 done
21369 if test -z "$haveit"; then
21370 LIBS="${LIBS}${LIBS:+ }$element"
21371 fi
21372 done
21373
21374
21375 CY_JAVA=1
21376
21377
21378
21379 else
21380 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
21381 if test "x$ac_cv_header_jni_h" = xyes; then :
21382
21383 CY_JAVA=1
21384
21385
21386 cy_save=$LIBS
21387 LIBS=
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
21389 $as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
21390 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21391 $as_echo_n "(cached) " >&6
21392 else
21393 ac_func_search_save_LIBS=$LIBS
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396
21397 /* Override any GCC internal prototype to avoid an error.
21398 Use char because int might match the return type of a GCC
21399 builtin and then its argument prototype would still apply. */
21400 #ifdef __cplusplus
21401 extern "C"
21402 #endif
21403 char JNI_GetCreatedJavaVMs ();
21404 int
21405 main ()
21406 {
21407 return JNI_GetCreatedJavaVMs ();
21408 ;
21409 return 0;
21410 }
21411 _ACEOF
21412 for ac_lib in '' dvm; do
21413 if test -z "$ac_lib"; then
21414 ac_res="none required"
21415 else
21416 ac_res=-l$ac_lib
21417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21418 fi
21419 if ac_fn_cxx_try_link "$LINENO"; then :
21420 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
21421 fi
21422 rm -f core conftest.err conftest.$ac_objext \
21423 conftest$ac_exeext
21424 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21425 break
21426 fi
21427 done
21428 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
21429
21430 else
21431 ac_cv_search_JNI_GetCreatedJavaVMs=no
21432 fi
21433 rm conftest.$ac_ext
21434 LIBS=$ac_func_search_save_LIBS
21435 fi
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
21437 $as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
21438 ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
21439 if test "$ac_res" != no; then :
21440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21441
21442
21443 fi
21444
21445 LTJAVA=$LIBS
21446 LIBS=$cy_save
21447
21448
21449
21450 else
21451
21452 CY_JAVA=0
21453
21454
21455 fi
21456
21457
21458 fi
21459
21460 ac_ext=mm
21461 ac_cpp='$OBJCXXCPP $CPPFLAGS'
21462 ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21463 ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464 ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
21465
21466
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
21468 $as_echo_n "checking if we really have Objective C++... " >&6; }
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21471
21472 _ACEOF
21473 if ac_fn_objcxx_try_compile "$LINENO"; then :
21474
21475 CY_OBJECTIVEC=1
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21477 $as_echo "yes" >&6; }
21478
21479 else
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21481 $as_echo "no" >&6; }
21482 fi
21483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484
21485 if test "x$CY_OBJECTIVEC" = x1; then :
21486
21487
21488 cy_save=$LIBS
21489 LIBS=
21490
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
21492 $as_echo_n "checking for framework CoreFoundation... " >&6; }
21493 if ${ac_cv_framework_CoreFoundation+:} false; then :
21494 $as_echo_n "(cached) " >&6
21495 else
21496
21497 ac_check_framework_save_LIBS=$LIBS
21498 LIBS="-framework CoreFoundation $LIBS"
21499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500 /* end confdefs.h. */
21501
21502 #include <CoreFoundation/CFBase.h>
21503
21504 int
21505 main ()
21506 {
21507 CFAllocatorGetDefault();
21508 ;
21509 return 0;
21510 }
21511 _ACEOF
21512 if ac_fn_objcxx_try_link "$LINENO"; then :
21513
21514 ac_cv_framework_CoreFoundation=yes
21515
21516 else
21517 ac_cv_framework_CoreFoundation=no
21518 fi
21519 rm -f core conftest.err conftest.$ac_objext \
21520 conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_framework_save_LIBS
21522
21523 fi
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
21525 $as_echo "$ac_cv_framework_CoreFoundation" >&6; }
21526 if test $ac_cv_framework_CoreFoundation = yes; then :
21527
21528
21529 for element in "-framework CoreFoundation"; do
21530 haveit=
21531 for x in $LIBS; do
21532
21533 acl_save_prefix="$prefix"
21534 prefix="$acl_final_prefix"
21535 acl_save_exec_prefix="$exec_prefix"
21536 exec_prefix="$acl_final_exec_prefix"
21537 eval x=\"$x\"
21538 exec_prefix="$acl_save_exec_prefix"
21539 prefix="$acl_save_prefix"
21540
21541 if test "X$x" = "X$element"; then
21542 haveit=yes
21543 break
21544 fi
21545 done
21546 if test -z "$haveit"; then
21547 LIBS="${LIBS}${LIBS:+ }$element"
21548 fi
21549 done
21550
21551
21552
21553
21554
21555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
21557 $as_echo_n "checking for framework Foundation... " >&6; }
21558 if ${ac_cv_framework_Foundation+:} false; then :
21559 $as_echo_n "(cached) " >&6
21560 else
21561
21562 ac_check_framework_save_LIBS=$LIBS
21563 LIBS="-framework Foundation $LIBS"
21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h. */
21566
21567 #include <Foundation/NSObject.h>
21568
21569 int
21570 main ()
21571 {
21572 [[NSObject alloc] init];
21573 ;
21574 return 0;
21575 }
21576 _ACEOF
21577 if ac_fn_objcxx_try_link "$LINENO"; then :
21578
21579 ac_cv_framework_Foundation=yes
21580
21581 else
21582 ac_cv_framework_Foundation=no
21583 fi
21584 rm -f core conftest.err conftest.$ac_objext \
21585 conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_framework_save_LIBS
21587
21588 fi
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21590 $as_echo "$ac_cv_framework_Foundation" >&6; }
21591 if test $ac_cv_framework_Foundation = yes; then :
21592
21593
21594 for element in "-framework Foundation"; do
21595 haveit=
21596 for x in $LIBS; do
21597
21598 acl_save_prefix="$prefix"
21599 prefix="$acl_final_prefix"
21600 acl_save_exec_prefix="$exec_prefix"
21601 exec_prefix="$acl_final_exec_prefix"
21602 eval x=\"$x\"
21603 exec_prefix="$acl_save_exec_prefix"
21604 prefix="$acl_save_prefix"
21605
21606 if test "X$x" = "X$element"; then
21607 haveit=yes
21608 break
21609 fi
21610 done
21611 if test -z "$haveit"; then
21612 LIBS="${LIBS}${LIBS:+ }$element"
21613 fi
21614 done
21615
21616 cat >>confdefs.h <<_ACEOF
21617 #define HAVE_FRAMEWORK_FOUNDATION 1
21618 _ACEOF
21619
21620
21621 fi
21622
21623
21624 else
21625
21626
21627 for ac_prog in gnustep-config
21628 do
21629 # Extract the first word of "$ac_prog", so it can be a program name with args.
21630 set dummy $ac_prog; ac_word=$2
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21632 $as_echo_n "checking for $ac_word... " >&6; }
21633 if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 if test -n "$GNUSTEP_CONFIG"; then
21637 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
21638 else
21639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21640 for as_dir in $PATH
21641 do
21642 IFS=$as_save_IFS
21643 test -z "$as_dir" && as_dir=.
21644 for ac_exec_ext in '' $ac_executable_extensions; do
21645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21646 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21648 break 2
21649 fi
21650 done
21651 done
21652 IFS=$as_save_IFS
21653
21654 fi
21655 fi
21656 GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21657 if test -n "$GNUSTEP_CONFIG"; then
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21659 $as_echo "$GNUSTEP_CONFIG" >&6; }
21660 else
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21662 $as_echo "no" >&6; }
21663 fi
21664
21665
21666 test -n "$GNUSTEP_CONFIG" && break
21667 done
21668
21669
21670 if test "x$GNUSTEP_CONFIG" != x; then :
21671
21672
21673
21674 for element in `$GNUSTEP_CONFIG --objc-flags`; do
21675 haveit=
21676 for x in $OBJCXXFLAGS; do
21677
21678 acl_save_prefix="$prefix"
21679 prefix="$acl_final_prefix"
21680 acl_save_exec_prefix="$exec_prefix"
21681 exec_prefix="$acl_final_exec_prefix"
21682 eval x=\"$x\"
21683 exec_prefix="$acl_save_exec_prefix"
21684 prefix="$acl_save_prefix"
21685
21686 if test "X$x" = "X$element"; then
21687 haveit=yes
21688 break
21689 fi
21690 done
21691 if test -z "$haveit"; then
21692 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21693 fi
21694 done
21695
21696
21697 for element in `$GNUSTEP_CONFIG --base-libs`; do
21698 haveit=
21699 for x in $LIBS; do
21700
21701 acl_save_prefix="$prefix"
21702 prefix="$acl_final_prefix"
21703 acl_save_exec_prefix="$exec_prefix"
21704 exec_prefix="$acl_final_exec_prefix"
21705 eval x=\"$x\"
21706 exec_prefix="$acl_save_exec_prefix"
21707 prefix="$acl_save_prefix"
21708
21709 if test "X$x" = "X$element"; then
21710 haveit=yes
21711 break
21712 fi
21713 done
21714 if test -z "$haveit"; then
21715 LIBS="${LIBS}${LIBS:+ }$element"
21716 fi
21717 done
21718
21719
21720 else
21721 CY_OBJECTIVEC=0
21722
21723 fi
21724
21725 fi
21726 LTOBJECTIVEC=$LIBS
21727 LIBS=$cy_save
21728
21729
21730
21731 fi
21732
21733 ac_ext=cpp
21734 ac_cpp='$CXXCPP $CPPFLAGS'
21735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21738
21739 ;; #(
21740 *) :
21741 ;;
21742 esac
21743
21744 if test "x$CY_JAVA" = x1; then
21745 CY_JAVA_TRUE=
21746 CY_JAVA_FALSE='#'
21747 else
21748 CY_JAVA_TRUE='#'
21749 CY_JAVA_FALSE=
21750 fi
21751
21752 if test "x$CY_OBJECTIVEC" = x1; then
21753 CY_OBJECTIVEC_TRUE=
21754 CY_OBJECTIVEC_FALSE='#'
21755 else
21756 CY_OBJECTIVEC_TRUE='#'
21757 CY_OBJECTIVEC_FALSE=
21758 fi
21759
21760
21761
21762 cy_save=$LIBS
21763 LIBS=
21764
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21766 $as_echo_n "checking for a readline compatible library... " >&6; }
21767 if ${ax_cv_lib_readline+:} false; then :
21768 $as_echo_n "(cached) " >&6
21769 else
21770
21771 ORIG_LIBS="$LIBS"
21772 for readline_lib in readline edit editline; do
21773 for termcap_lib in "" termcap curses ncurses; do
21774 if test -z "$termcap_lib"; then
21775 TRY_LIB="-l$readline_lib"
21776 else
21777 TRY_LIB="-l$readline_lib -l$termcap_lib"
21778 fi
21779 LIBS="$ORIG_LIBS $TRY_LIB"
21780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781 /* end confdefs.h. */
21782
21783 /* Override any GCC internal prototype to avoid an error.
21784 Use char because int might match the return type of a GCC
21785 builtin and then its argument prototype would still apply. */
21786 #ifdef __cplusplus
21787 extern "C"
21788 #endif
21789 char readline ();
21790 int
21791 main ()
21792 {
21793 return readline ();
21794 ;
21795 return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_cxx_try_link "$LINENO"; then :
21799 ax_cv_lib_readline="$TRY_LIB"
21800 fi
21801 rm -f core conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
21803 if test -n "$ax_cv_lib_readline"; then
21804 break
21805 fi
21806 done
21807 if test -n "$ax_cv_lib_readline"; then
21808 break
21809 fi
21810 done
21811 if test -z "$ax_cv_lib_readline"; then
21812 ax_cv_lib_readline="no"
21813 fi
21814 LIBS="$ORIG_LIBS"
21815
21816 fi
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21818 $as_echo "$ax_cv_lib_readline" >&6; }
21819
21820 if test "$ax_cv_lib_readline" != "no"; then
21821 LIBS="$LIBS $ax_cv_lib_readline"
21822
21823 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21824
21825 for ac_header in readline.h readline/readline.h
21826 do :
21827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21830 cat >>confdefs.h <<_ACEOF
21831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21832 _ACEOF
21833
21834 fi
21835
21836 done
21837
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21839 $as_echo_n "checking whether readline supports history... " >&6; }
21840 if ${ax_cv_lib_readline_history+:} false; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843
21844 ax_cv_lib_readline_history="no"
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21847
21848 /* Override any GCC internal prototype to avoid an error.
21849 Use char because int might match the return type of a GCC
21850 builtin and then its argument prototype would still apply. */
21851 #ifdef __cplusplus
21852 extern "C"
21853 #endif
21854 char add_history ();
21855 int
21856 main ()
21857 {
21858 return add_history ();
21859 ;
21860 return 0;
21861 }
21862 _ACEOF
21863 if ac_fn_cxx_try_link "$LINENO"; then :
21864 ax_cv_lib_readline_history="yes"
21865 fi
21866 rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868
21869 fi
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21871 $as_echo "$ax_cv_lib_readline_history" >&6; }
21872 if test "$ax_cv_lib_readline_history" = "yes"; then
21873
21874 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
21875
21876 for ac_header in history.h readline/history.h
21877 do :
21878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21879 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21881 cat >>confdefs.h <<_ACEOF
21882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21883 _ACEOF
21884
21885 fi
21886
21887 done
21888
21889 fi
21890 fi
21891
21892 LTLIBREADLINE=$LIBS
21893 LIBS=$cy_save
21894
21895
21896 case $ax_cv_lib_readline in #(
21897 no) :
21898 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21899 *) :
21900 ;;
21901 esac
21902
21903
21904 cy_save=$LIBS
21905 LIBS=
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21907 $as_echo_n "checking for library containing cur_term... " >&6; }
21908 if ${ac_cv_search_cur_term+:} false; then :
21909 $as_echo_n "(cached) " >&6
21910 else
21911 ac_func_search_save_LIBS=$LIBS
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21914
21915 /* Override any GCC internal prototype to avoid an error.
21916 Use char because int might match the return type of a GCC
21917 builtin and then its argument prototype would still apply. */
21918 #ifdef __cplusplus
21919 extern "C"
21920 #endif
21921 char cur_term ();
21922 int
21923 main ()
21924 {
21925 return cur_term ();
21926 ;
21927 return 0;
21928 }
21929 _ACEOF
21930 for ac_lib in '' termcap ncurses; do
21931 if test -z "$ac_lib"; then
21932 ac_res="none required"
21933 else
21934 ac_res=-l$ac_lib
21935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21936 fi
21937 if ac_fn_cxx_try_link "$LINENO"; then :
21938 ac_cv_search_cur_term=$ac_res
21939 fi
21940 rm -f core conftest.err conftest.$ac_objext \
21941 conftest$ac_exeext
21942 if ${ac_cv_search_cur_term+:} false; then :
21943 break
21944 fi
21945 done
21946 if ${ac_cv_search_cur_term+:} false; then :
21947
21948 else
21949 ac_cv_search_cur_term=no
21950 fi
21951 rm conftest.$ac_ext
21952 LIBS=$ac_func_search_save_LIBS
21953 fi
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21955 $as_echo "$ac_cv_search_cur_term" >&6; }
21956 ac_res=$ac_cv_search_cur_term
21957 if test "$ac_res" != no; then :
21958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21959
21960 fi
21961
21962 LTLIBTERMCAP=$LIBS
21963 LIBS=$cy_save
21964
21965
21966
21967
21968
21969
21970 SO=$acl_shlibext
21971
21972
21973 ac_config_files="$ac_config_files Makefile"
21974
21975 cat >confcache <<\_ACEOF
21976 # This file is a shell script that caches the results of configure
21977 # tests run on this system so they can be shared between configure
21978 # scripts and configure runs, see configure's option --config-cache.
21979 # It is not useful on other systems. If it contains results you don't
21980 # want to keep, you may remove or edit it.
21981 #
21982 # config.status only pays attention to the cache file if you give it
21983 # the --recheck option to rerun configure.
21984 #
21985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21987 # following values.
21988
21989 _ACEOF
21990
21991 # The following way of writing the cache mishandles newlines in values,
21992 # but we know of no workaround that is simple, portable, and efficient.
21993 # So, we kill variables containing newlines.
21994 # Ultrix sh set writes to stderr and can't be redirected directly,
21995 # and sets the high bit in the cache file unless we assign to the vars.
21996 (
21997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21998 eval ac_val=\$$ac_var
21999 case $ac_val in #(
22000 *${as_nl}*)
22001 case $ac_var in #(
22002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22004 esac
22005 case $ac_var in #(
22006 _ | IFS | as_nl) ;; #(
22007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22008 *) { eval $ac_var=; unset $ac_var;} ;;
22009 esac ;;
22010 esac
22011 done
22012
22013 (set) 2>&1 |
22014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22015 *${as_nl}ac_space=\ *)
22016 # `set' does not quote correctly, so add quotes: double-quote
22017 # substitution turns \\\\ into \\, and sed turns \\ into \.
22018 sed -n \
22019 "s/'/'\\\\''/g;
22020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22021 ;; #(
22022 *)
22023 # `set' quotes correctly as required by POSIX, so do not add quotes.
22024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22025 ;;
22026 esac |
22027 sort
22028 ) |
22029 sed '
22030 /^ac_cv_env_/b end
22031 t clear
22032 :clear
22033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22034 t end
22035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22036 :end' >>confcache
22037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22038 if test -w "$cache_file"; then
22039 if test "x$cache_file" != "x/dev/null"; then
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22041 $as_echo "$as_me: updating cache $cache_file" >&6;}
22042 if test ! -f "$cache_file" || test -h "$cache_file"; then
22043 cat confcache >"$cache_file"
22044 else
22045 case $cache_file in #(
22046 */* | ?:*)
22047 mv -f confcache "$cache_file"$$ &&
22048 mv -f "$cache_file"$$ "$cache_file" ;; #(
22049 *)
22050 mv -f confcache "$cache_file" ;;
22051 esac
22052 fi
22053 fi
22054 else
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22056 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22057 fi
22058 fi
22059 rm -f confcache
22060
22061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22062 # Let make expand exec_prefix.
22063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22064
22065 DEFS=-DHAVE_CONFIG_H
22066
22067 ac_libobjs=
22068 ac_ltlibobjs=
22069 U=
22070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22071 # 1. Remove the extension, and $U if already installed.
22072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22075 # will be set to the directory where LIBOBJS objects are built.
22076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22078 done
22079 LIBOBJS=$ac_libobjs
22080
22081 LTLIBOBJS=$ac_ltlibobjs
22082
22083
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22085 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22086 if test -n "$am_sleep_pid"; then
22087 # Hide warnings about reused PIDs.
22088 wait $am_sleep_pid 2>/dev/null
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22091 $as_echo "done" >&6; }
22092 if test -n "$EXEEXT"; then
22093 am__EXEEXT_TRUE=
22094 am__EXEEXT_FALSE='#'
22095 else
22096 am__EXEEXT_TRUE='#'
22097 am__EXEEXT_FALSE=
22098 fi
22099
22100 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22101 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22103 fi
22104 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22105 as_fn_error $? "conditional \"AMDEP\" was never defined.
22106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22107 fi
22108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22109 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22111 fi
22112 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22113 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22115 fi
22116 if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
22117 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
22118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22119 fi
22120 if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
22121 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
22122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22123 fi
22124 if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
22125 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
22126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22127 fi
22128 if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
22129 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
22130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22131 fi
22132 if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
22133 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
22134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22135 fi
22136 if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
22137 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
22138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22139 fi
22140
22141 : "${CONFIG_STATUS=./config.status}"
22142 ac_write_fail=0
22143 ac_clean_files_save=$ac_clean_files
22144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22147 as_write_fail=0
22148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22149 #! $SHELL
22150 # Generated by $as_me.
22151 # Run this file to recreate the current configuration.
22152 # Compiler output produced by configure, useful for debugging
22153 # configure, is in config.log if it exists.
22154
22155 debug=false
22156 ac_cs_recheck=false
22157 ac_cs_silent=false
22158
22159 SHELL=\${CONFIG_SHELL-$SHELL}
22160 export SHELL
22161 _ASEOF
22162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22163 ## -------------------- ##
22164 ## M4sh Initialization. ##
22165 ## -------------------- ##
22166
22167 # Be more Bourne compatible
22168 DUALCASE=1; export DUALCASE # for MKS sh
22169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22170 emulate sh
22171 NULLCMD=:
22172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22173 # is contrary to our usage. Disable this feature.
22174 alias -g '${1+"$@"}'='"$@"'
22175 setopt NO_GLOB_SUBST
22176 else
22177 case `(set -o) 2>/dev/null` in #(
22178 *posix*) :
22179 set -o posix ;; #(
22180 *) :
22181 ;;
22182 esac
22183 fi
22184
22185
22186 as_nl='
22187 '
22188 export as_nl
22189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22193 # Prefer a ksh shell builtin over an external printf program on Solaris,
22194 # but without wasting forks for bash or zsh.
22195 if test -z "$BASH_VERSION$ZSH_VERSION" \
22196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22197 as_echo='print -r --'
22198 as_echo_n='print -rn --'
22199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22200 as_echo='printf %s\n'
22201 as_echo_n='printf %s'
22202 else
22203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22205 as_echo_n='/usr/ucb/echo -n'
22206 else
22207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22208 as_echo_n_body='eval
22209 arg=$1;
22210 case $arg in #(
22211 *"$as_nl"*)
22212 expr "X$arg" : "X\\(.*\\)$as_nl";
22213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22214 esac;
22215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22216 '
22217 export as_echo_n_body
22218 as_echo_n='sh -c $as_echo_n_body as_echo'
22219 fi
22220 export as_echo_body
22221 as_echo='sh -c $as_echo_body as_echo'
22222 fi
22223
22224 # The user is always right.
22225 if test "${PATH_SEPARATOR+set}" != set; then
22226 PATH_SEPARATOR=:
22227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22229 PATH_SEPARATOR=';'
22230 }
22231 fi
22232
22233
22234 # IFS
22235 # We need space, tab and new line, in precisely that order. Quoting is
22236 # there to prevent editors from complaining about space-tab.
22237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22238 # splitting by setting IFS to empty value.)
22239 IFS=" "" $as_nl"
22240
22241 # Find who we are. Look in the path if we contain no directory separator.
22242 as_myself=
22243 case $0 in #((
22244 *[\\/]* ) as_myself=$0 ;;
22245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22246 for as_dir in $PATH
22247 do
22248 IFS=$as_save_IFS
22249 test -z "$as_dir" && as_dir=.
22250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22251 done
22252 IFS=$as_save_IFS
22253
22254 ;;
22255 esac
22256 # We did not find ourselves, most probably we were run as `sh COMMAND'
22257 # in which case we are not to be found in the path.
22258 if test "x$as_myself" = x; then
22259 as_myself=$0
22260 fi
22261 if test ! -f "$as_myself"; then
22262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22263 exit 1
22264 fi
22265
22266 # Unset variables that we do not need and which cause bugs (e.g. in
22267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22268 # suppresses any "Segmentation fault" message there. '((' could
22269 # trigger a bug in pdksh 5.2.14.
22270 for as_var in BASH_ENV ENV MAIL MAILPATH
22271 do eval test x\${$as_var+set} = xset \
22272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22273 done
22274 PS1='$ '
22275 PS2='> '
22276 PS4='+ '
22277
22278 # NLS nuisances.
22279 LC_ALL=C
22280 export LC_ALL
22281 LANGUAGE=C
22282 export LANGUAGE
22283
22284 # CDPATH.
22285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22286
22287
22288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22289 # ----------------------------------------
22290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22292 # script with STATUS, using 1 if that was 0.
22293 as_fn_error ()
22294 {
22295 as_status=$1; test $as_status -eq 0 && as_status=1
22296 if test "$4"; then
22297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22299 fi
22300 $as_echo "$as_me: error: $2" >&2
22301 as_fn_exit $as_status
22302 } # as_fn_error
22303
22304
22305 # as_fn_set_status STATUS
22306 # -----------------------
22307 # Set $? to STATUS, without forking.
22308 as_fn_set_status ()
22309 {
22310 return $1
22311 } # as_fn_set_status
22312
22313 # as_fn_exit STATUS
22314 # -----------------
22315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22316 as_fn_exit ()
22317 {
22318 set +e
22319 as_fn_set_status $1
22320 exit $1
22321 } # as_fn_exit
22322
22323 # as_fn_unset VAR
22324 # ---------------
22325 # Portably unset VAR.
22326 as_fn_unset ()
22327 {
22328 { eval $1=; unset $1;}
22329 }
22330 as_unset=as_fn_unset
22331 # as_fn_append VAR VALUE
22332 # ----------------------
22333 # Append the text in VALUE to the end of the definition contained in VAR. Take
22334 # advantage of any shell optimizations that allow amortized linear growth over
22335 # repeated appends, instead of the typical quadratic growth present in naive
22336 # implementations.
22337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22338 eval 'as_fn_append ()
22339 {
22340 eval $1+=\$2
22341 }'
22342 else
22343 as_fn_append ()
22344 {
22345 eval $1=\$$1\$2
22346 }
22347 fi # as_fn_append
22348
22349 # as_fn_arith ARG...
22350 # ------------------
22351 # Perform arithmetic evaluation on the ARGs, and store the result in the
22352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22353 # must be portable across $(()) and expr.
22354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22355 eval 'as_fn_arith ()
22356 {
22357 as_val=$(( $* ))
22358 }'
22359 else
22360 as_fn_arith ()
22361 {
22362 as_val=`expr "$@" || test $? -eq 1`
22363 }
22364 fi # as_fn_arith
22365
22366
22367 if expr a : '\(a\)' >/dev/null 2>&1 &&
22368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22369 as_expr=expr
22370 else
22371 as_expr=false
22372 fi
22373
22374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22375 as_basename=basename
22376 else
22377 as_basename=false
22378 fi
22379
22380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22381 as_dirname=dirname
22382 else
22383 as_dirname=false
22384 fi
22385
22386 as_me=`$as_basename -- "$0" ||
22387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22388 X"$0" : 'X\(//\)$' \| \
22389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22390 $as_echo X/"$0" |
22391 sed '/^.*\/\([^/][^/]*\)\/*$/{
22392 s//\1/
22393 q
22394 }
22395 /^X\/\(\/\/\)$/{
22396 s//\1/
22397 q
22398 }
22399 /^X\/\(\/\).*/{
22400 s//\1/
22401 q
22402 }
22403 s/.*/./; q'`
22404
22405 # Avoid depending upon Character Ranges.
22406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22409 as_cr_digits='0123456789'
22410 as_cr_alnum=$as_cr_Letters$as_cr_digits
22411
22412 ECHO_C= ECHO_N= ECHO_T=
22413 case `echo -n x` in #(((((
22414 -n*)
22415 case `echo 'xy\c'` in
22416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22417 xy) ECHO_C='\c';;
22418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22419 ECHO_T=' ';;
22420 esac;;
22421 *)
22422 ECHO_N='-n';;
22423 esac
22424
22425 rm -f conf$$ conf$$.exe conf$$.file
22426 if test -d conf$$.dir; then
22427 rm -f conf$$.dir/conf$$.file
22428 else
22429 rm -f conf$$.dir
22430 mkdir conf$$.dir 2>/dev/null
22431 fi
22432 if (echo >conf$$.file) 2>/dev/null; then
22433 if ln -s conf$$.file conf$$ 2>/dev/null; then
22434 as_ln_s='ln -s'
22435 # ... but there are two gotchas:
22436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22438 # In both cases, we have to default to `cp -pR'.
22439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22440 as_ln_s='cp -pR'
22441 elif ln conf$$.file conf$$ 2>/dev/null; then
22442 as_ln_s=ln
22443 else
22444 as_ln_s='cp -pR'
22445 fi
22446 else
22447 as_ln_s='cp -pR'
22448 fi
22449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22450 rmdir conf$$.dir 2>/dev/null
22451
22452
22453 # as_fn_mkdir_p
22454 # -------------
22455 # Create "$as_dir" as a directory, including parents if necessary.
22456 as_fn_mkdir_p ()
22457 {
22458
22459 case $as_dir in #(
22460 -*) as_dir=./$as_dir;;
22461 esac
22462 test -d "$as_dir" || eval $as_mkdir_p || {
22463 as_dirs=
22464 while :; do
22465 case $as_dir in #(
22466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22467 *) as_qdir=$as_dir;;
22468 esac
22469 as_dirs="'$as_qdir' $as_dirs"
22470 as_dir=`$as_dirname -- "$as_dir" ||
22471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472 X"$as_dir" : 'X\(//\)[^/]' \| \
22473 X"$as_dir" : 'X\(//\)$' \| \
22474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22475 $as_echo X"$as_dir" |
22476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22477 s//\1/
22478 q
22479 }
22480 /^X\(\/\/\)[^/].*/{
22481 s//\1/
22482 q
22483 }
22484 /^X\(\/\/\)$/{
22485 s//\1/
22486 q
22487 }
22488 /^X\(\/\).*/{
22489 s//\1/
22490 q
22491 }
22492 s/.*/./; q'`
22493 test -d "$as_dir" && break
22494 done
22495 test -z "$as_dirs" || eval "mkdir $as_dirs"
22496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22497
22498
22499 } # as_fn_mkdir_p
22500 if mkdir -p . 2>/dev/null; then
22501 as_mkdir_p='mkdir -p "$as_dir"'
22502 else
22503 test -d ./-p && rmdir ./-p
22504 as_mkdir_p=false
22505 fi
22506
22507
22508 # as_fn_executable_p FILE
22509 # -----------------------
22510 # Test if FILE is an executable regular file.
22511 as_fn_executable_p ()
22512 {
22513 test -f "$1" && test -x "$1"
22514 } # as_fn_executable_p
22515 as_test_x='test -x'
22516 as_executable_p=as_fn_executable_p
22517
22518 # Sed expression to map a string onto a valid CPP name.
22519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22520
22521 # Sed expression to map a string onto a valid variable name.
22522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22523
22524
22525 exec 6>&1
22526 ## ----------------------------------- ##
22527 ## Main body of $CONFIG_STATUS script. ##
22528 ## ----------------------------------- ##
22529 _ASEOF
22530 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22531
22532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22533 # Save the log message, to keep $0 and so on meaningful, and to
22534 # report actual input values of CONFIG_FILES etc. instead of their
22535 # values after options handling.
22536 ac_log="
22537 This file was extended by Cycript $as_me 0.9, which was
22538 generated by GNU Autoconf 2.69. Invocation command line was
22539
22540 CONFIG_FILES = $CONFIG_FILES
22541 CONFIG_HEADERS = $CONFIG_HEADERS
22542 CONFIG_LINKS = $CONFIG_LINKS
22543 CONFIG_COMMANDS = $CONFIG_COMMANDS
22544 $ $0 $@
22545
22546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22547 "
22548
22549 _ACEOF
22550
22551 case $ac_config_files in *"
22552 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22553 esac
22554
22555 case $ac_config_headers in *"
22556 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22557 esac
22558
22559
22560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22561 # Files that config.status was made for.
22562 config_files="$ac_config_files"
22563 config_headers="$ac_config_headers"
22564 config_commands="$ac_config_commands"
22565
22566 _ACEOF
22567
22568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22569 ac_cs_usage="\
22570 \`$as_me' instantiates files and other configuration actions
22571 from templates according to the current configuration. Unless the files
22572 and actions are specified as TAGs, all are instantiated by default.
22573
22574 Usage: $0 [OPTION]... [TAG]...
22575
22576 -h, --help print this help, then exit
22577 -V, --version print version number and configuration settings, then exit
22578 --config print configuration, then exit
22579 -q, --quiet, --silent
22580 do not print progress messages
22581 -d, --debug don't remove temporary files
22582 --recheck update $as_me by reconfiguring in the same conditions
22583 --file=FILE[:TEMPLATE]
22584 instantiate the configuration file FILE
22585 --header=FILE[:TEMPLATE]
22586 instantiate the configuration header FILE
22587
22588 Configuration files:
22589 $config_files
22590
22591 Configuration headers:
22592 $config_headers
22593
22594 Configuration commands:
22595 $config_commands
22596
22597 Report bugs to <saurik@saurik.com>.
22598 Cycript home page: <http://www.cycript.org/>."
22599
22600 _ACEOF
22601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22603 ac_cs_version="\\
22604 Cycript config.status 0.9
22605 configured by $0, generated by GNU Autoconf 2.69,
22606 with options \\"\$ac_cs_config\\"
22607
22608 Copyright (C) 2012 Free Software Foundation, Inc.
22609 This config.status script is free software; the Free Software Foundation
22610 gives unlimited permission to copy, distribute and modify it."
22611
22612 ac_pwd='$ac_pwd'
22613 srcdir='$srcdir'
22614 INSTALL='$INSTALL'
22615 MKDIR_P='$MKDIR_P'
22616 AWK='$AWK'
22617 test -n "\$AWK" || AWK=awk
22618 _ACEOF
22619
22620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22621 # The default lists apply if the user does not specify any file.
22622 ac_need_defaults=:
22623 while test $# != 0
22624 do
22625 case $1 in
22626 --*=?*)
22627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22629 ac_shift=:
22630 ;;
22631 --*=)
22632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22633 ac_optarg=
22634 ac_shift=:
22635 ;;
22636 *)
22637 ac_option=$1
22638 ac_optarg=$2
22639 ac_shift=shift
22640 ;;
22641 esac
22642
22643 case $ac_option in
22644 # Handling of the options.
22645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22646 ac_cs_recheck=: ;;
22647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22648 $as_echo "$ac_cs_version"; exit ;;
22649 --config | --confi | --conf | --con | --co | --c )
22650 $as_echo "$ac_cs_config"; exit ;;
22651 --debug | --debu | --deb | --de | --d | -d )
22652 debug=: ;;
22653 --file | --fil | --fi | --f )
22654 $ac_shift
22655 case $ac_optarg in
22656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22657 '') as_fn_error $? "missing file argument" ;;
22658 esac
22659 as_fn_append CONFIG_FILES " '$ac_optarg'"
22660 ac_need_defaults=false;;
22661 --header | --heade | --head | --hea )
22662 $ac_shift
22663 case $ac_optarg in
22664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22665 esac
22666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22667 ac_need_defaults=false;;
22668 --he | --h)
22669 # Conflict between --help and --header
22670 as_fn_error $? "ambiguous option: \`$1'
22671 Try \`$0 --help' for more information.";;
22672 --help | --hel | -h )
22673 $as_echo "$ac_cs_usage"; exit ;;
22674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22676 ac_cs_silent=: ;;
22677
22678 # This is an error.
22679 -*) as_fn_error $? "unrecognized option: \`$1'
22680 Try \`$0 --help' for more information." ;;
22681
22682 *) as_fn_append ac_config_targets " $1"
22683 ac_need_defaults=false ;;
22684
22685 esac
22686 shift
22687 done
22688
22689 ac_configure_extra_args=
22690
22691 if $ac_cs_silent; then
22692 exec 6>/dev/null
22693 ac_configure_extra_args="$ac_configure_extra_args --silent"
22694 fi
22695
22696 _ACEOF
22697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22698 if \$ac_cs_recheck; then
22699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22700 shift
22701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22702 CONFIG_SHELL='$SHELL'
22703 export CONFIG_SHELL
22704 exec "\$@"
22705 fi
22706
22707 _ACEOF
22708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22709 exec 5>>config.log
22710 {
22711 echo
22712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22713 ## Running $as_me. ##
22714 _ASBOX
22715 $as_echo "$ac_log"
22716 } >&5
22717
22718 _ACEOF
22719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22720 #
22721 # INIT-COMMANDS
22722 #
22723 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22724
22725
22726 # The HP-UX ksh and POSIX shell print the target directory to stdout
22727 # if CDPATH is set.
22728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22729
22730 sed_quote_subst='$sed_quote_subst'
22731 double_quote_subst='$double_quote_subst'
22732 delay_variable_subst='$delay_variable_subst'
22733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22735 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22736 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22737 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22738 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22739 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22740 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22741 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22742 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22767 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22789 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22790 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22791 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"`'
22792 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22793 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22794 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22795 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22796 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22797 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22798 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22799 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22801 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22802 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22803 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22804 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22828 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22829 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22830 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22831 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22832 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22833 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22834 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22835 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22836 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22837 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22838 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22839 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22840 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22841 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22842 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22843 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22844 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22845 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22846 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22847 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22848 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22849 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22850 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22851 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22852 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22853 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22854 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22855 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22856 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22857 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22858 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22859 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22860 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22861 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22862 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22863 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22864 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22865 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22866 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22867 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22868 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22869 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22870 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22871 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22872 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22873 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22874 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22875 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22876 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22877 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22878 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22879 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22880 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22881 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22882 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22883 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22884 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22885 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22886 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22887 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22888 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22889 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22890 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22891 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22892 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22893 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22894 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22895 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22896 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22897 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22898 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22899 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22900 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22901 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22902 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22903 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22904 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22905 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22906 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22907 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22908 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22909 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22910 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22911 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22912 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22913 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22914 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22915 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22916 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22917 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22918 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22919 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22920 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22921 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22922
22923 LTCC='$LTCC'
22924 LTCFLAGS='$LTCFLAGS'
22925 compiler='$compiler_DEFAULT'
22926
22927 # A function that is used when there is no print builtin or printf.
22928 func_fallback_echo ()
22929 {
22930 eval 'cat <<_LTECHO_EOF
22931 \$1
22932 _LTECHO_EOF'
22933 }
22934
22935 # Quote evaled strings.
22936 for var in SHELL \
22937 ECHO \
22938 PATH_SEPARATOR \
22939 SED \
22940 GREP \
22941 EGREP \
22942 FGREP \
22943 LD \
22944 NM \
22945 LN_S \
22946 lt_SP2NL \
22947 lt_NL2SP \
22948 reload_flag \
22949 OBJDUMP \
22950 deplibs_check_method \
22951 file_magic_cmd \
22952 file_magic_glob \
22953 want_nocaseglob \
22954 DLLTOOL \
22955 sharedlib_from_linklib_cmd \
22956 AR \
22957 AR_FLAGS \
22958 archiver_list_spec \
22959 STRIP \
22960 RANLIB \
22961 CC \
22962 CFLAGS \
22963 compiler \
22964 lt_cv_sys_global_symbol_pipe \
22965 lt_cv_sys_global_symbol_to_cdecl \
22966 lt_cv_sys_global_symbol_to_import \
22967 lt_cv_sys_global_symbol_to_c_name_address \
22968 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22969 lt_cv_nm_interface \
22970 nm_file_list_spec \
22971 lt_cv_truncate_bin \
22972 lt_prog_compiler_no_builtin_flag \
22973 lt_prog_compiler_pic \
22974 lt_prog_compiler_wl \
22975 lt_prog_compiler_static \
22976 lt_cv_prog_compiler_c_o \
22977 need_locks \
22978 MANIFEST_TOOL \
22979 DSYMUTIL \
22980 NMEDIT \
22981 LIPO \
22982 OTOOL \
22983 OTOOL64 \
22984 shrext_cmds \
22985 export_dynamic_flag_spec \
22986 whole_archive_flag_spec \
22987 compiler_needs_object \
22988 with_gnu_ld \
22989 allow_undefined_flag \
22990 no_undefined_flag \
22991 hardcode_libdir_flag_spec \
22992 hardcode_libdir_separator \
22993 exclude_expsyms \
22994 include_expsyms \
22995 file_list_spec \
22996 variables_saved_for_relink \
22997 libname_spec \
22998 library_names_spec \
22999 soname_spec \
23000 install_override_mode \
23001 finish_eval \
23002 old_striplib \
23003 striplib \
23004 compiler_lib_search_dirs \
23005 predep_objects \
23006 postdep_objects \
23007 predeps \
23008 postdeps \
23009 compiler_lib_search_path \
23010 LD_CXX \
23011 reload_flag_CXX \
23012 compiler_CXX \
23013 lt_prog_compiler_no_builtin_flag_CXX \
23014 lt_prog_compiler_pic_CXX \
23015 lt_prog_compiler_wl_CXX \
23016 lt_prog_compiler_static_CXX \
23017 lt_cv_prog_compiler_c_o_CXX \
23018 export_dynamic_flag_spec_CXX \
23019 whole_archive_flag_spec_CXX \
23020 compiler_needs_object_CXX \
23021 with_gnu_ld_CXX \
23022 allow_undefined_flag_CXX \
23023 no_undefined_flag_CXX \
23024 hardcode_libdir_flag_spec_CXX \
23025 hardcode_libdir_separator_CXX \
23026 exclude_expsyms_CXX \
23027 include_expsyms_CXX \
23028 file_list_spec_CXX \
23029 compiler_lib_search_dirs_CXX \
23030 predep_objects_CXX \
23031 postdep_objects_CXX \
23032 predeps_CXX \
23033 postdeps_CXX \
23034 compiler_lib_search_path_CXX; do
23035 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23036 *[\\\\\\\`\\"\\\$]*)
23037 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23038 ;;
23039 *)
23040 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23041 ;;
23042 esac
23043 done
23044
23045 # Double-quote double-evaled strings.
23046 for var in reload_cmds \
23047 old_postinstall_cmds \
23048 old_postuninstall_cmds \
23049 old_archive_cmds \
23050 extract_expsyms_cmds \
23051 old_archive_from_new_cmds \
23052 old_archive_from_expsyms_cmds \
23053 archive_cmds \
23054 archive_expsym_cmds \
23055 module_cmds \
23056 module_expsym_cmds \
23057 export_symbols_cmds \
23058 prelink_cmds \
23059 postlink_cmds \
23060 postinstall_cmds \
23061 postuninstall_cmds \
23062 finish_cmds \
23063 sys_lib_search_path_spec \
23064 configure_time_dlsearch_path \
23065 configure_time_lt_sys_library_path \
23066 reload_cmds_CXX \
23067 old_archive_cmds_CXX \
23068 old_archive_from_new_cmds_CXX \
23069 old_archive_from_expsyms_cmds_CXX \
23070 archive_cmds_CXX \
23071 archive_expsym_cmds_CXX \
23072 module_cmds_CXX \
23073 module_expsym_cmds_CXX \
23074 export_symbols_cmds_CXX \
23075 prelink_cmds_CXX \
23076 postlink_cmds_CXX; do
23077 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23078 *[\\\\\\\`\\"\\\$]*)
23079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23080 ;;
23081 *)
23082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23083 ;;
23084 esac
23085 done
23086
23087 ac_aux_dir='$ac_aux_dir'
23088
23089 # See if we are running on zsh, and set the options that allow our
23090 # commands through without removal of \ escapes INIT.
23091 if test -n "\${ZSH_VERSION+set}"; then
23092 setopt NO_GLOB_SUBST
23093 fi
23094
23095
23096 PACKAGE='$PACKAGE'
23097 VERSION='$VERSION'
23098 RM='$RM'
23099 ofile='$ofile'
23100
23101
23102
23103
23104
23105
23106 _ACEOF
23107
23108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23109
23110 # Handling of arguments.
23111 for ac_config_target in $ac_config_targets
23112 do
23113 case $ac_config_target in
23114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23116 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23117 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23118
23119 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23120 esac
23121 done
23122
23123
23124 # If the user did not use the arguments to specify the items to instantiate,
23125 # then the envvar interface is used. Set only those that are not.
23126 # We use the long form for the default assignment because of an extremely
23127 # bizarre bug on SunOS 4.1.3.
23128 if $ac_need_defaults; then
23129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23132 fi
23133
23134 # Have a temporary directory for convenience. Make it in the build tree
23135 # simply because there is no reason against having it here, and in addition,
23136 # creating and moving files from /tmp can sometimes cause problems.
23137 # Hook for its removal unless debugging.
23138 # Note that there is a small window in which the directory will not be cleaned:
23139 # after its creation but before its name has been assigned to `$tmp'.
23140 $debug ||
23141 {
23142 tmp= ac_tmp=
23143 trap 'exit_status=$?
23144 : "${ac_tmp:=$tmp}"
23145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23146 ' 0
23147 trap 'as_fn_exit 1' 1 2 13 15
23148 }
23149 # Create a (secure) tmp directory for tmp files.
23150
23151 {
23152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23153 test -d "$tmp"
23154 } ||
23155 {
23156 tmp=./conf$$-$RANDOM
23157 (umask 077 && mkdir "$tmp")
23158 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23159 ac_tmp=$tmp
23160
23161 # Set up the scripts for CONFIG_FILES section.
23162 # No need to generate them if there are no CONFIG_FILES.
23163 # This happens for instance with `./config.status config.h'.
23164 if test -n "$CONFIG_FILES"; then
23165
23166
23167 ac_cr=`echo X | tr X '\015'`
23168 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23169 # But we know of no other shell where ac_cr would be empty at this
23170 # point, so we can use a bashism as a fallback.
23171 if test "x$ac_cr" = x; then
23172 eval ac_cr=\$\'\\r\'
23173 fi
23174 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23176 ac_cs_awk_cr='\\r'
23177 else
23178 ac_cs_awk_cr=$ac_cr
23179 fi
23180
23181 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23182 _ACEOF
23183
23184
23185 {
23186 echo "cat >conf$$subs.awk <<_ACEOF" &&
23187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23188 echo "_ACEOF"
23189 } >conf$$subs.sh ||
23190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23191 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23192 ac_delim='%!_!# '
23193 for ac_last_try in false false false false false :; do
23194 . ./conf$$subs.sh ||
23195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23196
23197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23198 if test $ac_delim_n = $ac_delim_num; then
23199 break
23200 elif $ac_last_try; then
23201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23202 else
23203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23204 fi
23205 done
23206 rm -f conf$$subs.sh
23207
23208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23209 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23210 _ACEOF
23211 sed -n '
23212 h
23213 s/^/S["/; s/!.*/"]=/
23214 p
23215 g
23216 s/^[^!]*!//
23217 :repl
23218 t repl
23219 s/'"$ac_delim"'$//
23220 t delim
23221 :nl
23222 h
23223 s/\(.\{148\}\)..*/\1/
23224 t more1
23225 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23226 p
23227 n
23228 b repl
23229 :more1
23230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23231 p
23232 g
23233 s/.\{148\}//
23234 t nl
23235 :delim
23236 h
23237 s/\(.\{148\}\)..*/\1/
23238 t more2
23239 s/["\\]/\\&/g; s/^/"/; s/$/"/
23240 p
23241 b
23242 :more2
23243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23244 p
23245 g
23246 s/.\{148\}//
23247 t delim
23248 ' <conf$$subs.awk | sed '
23249 /^[^""]/{
23250 N
23251 s/\n//
23252 }
23253 ' >>$CONFIG_STATUS || ac_write_fail=1
23254 rm -f conf$$subs.awk
23255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23256 _ACAWK
23257 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23258 for (key in S) S_is_set[key] = 1
23259 FS = "\a"
23260
23261 }
23262 {
23263 line = $ 0
23264 nfields = split(line, field, "@")
23265 substed = 0
23266 len = length(field[1])
23267 for (i = 2; i < nfields; i++) {
23268 key = field[i]
23269 keylen = length(key)
23270 if (S_is_set[key]) {
23271 value = S[key]
23272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23273 len += length(value) + length(field[++i])
23274 substed = 1
23275 } else
23276 len += 1 + keylen
23277 }
23278
23279 print line
23280 }
23281
23282 _ACAWK
23283 _ACEOF
23284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23285 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23287 else
23288 cat
23289 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23291 _ACEOF
23292
23293 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23294 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23295 # trailing colons and then remove the whole line if VPATH becomes empty
23296 # (actually we leave an empty line to preserve line numbers).
23297 if test "x$srcdir" = x.; then
23298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23299 h
23300 s///
23301 s/^/:/
23302 s/[ ]*$/:/
23303 s/:\$(srcdir):/:/g
23304 s/:\${srcdir}:/:/g
23305 s/:@srcdir@:/:/g
23306 s/^:*//
23307 s/:*$//
23308 x
23309 s/\(=[ ]*\).*/\1/
23310 G
23311 s/\n//
23312 s/^[^=]*=[ ]*$//
23313 }'
23314 fi
23315
23316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23317 fi # test -n "$CONFIG_FILES"
23318
23319 # Set up the scripts for CONFIG_HEADERS section.
23320 # No need to generate them if there are no CONFIG_HEADERS.
23321 # This happens for instance with `./config.status Makefile'.
23322 if test -n "$CONFIG_HEADERS"; then
23323 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23324 BEGIN {
23325 _ACEOF
23326
23327 # Transform confdefs.h into an awk script `defines.awk', embedded as
23328 # here-document in config.status, that substitutes the proper values into
23329 # config.h.in to produce config.h.
23330
23331 # Create a delimiter string that does not exist in confdefs.h, to ease
23332 # handling of long lines.
23333 ac_delim='%!_!# '
23334 for ac_last_try in false false :; do
23335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23336 if test -z "$ac_tt"; then
23337 break
23338 elif $ac_last_try; then
23339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23340 else
23341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23342 fi
23343 done
23344
23345 # For the awk script, D is an array of macro values keyed by name,
23346 # likewise P contains macro parameters if any. Preserve backslash
23347 # newline sequences.
23348
23349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23350 sed -n '
23351 s/.\{148\}/&'"$ac_delim"'/g
23352 t rset
23353 :rset
23354 s/^[ ]*#[ ]*define[ ][ ]*/ /
23355 t def
23356 d
23357 :def
23358 s/\\$//
23359 t bsnl
23360 s/["\\]/\\&/g
23361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23362 D["\1"]=" \3"/p
23363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23364 d
23365 :bsnl
23366 s/["\\]/\\&/g
23367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23368 D["\1"]=" \3\\\\\\n"\\/p
23369 t cont
23370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23371 t cont
23372 d
23373 :cont
23374 n
23375 s/.\{148\}/&'"$ac_delim"'/g
23376 t clear
23377 :clear
23378 s/\\$//
23379 t bsnlc
23380 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23381 d
23382 :bsnlc
23383 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23384 b cont
23385 ' <confdefs.h | sed '
23386 s/'"$ac_delim"'/"\\\
23387 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23388
23389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23390 for (key in D) D_is_set[key] = 1
23391 FS = "\a"
23392 }
23393 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23394 line = \$ 0
23395 split(line, arg, " ")
23396 if (arg[1] == "#") {
23397 defundef = arg[2]
23398 mac1 = arg[3]
23399 } else {
23400 defundef = substr(arg[1], 2)
23401 mac1 = arg[2]
23402 }
23403 split(mac1, mac2, "(") #)
23404 macro = mac2[1]
23405 prefix = substr(line, 1, index(line, defundef) - 1)
23406 if (D_is_set[macro]) {
23407 # Preserve the white space surrounding the "#".
23408 print prefix "define", macro P[macro] D[macro]
23409 next
23410 } else {
23411 # Replace #undef with comments. This is necessary, for example,
23412 # in the case of _POSIX_SOURCE, which is predefined and required
23413 # on some systems where configure will not decide to define it.
23414 if (defundef == "undef") {
23415 print "/*", prefix defundef, macro, "*/"
23416 next
23417 }
23418 }
23419 }
23420 { print }
23421 _ACAWK
23422 _ACEOF
23423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23425 fi # test -n "$CONFIG_HEADERS"
23426
23427
23428 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23429 shift
23430 for ac_tag
23431 do
23432 case $ac_tag in
23433 :[FHLC]) ac_mode=$ac_tag; continue;;
23434 esac
23435 case $ac_mode$ac_tag in
23436 :[FHL]*:*);;
23437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23438 :[FH]-) ac_tag=-:-;;
23439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23440 esac
23441 ac_save_IFS=$IFS
23442 IFS=:
23443 set x $ac_tag
23444 IFS=$ac_save_IFS
23445 shift
23446 ac_file=$1
23447 shift
23448
23449 case $ac_mode in
23450 :L) ac_source=$1;;
23451 :[FH])
23452 ac_file_inputs=
23453 for ac_f
23454 do
23455 case $ac_f in
23456 -) ac_f="$ac_tmp/stdin";;
23457 *) # Look for the file first in the build tree, then in the source tree
23458 # (if the path is not absolute). The absolute path cannot be DOS-style,
23459 # because $ac_f cannot contain `:'.
23460 test -f "$ac_f" ||
23461 case $ac_f in
23462 [\\/$]*) false;;
23463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23464 esac ||
23465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23466 esac
23467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23468 as_fn_append ac_file_inputs " '$ac_f'"
23469 done
23470
23471 # Let's still pretend it is `configure' which instantiates (i.e., don't
23472 # use $as_me), people would be surprised to read:
23473 # /* config.h. Generated by config.status. */
23474 configure_input='Generated from '`
23475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23476 `' by configure.'
23477 if test x"$ac_file" != x-; then
23478 configure_input="$ac_file. $configure_input"
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23480 $as_echo "$as_me: creating $ac_file" >&6;}
23481 fi
23482 # Neutralize special characters interpreted by sed in replacement strings.
23483 case $configure_input in #(
23484 *\&* | *\|* | *\\* )
23485 ac_sed_conf_input=`$as_echo "$configure_input" |
23486 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23487 *) ac_sed_conf_input=$configure_input;;
23488 esac
23489
23490 case $ac_tag in
23491 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23493 esac
23494 ;;
23495 esac
23496
23497 ac_dir=`$as_dirname -- "$ac_file" ||
23498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23499 X"$ac_file" : 'X\(//\)[^/]' \| \
23500 X"$ac_file" : 'X\(//\)$' \| \
23501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23502 $as_echo X"$ac_file" |
23503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23504 s//\1/
23505 q
23506 }
23507 /^X\(\/\/\)[^/].*/{
23508 s//\1/
23509 q
23510 }
23511 /^X\(\/\/\)$/{
23512 s//\1/
23513 q
23514 }
23515 /^X\(\/\).*/{
23516 s//\1/
23517 q
23518 }
23519 s/.*/./; q'`
23520 as_dir="$ac_dir"; as_fn_mkdir_p
23521 ac_builddir=.
23522
23523 case "$ac_dir" in
23524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23525 *)
23526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23527 # A ".." for each directory in $ac_dir_suffix.
23528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23529 case $ac_top_builddir_sub in
23530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23532 esac ;;
23533 esac
23534 ac_abs_top_builddir=$ac_pwd
23535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23536 # for backward compatibility:
23537 ac_top_builddir=$ac_top_build_prefix
23538
23539 case $srcdir in
23540 .) # We are building in place.
23541 ac_srcdir=.
23542 ac_top_srcdir=$ac_top_builddir_sub
23543 ac_abs_top_srcdir=$ac_pwd ;;
23544 [\\/]* | ?:[\\/]* ) # Absolute name.
23545 ac_srcdir=$srcdir$ac_dir_suffix;
23546 ac_top_srcdir=$srcdir
23547 ac_abs_top_srcdir=$srcdir ;;
23548 *) # Relative name.
23549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23550 ac_top_srcdir=$ac_top_build_prefix$srcdir
23551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23552 esac
23553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23554
23555
23556 case $ac_mode in
23557 :F)
23558 #
23559 # CONFIG_FILE
23560 #
23561
23562 case $INSTALL in
23563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23565 esac
23566 ac_MKDIR_P=$MKDIR_P
23567 case $MKDIR_P in
23568 [\\/$]* | ?:[\\/]* ) ;;
23569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23570 esac
23571 _ACEOF
23572
23573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23574 # If the template does not know about datarootdir, expand it.
23575 # FIXME: This hack should be removed a few years after 2.60.
23576 ac_datarootdir_hack=; ac_datarootdir_seen=
23577 ac_sed_dataroot='
23578 /datarootdir/ {
23579 p
23580 q
23581 }
23582 /@datadir@/p
23583 /@docdir@/p
23584 /@infodir@/p
23585 /@localedir@/p
23586 /@mandir@/p'
23587 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23588 *datarootdir*) ac_datarootdir_seen=yes;;
23589 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23591 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23592 _ACEOF
23593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23594 ac_datarootdir_hack='
23595 s&@datadir@&$datadir&g
23596 s&@docdir@&$docdir&g
23597 s&@infodir@&$infodir&g
23598 s&@localedir@&$localedir&g
23599 s&@mandir@&$mandir&g
23600 s&\\\${datarootdir}&$datarootdir&g' ;;
23601 esac
23602 _ACEOF
23603
23604 # Neutralize VPATH when `$srcdir' = `.'.
23605 # Shell code in configure.ac might set extrasub.
23606 # FIXME: do we really want to maintain this feature?
23607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23608 ac_sed_extra="$ac_vpsub
23609 $extrasub
23610 _ACEOF
23611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23612 :t
23613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23614 s|@configure_input@|$ac_sed_conf_input|;t t
23615 s&@top_builddir@&$ac_top_builddir_sub&;t t
23616 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23617 s&@srcdir@&$ac_srcdir&;t t
23618 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23619 s&@top_srcdir@&$ac_top_srcdir&;t t
23620 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23621 s&@builddir@&$ac_builddir&;t t
23622 s&@abs_builddir@&$ac_abs_builddir&;t t
23623 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23624 s&@INSTALL@&$ac_INSTALL&;t t
23625 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23626 $ac_datarootdir_hack
23627 "
23628 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23629 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23630
23631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23632 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23634 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23636 which seems to be undefined. Please make sure it is defined" >&5
23637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23638 which seems to be undefined. Please make sure it is defined" >&2;}
23639
23640 rm -f "$ac_tmp/stdin"
23641 case $ac_file in
23642 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23643 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23644 esac \
23645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23646 ;;
23647 :H)
23648 #
23649 # CONFIG_HEADER
23650 #
23651 if test x"$ac_file" != x-; then
23652 {
23653 $as_echo "/* $configure_input */" \
23654 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23655 } >"$ac_tmp/config.h" \
23656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23657 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23660 else
23661 rm -f "$ac_file"
23662 mv "$ac_tmp/config.h" "$ac_file" \
23663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23664 fi
23665 else
23666 $as_echo "/* $configure_input */" \
23667 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23668 || as_fn_error $? "could not create -" "$LINENO" 5
23669 fi
23670 # Compute "$ac_file"'s index in $config_headers.
23671 _am_arg="$ac_file"
23672 _am_stamp_count=1
23673 for _am_header in $config_headers :; do
23674 case $_am_header in
23675 $_am_arg | $_am_arg:* )
23676 break ;;
23677 * )
23678 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23679 esac
23680 done
23681 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23682 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23683 X"$_am_arg" : 'X\(//\)[^/]' \| \
23684 X"$_am_arg" : 'X\(//\)$' \| \
23685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23686 $as_echo X"$_am_arg" |
23687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23688 s//\1/
23689 q
23690 }
23691 /^X\(\/\/\)[^/].*/{
23692 s//\1/
23693 q
23694 }
23695 /^X\(\/\/\)$/{
23696 s//\1/
23697 q
23698 }
23699 /^X\(\/\).*/{
23700 s//\1/
23701 q
23702 }
23703 s/.*/./; q'`/stamp-h$_am_stamp_count
23704 ;;
23705
23706 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23707 $as_echo "$as_me: executing $ac_file commands" >&6;}
23708 ;;
23709 esac
23710
23711
23712 case $ac_file$ac_mode in
23713 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23714 # Older Autoconf quotes --file arguments for eval, but not when files
23715 # are listed without --file. Let's play safe and only enable the eval
23716 # if we detect the quoting.
23717 case $CONFIG_FILES in
23718 *\'*) eval set x "$CONFIG_FILES" ;;
23719 *) set x $CONFIG_FILES ;;
23720 esac
23721 shift
23722 for mf
23723 do
23724 # Strip MF so we end up with the name of the file.
23725 mf=`echo "$mf" | sed -e 's/:.*$//'`
23726 # Check whether this is an Automake generated Makefile or not.
23727 # We used to match only the files named 'Makefile.in', but
23728 # some people rename them; so instead we look at the file content.
23729 # Grep'ing the first line is not enough: some people post-process
23730 # each Makefile.in and add a new line on top of each file to say so.
23731 # Grep'ing the whole file is not good either: AIX grep has a line
23732 # limit of 2048, but all sed's we know have understand at least 4000.
23733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23734 dirpart=`$as_dirname -- "$mf" ||
23735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$mf" : 'X\(//\)[^/]' \| \
23737 X"$mf" : 'X\(//\)$' \| \
23738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23739 $as_echo X"$mf" |
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741 s//\1/
23742 q
23743 }
23744 /^X\(\/\/\)[^/].*/{
23745 s//\1/
23746 q
23747 }
23748 /^X\(\/\/\)$/{
23749 s//\1/
23750 q
23751 }
23752 /^X\(\/\).*/{
23753 s//\1/
23754 q
23755 }
23756 s/.*/./; q'`
23757 else
23758 continue
23759 fi
23760 # Extract the definition of DEPDIR, am__include, and am__quote
23761 # from the Makefile without running 'make'.
23762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23763 test -z "$DEPDIR" && continue
23764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23765 test -z "$am__include" && continue
23766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23767 # Find all dependency output files, they are included files with
23768 # $(DEPDIR) in their names. We invoke sed twice because it is the
23769 # simplest approach to changing $(DEPDIR) to its actual value in the
23770 # expansion.
23771 for file in `sed -n "
23772 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23773 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23774 # Make sure the directory exists.
23775 test -f "$dirpart/$file" && continue
23776 fdir=`$as_dirname -- "$file" ||
23777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23778 X"$file" : 'X\(//\)[^/]' \| \
23779 X"$file" : 'X\(//\)$' \| \
23780 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23781 $as_echo X"$file" |
23782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23783 s//\1/
23784 q
23785 }
23786 /^X\(\/\/\)[^/].*/{
23787 s//\1/
23788 q
23789 }
23790 /^X\(\/\/\)$/{
23791 s//\1/
23792 q
23793 }
23794 /^X\(\/\).*/{
23795 s//\1/
23796 q
23797 }
23798 s/.*/./; q'`
23799 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23800 # echo "creating $dirpart/$file"
23801 echo '# dummy' > "$dirpart/$file"
23802 done
23803 done
23804 }
23805 ;;
23806 "libtool":C)
23807
23808 # See if we are running on zsh, and set the options that allow our
23809 # commands through without removal of \ escapes.
23810 if test -n "${ZSH_VERSION+set}"; then
23811 setopt NO_GLOB_SUBST
23812 fi
23813
23814 cfgfile=${ofile}T
23815 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23816 $RM "$cfgfile"
23817
23818 cat <<_LT_EOF >> "$cfgfile"
23819 #! $SHELL
23820 # Generated automatically by $as_me ($PACKAGE) $VERSION
23821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23823
23824 # Provide generalized library-building support services.
23825 # Written by Gordon Matzigkeit, 1996
23826
23827 # Copyright (C) 2014 Free Software Foundation, Inc.
23828 # This is free software; see the source for copying conditions. There is NO
23829 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23830
23831 # GNU Libtool is free software; you can redistribute it and/or modify
23832 # it under the terms of the GNU General Public License as published by
23833 # the Free Software Foundation; either version 2 of of the License, or
23834 # (at your option) any later version.
23835 #
23836 # As a special exception to the GNU General Public License, if you
23837 # distribute this file as part of a program or library that is built
23838 # using GNU Libtool, you may include this file under the same
23839 # distribution terms that you use for the rest of that program.
23840 #
23841 # GNU Libtool is distributed in the hope that it will be useful, but
23842 # WITHOUT ANY WARRANTY; without even the implied warranty of
23843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23844 # GNU General Public License for more details.
23845 #
23846 # You should have received a copy of the GNU General Public License
23847 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23848
23849
23850 # The names of the tagged configurations supported by this script.
23851 available_tags='CXX '
23852
23853 # Configured defaults for sys_lib_dlsearch_path munging.
23854 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23855
23856 # ### BEGIN LIBTOOL CONFIG
23857
23858 # Which release of libtool.m4 was used?
23859 macro_version=$macro_version
23860 macro_revision=$macro_revision
23861
23862 # Whether or not to build static libraries.
23863 build_old_libs=$enable_static
23864
23865 # Whether or not to build shared libraries.
23866 build_libtool_libs=$enable_shared
23867
23868 # What type of objects to build.
23869 pic_mode=$pic_mode
23870
23871 # Whether or not to optimize for fast installation.
23872 fast_install=$enable_fast_install
23873
23874 # Shared archive member basename,for filename based shared library versioning on AIX.
23875 shared_archive_member_spec=$shared_archive_member_spec
23876
23877 # Shell to use when invoking shell scripts.
23878 SHELL=$lt_SHELL
23879
23880 # An echo program that protects backslashes.
23881 ECHO=$lt_ECHO
23882
23883 # The PATH separator for the build system.
23884 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23885
23886 # The host system.
23887 host_alias=$host_alias
23888 host=$host
23889 host_os=$host_os
23890
23891 # The build system.
23892 build_alias=$build_alias
23893 build=$build
23894 build_os=$build_os
23895
23896 # A sed program that does not truncate output.
23897 SED=$lt_SED
23898
23899 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23900 Xsed="\$SED -e 1s/^X//"
23901
23902 # A grep program that handles long lines.
23903 GREP=$lt_GREP
23904
23905 # An ERE matcher.
23906 EGREP=$lt_EGREP
23907
23908 # A literal string matcher.
23909 FGREP=$lt_FGREP
23910
23911 # A BSD- or MS-compatible name lister.
23912 NM=$lt_NM
23913
23914 # Whether we need soft or hard links.
23915 LN_S=$lt_LN_S
23916
23917 # What is the maximum length of a command?
23918 max_cmd_len=$max_cmd_len
23919
23920 # Object file suffix (normally "o").
23921 objext=$ac_objext
23922
23923 # Executable file suffix (normally "").
23924 exeext=$exeext
23925
23926 # whether the shell understands "unset".
23927 lt_unset=$lt_unset
23928
23929 # turn spaces into newlines.
23930 SP2NL=$lt_lt_SP2NL
23931
23932 # turn newlines into spaces.
23933 NL2SP=$lt_lt_NL2SP
23934
23935 # convert \$build file names to \$host format.
23936 to_host_file_cmd=$lt_cv_to_host_file_cmd
23937
23938 # convert \$build files to toolchain format.
23939 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23940
23941 # An object symbol dumper.
23942 OBJDUMP=$lt_OBJDUMP
23943
23944 # Method to check whether dependent libraries are shared objects.
23945 deplibs_check_method=$lt_deplibs_check_method
23946
23947 # Command to use when deplibs_check_method = "file_magic".
23948 file_magic_cmd=$lt_file_magic_cmd
23949
23950 # How to find potential files when deplibs_check_method = "file_magic".
23951 file_magic_glob=$lt_file_magic_glob
23952
23953 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23954 want_nocaseglob=$lt_want_nocaseglob
23955
23956 # DLL creation program.
23957 DLLTOOL=$lt_DLLTOOL
23958
23959 # Command to associate shared and link libraries.
23960 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23961
23962 # The archiver.
23963 AR=$lt_AR
23964
23965 # Flags to create an archive.
23966 AR_FLAGS=$lt_AR_FLAGS
23967
23968 # How to feed a file listing to the archiver.
23969 archiver_list_spec=$lt_archiver_list_spec
23970
23971 # A symbol stripping program.
23972 STRIP=$lt_STRIP
23973
23974 # Commands used to install an old-style archive.
23975 RANLIB=$lt_RANLIB
23976 old_postinstall_cmds=$lt_old_postinstall_cmds
23977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23978
23979 # Whether to use a lock for old archive extraction.
23980 lock_old_archive_extraction=$lock_old_archive_extraction
23981
23982 # A C compiler.
23983 LTCC=$lt_CC
23984
23985 # LTCC compiler flags.
23986 LTCFLAGS=$lt_CFLAGS
23987
23988 # Take the output of nm and produce a listing of raw symbols and C names.
23989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23990
23991 # Transform the output of nm in a proper C declaration.
23992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23993
23994 # Transform the output of nm into a list of symbols to manually relocate.
23995 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23996
23997 # Transform the output of nm in a C name address pair.
23998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23999
24000 # Transform the output of nm in a C name address pair when lib prefix is needed.
24001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24002
24003 # The name lister interface.
24004 nm_interface=$lt_lt_cv_nm_interface
24005
24006 # Specify filename containing input files for \$NM.
24007 nm_file_list_spec=$lt_nm_file_list_spec
24008
24009 # The root where to search for dependent libraries,and where our libraries should be installed.
24010 lt_sysroot=$lt_sysroot
24011
24012 # Command to truncate a binary pipe.
24013 lt_truncate_bin=$lt_lt_cv_truncate_bin
24014
24015 # The name of the directory that contains temporary libtool files.
24016 objdir=$objdir
24017
24018 # Used to examine libraries when file_magic_cmd begins with "file".
24019 MAGIC_CMD=$MAGIC_CMD
24020
24021 # Must we lock files when doing compilation?
24022 need_locks=$lt_need_locks
24023
24024 # Manifest tool.
24025 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24026
24027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24028 DSYMUTIL=$lt_DSYMUTIL
24029
24030 # Tool to change global to local symbols on Mac OS X.
24031 NMEDIT=$lt_NMEDIT
24032
24033 # Tool to manipulate fat objects and archives on Mac OS X.
24034 LIPO=$lt_LIPO
24035
24036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24037 OTOOL=$lt_OTOOL
24038
24039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24040 OTOOL64=$lt_OTOOL64
24041
24042 # Old archive suffix (normally "a").
24043 libext=$libext
24044
24045 # Shared library suffix (normally ".so").
24046 shrext_cmds=$lt_shrext_cmds
24047
24048 # The commands to extract the exported symbol list from a shared archive.
24049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24050
24051 # Variables whose values should be saved in libtool wrapper scripts and
24052 # restored at link time.
24053 variables_saved_for_relink=$lt_variables_saved_for_relink
24054
24055 # Do we need the "lib" prefix for modules?
24056 need_lib_prefix=$need_lib_prefix
24057
24058 # Do we need a version for libraries?
24059 need_version=$need_version
24060
24061 # Library versioning type.
24062 version_type=$version_type
24063
24064 # Shared library runtime path variable.
24065 runpath_var=$runpath_var
24066
24067 # Shared library path variable.
24068 shlibpath_var=$shlibpath_var
24069
24070 # Is shlibpath searched before the hard-coded library search path?
24071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24072
24073 # Format of library name prefix.
24074 libname_spec=$lt_libname_spec
24075
24076 # List of archive names. First name is the real one, the rest are links.
24077 # The last name is the one that the linker finds with -lNAME
24078 library_names_spec=$lt_library_names_spec
24079
24080 # The coded name of the library, if different from the real name.
24081 soname_spec=$lt_soname_spec
24082
24083 # Permission mode override for installation of shared libraries.
24084 install_override_mode=$lt_install_override_mode
24085
24086 # Command to use after installation of a shared archive.
24087 postinstall_cmds=$lt_postinstall_cmds
24088
24089 # Command to use after uninstallation of a shared archive.
24090 postuninstall_cmds=$lt_postuninstall_cmds
24091
24092 # Commands used to finish a libtool library installation in a directory.
24093 finish_cmds=$lt_finish_cmds
24094
24095 # As "finish_cmds", except a single script fragment to be evaled but
24096 # not shown.
24097 finish_eval=$lt_finish_eval
24098
24099 # Whether we should hardcode library paths into libraries.
24100 hardcode_into_libs=$hardcode_into_libs
24101
24102 # Compile-time system search path for libraries.
24103 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24104
24105 # Detected run-time system search path for libraries.
24106 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24107
24108 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24109 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24110
24111 # Whether dlopen is supported.
24112 dlopen_support=$enable_dlopen
24113
24114 # Whether dlopen of programs is supported.
24115 dlopen_self=$enable_dlopen_self
24116
24117 # Whether dlopen of statically linked programs is supported.
24118 dlopen_self_static=$enable_dlopen_self_static
24119
24120 # Commands to strip libraries.
24121 old_striplib=$lt_old_striplib
24122 striplib=$lt_striplib
24123
24124
24125 # The linker used to build libraries.
24126 LD=$lt_LD
24127
24128 # How to create reloadable object files.
24129 reload_flag=$lt_reload_flag
24130 reload_cmds=$lt_reload_cmds
24131
24132 # Commands used to build an old-style archive.
24133 old_archive_cmds=$lt_old_archive_cmds
24134
24135 # A language specific compiler.
24136 CC=$lt_compiler
24137
24138 # Is the compiler the GNU compiler?
24139 with_gcc=$GCC
24140
24141 # Compiler flag to turn off builtin functions.
24142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24143
24144 # Additional compiler flags for building library objects.
24145 pic_flag=$lt_lt_prog_compiler_pic
24146
24147 # How to pass a linker flag through the compiler.
24148 wl=$lt_lt_prog_compiler_wl
24149
24150 # Compiler flag to prevent dynamic linking.
24151 link_static_flag=$lt_lt_prog_compiler_static
24152
24153 # Does compiler simultaneously support -c and -o options?
24154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24155
24156 # Whether or not to add -lc for building shared libraries.
24157 build_libtool_need_lc=$archive_cmds_need_lc
24158
24159 # Whether or not to disallow shared libs when runtime libs are static.
24160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24161
24162 # Compiler flag to allow reflexive dlopens.
24163 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24164
24165 # Compiler flag to generate shared objects directly from archives.
24166 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24167
24168 # Whether the compiler copes with passing no objects directly.
24169 compiler_needs_object=$lt_compiler_needs_object
24170
24171 # Create an old-style archive from a shared archive.
24172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24173
24174 # Create a temporary old-style archive to link instead of a shared archive.
24175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24176
24177 # Commands used to build a shared archive.
24178 archive_cmds=$lt_archive_cmds
24179 archive_expsym_cmds=$lt_archive_expsym_cmds
24180
24181 # Commands used to build a loadable module if different from building
24182 # a shared archive.
24183 module_cmds=$lt_module_cmds
24184 module_expsym_cmds=$lt_module_expsym_cmds
24185
24186 # Whether we are building with GNU ld or not.
24187 with_gnu_ld=$lt_with_gnu_ld
24188
24189 # Flag that allows shared libraries with undefined symbols to be built.
24190 allow_undefined_flag=$lt_allow_undefined_flag
24191
24192 # Flag that enforces no undefined symbols.
24193 no_undefined_flag=$lt_no_undefined_flag
24194
24195 # Flag to hardcode \$libdir into a binary during linking.
24196 # This must work even if \$libdir does not exist
24197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24198
24199 # Whether we need a single "-rpath" flag with a separated argument.
24200 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24201
24202 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24203 # DIR into the resulting binary.
24204 hardcode_direct=$hardcode_direct
24205
24206 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24207 # DIR into the resulting binary and the resulting library dependency is
24208 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24209 # library is relocated.
24210 hardcode_direct_absolute=$hardcode_direct_absolute
24211
24212 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24213 # into the resulting binary.
24214 hardcode_minus_L=$hardcode_minus_L
24215
24216 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24217 # into the resulting binary.
24218 hardcode_shlibpath_var=$hardcode_shlibpath_var
24219
24220 # Set to "yes" if building a shared library automatically hardcodes DIR
24221 # into the library and all subsequent libraries and executables linked
24222 # against it.
24223 hardcode_automatic=$hardcode_automatic
24224
24225 # Set to yes if linker adds runtime paths of dependent libraries
24226 # to runtime path list.
24227 inherit_rpath=$inherit_rpath
24228
24229 # Whether libtool must link a program against all its dependency libraries.
24230 link_all_deplibs=$link_all_deplibs
24231
24232 # Set to "yes" if exported symbols are required.
24233 always_export_symbols=$always_export_symbols
24234
24235 # The commands to list exported symbols.
24236 export_symbols_cmds=$lt_export_symbols_cmds
24237
24238 # Symbols that should not be listed in the preloaded symbols.
24239 exclude_expsyms=$lt_exclude_expsyms
24240
24241 # Symbols that must always be exported.
24242 include_expsyms=$lt_include_expsyms
24243
24244 # Commands necessary for linking programs (against libraries) with templates.
24245 prelink_cmds=$lt_prelink_cmds
24246
24247 # Commands necessary for finishing linking programs.
24248 postlink_cmds=$lt_postlink_cmds
24249
24250 # Specify filename containing input files.
24251 file_list_spec=$lt_file_list_spec
24252
24253 # How to hardcode a shared library path into an executable.
24254 hardcode_action=$hardcode_action
24255
24256 # The directories searched by this compiler when creating a shared library.
24257 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24258
24259 # Dependencies to place before and after the objects being linked to
24260 # create a shared library.
24261 predep_objects=$lt_predep_objects
24262 postdep_objects=$lt_postdep_objects
24263 predeps=$lt_predeps
24264 postdeps=$lt_postdeps
24265
24266 # The library search path used internally by the compiler when linking
24267 # a shared library.
24268 compiler_lib_search_path=$lt_compiler_lib_search_path
24269
24270 # ### END LIBTOOL CONFIG
24271
24272 _LT_EOF
24273
24274 cat <<'_LT_EOF' >> "$cfgfile"
24275
24276 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24277
24278 # func_munge_path_list VARIABLE PATH
24279 # -----------------------------------
24280 # VARIABLE is name of variable containing _space_ separated list of
24281 # directories to be munged by the contents of PATH, which is string
24282 # having a format:
24283 # "DIR[:DIR]:"
24284 # string "DIR[ DIR]" will be prepended to VARIABLE
24285 # ":DIR[:DIR]"
24286 # string "DIR[ DIR]" will be appended to VARIABLE
24287 # "DIRP[:DIRP]::[DIRA:]DIRA"
24288 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24289 # "DIRA[ DIRA]" will be appended to VARIABLE
24290 # "DIR[:DIR]"
24291 # VARIABLE will be replaced by "DIR[ DIR]"
24292 func_munge_path_list ()
24293 {
24294 case x$2 in
24295 x)
24296 ;;
24297 *:)
24298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24299 ;;
24300 x:*)
24301 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24302 ;;
24303 *::*)
24304 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24305 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24306 ;;
24307 *)
24308 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24309 ;;
24310 esac
24311 }
24312
24313
24314 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24315 func_cc_basename ()
24316 {
24317 for cc_temp in $*""; do
24318 case $cc_temp in
24319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24321 \-*) ;;
24322 *) break;;
24323 esac
24324 done
24325 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24326 }
24327
24328
24329 # ### END FUNCTIONS SHARED WITH CONFIGURE
24330
24331 _LT_EOF
24332
24333 case $host_os in
24334 aix3*)
24335 cat <<\_LT_EOF >> "$cfgfile"
24336 # AIX sometimes has problems with the GCC collect2 program. For some
24337 # reason, if we set the COLLECT_NAMES environment variable, the problems
24338 # vanish in a puff of smoke.
24339 if test set != "${COLLECT_NAMES+set}"; then
24340 COLLECT_NAMES=
24341 export COLLECT_NAMES
24342 fi
24343 _LT_EOF
24344 ;;
24345 esac
24346
24347
24348 ltmain=$ac_aux_dir/ltmain.sh
24349
24350
24351 # We use sed instead of cat because bash on DJGPP gets confused if
24352 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24353 # text mode, it properly converts lines to CR/LF. This bash problem
24354 # is reportedly fixed, but why not run on old versions too?
24355 sed '$q' "$ltmain" >> "$cfgfile" \
24356 || (rm -f "$cfgfile"; exit 1)
24357
24358 mv -f "$cfgfile" "$ofile" ||
24359 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24360 chmod +x "$ofile"
24361
24362
24363 cat <<_LT_EOF >> "$ofile"
24364
24365 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24366
24367 # The linker used to build libraries.
24368 LD=$lt_LD_CXX
24369
24370 # How to create reloadable object files.
24371 reload_flag=$lt_reload_flag_CXX
24372 reload_cmds=$lt_reload_cmds_CXX
24373
24374 # Commands used to build an old-style archive.
24375 old_archive_cmds=$lt_old_archive_cmds_CXX
24376
24377 # A language specific compiler.
24378 CC=$lt_compiler_CXX
24379
24380 # Is the compiler the GNU compiler?
24381 with_gcc=$GCC_CXX
24382
24383 # Compiler flag to turn off builtin functions.
24384 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24385
24386 # Additional compiler flags for building library objects.
24387 pic_flag=$lt_lt_prog_compiler_pic_CXX
24388
24389 # How to pass a linker flag through the compiler.
24390 wl=$lt_lt_prog_compiler_wl_CXX
24391
24392 # Compiler flag to prevent dynamic linking.
24393 link_static_flag=$lt_lt_prog_compiler_static_CXX
24394
24395 # Does compiler simultaneously support -c and -o options?
24396 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24397
24398 # Whether or not to add -lc for building shared libraries.
24399 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24400
24401 # Whether or not to disallow shared libs when runtime libs are static.
24402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24403
24404 # Compiler flag to allow reflexive dlopens.
24405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24406
24407 # Compiler flag to generate shared objects directly from archives.
24408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24409
24410 # Whether the compiler copes with passing no objects directly.
24411 compiler_needs_object=$lt_compiler_needs_object_CXX
24412
24413 # Create an old-style archive from a shared archive.
24414 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24415
24416 # Create a temporary old-style archive to link instead of a shared archive.
24417 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24418
24419 # Commands used to build a shared archive.
24420 archive_cmds=$lt_archive_cmds_CXX
24421 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24422
24423 # Commands used to build a loadable module if different from building
24424 # a shared archive.
24425 module_cmds=$lt_module_cmds_CXX
24426 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24427
24428 # Whether we are building with GNU ld or not.
24429 with_gnu_ld=$lt_with_gnu_ld_CXX
24430
24431 # Flag that allows shared libraries with undefined symbols to be built.
24432 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24433
24434 # Flag that enforces no undefined symbols.
24435 no_undefined_flag=$lt_no_undefined_flag_CXX
24436
24437 # Flag to hardcode \$libdir into a binary during linking.
24438 # This must work even if \$libdir does not exist
24439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24440
24441 # Whether we need a single "-rpath" flag with a separated argument.
24442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24443
24444 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24445 # DIR into the resulting binary.
24446 hardcode_direct=$hardcode_direct_CXX
24447
24448 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24449 # DIR into the resulting binary and the resulting library dependency is
24450 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
24451 # library is relocated.
24452 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24453
24454 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24455 # into the resulting binary.
24456 hardcode_minus_L=$hardcode_minus_L_CXX
24457
24458 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24459 # into the resulting binary.
24460 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24461
24462 # Set to "yes" if building a shared library automatically hardcodes DIR
24463 # into the library and all subsequent libraries and executables linked
24464 # against it.
24465 hardcode_automatic=$hardcode_automatic_CXX
24466
24467 # Set to yes if linker adds runtime paths of dependent libraries
24468 # to runtime path list.
24469 inherit_rpath=$inherit_rpath_CXX
24470
24471 # Whether libtool must link a program against all its dependency libraries.
24472 link_all_deplibs=$link_all_deplibs_CXX
24473
24474 # Set to "yes" if exported symbols are required.
24475 always_export_symbols=$always_export_symbols_CXX
24476
24477 # The commands to list exported symbols.
24478 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24479
24480 # Symbols that should not be listed in the preloaded symbols.
24481 exclude_expsyms=$lt_exclude_expsyms_CXX
24482
24483 # Symbols that must always be exported.
24484 include_expsyms=$lt_include_expsyms_CXX
24485
24486 # Commands necessary for linking programs (against libraries) with templates.
24487 prelink_cmds=$lt_prelink_cmds_CXX
24488
24489 # Commands necessary for finishing linking programs.
24490 postlink_cmds=$lt_postlink_cmds_CXX
24491
24492 # Specify filename containing input files.
24493 file_list_spec=$lt_file_list_spec_CXX
24494
24495 # How to hardcode a shared library path into an executable.
24496 hardcode_action=$hardcode_action_CXX
24497
24498 # The directories searched by this compiler when creating a shared library.
24499 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24500
24501 # Dependencies to place before and after the objects being linked to
24502 # create a shared library.
24503 predep_objects=$lt_predep_objects_CXX
24504 postdep_objects=$lt_postdep_objects_CXX
24505 predeps=$lt_predeps_CXX
24506 postdeps=$lt_postdeps_CXX
24507
24508 # The library search path used internally by the compiler when linking
24509 # a shared library.
24510 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24511
24512 # ### END LIBTOOL TAG CONFIG: CXX
24513 _LT_EOF
24514
24515 ;;
24516
24517 esac
24518 done # for ac_tag
24519
24520
24521 as_fn_exit 0
24522 _ACEOF
24523 ac_clean_files=$ac_clean_files_save
24524
24525 test $ac_write_fail = 0 ||
24526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24527
24528
24529 # configure is writing to config.log, and then calls config.status.
24530 # config.status does its own redirection, appending to config.log.
24531 # Unfortunately, on DOS this fails, as config.log is still kept open
24532 # by configure, so config.status won't be able to write to it; its
24533 # output is simply discarded. So we exec the FD to /dev/null,
24534 # effectively closing config.log, so it can be properly (re)opened and
24535 # appended to by config.status. When coming back to configure, we
24536 # need to make the FD available again.
24537 if test "$no_create" != yes; then
24538 ac_cs_success=:
24539 ac_config_status_args=
24540 test "$silent" = yes &&
24541 ac_config_status_args="$ac_config_status_args --quiet"
24542 exec 5>/dev/null
24543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24544 exec 5>>config.log
24545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24546 # would make configure fail if this is the last instruction.
24547 $ac_cs_success || as_fn_exit 1
24548 fi
24549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24552 fi
24553