Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libe-book 0.1.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libe-book'
589 PACKAGE_TARNAME='libe-book'
590 PACKAGE_VERSION='0.1.3'
591 PACKAGE_STRING='libe-book 0.1.3'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 REVENGE_STREAM_LIBS
636 REVENGE_STREAM_CFLAGS
637 REVENGE_GENERATORS_LIBS
638 REVENGE_GENERATORS_CFLAGS
639 BUILD_FUZZERS_FALSE
640 BUILD_FUZZERS_TRUE
641 WITH_LIBEBOOK_TOOLS_FALSE
642 WITH_LIBEBOOK_TOOLS_TRUE
643 WITH_LIBEBOOK_DOCS_FALSE
644 WITH_LIBEBOOK_DOCS_TRUE
645 DOXYGEN
646 WITH_LIBEBOOK_TESTS_FALSE
647 WITH_LIBEBOOK_TESTS_TRUE
648 CPPUNIT_LIBS
649 CPPUNIT_CFLAGS
650 DEBUG_CXXFLAGS
651 WINDRES
652 PLATFORM_WIN32_FALSE
653 PLATFORM_WIN32_TRUE
654 EBOOK2TEXT_WIN32_RESOURCE
655 EBOOK2RAW_WIN32_RESOURCE
656 EBOOK2HTML_WIN32_RESOURCE
657 LIBEBOOK_WIN32_RESOURCE
658 OS_WIN32_FALSE
659 OS_WIN32_TRUE
660 LT_AGE
661 LT_REVISION
662 LT_CURRENT
663 EBOOK_VERSION
664 EBOOK_MICRO_VERSION
665 EBOOK_MINOR_VERSION
666 EBOOK_MAJOR_VERSION
667 ICU_LIBS
668 ICU_CFLAGS
669 BOOST_CFLAGS
670 ENABLE_EXPERIMENTAL_FALSE
671 ENABLE_EXPERIMENTAL_TRUE
672 REQUIRES_EXPERIMENTAL
673 ENABLE_EXPERIMENTAL
674 MSPACK_LIBS
675 MSPACK_CFLAGS
676 HUBBUB_LIBS
677 HUBBUB_CFLAGS
678 CSS_LIBS
679 CSS_CFLAGS
680 WITH_LIBLANGTAG_FALSE
681 WITH_LIBLANGTAG_TRUE
682 LANGTAG_LIBS
683 LANGTAG_CFLAGS
684 ZLIB_LIBS
685 ZLIB_CFLAGS
686 XML_LIBS
687 XML_CFLAGS
688 REVENGE_LIBS
689 REVENGE_CFLAGS
690 GPERF
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 HAVE_CXX11
695 CXXCPP
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 OBJDUMP
722 DLLTOOL
723 AS
724 LN_S
725 am__fastdepCXX_FALSE
726 am__fastdepCXX_TRUE
727 CXXDEPMODE
728 ac_ct_CXX
729 CXXFLAGS
730 CXX
731 CPP
732 am__fastdepCC_FALSE
733 am__fastdepCC_TRUE
734 CCDEPMODE
735 am__nodep
736 AMDEPBACKSLASH
737 AMDEP_FALSE
738 AMDEP_TRUE
739 am__quote
740 am__include
741 DEPDIR
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 ac_ct_AR
750 AR
751 AM_BACKSLASH
752 AM_DEFAULT_VERBOSITY
753 AM_DEFAULT_V
754 AM_V
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 target_alias
779 host_alias
780 build_alias
781 LIBS
782 ECHO_T
783 ECHO_N
784 ECHO_C
785 DEFS
786 mandir
787 localedir
788 libdir
789 psdir
790 pdfdir
791 dvidir
792 htmldir
793 infodir
794 docdir
795 oldincludedir
796 includedir
797 localstatedir
798 sharedstatedir
799 sysconfdir
800 datadir
801 datarootdir
802 libexecdir
803 sbindir
804 bindir
805 program_transform_name
806 prefix
807 exec_prefix
808 PACKAGE_URL
809 PACKAGE_BUGREPORT
810 PACKAGE_STRING
811 PACKAGE_VERSION
812 PACKAGE_TARNAME
813 PACKAGE_NAME
814 PATH_SEPARATOR
815 SHELL'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_silent_rules
820 enable_experimental
821 enable_dependency_tracking
822 enable_static
823 with_pic
824 enable_shared
825 enable_fast_install
826 with_aix_soname
827 with_gnu_ld
828 with_sysroot
829 enable_libtool_lock
830 with_liblangtag
831 enable_werror
832 enable_weffc
833 enable_wparanoic
834 enable_debug
835 enable_tests
836 with_docs
837 with_tools
838 enable_fuzzers
839 '
840 ac_precious_vars='build_alias
841 host_alias
842 target_alias
843 CC
844 CFLAGS
845 LDFLAGS
846 LIBS
847 CPPFLAGS
848 CPP
849 CXX
850 CXXFLAGS
851 CCC
852 LT_SYS_LIBRARY_PATH
853 CXXCPP
854 PKG_CONFIG
855 PKG_CONFIG_PATH
856 PKG_CONFIG_LIBDIR
857 REVENGE_CFLAGS
858 REVENGE_LIBS
859 XML_CFLAGS
860 XML_LIBS
861 ZLIB_CFLAGS
862 ZLIB_LIBS
863 LANGTAG_CFLAGS
864 LANGTAG_LIBS
865 CSS_CFLAGS
866 CSS_LIBS
867 HUBBUB_CFLAGS
868 HUBBUB_LIBS
869 MSPACK_CFLAGS
870 MSPACK_LIBS
871 ICU_CFLAGS
872 ICU_LIBS
873 CPPUNIT_CFLAGS
874 CPPUNIT_LIBS
875 REVENGE_GENERATORS_CFLAGS
876 REVENGE_GENERATORS_LIBS
877 REVENGE_STREAM_CFLAGS
878 REVENGE_STREAM_LIBS'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures libe-book 0.1.3 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/libe-book]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of libe-book 0.1.3:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-experimental enable experimental (and largely unfinished) HTML
1500 support
1501 --enable-dependency-tracking
1502 do not reject slow dependency extractors
1503 --disable-dependency-tracking
1504 speeds up one-time build
1505 --enable-static[=PKGS] build static libraries [default=no]
1506 --enable-shared[=PKGS] build shared libraries [default=yes]
1507 --enable-fast-install[=PKGS]
1508 optimize for fast installation [default=yes]
1509 --disable-libtool-lock avoid locking (might break parallel builds)
1510 --enable-werror Treat all warnings as errors, usefull for
1511 development
1512 --disable-weffc Disable -Weffc++ warnings, usefull when using an old
1513 version of gcc or of boost
1514 --enable-wparanoic Enable a lot of warnings...
1515 --enable-debug Turn on debugging
1516 --enable-tests Build and run unit tests
1517 --enable-fuzzers Build fuzzer(s)
1518
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1523 both]
1524 --with-aix-soname=aix|svr4|both
1525 shared library versioning (aka "SONAME") variant to
1526 provide on AIX, [default=aix].
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1529 compiler's sysroot if not specified).
1530 --without-liblangtag Disable use of liblangtag
1531 --without-docs Do not build documentation
1532 --without-tools Do not build conversion tools
1533
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1542 CPP C preprocessor
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
1547 CXXCPP C++ preprocessor
1548 PKG_CONFIG path to pkg-config utility
1549 PKG_CONFIG_PATH
1550 directories to add to pkg-config's search path
1551 PKG_CONFIG_LIBDIR
1552 path overriding pkg-config's built-in search path
1553 REVENGE_CFLAGS
1554 C compiler flags for REVENGE, overriding pkg-config
1555 REVENGE_LIBS
1556 linker flags for REVENGE, overriding pkg-config
1557 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1558 XML_LIBS linker flags for XML, overriding pkg-config
1559 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1560 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1561 LANGTAG_CFLAGS
1562 C compiler flags for LANGTAG, overriding pkg-config
1563 LANGTAG_LIBS
1564 linker flags for LANGTAG, overriding pkg-config
1565 CSS_CFLAGS C compiler flags for CSS, overriding pkg-config
1566 CSS_LIBS linker flags for CSS, overriding pkg-config
1567 HUBBUB_CFLAGS
1568 C compiler flags for HUBBUB, overriding pkg-config
1569 HUBBUB_LIBS linker flags for HUBBUB, overriding pkg-config
1570 MSPACK_CFLAGS
1571 C compiler flags for MSPACK, overriding pkg-config
1572 MSPACK_LIBS linker flags for MSPACK, overriding pkg-config
1573 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1574 ICU_LIBS linker flags for ICU, overriding pkg-config
1575 CPPUNIT_CFLAGS
1576 C compiler flags for CPPUNIT, overriding pkg-config
1577 CPPUNIT_LIBS
1578 linker flags for CPPUNIT, overriding pkg-config
1579 REVENGE_GENERATORS_CFLAGS
1580 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1581 REVENGE_GENERATORS_LIBS
1582 linker flags for REVENGE_GENERATORS, overriding pkg-config
1583 REVENGE_STREAM_CFLAGS
1584 C compiler flags for REVENGE_STREAM, overriding pkg-config
1585 REVENGE_STREAM_LIBS
1586 linker flags for REVENGE_STREAM, overriding pkg-config
1587
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1590
1591 Report bugs to the package provider.
1592 _ACEOF
1593 ac_status=$?
1594 fi
1595
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1650
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 libe-book configure 0.1.3
1655 generated by GNU Autoconf 2.69
1656
1657 Copyright (C) 2012 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1662 fi
1663
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1667
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_compile
1705
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_cpp
1742
1743 # ac_fn_cxx_try_compile LINENO
1744 # ----------------------------
1745 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_cxx_try_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext
1750 if { { ac_try="$ac_compile"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_compile") 2>conftest.err
1758 ac_status=$?
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1763 fi
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_cxx_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_cxx_try_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists and can be compiled using the include files in
1830 # INCLUDES, setting the cache variable VAR accordingly.
1831 ac_fn_c_check_header_compile ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1841 $4
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 fi
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_header_compile
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status
1893 fi
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1897
1898 } # ac_fn_c_try_run
1899
1900 # ac_fn_c_check_func LINENO FUNC VAR
1901 # ----------------------------------
1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903 ac_fn_c_check_func ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915 #define $2 innocuous_$2
1916
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922 #ifdef __STDC__
1923 # include <limits.h>
1924 #else
1925 # include <assert.h>
1926 #endif
1927
1928 #undef $2
1929
1930 /* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 char $2 ();
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined __stub_$2 || defined __stub___$2
1941 choke me
1942 #endif
1943
1944 int
1945 main ()
1946 {
1947 return $2 ();
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954 else
1955 eval "$3=no"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965 } # ac_fn_c_check_func
1966
1967 # ac_fn_cxx_try_cpp LINENO
1968 # ------------------------
1969 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1970 ac_fn_cxx_try_cpp ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if { { ac_try="$ac_cpp conftest.$ac_ext"
1974 case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981 ac_status=$?
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1986 fi
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } > conftest.i && {
1989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 }; then :
1992 ac_retval=0
1993 else
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 ac_retval=1
1998 fi
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2001
2002 } # ac_fn_cxx_try_cpp
2003
2004 # ac_fn_cxx_try_link LINENO
2005 # -------------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_link ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2019 ac_status=$?
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2024 fi
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_cxx_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2032 }; then :
2033 ac_retval=0
2034 else
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 ac_retval=1
2039 fi
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2047
2048 } # ac_fn_cxx_try_link
2049
2050 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2051 # ---------------------------------------------------------
2052 # Tests whether HEADER exists and can be compiled using the include files in
2053 # INCLUDES, setting the cache variable VAR accordingly.
2054 ac_fn_cxx_check_header_compile ()
2055 {
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_cxx_try_compile "$LINENO"; then :
2068 eval "$3=yes"
2069 else
2070 eval "$3=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079 } # ac_fn_cxx_check_header_compile
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2083
2084 It was created by libe-book $as_me 0.1.3, which was
2085 generated by GNU Autoconf 2.69. Invocation command line was
2086
2087 $ $0 $@
2088
2089 _ACEOF
2090 exec 5>>config.log
2091 {
2092 cat <<_ASUNAME
2093 ## --------- ##
2094 ## Platform. ##
2095 ## --------- ##
2096
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2102
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2105
2106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2113
2114 _ASUNAME
2115
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 $as_echo "PATH: $as_dir"
2122 done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148 for ac_arg
2149 do
2150 case $ac_arg in
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2154 continue ;;
2155 *\'*)
2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 esac
2158 case $ac_pass in
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160 2)
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2164 else
2165 case $ac_arg in
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 esac
2173 ;;
2174 -* ) ac_must_keep_next=true ;;
2175 esac
2176 fi
2177 as_fn_append ac_configure_args " '$ac_arg'"
2178 ;;
2179 esac
2180 done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
2192 {
2193 echo
2194
2195 $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2198 echo
2199 # The following way of writing the cache mishandles newlines in values,
2200 (
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2203 case $ac_val in #(
2204 *${as_nl}*)
2205 case $ac_var in #(
2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208 esac
2209 case $ac_var in #(
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2213 esac ;;
2214 esac
2215 done
2216 (set) 2>&1 |
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2219 sed -n \
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222 ;; #(
2223 *)
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225 ;;
2226 esac |
2227 sort
2228 )
2229 echo
2230
2231 $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2234 echo
2235 for ac_var in $ac_subst_vars
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244
2245 if test -n "$ac_subst_files"; then
2246 $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2249 echo
2250 for ac_var in $ac_subst_files
2251 do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 esac
2256 $as_echo "$ac_var='\''$ac_val'\''"
2257 done | sort
2258 echo
2259 fi
2260
2261 if test -s confdefs.h; then
2262 $as_echo "## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##"
2265 echo
2266 cat confdefs.h
2267 echo
2268 fi
2269 test "$ac_signal" != 0 &&
2270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
2272 } >&5
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275 exit $exit_status
2276 ' 0
2277 for ac_signal in 1 2 13 15; do
2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2279 done
2280 ac_signal=0
2281
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2284
2285 $as_echo "/* confdefs.h */" > confdefs.h
2286
2287 # Predefined preprocessor variables.
2288
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_NAME "$PACKAGE_NAME"
2291 _ACEOF
2292
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2295 _ACEOF
2296
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2299 _ACEOF
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_STRING "$PACKAGE_STRING"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_URL "$PACKAGE_URL"
2311 _ACEOF
2312
2313
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2316 ac_site_file1=NONE
2317 ac_site_file2=NONE
2318 if test -n "$CONFIG_SITE"; then
2319 # We do not want a PATH search for config.site.
2320 case $CONFIG_SITE in #((
2321 -*) ac_site_file1=./$CONFIG_SITE;;
2322 */*) ac_site_file1=$CONFIG_SITE;;
2323 *) ac_site_file1=./$CONFIG_SITE;;
2324 esac
2325 elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2328 else
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
2331 fi
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2333 do
2334 test "x$ac_site_file" = xNONE && continue
2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338 sed 's/^/| /' "$ac_site_file" >&5
2339 . "$ac_site_file" \
2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2344 fi
2345 done
2346
2347 if test -r "$cache_file"; then
2348 # Some versions of bash will fail to source /dev/null (special files
2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2353 case $cache_file in
2354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355 *) . "./$cache_file";;
2356 esac
2357 fi
2358 else
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2361 >$cache_file
2362 fi
2363
2364 # Check that the precious variables saved in the cache have kept the same
2365 # value.
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369 eval ac_new_set=\$ac_env_${ac_var}_set
2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371 eval ac_new_val=\$ac_env_${ac_var}_value
2372 case $ac_old_set,$ac_new_set in
2373 set,)
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2377 ,set)
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380 ac_cache_corrupted=: ;;
2381 ,);;
2382 *)
2383 if test "x$ac_old_val" != "x$ac_new_val"; then
2384 # differences in whitespace do not lead to failure.
2385 ac_old_val_w=`echo x $ac_old_val`
2386 ac_new_val_w=`echo x $ac_new_val`
2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390 ac_cache_corrupted=:
2391 else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394 eval $ac_var=\$ac_old_val
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2397 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2400 fi;;
2401 esac
2402 # Pass precious variables to config.status.
2403 if test "$ac_new_set" = set; then
2404 case $ac_new_val in
2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 *) ac_arg=$ac_var=$ac_new_val ;;
2407 esac
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2411 esac
2412 fi
2413 done
2414 if $ac_cache_corrupted; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2420 fi
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2424
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430
2431
2432
2433 ac_config_headers="$ac_config_headers config.h"
2434
2435 am__api_version='1.15'
2436
2437 ac_aux_dir=
2438 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439 if test -f "$ac_dir/install-sh"; then
2440 ac_aux_dir=$ac_dir
2441 ac_install_sh="$ac_aux_dir/install-sh -c"
2442 break
2443 elif test -f "$ac_dir/install.sh"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/install.sh -c"
2446 break
2447 elif test -f "$ac_dir/shtool"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/shtool install -c"
2450 break
2451 fi
2452 done
2453 if test -z "$ac_aux_dir"; then
2454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2455 fi
2456
2457 # These three variables are undocumented and unsupported,
2458 # and are intended to be withdrawn in a future Autoconf release.
2459 # They can cause serious problems if a builder's source tree is in a directory
2460 # whose full name contains unusual characters.
2461 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2462 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2463 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2464
2465
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2472 # AIX /bin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in #((
2493 ./ | .// | /[cC]/* | \
2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2496 /usr/ucb/* ) ;;
2497 *)
2498 # OSF1 and SCO ODT 3.0 have their own names for install.
2499 # Don't use installbsd from OSF since it installs stuff as root
2500 # by default.
2501 for ac_prog in ginstall scoinst install; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2504 if test $ac_prog = install &&
2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # AIX install. It has an incompatible calling convention.
2507 :
2508 elif test $ac_prog = install &&
2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # program-specific install script used by HP pwplus--don't use.
2511 :
2512 else
2513 rm -rf conftest.one conftest.two conftest.dir
2514 echo one > conftest.one
2515 echo two > conftest.two
2516 mkdir conftest.dir
2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518 test -s conftest.one && test -s conftest.two &&
2519 test -s conftest.dir/conftest.one &&
2520 test -s conftest.dir/conftest.two
2521 then
2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2523 break 3
2524 fi
2525 fi
2526 fi
2527 done
2528 done
2529 ;;
2530 esac
2531
2532 done
2533 IFS=$as_save_IFS
2534
2535 rm -rf conftest.one conftest.two conftest.dir
2536
2537 fi
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL=$ac_cv_path_install
2540 else
2541 # As a last resort, use the slow shell script. Don't cache a
2542 # value for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the value is a relative name.
2545 INSTALL=$ac_install_sh
2546 fi
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2550
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2561 # Reject unsafe characters in $srcdir or the absolute working directory
2562 # name. Accept space and tab only in the latter.
2563 am_lf='
2564 '
2565 case `pwd` in
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2568 esac
2569 case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2572 esac
2573
2574 # Do 'set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2578 # directory).
2579 if (
2580 am_has_slept=no
2581 for am_try in 1 2; do
2582 echo "timestamp, slept: $am_has_slept" > conftest.file
2583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t "$srcdir/configure" conftest.file`
2587 fi
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" "$LINENO" 5
2597 fi
2598 if test "$2" = conftest.file || test $am_try -eq 2; then
2599 break
2600 fi
2601 # Just in case.
2602 sleep 1
2603 am_has_slept=yes
2604 done
2605 test "$2" = conftest.file
2606 )
2607 then
2608 # Ok.
2609 :
2610 else
2611 as_fn_error $? "newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 # If we didn't sleep, we still need to ensure time stamps of config.status and
2617 # generated files are strictly newer.
2618 am_sleep_pid=
2619 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2620 ( sleep 1 ) &
2621 am_sleep_pid=$!
2622 fi
2623
2624 rm -f conftest.file
2625
2626 test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628 # Use a double $ so make ignores it.
2629 test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631 # Double any \ or $.
2632 # By default was `s,x,x', remove it if useless.
2633 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2635
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639 if test x"${MISSING+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643 *)
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645 esac
2646 fi
2647 # Use eval to expand $SHELL
2648 if eval "$MISSING --is-lightweight"; then
2649 am_missing_run="$MISSING "
2650 else
2651 am_missing_run=
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2653 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2654 fi
2655
2656 if test x"${install_sh+set}" != xset; then
2657 case $am_aux_dir in
2658 *\ * | *\ *)
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660 *)
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 esac
2663 fi
2664
2665 # Installed binaries are usually stripped using 'strip' when the user
2666 # run "make install-strip". However 'strip' might not be the right
2667 # tool to use in cross-compilation environments, therefore Automake
2668 # will honor the 'STRIP' environment variable to overrule this program.
2669 if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}strip; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_STRIP+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 STRIP=$ac_cv_prog_STRIP
2699 if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701 $as_echo "$STRIP" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 fi
2709 if test -z "$ac_cv_prog_STRIP"; then
2710 ac_ct_STRIP=$STRIP
2711 # Extract the first word of "strip", so it can be a program name with args.
2712 set dummy strip; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739 if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741 $as_echo "$ac_ct_STRIP" >&6; }
2742 else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 $as_echo "no" >&6; }
2745 fi
2746
2747 if test "x$ac_ct_STRIP" = x; then
2748 STRIP=":"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751 yes:)
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756 STRIP=$ac_ct_STRIP
2757 fi
2758 else
2759 STRIP="$ac_cv_prog_STRIP"
2760 fi
2761
2762 fi
2763 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767 if test -z "$MKDIR_P"; then
2768 if ${ac_cv_path_mkdir+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_prog in mkdir gmkdir; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784 break 3;;
2785 esac
2786 done
2787 done
2788 done
2789 IFS=$as_save_IFS
2790
2791 fi
2792
2793 test -d ./--version && rmdir ./--version
2794 if test "${ac_cv_path_mkdir+set}" = set; then
2795 MKDIR_P="$ac_cv_path_mkdir -p"
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for MKDIR_P within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 MKDIR_P="$ac_install_sh -d"
2802 fi
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805 $as_echo "$MKDIR_P" >&6; }
2806
2807 for ac_prog in gawk mawk nawk awk
2808 do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if ${ac_cv_prog_AWK+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_AWK="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 AWK=$ac_cv_prog_AWK
2837 if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839 $as_echo "$AWK" >&6; }
2840 else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845
2846 test -n "$AWK" && break
2847 done
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2851 set x ${MAKE-make}
2852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 cat >conftest.make <<\_ACEOF
2857 SHELL = /bin/sh
2858 all:
2859 @echo '@@@%%%=$(MAKE)=@@@%%%'
2860 _ACEOF
2861 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2863 *@@@%%%=?*=@@@%%%*)
2864 eval ac_cv_prog_make_${ac_make}_set=yes;;
2865 *)
2866 eval ac_cv_prog_make_${ac_make}_set=no;;
2867 esac
2868 rm -f conftest.make
2869 fi
2870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 SET_MAKE=
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 SET_MAKE="MAKE=${MAKE-make}"
2878 fi
2879
2880 rm -rf .tst 2>/dev/null
2881 mkdir .tst 2>/dev/null
2882 if test -d .tst; then
2883 am__leading_dot=.
2884 else
2885 am__leading_dot=_
2886 fi
2887 rmdir .tst 2>/dev/null
2888
2889 # Check whether --enable-silent-rules was given.
2890 if test "${enable_silent_rules+set}" = set; then :
2891 enableval=$enable_silent_rules;
2892 fi
2893
2894 case $enable_silent_rules in # (((
2895 yes) AM_DEFAULT_VERBOSITY=0;;
2896 no) AM_DEFAULT_VERBOSITY=1;;
2897 *) AM_DEFAULT_VERBOSITY=1;;
2898 esac
2899 am_make=${MAKE-make}
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2901 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2902 if ${am_cv_make_support_nested_variables+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if $as_echo 'TRUE=$(BAR$(V))
2906 BAR0=false
2907 BAR1=true
2908 V=1
2909 am__doit:
2910 @$(TRUE)
2911 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2912 am_cv_make_support_nested_variables=yes
2913 else
2914 am_cv_make_support_nested_variables=no
2915 fi
2916 fi
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2918 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2919 if test $am_cv_make_support_nested_variables = yes; then
2920 AM_V='$(V)'
2921 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2922 else
2923 AM_V=$AM_DEFAULT_VERBOSITY
2924 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2925 fi
2926 AM_BACKSLASH='\'
2927
2928 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status; then
2934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2935 fi
2936 fi
2937
2938 # test whether we have cygpath
2939 if test -z "$CYGPATH_W"; then
2940 if (cygpath --version) >/dev/null 2>/dev/null; then
2941 CYGPATH_W='cygpath -w'
2942 else
2943 CYGPATH_W=echo
2944 fi
2945 fi
2946
2947
2948 # Define the identity of the package.
2949 PACKAGE='libe-book'
2950 VERSION='0.1.3'
2951
2952
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE "$PACKAGE"
2955 _ACEOF
2956
2957
2958 cat >>confdefs.h <<_ACEOF
2959 #define VERSION "$VERSION"
2960 _ACEOF
2961
2962 # Some tools Automake needs.
2963
2964 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965
2966
2967 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2968
2969
2970 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971
2972
2973 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2974
2975
2976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2977
2978 # For better backward compatibility. To be removed once Automake 1.9.x
2979 # dies out for good. For more background, see:
2980 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2981 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2982 mkdir_p='$(MKDIR_P)'
2983
2984 # We need awk for the "check" target (and possibly the TAP driver). The
2985 # system "awk" is bad on some platforms.
2986 # Always define AMTAR for backward compatibility. Yes, it's still used
2987 # in the wild :-( We should find a proper way to deprecate it ...
2988 AMTAR='$${TAR-tar}'
2989
2990
2991 # We'll loop over all known methods to create a tar archive until one works.
2992 _am_tools='gnutar pax cpio none'
2993
2994 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2995
2996
2997
2998
2999
3000
3001 # POSIX will say in a future version that running "rm -f" with no argument
3002 # is OK; and we want to be able to make that assumption in our Makefile
3003 # recipes. So use an aggressive probe to check that the usage we want is
3004 # actually supported "in the wild" to an acceptable degree.
3005 # See automake bug#10828.
3006 # To make any issue more visible, cause the running configure to be aborted
3007 # by default if the 'rm' program in use doesn't match our expectations; the
3008 # user can still override this though.
3009 if rm -f && rm -fr && rm -rf; then : OK; else
3010 cat >&2 <<'END'
3011 Oops!
3012
3013 Your 'rm' program seems unable to run without file operands specified
3014 on the command line, even when the '-f' option is present. This is contrary
3015 to the behaviour of most rm programs out there, and not conforming with
3016 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3017
3018 Please tell [email protected] about your system, including the value
3019 of your $PATH and any error possibly output before this message. This
3020 can help us improve future automake versions.
3021
3022 END
3023 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3024 echo 'Configuration will proceed anyway, since you have set the' >&2
3025 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3026 echo >&2
3027 else
3028 cat >&2 <<'END'
3029 Aborting the configuration process, to ensure you take notice of the issue.
3030
3031 You can download and install GNU coreutils to get an 'rm' implementation
3032 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3033
3034 If you want to complete the configuration process using your problematic
3035 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3036 to "yes", and re-run configure.
3037
3038 END
3039 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3040 fi
3041 fi
3042
3043 # Check whether --enable-silent-rules was given.
3044 if test "${enable_silent_rules+set}" = set; then :
3045 enableval=$enable_silent_rules;
3046 fi
3047
3048 case $enable_silent_rules in # (((
3049 yes) AM_DEFAULT_VERBOSITY=0;;
3050 no) AM_DEFAULT_VERBOSITY=1;;
3051 *) AM_DEFAULT_VERBOSITY=0;;
3052 esac
3053 am_make=${MAKE-make}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3055 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3056 if ${am_cv_make_support_nested_variables+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if $as_echo 'TRUE=$(BAR$(V))
3060 BAR0=false
3061 BAR1=true
3062 V=1
3063 am__doit:
3064 @$(TRUE)
3065 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3066 am_cv_make_support_nested_variables=yes
3067 else
3068 am_cv_make_support_nested_variables=no
3069 fi
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3072 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3073 if test $am_cv_make_support_nested_variables = yes; then
3074 AM_V='$(V)'
3075 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3076 else
3077 AM_V=$AM_DEFAULT_VERBOSITY
3078 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3079 fi
3080 AM_BACKSLASH='\'
3081
3082 ac_ext=cpp
3083 ac_cpp='$CXXCPP $CPPFLAGS'
3084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3087
3088
3089 # Check whether --enable-experimental was given.
3090 if test "${enable_experimental+set}" = set; then :
3091 enableval=$enable_experimental; enable_experimental="$enableval"
3092 else
3093 enable_experimental=no
3094 fi
3095
3096
3097 # ===========================
3098 # Find required base packages
3099 # ===========================
3100 DEPDIR="${am__leading_dot}deps"
3101
3102 ac_config_commands="$ac_config_commands depfiles"
3103
3104
3105 am_make=${MAKE-make}
3106 cat > confinc << 'END'
3107 am__doit:
3108 @echo this is the am__doit target
3109 .PHONY: am__doit
3110 END
3111 # If we don't find an include directive, just comment out the code.
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3113 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3114 am__include="#"
3115 am__quote=
3116 _am_result=none
3117 # First try GNU make style include.
3118 echo "include confinc" > confmf
3119 # Ignore all kinds of additional output from 'make'.
3120 case `$am_make -s -f confmf 2> /dev/null` in #(
3121 *the\ am__doit\ target*)
3122 am__include=include
3123 am__quote=
3124 _am_result=GNU
3125 ;;
3126 esac
3127 # Now try BSD make style include.
3128 if test "$am__include" = "#"; then
3129 echo '.include "confinc"' > confmf
3130 case `$am_make -s -f confmf 2> /dev/null` in #(
3131 *the\ am__doit\ target*)
3132 am__include=.include
3133 am__quote="\""
3134 _am_result=BSD
3135 ;;
3136 esac
3137 fi
3138
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3141 $as_echo "$_am_result" >&6; }
3142 rm -f confinc confmf
3143
3144 # Check whether --enable-dependency-tracking was given.
3145 if test "${enable_dependency_tracking+set}" = set; then :
3146 enableval=$enable_dependency_tracking;
3147 fi
3148
3149 if test "x$enable_dependency_tracking" != xno; then
3150 am_depcomp="$ac_aux_dir/depcomp"
3151 AMDEPBACKSLASH='\'
3152 am__nodep='_no'
3153 fi
3154 if test "x$enable_dependency_tracking" != xno; then
3155 AMDEP_TRUE=
3156 AMDEP_FALSE='#'
3157 else
3158 AMDEP_TRUE='#'
3159 AMDEP_FALSE=
3160 fi
3161
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$ac_cv_prog_CC"; then
3208 ac_ct_CC=$CC
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210 set dummy gcc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_CC="gcc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239 $as_echo "$ac_ct_CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249 yes:)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3253 esac
3254 CC=$ac_ct_CC
3255 fi
3256 else
3257 CC="$ac_cv_prog_CC"
3258 fi
3259
3260 if test -z "$CC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}cc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="${ac_tool_prefix}cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 fi
3301 if test -z "$CC"; then
3302 # Extract the first word of "cc", so it can be a program name with args.
3303 set dummy cc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 ac_prog_rejected=no
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3315 do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3323 fi
3324 ac_cv_prog_CC="cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328 done
3329 done
3330 IFS=$as_save_IFS
3331
3332 if test $ac_prog_rejected = yes; then
3333 # We found a bogon in the path, so make sure we never use it.
3334 set dummy $ac_cv_prog_CC
3335 shift
3336 if test $# != 0; then
3337 # We chose a different compiler from the bogus one.
3338 # However, it has the same basename, so the bogon will be chosen
3339 # first if we set CC to just the basename; use the full file name.
3340 shift
3341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3342 fi
3343 fi
3344 fi
3345 fi
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 fi
3354
3355
3356 fi
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3360 do
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382 done
3383 done
3384 IFS=$as_save_IFS
3385
3386 fi
3387 fi
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391 $as_echo "$CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 fi
3396
3397
3398 test -n "$CC" && break
3399 done
3400 fi
3401 if test -z "$CC"; then
3402 ac_ct_CC=$CC
3403 for ac_prog in cl.exe
3404 do
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406 set dummy $ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 if test -n "$ac_ct_CC"; then
3413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 fi
3431 fi
3432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433 if test -n "$ac_ct_CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3435 $as_echo "$ac_ct_CC" >&6; }
3436 else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 fi
3440
3441
3442 test -n "$ac_ct_CC" && break
3443 done
3444
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454 CC=$ac_ct_CC
3455 fi
3456 fi
3457
3458 fi
3459
3460
3461 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "no acceptable C compiler found in \$PATH
3464 See \`config.log' for more details" "$LINENO" 5; }
3465
3466 # Provide some information about the compiler.
3467 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468 set X $ac_compile
3469 ac_compiler=$2
3470 for ac_option in --version -v -V -qversion; do
3471 { { ac_try="$ac_compiler $ac_option >&5"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3479 ac_status=$?
3480 if test -s conftest.err; then
3481 sed '10a\
3482 ... rest of stderr output deleted ...
3483 10q' conftest.err >conftest.er1
3484 cat conftest.er1 >&5
3485 fi
3486 rm -f conftest.er1 conftest.err
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489 done
3490
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 ac_clean_files_save=$ac_clean_files
3503 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3504 # Try to create an executable without -o first, disregard a.out.
3505 # It will help us diagnose broken compilers, and finding out an intuition
3506 # of exeext.
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3508 $as_echo_n "checking whether the C compiler works... " >&6; }
3509 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510
3511 # The possible output files:
3512 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3513
3514 ac_rmfiles=
3515 for ac_file in $ac_files
3516 do
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520 esac
3521 done
3522 rm -f $ac_rmfiles
3523
3524 if { { ac_try="$ac_link_default"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link_default") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3538 # so that the user can short-circuit this test for compilers unknown to
3539 # Autoconf.
3540 for ac_file in $ac_files ''
3541 do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3545 ;;
3546 [ab].out )
3547 # We found the default executable, but exeext='' is most
3548 # certainly right.
3549 break;;
3550 *.* )
3551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 then :; else
3553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 fi
3555 # We set ac_cv_exeext here because the later test for it is not
3556 # safe: cross compilers may not add the suffix if given an `-o'
3557 # argument, so we may need to know it at that point already.
3558 # Even if this section looks crufty: it has the advantage of
3559 # actually working.
3560 break;;
3561 * )
3562 break;;
3563 esac
3564 done
3565 test "$ac_cv_exeext" = no && ac_cv_exeext=
3566
3567 else
3568 ac_file=''
3569 fi
3570 if test -z "$ac_file"; then :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error 77 "C compiler cannot create executables
3579 See \`config.log' for more details" "$LINENO" 5; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582 $as_echo "yes" >&6; }
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3585 $as_echo_n "checking for C compiler default output file name... " >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587 $as_echo "$ac_file" >&6; }
3588 ac_exeext=$ac_cv_exeext
3589
3590 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3593 $as_echo_n "checking for suffix of executables... " >&6; }
3594 if { { ac_try="$ac_link"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3606 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3607 # work properly (i.e., refer to `conftest.exe'), while it won't with
3608 # `rm'.
3609 for ac_file in conftest.exe conftest conftest.*; do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 break;;
3615 * ) break;;
3616 esac
3617 done
3618 else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3622 See \`config.log' for more details" "$LINENO" 5; }
3623 fi
3624 rm -f conftest conftest$ac_cv_exeext
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3626 $as_echo "$ac_cv_exeext" >&6; }
3627
3628 rm -f conftest.$ac_ext
3629 EXEEXT=$ac_cv_exeext
3630 ac_exeext=$EXEEXT
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdio.h>
3634 int
3635 main ()
3636 {
3637 FILE *f = fopen ("conftest.out", "w");
3638 return ferror (f) || fclose (f) != 0;
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 ac_clean_files="$ac_clean_files conftest.out"
3645 # Check that the compiler produces executables we can run. If not, either
3646 # the compiler is broken, or we cross compile.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3648 $as_echo_n "checking whether we are cross compiling... " >&6; }
3649 if test "$cross_compiling" != yes; then
3650 { { ac_try="$ac_link"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 if { ac_try='./conftest$ac_cv_exeext'
3662 { { case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot run C compiled programs.
3680 If you meant to cross compile, use \`--host'.
3681 See \`config.log' for more details" "$LINENO" 5; }
3682 fi
3683 fi
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3686 $as_echo "$cross_compiling" >&6; }
3687
3688 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3689 ac_clean_files=$ac_clean_files_save
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691 $as_echo_n "checking for suffix of object files... " >&6; }
3692 if ${ac_cv_objext+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 rm -f conftest.o conftest.obj
3707 if { { ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725 done
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of object files: cannot compile
3733 See \`config.log' for more details" "$LINENO" 5; }
3734 fi
3735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738 $as_echo "$ac_cv_objext" >&6; }
3739 OBJEXT=$ac_cv_objext
3740 ac_objext=$OBJEXT
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743 if ${ac_cv_c_compiler_gnu+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748
3749 int
3750 main ()
3751 {
3752 #ifndef __GNUC__
3753 choke me
3754 #endif
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762 else
3763 ac_compiler_gnu=no
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771 if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773 else
3774 GCC=
3775 fi
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3780 if ${ac_cv_prog_cc_g+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804
3805 int
3806 main ()
3807 {
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814
3815 else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 fi
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 struct stat;
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3874 {
3875 return p[i];
3876 }
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3878 {
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3885 }
3886
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3907 int
3908 main ()
3909 {
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 do
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3927
3928 fi
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3931 x)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3937 *)
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942 if test "x$ac_cv_prog_cc_c89" != xno; then :
3943
3944 fi
3945
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959 if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3989 fi
3990 done
3991 rm -f core conftest*
3992 unset am_i
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3996 if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4003 fi
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
4010
4011 depcc="$CC" am_compiler_list=
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4014 $as_echo_n "checking dependency style of $depcc... " >&6; }
4015 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4019 # We make a subdir and do the tests there. Otherwise we can end up
4020 # making bogus files that we don't know about and never remove. For
4021 # instance it was reported that on HP-UX the gcc test will end up
4022 # making a dummy file named 'D' -- because '-MD' means "put the output
4023 # in D".
4024 rm -rf conftest.dir
4025 mkdir conftest.dir
4026 # Copy depcomp to subdir because otherwise we won't find it if we're
4027 # using a relative directory.
4028 cp "$am_depcomp" conftest.dir
4029 cd conftest.dir
4030 # We will build objects and dependencies in a subdirectory because
4031 # it helps to detect inapplicable dependency modes. For instance
4032 # both Tru64's cc and ICC support -MD to output dependencies as a
4033 # side effect of compilation, but ICC will put the dependencies in
4034 # the current directory while Tru64 will put them in the object
4035 # directory.
4036 mkdir sub
4037
4038 am_cv_CC_dependencies_compiler_type=none
4039 if test "$am_compiler_list" = ""; then
4040 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041 fi
4042 am__universal=false
4043 case " $depcc " in #(
4044 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4045 esac
4046
4047 for depmode in $am_compiler_list; do
4048 # Setup a source with many dependencies, because some compilers
4049 # like to wrap large dependency lists on column 80 (with \), and
4050 # we should not choose a depcomp mode which is confused by this.
4051 #
4052 # We need to recreate these files for each test, as the compiler may
4053 # overwrite some of them when testing with obscure command lines.
4054 # This happens at least with the AIX C compiler.
4055 : > sub/conftest.c
4056 for i in 1 2 3 4 5 6; do
4057 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4058 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4059 # Solaris 10 /bin/sh.
4060 echo '/* dummy */' > sub/conftst$i.h
4061 done
4062 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063
4064 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4065 # mode. It turns out that the SunPro C++ compiler does not properly
4066 # handle '-M -o', and we need to detect this. Also, some Intel
4067 # versions had trouble with output in subdirs.
4068 am__obj=sub/conftest.${OBJEXT-o}
4069 am__minus_obj="-o $am__obj"
4070 case $depmode in
4071 gcc)
4072 # This depmode causes a compiler race in universal mode.
4073 test "$am__universal" = false || continue
4074 ;;
4075 nosideeffect)
4076 # After this tag, mechanisms are not by side-effect, so they'll
4077 # only be used when explicitly requested.
4078 if test "x$enable_dependency_tracking" = xyes; then
4079 continue
4080 else
4081 break
4082 fi
4083 ;;
4084 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4085 # This compiler won't grok '-c -o', but also, the minuso test has
4086 # not run yet. These depmodes are late enough in the game, and
4087 # so weak that their functioning should not be impacted.
4088 am__obj=conftest.${OBJEXT-o}
4089 am__minus_obj=
4090 ;;
4091 none) break ;;
4092 esac
4093 if depmode=$depmode \
4094 source=sub/conftest.c object=$am__obj \
4095 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4097 >/dev/null 2>conftest.err &&
4098 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4100 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4101 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4102 # icc doesn't choke on unknown options, it will just issue warnings
4103 # or remarks (even with -Werror). So we grep stderr for any message
4104 # that says an option was ignored or not supported.
4105 # When given -MP, icc 7.0 and 7.1 complain thusly:
4106 # icc: Command line warning: ignoring option '-M'; no argument required
4107 # The diagnosis changed in icc 8.0:
4108 # icc: Command line remark: option '-MP' not supported
4109 if (grep 'ignoring option' conftest.err ||
4110 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4111 am_cv_CC_dependencies_compiler_type=$depmode
4112 break
4113 fi
4114 fi
4115 done
4116
4117 cd ..
4118 rm -rf conftest.dir
4119 else
4120 am_cv_CC_dependencies_compiler_type=none
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4125 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4126 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4127
4128 if
4129 test "x$enable_dependency_tracking" != xno \
4130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_TRUE=
4132 am__fastdepCC_FALSE='#'
4133 else
4134 am__fastdepCC_TRUE='#'
4135 am__fastdepCC_FALSE=
4136 fi
4137
4138
4139
4140 if test -n "$ac_tool_prefix"; then
4141 for ac_prog in ar lib "link -lib"
4142 do
4143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if ${ac_cv_prog_AR+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$AR"; then
4151 ac_cv_prog_AR="$AR" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164 done
4165 done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 AR=$ac_cv_prog_AR
4171 if test -n "$AR"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4173 $as_echo "$AR" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179
4180 test -n "$AR" && break
4181 done
4182 fi
4183 if test -z "$AR"; then
4184 ac_ct_AR=$AR
4185 for ac_prog in ar lib "link -lib"
4186 do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$ac_ct_AR"; then
4195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_ac_ct_AR="$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4215 if test -n "$ac_ct_AR"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4217 $as_echo "$ac_ct_AR" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224 test -n "$ac_ct_AR" && break
4225 done
4226
4227 if test "x$ac_ct_AR" = x; then
4228 AR="false"
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 AR=$ac_ct_AR
4237 fi
4238 fi
4239
4240 : ${AR=ar}
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4243 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4244 if ${am_cv_ar_interface+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 am_cv_ar_interface=ar
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 int some_variable = 0;
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4261 (eval $am_ar_try) 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }
4265 if test "$ac_status" -eq 0; then
4266 am_cv_ar_interface=ar
4267 else
4268 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4270 (eval $am_ar_try) 2>&5
4271 ac_status=$?
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274 if test "$ac_status" -eq 0; then
4275 am_cv_ar_interface=lib
4276 else
4277 am_cv_ar_interface=unknown
4278 fi
4279 fi
4280 rm -f conftest.lib libconftest.a
4281
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 ac_ext=cpp
4285 ac_cpp='$CXXCPP $CPPFLAGS'
4286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4292 $as_echo "$am_cv_ar_interface" >&6; }
4293
4294 case $am_cv_ar_interface in
4295 ar)
4296 ;;
4297 lib)
4298 # Microsoft lib, so override with the ar-lib wrapper script.
4299 # FIXME: It is wrong to rewrite AR.
4300 # But if we don't then we get into trouble of one sort or another.
4301 # A longer-term fix would be to have automake use am__AR in this case,
4302 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4303 # similar.
4304 AR="$am_aux_dir/ar-lib $AR"
4305 ;;
4306 unknown)
4307 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4308 ;;
4309 esac
4310
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_prog_CC+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$CC"; then
4325 ac_cv_prog_CC="$CC" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 CC=$ac_cv_prog_CC
4345 if test -n "$CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 fi
4355 if test -z "$ac_cv_prog_CC"; then
4356 ac_ct_CC=$CC
4357 # Extract the first word of "gcc", so it can be a program name with args.
4358 set dummy gcc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$ac_ct_CC"; then
4365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_ac_ct_CC="gcc"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4385 if test -n "$ac_ct_CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4387 $as_echo "$ac_ct_CC" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393 if test "x$ac_ct_CC" = x; then
4394 CC=""
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402 CC=$ac_ct_CC
4403 fi
4404 else
4405 CC="$ac_cv_prog_CC"
4406 fi
4407
4408 if test -z "$CC"; then
4409 if test -n "$ac_tool_prefix"; then
4410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4411 set dummy ${ac_tool_prefix}cc; ac_word=$2
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if ${ac_cv_prog_CC+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$CC"; then
4418 ac_cv_prog_CC="$CC" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427 ac_cv_prog_CC="${ac_tool_prefix}cc"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4430 fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 fi
4436 fi
4437 CC=$ac_cv_prog_CC
4438 if test -n "$CC"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4440 $as_echo "$CC" >&6; }
4441 else
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4444 fi
4445
4446
4447 fi
4448 fi
4449 if test -z "$CC"; then
4450 # Extract the first word of "cc", so it can be a program name with args.
4451 set dummy cc; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_prog_CC+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$CC"; then
4458 ac_cv_prog_CC="$CC" # Let the user override the test.
4459 else
4460 ac_prog_rejected=no
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4469 ac_prog_rejected=yes
4470 continue
4471 fi
4472 ac_cv_prog_CC="cc"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 if test $ac_prog_rejected = yes; then
4481 # We found a bogon in the path, so make sure we never use it.
4482 set dummy $ac_cv_prog_CC
4483 shift
4484 if test $# != 0; then
4485 # We chose a different compiler from the bogus one.
4486 # However, it has the same basename, so the bogon will be chosen
4487 # first if we set CC to just the basename; use the full file name.
4488 shift
4489 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4490 fi
4491 fi
4492 fi
4493 fi
4494 CC=$ac_cv_prog_CC
4495 if test -n "$CC"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4497 $as_echo "$CC" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504 fi
4505 if test -z "$CC"; then
4506 if test -n "$ac_tool_prefix"; then
4507 for ac_prog in cl.exe
4508 do
4509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 CC=$ac_cv_prog_CC
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546 test -n "$CC" && break
4547 done
4548 fi
4549 if test -z "$CC"; then
4550 ac_ct_CC=$CC
4551 for ac_prog in cl.exe
4552 do
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554 set dummy $ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$ac_ct_CC"; then
4561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_ac_ct_CC="$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4581 if test -n "$ac_ct_CC"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4583 $as_echo "$ac_ct_CC" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 test -n "$ac_ct_CC" && break
4591 done
4592
4593 if test "x$ac_ct_CC" = x; then
4594 CC=""
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597 yes:)
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600 ac_tool_warned=yes ;;
4601 esac
4602 CC=$ac_ct_CC
4603 fi
4604 fi
4605
4606 fi
4607
4608
4609 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error $? "no acceptable C compiler found in \$PATH
4612 See \`config.log' for more details" "$LINENO" 5; }
4613
4614 # Provide some information about the compiler.
4615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4616 set X $ac_compile
4617 ac_compiler=$2
4618 for ac_option in --version -v -V -qversion; do
4619 { { ac_try="$ac_compiler $ac_option >&5"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4627 ac_status=$?
4628 if test -s conftest.err; then
4629 sed '10a\
4630 ... rest of stderr output deleted ...
4631 10q' conftest.err >conftest.er1
4632 cat conftest.er1 >&5
4633 fi
4634 rm -f conftest.er1 conftest.err
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }
4637 done
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4641 if ${ac_cv_c_compiler_gnu+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main ()
4649 {
4650 #ifndef __GNUC__
4651 choke me
4652 #endif
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_compile "$LINENO"; then :
4659 ac_compiler_gnu=yes
4660 else
4661 ac_compiler_gnu=no
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4669 if test $ac_compiler_gnu = yes; then
4670 GCC=yes
4671 else
4672 GCC=
4673 fi
4674 ac_test_CFLAGS=${CFLAGS+set}
4675 ac_save_CFLAGS=$CFLAGS
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4678 if ${ac_cv_prog_cc_g+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 ac_save_c_werror_flag=$ac_c_werror_flag
4682 ac_c_werror_flag=yes
4683 ac_cv_prog_cc_g=no
4684 CFLAGS="-g"
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 int
4689 main ()
4690 {
4691
4692 ;
4693 return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 ac_cv_prog_cc_g=yes
4698 else
4699 CFLAGS=""
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main ()
4705 {
4706
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712
4713 else
4714 ac_c_werror_flag=$ac_save_c_werror_flag
4715 CFLAGS="-g"
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main ()
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 ac_cv_prog_cc_g=yes
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_c_werror_flag=$ac_save_c_werror_flag
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4738 $as_echo "$ac_cv_prog_cc_g" >&6; }
4739 if test "$ac_test_CFLAGS" = set; then
4740 CFLAGS=$ac_save_CFLAGS
4741 elif test $ac_cv_prog_cc_g = yes; then
4742 if test "$GCC" = yes; then
4743 CFLAGS="-g -O2"
4744 else
4745 CFLAGS="-g"
4746 fi
4747 else
4748 if test "$GCC" = yes; then
4749 CFLAGS="-O2"
4750 else
4751 CFLAGS=
4752 fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4755 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4756 if ${ac_cv_prog_cc_c89+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_cv_prog_cc_c89=no
4760 ac_save_CC=$CC
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #include <stdarg.h>
4764 #include <stdio.h>
4765 struct stat;
4766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4767 struct buf { int x; };
4768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4769 static char *e (p, i)
4770 char **p;
4771 int i;
4772 {
4773 return p[i];
4774 }
4775 static char *f (char * (*g) (char **, int), char **p, ...)
4776 {
4777 char *s;
4778 va_list v;
4779 va_start (v,p);
4780 s = g (p, va_arg (v,int));
4781 va_end (v);
4782 return s;
4783 }
4784
4785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4786 function prototypes and stuff, but not '\xHH' hex character constants.
4787 These don't provoke an error unfortunately, instead are silently treated
4788 as 'x'. The following induces an error, until -std is added to get
4789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4790 array size at least. It's necessary to write '\x00'==0 to get something
4791 that's true only with -std. */
4792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4793
4794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4795 inside strings and character constants. */
4796 #define FOO(x) 'x'
4797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4798
4799 int test (int i, double x);
4800 struct s1 {int (*f) (int a);};
4801 struct s2 {int (*f) (double a);};
4802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4803 int argc;
4804 char **argv;
4805 int
4806 main ()
4807 {
4808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4815 do
4816 CC="$ac_save_CC $ac_arg"
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 ac_cv_prog_cc_c89=$ac_arg
4819 fi
4820 rm -f core conftest.err conftest.$ac_objext
4821 test "x$ac_cv_prog_cc_c89" != "xno" && break
4822 done
4823 rm -f conftest.$ac_ext
4824 CC=$ac_save_CC
4825
4826 fi
4827 # AC_CACHE_VAL
4828 case "x$ac_cv_prog_cc_c89" in
4829 x)
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4831 $as_echo "none needed" >&6; } ;;
4832 xno)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834 $as_echo "unsupported" >&6; } ;;
4835 *)
4836 CC="$CC $ac_cv_prog_cc_c89"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4839 esac
4840 if test "x$ac_cv_prog_cc_c89" != xno; then :
4841
4842 fi
4843
4844 ac_ext=cpp
4845 ac_cpp='$CXXCPP $CPPFLAGS'
4846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4856 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4857 if ${am_cv_prog_cc_c_o+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 # Make sure it works both with $CC and with simple cc.
4872 # Following AC_PROG_CC_C_O, we do the test twice because some
4873 # compilers refuse to overwrite an existing .o file with -o,
4874 # though they will create one.
4875 am_cv_prog_cc_c_o=yes
4876 for am_i in 1 2; do
4877 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4878 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } \
4882 && test -f conftest2.$ac_objext; then
4883 : OK
4884 else
4885 am_cv_prog_cc_c_o=no
4886 break
4887 fi
4888 done
4889 rm -f core conftest*
4890 unset am_i
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4893 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4894 if test "$am_cv_prog_cc_c_o" != yes; then
4895 # Losing compiler, so override with the script.
4896 # FIXME: It is wrong to rewrite CC.
4897 # But if we don't then we get into trouble of one sort or another.
4898 # A longer-term fix would be to have automake use am__CC in this case,
4899 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4900 CC="$am_aux_dir/compile $CC"
4901 fi
4902 ac_ext=cpp
4903 ac_cpp='$CXXCPP $CPPFLAGS'
4904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4907
4908
4909 depcc="$CC" am_compiler_list=
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4912 $as_echo_n "checking dependency style of $depcc... " >&6; }
4913 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4917 # We make a subdir and do the tests there. Otherwise we can end up
4918 # making bogus files that we don't know about and never remove. For
4919 # instance it was reported that on HP-UX the gcc test will end up
4920 # making a dummy file named 'D' -- because '-MD' means "put the output
4921 # in D".
4922 rm -rf conftest.dir
4923 mkdir conftest.dir
4924 # Copy depcomp to subdir because otherwise we won't find it if we're
4925 # using a relative directory.
4926 cp "$am_depcomp" conftest.dir
4927 cd conftest.dir
4928 # We will build objects and dependencies in a subdirectory because
4929 # it helps to detect inapplicable dependency modes. For instance
4930 # both Tru64's cc and ICC support -MD to output dependencies as a
4931 # side effect of compilation, but ICC will put the dependencies in
4932 # the current directory while Tru64 will put them in the object
4933 # directory.
4934 mkdir sub
4935
4936 am_cv_CC_dependencies_compiler_type=none
4937 if test "$am_compiler_list" = ""; then
4938 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4939 fi
4940 am__universal=false
4941 case " $depcc " in #(
4942 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4943 esac
4944
4945 for depmode in $am_compiler_list; do
4946 # Setup a source with many dependencies, because some compilers
4947 # like to wrap large dependency lists on column 80 (with \), and
4948 # we should not choose a depcomp mode which is confused by this.
4949 #
4950 # We need to recreate these files for each test, as the compiler may
4951 # overwrite some of them when testing with obscure command lines.
4952 # This happens at least with the AIX C compiler.
4953 : > sub/conftest.c
4954 for i in 1 2 3 4 5 6; do
4955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4956 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4957 # Solaris 10 /bin/sh.
4958 echo '/* dummy */' > sub/conftst$i.h
4959 done
4960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4961
4962 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4963 # mode. It turns out that the SunPro C++ compiler does not properly
4964 # handle '-M -o', and we need to detect this. Also, some Intel
4965 # versions had trouble with output in subdirs.
4966 am__obj=sub/conftest.${OBJEXT-o}
4967 am__minus_obj="-o $am__obj"
4968 case $depmode in
4969 gcc)
4970 # This depmode causes a compiler race in universal mode.
4971 test "$am__universal" = false || continue
4972 ;;
4973 nosideeffect)
4974 # After this tag, mechanisms are not by side-effect, so they'll
4975 # only be used when explicitly requested.
4976 if test "x$enable_dependency_tracking" = xyes; then
4977 continue
4978 else
4979 break
4980 fi
4981 ;;
4982 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4983 # This compiler won't grok '-c -o', but also, the minuso test has
4984 # not run yet. These depmodes are late enough in the game, and
4985 # so weak that their functioning should not be impacted.
4986 am__obj=conftest.${OBJEXT-o}
4987 am__minus_obj=
4988 ;;
4989 none) break ;;
4990 esac
4991 if depmode=$depmode \
4992 source=sub/conftest.c object=$am__obj \
4993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4994 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4995 >/dev/null 2>conftest.err &&
4996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4998 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5000 # icc doesn't choke on unknown options, it will just issue warnings
5001 # or remarks (even with -Werror). So we grep stderr for any message
5002 # that says an option was ignored or not supported.
5003 # When given -MP, icc 7.0 and 7.1 complain thusly:
5004 # icc: Command line warning: ignoring option '-M'; no argument required
5005 # The diagnosis changed in icc 8.0:
5006 # icc: Command line remark: option '-MP' not supported
5007 if (grep 'ignoring option' conftest.err ||
5008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5009 am_cv_CC_dependencies_compiler_type=$depmode
5010 break
5011 fi
5012 fi
5013 done
5014
5015 cd ..
5016 rm -rf conftest.dir
5017 else
5018 am_cv_CC_dependencies_compiler_type=none
5019 fi
5020
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5023 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5025
5026 if
5027 test "x$enable_dependency_tracking" != xno \
5028 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5029 am__fastdepCC_TRUE=
5030 am__fastdepCC_FALSE='#'
5031 else
5032 am__fastdepCC_TRUE='#'
5033 am__fastdepCC_FALSE=
5034 fi
5035
5036
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5043 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5044 # On Suns, sometimes $CPP names a directory.
5045 if test -n "$CPP" && test -d "$CPP"; then
5046 CPP=
5047 fi
5048 if test -z "$CPP"; then
5049 if ${ac_cv_prog_CPP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 # Double quotes because CPP needs to be expanded
5053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5054 do
5055 ac_preproc_ok=false
5056 for ac_c_preproc_warn_flag in '' yes
5057 do
5058 # Use a header file that comes with gcc, so configuring glibc
5059 # with a fresh cross-compiler works.
5060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061 # <limits.h> exists even on freestanding compilers.
5062 # On the NeXT, cc -E runs the code through the compiler's parser,
5063 # not just through cpp. "Syntax error" is here to catch this case.
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071 Syntax error
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074
5075 else
5076 # Broken: fails on valid input.
5077 continue
5078 fi
5079 rm -f conftest.err conftest.i conftest.$ac_ext
5080
5081 # OK, works on sane cases. Now check whether nonexistent headers
5082 # can be detected and how.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if ac_fn_c_try_cpp "$LINENO"; then :
5088 # Broken: success on invalid input.
5089 continue
5090 else
5091 # Passes both tests.
5092 ac_preproc_ok=:
5093 break
5094 fi
5095 rm -f conftest.err conftest.i conftest.$ac_ext
5096
5097 done
5098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5099 rm -f conftest.i conftest.err conftest.$ac_ext
5100 if $ac_preproc_ok; then :
5101 break
5102 fi
5103
5104 done
5105 ac_cv_prog_CPP=$CPP
5106
5107 fi
5108 CPP=$ac_cv_prog_CPP
5109 else
5110 ac_cv_prog_CPP=$CPP
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5113 $as_echo "$CPP" >&6; }
5114 ac_preproc_ok=false
5115 for ac_c_preproc_warn_flag in '' yes
5116 do
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if ac_fn_c_try_cpp "$LINENO"; then :
5133
5134 else
5135 # Broken: fails on valid input.
5136 continue
5137 fi
5138 rm -f conftest.err conftest.i conftest.$ac_ext
5139
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5145 _ACEOF
5146 if ac_fn_c_try_cpp "$LINENO"; then :
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 # Passes both tests.
5151 ac_preproc_ok=:
5152 break
5153 fi
5154 rm -f conftest.err conftest.i conftest.$ac_ext
5155
5156 done
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.i conftest.err conftest.$ac_ext
5159 if $ac_preproc_ok; then :
5160
5161 else
5162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5164 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5165 See \`config.log' for more details" "$LINENO" 5; }
5166 fi
5167
5168 ac_ext=cpp
5169 ac_cpp='$CXXCPP $CPPFLAGS'
5170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174 ac_ext=cpp
5175 ac_cpp='$CXXCPP $CPPFLAGS'
5176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5179 if test -z "$CXX"; then
5180 if test -n "$CCC"; then
5181 CXX=$CCC
5182 else
5183 if test -n "$ac_tool_prefix"; then
5184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5185 do
5186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_CXX+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$CXX"; then
5194 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207 done
5208 done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 CXX=$ac_cv_prog_CXX
5214 if test -n "$CXX"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5216 $as_echo "$CXX" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222
5223 test -n "$CXX" && break
5224 done
5225 fi
5226 if test -z "$CXX"; then
5227 ac_ct_CXX=$CXX
5228 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5229 do
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$ac_ct_CXX"; then
5238 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_ac_ct_CXX="$ac_prog"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5258 if test -n "$ac_ct_CXX"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5260 $as_echo "$ac_ct_CXX" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 test -n "$ac_ct_CXX" && break
5268 done
5269
5270 if test "x$ac_ct_CXX" = x; then
5271 CXX="g++"
5272 else
5273 case $cross_compiling:$ac_tool_warned in
5274 yes:)
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5277 ac_tool_warned=yes ;;
5278 esac
5279 CXX=$ac_ct_CXX
5280 fi
5281 fi
5282
5283 fi
5284 fi
5285 # Provide some information about the compiler.
5286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5287 set X $ac_compile
5288 ac_compiler=$2
5289 for ac_option in --version -v -V -qversion; do
5290 { { ac_try="$ac_compiler $ac_option >&5"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5296 $as_echo "$ac_try_echo"; } >&5
5297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5298 ac_status=$?
5299 if test -s conftest.err; then
5300 sed '10a\
5301 ... rest of stderr output deleted ...
5302 10q' conftest.err >conftest.er1
5303 cat conftest.er1 >&5
5304 fi
5305 rm -f conftest.er1 conftest.err
5306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5307 test $ac_status = 0; }
5308 done
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5311 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5312 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317
5318 int
5319 main ()
5320 {
5321 #ifndef __GNUC__
5322 choke me
5323 #endif
5324
5325 ;
5326 return 0;
5327 }
5328 _ACEOF
5329 if ac_fn_cxx_try_compile "$LINENO"; then :
5330 ac_compiler_gnu=yes
5331 else
5332 ac_compiler_gnu=no
5333 fi
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5336
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5339 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5340 if test $ac_compiler_gnu = yes; then
5341 GXX=yes
5342 else
5343 GXX=
5344 fi
5345 ac_test_CXXFLAGS=${CXXFLAGS+set}
5346 ac_save_CXXFLAGS=$CXXFLAGS
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5348 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5349 if ${ac_cv_prog_cxx_g+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5353 ac_cxx_werror_flag=yes
5354 ac_cv_prog_cxx_g=no
5355 CXXFLAGS="-g"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358
5359 int
5360 main ()
5361 {
5362
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_cxx_try_compile "$LINENO"; then :
5368 ac_cv_prog_cxx_g=yes
5369 else
5370 CXXFLAGS=""
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373
5374 int
5375 main ()
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_cxx_try_compile "$LINENO"; then :
5383
5384 else
5385 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5386 CXXFLAGS="-g"
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_cxx_try_compile "$LINENO"; then :
5399 ac_cv_prog_cxx_g=yes
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5409 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5410 if test "$ac_test_CXXFLAGS" = set; then
5411 CXXFLAGS=$ac_save_CXXFLAGS
5412 elif test $ac_cv_prog_cxx_g = yes; then
5413 if test "$GXX" = yes; then
5414 CXXFLAGS="-g -O2"
5415 else
5416 CXXFLAGS="-g"
5417 fi
5418 else
5419 if test "$GXX" = yes; then
5420 CXXFLAGS="-O2"
5421 else
5422 CXXFLAGS=
5423 fi
5424 fi
5425 ac_ext=cpp
5426 ac_cpp='$CXXCPP $CPPFLAGS'
5427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5430
5431 depcc="$CXX" am_compiler_list=
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5434 $as_echo_n "checking dependency style of $depcc... " >&6; }
5435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5439 # We make a subdir and do the tests there. Otherwise we can end up
5440 # making bogus files that we don't know about and never remove. For
5441 # instance it was reported that on HP-UX the gcc test will end up
5442 # making a dummy file named 'D' -- because '-MD' means "put the output
5443 # in D".
5444 rm -rf conftest.dir
5445 mkdir conftest.dir
5446 # Copy depcomp to subdir because otherwise we won't find it if we're
5447 # using a relative directory.
5448 cp "$am_depcomp" conftest.dir
5449 cd conftest.dir
5450 # We will build objects and dependencies in a subdirectory because
5451 # it helps to detect inapplicable dependency modes. For instance
5452 # both Tru64's cc and ICC support -MD to output dependencies as a
5453 # side effect of compilation, but ICC will put the dependencies in
5454 # the current directory while Tru64 will put them in the object
5455 # directory.
5456 mkdir sub
5457
5458 am_cv_CXX_dependencies_compiler_type=none
5459 if test "$am_compiler_list" = ""; then
5460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5461 fi
5462 am__universal=false
5463 case " $depcc " in #(
5464 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5465 esac
5466
5467 for depmode in $am_compiler_list; do
5468 # Setup a source with many dependencies, because some compilers
5469 # like to wrap large dependency lists on column 80 (with \), and
5470 # we should not choose a depcomp mode which is confused by this.
5471 #
5472 # We need to recreate these files for each test, as the compiler may
5473 # overwrite some of them when testing with obscure command lines.
5474 # This happens at least with the AIX C compiler.
5475 : > sub/conftest.c
5476 for i in 1 2 3 4 5 6; do
5477 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5479 # Solaris 10 /bin/sh.
5480 echo '/* dummy */' > sub/conftst$i.h
5481 done
5482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5483
5484 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5485 # mode. It turns out that the SunPro C++ compiler does not properly
5486 # handle '-M -o', and we need to detect this. Also, some Intel
5487 # versions had trouble with output in subdirs.
5488 am__obj=sub/conftest.${OBJEXT-o}
5489 am__minus_obj="-o $am__obj"
5490 case $depmode in
5491 gcc)
5492 # This depmode causes a compiler race in universal mode.
5493 test "$am__universal" = false || continue
5494 ;;
5495 nosideeffect)
5496 # After this tag, mechanisms are not by side-effect, so they'll
5497 # only be used when explicitly requested.
5498 if test "x$enable_dependency_tracking" = xyes; then
5499 continue
5500 else
5501 break
5502 fi
5503 ;;
5504 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5505 # This compiler won't grok '-c -o', but also, the minuso test has
5506 # not run yet. These depmodes are late enough in the game, and
5507 # so weak that their functioning should not be impacted.
5508 am__obj=conftest.${OBJEXT-o}
5509 am__minus_obj=
5510 ;;
5511 none) break ;;
5512 esac
5513 if depmode=$depmode \
5514 source=sub/conftest.c object=$am__obj \
5515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5517 >/dev/null 2>conftest.err &&
5518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5522 # icc doesn't choke on unknown options, it will just issue warnings
5523 # or remarks (even with -Werror). So we grep stderr for any message
5524 # that says an option was ignored or not supported.
5525 # When given -MP, icc 7.0 and 7.1 complain thusly:
5526 # icc: Command line warning: ignoring option '-M'; no argument required
5527 # The diagnosis changed in icc 8.0:
5528 # icc: Command line remark: option '-MP' not supported
5529 if (grep 'ignoring option' conftest.err ||
5530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5531 am_cv_CXX_dependencies_compiler_type=$depmode
5532 break
5533 fi
5534 fi
5535 done
5536
5537 cd ..
5538 rm -rf conftest.dir
5539 else
5540 am_cv_CXX_dependencies_compiler_type=none
5541 fi
5542
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5547
5548 if
5549 test "x$enable_dependency_tracking" != xno \
5550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5551 am__fastdepCXX_TRUE=
5552 am__fastdepCXX_FALSE='#'
5553 else
5554 am__fastdepCXX_TRUE='#'
5555 am__fastdepCXX_FALSE=
5556 fi
5557
5558
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5561 $as_echo_n "checking whether ln -s works... " >&6; }
5562 LN_S=$as_ln_s
5563 if test "$LN_S" = "ln -s"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5565 $as_echo "yes" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5568 $as_echo "no, using $LN_S" >&6; }
5569 fi
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5573 set x ${MAKE-make}
5574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5575 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat >conftest.make <<\_ACEOF
5579 SHELL = /bin/sh
5580 all:
5581 @echo '@@@%%%=$(MAKE)=@@@%%%'
5582 _ACEOF
5583 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5585 *@@@%%%=?*=@@@%%%*)
5586 eval ac_cv_prog_make_${ac_make}_set=yes;;
5587 *)
5588 eval ac_cv_prog_make_${ac_make}_set=no;;
5589 esac
5590 rm -f conftest.make
5591 fi
5592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5594 $as_echo "yes" >&6; }
5595 SET_MAKE=
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 SET_MAKE="MAKE=${MAKE-make}"
5600 fi
5601
5602 case `pwd` in
5603 *\ * | *\ *)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5605 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5606 esac
5607
5608
5609
5610 macro_version='2.4.6'
5611 macro_revision='2.4.6'
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 ltmain=$ac_aux_dir/ltmain.sh
5626
5627 # Make sure we can run config.sub.
5628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5629 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5632 $as_echo_n "checking build system type... " >&6; }
5633 if ${ac_cv_build+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 ac_build_alias=$build_alias
5637 test "x$ac_build_alias" = x &&
5638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5639 test "x$ac_build_alias" = x &&
5640 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5643
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5646 $as_echo "$ac_cv_build" >&6; }
5647 case $ac_cv_build in
5648 *-*-*) ;;
5649 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5650 esac
5651 build=$ac_cv_build
5652 ac_save_IFS=$IFS; IFS='-'
5653 set x $ac_cv_build
5654 shift
5655 build_cpu=$1
5656 build_vendor=$2
5657 shift; shift
5658 # Remember, the first character of IFS is used to create $*,
5659 # except with old shells:
5660 build_os=$*
5661 IFS=$ac_save_IFS
5662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5666 $as_echo_n "checking host system type... " >&6; }
5667 if ${ac_cv_host+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test "x$host_alias" = x; then
5671 ac_cv_host=$ac_cv_build
5672 else
5673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5675 fi
5676
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5679 $as_echo "$ac_cv_host" >&6; }
5680 case $ac_cv_host in
5681 *-*-*) ;;
5682 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5683 esac
5684 host=$ac_cv_host
5685 ac_save_IFS=$IFS; IFS='-'
5686 set x $ac_cv_host
5687 shift
5688 host_cpu=$1
5689 host_vendor=$2
5690 shift; shift
5691 # Remember, the first character of IFS is used to create $*,
5692 # except with old shells:
5693 host_os=$*
5694 IFS=$ac_save_IFS
5695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5696
5697
5698 # Backslashify metacharacters that are still active within
5699 # double-quoted strings.
5700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5701
5702 # Same as above, but do not quote variable references.
5703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5704
5705 # Sed substitution to delay expansion of an escaped shell variable in a
5706 # double_quote_subst'ed string.
5707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5708
5709 # Sed substitution to delay expansion of an escaped single quote.
5710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5711
5712 # Sed substitution to avoid accidental globbing in evaled expressions
5713 no_glob_subst='s/\*/\\\*/g'
5714
5715 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5717 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5718
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5720 $as_echo_n "checking how to print strings... " >&6; }
5721 # Test print first, because it will be a builtin if present.
5722 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5723 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5724 ECHO='print -r --'
5725 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5726 ECHO='printf %s\n'
5727 else
5728 # Use this function as a fallback that always works.
5729 func_fallback_echo ()
5730 {
5731 eval 'cat <<_LTECHO_EOF
5732 $1
5733 _LTECHO_EOF'
5734 }
5735 ECHO='func_fallback_echo'
5736 fi
5737
5738 # func_echo_all arg...
5739 # Invoke $ECHO with all args, space-separated.
5740 func_echo_all ()
5741 {
5742 $ECHO ""
5743 }
5744
5745 case $ECHO in
5746 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5747 $as_echo "printf" >&6; } ;;
5748 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5749 $as_echo "print -r" >&6; } ;;
5750 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5751 $as_echo "cat" >&6; } ;;
5752 esac
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5768 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5769 if ${ac_cv_path_SED+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5773 for ac_i in 1 2 3 4 5 6 7; do
5774 ac_script="$ac_script$as_nl$ac_script"
5775 done
5776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5777 { ac_script=; unset ac_script;}
5778 if test -z "$SED"; then
5779 ac_path_SED_found=false
5780 # Loop through the user's path and test for each of PROGNAME-LIST
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_prog in sed gsed; do
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5789 as_fn_executable_p "$ac_path_SED" || continue
5790 # Check for GNU ac_path_SED and select it if it is found.
5791 # Check for GNU $ac_path_SED
5792 case `"$ac_path_SED" --version 2>&1` in
5793 *GNU*)
5794 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5795 *)
5796 ac_count=0
5797 $as_echo_n 0123456789 >"conftest.in"
5798 while :
5799 do
5800 cat "conftest.in" "conftest.in" >"conftest.tmp"
5801 mv "conftest.tmp" "conftest.in"
5802 cp "conftest.in" "conftest.nl"
5803 $as_echo '' >> "conftest.nl"
5804 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5806 as_fn_arith $ac_count + 1 && ac_count=$as_val
5807 if test $ac_count -gt ${ac_path_SED_max-0}; then
5808 # Best one so far, save it but keep looking for a better one
5809 ac_cv_path_SED="$ac_path_SED"
5810 ac_path_SED_max=$ac_count
5811 fi
5812 # 10*(2^10) chars as input seems more than enough
5813 test $ac_count -gt 10 && break
5814 done
5815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5816 esac
5817
5818 $ac_path_SED_found && break 3
5819 done
5820 done
5821 done
5822 IFS=$as_save_IFS
5823 if test -z "$ac_cv_path_SED"; then
5824 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5825 fi
5826 else
5827 ac_cv_path_SED=$SED
5828 fi
5829
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5832 $as_echo "$ac_cv_path_SED" >&6; }
5833 SED="$ac_cv_path_SED"
5834 rm -f conftest.sed
5835
5836 test -z "$SED" && SED=sed
5837 Xsed="$SED -e 1s/^X//"
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5850 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5851 if ${ac_cv_path_GREP+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -z "$GREP"; then
5855 ac_path_GREP_found=false
5856 # Loop through the user's path and test for each of PROGNAME-LIST
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_prog in grep ggrep; do
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5865 as_fn_executable_p "$ac_path_GREP" || continue
5866 # Check for GNU ac_path_GREP and select it if it is found.
5867 # Check for GNU $ac_path_GREP
5868 case `"$ac_path_GREP" --version 2>&1` in
5869 *GNU*)
5870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5871 *)
5872 ac_count=0
5873 $as_echo_n 0123456789 >"conftest.in"
5874 while :
5875 do
5876 cat "conftest.in" "conftest.in" >"conftest.tmp"
5877 mv "conftest.tmp" "conftest.in"
5878 cp "conftest.in" "conftest.nl"
5879 $as_echo 'GREP' >> "conftest.nl"
5880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5882 as_fn_arith $ac_count + 1 && ac_count=$as_val
5883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5884 # Best one so far, save it but keep looking for a better one
5885 ac_cv_path_GREP="$ac_path_GREP"
5886 ac_path_GREP_max=$ac_count
5887 fi
5888 # 10*(2^10) chars as input seems more than enough
5889 test $ac_count -gt 10 && break
5890 done
5891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5892 esac
5893
5894 $ac_path_GREP_found && break 3
5895 done
5896 done
5897 done
5898 IFS=$as_save_IFS
5899 if test -z "$ac_cv_path_GREP"; then
5900 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5901 fi
5902 else
5903 ac_cv_path_GREP=$GREP
5904 fi
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5908 $as_echo "$ac_cv_path_GREP" >&6; }
5909 GREP="$ac_cv_path_GREP"
5910
5911
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5913 $as_echo_n "checking for egrep... " >&6; }
5914 if ${ac_cv_path_EGREP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5918 then ac_cv_path_EGREP="$GREP -E"
5919 else
5920 if test -z "$EGREP"; then
5921 ac_path_EGREP_found=false
5922 # Loop through the user's path and test for each of PROGNAME-LIST
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_prog in egrep; do
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5931 as_fn_executable_p "$ac_path_EGREP" || continue
5932 # Check for GNU ac_path_EGREP and select it if it is found.
5933 # Check for GNU $ac_path_EGREP
5934 case `"$ac_path_EGREP" --version 2>&1` in
5935 *GNU*)
5936 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5937 *)
5938 ac_count=0
5939 $as_echo_n 0123456789 >"conftest.in"
5940 while :
5941 do
5942 cat "conftest.in" "conftest.in" >"conftest.tmp"
5943 mv "conftest.tmp" "conftest.in"
5944 cp "conftest.in" "conftest.nl"
5945 $as_echo 'EGREP' >> "conftest.nl"
5946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5948 as_fn_arith $ac_count + 1 && ac_count=$as_val
5949 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5950 # Best one so far, save it but keep looking for a better one
5951 ac_cv_path_EGREP="$ac_path_EGREP"
5952 ac_path_EGREP_max=$ac_count
5953 fi
5954 # 10*(2^10) chars as input seems more than enough
5955 test $ac_count -gt 10 && break
5956 done
5957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5958 esac
5959
5960 $ac_path_EGREP_found && break 3
5961 done
5962 done
5963 done
5964 IFS=$as_save_IFS
5965 if test -z "$ac_cv_path_EGREP"; then
5966 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5967 fi
5968 else
5969 ac_cv_path_EGREP=$EGREP
5970 fi
5971
5972 fi
5973 fi
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5975 $as_echo "$ac_cv_path_EGREP" >&6; }
5976 EGREP="$ac_cv_path_EGREP"
5977
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5980 $as_echo_n "checking for fgrep... " >&6; }
5981 if ${ac_cv_path_FGREP+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5985 then ac_cv_path_FGREP="$GREP -F"
5986 else
5987 if test -z "$FGREP"; then
5988 ac_path_FGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_prog in fgrep; do
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5998 as_fn_executable_p "$ac_path_FGREP" || continue
5999 # Check for GNU ac_path_FGREP and select it if it is found.
6000 # Check for GNU $ac_path_FGREP
6001 case `"$ac_path_FGREP" --version 2>&1` in
6002 *GNU*)
6003 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6004 *)
6005 ac_count=0
6006 $as_echo_n 0123456789 >"conftest.in"
6007 while :
6008 do
6009 cat "conftest.in" "conftest.in" >"conftest.tmp"
6010 mv "conftest.tmp" "conftest.in"
6011 cp "conftest.in" "conftest.nl"
6012 $as_echo 'FGREP' >> "conftest.nl"
6013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015 as_fn_arith $ac_count + 1 && ac_count=$as_val
6016 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6017 # Best one so far, save it but keep looking for a better one
6018 ac_cv_path_FGREP="$ac_path_FGREP"
6019 ac_path_FGREP_max=$ac_count
6020 fi
6021 # 10*(2^10) chars as input seems more than enough
6022 test $ac_count -gt 10 && break
6023 done
6024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027 $ac_path_FGREP_found && break 3
6028 done
6029 done
6030 done
6031 IFS=$as_save_IFS
6032 if test -z "$ac_cv_path_FGREP"; then
6033 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6034 fi
6035 else
6036 ac_cv_path_FGREP=$FGREP
6037 fi
6038
6039 fi
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6042 $as_echo "$ac_cv_path_FGREP" >&6; }
6043 FGREP="$ac_cv_path_FGREP"
6044
6045
6046 test -z "$GREP" && GREP=grep
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 # Check whether --with-gnu-ld was given.
6067 if test "${with_gnu_ld+set}" = set; then :
6068 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6069 else
6070 with_gnu_ld=no
6071 fi
6072
6073 ac_prog=ld
6074 if test yes = "$GCC"; then
6075 # Check if gcc -print-prog-name=ld gives a path.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6077 $as_echo_n "checking for ld used by $CC... " >&6; }
6078 case $host in
6079 *-*-mingw*)
6080 # gcc leaves a trailing carriage return, which upsets mingw
6081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6082 *)
6083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6084 esac
6085 case $ac_prog in
6086 # Accept absolute paths.
6087 [\\/]* | ?:[\\/]*)
6088 re_direlt='/[^/][^/]*/\.\./'
6089 # Canonicalize the pathname of ld
6090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6093 done
6094 test -z "$LD" && LD=$ac_prog
6095 ;;
6096 "")
6097 # If it fails, then pretend we aren't using GCC.
6098 ac_prog=ld
6099 ;;
6100 *)
6101 # If it is relative, then search for the first ld in PATH.
6102 with_gnu_ld=unknown
6103 ;;
6104 esac
6105 elif test yes = "$with_gnu_ld"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6107 $as_echo_n "checking for GNU ld... " >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6110 $as_echo_n "checking for non-GNU ld... " >&6; }
6111 fi
6112 if ${lt_cv_path_LD+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -z "$LD"; then
6116 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6117 for ac_dir in $PATH; do
6118 IFS=$lt_save_ifs
6119 test -z "$ac_dir" && ac_dir=.
6120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6121 lt_cv_path_LD=$ac_dir/$ac_prog
6122 # Check to see if the program is GNU ld. I'd rather use --version,
6123 # but apparently some variants of GNU ld only accept -v.
6124 # Break only if it was the GNU/non-GNU ld that we prefer.
6125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6126 *GNU* | *'with BFD'*)
6127 test no != "$with_gnu_ld" && break
6128 ;;
6129 *)
6130 test yes != "$with_gnu_ld" && break
6131 ;;
6132 esac
6133 fi
6134 done
6135 IFS=$lt_save_ifs
6136 else
6137 lt_cv_path_LD=$LD # Let the user override the test with a path.
6138 fi
6139 fi
6140
6141 LD=$lt_cv_path_LD
6142 if test -n "$LD"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6144 $as_echo "$LD" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6152 if ${lt_cv_prog_gnu_ld+:} false; then :
6153 $as_echo_n "(cached) " >&6
6154 else
6155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6156 case `$LD -v 2>&1 </dev/null` in
6157 *GNU* | *'with BFD'*)
6158 lt_cv_prog_gnu_ld=yes
6159 ;;
6160 *)
6161 lt_cv_prog_gnu_ld=no
6162 ;;
6163 esac
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6167 with_gnu_ld=$lt_cv_prog_gnu_ld
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6178 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6179 if ${lt_cv_path_NM+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 if test -n "$NM"; then
6183 # Let the user override the test.
6184 lt_cv_path_NM=$NM
6185 else
6186 lt_nm_to_check=${ac_tool_prefix}nm
6187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6188 lt_nm_to_check="$lt_nm_to_check nm"
6189 fi
6190 for lt_tmp_nm in $lt_nm_to_check; do
6191 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6193 IFS=$lt_save_ifs
6194 test -z "$ac_dir" && ac_dir=.
6195 tmp_nm=$ac_dir/$lt_tmp_nm
6196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6197 # Check to see if the nm accepts a BSD-compat flag.
6198 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6199 # nm: unknown option "B" ignored
6200 # Tru64's nm complains that /dev/null is an invalid object file
6201 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6202 case $build_os in
6203 mingw*) lt_bad_file=conftest.nm/nofile ;;
6204 *) lt_bad_file=/dev/null ;;
6205 esac
6206 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6207 *$lt_bad_file* | *'Invalid file or object type'*)
6208 lt_cv_path_NM="$tmp_nm -B"
6209 break 2
6210 ;;
6211 *)
6212 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6213 */dev/null*)
6214 lt_cv_path_NM="$tmp_nm -p"
6215 break 2
6216 ;;
6217 *)
6218 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6219 continue # so that we can try to find one that supports BSD flags
6220 ;;
6221 esac
6222 ;;
6223 esac
6224 fi
6225 done
6226 IFS=$lt_save_ifs
6227 done
6228 : ${lt_cv_path_NM=no}
6229 fi
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6232 $as_echo "$lt_cv_path_NM" >&6; }
6233 if test no != "$lt_cv_path_NM"; then
6234 NM=$lt_cv_path_NM
6235 else
6236 # Didn't find any BSD compatible name lister, look for dumpbin.
6237 if test -n "$DUMPBIN"; then :
6238 # Let the user override the test.
6239 else
6240 if test -n "$ac_tool_prefix"; then
6241 for ac_prog in dumpbin "link -dump"
6242 do
6243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_DUMPBIN+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$DUMPBIN"; then
6251 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 DUMPBIN=$ac_cv_prog_DUMPBIN
6271 if test -n "$DUMPBIN"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6273 $as_echo "$DUMPBIN" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 test -n "$DUMPBIN" && break
6281 done
6282 fi
6283 if test -z "$DUMPBIN"; then
6284 ac_ct_DUMPBIN=$DUMPBIN
6285 for ac_prog in dumpbin "link -dump"
6286 do
6287 # Extract the first word of "$ac_prog", so it can be a program name with args.
6288 set dummy $ac_prog; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_DUMPBIN"; then
6295 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6315 if test -n "$ac_ct_DUMPBIN"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6317 $as_echo "$ac_ct_DUMPBIN" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 test -n "$ac_ct_DUMPBIN" && break
6325 done
6326
6327 if test "x$ac_ct_DUMPBIN" = x; then
6328 DUMPBIN=":"
6329 else
6330 case $cross_compiling:$ac_tool_warned in
6331 yes:)
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6335 esac
6336 DUMPBIN=$ac_ct_DUMPBIN
6337 fi
6338 fi
6339
6340 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6341 *COFF*)
6342 DUMPBIN="$DUMPBIN -symbols -headers"
6343 ;;
6344 *)
6345 DUMPBIN=:
6346 ;;
6347 esac
6348 fi
6349
6350 if test : != "$DUMPBIN"; then
6351 NM=$DUMPBIN
6352 fi
6353 fi
6354 test -z "$NM" && NM=nm
6355
6356
6357
6358
6359
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6362 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6363 if ${lt_cv_nm_interface+:} false; then :
6364 $as_echo_n "(cached) " >&6
6365 else
6366 lt_cv_nm_interface="BSD nm"
6367 echo "int some_variable = 0;" > conftest.$ac_ext
6368 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6369 (eval "$ac_compile" 2>conftest.err)
6370 cat conftest.err >&5
6371 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6372 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6373 cat conftest.err >&5
6374 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6375 cat conftest.out >&5
6376 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6377 lt_cv_nm_interface="MS dumpbin"
6378 fi
6379 rm -f conftest*
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6382 $as_echo "$lt_cv_nm_interface" >&6; }
6383
6384 # find the maximum length of command line arguments
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6386 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6387 if ${lt_cv_sys_max_cmd_len+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 i=0
6391 teststring=ABCD
6392
6393 case $build_os in
6394 msdosdjgpp*)
6395 # On DJGPP, this test can blow up pretty badly due to problems in libc
6396 # (any single argument exceeding 2000 bytes causes a buffer overrun
6397 # during glob expansion). Even if it were fixed, the result of this
6398 # check would be larger than it should be.
6399 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6400 ;;
6401
6402 gnu*)
6403 # Under GNU Hurd, this test is not required because there is
6404 # no limit to the length of command line arguments.
6405 # Libtool will interpret -1 as no limit whatsoever
6406 lt_cv_sys_max_cmd_len=-1;
6407 ;;
6408
6409 cygwin* | mingw* | cegcc*)
6410 # On Win9x/ME, this test blows up -- it succeeds, but takes
6411 # about 5 minutes as the teststring grows exponentially.
6412 # Worse, since 9x/ME are not pre-emptively multitasking,
6413 # you end up with a "frozen" computer, even though with patience
6414 # the test eventually succeeds (with a max line length of 256k).
6415 # Instead, let's just punt: use the minimum linelength reported by
6416 # all of the supported platforms: 8192 (on NT/2K/XP).
6417 lt_cv_sys_max_cmd_len=8192;
6418 ;;
6419
6420 mint*)
6421 # On MiNT this can take a long time and run out of memory.
6422 lt_cv_sys_max_cmd_len=8192;
6423 ;;
6424
6425 amigaos*)
6426 # On AmigaOS with pdksh, this test takes hours, literally.
6427 # So we just punt and use a minimum line length of 8192.
6428 lt_cv_sys_max_cmd_len=8192;
6429 ;;
6430
6431 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6432 # This has been around since 386BSD, at least. Likely further.
6433 if test -x /sbin/sysctl; then
6434 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6435 elif test -x /usr/sbin/sysctl; then
6436 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6437 else
6438 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6439 fi
6440 # And add a safety zone
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6443 ;;
6444
6445 interix*)
6446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6447 lt_cv_sys_max_cmd_len=196608
6448 ;;
6449
6450 os2*)
6451 # The test takes a long time on OS/2.
6452 lt_cv_sys_max_cmd_len=8192
6453 ;;
6454
6455 osf*)
6456 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6457 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6458 # nice to cause kernel panics so lets avoid the loop below.
6459 # First set a reasonable default.
6460 lt_cv_sys_max_cmd_len=16384
6461 #
6462 if test -x /sbin/sysconfig; then
6463 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6464 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6465 esac
6466 fi
6467 ;;
6468 sco3.2v5*)
6469 lt_cv_sys_max_cmd_len=102400
6470 ;;
6471 sysv5* | sco5v6* | sysv4.2uw2*)
6472 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6473 if test -n "$kargmax"; then
6474 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6475 else
6476 lt_cv_sys_max_cmd_len=32768
6477 fi
6478 ;;
6479 *)
6480 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6481 if test -n "$lt_cv_sys_max_cmd_len" && \
6482 test undefined != "$lt_cv_sys_max_cmd_len"; then
6483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6485 else
6486 # Make teststring a little bigger before we do anything with it.
6487 # a 1K string should be a reasonable start.
6488 for i in 1 2 3 4 5 6 7 8; do
6489 teststring=$teststring$teststring
6490 done
6491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6492 # If test is not a shell built-in, we'll probably end up computing a
6493 # maximum length that is only half of the actual maximum length, but
6494 # we can't tell.
6495 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6496 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6497 test 17 != "$i" # 1/2 MB should be enough
6498 do
6499 i=`expr $i + 1`
6500 teststring=$teststring$teststring
6501 done
6502 # Only check the string length outside the loop.
6503 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6504 teststring=
6505 # Add a significant safety factor because C++ compilers can tack on
6506 # massive amounts of additional arguments before passing them to the
6507 # linker. It appears as though 1/2 is a usable value.
6508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6509 fi
6510 ;;
6511 esac
6512
6513 fi
6514
6515 if test -n "$lt_cv_sys_max_cmd_len"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6517 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6520 $as_echo "none" >&6; }
6521 fi
6522 max_cmd_len=$lt_cv_sys_max_cmd_len
6523
6524
6525
6526
6527
6528
6529 : ${CP="cp -f"}
6530 : ${MV="mv -f"}
6531 : ${RM="rm -f"}
6532
6533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6534 lt_unset=unset
6535 else
6536 lt_unset=false
6537 fi
6538
6539
6540
6541
6542
6543 # test EBCDIC or ASCII
6544 case `echo X|tr X '\101'` in
6545 A) # ASCII based system
6546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6547 lt_SP2NL='tr \040 \012'
6548 lt_NL2SP='tr \015\012 \040\040'
6549 ;;
6550 *) # EBCDIC based system
6551 lt_SP2NL='tr \100 \n'
6552 lt_NL2SP='tr \r\n \100\100'
6553 ;;
6554 esac
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6565 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6566 if ${lt_cv_to_host_file_cmd+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 case $host in
6570 *-*-mingw* )
6571 case $build in
6572 *-*-mingw* ) # actually msys
6573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6574 ;;
6575 *-*-cygwin* )
6576 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6577 ;;
6578 * ) # otherwise, assume *nix
6579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6580 ;;
6581 esac
6582 ;;
6583 *-*-cygwin* )
6584 case $build in
6585 *-*-mingw* ) # actually msys
6586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6587 ;;
6588 *-*-cygwin* )
6589 lt_cv_to_host_file_cmd=func_convert_file_noop
6590 ;;
6591 * ) # otherwise, assume *nix
6592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6593 ;;
6594 esac
6595 ;;
6596 * ) # unhandled hosts (and "normal" native builds)
6597 lt_cv_to_host_file_cmd=func_convert_file_noop
6598 ;;
6599 esac
6600
6601 fi
6602
6603 to_host_file_cmd=$lt_cv_to_host_file_cmd
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6605 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6612 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6613 if ${lt_cv_to_tool_file_cmd+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 #assume ordinary cross tools, or native build.
6617 lt_cv_to_tool_file_cmd=func_convert_file_noop
6618 case $host in
6619 *-*-mingw* )
6620 case $build in
6621 *-*-mingw* ) # actually msys
6622 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6623 ;;
6624 esac
6625 ;;
6626 esac
6627
6628 fi
6629
6630 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6632 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6639 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6640 if ${lt_cv_ld_reload_flag+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 lt_cv_ld_reload_flag='-r'
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6646 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6647 reload_flag=$lt_cv_ld_reload_flag
6648 case $reload_flag in
6649 "" | " "*) ;;
6650 *) reload_flag=" $reload_flag" ;;
6651 esac
6652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6653 case $host_os in
6654 cygwin* | mingw* | pw32* | cegcc*)
6655 if test yes != "$GCC"; then
6656 reload_cmds=false
6657 fi
6658 ;;
6659 darwin*)
6660 if test yes = "$GCC"; then
6661 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6662 else
6663 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6664 fi
6665 ;;
6666 esac
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_OBJDUMP+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$OBJDUMP"; then
6685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 OBJDUMP=$ac_cv_prog_OBJDUMP
6705 if test -n "$OBJDUMP"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6707 $as_echo "$OBJDUMP" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_OBJDUMP"; then
6716 ac_ct_OBJDUMP=$OBJDUMP
6717 # Extract the first word of "objdump", so it can be a program name with args.
6718 set dummy objdump; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_OBJDUMP"; then
6725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6745 if test -n "$ac_ct_OBJDUMP"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6747 $as_echo "$ac_ct_OBJDUMP" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753 if test "x$ac_ct_OBJDUMP" = x; then
6754 OBJDUMP="false"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 OBJDUMP=$ac_ct_OBJDUMP
6763 fi
6764 else
6765 OBJDUMP="$ac_cv_prog_OBJDUMP"
6766 fi
6767
6768 test -z "$OBJDUMP" && OBJDUMP=objdump
6769
6770
6771
6772
6773
6774
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6776 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6777 if ${lt_cv_deplibs_check_method+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 lt_cv_file_magic_cmd='$MAGIC_CMD'
6781 lt_cv_file_magic_test_file=
6782 lt_cv_deplibs_check_method='unknown'
6783 # Need to set the preceding variable on all platforms that support
6784 # interlibrary dependencies.
6785 # 'none' -- dependencies not supported.
6786 # 'unknown' -- same as none, but documents that we really don't know.
6787 # 'pass_all' -- all dependencies passed with no checks.
6788 # 'test_compile' -- check by making test program.
6789 # 'file_magic [[regex]]' -- check by looking for files in library path
6790 # that responds to the $file_magic_cmd with a given extended regex.
6791 # If you have 'file' or equivalent on your system and you're not sure
6792 # whether 'pass_all' will *always* work, you probably want this one.
6793
6794 case $host_os in
6795 aix[4-9]*)
6796 lt_cv_deplibs_check_method=pass_all
6797 ;;
6798
6799 beos*)
6800 lt_cv_deplibs_check_method=pass_all
6801 ;;
6802
6803 bsdi[45]*)
6804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6805 lt_cv_file_magic_cmd='/usr/bin/file -L'
6806 lt_cv_file_magic_test_file=/shlib/libc.so
6807 ;;
6808
6809 cygwin*)
6810 # func_win32_libid is a shell function defined in ltmain.sh
6811 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6812 lt_cv_file_magic_cmd='func_win32_libid'
6813 ;;
6814
6815 mingw* | pw32*)
6816 # Base MSYS/MinGW do not provide the 'file' command needed by
6817 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6818 # unless we find 'file', for example because we are cross-compiling.
6819 if ( file / ) >/dev/null 2>&1; then
6820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6821 lt_cv_file_magic_cmd='func_win32_libid'
6822 else
6823 # Keep this pattern in sync with the one in func_win32_libid.
6824 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6825 lt_cv_file_magic_cmd='$OBJDUMP -f'
6826 fi
6827 ;;
6828
6829 cegcc*)
6830 # use the weaker test based on 'objdump'. See mingw*.
6831 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6832 lt_cv_file_magic_cmd='$OBJDUMP -f'
6833 ;;
6834
6835 darwin* | rhapsody*)
6836 lt_cv_deplibs_check_method=pass_all
6837 ;;
6838
6839 freebsd* | dragonfly*)
6840 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6841 case $host_cpu in
6842 i*86 )
6843 # Not sure whether the presence of OpenBSD here was a mistake.
6844 # Let's accept both of them until this is cleared up.
6845 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6846 lt_cv_file_magic_cmd=/usr/bin/file
6847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6848 ;;
6849 esac
6850 else
6851 lt_cv_deplibs_check_method=pass_all
6852 fi
6853 ;;
6854
6855 haiku*)
6856 lt_cv_deplibs_check_method=pass_all
6857 ;;
6858
6859 hpux10.20* | hpux11*)
6860 lt_cv_file_magic_cmd=/usr/bin/file
6861 case $host_cpu in
6862 ia64*)
6863 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6864 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6865 ;;
6866 hppa*64*)
6867 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]'
6868 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6869 ;;
6870 *)
6871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6872 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6873 ;;
6874 esac
6875 ;;
6876
6877 interix[3-9]*)
6878 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6880 ;;
6881
6882 irix5* | irix6* | nonstopux*)
6883 case $LD in
6884 *-32|*"-32 ") libmagic=32-bit;;
6885 *-n32|*"-n32 ") libmagic=N32;;
6886 *-64|*"-64 ") libmagic=64-bit;;
6887 *) libmagic=never-match;;
6888 esac
6889 lt_cv_deplibs_check_method=pass_all
6890 ;;
6891
6892 # This must be glibc/ELF.
6893 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6894 lt_cv_deplibs_check_method=pass_all
6895 ;;
6896
6897 netbsd*)
6898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6900 else
6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6902 fi
6903 ;;
6904
6905 newos6*)
6906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6907 lt_cv_file_magic_cmd=/usr/bin/file
6908 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6909 ;;
6910
6911 *nto* | *qnx*)
6912 lt_cv_deplibs_check_method=pass_all
6913 ;;
6914
6915 openbsd* | bitrig*)
6916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6918 else
6919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6920 fi
6921 ;;
6922
6923 osf3* | osf4* | osf5*)
6924 lt_cv_deplibs_check_method=pass_all
6925 ;;
6926
6927 rdos*)
6928 lt_cv_deplibs_check_method=pass_all
6929 ;;
6930
6931 solaris*)
6932 lt_cv_deplibs_check_method=pass_all
6933 ;;
6934
6935 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6936 lt_cv_deplibs_check_method=pass_all
6937 ;;
6938
6939 sysv4 | sysv4.3*)
6940 case $host_vendor in
6941 motorola)
6942 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]'
6943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6944 ;;
6945 ncr)
6946 lt_cv_deplibs_check_method=pass_all
6947 ;;
6948 sequent)
6949 lt_cv_file_magic_cmd='/bin/file'
6950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6951 ;;
6952 sni)
6953 lt_cv_file_magic_cmd='/bin/file'
6954 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6955 lt_cv_file_magic_test_file=/lib/libc.so
6956 ;;
6957 siemens)
6958 lt_cv_deplibs_check_method=pass_all
6959 ;;
6960 pc)
6961 lt_cv_deplibs_check_method=pass_all
6962 ;;
6963 esac
6964 ;;
6965
6966 tpf*)
6967 lt_cv_deplibs_check_method=pass_all
6968 ;;
6969 os2*)
6970 lt_cv_deplibs_check_method=pass_all
6971 ;;
6972 esac
6973
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6976 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6977
6978 file_magic_glob=
6979 want_nocaseglob=no
6980 if test "$build" = "$host"; then
6981 case $host_os in
6982 mingw* | pw32*)
6983 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6984 want_nocaseglob=yes
6985 else
6986 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6987 fi
6988 ;;
6989 esac
6990 fi
6991
6992 file_magic_cmd=$lt_cv_file_magic_cmd
6993 deplibs_check_method=$lt_cv_deplibs_check_method
6994 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 if test -n "$ac_tool_prefix"; then
7018 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_DLLTOOL+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$DLLTOOL"; then
7026 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039 done
7040 done
7041 IFS=$as_save_IFS
7042
7043 fi
7044 fi
7045 DLLTOOL=$ac_cv_prog_DLLTOOL
7046 if test -n "$DLLTOOL"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7048 $as_echo "$DLLTOOL" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7052 fi
7053
7054
7055 fi
7056 if test -z "$ac_cv_prog_DLLTOOL"; then
7057 ac_ct_DLLTOOL=$DLLTOOL
7058 # Extract the first word of "dlltool", so it can be a program name with args.
7059 set dummy dlltool; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$ac_ct_DLLTOOL"; then
7066 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7086 if test -n "$ac_ct_DLLTOOL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7088 $as_echo "$ac_ct_DLLTOOL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094 if test "x$ac_ct_DLLTOOL" = x; then
7095 DLLTOOL="false"
7096 else
7097 case $cross_compiling:$ac_tool_warned in
7098 yes:)
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7102 esac
7103 DLLTOOL=$ac_ct_DLLTOOL
7104 fi
7105 else
7106 DLLTOOL="$ac_cv_prog_DLLTOOL"
7107 fi
7108
7109 test -z "$DLLTOOL" && DLLTOOL=dlltool
7110
7111
7112
7113
7114
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7118 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7119 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 lt_cv_sharedlib_from_linklib_cmd='unknown'
7123
7124 case $host_os in
7125 cygwin* | mingw* | pw32* | cegcc*)
7126 # two different shell functions defined in ltmain.sh;
7127 # decide which one to use based on capabilities of $DLLTOOL
7128 case `$DLLTOOL --help 2>&1` in
7129 *--identify-strict*)
7130 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7131 ;;
7132 *)
7133 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7134 ;;
7135 esac
7136 ;;
7137 *)
7138 # fallback: assume linklib IS sharedlib
7139 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7140 ;;
7141 esac
7142
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7145 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7146 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7147 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7148
7149
7150
7151
7152
7153
7154
7155
7156 if test -n "$ac_tool_prefix"; then
7157 for ac_prog in ar
7158 do
7159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_AR+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$AR"; then
7167 ac_cv_prog_AR="$AR" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 AR=$ac_cv_prog_AR
7187 if test -n "$AR"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7189 $as_echo "$AR" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195
7196 test -n "$AR" && break
7197 done
7198 fi
7199 if test -z "$AR"; then
7200 ac_ct_AR=$AR
7201 for ac_prog in ar
7202 do
7203 # Extract the first word of "$ac_prog", so it can be a program name with args.
7204 set dummy $ac_prog; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$ac_ct_AR"; then
7211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_ac_ct_AR="$ac_prog"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7231 if test -n "$ac_ct_AR"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7233 $as_echo "$ac_ct_AR" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 test -n "$ac_ct_AR" && break
7241 done
7242
7243 if test "x$ac_ct_AR" = x; then
7244 AR="false"
7245 else
7246 case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252 AR=$ac_ct_AR
7253 fi
7254 fi
7255
7256 : ${AR=ar}
7257 : ${AR_FLAGS=cru}
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7270 $as_echo_n "checking for archiver @FILE support... " >&6; }
7271 if ${lt_cv_ar_at_file+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 lt_cv_ar_at_file=no
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_cxx_try_compile "$LINENO"; then :
7287 echo conftest.$ac_objext > conftest.lst
7288 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7290 (eval $lt_ar_try) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }
7294 if test 0 -eq "$ac_status"; then
7295 # Ensure the archiver fails upon bogus file names.
7296 rm -f conftest.$ac_objext libconftest.a
7297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7298 (eval $lt_ar_try) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; }
7302 if test 0 -ne "$ac_status"; then
7303 lt_cv_ar_at_file=@
7304 fi
7305 fi
7306 rm -f conftest.* libconftest.a
7307
7308 fi
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7313 $as_echo "$lt_cv_ar_at_file" >&6; }
7314
7315 if test no = "$lt_cv_ar_at_file"; then
7316 archiver_list_spec=
7317 else
7318 archiver_list_spec=$lt_cv_ar_at_file
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}strip; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_STRIP+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$STRIP"; then
7336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 STRIP=$ac_cv_prog_STRIP
7356 if test -n "$STRIP"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7358 $as_echo "$STRIP" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364
7365 fi
7366 if test -z "$ac_cv_prog_STRIP"; then
7367 ac_ct_STRIP=$STRIP
7368 # Extract the first word of "strip", so it can be a program name with args.
7369 set dummy strip; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$ac_ct_STRIP"; then
7376 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_ac_ct_STRIP="strip"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389 done
7390 done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7396 if test -n "$ac_ct_STRIP"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7398 $as_echo "$ac_ct_STRIP" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404 if test "x$ac_ct_STRIP" = x; then
7405 STRIP=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413 STRIP=$ac_ct_STRIP
7414 fi
7415 else
7416 STRIP="$ac_cv_prog_STRIP"
7417 fi
7418
7419 test -z "$STRIP" && STRIP=:
7420
7421
7422
7423
7424
7425
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_RANLIB+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test -n "$RANLIB"; then
7435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 RANLIB=$ac_cv_prog_RANLIB
7455 if test -n "$RANLIB"; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7457 $as_echo "$RANLIB" >&6; }
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463
7464 fi
7465 if test -z "$ac_cv_prog_RANLIB"; then
7466 ac_ct_RANLIB=$RANLIB
7467 # Extract the first word of "ranlib", so it can be a program name with args.
7468 set dummy ranlib; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$ac_ct_RANLIB"; then
7475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_ac_ct_RANLIB="ranlib"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7495 if test -n "$ac_ct_RANLIB"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7497 $as_echo "$ac_ct_RANLIB" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 fi
7502
7503 if test "x$ac_ct_RANLIB" = x; then
7504 RANLIB=":"
7505 else
7506 case $cross_compiling:$ac_tool_warned in
7507 yes:)
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7510 ac_tool_warned=yes ;;
7511 esac
7512 RANLIB=$ac_ct_RANLIB
7513 fi
7514 else
7515 RANLIB="$ac_cv_prog_RANLIB"
7516 fi
7517
7518 test -z "$RANLIB" && RANLIB=:
7519
7520
7521
7522
7523
7524
7525 # Determine commands to create old-style static archives.
7526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7527 old_postinstall_cmds='chmod 644 $oldlib'
7528 old_postuninstall_cmds=
7529
7530 if test -n "$RANLIB"; then
7531 case $host_os in
7532 bitrig* | openbsd*)
7533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7534 ;;
7535 *)
7536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7537 ;;
7538 esac
7539 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7540 fi
7541
7542 case $host_os in
7543 darwin*)
7544 lock_old_archive_extraction=yes ;;
7545 *)
7546 lock_old_archive_extraction=no ;;
7547 esac
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 # If no C compiler was specified, use CC.
7588 LTCC=${LTCC-"$CC"}
7589
7590 # If no C compiler flags were specified, use CFLAGS.
7591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7592
7593 # Allow CC to be a program name with arguments.
7594 compiler=$CC
7595
7596
7597 # Check for command to grab the raw symbol name followed by C symbol from nm.
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7599 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7600 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603
7604 # These are sane defaults that work on at least a few old systems.
7605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7606
7607 # Character class describing NM global symbol codes.
7608 symcode='[BCDEGRST]'
7609
7610 # Regexp to match symbols that can be accessed directly from C.
7611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7612
7613 # Define system-specific variables.
7614 case $host_os in
7615 aix*)
7616 symcode='[BCDT]'
7617 ;;
7618 cygwin* | mingw* | pw32* | cegcc*)
7619 symcode='[ABCDGISTW]'
7620 ;;
7621 hpux*)
7622 if test ia64 = "$host_cpu"; then
7623 symcode='[ABCDEGRST]'
7624 fi
7625 ;;
7626 irix* | nonstopux*)
7627 symcode='[BCDEGRST]'
7628 ;;
7629 osf*)
7630 symcode='[BCDEGQRST]'
7631 ;;
7632 solaris*)
7633 symcode='[BDRT]'
7634 ;;
7635 sco3.2v5*)
7636 symcode='[DT]'
7637 ;;
7638 sysv4.2uw2*)
7639 symcode='[DT]'
7640 ;;
7641 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7642 symcode='[ABDT]'
7643 ;;
7644 sysv4)
7645 symcode='[DFNSTU]'
7646 ;;
7647 esac
7648
7649 # If we're using GNU nm, then use its standard symbol codes.
7650 case `$NM -V 2>&1` in
7651 *GNU* | *'with BFD'*)
7652 symcode='[ABCDGIRSTW]' ;;
7653 esac
7654
7655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7656 # Gets list of data symbols to import.
7657 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7658 # Adjust the below global symbol transforms to fixup imported variables.
7659 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7660 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7661 lt_c_name_lib_hook="\
7662 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7663 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7664 else
7665 # Disable hooks by default.
7666 lt_cv_sys_global_symbol_to_import=
7667 lt_cdecl_hook=
7668 lt_c_name_hook=
7669 lt_c_name_lib_hook=
7670 fi
7671
7672 # Transform an extracted symbol line into a proper C declaration.
7673 # Some systems (esp. on ia64) link data and code symbols differently,
7674 # so use this general approach.
7675 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7676 $lt_cdecl_hook\
7677 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7678 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7679
7680 # Transform an extracted symbol line into symbol name and symbol address
7681 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7682 $lt_c_name_hook\
7683 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7684 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7685
7686 # Transform an extracted symbol line into symbol name with lib prefix and
7687 # symbol address.
7688 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7689 $lt_c_name_lib_hook\
7690 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7691 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7692 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7693
7694 # Handle CRLF in mingw tool chain
7695 opt_cr=
7696 case $build_os in
7697 mingw*)
7698 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7699 ;;
7700 esac
7701
7702 # Try without a prefix underscore, then with it.
7703 for ac_symprfx in "" "_"; do
7704
7705 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7706 symxfrm="\\1 $ac_symprfx\\2 \\2"
7707
7708 # Write the raw and C identifiers.
7709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7710 # Fake it for dumpbin and say T for any non-static function,
7711 # D for any global variable and I for any imported variable.
7712 # Also find C++ and __fastcall symbols from MSVC++,
7713 # which start with @ or ?.
7714 lt_cv_sys_global_symbol_pipe="$AWK '"\
7715 " {last_section=section; section=\$ 3};"\
7716 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7718 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7719 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7720 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7721 " \$ 0!~/External *\|/{next};"\
7722 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7723 " {if(hide[section]) next};"\
7724 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7725 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7726 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7727 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7728 " ' prfx=^$ac_symprfx"
7729 else
7730 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7731 fi
7732 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7733
7734 # Check to see that the pipe works correctly.
7735 pipe_works=no
7736
7737 rm -f conftest*
7738 cat > conftest.$ac_ext <<_LT_EOF
7739 #ifdef __cplusplus
7740 extern "C" {
7741 #endif
7742 char nm_test_var;
7743 void nm_test_func(void);
7744 void nm_test_func(void){}
7745 #ifdef __cplusplus
7746 }
7747 #endif
7748 int main(){nm_test_var='a';nm_test_func();return(0);}
7749 _LT_EOF
7750
7751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7752 (eval $ac_compile) 2>&5
7753 ac_status=$?
7754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755 test $ac_status = 0; }; then
7756 # Now try to grab the symbols.
7757 nlist=conftest.nm
7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7759 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7760 ac_status=$?
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; } && test -s "$nlist"; then
7763 # Try sorting and uniquifying the output.
7764 if sort "$nlist" | uniq > "$nlist"T; then
7765 mv -f "$nlist"T "$nlist"
7766 else
7767 rm -f "$nlist"T
7768 fi
7769
7770 # Make sure that we snagged all the symbols we need.
7771 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7773 cat <<_LT_EOF > conftest.$ac_ext
7774 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7775 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7776 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7777 relocations are performed -- see ld's documentation on pseudo-relocs. */
7778 # define LT_DLSYM_CONST
7779 #elif defined __osf__
7780 /* This system does not cope well with relocations in const data. */
7781 # define LT_DLSYM_CONST
7782 #else
7783 # define LT_DLSYM_CONST const
7784 #endif
7785
7786 #ifdef __cplusplus
7787 extern "C" {
7788 #endif
7789
7790 _LT_EOF
7791 # Now generate the symbol file.
7792 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7793
7794 cat <<_LT_EOF >> conftest.$ac_ext
7795
7796 /* The mapping between symbol names and symbols. */
7797 LT_DLSYM_CONST struct {
7798 const char *name;
7799 void *address;
7800 }
7801 lt__PROGRAM__LTX_preloaded_symbols[] =
7802 {
7803 { "@PROGRAM@", (void *) 0 },
7804 _LT_EOF
7805 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7806 cat <<\_LT_EOF >> conftest.$ac_ext
7807 {0, (void *) 0}
7808 };
7809
7810 /* This works around a problem in FreeBSD linker */
7811 #ifdef FREEBSD_WORKAROUND
7812 static const void *lt_preloaded_setup() {
7813 return lt__PROGRAM__LTX_preloaded_symbols;
7814 }
7815 #endif
7816
7817 #ifdef __cplusplus
7818 }
7819 #endif
7820 _LT_EOF
7821 # Now try linking the two files.
7822 mv conftest.$ac_objext conftstm.$ac_objext
7823 lt_globsym_save_LIBS=$LIBS
7824 lt_globsym_save_CFLAGS=$CFLAGS
7825 LIBS=conftstm.$ac_objext
7826 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7828 (eval $ac_link) 2>&5
7829 ac_status=$?
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7832 pipe_works=yes
7833 fi
7834 LIBS=$lt_globsym_save_LIBS
7835 CFLAGS=$lt_globsym_save_CFLAGS
7836 else
7837 echo "cannot find nm_test_func in $nlist" >&5
7838 fi
7839 else
7840 echo "cannot find nm_test_var in $nlist" >&5
7841 fi
7842 else
7843 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7844 fi
7845 else
7846 echo "$progname: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7848 fi
7849 rm -rf conftest* conftst*
7850
7851 # Do not use the global_symbol_pipe unless it works.
7852 if test yes = "$pipe_works"; then
7853 break
7854 else
7855 lt_cv_sys_global_symbol_pipe=
7856 fi
7857 done
7858
7859 fi
7860
7861 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7862 lt_cv_sys_global_symbol_to_cdecl=
7863 fi
7864 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7866 $as_echo "failed" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7869 $as_echo "ok" >&6; }
7870 fi
7871
7872 # Response file support.
7873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7874 nm_file_list_spec='@'
7875 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7876 nm_file_list_spec='@'
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7916 $as_echo_n "checking for sysroot... " >&6; }
7917
7918 # Check whether --with-sysroot was given.
7919 if test "${with_sysroot+set}" = set; then :
7920 withval=$with_sysroot;
7921 else
7922 with_sysroot=no
7923 fi
7924
7925
7926 lt_sysroot=
7927 case $with_sysroot in #(
7928 yes)
7929 if test yes = "$GCC"; then
7930 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7931 fi
7932 ;; #(
7933 /*)
7934 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7935 ;; #(
7936 no|'')
7937 ;; #(
7938 *)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7940 $as_echo "$with_sysroot" >&6; }
7941 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7942 ;;
7943 esac
7944
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7946 $as_echo "${lt_sysroot:-no}" >&6; }
7947
7948
7949
7950
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7953 $as_echo_n "checking for a working dd... " >&6; }
7954 if ${ac_cv_path_lt_DD+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 printf 0123456789abcdef0123456789abcdef >conftest.i
7958 cat conftest.i conftest.i >conftest2.i
7959 : ${lt_DD:=$DD}
7960 if test -z "$lt_DD"; then
7961 ac_path_lt_DD_found=false
7962 # Loop through the user's path and test for each of PROGNAME-LIST
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_prog in dd; do
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7971 as_fn_executable_p "$ac_path_lt_DD" || continue
7972 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7973 cmp -s conftest.i conftest.out \
7974 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7975 fi
7976 $ac_path_lt_DD_found && break 3
7977 done
7978 done
7979 done
7980 IFS=$as_save_IFS
7981 if test -z "$ac_cv_path_lt_DD"; then
7982 :
7983 fi
7984 else
7985 ac_cv_path_lt_DD=$lt_DD
7986 fi
7987
7988 rm -f conftest.i conftest2.i conftest.out
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7991 $as_echo "$ac_cv_path_lt_DD" >&6; }
7992
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7995 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7996 if ${lt_cv_truncate_bin+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 printf 0123456789abcdef0123456789abcdef >conftest.i
8000 cat conftest.i conftest.i >conftest2.i
8001 lt_cv_truncate_bin=
8002 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8003 cmp -s conftest.i conftest.out \
8004 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8005 fi
8006 rm -f conftest.i conftest2.i conftest.out
8007 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8010 $as_echo "$lt_cv_truncate_bin" >&6; }
8011
8012
8013
8014
8015
8016
8017
8018 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8019 func_cc_basename ()
8020 {
8021 for cc_temp in $*""; do
8022 case $cc_temp in
8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8025 \-*) ;;
8026 *) break;;
8027 esac
8028 done
8029 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8030 }
8031
8032 # Check whether --enable-libtool-lock was given.
8033 if test "${enable_libtool_lock+set}" = set; then :
8034 enableval=$enable_libtool_lock;
8035 fi
8036
8037 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8038
8039 # Some flags need to be propagated to the compiler or linker for good
8040 # libtool support.
8041 case $host in
8042 ia64-*-hpux*)
8043 # Find out what ABI is being produced by ac_compile, and set mode
8044 # options accordingly.
8045 echo 'int i;' > conftest.$ac_ext
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 case `/usr/bin/file conftest.$ac_objext` in
8052 *ELF-32*)
8053 HPUX_IA64_MODE=32
8054 ;;
8055 *ELF-64*)
8056 HPUX_IA64_MODE=64
8057 ;;
8058 esac
8059 fi
8060 rm -rf conftest*
8061 ;;
8062 *-*-irix6*)
8063 # Find out what ABI is being produced by ac_compile, and set linker
8064 # options accordingly.
8065 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8067 (eval $ac_compile) 2>&5
8068 ac_status=$?
8069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070 test $ac_status = 0; }; then
8071 if test yes = "$lt_cv_prog_gnu_ld"; then
8072 case `/usr/bin/file conftest.$ac_objext` in
8073 *32-bit*)
8074 LD="${LD-ld} -melf32bsmip"
8075 ;;
8076 *N32*)
8077 LD="${LD-ld} -melf32bmipn32"
8078 ;;
8079 *64-bit*)
8080 LD="${LD-ld} -melf64bmip"
8081 ;;
8082 esac
8083 else
8084 case `/usr/bin/file conftest.$ac_objext` in
8085 *32-bit*)
8086 LD="${LD-ld} -32"
8087 ;;
8088 *N32*)
8089 LD="${LD-ld} -n32"
8090 ;;
8091 *64-bit*)
8092 LD="${LD-ld} -64"
8093 ;;
8094 esac
8095 fi
8096 fi
8097 rm -rf conftest*
8098 ;;
8099
8100 mips64*-*linux*)
8101 # Find out what ABI is being produced by ac_compile, and set linker
8102 # options accordingly.
8103 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8105 (eval $ac_compile) 2>&5
8106 ac_status=$?
8107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }; then
8109 emul=elf
8110 case `/usr/bin/file conftest.$ac_objext` in
8111 *32-bit*)
8112 emul="${emul}32"
8113 ;;
8114 *64-bit*)
8115 emul="${emul}64"
8116 ;;
8117 esac
8118 case `/usr/bin/file conftest.$ac_objext` in
8119 *MSB*)
8120 emul="${emul}btsmip"
8121 ;;
8122 *LSB*)
8123 emul="${emul}ltsmip"
8124 ;;
8125 esac
8126 case `/usr/bin/file conftest.$ac_objext` in
8127 *N32*)
8128 emul="${emul}n32"
8129 ;;
8130 esac
8131 LD="${LD-ld} -m $emul"
8132 fi
8133 rm -rf conftest*
8134 ;;
8135
8136 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8137 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8138 # Find out what ABI is being produced by ac_compile, and set linker
8139 # options accordingly. Note that the listed cases only cover the
8140 # situations where additional linker options are needed (such as when
8141 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8142 # vice versa); the common cases where no linker options are needed do
8143 # not appear in the list.
8144 echo 'int i;' > conftest.$ac_ext
8145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8146 (eval $ac_compile) 2>&5
8147 ac_status=$?
8148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8149 test $ac_status = 0; }; then
8150 case `/usr/bin/file conftest.o` in
8151 *32-bit*)
8152 case $host in
8153 x86_64-*kfreebsd*-gnu)
8154 LD="${LD-ld} -m elf_i386_fbsd"
8155 ;;
8156 x86_64-*linux*)
8157 case `/usr/bin/file conftest.o` in
8158 *x86-64*)
8159 LD="${LD-ld} -m elf32_x86_64"
8160 ;;
8161 *)
8162 LD="${LD-ld} -m elf_i386"
8163 ;;
8164 esac
8165 ;;
8166 powerpc64le-*linux*)
8167 LD="${LD-ld} -m elf32lppclinux"
8168 ;;
8169 powerpc64-*linux*)
8170 LD="${LD-ld} -m elf32ppclinux"
8171 ;;
8172 s390x-*linux*)
8173 LD="${LD-ld} -m elf_s390"
8174 ;;
8175 sparc64-*linux*)
8176 LD="${LD-ld} -m elf32_sparc"
8177 ;;
8178 esac
8179 ;;
8180 *64-bit*)
8181 case $host in
8182 x86_64-*kfreebsd*-gnu)
8183 LD="${LD-ld} -m elf_x86_64_fbsd"
8184 ;;
8185 x86_64-*linux*)
8186 LD="${LD-ld} -m elf_x86_64"
8187 ;;
8188 powerpcle-*linux*)
8189 LD="${LD-ld} -m elf64lppc"
8190 ;;
8191 powerpc-*linux*)
8192 LD="${LD-ld} -m elf64ppc"
8193 ;;
8194 s390*-*linux*|s390*-*tpf*)
8195 LD="${LD-ld} -m elf64_s390"
8196 ;;
8197 sparc*-*linux*)
8198 LD="${LD-ld} -m elf64_sparc"
8199 ;;
8200 esac
8201 ;;
8202 esac
8203 fi
8204 rm -rf conftest*
8205 ;;
8206
8207 *-*-sco3.2v5*)
8208 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8209 SAVE_CFLAGS=$CFLAGS
8210 CFLAGS="$CFLAGS -belf"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8212 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8213 if ${lt_cv_cc_needs_belf+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_ext=c
8217 ac_cpp='$CPP $CPPFLAGS'
8218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224
8225 int
8226 main ()
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"; then :
8234 lt_cv_cc_needs_belf=yes
8235 else
8236 lt_cv_cc_needs_belf=no
8237 fi
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 ac_ext=c
8241 ac_cpp='$CPP $CPPFLAGS'
8242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8248 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8249 if test yes != "$lt_cv_cc_needs_belf"; then
8250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8251 CFLAGS=$SAVE_CFLAGS
8252 fi
8253 ;;
8254 *-*solaris*)
8255 # Find out what ABI is being produced by ac_compile, and set linker
8256 # options accordingly.
8257 echo 'int i;' > conftest.$ac_ext
8258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8259 (eval $ac_compile) 2>&5
8260 ac_status=$?
8261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; }; then
8263 case `/usr/bin/file conftest.o` in
8264 *64-bit*)
8265 case $lt_cv_prog_gnu_ld in
8266 yes*)
8267 case $host in
8268 i?86-*-solaris*|x86_64-*-solaris*)
8269 LD="${LD-ld} -m elf_x86_64"
8270 ;;
8271 sparc*-*-solaris*)
8272 LD="${LD-ld} -m elf64_sparc"
8273 ;;
8274 esac
8275 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8276 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8277 LD=${LD-ld}_sol2
8278 fi
8279 ;;
8280 *)
8281 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8282 LD="${LD-ld} -64"
8283 fi
8284 ;;
8285 esac
8286 ;;
8287 esac
8288 fi
8289 rm -rf conftest*
8290 ;;
8291 esac
8292
8293 need_locks=$enable_libtool_lock
8294
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}mt; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$MANIFEST_TOOL"; then
8304 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317 done
8318 done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8324 if test -n "$MANIFEST_TOOL"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8326 $as_echo "$MANIFEST_TOOL" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8335 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8336 # Extract the first word of "mt", so it can be a program name with args.
8337 set dummy mt; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$ac_ct_MANIFEST_TOOL"; then
8344 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8364 if test -n "$ac_ct_MANIFEST_TOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8366 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8373 MANIFEST_TOOL=":"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8382 fi
8383 else
8384 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8385 fi
8386
8387 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8389 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8390 if ${lt_cv_path_mainfest_tool+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 lt_cv_path_mainfest_tool=no
8394 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8395 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8396 cat conftest.err >&5
8397 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8398 lt_cv_path_mainfest_tool=yes
8399 fi
8400 rm -f conftest*
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8403 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8404 if test yes != "$lt_cv_path_mainfest_tool"; then
8405 MANIFEST_TOOL=:
8406 fi
8407
8408
8409
8410
8411
8412
8413 case $host_os in
8414 rhapsody* | darwin*)
8415 if test -n "$ac_tool_prefix"; then
8416 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8417 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$DSYMUTIL"; then
8424 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8444 if test -n "$DSYMUTIL"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8446 $as_echo "$DSYMUTIL" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453 fi
8454 if test -z "$ac_cv_prog_DSYMUTIL"; then
8455 ac_ct_DSYMUTIL=$DSYMUTIL
8456 # Extract the first word of "dsymutil", so it can be a program name with args.
8457 set dummy dsymutil; ac_word=$2
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459 $as_echo_n "checking for $ac_word... " >&6; }
8460 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 if test -n "$ac_ct_DSYMUTIL"; then
8464 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8465 else
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8468 do
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 break 2
8476 fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481 fi
8482 fi
8483 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8484 if test -n "$ac_ct_DSYMUTIL"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8486 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8487 else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8490 fi
8491
8492 if test "x$ac_ct_DSYMUTIL" = x; then
8493 DSYMUTIL=":"
8494 else
8495 case $cross_compiling:$ac_tool_warned in
8496 yes:)
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8499 ac_tool_warned=yes ;;
8500 esac
8501 DSYMUTIL=$ac_ct_DSYMUTIL
8502 fi
8503 else
8504 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8505 fi
8506
8507 if test -n "$ac_tool_prefix"; then
8508 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_prog_NMEDIT+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 if test -n "$NMEDIT"; then
8516 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529 done
8530 done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 NMEDIT=$ac_cv_prog_NMEDIT
8536 if test -n "$NMEDIT"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8538 $as_echo "$NMEDIT" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545 fi
8546 if test -z "$ac_cv_prog_NMEDIT"; then
8547 ac_ct_NMEDIT=$NMEDIT
8548 # Extract the first word of "nmedit", so it can be a program name with args.
8549 set dummy nmedit; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 if test -n "$ac_ct_NMEDIT"; then
8556 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8560 do
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8568 fi
8569 done
8570 done
8571 IFS=$as_save_IFS
8572
8573 fi
8574 fi
8575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8576 if test -n "$ac_ct_NMEDIT"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8578 $as_echo "$ac_ct_NMEDIT" >&6; }
8579 else
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8582 fi
8583
8584 if test "x$ac_ct_NMEDIT" = x; then
8585 NMEDIT=":"
8586 else
8587 case $cross_compiling:$ac_tool_warned in
8588 yes:)
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8591 ac_tool_warned=yes ;;
8592 esac
8593 NMEDIT=$ac_ct_NMEDIT
8594 fi
8595 else
8596 NMEDIT="$ac_cv_prog_NMEDIT"
8597 fi
8598
8599 if test -n "$ac_tool_prefix"; then
8600 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8601 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_prog_LIPO+:} false; then :
8605 $as_echo_n "(cached) " >&6
8606 else
8607 if test -n "$LIPO"; then
8608 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8609 else
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621 done
8622 done
8623 IFS=$as_save_IFS
8624
8625 fi
8626 fi
8627 LIPO=$ac_cv_prog_LIPO
8628 if test -n "$LIPO"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8630 $as_echo "$LIPO" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635
8636
8637 fi
8638 if test -z "$ac_cv_prog_LIPO"; then
8639 ac_ct_LIPO=$LIPO
8640 # Extract the first word of "lipo", so it can be a program name with args.
8641 set dummy lipo; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 if test -n "$ac_ct_LIPO"; then
8648 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8649 else
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 for as_dir in $PATH
8652 do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657 ac_cv_prog_ac_ct_LIPO="lipo"
8658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8660 fi
8661 done
8662 done
8663 IFS=$as_save_IFS
8664
8665 fi
8666 fi
8667 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8668 if test -n "$ac_ct_LIPO"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8670 $as_echo "$ac_ct_LIPO" >&6; }
8671 else
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8674 fi
8675
8676 if test "x$ac_ct_LIPO" = x; then
8677 LIPO=":"
8678 else
8679 case $cross_compiling:$ac_tool_warned in
8680 yes:)
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8683 ac_tool_warned=yes ;;
8684 esac
8685 LIPO=$ac_ct_LIPO
8686 fi
8687 else
8688 LIPO="$ac_cv_prog_LIPO"
8689 fi
8690
8691 if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8693 set dummy ${ac_tool_prefix}otool; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_OTOOL+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 if test -n "$OTOOL"; then
8700 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715 IFS=$as_save_IFS
8716
8717 fi
8718 fi
8719 OTOOL=$ac_cv_prog_OTOOL
8720 if test -n "$OTOOL"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8722 $as_echo "$OTOOL" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 fi
8727
8728
8729 fi
8730 if test -z "$ac_cv_prog_OTOOL"; then
8731 ac_ct_OTOOL=$OTOOL
8732 # Extract the first word of "otool", so it can be a program name with args.
8733 set dummy otool; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -n "$ac_ct_OTOOL"; then
8740 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_ac_ct_OTOOL="otool"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753 done
8754 done
8755 IFS=$as_save_IFS
8756
8757 fi
8758 fi
8759 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8760 if test -n "$ac_ct_OTOOL"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8762 $as_echo "$ac_ct_OTOOL" >&6; }
8763 else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765 $as_echo "no" >&6; }
8766 fi
8767
8768 if test "x$ac_ct_OTOOL" = x; then
8769 OTOOL=":"
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772 yes:)
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775 ac_tool_warned=yes ;;
8776 esac
8777 OTOOL=$ac_ct_OTOOL
8778 fi
8779 else
8780 OTOOL="$ac_cv_prog_OTOOL"
8781 fi
8782
8783 if test -n "$ac_tool_prefix"; then
8784 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8785 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_prog_OTOOL64+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 if test -n "$OTOOL64"; then
8792 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8793 else
8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795 for as_dir in $PATH
8796 do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8801 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 break 2
8804 fi
8805 done
8806 done
8807 IFS=$as_save_IFS
8808
8809 fi
8810 fi
8811 OTOOL64=$ac_cv_prog_OTOOL64
8812 if test -n "$OTOOL64"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8814 $as_echo "$OTOOL64" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 fi
8819
8820
8821 fi
8822 if test -z "$ac_cv_prog_OTOOL64"; then
8823 ac_ct_OTOOL64=$OTOOL64
8824 # Extract the first word of "otool64", so it can be a program name with args.
8825 set dummy otool64; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$ac_ct_OTOOL64"; then
8832 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_prog_ac_ct_OTOOL64="otool64"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8852 if test -n "$ac_ct_OTOOL64"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8854 $as_echo "$ac_ct_OTOOL64" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860 if test "x$ac_ct_OTOOL64" = x; then
8861 OTOOL64=":"
8862 else
8863 case $cross_compiling:$ac_tool_warned in
8864 yes:)
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8867 ac_tool_warned=yes ;;
8868 esac
8869 OTOOL64=$ac_ct_OTOOL64
8870 fi
8871 else
8872 OTOOL64="$ac_cv_prog_OTOOL64"
8873 fi
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8902 $as_echo_n "checking for -single_module linker flag... " >&6; }
8903 if ${lt_cv_apple_cc_single_mod+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 lt_cv_apple_cc_single_mod=no
8907 if test -z "$LT_MULTI_MODULE"; then
8908 # By default we will add the -single_module flag. You can override
8909 # by either setting the environment variable LT_MULTI_MODULE
8910 # non-empty at configure time, or by adding -multi_module to the
8911 # link flags.
8912 rm -rf libconftest.dylib*
8913 echo "int foo(void){return 1;}" > conftest.c
8914 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8915 -dynamiclib -Wl,-single_module conftest.c" >&5
8916 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8917 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8918 _lt_result=$?
8919 # If there is a non-empty error log, and "single_module"
8920 # appears in it, assume the flag caused a linker warning
8921 if test -s conftest.err && $GREP single_module conftest.err; then
8922 cat conftest.err >&5
8923 # Otherwise, if the output was created with a 0 exit code from
8924 # the compiler, it worked.
8925 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8926 lt_cv_apple_cc_single_mod=yes
8927 else
8928 cat conftest.err >&5
8929 fi
8930 rm -rf libconftest.dylib*
8931 rm -f conftest.*
8932 fi
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8935 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8938 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8939 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 lt_cv_ld_exported_symbols_list=no
8943 save_LDFLAGS=$LDFLAGS
8944 echo "_main" > conftest.sym
8945 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8948
8949 int
8950 main ()
8951 {
8952
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 if ac_fn_c_try_link "$LINENO"; then :
8958 lt_cv_ld_exported_symbols_list=yes
8959 else
8960 lt_cv_ld_exported_symbols_list=no
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext \
8963 conftest$ac_exeext conftest.$ac_ext
8964 LDFLAGS=$save_LDFLAGS
8965
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8968 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8969
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8971 $as_echo_n "checking for -force_load linker flag... " >&6; }
8972 if ${lt_cv_ld_force_load+:} false; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 lt_cv_ld_force_load=no
8976 cat > conftest.c << _LT_EOF
8977 int forced_loaded() { return 2;}
8978 _LT_EOF
8979 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8980 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8981 echo "$AR cru libconftest.a conftest.o" >&5
8982 $AR cru libconftest.a conftest.o 2>&5
8983 echo "$RANLIB libconftest.a" >&5
8984 $RANLIB libconftest.a 2>&5
8985 cat > conftest.c << _LT_EOF
8986 int main() { return 0;}
8987 _LT_EOF
8988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8990 _lt_result=$?
8991 if test -s conftest.err && $GREP force_load conftest.err; then
8992 cat conftest.err >&5
8993 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8994 lt_cv_ld_force_load=yes
8995 else
8996 cat conftest.err >&5
8997 fi
8998 rm -f conftest.err libconftest.a conftest conftest.c
8999 rm -rf conftest.dSYM
9000
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9003 $as_echo "$lt_cv_ld_force_load" >&6; }
9004 case $host_os in
9005 rhapsody* | darwin1.[012])
9006 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9007 darwin1.*)
9008 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9009 darwin*) # darwin 5.x on
9010 # if running on 10.5 or later, the deployment target defaults
9011 # to the OS version, if on x86, and 10.4, the deployment
9012 # target defaults to 10.4. Don't you love it?
9013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9015 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9016 10.[012][,.]*)
9017 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9018 10.*)
9019 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9020 esac
9021 ;;
9022 esac
9023 if test yes = "$lt_cv_apple_cc_single_mod"; then
9024 _lt_dar_single_mod='$single_module'
9025 fi
9026 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9027 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9028 else
9029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9030 fi
9031 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9032 _lt_dsymutil='~$DSYMUTIL $lib || :'
9033 else
9034 _lt_dsymutil=
9035 fi
9036 ;;
9037 esac
9038
9039 # func_munge_path_list VARIABLE PATH
9040 # -----------------------------------
9041 # VARIABLE is name of variable containing _space_ separated list of
9042 # directories to be munged by the contents of PATH, which is string
9043 # having a format:
9044 # "DIR[:DIR]:"
9045 # string "DIR[ DIR]" will be prepended to VARIABLE
9046 # ":DIR[:DIR]"
9047 # string "DIR[ DIR]" will be appended to VARIABLE
9048 # "DIRP[:DIRP]::[DIRA:]DIRA"
9049 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9050 # "DIRA[ DIRA]" will be appended to VARIABLE
9051 # "DIR[:DIR]"
9052 # VARIABLE will be replaced by "DIR[ DIR]"
9053 func_munge_path_list ()
9054 {
9055 case x$2 in
9056 x)
9057 ;;
9058 *:)
9059 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9060 ;;
9061 x:*)
9062 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9063 ;;
9064 *::*)
9065 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9066 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9067 ;;
9068 *)
9069 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9070 ;;
9071 esac
9072 }
9073
9074
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9076 $as_echo_n "checking for ANSI C header files... " >&6; }
9077 if ${ac_cv_header_stdc+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 #include <stdlib.h>
9083 #include <stdarg.h>
9084 #include <string.h>
9085 #include <float.h>
9086
9087 int
9088 main ()
9089 {
9090
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_compile "$LINENO"; then :
9096 ac_cv_header_stdc=yes
9097 else
9098 ac_cv_header_stdc=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101
9102 if test $ac_cv_header_stdc = yes; then
9103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #include <string.h>
9107
9108 _ACEOF
9109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9110 $EGREP "memchr" >/dev/null 2>&1; then :
9111
9112 else
9113 ac_cv_header_stdc=no
9114 fi
9115 rm -f conftest*
9116
9117 fi
9118
9119 if test $ac_cv_header_stdc = yes; then
9120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 #include <stdlib.h>
9124
9125 _ACEOF
9126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9127 $EGREP "free" >/dev/null 2>&1; then :
9128
9129 else
9130 ac_cv_header_stdc=no
9131 fi
9132 rm -f conftest*
9133
9134 fi
9135
9136 if test $ac_cv_header_stdc = yes; then
9137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9138 if test "$cross_compiling" = yes; then :
9139 :
9140 else
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 #include <ctype.h>
9144 #include <stdlib.h>
9145 #if ((' ' & 0x0FF) == 0x020)
9146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9148 #else
9149 # define ISLOWER(c) \
9150 (('a' <= (c) && (c) <= 'i') \
9151 || ('j' <= (c) && (c) <= 'r') \
9152 || ('s' <= (c) && (c) <= 'z'))
9153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9154 #endif
9155
9156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9157 int
9158 main ()
9159 {
9160 int i;
9161 for (i = 0; i < 256; i++)
9162 if (XOR (islower (i), ISLOWER (i))
9163 || toupper (i) != TOUPPER (i))
9164 return 2;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_run "$LINENO"; then :
9169
9170 else
9171 ac_cv_header_stdc=no
9172 fi
9173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9174 conftest.$ac_objext conftest.beam conftest.$ac_ext
9175 fi
9176
9177 fi
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9180 $as_echo "$ac_cv_header_stdc" >&6; }
9181 if test $ac_cv_header_stdc = yes; then
9182
9183 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9184
9185 fi
9186
9187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9189 inttypes.h stdint.h unistd.h
9190 do :
9191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9192 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9193 "
9194 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9195 cat >>confdefs.h <<_ACEOF
9196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9197 _ACEOF
9198
9199 fi
9200
9201 done
9202
9203
9204 for ac_header in dlfcn.h
9205 do :
9206 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9207 "
9208 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_DLFCN_H 1
9211 _ACEOF
9212
9213 fi
9214
9215 done
9216
9217
9218
9219 func_stripname_cnf ()
9220 {
9221 case $2 in
9222 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9223 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9224 esac
9225 } # func_stripname_cnf
9226
9227
9228
9229
9230
9231 # Set options
9232 enable_win32_dll=yes
9233
9234 case $host in
9235 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9236 if test -n "$ac_tool_prefix"; then
9237 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9238 set dummy ${ac_tool_prefix}as; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if ${ac_cv_prog_AS+:} false; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 if test -n "$AS"; then
9245 ac_cv_prog_AS="$AS" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254 ac_cv_prog_AS="${ac_tool_prefix}as"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258 done
9259 done
9260 IFS=$as_save_IFS
9261
9262 fi
9263 fi
9264 AS=$ac_cv_prog_AS
9265 if test -n "$AS"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9267 $as_echo "$AS" >&6; }
9268 else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272
9273
9274 fi
9275 if test -z "$ac_cv_prog_AS"; then
9276 ac_ct_AS=$AS
9277 # Extract the first word of "as", so it can be a program name with args.
9278 set dummy as; ac_word=$2
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 $as_echo_n "checking for $ac_word... " >&6; }
9281 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9282 $as_echo_n "(cached) " >&6
9283 else
9284 if test -n "$ac_ct_AS"; then
9285 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_ac_ct_AS="as"
9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298 done
9299 done
9300 IFS=$as_save_IFS
9301
9302 fi
9303 fi
9304 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9305 if test -n "$ac_ct_AS"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9307 $as_echo "$ac_ct_AS" >&6; }
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312
9313 if test "x$ac_ct_AS" = x; then
9314 AS="false"
9315 else
9316 case $cross_compiling:$ac_tool_warned in
9317 yes:)
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9320 ac_tool_warned=yes ;;
9321 esac
9322 AS=$ac_ct_AS
9323 fi
9324 else
9325 AS="$ac_cv_prog_AS"
9326 fi
9327
9328 if test -n "$ac_tool_prefix"; then
9329 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9330 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if ${ac_cv_prog_DLLTOOL+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test -n "$DLLTOOL"; then
9337 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9349 fi
9350 done
9351 done
9352 IFS=$as_save_IFS
9353
9354 fi
9355 fi
9356 DLLTOOL=$ac_cv_prog_DLLTOOL
9357 if test -n "$DLLTOOL"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9359 $as_echo "$DLLTOOL" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9363 fi
9364
9365
9366 fi
9367 if test -z "$ac_cv_prog_DLLTOOL"; then
9368 ac_ct_DLLTOOL=$DLLTOOL
9369 # Extract the first word of "dlltool", so it can be a program name with args.
9370 set dummy dlltool; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 if test -n "$ac_ct_DLLTOOL"; then
9377 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9378 else
9379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9380 for as_dir in $PATH
9381 do
9382 IFS=$as_save_IFS
9383 test -z "$as_dir" && as_dir=.
9384 for ac_exec_ext in '' $ac_executable_extensions; do
9385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9386 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9388 break 2
9389 fi
9390 done
9391 done
9392 IFS=$as_save_IFS
9393
9394 fi
9395 fi
9396 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9397 if test -n "$ac_ct_DLLTOOL"; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9399 $as_echo "$ac_ct_DLLTOOL" >&6; }
9400 else
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9403 fi
9404
9405 if test "x$ac_ct_DLLTOOL" = x; then
9406 DLLTOOL="false"
9407 else
9408 case $cross_compiling:$ac_tool_warned in
9409 yes:)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9412 ac_tool_warned=yes ;;
9413 esac
9414 DLLTOOL=$ac_ct_DLLTOOL
9415 fi
9416 else
9417 DLLTOOL="$ac_cv_prog_DLLTOOL"
9418 fi
9419
9420 if test -n "$ac_tool_prefix"; then
9421 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9422 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_prog_OBJDUMP+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 if test -n "$OBJDUMP"; then
9429 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9430 else
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9432 for as_dir in $PATH
9433 do
9434 IFS=$as_save_IFS
9435 test -z "$as_dir" && as_dir=.
9436 for ac_exec_ext in '' $ac_executable_extensions; do
9437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9438 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9440 break 2
9441 fi
9442 done
9443 done
9444 IFS=$as_save_IFS
9445
9446 fi
9447 fi
9448 OBJDUMP=$ac_cv_prog_OBJDUMP
9449 if test -n "$OBJDUMP"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9451 $as_echo "$OBJDUMP" >&6; }
9452 else
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9455 fi
9456
9457
9458 fi
9459 if test -z "$ac_cv_prog_OBJDUMP"; then
9460 ac_ct_OBJDUMP=$OBJDUMP
9461 # Extract the first word of "objdump", so it can be a program name with args.
9462 set dummy objdump; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 if test -n "$ac_ct_OBJDUMP"; then
9469 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482 done
9483 done
9484 IFS=$as_save_IFS
9485
9486 fi
9487 fi
9488 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9489 if test -n "$ac_ct_OBJDUMP"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9491 $as_echo "$ac_ct_OBJDUMP" >&6; }
9492 else
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497 if test "x$ac_ct_OBJDUMP" = x; then
9498 OBJDUMP="false"
9499 else
9500 case $cross_compiling:$ac_tool_warned in
9501 yes:)
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9504 ac_tool_warned=yes ;;
9505 esac
9506 OBJDUMP=$ac_ct_OBJDUMP
9507 fi
9508 else
9509 OBJDUMP="$ac_cv_prog_OBJDUMP"
9510 fi
9511
9512 ;;
9513 esac
9514
9515 test -z "$AS" && AS=as
9516
9517
9518
9519
9520
9521 test -z "$DLLTOOL" && DLLTOOL=dlltool
9522
9523
9524
9525
9526
9527 test -z "$OBJDUMP" && OBJDUMP=objdump
9528
9529
9530
9531
9532 # Check whether --enable-static was given.
9533 if test "${enable_static+set}" = set; then :
9534 enableval=$enable_static; p=${PACKAGE-default}
9535 case $enableval in
9536 yes) enable_static=yes ;;
9537 no) enable_static=no ;;
9538 *)
9539 enable_static=no
9540 # Look at the argument we got. We use all the common list separators.
9541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9542 for pkg in $enableval; do
9543 IFS=$lt_save_ifs
9544 if test "X$pkg" = "X$p"; then
9545 enable_static=yes
9546 fi
9547 done
9548 IFS=$lt_save_ifs
9549 ;;
9550 esac
9551 else
9552 enable_static=no
9553 fi
9554
9555
9556
9557
9558
9559
9560
9561
9562 # Check whether --with-pic was given.
9563 if test "${with_pic+set}" = set; then :
9564 withval=$with_pic; lt_p=${PACKAGE-default}
9565 case $withval in
9566 yes|no) pic_mode=$withval ;;
9567 *)
9568 pic_mode=default
9569 # Look at the argument we got. We use all the common list separators.
9570 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9571 for lt_pkg in $withval; do
9572 IFS=$lt_save_ifs
9573 if test "X$lt_pkg" = "X$lt_p"; then
9574 pic_mode=yes
9575 fi
9576 done
9577 IFS=$lt_save_ifs
9578 ;;
9579 esac
9580 else
9581 pic_mode=yes
9582 fi
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592 enable_dlopen=no
9593
9594
9595
9596 # Check whether --enable-shared was given.
9597 if test "${enable_shared+set}" = set; then :
9598 enableval=$enable_shared; p=${PACKAGE-default}
9599 case $enableval in
9600 yes) enable_shared=yes ;;
9601 no) enable_shared=no ;;
9602 *)
9603 enable_shared=no
9604 # Look at the argument we got. We use all the common list separators.
9605 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9606 for pkg in $enableval; do
9607 IFS=$lt_save_ifs
9608 if test "X$pkg" = "X$p"; then
9609 enable_shared=yes
9610 fi
9611 done
9612 IFS=$lt_save_ifs
9613 ;;
9614 esac
9615 else
9616 enable_shared=yes
9617 fi
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629 # Check whether --enable-fast-install was given.
9630 if test "${enable_fast_install+set}" = set; then :
9631 enableval=$enable_fast_install; p=${PACKAGE-default}
9632 case $enableval in
9633 yes) enable_fast_install=yes ;;
9634 no) enable_fast_install=no ;;
9635 *)
9636 enable_fast_install=no
9637 # Look at the argument we got. We use all the common list separators.
9638 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9639 for pkg in $enableval; do
9640 IFS=$lt_save_ifs
9641 if test "X$pkg" = "X$p"; then
9642 enable_fast_install=yes
9643 fi
9644 done
9645 IFS=$lt_save_ifs
9646 ;;
9647 esac
9648 else
9649 enable_fast_install=yes
9650 fi
9651
9652
9653
9654
9655
9656
9657
9658
9659 shared_archive_member_spec=
9660 case $host,$enable_shared in
9661 power*-*-aix[5-9]*,yes)
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9663 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9664
9665 # Check whether --with-aix-soname was given.
9666 if test "${with_aix_soname+set}" = set; then :
9667 withval=$with_aix_soname; case $withval in
9668 aix|svr4|both)
9669 ;;
9670 *)
9671 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9672 ;;
9673 esac
9674 lt_cv_with_aix_soname=$with_aix_soname
9675 else
9676 if ${lt_cv_with_aix_soname+:} false; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 lt_cv_with_aix_soname=aix
9680 fi
9681
9682 with_aix_soname=$lt_cv_with_aix_soname
9683 fi
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9686 $as_echo "$with_aix_soname" >&6; }
9687 if test aix != "$with_aix_soname"; then
9688 # For the AIX way of multilib, we name the shared archive member
9689 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9690 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9691 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9692 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9693 if test 64 = "${OBJECT_MODE-32}"; then
9694 shared_archive_member_spec=shr_64
9695 else
9696 shared_archive_member_spec=shr
9697 fi
9698 fi
9699 ;;
9700 *)
9701 with_aix_soname=aix
9702 ;;
9703 esac
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714 # This can be used to rebuild libtool when needed
9715 LIBTOOL_DEPS=$ltmain
9716
9717 # Always use our own libtool.
9718 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749 test -z "$LN_S" && LN_S="ln -s"
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 if test -n "${ZSH_VERSION+set}"; then
9765 setopt NO_GLOB_SUBST
9766 fi
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9769 $as_echo_n "checking for objdir... " >&6; }
9770 if ${lt_cv_objdir+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 rm -f .libs 2>/dev/null
9774 mkdir .libs 2>/dev/null
9775 if test -d .libs; then
9776 lt_cv_objdir=.libs
9777 else
9778 # MS-DOS does not allow filenames that begin with a dot.
9779 lt_cv_objdir=_libs
9780 fi
9781 rmdir .libs 2>/dev/null
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9784 $as_echo "$lt_cv_objdir" >&6; }
9785 objdir=$lt_cv_objdir
9786
9787
9788
9789
9790
9791 cat >>confdefs.h <<_ACEOF
9792 #define LT_OBJDIR "$lt_cv_objdir/"
9793 _ACEOF
9794
9795
9796
9797
9798 case $host_os in
9799 aix3*)
9800 # AIX sometimes has problems with the GCC collect2 program. For some
9801 # reason, if we set the COLLECT_NAMES environment variable, the problems
9802 # vanish in a puff of smoke.
9803 if test set != "${COLLECT_NAMES+set}"; then
9804 COLLECT_NAMES=
9805 export COLLECT_NAMES
9806 fi
9807 ;;
9808 esac
9809
9810 # Global variables:
9811 ofile=libtool
9812 can_build_shared=yes
9813
9814 # All known linkers require a '.a' archive for static linking (except MSVC,
9815 # which needs '.lib').
9816 libext=a
9817
9818 with_gnu_ld=$lt_cv_prog_gnu_ld
9819
9820 old_CC=$CC
9821 old_CFLAGS=$CFLAGS
9822
9823 # Set sane defaults for various variables
9824 test -z "$CC" && CC=cc
9825 test -z "$LTCC" && LTCC=$CC
9826 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9827 test -z "$LD" && LD=ld
9828 test -z "$ac_objext" && ac_objext=o
9829
9830 func_cc_basename $compiler
9831 cc_basename=$func_cc_basename_result
9832
9833
9834 # Only perform the check for file, if the check method requires it
9835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9836 case $deplibs_check_method in
9837 file_magic*)
9838 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9840 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9841 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9842 $as_echo_n "(cached) " >&6
9843 else
9844 case $MAGIC_CMD in
9845 [\\/*] | ?:[\\/]*)
9846 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9847 ;;
9848 *)
9849 lt_save_MAGIC_CMD=$MAGIC_CMD
9850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9852 for ac_dir in $ac_dummy; do
9853 IFS=$lt_save_ifs
9854 test -z "$ac_dir" && ac_dir=.
9855 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9856 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9857 if test -n "$file_magic_test_file"; then
9858 case $deplibs_check_method in
9859 "file_magic "*)
9860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9861 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9863 $EGREP "$file_magic_regex" > /dev/null; then
9864 :
9865 else
9866 cat <<_LT_EOF 1>&2
9867
9868 *** Warning: the command libtool uses to detect shared libraries,
9869 *** $file_magic_cmd, produces output that libtool cannot recognize.
9870 *** The result is that libtool may fail to recognize shared libraries
9871 *** as such. This will affect the creation of libtool libraries that
9872 *** depend on shared libraries, but programs linked with such libtool
9873 *** libraries will work regardless of this problem. Nevertheless, you
9874 *** may want to report the problem to your system manager and/or to
9875 *** [email protected]
9876
9877 _LT_EOF
9878 fi ;;
9879 esac
9880 fi
9881 break
9882 fi
9883 done
9884 IFS=$lt_save_ifs
9885 MAGIC_CMD=$lt_save_MAGIC_CMD
9886 ;;
9887 esac
9888 fi
9889
9890 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9891 if test -n "$MAGIC_CMD"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9893 $as_echo "$MAGIC_CMD" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 fi
9898
9899
9900
9901
9902
9903 if test -z "$lt_cv_path_MAGIC_CMD"; then
9904 if test -n "$ac_tool_prefix"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9906 $as_echo_n "checking for file... " >&6; }
9907 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 case $MAGIC_CMD in
9911 [\\/*] | ?:[\\/]*)
9912 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9913 ;;
9914 *)
9915 lt_save_MAGIC_CMD=$MAGIC_CMD
9916 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9918 for ac_dir in $ac_dummy; do
9919 IFS=$lt_save_ifs
9920 test -z "$ac_dir" && ac_dir=.
9921 if test -f "$ac_dir/file"; then
9922 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9923 if test -n "$file_magic_test_file"; then
9924 case $deplibs_check_method in
9925 "file_magic "*)
9926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9927 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9929 $EGREP "$file_magic_regex" > /dev/null; then
9930 :
9931 else
9932 cat <<_LT_EOF 1>&2
9933
9934 *** Warning: the command libtool uses to detect shared libraries,
9935 *** $file_magic_cmd, produces output that libtool cannot recognize.
9936 *** The result is that libtool may fail to recognize shared libraries
9937 *** as such. This will affect the creation of libtool libraries that
9938 *** depend on shared libraries, but programs linked with such libtool
9939 *** libraries will work regardless of this problem. Nevertheless, you
9940 *** may want to report the problem to your system manager and/or to
9941 *** [email protected]
9942
9943 _LT_EOF
9944 fi ;;
9945 esac
9946 fi
9947 break
9948 fi
9949 done
9950 IFS=$lt_save_ifs
9951 MAGIC_CMD=$lt_save_MAGIC_CMD
9952 ;;
9953 esac
9954 fi
9955
9956 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9957 if test -n "$MAGIC_CMD"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9959 $as_echo "$MAGIC_CMD" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9963 fi
9964
9965
9966 else
9967 MAGIC_CMD=:
9968 fi
9969 fi
9970
9971 fi
9972 ;;
9973 esac
9974
9975 # Use C for the default configuration in the libtool script
9976
9977 lt_save_CC=$CC
9978 ac_ext=c
9979 ac_cpp='$CPP $CPPFLAGS'
9980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9983
9984
9985 # Source file extension for C test sources.
9986 ac_ext=c
9987
9988 # Object file extension for compiled C test sources.
9989 objext=o
9990 objext=$objext
9991
9992 # Code to be used in simple compile tests
9993 lt_simple_compile_test_code="int some_variable = 0;"
9994
9995 # Code to be used in simple link tests
9996 lt_simple_link_test_code='int main(){return(0);}'
9997
9998
9999
10000
10001
10002
10003
10004 # If no C compiler was specified, use CC.
10005 LTCC=${LTCC-"$CC"}
10006
10007 # If no C compiler flags were specified, use CFLAGS.
10008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10009
10010 # Allow CC to be a program name with arguments.
10011 compiler=$CC
10012
10013 # Save the default compiler, since it gets overwritten when the other
10014 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10015 compiler_DEFAULT=$CC
10016
10017 # save warnings/boilerplate of simple test code
10018 ac_outfile=conftest.$ac_objext
10019 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10020 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10021 _lt_compiler_boilerplate=`cat conftest.err`
10022 $RM conftest*
10023
10024 ac_outfile=conftest.$ac_objext
10025 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10026 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10027 _lt_linker_boilerplate=`cat conftest.err`
10028 $RM -r conftest*
10029
10030
10031 ## CAVEAT EMPTOR:
10032 ## There is no encapsulation within the following macros, do not change
10033 ## the running order or otherwise move them around unless you know exactly
10034 ## what you are doing...
10035 if test -n "$compiler"; then
10036
10037 lt_prog_compiler_no_builtin_flag=
10038
10039 if test yes = "$GCC"; then
10040 case $cc_basename in
10041 nvcc*)
10042 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10043 *)
10044 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10045 esac
10046
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10048 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10049 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 lt_cv_prog_compiler_rtti_exceptions=no
10053 ac_outfile=conftest.$ac_objext
10054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10055 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10056 # Insert the option either (1) after the last *FLAGS variable, or
10057 # (2) before a word containing "conftest.", or (3) at the end.
10058 # Note that $ac_compile itself does not contain backslashes and begins
10059 # with a dollar sign (not a hyphen), so the echo should work correctly.
10060 # The option is referenced via a variable to avoid confusing sed.
10061 lt_compile=`echo "$ac_compile" | $SED \
10062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10064 -e 's:$: $lt_compiler_flag:'`
10065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10066 (eval "$lt_compile" 2>conftest.err)
10067 ac_status=$?
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 if (exit $ac_status) && test -s "$ac_outfile"; then
10071 # The compiler can only warn and ignore the option if not recognized
10072 # So say no if there are warnings other than the usual output.
10073 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10076 lt_cv_prog_compiler_rtti_exceptions=yes
10077 fi
10078 fi
10079 $RM conftest*
10080
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10083 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10084
10085 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10086 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10087 else
10088 :
10089 fi
10090
10091 fi
10092
10093
10094
10095
10096
10097
10098 lt_prog_compiler_wl=
10099 lt_prog_compiler_pic=
10100 lt_prog_compiler_static=
10101
10102
10103 if test yes = "$GCC"; then
10104 lt_prog_compiler_wl='-Wl,'
10105 lt_prog_compiler_static='-static'
10106
10107 case $host_os in
10108 aix*)
10109 # All AIX code is PIC.
10110 if test ia64 = "$host_cpu"; then
10111 # AIX 5 now supports IA64 processor
10112 lt_prog_compiler_static='-Bstatic'
10113 fi
10114 lt_prog_compiler_pic='-fPIC'
10115 ;;
10116
10117 amigaos*)
10118 case $host_cpu in
10119 powerpc)
10120 # see comment about AmigaOS4 .so support
10121 lt_prog_compiler_pic='-fPIC'
10122 ;;
10123 m68k)
10124 # FIXME: we need at least 68020 code to build shared libraries, but
10125 # adding the '-m68020' flag to GCC prevents building anything better,
10126 # like '-m68040'.
10127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10128 ;;
10129 esac
10130 ;;
10131
10132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10133 # PIC is the default for these OSes.
10134 ;;
10135
10136 mingw* | cygwin* | pw32* | os2* | cegcc*)
10137 # This hack is so that the source file can tell whether it is being
10138 # built for inclusion in a dll (and should export symbols for example).
10139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10140 # (--disable-auto-import) libraries
10141 lt_prog_compiler_pic='-DDLL_EXPORT'
10142 case $host_os in
10143 os2*)
10144 lt_prog_compiler_static='$wl-static'
10145 ;;
10146 esac
10147 ;;
10148
10149 darwin* | rhapsody*)
10150 # PIC is the default on this platform
10151 # Common symbols not allowed in MH_DYLIB files
10152 lt_prog_compiler_pic='-fno-common'
10153 ;;
10154
10155 haiku*)
10156 # PIC is the default for Haiku.
10157 # The "-static" flag exists, but is broken.
10158 lt_prog_compiler_static=
10159 ;;
10160
10161 hpux*)
10162 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10163 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10164 # sets the default TLS model and affects inlining.
10165 case $host_cpu in
10166 hppa*64*)
10167 # +Z the default
10168 ;;
10169 *)
10170 lt_prog_compiler_pic='-fPIC'
10171 ;;
10172 esac
10173 ;;
10174
10175 interix[3-9]*)
10176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10177 # Instead, we relocate shared libraries at runtime.
10178 ;;
10179
10180 msdosdjgpp*)
10181 # Just because we use GCC doesn't mean we suddenly get shared libraries
10182 # on systems that don't support them.
10183 lt_prog_compiler_can_build_shared=no
10184 enable_shared=no
10185 ;;
10186
10187 *nto* | *qnx*)
10188 # QNX uses GNU C++, but need to define -shared option too, otherwise
10189 # it will coredump.
10190 lt_prog_compiler_pic='-fPIC -shared'
10191 ;;
10192
10193 sysv4*MP*)
10194 if test -d /usr/nec; then
10195 lt_prog_compiler_pic=-Kconform_pic
10196 fi
10197 ;;
10198
10199 *)
10200 lt_prog_compiler_pic='-fPIC'
10201 ;;
10202 esac
10203
10204 case $cc_basename in
10205 nvcc*) # Cuda Compiler Driver 2.2
10206 lt_prog_compiler_wl='-Xlinker '
10207 if test -n "$lt_prog_compiler_pic"; then
10208 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10209 fi
10210 ;;
10211 esac
10212 else
10213 # PORTME Check for flag to pass linker flags through the system compiler.
10214 case $host_os in
10215 aix*)
10216 lt_prog_compiler_wl='-Wl,'
10217 if test ia64 = "$host_cpu"; then
10218 # AIX 5 now supports IA64 processor
10219 lt_prog_compiler_static='-Bstatic'
10220 else
10221 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10222 fi
10223 ;;
10224
10225 darwin* | rhapsody*)
10226 # PIC is the default on this platform
10227 # Common symbols not allowed in MH_DYLIB files
10228 lt_prog_compiler_pic='-fno-common'
10229 case $cc_basename in
10230 nagfor*)
10231 # NAG Fortran compiler
10232 lt_prog_compiler_wl='-Wl,-Wl,,'
10233 lt_prog_compiler_pic='-PIC'
10234 lt_prog_compiler_static='-Bstatic'
10235 ;;
10236 esac
10237 ;;
10238
10239 mingw* | cygwin* | pw32* | os2* | cegcc*)
10240 # This hack is so that the source file can tell whether it is being
10241 # built for inclusion in a dll (and should export symbols for example).
10242 lt_prog_compiler_pic='-DDLL_EXPORT'
10243 case $host_os in
10244 os2*)
10245 lt_prog_compiler_static='$wl-static'
10246 ;;
10247 esac
10248 ;;
10249
10250 hpux9* | hpux10* | hpux11*)
10251 lt_prog_compiler_wl='-Wl,'
10252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10253 # not for PA HP-UX.
10254 case $host_cpu in
10255 hppa*64*|ia64*)
10256 # +Z the default
10257 ;;
10258 *)
10259 lt_prog_compiler_pic='+Z'
10260 ;;
10261 esac
10262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10263 lt_prog_compiler_static='$wl-a ${wl}archive'
10264 ;;
10265
10266 irix5* | irix6* | nonstopux*)
10267 lt_prog_compiler_wl='-Wl,'
10268 # PIC (with -KPIC) is the default.
10269 lt_prog_compiler_static='-non_shared'
10270 ;;
10271
10272 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10273 case $cc_basename in
10274 # old Intel for x86_64, which still supported -KPIC.
10275 ecc*)
10276 lt_prog_compiler_wl='-Wl,'
10277 lt_prog_compiler_pic='-KPIC'
10278 lt_prog_compiler_static='-static'
10279 ;;
10280 # icc used to be incompatible with GCC.
10281 # ICC 10 doesn't accept -KPIC any more.
10282 icc* | ifort*)
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fPIC'
10285 lt_prog_compiler_static='-static'
10286 ;;
10287 # Lahey Fortran 8.1.
10288 lf95*)
10289 lt_prog_compiler_wl='-Wl,'
10290 lt_prog_compiler_pic='--shared'
10291 lt_prog_compiler_static='--static'
10292 ;;
10293 nagfor*)
10294 # NAG Fortran compiler
10295 lt_prog_compiler_wl='-Wl,-Wl,,'
10296 lt_prog_compiler_pic='-PIC'
10297 lt_prog_compiler_static='-Bstatic'
10298 ;;
10299 tcc*)
10300 # Fabrice Bellard et al's Tiny C Compiler
10301 lt_prog_compiler_wl='-Wl,'
10302 lt_prog_compiler_pic='-fPIC'
10303 lt_prog_compiler_static='-static'
10304 ;;
10305 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10306 # Portland Group compilers (*not* the Pentium gcc compiler,
10307 # which looks to be a dead project)
10308 lt_prog_compiler_wl='-Wl,'
10309 lt_prog_compiler_pic='-fpic'
10310 lt_prog_compiler_static='-Bstatic'
10311 ;;
10312 ccc*)
10313 lt_prog_compiler_wl='-Wl,'
10314 # All Alpha code is PIC.
10315 lt_prog_compiler_static='-non_shared'
10316 ;;
10317 xl* | bgxl* | bgf* | mpixl*)
10318 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10319 lt_prog_compiler_wl='-Wl,'
10320 lt_prog_compiler_pic='-qpic'
10321 lt_prog_compiler_static='-qstaticlink'
10322 ;;
10323 *)
10324 case `$CC -V 2>&1 | sed 5q` in
10325 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10326 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10327 lt_prog_compiler_pic='-KPIC'
10328 lt_prog_compiler_static='-Bstatic'
10329 lt_prog_compiler_wl=''
10330 ;;
10331 *Sun\ F* | *Sun*Fortran*)
10332 lt_prog_compiler_pic='-KPIC'
10333 lt_prog_compiler_static='-Bstatic'
10334 lt_prog_compiler_wl='-Qoption ld '
10335 ;;
10336 *Sun\ C*)
10337 # Sun C 5.9
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-Bstatic'
10340 lt_prog_compiler_wl='-Wl,'
10341 ;;
10342 *Intel*\ [CF]*Compiler*)
10343 lt_prog_compiler_wl='-Wl,'
10344 lt_prog_compiler_pic='-fPIC'
10345 lt_prog_compiler_static='-static'
10346 ;;
10347 *Portland\ Group*)
10348 lt_prog_compiler_wl='-Wl,'
10349 lt_prog_compiler_pic='-fpic'
10350 lt_prog_compiler_static='-Bstatic'
10351 ;;
10352 esac
10353 ;;
10354 esac
10355 ;;
10356
10357 newsos6)
10358 lt_prog_compiler_pic='-KPIC'
10359 lt_prog_compiler_static='-Bstatic'
10360 ;;
10361
10362 *nto* | *qnx*)
10363 # QNX uses GNU C++, but need to define -shared option too, otherwise
10364 # it will coredump.
10365 lt_prog_compiler_pic='-fPIC -shared'
10366 ;;
10367
10368 osf3* | osf4* | osf5*)
10369 lt_prog_compiler_wl='-Wl,'
10370 # All OSF/1 code is PIC.
10371 lt_prog_compiler_static='-non_shared'
10372 ;;
10373
10374 rdos*)
10375 lt_prog_compiler_static='-non_shared'
10376 ;;
10377
10378 solaris*)
10379 lt_prog_compiler_pic='-KPIC'
10380 lt_prog_compiler_static='-Bstatic'
10381 case $cc_basename in
10382 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10383 lt_prog_compiler_wl='-Qoption ld ';;
10384 *)
10385 lt_prog_compiler_wl='-Wl,';;
10386 esac
10387 ;;
10388
10389 sunos4*)
10390 lt_prog_compiler_wl='-Qoption ld '
10391 lt_prog_compiler_pic='-PIC'
10392 lt_prog_compiler_static='-Bstatic'
10393 ;;
10394
10395 sysv4 | sysv4.2uw2* | sysv4.3*)
10396 lt_prog_compiler_wl='-Wl,'
10397 lt_prog_compiler_pic='-KPIC'
10398 lt_prog_compiler_static='-Bstatic'
10399 ;;
10400
10401 sysv4*MP*)
10402 if test -d /usr/nec; then
10403 lt_prog_compiler_pic='-Kconform_pic'
10404 lt_prog_compiler_static='-Bstatic'
10405 fi
10406 ;;
10407
10408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10409 lt_prog_compiler_wl='-Wl,'
10410 lt_prog_compiler_pic='-KPIC'
10411 lt_prog_compiler_static='-Bstatic'
10412 ;;
10413
10414 unicos*)
10415 lt_prog_compiler_wl='-Wl,'
10416 lt_prog_compiler_can_build_shared=no
10417 ;;
10418
10419 uts4*)
10420 lt_prog_compiler_pic='-pic'
10421 lt_prog_compiler_static='-Bstatic'
10422 ;;
10423
10424 *)
10425 lt_prog_compiler_can_build_shared=no
10426 ;;
10427 esac
10428 fi
10429
10430 case $host_os in
10431 # For platforms that do not support PIC, -DPIC is meaningless:
10432 *djgpp*)
10433 lt_prog_compiler_pic=
10434 ;;
10435 *)
10436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10437 ;;
10438 esac
10439
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10442 if ${lt_cv_prog_compiler_pic+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10448 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10449 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10450
10451 #
10452 # Check to make sure the PIC flag actually works.
10453 #
10454 if test -n "$lt_prog_compiler_pic"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10456 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10457 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 lt_cv_prog_compiler_pic_works=no
10461 ac_outfile=conftest.$ac_objext
10462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10464 # Insert the option either (1) after the last *FLAGS variable, or
10465 # (2) before a word containing "conftest.", or (3) at the end.
10466 # Note that $ac_compile itself does not contain backslashes and begins
10467 # with a dollar sign (not a hyphen), so the echo should work correctly.
10468 # The option is referenced via a variable to avoid confusing sed.
10469 lt_compile=`echo "$ac_compile" | $SED \
10470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10472 -e 's:$: $lt_compiler_flag:'`
10473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10474 (eval "$lt_compile" 2>conftest.err)
10475 ac_status=$?
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 if (exit $ac_status) && test -s "$ac_outfile"; then
10479 # The compiler can only warn and ignore the option if not recognized
10480 # So say no if there are warnings other than the usual output.
10481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10484 lt_cv_prog_compiler_pic_works=yes
10485 fi
10486 fi
10487 $RM conftest*
10488
10489 fi
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10491 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10492
10493 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10494 case $lt_prog_compiler_pic in
10495 "" | " "*) ;;
10496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10497 esac
10498 else
10499 lt_prog_compiler_pic=
10500 lt_prog_compiler_can_build_shared=no
10501 fi
10502
10503 fi
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515 #
10516 # Check to make sure the static flag actually works.
10517 #
10518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10521 if ${lt_cv_prog_compiler_static_works+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 lt_cv_prog_compiler_static_works=no
10525 save_LDFLAGS=$LDFLAGS
10526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10529 # The linker can only warn and ignore the option if not recognized
10530 # So say no if there are warnings
10531 if test -s conftest.err; then
10532 # Append any errors to the config.log.
10533 cat conftest.err 1>&5
10534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10536 if diff conftest.exp conftest.er2 >/dev/null; then
10537 lt_cv_prog_compiler_static_works=yes
10538 fi
10539 else
10540 lt_cv_prog_compiler_static_works=yes
10541 fi
10542 fi
10543 $RM -r conftest*
10544 LDFLAGS=$save_LDFLAGS
10545
10546 fi
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10549
10550 if test yes = "$lt_cv_prog_compiler_static_works"; then
10551 :
10552 else
10553 lt_prog_compiler_static=
10554 fi
10555
10556
10557
10558
10559
10560
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10564 if ${lt_cv_prog_compiler_c_o+:} false; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 lt_cv_prog_compiler_c_o=no
10568 $RM -r conftest 2>/dev/null
10569 mkdir conftest
10570 cd conftest
10571 mkdir out
10572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10573
10574 lt_compiler_flag="-o out/conftest2.$ac_objext"
10575 # Insert the option either (1) after the last *FLAGS variable, or
10576 # (2) before a word containing "conftest.", or (3) at the end.
10577 # Note that $ac_compile itself does not contain backslashes and begins
10578 # with a dollar sign (not a hyphen), so the echo should work correctly.
10579 lt_compile=`echo "$ac_compile" | $SED \
10580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10582 -e 's:$: $lt_compiler_flag:'`
10583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10584 (eval "$lt_compile" 2>out/conftest.err)
10585 ac_status=$?
10586 cat out/conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10589 then
10590 # The compiler can only warn and ignore the option if not recognized
10591 # So say no if there are warnings
10592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10595 lt_cv_prog_compiler_c_o=yes
10596 fi
10597 fi
10598 chmod u+w . 2>&5
10599 $RM conftest*
10600 # SGI C++ compiler will create directory out/ii_files/ for
10601 # template instantiation
10602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10603 $RM out/* && rmdir out
10604 cd ..
10605 $RM -r conftest
10606 $RM conftest*
10607
10608 fi
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10611
10612
10613
10614
10615
10616
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10619 if ${lt_cv_prog_compiler_c_o+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 lt_cv_prog_compiler_c_o=no
10623 $RM -r conftest 2>/dev/null
10624 mkdir conftest
10625 cd conftest
10626 mkdir out
10627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10628
10629 lt_compiler_flag="-o out/conftest2.$ac_objext"
10630 # Insert the option either (1) after the last *FLAGS variable, or
10631 # (2) before a word containing "conftest.", or (3) at the end.
10632 # Note that $ac_compile itself does not contain backslashes and begins
10633 # with a dollar sign (not a hyphen), so the echo should work correctly.
10634 lt_compile=`echo "$ac_compile" | $SED \
10635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10637 -e 's:$: $lt_compiler_flag:'`
10638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10639 (eval "$lt_compile" 2>out/conftest.err)
10640 ac_status=$?
10641 cat out/conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10644 then
10645 # The compiler can only warn and ignore the option if not recognized
10646 # So say no if there are warnings
10647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10650 lt_cv_prog_compiler_c_o=yes
10651 fi
10652 fi
10653 chmod u+w . 2>&5
10654 $RM conftest*
10655 # SGI C++ compiler will create directory out/ii_files/ for
10656 # template instantiation
10657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10658 $RM out/* && rmdir out
10659 cd ..
10660 $RM -r conftest
10661 $RM conftest*
10662
10663 fi
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10666
10667
10668
10669
10670 hard_links=nottested
10671 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10672 # do not overwrite the value of need_locks provided by the user
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10674 $as_echo_n "checking if we can lock with hard links... " >&6; }
10675 hard_links=yes
10676 $RM conftest*
10677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10678 touch conftest.a
10679 ln conftest.a conftest.b 2>&5 || hard_links=no
10680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10682 $as_echo "$hard_links" >&6; }
10683 if test no = "$hard_links"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10685 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10686 need_locks=warn
10687 fi
10688 else
10689 need_locks=no
10690 fi
10691
10692
10693
10694
10695
10696
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10699
10700 runpath_var=
10701 allow_undefined_flag=
10702 always_export_symbols=no
10703 archive_cmds=
10704 archive_expsym_cmds=
10705 compiler_needs_object=no
10706 enable_shared_with_static_runtimes=no
10707 export_dynamic_flag_spec=
10708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10709 hardcode_automatic=no
10710 hardcode_direct=no
10711 hardcode_direct_absolute=no
10712 hardcode_libdir_flag_spec=
10713 hardcode_libdir_separator=
10714 hardcode_minus_L=no
10715 hardcode_shlibpath_var=unsupported
10716 inherit_rpath=no
10717 link_all_deplibs=unknown
10718 module_cmds=
10719 module_expsym_cmds=
10720 old_archive_from_new_cmds=
10721 old_archive_from_expsyms_cmds=
10722 thread_safe_flag_spec=
10723 whole_archive_flag_spec=
10724 # include_expsyms should be a list of space-separated symbols to be *always*
10725 # included in the symbol list
10726 include_expsyms=
10727 # exclude_expsyms can be an extended regexp of symbols to exclude
10728 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10729 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10730 # as well as any symbol that contains 'd'.
10731 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10732 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10733 # platforms (ab)use it in PIC code, but their linkers get confused if
10734 # the symbol is explicitly referenced. Since portable code cannot
10735 # rely on this symbol name, it's probably fine to never include it in
10736 # preloaded symbol tables.
10737 # Exclude shared library initialization/finalization symbols.
10738 extract_expsyms_cmds=
10739
10740 case $host_os in
10741 cygwin* | mingw* | pw32* | cegcc*)
10742 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10743 # When not using gcc, we currently assume that we are using
10744 # Microsoft Visual C++.
10745 if test yes != "$GCC"; then
10746 with_gnu_ld=no
10747 fi
10748 ;;
10749 interix*)
10750 # we just hope/assume this is gcc and not c89 (= MSVC++)
10751 with_gnu_ld=yes
10752 ;;
10753 openbsd* | bitrig*)
10754 with_gnu_ld=no
10755 ;;
10756 esac
10757
10758 ld_shlibs=yes
10759
10760 # On some targets, GNU ld is compatible enough with the native linker
10761 # that we're better off using the native interface for both.
10762 lt_use_gnu_ld_interface=no
10763 if test yes = "$with_gnu_ld"; then
10764 case $host_os in
10765 aix*)
10766 # The AIX port of GNU ld has always aspired to compatibility
10767 # with the native linker. However, as the warning in the GNU ld
10768 # block says, versions before 2.19.5* couldn't really create working
10769 # shared libraries, regardless of the interface used.
10770 case `$LD -v 2>&1` in
10771 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10772 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10773 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10774 *)
10775 lt_use_gnu_ld_interface=yes
10776 ;;
10777 esac
10778 ;;
10779 *)
10780 lt_use_gnu_ld_interface=yes
10781 ;;
10782 esac
10783 fi
10784
10785 if test yes = "$lt_use_gnu_ld_interface"; then
10786 # If archive_cmds runs LD, not CC, wlarc should be empty
10787 wlarc='$wl'
10788
10789 # Set some defaults for GNU ld with shared library support. These
10790 # are reset later if shared libraries are not supported. Putting them
10791 # here allows them to be overridden if necessary.
10792 runpath_var=LD_RUN_PATH
10793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794 export_dynamic_flag_spec='$wl--export-dynamic'
10795 # ancient GNU ld didn't support --whole-archive et. al.
10796 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10797 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10798 else
10799 whole_archive_flag_spec=
10800 fi
10801 supports_anon_versioning=no
10802 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10803 *GNU\ gold*) supports_anon_versioning=yes ;;
10804 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10805 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10806 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10807 *\ 2.11.*) ;; # other 2.11 versions
10808 *) supports_anon_versioning=yes ;;
10809 esac
10810
10811 # See if GNU ld supports shared libraries.
10812 case $host_os in
10813 aix[3-9]*)
10814 # On AIX/PPC, the GNU linker is very broken
10815 if test ia64 != "$host_cpu"; then
10816 ld_shlibs=no
10817 cat <<_LT_EOF 1>&2
10818
10819 *** Warning: the GNU linker, at least up to release 2.19, is reported
10820 *** to be unable to reliably create shared libraries on AIX.
10821 *** Therefore, libtool is disabling shared libraries support. If you
10822 *** really care for shared libraries, you may want to install binutils
10823 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10824 *** You will then need to restart the configuration process.
10825
10826 _LT_EOF
10827 fi
10828 ;;
10829
10830 amigaos*)
10831 case $host_cpu in
10832 powerpc)
10833 # see comment about AmigaOS4 .so support
10834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10835 archive_expsym_cmds=''
10836 ;;
10837 m68k)
10838 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)'
10839 hardcode_libdir_flag_spec='-L$libdir'
10840 hardcode_minus_L=yes
10841 ;;
10842 esac
10843 ;;
10844
10845 beos*)
10846 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10847 allow_undefined_flag=unsupported
10848 # Joseph Beckenbach <[email protected]> says some releases of gcc
10849 # support --undefined. This deserves some investigation. FIXME
10850 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10851 else
10852 ld_shlibs=no
10853 fi
10854 ;;
10855
10856 cygwin* | mingw* | pw32* | cegcc*)
10857 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10858 # as there is no search path for DLLs.
10859 hardcode_libdir_flag_spec='-L$libdir'
10860 export_dynamic_flag_spec='$wl--export-all-symbols'
10861 allow_undefined_flag=unsupported
10862 always_export_symbols=no
10863 enable_shared_with_static_runtimes=yes
10864 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'
10865 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10866
10867 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10869 # If the export-symbols file already is a .def file, use it as
10870 # is; otherwise, prepend EXPORTS...
10871 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10872 cp $export_symbols $output_objdir/$soname.def;
10873 else
10874 echo EXPORTS > $output_objdir/$soname.def;
10875 cat $export_symbols >> $output_objdir/$soname.def;
10876 fi~
10877 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10878 else
10879 ld_shlibs=no
10880 fi
10881 ;;
10882
10883 haiku*)
10884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10885 link_all_deplibs=yes
10886 ;;
10887
10888 os2*)
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_minus_L=yes
10891 allow_undefined_flag=unsupported
10892 shrext_cmds=.dll
10893 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10894 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10895 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10896 $ECHO EXPORTS >> $output_objdir/$libname.def~
10897 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10899 emximp -o $lib $output_objdir/$libname.def'
10900 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10901 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10902 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10903 $ECHO EXPORTS >> $output_objdir/$libname.def~
10904 prefix_cmds="$SED"~
10905 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10906 prefix_cmds="$prefix_cmds -e 1d";
10907 fi~
10908 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10909 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10911 emximp -o $lib $output_objdir/$libname.def'
10912 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10913 enable_shared_with_static_runtimes=yes
10914 ;;
10915
10916 interix[3-9]*)
10917 hardcode_direct=no
10918 hardcode_shlibpath_var=no
10919 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10920 export_dynamic_flag_spec='$wl-E'
10921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10922 # Instead, shared libraries are loaded at an image base (0x10000000 by
10923 # default) and relocated if they conflict, which is a slow very memory
10924 # consuming and fragmenting process. To avoid this, we pick a random,
10925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10928 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'
10929 ;;
10930
10931 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10932 tmp_diet=no
10933 if test linux-dietlibc = "$host_os"; then
10934 case $cc_basename in
10935 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10936 esac
10937 fi
10938 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10939 && test no = "$tmp_diet"
10940 then
10941 tmp_addflag=' $pic_flag'
10942 tmp_sharedflag='-shared'
10943 case $cc_basename,$host_cpu in
10944 pgcc*) # Portland Group C compiler
10945 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'
10946 tmp_addflag=' $pic_flag'
10947 ;;
10948 pgf77* | pgf90* | pgf95* | pgfortran*)
10949 # Portland Group f77 and f90 compilers
10950 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'
10951 tmp_addflag=' $pic_flag -Mnomain' ;;
10952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10953 tmp_addflag=' -i_dynamic' ;;
10954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10955 tmp_addflag=' -i_dynamic -nofor_main' ;;
10956 ifc* | ifort*) # Intel Fortran compiler
10957 tmp_addflag=' -nofor_main' ;;
10958 lf95*) # Lahey Fortran 8.1
10959 whole_archive_flag_spec=
10960 tmp_sharedflag='--shared' ;;
10961 nagfor*) # NAGFOR 5.3
10962 tmp_sharedflag='-Wl,-shared' ;;
10963 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10964 tmp_sharedflag='-qmkshrobj'
10965 tmp_addflag= ;;
10966 nvcc*) # Cuda Compiler Driver 2.2
10967 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'
10968 compiler_needs_object=yes
10969 ;;
10970 esac
10971 case `$CC -V 2>&1 | sed 5q` in
10972 *Sun\ C*) # Sun C 5.9
10973 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'
10974 compiler_needs_object=yes
10975 tmp_sharedflag='-G' ;;
10976 *Sun\ F*) # Sun Fortran 8.3
10977 tmp_sharedflag='-G' ;;
10978 esac
10979 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10980
10981 if test yes = "$supports_anon_versioning"; then
10982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10984 echo "local: *; };" >> $output_objdir/$libname.ver~
10985 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10986 fi
10987
10988 case $cc_basename in
10989 tcc*)
10990 export_dynamic_flag_spec='-rdynamic'
10991 ;;
10992 xlf* | bgf* | bgxlf* | mpixlf*)
10993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10994 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10996 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10997 if test yes = "$supports_anon_versioning"; then
10998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11000 echo "local: *; };" >> $output_objdir/$libname.ver~
11001 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11002 fi
11003 ;;
11004 esac
11005 else
11006 ld_shlibs=no
11007 fi
11008 ;;
11009
11010 netbsd*)
11011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11012 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11013 wlarc=
11014 else
11015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11017 fi
11018 ;;
11019
11020 solaris*)
11021 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11022 ld_shlibs=no
11023 cat <<_LT_EOF 1>&2
11024
11025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11026 *** create shared libraries on Solaris systems. Therefore, libtool
11027 *** is disabling shared libraries support. We urge you to upgrade GNU
11028 *** binutils to release 2.9.1 or newer. Another option is to modify
11029 *** your PATH or compiler configuration so that the native linker is
11030 *** used, and then restart.
11031
11032 _LT_EOF
11033 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11035 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11036 else
11037 ld_shlibs=no
11038 fi
11039 ;;
11040
11041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11042 case `$LD -v 2>&1` in
11043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11044 ld_shlibs=no
11045 cat <<_LT_EOF 1>&2
11046
11047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11048 *** reliably create shared libraries on SCO systems. Therefore, libtool
11049 *** is disabling shared libraries support. We urge you to upgrade GNU
11050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11051 *** your PATH or compiler configuration so that the native linker is
11052 *** used, and then restart.
11053
11054 _LT_EOF
11055 ;;
11056 *)
11057 # For security reasons, it is highly recommended that you always
11058 # use absolute paths for naming shared libraries, and exclude the
11059 # DT_RUNPATH tag from executables and libraries. But doing so
11060 # requires that you compile everything twice, which is a pain.
11061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11062 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11064 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11065 else
11066 ld_shlibs=no
11067 fi
11068 ;;
11069 esac
11070 ;;
11071
11072 sunos4*)
11073 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11074 wlarc=
11075 hardcode_direct=yes
11076 hardcode_shlibpath_var=no
11077 ;;
11078
11079 *)
11080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11083 else
11084 ld_shlibs=no
11085 fi
11086 ;;
11087 esac
11088
11089 if test no = "$ld_shlibs"; then
11090 runpath_var=
11091 hardcode_libdir_flag_spec=
11092 export_dynamic_flag_spec=
11093 whole_archive_flag_spec=
11094 fi
11095 else
11096 # PORTME fill in a description of your system's linker (not GNU ld)
11097 case $host_os in
11098 aix3*)
11099 allow_undefined_flag=unsupported
11100 always_export_symbols=yes
11101 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'
11102 # Note: this linker hardcodes the directories in LIBPATH if there
11103 # are no directories specified by -L.
11104 hardcode_minus_L=yes
11105 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11106 # Neither direct hardcoding nor static linking is supported with a
11107 # broken collect2.
11108 hardcode_direct=unsupported
11109 fi
11110 ;;
11111
11112 aix[4-9]*)
11113 if test ia64 = "$host_cpu"; then
11114 # On IA64, the linker does run time linking by default, so we don't
11115 # have to do anything special.
11116 aix_use_runtimelinking=no
11117 exp_sym_flag='-Bexport'
11118 no_entry_flag=
11119 else
11120 # If we're using GNU nm, then we don't want the "-C" option.
11121 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11122 # Without the "-l" option, or with the "-B" option, AIX nm treats
11123 # weak defined symbols like other global defined symbols, whereas
11124 # GNU nm marks them as "W".
11125 # While the 'weak' keyword is ignored in the Export File, we need
11126 # it in the Import File for the 'aix-soname' feature, so we have
11127 # to replace the "-B" option with "-P" for AIX nm.
11128 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11129 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'
11130 else
11131 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'
11132 fi
11133 aix_use_runtimelinking=no
11134
11135 # Test if we are trying to use run time linking or normal
11136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11137 # have runtime linking enabled, and use it for executables.
11138 # For shared libraries, we enable/disable runtime linking
11139 # depending on the kind of the shared library created -
11140 # when "with_aix_soname,aix_use_runtimelinking" is:
11141 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11142 # "aix,yes" lib.so shared, rtl:yes, for executables
11143 # lib.a static archive
11144 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11145 # lib.a(lib.so.V) shared, rtl:no, for executables
11146 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11147 # lib.a(lib.so.V) shared, rtl:no
11148 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11149 # lib.a static archive
11150 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11151 for ld_flag in $LDFLAGS; do
11152 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11153 aix_use_runtimelinking=yes
11154 break
11155 fi
11156 done
11157 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11158 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11159 # so we don't have lib.a shared libs to link our executables.
11160 # We have to force runtime linking in this case.
11161 aix_use_runtimelinking=yes
11162 LDFLAGS="$LDFLAGS -Wl,-brtl"
11163 fi
11164 ;;
11165 esac
11166
11167 exp_sym_flag='-bexport'
11168 no_entry_flag='-bnoentry'
11169 fi
11170
11171 # When large executables or shared objects are built, AIX ld can
11172 # have problems creating the table of contents. If linking a library
11173 # or program results in "error TOC overflow" add -mminimal-toc to
11174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11176
11177 archive_cmds=''
11178 hardcode_direct=yes
11179 hardcode_direct_absolute=yes
11180 hardcode_libdir_separator=':'
11181 link_all_deplibs=yes
11182 file_list_spec='$wl-f,'
11183 case $with_aix_soname,$aix_use_runtimelinking in
11184 aix,*) ;; # traditional, no import file
11185 svr4,* | *,yes) # use import file
11186 # The Import File defines what to hardcode.
11187 hardcode_direct=no
11188 hardcode_direct_absolute=no
11189 ;;
11190 esac
11191
11192 if test yes = "$GCC"; then
11193 case $host_os in aix4.[012]|aix4.[012].*)
11194 # We only want to do this on AIX 4.2 and lower, the check
11195 # below for broken collect2 doesn't work under 4.3+
11196 collect2name=`$CC -print-prog-name=collect2`
11197 if test -f "$collect2name" &&
11198 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11199 then
11200 # We have reworked collect2
11201 :
11202 else
11203 # We have old collect2
11204 hardcode_direct=unsupported
11205 # It fails to find uninstalled libraries when the uninstalled
11206 # path is not listed in the libpath. Setting hardcode_minus_L
11207 # to unsupported forces relinking
11208 hardcode_minus_L=yes
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 hardcode_libdir_separator=
11211 fi
11212 ;;
11213 esac
11214 shared_flag='-shared'
11215 if test yes = "$aix_use_runtimelinking"; then
11216 shared_flag="$shared_flag "'$wl-G'
11217 fi
11218 # Need to ensure runtime linking is disabled for the traditional
11219 # shared library, or the linker may eventually find shared libraries
11220 # /with/ Import File - we do not want to mix them.
11221 shared_flag_aix='-shared'
11222 shared_flag_svr4='-shared $wl-G'
11223 else
11224 # not using gcc
11225 if test ia64 = "$host_cpu"; then
11226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11227 # chokes on -Wl,-G. The following line is correct:
11228 shared_flag='-G'
11229 else
11230 if test yes = "$aix_use_runtimelinking"; then
11231 shared_flag='$wl-G'
11232 else
11233 shared_flag='$wl-bM:SRE'
11234 fi
11235 shared_flag_aix='$wl-bM:SRE'
11236 shared_flag_svr4='$wl-G'
11237 fi
11238 fi
11239
11240 export_dynamic_flag_spec='$wl-bexpall'
11241 # It seems that -bexpall does not export symbols beginning with
11242 # underscore (_), so it is better to generate a list of symbols to export.
11243 always_export_symbols=yes
11244 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11245 # Warning - without using the other runtime loading flags (-brtl),
11246 # -berok will link without error, but may produce a broken library.
11247 allow_undefined_flag='-berok'
11248 # Determine the default libpath from the value encoded in an
11249 # empty executable.
11250 if test set = "${lt_cv_aix_libpath+set}"; then
11251 aix_libpath=$lt_cv_aix_libpath
11252 else
11253 if ${lt_cv_aix_libpath_+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258
11259 int
11260 main ()
11261 {
11262
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268
11269 lt_aix_libpath_sed='
11270 /Import File Strings/,/^$/ {
11271 /^0/ {
11272 s/^0 *\([^ ]*\) *$/\1/
11273 p
11274 }
11275 }'
11276 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11277 # Check for a 64-bit object if we didn't find anything.
11278 if test -z "$lt_cv_aix_libpath_"; then
11279 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11280 fi
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 if test -z "$lt_cv_aix_libpath_"; then
11285 lt_cv_aix_libpath_=/usr/lib:/lib
11286 fi
11287
11288 fi
11289
11290 aix_libpath=$lt_cv_aix_libpath_
11291 fi
11292
11293 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11294 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
11295 else
11296 if test ia64 = "$host_cpu"; then
11297 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11298 allow_undefined_flag="-z nodefs"
11299 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"
11300 else
11301 # Determine the default libpath from the value encoded in an
11302 # empty executable.
11303 if test set = "${lt_cv_aix_libpath+set}"; then
11304 aix_libpath=$lt_cv_aix_libpath
11305 else
11306 if ${lt_cv_aix_libpath_+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311
11312 int
11313 main ()
11314 {
11315
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321
11322 lt_aix_libpath_sed='
11323 /Import File Strings/,/^$/ {
11324 /^0/ {
11325 s/^0 *\([^ ]*\) *$/\1/
11326 p
11327 }
11328 }'
11329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11330 # Check for a 64-bit object if we didn't find anything.
11331 if test -z "$lt_cv_aix_libpath_"; then
11332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11333 fi
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 if test -z "$lt_cv_aix_libpath_"; then
11338 lt_cv_aix_libpath_=/usr/lib:/lib
11339 fi
11340
11341 fi
11342
11343 aix_libpath=$lt_cv_aix_libpath_
11344 fi
11345
11346 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11347 # Warning - without using the other run time loading flags,
11348 # -berok will link without error, but may produce a broken library.
11349 no_undefined_flag=' $wl-bernotok'
11350 allow_undefined_flag=' $wl-berok'
11351 if test yes = "$with_gnu_ld"; then
11352 # We only use this code for GNU lds that support --whole-archive.
11353 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11354 else
11355 # Exported symbols can be pulled into shared objects from archives
11356 whole_archive_flag_spec='$convenience'
11357 fi
11358 archive_cmds_need_lc=yes
11359 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11360 # -brtl affects multiple linker settings, -berok does not and is overridden later
11361 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11362 if test svr4 != "$with_aix_soname"; then
11363 # This is similar to how AIX traditionally builds its shared libraries.
11364 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'
11365 fi
11366 if test aix != "$with_aix_soname"; then
11367 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'
11368 else
11369 # used by -dlpreopen to get the symbols
11370 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11371 fi
11372 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11373 fi
11374 fi
11375 ;;
11376
11377 amigaos*)
11378 case $host_cpu in
11379 powerpc)
11380 # see comment about AmigaOS4 .so support
11381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11382 archive_expsym_cmds=''
11383 ;;
11384 m68k)
11385 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)'
11386 hardcode_libdir_flag_spec='-L$libdir'
11387 hardcode_minus_L=yes
11388 ;;
11389 esac
11390 ;;
11391
11392 bsdi[45]*)
11393 export_dynamic_flag_spec=-rdynamic
11394 ;;
11395
11396 cygwin* | mingw* | pw32* | cegcc*)
11397 # When not using gcc, we currently assume that we are using
11398 # Microsoft Visual C++.
11399 # hardcode_libdir_flag_spec is actually meaningless, as there is
11400 # no search path for DLLs.
11401 case $cc_basename in
11402 cl*)
11403 # Native MSVC
11404 hardcode_libdir_flag_spec=' '
11405 allow_undefined_flag=unsupported
11406 always_export_symbols=yes
11407 file_list_spec='@'
11408 # Tell ltmain to make .lib files, not .a files.
11409 libext=lib
11410 # Tell ltmain to make .dll files, not .so files.
11411 shrext_cmds=.dll
11412 # FIXME: Setting linknames here is a bad hack.
11413 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11414 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11415 cp "$export_symbols" "$output_objdir/$soname.def";
11416 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11417 else
11418 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11419 fi~
11420 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11421 linknames='
11422 # The linker will not automatically build a static lib if we build a DLL.
11423 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11424 enable_shared_with_static_runtimes=yes
11425 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11427 # Don't use ranlib
11428 old_postinstall_cmds='chmod 644 $oldlib'
11429 postlink_cmds='lt_outputfile="@OUTPUT@"~
11430 lt_tool_outputfile="@TOOL_OUTPUT@"~
11431 case $lt_outputfile in
11432 *.exe|*.EXE) ;;
11433 *)
11434 lt_outputfile=$lt_outputfile.exe
11435 lt_tool_outputfile=$lt_tool_outputfile.exe
11436 ;;
11437 esac~
11438 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11439 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11440 $RM "$lt_outputfile.manifest";
11441 fi'
11442 ;;
11443 *)
11444 # Assume MSVC wrapper
11445 hardcode_libdir_flag_spec=' '
11446 allow_undefined_flag=unsupported
11447 # Tell ltmain to make .lib files, not .a files.
11448 libext=lib
11449 # Tell ltmain to make .dll files, not .so files.
11450 shrext_cmds=.dll
11451 # FIXME: Setting linknames here is a bad hack.
11452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11453 # The linker will automatically build a .lib file if we build a DLL.
11454 old_archive_from_new_cmds='true'
11455 # FIXME: Should let the user specify the lib program.
11456 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11457 enable_shared_with_static_runtimes=yes
11458 ;;
11459 esac
11460 ;;
11461
11462 darwin* | rhapsody*)
11463
11464
11465 archive_cmds_need_lc=no
11466 hardcode_direct=no
11467 hardcode_automatic=yes
11468 hardcode_shlibpath_var=unsupported
11469 if test yes = "$lt_cv_ld_force_load"; then
11470 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\"`'
11471
11472 else
11473 whole_archive_flag_spec=''
11474 fi
11475 link_all_deplibs=yes
11476 allow_undefined_flag=$_lt_dar_allow_undefined
11477 case $cc_basename in
11478 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11479 *) _lt_dar_can_shared=$GCC ;;
11480 esac
11481 if test yes = "$_lt_dar_can_shared"; then
11482 output_verbose_link_cmd=func_echo_all
11483 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11484 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11485 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"
11486 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"
11487
11488 else
11489 ld_shlibs=no
11490 fi
11491
11492 ;;
11493
11494 dgux*)
11495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11496 hardcode_libdir_flag_spec='-L$libdir'
11497 hardcode_shlibpath_var=no
11498 ;;
11499
11500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11501 # support. Future versions do this automatically, but an explicit c++rt0.o
11502 # does not break anything, and helps significantly (at the cost of a little
11503 # extra space).
11504 freebsd2.2*)
11505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11506 hardcode_libdir_flag_spec='-R$libdir'
11507 hardcode_direct=yes
11508 hardcode_shlibpath_var=no
11509 ;;
11510
11511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11512 freebsd2.*)
11513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11514 hardcode_direct=yes
11515 hardcode_minus_L=yes
11516 hardcode_shlibpath_var=no
11517 ;;
11518
11519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11520 freebsd* | dragonfly*)
11521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11522 hardcode_libdir_flag_spec='-R$libdir'
11523 hardcode_direct=yes
11524 hardcode_shlibpath_var=no
11525 ;;
11526
11527 hpux9*)
11528 if test yes = "$GCC"; then
11529 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'
11530 else
11531 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'
11532 fi
11533 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11534 hardcode_libdir_separator=:
11535 hardcode_direct=yes
11536
11537 # hardcode_minus_L: Not really in the search PATH,
11538 # but as the default location of the library.
11539 hardcode_minus_L=yes
11540 export_dynamic_flag_spec='$wl-E'
11541 ;;
11542
11543 hpux10*)
11544 if test yes,no = "$GCC,$with_gnu_ld"; then
11545 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11546 else
11547 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11548 fi
11549 if test no = "$with_gnu_ld"; then
11550 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11551 hardcode_libdir_separator=:
11552 hardcode_direct=yes
11553 hardcode_direct_absolute=yes
11554 export_dynamic_flag_spec='$wl-E'
11555 # hardcode_minus_L: Not really in the search PATH,
11556 # but as the default location of the library.
11557 hardcode_minus_L=yes
11558 fi
11559 ;;
11560
11561 hpux11*)
11562 if test yes,no = "$GCC,$with_gnu_ld"; then
11563 case $host_cpu in
11564 hppa*64*)
11565 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11566 ;;
11567 ia64*)
11568 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11569 ;;
11570 *)
11571 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11572 ;;
11573 esac
11574 else
11575 case $host_cpu in
11576 hppa*64*)
11577 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11578 ;;
11579 ia64*)
11580 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11581 ;;
11582 *)
11583
11584 # Older versions of the 11.00 compiler do not understand -b yet
11585 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11587 $as_echo_n "checking if $CC understands -b... " >&6; }
11588 if ${lt_cv_prog_compiler__b+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 lt_cv_prog_compiler__b=no
11592 save_LDFLAGS=$LDFLAGS
11593 LDFLAGS="$LDFLAGS -b"
11594 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11596 # The linker can only warn and ignore the option if not recognized
11597 # So say no if there are warnings
11598 if test -s conftest.err; then
11599 # Append any errors to the config.log.
11600 cat conftest.err 1>&5
11601 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11603 if diff conftest.exp conftest.er2 >/dev/null; then
11604 lt_cv_prog_compiler__b=yes
11605 fi
11606 else
11607 lt_cv_prog_compiler__b=yes
11608 fi
11609 fi
11610 $RM -r conftest*
11611 LDFLAGS=$save_LDFLAGS
11612
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11615 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11616
11617 if test yes = "$lt_cv_prog_compiler__b"; then
11618 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11621 fi
11622
11623 ;;
11624 esac
11625 fi
11626 if test no = "$with_gnu_ld"; then
11627 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11628 hardcode_libdir_separator=:
11629
11630 case $host_cpu in
11631 hppa*64*|ia64*)
11632 hardcode_direct=no
11633 hardcode_shlibpath_var=no
11634 ;;
11635 *)
11636 hardcode_direct=yes
11637 hardcode_direct_absolute=yes
11638 export_dynamic_flag_spec='$wl-E'
11639
11640 # hardcode_minus_L: Not really in the search PATH,
11641 # but as the default location of the library.
11642 hardcode_minus_L=yes
11643 ;;
11644 esac
11645 fi
11646 ;;
11647
11648 irix5* | irix6* | nonstopux*)
11649 if test yes = "$GCC"; then
11650 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'
11651 # Try to use the -exported_symbol ld option, if it does not
11652 # work, assume that -exports_file does not work either and
11653 # implicitly export all symbols.
11654 # This should be the same for all languages, so no per-tag cache variable.
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11656 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11657 if ${lt_cv_irix_exported_symbol+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 save_LDFLAGS=$LDFLAGS
11661 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11664 int foo (void) { return 0; }
11665 _ACEOF
11666 if ac_fn_c_try_link "$LINENO"; then :
11667 lt_cv_irix_exported_symbol=yes
11668 else
11669 lt_cv_irix_exported_symbol=no
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LDFLAGS=$save_LDFLAGS
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11676 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11677 if test yes = "$lt_cv_irix_exported_symbol"; then
11678 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'
11679 fi
11680 else
11681 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'
11682 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'
11683 fi
11684 archive_cmds_need_lc='no'
11685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11686 hardcode_libdir_separator=:
11687 inherit_rpath=yes
11688 link_all_deplibs=yes
11689 ;;
11690
11691 linux*)
11692 case $cc_basename in
11693 tcc*)
11694 # Fabrice Bellard et al's Tiny C Compiler
11695 ld_shlibs=yes
11696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11697 ;;
11698 esac
11699 ;;
11700
11701 netbsd*)
11702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11704 else
11705 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11706 fi
11707 hardcode_libdir_flag_spec='-R$libdir'
11708 hardcode_direct=yes
11709 hardcode_shlibpath_var=no
11710 ;;
11711
11712 newsos6)
11713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11714 hardcode_direct=yes
11715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11716 hardcode_libdir_separator=:
11717 hardcode_shlibpath_var=no
11718 ;;
11719
11720 *nto* | *qnx*)
11721 ;;
11722
11723 openbsd* | bitrig*)
11724 if test -f /usr/libexec/ld.so; then
11725 hardcode_direct=yes
11726 hardcode_shlibpath_var=no
11727 hardcode_direct_absolute=yes
11728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11730 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11731 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11732 export_dynamic_flag_spec='$wl-E'
11733 else
11734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11735 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11736 fi
11737 else
11738 ld_shlibs=no
11739 fi
11740 ;;
11741
11742 os2*)
11743 hardcode_libdir_flag_spec='-L$libdir'
11744 hardcode_minus_L=yes
11745 allow_undefined_flag=unsupported
11746 shrext_cmds=.dll
11747 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11750 $ECHO EXPORTS >> $output_objdir/$libname.def~
11751 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11752 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11753 emximp -o $lib $output_objdir/$libname.def'
11754 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11755 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11756 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11757 $ECHO EXPORTS >> $output_objdir/$libname.def~
11758 prefix_cmds="$SED"~
11759 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11760 prefix_cmds="$prefix_cmds -e 1d";
11761 fi~
11762 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11763 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11764 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11765 emximp -o $lib $output_objdir/$libname.def'
11766 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11767 enable_shared_with_static_runtimes=yes
11768 ;;
11769
11770 osf3*)
11771 if test yes = "$GCC"; then
11772 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11773 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'
11774 else
11775 allow_undefined_flag=' -expect_unresolved \*'
11776 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'
11777 fi
11778 archive_cmds_need_lc='no'
11779 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11780 hardcode_libdir_separator=:
11781 ;;
11782
11783 osf4* | osf5*) # as osf3* with the addition of -msym flag
11784 if test yes = "$GCC"; then
11785 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11786 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'
11787 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11788 else
11789 allow_undefined_flag=' -expect_unresolved \*'
11790 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'
11791 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~
11792 $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'
11793
11794 # Both c and cxx compiler support -rpath directly
11795 hardcode_libdir_flag_spec='-rpath $libdir'
11796 fi
11797 archive_cmds_need_lc='no'
11798 hardcode_libdir_separator=:
11799 ;;
11800
11801 solaris*)
11802 no_undefined_flag=' -z defs'
11803 if test yes = "$GCC"; then
11804 wlarc='$wl'
11805 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11807 $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'
11808 else
11809 case `$CC -V 2>&1` in
11810 *"Compilers 5.0"*)
11811 wlarc=''
11812 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11814 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11815 ;;
11816 *)
11817 wlarc='$wl'
11818 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11820 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11821 ;;
11822 esac
11823 fi
11824 hardcode_libdir_flag_spec='-R$libdir'
11825 hardcode_shlibpath_var=no
11826 case $host_os in
11827 solaris2.[0-5] | solaris2.[0-5].*) ;;
11828 *)
11829 # The compiler driver will combine and reorder linker options,
11830 # but understands '-z linker_flag'. GCC discards it without '$wl',
11831 # but is careful enough not to reorder.
11832 # Supported since Solaris 2.6 (maybe 2.5.1?)
11833 if test yes = "$GCC"; then
11834 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11835 else
11836 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11837 fi
11838 ;;
11839 esac
11840 link_all_deplibs=yes
11841 ;;
11842
11843 sunos4*)
11844 if test sequent = "$host_vendor"; then
11845 # Use $CC to link under sequent, because it throws in some extra .o
11846 # files that make .init and .fini sections work.
11847 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11848 else
11849 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11850 fi
11851 hardcode_libdir_flag_spec='-L$libdir'
11852 hardcode_direct=yes
11853 hardcode_minus_L=yes
11854 hardcode_shlibpath_var=no
11855 ;;
11856
11857 sysv4)
11858 case $host_vendor in
11859 sni)
11860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11861 hardcode_direct=yes # is this really true???
11862 ;;
11863 siemens)
11864 ## LD is ld it makes a PLAMLIB
11865 ## CC just makes a GrossModule.
11866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11867 reload_cmds='$CC -r -o $output$reload_objs'
11868 hardcode_direct=no
11869 ;;
11870 motorola)
11871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11872 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11873 ;;
11874 esac
11875 runpath_var='LD_RUN_PATH'
11876 hardcode_shlibpath_var=no
11877 ;;
11878
11879 sysv4.3*)
11880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11881 hardcode_shlibpath_var=no
11882 export_dynamic_flag_spec='-Bexport'
11883 ;;
11884
11885 sysv4*MP*)
11886 if test -d /usr/nec; then
11887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11888 hardcode_shlibpath_var=no
11889 runpath_var=LD_RUN_PATH
11890 hardcode_runpath_var=yes
11891 ld_shlibs=yes
11892 fi
11893 ;;
11894
11895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11896 no_undefined_flag='$wl-z,text'
11897 archive_cmds_need_lc=no
11898 hardcode_shlibpath_var=no
11899 runpath_var='LD_RUN_PATH'
11900
11901 if test yes = "$GCC"; then
11902 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 else
11905 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 fi
11908 ;;
11909
11910 sysv5* | sco3.2v5* | sco5v6*)
11911 # Note: We CANNOT use -z defs as we might desire, because we do not
11912 # link with -lc, and that would cause any symbols used from libc to
11913 # always be unresolved, which means just about no library would
11914 # ever link correctly. If we're not using GNU ld we use -z text
11915 # though, which does catch some bad symbols but isn't as heavy-handed
11916 # as -z defs.
11917 no_undefined_flag='$wl-z,text'
11918 allow_undefined_flag='$wl-z,nodefs'
11919 archive_cmds_need_lc=no
11920 hardcode_shlibpath_var=no
11921 hardcode_libdir_flag_spec='$wl-R,$libdir'
11922 hardcode_libdir_separator=':'
11923 link_all_deplibs=yes
11924 export_dynamic_flag_spec='$wl-Bexport'
11925 runpath_var='LD_RUN_PATH'
11926
11927 if test yes = "$GCC"; then
11928 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 else
11931 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11932 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 fi
11934 ;;
11935
11936 uts4*)
11937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11938 hardcode_libdir_flag_spec='-L$libdir'
11939 hardcode_shlibpath_var=no
11940 ;;
11941
11942 *)
11943 ld_shlibs=no
11944 ;;
11945 esac
11946
11947 if test sni = "$host_vendor"; then
11948 case $host in
11949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11950 export_dynamic_flag_spec='$wl-Blargedynsym'
11951 ;;
11952 esac
11953 fi
11954 fi
11955
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11957 $as_echo "$ld_shlibs" >&6; }
11958 test no = "$ld_shlibs" && can_build_shared=no
11959
11960 with_gnu_ld=$with_gnu_ld
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976 #
11977 # Do we need to explicitly link libc?
11978 #
11979 case "x$archive_cmds_need_lc" in
11980 x|xyes)
11981 # Assume -lc should be added
11982 archive_cmds_need_lc=yes
11983
11984 if test yes,yes = "$GCC,$enable_shared"; then
11985 case $archive_cmds in
11986 *'~'*)
11987 # FIXME: we may have to deal with multi-command sequences.
11988 ;;
11989 '$CC '*)
11990 # Test whether the compiler implicitly links with -lc since on some
11991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11992 # to ld, don't add -lc before -lgcc.
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11994 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11995 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 $RM conftest*
11999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12000
12001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12002 (eval $ac_compile) 2>&5
12003 ac_status=$?
12004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12005 test $ac_status = 0; } 2>conftest.err; then
12006 soname=conftest
12007 lib=conftest
12008 libobjs=conftest.$ac_objext
12009 deplibs=
12010 wl=$lt_prog_compiler_wl
12011 pic_flag=$lt_prog_compiler_pic
12012 compiler_flags=-v
12013 linker_flags=-v
12014 verstring=
12015 output_objdir=.
12016 libname=conftest
12017 lt_save_allow_undefined_flag=$allow_undefined_flag
12018 allow_undefined_flag=
12019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12020 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12021 ac_status=$?
12022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12023 test $ac_status = 0; }
12024 then
12025 lt_cv_archive_cmds_need_lc=no
12026 else
12027 lt_cv_archive_cmds_need_lc=yes
12028 fi
12029 allow_undefined_flag=$lt_save_allow_undefined_flag
12030 else
12031 cat conftest.err 1>&5
12032 fi
12033 $RM conftest*
12034
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12037 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12038 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12039 ;;
12040 esac
12041 fi
12042 ;;
12043 esac
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12197 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12198
12199 if test yes = "$GCC"; then
12200 case $host_os in
12201 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12202 *) lt_awk_arg='/^libraries:/' ;;
12203 esac
12204 case $host_os in
12205 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12206 *) lt_sed_strip_eq='s|=/|/|g' ;;
12207 esac
12208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12209 case $lt_search_path_spec in
12210 *\;*)
12211 # if the path contains ";" then we assume it to be the separator
12212 # otherwise default to the standard path separator (i.e. ":") - it is
12213 # assumed that no part of a normal pathname contains ";" but that should
12214 # okay in the real world where ";" in dirpaths is itself problematic.
12215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12216 ;;
12217 *)
12218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12219 ;;
12220 esac
12221 # Ok, now we have the path, separated by spaces, we can step through it
12222 # and add multilib dir if necessary...
12223 lt_tmp_lt_search_path_spec=
12224 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12225 # ...but if some path component already ends with the multilib dir we assume
12226 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12227 case "$lt_multi_os_dir; $lt_search_path_spec " in
12228 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12229 lt_multi_os_dir=
12230 ;;
12231 esac
12232 for lt_sys_path in $lt_search_path_spec; do
12233 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12234 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12235 elif test -n "$lt_multi_os_dir"; then
12236 test -d "$lt_sys_path" && \
12237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12238 fi
12239 done
12240 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12241 BEGIN {RS = " "; FS = "/|\n";} {
12242 lt_foo = "";
12243 lt_count = 0;
12244 for (lt_i = NF; lt_i > 0; lt_i--) {
12245 if ($lt_i != "" && $lt_i != ".") {
12246 if ($lt_i == "..") {
12247 lt_count++;
12248 } else {
12249 if (lt_count == 0) {
12250 lt_foo = "/" $lt_i lt_foo;
12251 } else {
12252 lt_count--;
12253 }
12254 }
12255 }
12256 }
12257 if (lt_foo != "") { lt_freq[lt_foo]++; }
12258 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12259 }'`
12260 # AWK program above erroneously prepends '/' to C:/dos/paths
12261 # for these hosts.
12262 case $host_os in
12263 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12264 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12265 esac
12266 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12267 else
12268 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12269 fi
12270 library_names_spec=
12271 libname_spec='lib$name'
12272 soname_spec=
12273 shrext_cmds=.so
12274 postinstall_cmds=
12275 postuninstall_cmds=
12276 finish_cmds=
12277 finish_eval=
12278 shlibpath_var=
12279 shlibpath_overrides_runpath=unknown
12280 version_type=none
12281 dynamic_linker="$host_os ld.so"
12282 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12283 need_lib_prefix=unknown
12284 hardcode_into_libs=no
12285
12286 # when you set need_version to no, make sure it does not cause -set_version
12287 # flags to be left without arguments
12288 need_version=unknown
12289
12290
12291
12292 case $host_os in
12293 aix3*)
12294 version_type=linux # correct to gnu/linux during the next big refactor
12295 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12296 shlibpath_var=LIBPATH
12297
12298 # AIX 3 has no versioning support, so we append a major version to the name.
12299 soname_spec='$libname$release$shared_ext$major'
12300 ;;
12301
12302 aix[4-9]*)
12303 version_type=linux # correct to gnu/linux during the next big refactor
12304 need_lib_prefix=no
12305 need_version=no
12306 hardcode_into_libs=yes
12307 if test ia64 = "$host_cpu"; then
12308 # AIX 5 supports IA64
12309 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12310 shlibpath_var=LD_LIBRARY_PATH
12311 else
12312 # With GCC up to 2.95.x, collect2 would create an import file
12313 # for dependence libraries. The import file would start with
12314 # the line '#! .'. This would cause the generated library to
12315 # depend on '.', always an invalid library. This was fixed in
12316 # development snapshots of GCC prior to 3.0.
12317 case $host_os in
12318 aix4 | aix4.[01] | aix4.[01].*)
12319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12320 echo ' yes '
12321 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12322 :
12323 else
12324 can_build_shared=no
12325 fi
12326 ;;
12327 esac
12328 # Using Import Files as archive members, it is possible to support
12329 # filename-based versioning of shared library archives on AIX. While
12330 # this would work for both with and without runtime linking, it will
12331 # prevent static linking of such archives. So we do filename-based
12332 # shared library versioning with .so extension only, which is used
12333 # when both runtime linking and shared linking is enabled.
12334 # Unfortunately, runtime linking may impact performance, so we do
12335 # not want this to be the default eventually. Also, we use the
12336 # versioned .so libs for executables only if there is the -brtl
12337 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12338 # To allow for filename-based versioning support, we need to create
12339 # libNAME.so.V as an archive file, containing:
12340 # *) an Import File, referring to the versioned filename of the
12341 # archive as well as the shared archive member, telling the
12342 # bitwidth (32 or 64) of that shared object, and providing the
12343 # list of exported symbols of that shared object, eventually
12344 # decorated with the 'weak' keyword
12345 # *) the shared object with the F_LOADONLY flag set, to really avoid
12346 # it being seen by the linker.
12347 # At run time we better use the real file rather than another symlink,
12348 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12349
12350 case $with_aix_soname,$aix_use_runtimelinking in
12351 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12352 # soname into executable. Probably we can add versioning support to
12353 # collect2, so additional links can be useful in future.
12354 aix,yes) # traditional libtool
12355 dynamic_linker='AIX unversionable lib.so'
12356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12357 # instead of lib<name>.a to let people know that these are not
12358 # typical AIX shared libraries.
12359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12360 ;;
12361 aix,no) # traditional AIX only
12362 dynamic_linker='AIX lib.a(lib.so.V)'
12363 # We preserve .a as extension for shared libraries through AIX4.2
12364 # and later when we are not doing run time linking.
12365 library_names_spec='$libname$release.a $libname.a'
12366 soname_spec='$libname$release$shared_ext$major'
12367 ;;
12368 svr4,*) # full svr4 only
12369 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12370 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12371 # We do not specify a path in Import Files, so LIBPATH fires.
12372 shlibpath_overrides_runpath=yes
12373 ;;
12374 *,yes) # both, prefer svr4
12375 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12376 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12377 # unpreferred sharedlib libNAME.a needs extra handling
12378 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"'
12379 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"'
12380 # We do not specify a path in Import Files, so LIBPATH fires.
12381 shlibpath_overrides_runpath=yes
12382 ;;
12383 *,no) # both, prefer aix
12384 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12385 library_names_spec='$libname$release.a $libname.a'
12386 soname_spec='$libname$release$shared_ext$major'
12387 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12388 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)'
12389 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"'
12390 ;;
12391 esac
12392 shlibpath_var=LIBPATH
12393 fi
12394 ;;
12395
12396 amigaos*)
12397 case $host_cpu in
12398 powerpc)
12399 # Since July 2007 AmigaOS4 officially supports .so libraries.
12400 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 ;;
12403 m68k)
12404 library_names_spec='$libname.ixlibrary $libname.a'
12405 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12406 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'
12407 ;;
12408 esac
12409 ;;
12410
12411 beos*)
12412 library_names_spec='$libname$shared_ext'
12413 dynamic_linker="$host_os ld.so"
12414 shlibpath_var=LIBRARY_PATH
12415 ;;
12416
12417 bsdi[45]*)
12418 version_type=linux # correct to gnu/linux during the next big refactor
12419 need_version=no
12420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12421 soname_spec='$libname$release$shared_ext$major'
12422 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12425 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12426 # the default ld.so.conf also contains /usr/contrib/lib and
12427 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12428 # libtool to hard-code these into programs
12429 ;;
12430
12431 cygwin* | mingw* | pw32* | cegcc*)
12432 version_type=windows
12433 shrext_cmds=.dll
12434 need_version=no
12435 need_lib_prefix=no
12436
12437 case $GCC,$cc_basename in
12438 yes,*)
12439 # gcc
12440 library_names_spec='$libname.dll.a'
12441 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12442 postinstall_cmds='base_file=`basename \$file`~
12443 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12444 dldir=$destdir/`dirname \$dlpath`~
12445 test -d \$dldir || mkdir -p \$dldir~
12446 $install_prog $dir/$dlname \$dldir/$dlname~
12447 chmod a+x \$dldir/$dlname~
12448 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12449 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12450 fi'
12451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12452 dlpath=$dir/\$dldll~
12453 $RM \$dlpath'
12454 shlibpath_overrides_runpath=yes
12455
12456 case $host_os in
12457 cygwin*)
12458 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12459 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12460
12461 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12462 ;;
12463 mingw* | cegcc*)
12464 # MinGW DLLs use traditional 'lib' prefix
12465 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12466 ;;
12467 pw32*)
12468 # pw32 DLLs use 'pw' prefix rather than 'lib'
12469 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12470 ;;
12471 esac
12472 dynamic_linker='Win32 ld.exe'
12473 ;;
12474
12475 *,cl*)
12476 # Native MSVC
12477 libname_spec='$name'
12478 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12479 library_names_spec='$libname.dll.lib'
12480
12481 case $build_os in
12482 mingw*)
12483 sys_lib_search_path_spec=
12484 lt_save_ifs=$IFS
12485 IFS=';'
12486 for lt_path in $LIB
12487 do
12488 IFS=$lt_save_ifs
12489 # Let DOS variable expansion print the short 8.3 style file name.
12490 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12491 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12492 done
12493 IFS=$lt_save_ifs
12494 # Convert to MSYS style.
12495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12496 ;;
12497 cygwin*)
12498 # Convert to unix form, then to dos form, then back to unix form
12499 # but this time dos style (no spaces!) so that the unix form looks
12500 # like /cygdrive/c/PROGRA~1:/cygdr...
12501 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12502 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12503 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12504 ;;
12505 *)
12506 sys_lib_search_path_spec=$LIB
12507 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12508 # It is most probably a Windows format PATH.
12509 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12510 else
12511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12512 fi
12513 # FIXME: find the short name or the path components, as spaces are
12514 # common. (e.g. "Program Files" -> "PROGRA~1")
12515 ;;
12516 esac
12517
12518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12519 postinstall_cmds='base_file=`basename \$file`~
12520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12521 dldir=$destdir/`dirname \$dlpath`~
12522 test -d \$dldir || mkdir -p \$dldir~
12523 $install_prog $dir/$dlname \$dldir/$dlname'
12524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12525 dlpath=$dir/\$dldll~
12526 $RM \$dlpath'
12527 shlibpath_overrides_runpath=yes
12528 dynamic_linker='Win32 link.exe'
12529 ;;
12530
12531 *)
12532 # Assume MSVC wrapper
12533 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12534 dynamic_linker='Win32 ld.exe'
12535 ;;
12536 esac
12537 # FIXME: first we should search . and the directory the executable is in
12538 shlibpath_var=PATH
12539 ;;
12540
12541 darwin* | rhapsody*)
12542 dynamic_linker="$host_os dyld"
12543 version_type=darwin
12544 need_lib_prefix=no
12545 need_version=no
12546 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12547 soname_spec='$libname$release$major$shared_ext'
12548 shlibpath_overrides_runpath=yes
12549 shlibpath_var=DYLD_LIBRARY_PATH
12550 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12551
12552 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12553 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12554 ;;
12555
12556 dgux*)
12557 version_type=linux # correct to gnu/linux during the next big refactor
12558 need_lib_prefix=no
12559 need_version=no
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 soname_spec='$libname$release$shared_ext$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 ;;
12564
12565 freebsd* | dragonfly*)
12566 # DragonFly does not have aout. When/if they implement a new
12567 # versioning mechanism, adjust this.
12568 if test -x /usr/bin/objformat; then
12569 objformat=`/usr/bin/objformat`
12570 else
12571 case $host_os in
12572 freebsd[23].*) objformat=aout ;;
12573 *) objformat=elf ;;
12574 esac
12575 fi
12576 version_type=freebsd-$objformat
12577 case $version_type in
12578 freebsd-elf*)
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12580 soname_spec='$libname$release$shared_ext$major'
12581 need_version=no
12582 need_lib_prefix=no
12583 ;;
12584 freebsd-*)
12585 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12586 need_version=yes
12587 ;;
12588 esac
12589 shlibpath_var=LD_LIBRARY_PATH
12590 case $host_os in
12591 freebsd2.*)
12592 shlibpath_overrides_runpath=yes
12593 ;;
12594 freebsd3.[01]* | freebsdelf3.[01]*)
12595 shlibpath_overrides_runpath=yes
12596 hardcode_into_libs=yes
12597 ;;
12598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12600 shlibpath_overrides_runpath=no
12601 hardcode_into_libs=yes
12602 ;;
12603 *) # from 4.6 on, and DragonFly
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 ;;
12607 esac
12608 ;;
12609
12610 haiku*)
12611 version_type=linux # correct to gnu/linux during the next big refactor
12612 need_lib_prefix=no
12613 need_version=no
12614 dynamic_linker="$host_os runtime_loader"
12615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12616 soname_spec='$libname$release$shared_ext$major'
12617 shlibpath_var=LIBRARY_PATH
12618 shlibpath_overrides_runpath=no
12619 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12620 hardcode_into_libs=yes
12621 ;;
12622
12623 hpux9* | hpux10* | hpux11*)
12624 # Give a soname corresponding to the major version so that dld.sl refuses to
12625 # link against other versions.
12626 version_type=sunos
12627 need_lib_prefix=no
12628 need_version=no
12629 case $host_cpu in
12630 ia64*)
12631 shrext_cmds='.so'
12632 hardcode_into_libs=yes
12633 dynamic_linker="$host_os dld.so"
12634 shlibpath_var=LD_LIBRARY_PATH
12635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12637 soname_spec='$libname$release$shared_ext$major'
12638 if test 32 = "$HPUX_IA64_MODE"; then
12639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12640 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12641 else
12642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12643 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12644 fi
12645 ;;
12646 hppa*64*)
12647 shrext_cmds='.sl'
12648 hardcode_into_libs=yes
12649 dynamic_linker="$host_os dld.sl"
12650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12653 soname_spec='$libname$release$shared_ext$major'
12654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12656 ;;
12657 *)
12658 shrext_cmds='.sl'
12659 dynamic_linker="$host_os dld.sl"
12660 shlibpath_var=SHLIB_PATH
12661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12663 soname_spec='$libname$release$shared_ext$major'
12664 ;;
12665 esac
12666 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12667 postinstall_cmds='chmod 555 $lib'
12668 # or fails outright, so override atomically:
12669 install_override_mode=555
12670 ;;
12671
12672 interix[3-9]*)
12673 version_type=linux # correct to gnu/linux during the next big refactor
12674 need_lib_prefix=no
12675 need_version=no
12676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12677 soname_spec='$libname$release$shared_ext$major'
12678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12682 ;;
12683
12684 irix5* | irix6* | nonstopux*)
12685 case $host_os in
12686 nonstopux*) version_type=nonstopux ;;
12687 *)
12688 if test yes = "$lt_cv_prog_gnu_ld"; then
12689 version_type=linux # correct to gnu/linux during the next big refactor
12690 else
12691 version_type=irix
12692 fi ;;
12693 esac
12694 need_lib_prefix=no
12695 need_version=no
12696 soname_spec='$libname$release$shared_ext$major'
12697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12698 case $host_os in
12699 irix5* | nonstopux*)
12700 libsuff= shlibsuff=
12701 ;;
12702 *)
12703 case $LD in # libtool.m4 will add one of these switches to LD
12704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12705 libsuff= shlibsuff= libmagic=32-bit;;
12706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12707 libsuff=32 shlibsuff=N32 libmagic=N32;;
12708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12710 *) libsuff= shlibsuff= libmagic=never-match;;
12711 esac
12712 ;;
12713 esac
12714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12715 shlibpath_overrides_runpath=no
12716 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12717 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12718 hardcode_into_libs=yes
12719 ;;
12720
12721 # No shared lib support for Linux oldld, aout, or coff.
12722 linux*oldld* | linux*aout* | linux*coff*)
12723 dynamic_linker=no
12724 ;;
12725
12726 linux*android*)
12727 version_type=none # Android doesn't support versioned libraries.
12728 need_lib_prefix=no
12729 need_version=no
12730 library_names_spec='$libname$release$shared_ext'
12731 soname_spec='$libname$release$shared_ext'
12732 finish_cmds=
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=yes
12735
12736 # This implies no fast_install, which is unacceptable.
12737 # Some rework will be needed to allow for fast_install
12738 # before this can be enabled.
12739 hardcode_into_libs=yes
12740
12741 dynamic_linker='Android linker'
12742 # Don't embed -rpath directories since the linker doesn't support them.
12743 hardcode_libdir_flag_spec='-L$libdir'
12744 ;;
12745
12746 # This must be glibc/ELF.
12747 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12748 version_type=linux # correct to gnu/linux during the next big refactor
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 soname_spec='$libname$release$shared_ext$major'
12753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 shlibpath_overrides_runpath=no
12756
12757 # Some binutils ld are patched to set DT_RUNPATH
12758 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 lt_cv_shlibpath_overrides_runpath=no
12762 save_LDFLAGS=$LDFLAGS
12763 save_libdir=$libdir
12764 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12765 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768
12769 int
12770 main ()
12771 {
12772
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12779 lt_cv_shlibpath_overrides_runpath=yes
12780 fi
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LDFLAGS=$save_LDFLAGS
12785 libdir=$save_libdir
12786
12787 fi
12788
12789 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12790
12791 # This implies no fast_install, which is unacceptable.
12792 # Some rework will be needed to allow for fast_install
12793 # before this can be enabled.
12794 hardcode_into_libs=yes
12795
12796 # Add ABI-specific directories to the system library path.
12797 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12798
12799 # Ideally, we could use ldconfig to report *all* directores which are
12800 # searched for libraries, however this is still not possible. Aside from not
12801 # being certain /sbin/ldconfig is available, command
12802 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12803 # even though it is searched at run-time. Try to do the best guess by
12804 # appending ld.so.conf contents (and includes) to the search path.
12805 if test -f /etc/ld.so.conf; then
12806 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' ' '`
12807 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12808 fi
12809
12810 # We used to test for /lib/ld.so.1 and disable shared libraries on
12811 # powerpc, because MkLinux only supported shared libraries with the
12812 # GNU dynamic linker. Since this was broken with cross compilers,
12813 # most powerpc-linux boxes support dynamic linking these days and
12814 # people can always --disable-shared, the test was removed, and we
12815 # assume the GNU/Linux dynamic linker is in use.
12816 dynamic_linker='GNU/Linux ld.so'
12817 ;;
12818
12819 netbsd*)
12820 version_type=sunos
12821 need_lib_prefix=no
12822 need_version=no
12823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12824 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12826 dynamic_linker='NetBSD (a.out) ld.so'
12827 else
12828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12829 soname_spec='$libname$release$shared_ext$major'
12830 dynamic_linker='NetBSD ld.elf_so'
12831 fi
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes
12834 hardcode_into_libs=yes
12835 ;;
12836
12837 newsos6)
12838 version_type=linux # correct to gnu/linux during the next big refactor
12839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12840 shlibpath_var=LD_LIBRARY_PATH
12841 shlibpath_overrides_runpath=yes
12842 ;;
12843
12844 *nto* | *qnx*)
12845 version_type=qnx
12846 need_lib_prefix=no
12847 need_version=no
12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12849 soname_spec='$libname$release$shared_ext$major'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=no
12852 hardcode_into_libs=yes
12853 dynamic_linker='ldqnx.so'
12854 ;;
12855
12856 openbsd* | bitrig*)
12857 version_type=sunos
12858 sys_lib_dlsearch_path_spec=/usr/lib
12859 need_lib_prefix=no
12860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12861 need_version=no
12862 else
12863 need_version=yes
12864 fi
12865 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=yes
12869 ;;
12870
12871 os2*)
12872 libname_spec='$name'
12873 version_type=windows
12874 shrext_cmds=.dll
12875 need_version=no
12876 need_lib_prefix=no
12877 # OS/2 can only load a DLL with a base name of 8 characters or less.
12878 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12879 v=$($ECHO $release$versuffix | tr -d .-);
12880 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12881 $ECHO $n$v`$shared_ext'
12882 library_names_spec='${libname}_dll.$libext'
12883 dynamic_linker='OS/2 ld.exe'
12884 shlibpath_var=BEGINLIBPATH
12885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12887 postinstall_cmds='base_file=`basename \$file`~
12888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12889 dldir=$destdir/`dirname \$dlpath`~
12890 test -d \$dldir || mkdir -p \$dldir~
12891 $install_prog $dir/$dlname \$dldir/$dlname~
12892 chmod a+x \$dldir/$dlname~
12893 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12894 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12895 fi'
12896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12897 dlpath=$dir/\$dldll~
12898 $RM \$dlpath'
12899 ;;
12900
12901 osf3* | osf4* | osf5*)
12902 version_type=osf
12903 need_lib_prefix=no
12904 need_version=no
12905 soname_spec='$libname$release$shared_ext$major'
12906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12907 shlibpath_var=LD_LIBRARY_PATH
12908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12910 ;;
12911
12912 rdos*)
12913 dynamic_linker=no
12914 ;;
12915
12916 solaris*)
12917 version_type=linux # correct to gnu/linux during the next big refactor
12918 need_lib_prefix=no
12919 need_version=no
12920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12921 soname_spec='$libname$release$shared_ext$major'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12924 hardcode_into_libs=yes
12925 # ldd complains unless libraries are executable
12926 postinstall_cmds='chmod +x $lib'
12927 ;;
12928
12929 sunos4*)
12930 version_type=sunos
12931 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12933 shlibpath_var=LD_LIBRARY_PATH
12934 shlibpath_overrides_runpath=yes
12935 if test yes = "$with_gnu_ld"; then
12936 need_lib_prefix=no
12937 fi
12938 need_version=yes
12939 ;;
12940
12941 sysv4 | sysv4.3*)
12942 version_type=linux # correct to gnu/linux during the next big refactor
12943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12944 soname_spec='$libname$release$shared_ext$major'
12945 shlibpath_var=LD_LIBRARY_PATH
12946 case $host_vendor in
12947 sni)
12948 shlibpath_overrides_runpath=no
12949 need_lib_prefix=no
12950 runpath_var=LD_RUN_PATH
12951 ;;
12952 siemens)
12953 need_lib_prefix=no
12954 ;;
12955 motorola)
12956 need_lib_prefix=no
12957 need_version=no
12958 shlibpath_overrides_runpath=no
12959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12960 ;;
12961 esac
12962 ;;
12963
12964 sysv4*MP*)
12965 if test -d /usr/nec; then
12966 version_type=linux # correct to gnu/linux during the next big refactor
12967 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12968 soname_spec='$libname$shared_ext.$major'
12969 shlibpath_var=LD_LIBRARY_PATH
12970 fi
12971 ;;
12972
12973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12974 version_type=sco
12975 need_lib_prefix=no
12976 need_version=no
12977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12978 soname_spec='$libname$release$shared_ext$major'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=yes
12981 hardcode_into_libs=yes
12982 if test yes = "$with_gnu_ld"; then
12983 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12984 else
12985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12986 case $host_os in
12987 sco3.2v5*)
12988 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12989 ;;
12990 esac
12991 fi
12992 sys_lib_dlsearch_path_spec='/usr/lib'
12993 ;;
12994
12995 tpf*)
12996 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12997 version_type=linux # correct to gnu/linux during the next big refactor
12998 need_lib_prefix=no
12999 need_version=no
13000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=no
13003 hardcode_into_libs=yes
13004 ;;
13005
13006 uts4*)
13007 version_type=linux # correct to gnu/linux during the next big refactor
13008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13009 soname_spec='$libname$release$shared_ext$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 ;;
13012
13013 *)
13014 dynamic_linker=no
13015 ;;
13016 esac
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13018 $as_echo "$dynamic_linker" >&6; }
13019 test no = "$dynamic_linker" && can_build_shared=no
13020
13021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13022 if test yes = "$GCC"; then
13023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13024 fi
13025
13026 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13027 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13028 fi
13029
13030 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13031 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13032 fi
13033
13034 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13035 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13036
13037 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13038 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13039
13040 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13041 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13140 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13141 hardcode_action=
13142 if test -n "$hardcode_libdir_flag_spec" ||
13143 test -n "$runpath_var" ||
13144 test yes = "$hardcode_automatic"; then
13145
13146 # We can hardcode non-existent directories.
13147 if test no != "$hardcode_direct" &&
13148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13149 # have to relink, otherwise we might link with an installed library
13150 # when we should be linking with a yet-to-be-installed one
13151 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13152 test no != "$hardcode_minus_L"; then
13153 # Linking always hardcodes the temporary library directory.
13154 hardcode_action=relink
13155 else
13156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13157 hardcode_action=immediate
13158 fi
13159 else
13160 # We cannot hardcode anything, or else we can only hardcode existing
13161 # directories.
13162 hardcode_action=unsupported
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13165 $as_echo "$hardcode_action" >&6; }
13166
13167 if test relink = "$hardcode_action" ||
13168 test yes = "$inherit_rpath"; then
13169 # Fast installation is not supported
13170 enable_fast_install=no
13171 elif test yes = "$shlibpath_overrides_runpath" ||
13172 test no = "$enable_shared"; then
13173 # Fast installation is not necessary
13174 enable_fast_install=needless
13175 fi
13176
13177
13178
13179
13180
13181
13182 if test yes != "$enable_dlopen"; then
13183 enable_dlopen=unknown
13184 enable_dlopen_self=unknown
13185 enable_dlopen_self_static=unknown
13186 else
13187 lt_cv_dlopen=no
13188 lt_cv_dlopen_libs=
13189
13190 case $host_os in
13191 beos*)
13192 lt_cv_dlopen=load_add_on
13193 lt_cv_dlopen_libs=
13194 lt_cv_dlopen_self=yes
13195 ;;
13196
13197 mingw* | pw32* | cegcc*)
13198 lt_cv_dlopen=LoadLibrary
13199 lt_cv_dlopen_libs=
13200 ;;
13201
13202 cygwin*)
13203 lt_cv_dlopen=dlopen
13204 lt_cv_dlopen_libs=
13205 ;;
13206
13207 darwin*)
13208 # if libdl is installed we need to link against it
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13210 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13211 if ${ac_cv_lib_dl_dlopen+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ldl $LIBS"
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char dlopen ();
13226 int
13227 main ()
13228 {
13229 return dlopen ();
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 if ac_fn_c_try_link "$LINENO"; then :
13235 ac_cv_lib_dl_dlopen=yes
13236 else
13237 ac_cv_lib_dl_dlopen=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13244 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13245 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13246 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13247 else
13248
13249 lt_cv_dlopen=dyld
13250 lt_cv_dlopen_libs=
13251 lt_cv_dlopen_self=yes
13252
13253 fi
13254
13255 ;;
13256
13257 tpf*)
13258 # Don't try to run any link tests for TPF. We know it's impossible
13259 # because TPF is a cross-compiler, and we know how we open DSOs.
13260 lt_cv_dlopen=dlopen
13261 lt_cv_dlopen_libs=
13262 lt_cv_dlopen_self=no
13263 ;;
13264
13265 *)
13266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13267 if test "x$ac_cv_func_shl_load" = xyes; then :
13268 lt_cv_dlopen=shl_load
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13272 if ${ac_cv_lib_dld_shl_load+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 ac_check_lib_save_LIBS=$LIBS
13276 LIBS="-ldld $LIBS"
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 /* Override any GCC internal prototype to avoid an error.
13281 Use char because int might match the return type of a GCC
13282 builtin and then its argument prototype would still apply. */
13283 #ifdef __cplusplus
13284 extern "C"
13285 #endif
13286 char shl_load ();
13287 int
13288 main ()
13289 {
13290 return shl_load ();
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_lib_dld_shl_load=yes
13297 else
13298 ac_cv_lib_dld_shl_load=no
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LIBS=$ac_check_lib_save_LIBS
13303 fi
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13306 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13307 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13308 else
13309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13310 if test "x$ac_cv_func_dlopen" = xyes; then :
13311 lt_cv_dlopen=dlopen
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13315 if ${ac_cv_lib_dl_dlopen+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-ldl $LIBS"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char dlopen ();
13330 int
13331 main ()
13332 {
13333 return dlopen ();
13334 ;
13335 return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"; then :
13339 ac_cv_lib_dl_dlopen=yes
13340 else
13341 ac_cv_lib_dl_dlopen=no
13342 fi
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13346 fi
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13349 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13354 if ${ac_cv_lib_svld_dlopen+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-lsvld $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361
13362 /* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13365 #ifdef __cplusplus
13366 extern "C"
13367 #endif
13368 char dlopen ();
13369 int
13370 main ()
13371 {
13372 return dlopen ();
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_link "$LINENO"; then :
13378 ac_cv_lib_svld_dlopen=yes
13379 else
13380 ac_cv_lib_svld_dlopen=no
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13388 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13389 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13390 else
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13393 if ${ac_cv_lib_dld_dld_link+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 ac_check_lib_save_LIBS=$LIBS
13397 LIBS="-ldld $LIBS"
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400
13401 /* Override any GCC internal prototype to avoid an error.
13402 Use char because int might match the return type of a GCC
13403 builtin and then its argument prototype would still apply. */
13404 #ifdef __cplusplus
13405 extern "C"
13406 #endif
13407 char dld_link ();
13408 int
13409 main ()
13410 {
13411 return dld_link ();
13412 ;
13413 return 0;
13414 }
13415 _ACEOF
13416 if ac_fn_c_try_link "$LINENO"; then :
13417 ac_cv_lib_dld_dld_link=yes
13418 else
13419 ac_cv_lib_dld_dld_link=no
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext \
13422 conftest$ac_exeext conftest.$ac_ext
13423 LIBS=$ac_check_lib_save_LIBS
13424 fi
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13427 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13428 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13429 fi
13430
13431
13432 fi
13433
13434
13435 fi
13436
13437
13438 fi
13439
13440
13441 fi
13442
13443
13444 fi
13445
13446 ;;
13447 esac
13448
13449 if test no = "$lt_cv_dlopen"; then
13450 enable_dlopen=no
13451 else
13452 enable_dlopen=yes
13453 fi
13454
13455 case $lt_cv_dlopen in
13456 dlopen)
13457 save_CPPFLAGS=$CPPFLAGS
13458 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13459
13460 save_LDFLAGS=$LDFLAGS
13461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13462
13463 save_LIBS=$LIBS
13464 LIBS="$lt_cv_dlopen_libs $LIBS"
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13468 if ${lt_cv_dlopen_self+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test yes = "$cross_compiling"; then :
13472 lt_cv_dlopen_self=cross
13473 else
13474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13475 lt_status=$lt_dlunknown
13476 cat > conftest.$ac_ext <<_LT_EOF
13477 #line $LINENO "configure"
13478 #include "confdefs.h"
13479
13480 #if HAVE_DLFCN_H
13481 #include <dlfcn.h>
13482 #endif
13483
13484 #include <stdio.h>
13485
13486 #ifdef RTLD_GLOBAL
13487 # define LT_DLGLOBAL RTLD_GLOBAL
13488 #else
13489 # ifdef DL_GLOBAL
13490 # define LT_DLGLOBAL DL_GLOBAL
13491 # else
13492 # define LT_DLGLOBAL 0
13493 # endif
13494 #endif
13495
13496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13497 find out it does not work in some platform. */
13498 #ifndef LT_DLLAZY_OR_NOW
13499 # ifdef RTLD_LAZY
13500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13501 # else
13502 # ifdef DL_LAZY
13503 # define LT_DLLAZY_OR_NOW DL_LAZY
13504 # else
13505 # ifdef RTLD_NOW
13506 # define LT_DLLAZY_OR_NOW RTLD_NOW
13507 # else
13508 # ifdef DL_NOW
13509 # define LT_DLLAZY_OR_NOW DL_NOW
13510 # else
13511 # define LT_DLLAZY_OR_NOW 0
13512 # endif
13513 # endif
13514 # endif
13515 # endif
13516 #endif
13517
13518 /* When -fvisibility=hidden is used, assume the code has been annotated
13519 correspondingly for the symbols needed. */
13520 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13521 int fnord () __attribute__((visibility("default")));
13522 #endif
13523
13524 int fnord () { return 42; }
13525 int main ()
13526 {
13527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13528 int status = $lt_dlunknown;
13529
13530 if (self)
13531 {
13532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13533 else
13534 {
13535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13536 else puts (dlerror ());
13537 }
13538 /* dlclose (self); */
13539 }
13540 else
13541 puts (dlerror ());
13542
13543 return status;
13544 }
13545 _LT_EOF
13546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13547 (eval $ac_link) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13551 (./conftest; exit; ) >&5 2>/dev/null
13552 lt_status=$?
13553 case x$lt_status in
13554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13557 esac
13558 else :
13559 # compilation failed
13560 lt_cv_dlopen_self=no
13561 fi
13562 fi
13563 rm -fr conftest*
13564
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13568 $as_echo "$lt_cv_dlopen_self" >&6; }
13569
13570 if test yes = "$lt_cv_dlopen_self"; then
13571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13573 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13574 if ${lt_cv_dlopen_self_static+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 if test yes = "$cross_compiling"; then :
13578 lt_cv_dlopen_self_static=cross
13579 else
13580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13581 lt_status=$lt_dlunknown
13582 cat > conftest.$ac_ext <<_LT_EOF
13583 #line $LINENO "configure"
13584 #include "confdefs.h"
13585
13586 #if HAVE_DLFCN_H
13587 #include <dlfcn.h>
13588 #endif
13589
13590 #include <stdio.h>
13591
13592 #ifdef RTLD_GLOBAL
13593 # define LT_DLGLOBAL RTLD_GLOBAL
13594 #else
13595 # ifdef DL_GLOBAL
13596 # define LT_DLGLOBAL DL_GLOBAL
13597 # else
13598 # define LT_DLGLOBAL 0
13599 # endif
13600 #endif
13601
13602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13603 find out it does not work in some platform. */
13604 #ifndef LT_DLLAZY_OR_NOW
13605 # ifdef RTLD_LAZY
13606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13607 # else
13608 # ifdef DL_LAZY
13609 # define LT_DLLAZY_OR_NOW DL_LAZY
13610 # else
13611 # ifdef RTLD_NOW
13612 # define LT_DLLAZY_OR_NOW RTLD_NOW
13613 # else
13614 # ifdef DL_NOW
13615 # define LT_DLLAZY_OR_NOW DL_NOW
13616 # else
13617 # define LT_DLLAZY_OR_NOW 0
13618 # endif
13619 # endif
13620 # endif
13621 # endif
13622 #endif
13623
13624 /* When -fvisibility=hidden is used, assume the code has been annotated
13625 correspondingly for the symbols needed. */
13626 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13627 int fnord () __attribute__((visibility("default")));
13628 #endif
13629
13630 int fnord () { return 42; }
13631 int main ()
13632 {
13633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13634 int status = $lt_dlunknown;
13635
13636 if (self)
13637 {
13638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13639 else
13640 {
13641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13642 else puts (dlerror ());
13643 }
13644 /* dlclose (self); */
13645 }
13646 else
13647 puts (dlerror ());
13648
13649 return status;
13650 }
13651 _LT_EOF
13652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13653 (eval $ac_link) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13657 (./conftest; exit; ) >&5 2>/dev/null
13658 lt_status=$?
13659 case x$lt_status in
13660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13663 esac
13664 else :
13665 # compilation failed
13666 lt_cv_dlopen_self_static=no
13667 fi
13668 fi
13669 rm -fr conftest*
13670
13671
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13674 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13675 fi
13676
13677 CPPFLAGS=$save_CPPFLAGS
13678 LDFLAGS=$save_LDFLAGS
13679 LIBS=$save_LIBS
13680 ;;
13681 esac
13682
13683 case $lt_cv_dlopen_self in
13684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13685 *) enable_dlopen_self=unknown ;;
13686 esac
13687
13688 case $lt_cv_dlopen_self_static in
13689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13690 *) enable_dlopen_self_static=unknown ;;
13691 esac
13692 fi
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710 striplib=
13711 old_striplib=
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13714 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718 $as_echo "yes" >&6; }
13719 else
13720 # FIXME - insert some real tests, host_os isn't really good enough
13721 case $host_os in
13722 darwin*)
13723 if test -n "$STRIP"; then
13724 striplib="$STRIP -x"
13725 old_striplib="$STRIP -S"
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13727 $as_echo "yes" >&6; }
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13731 fi
13732 ;;
13733 *)
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; }
13736 ;;
13737 esac
13738 fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # Report what library types will actually be built
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13753 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13755 $as_echo "$can_build_shared" >&6; }
13756
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13758 $as_echo_n "checking whether to build shared libraries... " >&6; }
13759 test no = "$can_build_shared" && enable_shared=no
13760
13761 # On AIX, shared libraries and static libraries use the same namespace, and
13762 # are all built from PIC.
13763 case $host_os in
13764 aix3*)
13765 test yes = "$enable_shared" && enable_static=no
13766 if test -n "$RANLIB"; then
13767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13768 postinstall_cmds='$RANLIB $lib'
13769 fi
13770 ;;
13771
13772 aix[4-9]*)
13773 if test ia64 != "$host_cpu"; then
13774 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13775 yes,aix,yes) ;; # shared object as lib.so file only
13776 yes,svr4,*) ;; # shared object as lib.so archive member only
13777 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13778 esac
13779 fi
13780 ;;
13781 esac
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13783 $as_echo "$enable_shared" >&6; }
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13786 $as_echo_n "checking whether to build static libraries... " >&6; }
13787 # Make sure either enable_shared or enable_static is yes.
13788 test yes = "$enable_shared" || enable_static=yes
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13790 $as_echo "$enable_static" >&6; }
13791
13792
13793
13794
13795 fi
13796 ac_ext=cpp
13797 ac_cpp='$CXXCPP $CPPFLAGS'
13798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13801
13802 CC=$lt_save_CC
13803
13804 if test -n "$CXX" && ( test no != "$CXX" &&
13805 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13806 (test g++ != "$CXX"))); then
13807 ac_ext=cpp
13808 ac_cpp='$CXXCPP $CPPFLAGS'
13809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13813 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13814 if test -z "$CXXCPP"; then
13815 if ${ac_cv_prog_CXXCPP+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 # Double quotes because CXXCPP needs to be expanded
13819 for CXXCPP in "$CXX -E" "/lib/cpp"
13820 do
13821 ac_preproc_ok=false
13822 for ac_cxx_preproc_warn_flag in '' yes
13823 do
13824 # Use a header file that comes with gcc, so configuring glibc
13825 # with a fresh cross-compiler works.
13826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13827 # <limits.h> exists even on freestanding compilers.
13828 # On the NeXT, cc -E runs the code through the compiler's parser,
13829 # not just through cpp. "Syntax error" is here to catch this case.
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 #ifdef __STDC__
13833 # include <limits.h>
13834 #else
13835 # include <assert.h>
13836 #endif
13837 Syntax error
13838 _ACEOF
13839 if ac_fn_cxx_try_cpp "$LINENO"; then :
13840
13841 else
13842 # Broken: fails on valid input.
13843 continue
13844 fi
13845 rm -f conftest.err conftest.i conftest.$ac_ext
13846
13847 # OK, works on sane cases. Now check whether nonexistent headers
13848 # can be detected and how.
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 #include <ac_nonexistent.h>
13852 _ACEOF
13853 if ac_fn_cxx_try_cpp "$LINENO"; then :
13854 # Broken: success on invalid input.
13855 continue
13856 else
13857 # Passes both tests.
13858 ac_preproc_ok=:
13859 break
13860 fi
13861 rm -f conftest.err conftest.i conftest.$ac_ext
13862
13863 done
13864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13865 rm -f conftest.i conftest.err conftest.$ac_ext
13866 if $ac_preproc_ok; then :
13867 break
13868 fi
13869
13870 done
13871 ac_cv_prog_CXXCPP=$CXXCPP
13872
13873 fi
13874 CXXCPP=$ac_cv_prog_CXXCPP
13875 else
13876 ac_cv_prog_CXXCPP=$CXXCPP
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13879 $as_echo "$CXXCPP" >&6; }
13880 ac_preproc_ok=false
13881 for ac_cxx_preproc_warn_flag in '' yes
13882 do
13883 # Use a header file that comes with gcc, so configuring glibc
13884 # with a fresh cross-compiler works.
13885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13886 # <limits.h> exists even on freestanding compilers.
13887 # On the NeXT, cc -E runs the code through the compiler's parser,
13888 # not just through cpp. "Syntax error" is here to catch this case.
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 #ifdef __STDC__
13892 # include <limits.h>
13893 #else
13894 # include <assert.h>
13895 #endif
13896 Syntax error
13897 _ACEOF
13898 if ac_fn_cxx_try_cpp "$LINENO"; then :
13899
13900 else
13901 # Broken: fails on valid input.
13902 continue
13903 fi
13904 rm -f conftest.err conftest.i conftest.$ac_ext
13905
13906 # OK, works on sane cases. Now check whether nonexistent headers
13907 # can be detected and how.
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 #include <ac_nonexistent.h>
13911 _ACEOF
13912 if ac_fn_cxx_try_cpp "$LINENO"; then :
13913 # Broken: success on invalid input.
13914 continue
13915 else
13916 # Passes both tests.
13917 ac_preproc_ok=:
13918 break
13919 fi
13920 rm -f conftest.err conftest.i conftest.$ac_ext
13921
13922 done
13923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13924 rm -f conftest.i conftest.err conftest.$ac_ext
13925 if $ac_preproc_ok; then :
13926
13927 else
13928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13930 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13931 See \`config.log' for more details" "$LINENO" 5; }
13932 fi
13933
13934 ac_ext=cpp
13935 ac_cpp='$CXXCPP $CPPFLAGS'
13936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13939
13940 else
13941 _lt_caught_CXX_error=yes
13942 fi
13943
13944 ac_ext=cpp
13945 ac_cpp='$CXXCPP $CPPFLAGS'
13946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13949
13950 archive_cmds_need_lc_CXX=no
13951 allow_undefined_flag_CXX=
13952 always_export_symbols_CXX=no
13953 archive_expsym_cmds_CXX=
13954 compiler_needs_object_CXX=no
13955 export_dynamic_flag_spec_CXX=
13956 hardcode_direct_CXX=no
13957 hardcode_direct_absolute_CXX=no
13958 hardcode_libdir_flag_spec_CXX=
13959 hardcode_libdir_separator_CXX=
13960 hardcode_minus_L_CXX=no
13961 hardcode_shlibpath_var_CXX=unsupported
13962 hardcode_automatic_CXX=no
13963 inherit_rpath_CXX=no
13964 module_cmds_CXX=
13965 module_expsym_cmds_CXX=
13966 link_all_deplibs_CXX=unknown
13967 old_archive_cmds_CXX=$old_archive_cmds
13968 reload_flag_CXX=$reload_flag
13969 reload_cmds_CXX=$reload_cmds
13970 no_undefined_flag_CXX=
13971 whole_archive_flag_spec_CXX=
13972 enable_shared_with_static_runtimes_CXX=no
13973
13974 # Source file extension for C++ test sources.
13975 ac_ext=cpp
13976
13977 # Object file extension for compiled C++ test sources.
13978 objext=o
13979 objext_CXX=$objext
13980
13981 # No sense in running all these tests if we already determined that
13982 # the CXX compiler isn't working. Some variables (like enable_shared)
13983 # are currently assumed to apply to all compilers on this platform,
13984 # and will be corrupted by setting them based on a non-working compiler.
13985 if test yes != "$_lt_caught_CXX_error"; then
13986 # Code to be used in simple compile tests
13987 lt_simple_compile_test_code="int some_variable = 0;"
13988
13989 # Code to be used in simple link tests
13990 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13991
13992 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13993
13994
13995
13996
13997
13998
13999 # If no C compiler was specified, use CC.
14000 LTCC=${LTCC-"$CC"}
14001
14002 # If no C compiler flags were specified, use CFLAGS.
14003 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14004
14005 # Allow CC to be a program name with arguments.
14006 compiler=$CC
14007
14008
14009 # save warnings/boilerplate of simple test code
14010 ac_outfile=conftest.$ac_objext
14011 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14013 _lt_compiler_boilerplate=`cat conftest.err`
14014 $RM conftest*
14015
14016 ac_outfile=conftest.$ac_objext
14017 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14019 _lt_linker_boilerplate=`cat conftest.err`
14020 $RM -r conftest*
14021
14022
14023 # Allow CC to be a program name with arguments.
14024 lt_save_CC=$CC
14025 lt_save_CFLAGS=$CFLAGS
14026 lt_save_LD=$LD
14027 lt_save_GCC=$GCC
14028 GCC=$GXX
14029 lt_save_with_gnu_ld=$with_gnu_ld
14030 lt_save_path_LD=$lt_cv_path_LD
14031 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14032 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14033 else
14034 $as_unset lt_cv_prog_gnu_ld
14035 fi
14036 if test -n "${lt_cv_path_LDCXX+set}"; then
14037 lt_cv_path_LD=$lt_cv_path_LDCXX
14038 else
14039 $as_unset lt_cv_path_LD
14040 fi
14041 test -z "${LDCXX+set}" || LD=$LDCXX
14042 CC=${CXX-"c++"}
14043 CFLAGS=$CXXFLAGS
14044 compiler=$CC
14045 compiler_CXX=$CC
14046 func_cc_basename $compiler
14047 cc_basename=$func_cc_basename_result
14048
14049
14050 if test -n "$compiler"; then
14051 # We don't want -fno-exception when compiling C++ code, so set the
14052 # no_builtin_flag separately
14053 if test yes = "$GXX"; then
14054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14055 else
14056 lt_prog_compiler_no_builtin_flag_CXX=
14057 fi
14058
14059 if test yes = "$GXX"; then
14060 # Set up default GNU C++ configuration
14061
14062
14063
14064 # Check whether --with-gnu-ld was given.
14065 if test "${with_gnu_ld+set}" = set; then :
14066 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14067 else
14068 with_gnu_ld=no
14069 fi
14070
14071 ac_prog=ld
14072 if test yes = "$GCC"; then
14073 # Check if gcc -print-prog-name=ld gives a path.
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14075 $as_echo_n "checking for ld used by $CC... " >&6; }
14076 case $host in
14077 *-*-mingw*)
14078 # gcc leaves a trailing carriage return, which upsets mingw
14079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14080 *)
14081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14082 esac
14083 case $ac_prog in
14084 # Accept absolute paths.
14085 [\\/]* | ?:[\\/]*)
14086 re_direlt='/[^/][^/]*/\.\./'
14087 # Canonicalize the pathname of ld
14088 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14089 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14090 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14091 done
14092 test -z "$LD" && LD=$ac_prog
14093 ;;
14094 "")
14095 # If it fails, then pretend we aren't using GCC.
14096 ac_prog=ld
14097 ;;
14098 *)
14099 # If it is relative, then search for the first ld in PATH.
14100 with_gnu_ld=unknown
14101 ;;
14102 esac
14103 elif test yes = "$with_gnu_ld"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14105 $as_echo_n "checking for GNU ld... " >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14108 $as_echo_n "checking for non-GNU ld... " >&6; }
14109 fi
14110 if ${lt_cv_path_LD+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 if test -z "$LD"; then
14114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14115 for ac_dir in $PATH; do
14116 IFS=$lt_save_ifs
14117 test -z "$ac_dir" && ac_dir=.
14118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14119 lt_cv_path_LD=$ac_dir/$ac_prog
14120 # Check to see if the program is GNU ld. I'd rather use --version,
14121 # but apparently some variants of GNU ld only accept -v.
14122 # Break only if it was the GNU/non-GNU ld that we prefer.
14123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14124 *GNU* | *'with BFD'*)
14125 test no != "$with_gnu_ld" && break
14126 ;;
14127 *)
14128 test yes != "$with_gnu_ld" && break
14129 ;;
14130 esac
14131 fi
14132 done
14133 IFS=$lt_save_ifs
14134 else
14135 lt_cv_path_LD=$LD # Let the user override the test with a path.
14136 fi
14137 fi
14138
14139 LD=$lt_cv_path_LD
14140 if test -n "$LD"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14142 $as_echo "$LD" >&6; }
14143 else
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14146 fi
14147 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14149 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14150 if ${lt_cv_prog_gnu_ld+:} false; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14154 case `$LD -v 2>&1 </dev/null` in
14155 *GNU* | *'with BFD'*)
14156 lt_cv_prog_gnu_ld=yes
14157 ;;
14158 *)
14159 lt_cv_prog_gnu_ld=no
14160 ;;
14161 esac
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14164 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14165 with_gnu_ld=$lt_cv_prog_gnu_ld
14166
14167
14168
14169
14170
14171
14172
14173 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14174 # archiving commands below assume that GNU ld is being used.
14175 if test yes = "$with_gnu_ld"; then
14176 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14177 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'
14178
14179 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14180 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14181
14182 # If archive_cmds runs LD, not CC, wlarc should be empty
14183 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14184 # investigate it a little bit more. (MM)
14185 wlarc='$wl'
14186
14187 # ancient GNU ld didn't support --whole-archive et. al.
14188 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14189 $GREP 'no-whole-archive' > /dev/null; then
14190 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14191 else
14192 whole_archive_flag_spec_CXX=
14193 fi
14194 else
14195 with_gnu_ld=no
14196 wlarc=
14197
14198 # A generic and very simple default shared library creation
14199 # command for GNU C++ for the case where it uses the native
14200 # linker, instead of GNU ld. If possible, this setting should
14201 # overridden to take advantage of the native linker features on
14202 # the platform it is being used on.
14203 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14204 fi
14205
14206 # Commands to make compiler produce verbose output that lists
14207 # what "hidden" libraries, object files and flags are used when
14208 # linking a shared library.
14209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14210
14211 else
14212 GXX=no
14213 with_gnu_ld=no
14214 wlarc=
14215 fi
14216
14217 # PORTME: fill in a description of your system's C++ link characteristics
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14219 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14220 ld_shlibs_CXX=yes
14221 case $host_os in
14222 aix3*)
14223 # FIXME: insert proper C++ library support
14224 ld_shlibs_CXX=no
14225 ;;
14226 aix[4-9]*)
14227 if test ia64 = "$host_cpu"; then
14228 # On IA64, the linker does run time linking by default, so we don't
14229 # have to do anything special.
14230 aix_use_runtimelinking=no
14231 exp_sym_flag='-Bexport'
14232 no_entry_flag=
14233 else
14234 aix_use_runtimelinking=no
14235
14236 # Test if we are trying to use run time linking or normal
14237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14238 # have runtime linking enabled, and use it for executables.
14239 # For shared libraries, we enable/disable runtime linking
14240 # depending on the kind of the shared library created -
14241 # when "with_aix_soname,aix_use_runtimelinking" is:
14242 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14243 # "aix,yes" lib.so shared, rtl:yes, for executables
14244 # lib.a static archive
14245 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14246 # lib.a(lib.so.V) shared, rtl:no, for executables
14247 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14248 # lib.a(lib.so.V) shared, rtl:no
14249 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14250 # lib.a static archive
14251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14252 for ld_flag in $LDFLAGS; do
14253 case $ld_flag in
14254 *-brtl*)
14255 aix_use_runtimelinking=yes
14256 break
14257 ;;
14258 esac
14259 done
14260 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14261 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14262 # so we don't have lib.a shared libs to link our executables.
14263 # We have to force runtime linking in this case.
14264 aix_use_runtimelinking=yes
14265 LDFLAGS="$LDFLAGS -Wl,-brtl"
14266 fi
14267 ;;
14268 esac
14269
14270 exp_sym_flag='-bexport'
14271 no_entry_flag='-bnoentry'
14272 fi
14273
14274 # When large executables or shared objects are built, AIX ld can
14275 # have problems creating the table of contents. If linking a library
14276 # or program results in "error TOC overflow" add -mminimal-toc to
14277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14279
14280 archive_cmds_CXX=''
14281 hardcode_direct_CXX=yes
14282 hardcode_direct_absolute_CXX=yes
14283 hardcode_libdir_separator_CXX=':'
14284 link_all_deplibs_CXX=yes
14285 file_list_spec_CXX='$wl-f,'
14286 case $with_aix_soname,$aix_use_runtimelinking in
14287 aix,*) ;; # no import file
14288 svr4,* | *,yes) # use import file
14289 # The Import File defines what to hardcode.
14290 hardcode_direct_CXX=no
14291 hardcode_direct_absolute_CXX=no
14292 ;;
14293 esac
14294
14295 if test yes = "$GXX"; then
14296 case $host_os in aix4.[012]|aix4.[012].*)
14297 # We only want to do this on AIX 4.2 and lower, the check
14298 # below for broken collect2 doesn't work under 4.3+
14299 collect2name=`$CC -print-prog-name=collect2`
14300 if test -f "$collect2name" &&
14301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14302 then
14303 # We have reworked collect2
14304 :
14305 else
14306 # We have old collect2
14307 hardcode_direct_CXX=unsupported
14308 # It fails to find uninstalled libraries when the uninstalled
14309 # path is not listed in the libpath. Setting hardcode_minus_L
14310 # to unsupported forces relinking
14311 hardcode_minus_L_CXX=yes
14312 hardcode_libdir_flag_spec_CXX='-L$libdir'
14313 hardcode_libdir_separator_CXX=
14314 fi
14315 esac
14316 shared_flag='-shared'
14317 if test yes = "$aix_use_runtimelinking"; then
14318 shared_flag=$shared_flag' $wl-G'
14319 fi
14320 # Need to ensure runtime linking is disabled for the traditional
14321 # shared library, or the linker may eventually find shared libraries
14322 # /with/ Import File - we do not want to mix them.
14323 shared_flag_aix='-shared'
14324 shared_flag_svr4='-shared $wl-G'
14325 else
14326 # not using gcc
14327 if test ia64 = "$host_cpu"; then
14328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14329 # chokes on -Wl,-G. The following line is correct:
14330 shared_flag='-G'
14331 else
14332 if test yes = "$aix_use_runtimelinking"; then
14333 shared_flag='$wl-G'
14334 else
14335 shared_flag='$wl-bM:SRE'
14336 fi
14337 shared_flag_aix='$wl-bM:SRE'
14338 shared_flag_svr4='$wl-G'
14339 fi
14340 fi
14341
14342 export_dynamic_flag_spec_CXX='$wl-bexpall'
14343 # It seems that -bexpall does not export symbols beginning with
14344 # underscore (_), so it is better to generate a list of symbols to
14345 # export.
14346 always_export_symbols_CXX=yes
14347 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14348 # Warning - without using the other runtime loading flags (-brtl),
14349 # -berok will link without error, but may produce a broken library.
14350 # The "-G" linker flag allows undefined symbols.
14351 no_undefined_flag_CXX='-bernotok'
14352 # Determine the default libpath from the value encoded in an empty
14353 # executable.
14354 if test set = "${lt_cv_aix_libpath+set}"; then
14355 aix_libpath=$lt_cv_aix_libpath
14356 else
14357 if ${lt_cv_aix_libpath__CXX+:} false; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362
14363 int
14364 main ()
14365 {
14366
14367 ;
14368 return 0;
14369 }
14370 _ACEOF
14371 if ac_fn_cxx_try_link "$LINENO"; then :
14372
14373 lt_aix_libpath_sed='
14374 /Import File Strings/,/^$/ {
14375 /^0/ {
14376 s/^0 *\([^ ]*\) *$/\1/
14377 p
14378 }
14379 }'
14380 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14381 # Check for a 64-bit object if we didn't find anything.
14382 if test -z "$lt_cv_aix_libpath__CXX"; then
14383 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14384 fi
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext conftest.$ac_ext
14388 if test -z "$lt_cv_aix_libpath__CXX"; then
14389 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14390 fi
14391
14392 fi
14393
14394 aix_libpath=$lt_cv_aix_libpath__CXX
14395 fi
14396
14397 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14398
14399 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
14400 else
14401 if test ia64 = "$host_cpu"; then
14402 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14403 allow_undefined_flag_CXX="-z nodefs"
14404 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"
14405 else
14406 # Determine the default libpath from the value encoded in an
14407 # empty executable.
14408 if test set = "${lt_cv_aix_libpath+set}"; then
14409 aix_libpath=$lt_cv_aix_libpath
14410 else
14411 if ${lt_cv_aix_libpath__CXX+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 int
14418 main ()
14419 {
14420
14421 ;
14422 return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_cxx_try_link "$LINENO"; then :
14426
14427 lt_aix_libpath_sed='
14428 /Import File Strings/,/^$/ {
14429 /^0/ {
14430 s/^0 *\([^ ]*\) *$/\1/
14431 p
14432 }
14433 }'
14434 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14435 # Check for a 64-bit object if we didn't find anything.
14436 if test -z "$lt_cv_aix_libpath__CXX"; then
14437 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14438 fi
14439 fi
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 if test -z "$lt_cv_aix_libpath__CXX"; then
14443 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14444 fi
14445
14446 fi
14447
14448 aix_libpath=$lt_cv_aix_libpath__CXX
14449 fi
14450
14451 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14452 # Warning - without using the other run time loading flags,
14453 # -berok will link without error, but may produce a broken library.
14454 no_undefined_flag_CXX=' $wl-bernotok'
14455 allow_undefined_flag_CXX=' $wl-berok'
14456 if test yes = "$with_gnu_ld"; then
14457 # We only use this code for GNU lds that support --whole-archive.
14458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14459 else
14460 # Exported symbols can be pulled into shared objects from archives
14461 whole_archive_flag_spec_CXX='$convenience'
14462 fi
14463 archive_cmds_need_lc_CXX=yes
14464 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14465 # -brtl affects multiple linker settings, -berok does not and is overridden later
14466 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14467 if test svr4 != "$with_aix_soname"; then
14468 # This is similar to how AIX traditionally builds its shared
14469 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14470 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'
14471 fi
14472 if test aix != "$with_aix_soname"; then
14473 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'
14474 else
14475 # used by -dlpreopen to get the symbols
14476 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14477 fi
14478 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14479 fi
14480 fi
14481 ;;
14482
14483 beos*)
14484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14485 allow_undefined_flag_CXX=unsupported
14486 # Joseph Beckenbach <[email protected]> says some releases of gcc
14487 # support --undefined. This deserves some investigation. FIXME
14488 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14489 else
14490 ld_shlibs_CXX=no
14491 fi
14492 ;;
14493
14494 chorus*)
14495 case $cc_basename in
14496 *)
14497 # FIXME: insert proper C++ library support
14498 ld_shlibs_CXX=no
14499 ;;
14500 esac
14501 ;;
14502
14503 cygwin* | mingw* | pw32* | cegcc*)
14504 case $GXX,$cc_basename in
14505 ,cl* | no,cl*)
14506 # Native MSVC
14507 # hardcode_libdir_flag_spec is actually meaningless, as there is
14508 # no search path for DLLs.
14509 hardcode_libdir_flag_spec_CXX=' '
14510 allow_undefined_flag_CXX=unsupported
14511 always_export_symbols_CXX=yes
14512 file_list_spec_CXX='@'
14513 # Tell ltmain to make .lib files, not .a files.
14514 libext=lib
14515 # Tell ltmain to make .dll files, not .so files.
14516 shrext_cmds=.dll
14517 # FIXME: Setting linknames here is a bad hack.
14518 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14519 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14520 cp "$export_symbols" "$output_objdir/$soname.def";
14521 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14522 else
14523 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14524 fi~
14525 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14526 linknames='
14527 # The linker will not automatically build a static lib if we build a DLL.
14528 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14529 enable_shared_with_static_runtimes_CXX=yes
14530 # Don't use ranlib
14531 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14532 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14533 lt_tool_outputfile="@TOOL_OUTPUT@"~
14534 case $lt_outputfile in
14535 *.exe|*.EXE) ;;
14536 *)
14537 lt_outputfile=$lt_outputfile.exe
14538 lt_tool_outputfile=$lt_tool_outputfile.exe
14539 ;;
14540 esac~
14541 func_to_tool_file "$lt_outputfile"~
14542 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14543 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14544 $RM "$lt_outputfile.manifest";
14545 fi'
14546 ;;
14547 *)
14548 # g++
14549 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14550 # as there is no search path for DLLs.
14551 hardcode_libdir_flag_spec_CXX='-L$libdir'
14552 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14553 allow_undefined_flag_CXX=unsupported
14554 always_export_symbols_CXX=no
14555 enable_shared_with_static_runtimes_CXX=yes
14556
14557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14558 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'
14559 # If the export-symbols file already is a .def file, use it as
14560 # is; otherwise, prepend EXPORTS...
14561 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14562 cp $export_symbols $output_objdir/$soname.def;
14563 else
14564 echo EXPORTS > $output_objdir/$soname.def;
14565 cat $export_symbols >> $output_objdir/$soname.def;
14566 fi~
14567 $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'
14568 else
14569 ld_shlibs_CXX=no
14570 fi
14571 ;;
14572 esac
14573 ;;
14574 darwin* | rhapsody*)
14575
14576
14577 archive_cmds_need_lc_CXX=no
14578 hardcode_direct_CXX=no
14579 hardcode_automatic_CXX=yes
14580 hardcode_shlibpath_var_CXX=unsupported
14581 if test yes = "$lt_cv_ld_force_load"; then
14582 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\"`'
14583
14584 else
14585 whole_archive_flag_spec_CXX=''
14586 fi
14587 link_all_deplibs_CXX=yes
14588 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14589 case $cc_basename in
14590 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14591 *) _lt_dar_can_shared=$GCC ;;
14592 esac
14593 if test yes = "$_lt_dar_can_shared"; then
14594 output_verbose_link_cmd=func_echo_all
14595 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"
14596 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14597 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"
14598 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"
14599 if test yes != "$lt_cv_apple_cc_single_mod"; then
14600 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"
14601 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"
14602 fi
14603
14604 else
14605 ld_shlibs_CXX=no
14606 fi
14607
14608 ;;
14609
14610 os2*)
14611 hardcode_libdir_flag_spec_CXX='-L$libdir'
14612 hardcode_minus_L_CXX=yes
14613 allow_undefined_flag_CXX=unsupported
14614 shrext_cmds=.dll
14615 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14618 $ECHO EXPORTS >> $output_objdir/$libname.def~
14619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14621 emximp -o $lib $output_objdir/$libname.def'
14622 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14625 $ECHO EXPORTS >> $output_objdir/$libname.def~
14626 prefix_cmds="$SED"~
14627 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14628 prefix_cmds="$prefix_cmds -e 1d";
14629 fi~
14630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14633 emximp -o $lib $output_objdir/$libname.def'
14634 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14635 enable_shared_with_static_runtimes_CXX=yes
14636 ;;
14637
14638 dgux*)
14639 case $cc_basename in
14640 ec++*)
14641 # FIXME: insert proper C++ library support
14642 ld_shlibs_CXX=no
14643 ;;
14644 ghcx*)
14645 # Green Hills C++ Compiler
14646 # FIXME: insert proper C++ library support
14647 ld_shlibs_CXX=no
14648 ;;
14649 *)
14650 # FIXME: insert proper C++ library support
14651 ld_shlibs_CXX=no
14652 ;;
14653 esac
14654 ;;
14655
14656 freebsd2.*)
14657 # C++ shared libraries reported to be fairly broken before
14658 # switch to ELF
14659 ld_shlibs_CXX=no
14660 ;;
14661
14662 freebsd-elf*)
14663 archive_cmds_need_lc_CXX=no
14664 ;;
14665
14666 freebsd* | dragonfly*)
14667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14668 # conventions
14669 ld_shlibs_CXX=yes
14670 ;;
14671
14672 haiku*)
14673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14674 link_all_deplibs_CXX=yes
14675 ;;
14676
14677 hpux9*)
14678 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14679 hardcode_libdir_separator_CXX=:
14680 export_dynamic_flag_spec_CXX='$wl-E'
14681 hardcode_direct_CXX=yes
14682 hardcode_minus_L_CXX=yes # Not in the search PATH,
14683 # but as the default
14684 # location of the library.
14685
14686 case $cc_basename in
14687 CC*)
14688 # FIXME: insert proper C++ library support
14689 ld_shlibs_CXX=no
14690 ;;
14691 aCC*)
14692 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'
14693 # Commands to make compiler produce verbose output that lists
14694 # what "hidden" libraries, object files and flags are used when
14695 # linking a shared library.
14696 #
14697 # There doesn't appear to be a way to prevent this compiler from
14698 # explicitly linking system object files so we need to strip them
14699 # from the output so that they don't get included in the library
14700 # dependencies.
14701 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"'
14702 ;;
14703 *)
14704 if test yes = "$GXX"; then
14705 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'
14706 else
14707 # FIXME: insert proper C++ library support
14708 ld_shlibs_CXX=no
14709 fi
14710 ;;
14711 esac
14712 ;;
14713
14714 hpux10*|hpux11*)
14715 if test no = "$with_gnu_ld"; then
14716 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14717 hardcode_libdir_separator_CXX=:
14718
14719 case $host_cpu in
14720 hppa*64*|ia64*)
14721 ;;
14722 *)
14723 export_dynamic_flag_spec_CXX='$wl-E'
14724 ;;
14725 esac
14726 fi
14727 case $host_cpu in
14728 hppa*64*|ia64*)
14729 hardcode_direct_CXX=no
14730 hardcode_shlibpath_var_CXX=no
14731 ;;
14732 *)
14733 hardcode_direct_CXX=yes
14734 hardcode_direct_absolute_CXX=yes
14735 hardcode_minus_L_CXX=yes # Not in the search PATH,
14736 # but as the default
14737 # location of the library.
14738 ;;
14739 esac
14740
14741 case $cc_basename in
14742 CC*)
14743 # FIXME: insert proper C++ library support
14744 ld_shlibs_CXX=no
14745 ;;
14746 aCC*)
14747 case $host_cpu in
14748 hppa*64*)
14749 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14750 ;;
14751 ia64*)
14752 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14753 ;;
14754 *)
14755 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14756 ;;
14757 esac
14758 # Commands to make compiler produce verbose output that lists
14759 # what "hidden" libraries, object files and flags are used when
14760 # linking a shared library.
14761 #
14762 # There doesn't appear to be a way to prevent this compiler from
14763 # explicitly linking system object files so we need to strip them
14764 # from the output so that they don't get included in the library
14765 # dependencies.
14766 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"'
14767 ;;
14768 *)
14769 if test yes = "$GXX"; then
14770 if test no = "$with_gnu_ld"; then
14771 case $host_cpu in
14772 hppa*64*)
14773 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14774 ;;
14775 ia64*)
14776 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 ;;
14778 *)
14779 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'
14780 ;;
14781 esac
14782 fi
14783 else
14784 # FIXME: insert proper C++ library support
14785 ld_shlibs_CXX=no
14786 fi
14787 ;;
14788 esac
14789 ;;
14790
14791 interix[3-9]*)
14792 hardcode_direct_CXX=no
14793 hardcode_shlibpath_var_CXX=no
14794 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14795 export_dynamic_flag_spec_CXX='$wl-E'
14796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14797 # Instead, shared libraries are loaded at an image base (0x10000000 by
14798 # default) and relocated if they conflict, which is a slow very memory
14799 # consuming and fragmenting process. To avoid this, we pick a random,
14800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14802 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'
14803 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'
14804 ;;
14805 irix5* | irix6*)
14806 case $cc_basename in
14807 CC*)
14808 # SGI C++
14809 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'
14810
14811 # Archives containing C++ object files must be created using
14812 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14813 # necessary to make sure instantiated templates are included
14814 # in the archive.
14815 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14816 ;;
14817 *)
14818 if test yes = "$GXX"; then
14819 if test no = "$with_gnu_ld"; then
14820 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'
14821 else
14822 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'
14823 fi
14824 fi
14825 link_all_deplibs_CXX=yes
14826 ;;
14827 esac
14828 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14829 hardcode_libdir_separator_CXX=:
14830 inherit_rpath_CXX=yes
14831 ;;
14832
14833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14834 case $cc_basename in
14835 KCC*)
14836 # Kuck and Associates, Inc. (KAI) C++ Compiler
14837
14838 # KCC will only create a shared library if the output file
14839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14840 # to its proper name (with version) after linking.
14841 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'
14842 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'
14843 # Commands to make compiler produce verbose output that lists
14844 # what "hidden" libraries, object files and flags are used when
14845 # linking a shared library.
14846 #
14847 # There doesn't appear to be a way to prevent this compiler from
14848 # explicitly linking system object files so we need to strip them
14849 # from the output so that they don't get included in the library
14850 # dependencies.
14851 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"'
14852
14853 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14854 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14855
14856 # Archives containing C++ object files must be created using
14857 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14859 ;;
14860 icpc* | ecpc* )
14861 # Intel C++
14862 with_gnu_ld=yes
14863 # version 8.0 and above of icpc choke on multiply defined symbols
14864 # if we add $predep_objects and $postdep_objects, however 7.1 and
14865 # earlier do not add the objects themselves.
14866 case `$CC -V 2>&1` in
14867 *"Version 7."*)
14868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14869 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'
14870 ;;
14871 *) # Version 8.0 or newer
14872 tmp_idyn=
14873 case $host_cpu in
14874 ia64*) tmp_idyn=' -i_dynamic';;
14875 esac
14876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14877 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'
14878 ;;
14879 esac
14880 archive_cmds_need_lc_CXX=no
14881 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14882 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14883 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14884 ;;
14885 pgCC* | pgcpp*)
14886 # Portland Group C++ compiler
14887 case `$CC -V` in
14888 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14889 prelink_cmds_CXX='tpldir=Template.dir~
14890 rm -rf $tpldir~
14891 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14892 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14893 old_archive_cmds_CXX='tpldir=Template.dir~
14894 rm -rf $tpldir~
14895 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14896 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14897 $RANLIB $oldlib'
14898 archive_cmds_CXX='tpldir=Template.dir~
14899 rm -rf $tpldir~
14900 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14901 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14902 archive_expsym_cmds_CXX='tpldir=Template.dir~
14903 rm -rf $tpldir~
14904 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14905 $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'
14906 ;;
14907 *) # Version 6 and above use weak symbols
14908 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14909 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'
14910 ;;
14911 esac
14912
14913 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14914 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14915 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'
14916 ;;
14917 cxx*)
14918 # Compaq C++
14919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14920 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'
14921
14922 runpath_var=LD_RUN_PATH
14923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14924 hardcode_libdir_separator_CXX=:
14925
14926 # Commands to make compiler produce verbose output that lists
14927 # what "hidden" libraries, object files and flags are used when
14928 # linking a shared library.
14929 #
14930 # There doesn't appear to be a way to prevent this compiler from
14931 # explicitly linking system object files so we need to strip them
14932 # from the output so that they don't get included in the library
14933 # dependencies.
14934 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'
14935 ;;
14936 xl* | mpixl* | bgxl*)
14937 # IBM XL 8.0 on PPC, with GNU ld
14938 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14939 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14940 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14941 if test yes = "$supports_anon_versioning"; then
14942 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14944 echo "local: *; };" >> $output_objdir/$libname.ver~
14945 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14946 fi
14947 ;;
14948 *)
14949 case `$CC -V 2>&1 | sed 5q` in
14950 *Sun\ C*)
14951 # Sun C++ 5.9
14952 no_undefined_flag_CXX=' -zdefs'
14953 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14954 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'
14955 hardcode_libdir_flag_spec_CXX='-R$libdir'
14956 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'
14957 compiler_needs_object_CXX=yes
14958
14959 # Not sure whether something based on
14960 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14961 # would be better.
14962 output_verbose_link_cmd='func_echo_all'
14963
14964 # Archives containing C++ object files must be created using
14965 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14966 # necessary to make sure instantiated templates are included
14967 # in the archive.
14968 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14969 ;;
14970 esac
14971 ;;
14972 esac
14973 ;;
14974
14975 lynxos*)
14976 # FIXME: insert proper C++ library support
14977 ld_shlibs_CXX=no
14978 ;;
14979
14980 m88k*)
14981 # FIXME: insert proper C++ library support
14982 ld_shlibs_CXX=no
14983 ;;
14984
14985 mvs*)
14986 case $cc_basename in
14987 cxx*)
14988 # FIXME: insert proper C++ library support
14989 ld_shlibs_CXX=no
14990 ;;
14991 *)
14992 # FIXME: insert proper C++ library support
14993 ld_shlibs_CXX=no
14994 ;;
14995 esac
14996 ;;
14997
14998 netbsd*)
14999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15000 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15001 wlarc=
15002 hardcode_libdir_flag_spec_CXX='-R$libdir'
15003 hardcode_direct_CXX=yes
15004 hardcode_shlibpath_var_CXX=no
15005 fi
15006 # Workaround some broken pre-1.5 toolchains
15007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15008 ;;
15009
15010 *nto* | *qnx*)
15011 ld_shlibs_CXX=yes
15012 ;;
15013
15014 openbsd* | bitrig*)
15015 if test -f /usr/libexec/ld.so; then
15016 hardcode_direct_CXX=yes
15017 hardcode_shlibpath_var_CXX=no
15018 hardcode_direct_absolute_CXX=yes
15019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15020 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15023 export_dynamic_flag_spec_CXX='$wl-E'
15024 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15025 fi
15026 output_verbose_link_cmd=func_echo_all
15027 else
15028 ld_shlibs_CXX=no
15029 fi
15030 ;;
15031
15032 osf3* | osf4* | osf5*)
15033 case $cc_basename in
15034 KCC*)
15035 # Kuck and Associates, Inc. (KAI) C++ Compiler
15036
15037 # KCC will only create a shared library if the output file
15038 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15039 # to its proper name (with version) after linking.
15040 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'
15041
15042 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15043 hardcode_libdir_separator_CXX=:
15044
15045 # Archives containing C++ object files must be created using
15046 # the KAI C++ compiler.
15047 case $host in
15048 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15049 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15050 esac
15051 ;;
15052 RCC*)
15053 # Rational C++ 2.4.1
15054 # FIXME: insert proper C++ library support
15055 ld_shlibs_CXX=no
15056 ;;
15057 cxx*)
15058 case $host in
15059 osf3*)
15060 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15061 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'
15062 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15063 ;;
15064 *)
15065 allow_undefined_flag_CXX=' -expect_unresolved \*'
15066 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'
15067 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15068 echo "-hidden">> $lib.exp~
15069 $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~
15070 $RM $lib.exp'
15071 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15072 ;;
15073 esac
15074
15075 hardcode_libdir_separator_CXX=:
15076
15077 # Commands to make compiler produce verbose output that lists
15078 # what "hidden" libraries, object files and flags are used when
15079 # linking a shared library.
15080 #
15081 # There doesn't appear to be a way to prevent this compiler from
15082 # explicitly linking system object files so we need to strip them
15083 # from the output so that they don't get included in the library
15084 # dependencies.
15085 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"'
15086 ;;
15087 *)
15088 if test yes,no = "$GXX,$with_gnu_ld"; then
15089 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15090 case $host in
15091 osf3*)
15092 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'
15093 ;;
15094 *)
15095 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'
15096 ;;
15097 esac
15098
15099 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15100 hardcode_libdir_separator_CXX=:
15101
15102 # Commands to make compiler produce verbose output that lists
15103 # what "hidden" libraries, object files and flags are used when
15104 # linking a shared library.
15105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15106
15107 else
15108 # FIXME: insert proper C++ library support
15109 ld_shlibs_CXX=no
15110 fi
15111 ;;
15112 esac
15113 ;;
15114
15115 psos*)
15116 # FIXME: insert proper C++ library support
15117 ld_shlibs_CXX=no
15118 ;;
15119
15120 sunos4*)
15121 case $cc_basename in
15122 CC*)
15123 # Sun C++ 4.x
15124 # FIXME: insert proper C++ library support
15125 ld_shlibs_CXX=no
15126 ;;
15127 lcc*)
15128 # Lucid
15129 # FIXME: insert proper C++ library support
15130 ld_shlibs_CXX=no
15131 ;;
15132 *)
15133 # FIXME: insert proper C++ library support
15134 ld_shlibs_CXX=no
15135 ;;
15136 esac
15137 ;;
15138
15139 solaris*)
15140 case $cc_basename in
15141 CC* | sunCC*)
15142 # Sun C++ 4.2, 5.x and Centerline C++
15143 archive_cmds_need_lc_CXX=yes
15144 no_undefined_flag_CXX=' -zdefs'
15145 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15146 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15147 $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'
15148
15149 hardcode_libdir_flag_spec_CXX='-R$libdir'
15150 hardcode_shlibpath_var_CXX=no
15151 case $host_os in
15152 solaris2.[0-5] | solaris2.[0-5].*) ;;
15153 *)
15154 # The compiler driver will combine and reorder linker options,
15155 # but understands '-z linker_flag'.
15156 # Supported since Solaris 2.6 (maybe 2.5.1?)
15157 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15158 ;;
15159 esac
15160 link_all_deplibs_CXX=yes
15161
15162 output_verbose_link_cmd='func_echo_all'
15163
15164 # Archives containing C++ object files must be created using
15165 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15166 # necessary to make sure instantiated templates are included
15167 # in the archive.
15168 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15169 ;;
15170 gcx*)
15171 # Green Hills C++ Compiler
15172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15173
15174 # The C++ compiler must be used to create the archive.
15175 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15176 ;;
15177 *)
15178 # GNU C++ compiler with Solaris linker
15179 if test yes,no = "$GXX,$with_gnu_ld"; then
15180 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15181 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15182 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15183 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15184 $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'
15185
15186 # Commands to make compiler produce verbose output that lists
15187 # what "hidden" libraries, object files and flags are used when
15188 # linking a shared library.
15189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15190 else
15191 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15192 # platform.
15193 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15194 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15195 $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'
15196
15197 # Commands to make compiler produce verbose output that lists
15198 # what "hidden" libraries, object files and flags are used when
15199 # linking a shared library.
15200 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15201 fi
15202
15203 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15204 case $host_os in
15205 solaris2.[0-5] | solaris2.[0-5].*) ;;
15206 *)
15207 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15208 ;;
15209 esac
15210 fi
15211 ;;
15212 esac
15213 ;;
15214
15215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15216 no_undefined_flag_CXX='$wl-z,text'
15217 archive_cmds_need_lc_CXX=no
15218 hardcode_shlibpath_var_CXX=no
15219 runpath_var='LD_RUN_PATH'
15220
15221 case $cc_basename in
15222 CC*)
15223 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 ;;
15226 *)
15227 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229 ;;
15230 esac
15231 ;;
15232
15233 sysv5* | sco3.2v5* | sco5v6*)
15234 # Note: We CANNOT use -z defs as we might desire, because we do not
15235 # link with -lc, and that would cause any symbols used from libc to
15236 # always be unresolved, which means just about no library would
15237 # ever link correctly. If we're not using GNU ld we use -z text
15238 # though, which does catch some bad symbols but isn't as heavy-handed
15239 # as -z defs.
15240 no_undefined_flag_CXX='$wl-z,text'
15241 allow_undefined_flag_CXX='$wl-z,nodefs'
15242 archive_cmds_need_lc_CXX=no
15243 hardcode_shlibpath_var_CXX=no
15244 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15245 hardcode_libdir_separator_CXX=':'
15246 link_all_deplibs_CXX=yes
15247 export_dynamic_flag_spec_CXX='$wl-Bexport'
15248 runpath_var='LD_RUN_PATH'
15249
15250 case $cc_basename in
15251 CC*)
15252 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15254 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15255 '"$old_archive_cmds_CXX"
15256 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15257 '"$reload_cmds_CXX"
15258 ;;
15259 *)
15260 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262 ;;
15263 esac
15264 ;;
15265
15266 tandem*)
15267 case $cc_basename in
15268 NCC*)
15269 # NonStop-UX NCC 3.20
15270 # FIXME: insert proper C++ library support
15271 ld_shlibs_CXX=no
15272 ;;
15273 *)
15274 # FIXME: insert proper C++ library support
15275 ld_shlibs_CXX=no
15276 ;;
15277 esac
15278 ;;
15279
15280 vxworks*)
15281 # FIXME: insert proper C++ library support
15282 ld_shlibs_CXX=no
15283 ;;
15284
15285 *)
15286 # FIXME: insert proper C++ library support
15287 ld_shlibs_CXX=no
15288 ;;
15289 esac
15290
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15292 $as_echo "$ld_shlibs_CXX" >&6; }
15293 test no = "$ld_shlibs_CXX" && can_build_shared=no
15294
15295 GCC_CXX=$GXX
15296 LD_CXX=$LD
15297
15298 ## CAVEAT EMPTOR:
15299 ## There is no encapsulation within the following macros, do not change
15300 ## the running order or otherwise move them around unless you know exactly
15301 ## what you are doing...
15302 # Dependencies to place before and after the object being linked:
15303 predep_objects_CXX=
15304 postdep_objects_CXX=
15305 predeps_CXX=
15306 postdeps_CXX=
15307 compiler_lib_search_path_CXX=
15308
15309 cat > conftest.$ac_ext <<_LT_EOF
15310 class Foo
15311 {
15312 public:
15313 Foo (void) { a = 0; }
15314 private:
15315 int a;
15316 };
15317 _LT_EOF
15318
15319
15320 _lt_libdeps_save_CFLAGS=$CFLAGS
15321 case "$CC $CFLAGS " in #(
15322 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15323 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15324 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15325 esac
15326
15327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15328 (eval $ac_compile) 2>&5
15329 ac_status=$?
15330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15331 test $ac_status = 0; }; then
15332 # Parse the compiler output and extract the necessary
15333 # objects, libraries and library flags.
15334
15335 # Sentinel used to keep track of whether or not we are before
15336 # the conftest object file.
15337 pre_test_object_deps_done=no
15338
15339 for p in `eval "$output_verbose_link_cmd"`; do
15340 case $prev$p in
15341
15342 -L* | -R* | -l*)
15343 # Some compilers place space between "-{L,R}" and the path.
15344 # Remove the space.
15345 if test x-L = "$p" ||
15346 test x-R = "$p"; then
15347 prev=$p
15348 continue
15349 fi
15350
15351 # Expand the sysroot to ease extracting the directories later.
15352 if test -z "$prev"; then
15353 case $p in
15354 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15355 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15356 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15357 esac
15358 fi
15359 case $p in
15360 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15361 esac
15362 if test no = "$pre_test_object_deps_done"; then
15363 case $prev in
15364 -L | -R)
15365 # Internal compiler library paths should come after those
15366 # provided the user. The postdeps already come after the
15367 # user supplied libs so there is no need to process them.
15368 if test -z "$compiler_lib_search_path_CXX"; then
15369 compiler_lib_search_path_CXX=$prev$p
15370 else
15371 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15372 fi
15373 ;;
15374 # The "-l" case would never come before the object being
15375 # linked, so don't bother handling this case.
15376 esac
15377 else
15378 if test -z "$postdeps_CXX"; then
15379 postdeps_CXX=$prev$p
15380 else
15381 postdeps_CXX="${postdeps_CXX} $prev$p"
15382 fi
15383 fi
15384 prev=
15385 ;;
15386
15387 *.lto.$objext) ;; # Ignore GCC LTO objects
15388 *.$objext)
15389 # This assumes that the test object file only shows up
15390 # once in the compiler output.
15391 if test "$p" = "conftest.$objext"; then
15392 pre_test_object_deps_done=yes
15393 continue
15394 fi
15395
15396 if test no = "$pre_test_object_deps_done"; then
15397 if test -z "$predep_objects_CXX"; then
15398 predep_objects_CXX=$p
15399 else
15400 predep_objects_CXX="$predep_objects_CXX $p"
15401 fi
15402 else
15403 if test -z "$postdep_objects_CXX"; then
15404 postdep_objects_CXX=$p
15405 else
15406 postdep_objects_CXX="$postdep_objects_CXX $p"
15407 fi
15408 fi
15409 ;;
15410
15411 *) ;; # Ignore the rest.
15412
15413 esac
15414 done
15415
15416 # Clean up.
15417 rm -f a.out a.exe
15418 else
15419 echo "libtool.m4: error: problem compiling CXX test program"
15420 fi
15421
15422 $RM -f confest.$objext
15423 CFLAGS=$_lt_libdeps_save_CFLAGS
15424
15425 # PORTME: override above test on systems where it is broken
15426 case $host_os in
15427 interix[3-9]*)
15428 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15429 # hack all around it, let's just trust "g++" to DTRT.
15430 predep_objects_CXX=
15431 postdep_objects_CXX=
15432 postdeps_CXX=
15433 ;;
15434 esac
15435
15436
15437 case " $postdeps_CXX " in
15438 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15439 esac
15440 compiler_lib_search_dirs_CXX=
15441 if test -n "${compiler_lib_search_path_CXX}"; then
15442 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15443 fi
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475 lt_prog_compiler_wl_CXX=
15476 lt_prog_compiler_pic_CXX=
15477 lt_prog_compiler_static_CXX=
15478
15479
15480 # C++ specific cases for pic, static, wl, etc.
15481 if test yes = "$GXX"; then
15482 lt_prog_compiler_wl_CXX='-Wl,'
15483 lt_prog_compiler_static_CXX='-static'
15484
15485 case $host_os in
15486 aix*)
15487 # All AIX code is PIC.
15488 if test ia64 = "$host_cpu"; then
15489 # AIX 5 now supports IA64 processor
15490 lt_prog_compiler_static_CXX='-Bstatic'
15491 fi
15492 lt_prog_compiler_pic_CXX='-fPIC'
15493 ;;
15494
15495 amigaos*)
15496 case $host_cpu in
15497 powerpc)
15498 # see comment about AmigaOS4 .so support
15499 lt_prog_compiler_pic_CXX='-fPIC'
15500 ;;
15501 m68k)
15502 # FIXME: we need at least 68020 code to build shared libraries, but
15503 # adding the '-m68020' flag to GCC prevents building anything better,
15504 # like '-m68040'.
15505 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15506 ;;
15507 esac
15508 ;;
15509
15510 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15511 # PIC is the default for these OSes.
15512 ;;
15513 mingw* | cygwin* | os2* | pw32* | cegcc*)
15514 # This hack is so that the source file can tell whether it is being
15515 # built for inclusion in a dll (and should export symbols for example).
15516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15517 # (--disable-auto-import) libraries
15518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15519 case $host_os in
15520 os2*)
15521 lt_prog_compiler_static_CXX='$wl-static'
15522 ;;
15523 esac
15524 ;;
15525 darwin* | rhapsody*)
15526 # PIC is the default on this platform
15527 # Common symbols not allowed in MH_DYLIB files
15528 lt_prog_compiler_pic_CXX='-fno-common'
15529 ;;
15530 *djgpp*)
15531 # DJGPP does not support shared libraries at all
15532 lt_prog_compiler_pic_CXX=
15533 ;;
15534 haiku*)
15535 # PIC is the default for Haiku.
15536 # The "-static" flag exists, but is broken.
15537 lt_prog_compiler_static_CXX=
15538 ;;
15539 interix[3-9]*)
15540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15541 # Instead, we relocate shared libraries at runtime.
15542 ;;
15543 sysv4*MP*)
15544 if test -d /usr/nec; then
15545 lt_prog_compiler_pic_CXX=-Kconform_pic
15546 fi
15547 ;;
15548 hpux*)
15549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15551 # sets the default TLS model and affects inlining.
15552 case $host_cpu in
15553 hppa*64*)
15554 ;;
15555 *)
15556 lt_prog_compiler_pic_CXX='-fPIC'
15557 ;;
15558 esac
15559 ;;
15560 *qnx* | *nto*)
15561 # QNX uses GNU C++, but need to define -shared option too, otherwise
15562 # it will coredump.
15563 lt_prog_compiler_pic_CXX='-fPIC -shared'
15564 ;;
15565 *)
15566 lt_prog_compiler_pic_CXX='-fPIC'
15567 ;;
15568 esac
15569 else
15570 case $host_os in
15571 aix[4-9]*)
15572 # All AIX code is PIC.
15573 if test ia64 = "$host_cpu"; then
15574 # AIX 5 now supports IA64 processor
15575 lt_prog_compiler_static_CXX='-Bstatic'
15576 else
15577 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15578 fi
15579 ;;
15580 chorus*)
15581 case $cc_basename in
15582 cxch68*)
15583 # Green Hills C++ Compiler
15584 # _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"
15585 ;;
15586 esac
15587 ;;
15588 mingw* | cygwin* | os2* | pw32* | cegcc*)
15589 # This hack is so that the source file can tell whether it is being
15590 # built for inclusion in a dll (and should export symbols for example).
15591 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15592 ;;
15593 dgux*)
15594 case $cc_basename in
15595 ec++*)
15596 lt_prog_compiler_pic_CXX='-KPIC'
15597 ;;
15598 ghcx*)
15599 # Green Hills C++ Compiler
15600 lt_prog_compiler_pic_CXX='-pic'
15601 ;;
15602 *)
15603 ;;
15604 esac
15605 ;;
15606 freebsd* | dragonfly*)
15607 # FreeBSD uses GNU C++
15608 ;;
15609 hpux9* | hpux10* | hpux11*)
15610 case $cc_basename in
15611 CC*)
15612 lt_prog_compiler_wl_CXX='-Wl,'
15613 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15614 if test ia64 != "$host_cpu"; then
15615 lt_prog_compiler_pic_CXX='+Z'
15616 fi
15617 ;;
15618 aCC*)
15619 lt_prog_compiler_wl_CXX='-Wl,'
15620 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15621 case $host_cpu in
15622 hppa*64*|ia64*)
15623 # +Z the default
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_CXX='+Z'
15627 ;;
15628 esac
15629 ;;
15630 *)
15631 ;;
15632 esac
15633 ;;
15634 interix*)
15635 # This is c89, which is MS Visual C++ (no shared libs)
15636 # Anyone wants to do a port?
15637 ;;
15638 irix5* | irix6* | nonstopux*)
15639 case $cc_basename in
15640 CC*)
15641 lt_prog_compiler_wl_CXX='-Wl,'
15642 lt_prog_compiler_static_CXX='-non_shared'
15643 # CC pic flag -KPIC is the default.
15644 ;;
15645 *)
15646 ;;
15647 esac
15648 ;;
15649 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15650 case $cc_basename in
15651 KCC*)
15652 # KAI C++ Compiler
15653 lt_prog_compiler_wl_CXX='--backend -Wl,'
15654 lt_prog_compiler_pic_CXX='-fPIC'
15655 ;;
15656 ecpc* )
15657 # old Intel C++ for x86_64, which still supported -KPIC.
15658 lt_prog_compiler_wl_CXX='-Wl,'
15659 lt_prog_compiler_pic_CXX='-KPIC'
15660 lt_prog_compiler_static_CXX='-static'
15661 ;;
15662 icpc* )
15663 # Intel C++, used to be incompatible with GCC.
15664 # ICC 10 doesn't accept -KPIC any more.
15665 lt_prog_compiler_wl_CXX='-Wl,'
15666 lt_prog_compiler_pic_CXX='-fPIC'
15667 lt_prog_compiler_static_CXX='-static'
15668 ;;
15669 pgCC* | pgcpp*)
15670 # Portland Group C++ compiler
15671 lt_prog_compiler_wl_CXX='-Wl,'
15672 lt_prog_compiler_pic_CXX='-fpic'
15673 lt_prog_compiler_static_CXX='-Bstatic'
15674 ;;
15675 cxx*)
15676 # Compaq C++
15677 # Make sure the PIC flag is empty. It appears that all Alpha
15678 # Linux and Compaq Tru64 Unix objects are PIC.
15679 lt_prog_compiler_pic_CXX=
15680 lt_prog_compiler_static_CXX='-non_shared'
15681 ;;
15682 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15683 # IBM XL 8.0, 9.0 on PPC and BlueGene
15684 lt_prog_compiler_wl_CXX='-Wl,'
15685 lt_prog_compiler_pic_CXX='-qpic'
15686 lt_prog_compiler_static_CXX='-qstaticlink'
15687 ;;
15688 *)
15689 case `$CC -V 2>&1 | sed 5q` in
15690 *Sun\ C*)
15691 # Sun C++ 5.9
15692 lt_prog_compiler_pic_CXX='-KPIC'
15693 lt_prog_compiler_static_CXX='-Bstatic'
15694 lt_prog_compiler_wl_CXX='-Qoption ld '
15695 ;;
15696 esac
15697 ;;
15698 esac
15699 ;;
15700 lynxos*)
15701 ;;
15702 m88k*)
15703 ;;
15704 mvs*)
15705 case $cc_basename in
15706 cxx*)
15707 lt_prog_compiler_pic_CXX='-W c,exportall'
15708 ;;
15709 *)
15710 ;;
15711 esac
15712 ;;
15713 netbsd*)
15714 ;;
15715 *qnx* | *nto*)
15716 # QNX uses GNU C++, but need to define -shared option too, otherwise
15717 # it will coredump.
15718 lt_prog_compiler_pic_CXX='-fPIC -shared'
15719 ;;
15720 osf3* | osf4* | osf5*)
15721 case $cc_basename in
15722 KCC*)
15723 lt_prog_compiler_wl_CXX='--backend -Wl,'
15724 ;;
15725 RCC*)
15726 # Rational C++ 2.4.1
15727 lt_prog_compiler_pic_CXX='-pic'
15728 ;;
15729 cxx*)
15730 # Digital/Compaq C++
15731 lt_prog_compiler_wl_CXX='-Wl,'
15732 # Make sure the PIC flag is empty. It appears that all Alpha
15733 # Linux and Compaq Tru64 Unix objects are PIC.
15734 lt_prog_compiler_pic_CXX=
15735 lt_prog_compiler_static_CXX='-non_shared'
15736 ;;
15737 *)
15738 ;;
15739 esac
15740 ;;
15741 psos*)
15742 ;;
15743 solaris*)
15744 case $cc_basename in
15745 CC* | sunCC*)
15746 # Sun C++ 4.2, 5.x and Centerline C++
15747 lt_prog_compiler_pic_CXX='-KPIC'
15748 lt_prog_compiler_static_CXX='-Bstatic'
15749 lt_prog_compiler_wl_CXX='-Qoption ld '
15750 ;;
15751 gcx*)
15752 # Green Hills C++ Compiler
15753 lt_prog_compiler_pic_CXX='-PIC'
15754 ;;
15755 *)
15756 ;;
15757 esac
15758 ;;
15759 sunos4*)
15760 case $cc_basename in
15761 CC*)
15762 # Sun C++ 4.x
15763 lt_prog_compiler_pic_CXX='-pic'
15764 lt_prog_compiler_static_CXX='-Bstatic'
15765 ;;
15766 lcc*)
15767 # Lucid
15768 lt_prog_compiler_pic_CXX='-pic'
15769 ;;
15770 *)
15771 ;;
15772 esac
15773 ;;
15774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15775 case $cc_basename in
15776 CC*)
15777 lt_prog_compiler_wl_CXX='-Wl,'
15778 lt_prog_compiler_pic_CXX='-KPIC'
15779 lt_prog_compiler_static_CXX='-Bstatic'
15780 ;;
15781 esac
15782 ;;
15783 tandem*)
15784 case $cc_basename in
15785 NCC*)
15786 # NonStop-UX NCC 3.20
15787 lt_prog_compiler_pic_CXX='-KPIC'
15788 ;;
15789 *)
15790 ;;
15791 esac
15792 ;;
15793 vxworks*)
15794 ;;
15795 *)
15796 lt_prog_compiler_can_build_shared_CXX=no
15797 ;;
15798 esac
15799 fi
15800
15801 case $host_os in
15802 # For platforms that do not support PIC, -DPIC is meaningless:
15803 *djgpp*)
15804 lt_prog_compiler_pic_CXX=
15805 ;;
15806 *)
15807 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15808 ;;
15809 esac
15810
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15812 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15813 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815 else
15816 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15817 fi
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15819 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15820 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15821
15822 #
15823 # Check to make sure the PIC flag actually works.
15824 #
15825 if test -n "$lt_prog_compiler_pic_CXX"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15828 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 lt_cv_prog_compiler_pic_works_CXX=no
15832 ac_outfile=conftest.$ac_objext
15833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15834 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15835 # Insert the option either (1) after the last *FLAGS variable, or
15836 # (2) before a word containing "conftest.", or (3) at the end.
15837 # Note that $ac_compile itself does not contain backslashes and begins
15838 # with a dollar sign (not a hyphen), so the echo should work correctly.
15839 # The option is referenced via a variable to avoid confusing sed.
15840 lt_compile=`echo "$ac_compile" | $SED \
15841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15843 -e 's:$: $lt_compiler_flag:'`
15844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15845 (eval "$lt_compile" 2>conftest.err)
15846 ac_status=$?
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 if (exit $ac_status) && test -s "$ac_outfile"; then
15850 # The compiler can only warn and ignore the option if not recognized
15851 # So say no if there are warnings other than the usual output.
15852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15855 lt_cv_prog_compiler_pic_works_CXX=yes
15856 fi
15857 fi
15858 $RM conftest*
15859
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15862 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15863
15864 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15865 case $lt_prog_compiler_pic_CXX in
15866 "" | " "*) ;;
15867 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15868 esac
15869 else
15870 lt_prog_compiler_pic_CXX=
15871 lt_prog_compiler_can_build_shared_CXX=no
15872 fi
15873
15874 fi
15875
15876
15877
15878
15879
15880 #
15881 # Check to make sure the static flag actually works.
15882 #
15883 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15885 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15886 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 lt_cv_prog_compiler_static_works_CXX=no
15890 save_LDFLAGS=$LDFLAGS
15891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15894 # The linker can only warn and ignore the option if not recognized
15895 # So say no if there are warnings
15896 if test -s conftest.err; then
15897 # Append any errors to the config.log.
15898 cat conftest.err 1>&5
15899 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901 if diff conftest.exp conftest.er2 >/dev/null; then
15902 lt_cv_prog_compiler_static_works_CXX=yes
15903 fi
15904 else
15905 lt_cv_prog_compiler_static_works_CXX=yes
15906 fi
15907 fi
15908 $RM -r conftest*
15909 LDFLAGS=$save_LDFLAGS
15910
15911 fi
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15913 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15914
15915 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15916 :
15917 else
15918 lt_prog_compiler_static_CXX=
15919 fi
15920
15921
15922
15923
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15926 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15927 $as_echo_n "(cached) " >&6
15928 else
15929 lt_cv_prog_compiler_c_o_CXX=no
15930 $RM -r conftest 2>/dev/null
15931 mkdir conftest
15932 cd conftest
15933 mkdir out
15934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15935
15936 lt_compiler_flag="-o out/conftest2.$ac_objext"
15937 # Insert the option either (1) after the last *FLAGS variable, or
15938 # (2) before a word containing "conftest.", or (3) at the end.
15939 # Note that $ac_compile itself does not contain backslashes and begins
15940 # with a dollar sign (not a hyphen), so the echo should work correctly.
15941 lt_compile=`echo "$ac_compile" | $SED \
15942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15944 -e 's:$: $lt_compiler_flag:'`
15945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15946 (eval "$lt_compile" 2>out/conftest.err)
15947 ac_status=$?
15948 cat out/conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15951 then
15952 # The compiler can only warn and ignore the option if not recognized
15953 # So say no if there are warnings
15954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15957 lt_cv_prog_compiler_c_o_CXX=yes
15958 fi
15959 fi
15960 chmod u+w . 2>&5
15961 $RM conftest*
15962 # SGI C++ compiler will create directory out/ii_files/ for
15963 # template instantiation
15964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15965 $RM out/* && rmdir out
15966 cd ..
15967 $RM -r conftest
15968 $RM conftest*
15969
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15972 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15973
15974
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15978 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 lt_cv_prog_compiler_c_o_CXX=no
15982 $RM -r conftest 2>/dev/null
15983 mkdir conftest
15984 cd conftest
15985 mkdir out
15986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15987
15988 lt_compiler_flag="-o out/conftest2.$ac_objext"
15989 # Insert the option either (1) after the last *FLAGS variable, or
15990 # (2) before a word containing "conftest.", or (3) at the end.
15991 # Note that $ac_compile itself does not contain backslashes and begins
15992 # with a dollar sign (not a hyphen), so the echo should work correctly.
15993 lt_compile=`echo "$ac_compile" | $SED \
15994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996 -e 's:$: $lt_compiler_flag:'`
15997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15998 (eval "$lt_compile" 2>out/conftest.err)
15999 ac_status=$?
16000 cat out/conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16003 then
16004 # The compiler can only warn and ignore the option if not recognized
16005 # So say no if there are warnings
16006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16009 lt_cv_prog_compiler_c_o_CXX=yes
16010 fi
16011 fi
16012 chmod u+w . 2>&5
16013 $RM conftest*
16014 # SGI C++ compiler will create directory out/ii_files/ for
16015 # template instantiation
16016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16017 $RM out/* && rmdir out
16018 cd ..
16019 $RM -r conftest
16020 $RM conftest*
16021
16022 fi
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16024 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16025
16026
16027
16028
16029 hard_links=nottested
16030 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16031 # do not overwrite the value of need_locks provided by the user
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16033 $as_echo_n "checking if we can lock with hard links... " >&6; }
16034 hard_links=yes
16035 $RM conftest*
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16037 touch conftest.a
16038 ln conftest.a conftest.b 2>&5 || hard_links=no
16039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16041 $as_echo "$hard_links" >&6; }
16042 if test no = "$hard_links"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16044 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16045 need_locks=warn
16046 fi
16047 else
16048 need_locks=no
16049 fi
16050
16051
16052
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16054 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16055
16056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16057 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16058 case $host_os in
16059 aix[4-9]*)
16060 # If we're using GNU nm, then we don't want the "-C" option.
16061 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16062 # Without the "-l" option, or with the "-B" option, AIX nm treats
16063 # weak defined symbols like other global defined symbols, whereas
16064 # GNU nm marks them as "W".
16065 # While the 'weak' keyword is ignored in the Export File, we need
16066 # it in the Import File for the 'aix-soname' feature, so we have
16067 # to replace the "-B" option with "-P" for AIX nm.
16068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16069 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'
16070 else
16071 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'
16072 fi
16073 ;;
16074 pw32*)
16075 export_symbols_cmds_CXX=$ltdll_cmds
16076 ;;
16077 cygwin* | mingw* | cegcc*)
16078 case $cc_basename in
16079 cl*)
16080 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16081 ;;
16082 *)
16083 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'
16084 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16085 ;;
16086 esac
16087 ;;
16088 *)
16089 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16090 ;;
16091 esac
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16094 $as_echo "$ld_shlibs_CXX" >&6; }
16095 test no = "$ld_shlibs_CXX" && can_build_shared=no
16096
16097 with_gnu_ld_CXX=$with_gnu_ld
16098
16099
16100
16101
16102
16103
16104 #
16105 # Do we need to explicitly link libc?
16106 #
16107 case "x$archive_cmds_need_lc_CXX" in
16108 x|xyes)
16109 # Assume -lc should be added
16110 archive_cmds_need_lc_CXX=yes
16111
16112 if test yes,yes = "$GCC,$enable_shared"; then
16113 case $archive_cmds_CXX in
16114 *'~'*)
16115 # FIXME: we may have to deal with multi-command sequences.
16116 ;;
16117 '$CC '*)
16118 # Test whether the compiler implicitly links with -lc since on some
16119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16120 # to ld, don't add -lc before -lgcc.
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16123 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 $RM conftest*
16127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16128
16129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16130 (eval $ac_compile) 2>&5
16131 ac_status=$?
16132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16133 test $ac_status = 0; } 2>conftest.err; then
16134 soname=conftest
16135 lib=conftest
16136 libobjs=conftest.$ac_objext
16137 deplibs=
16138 wl=$lt_prog_compiler_wl_CXX
16139 pic_flag=$lt_prog_compiler_pic_CXX
16140 compiler_flags=-v
16141 linker_flags=-v
16142 verstring=
16143 output_objdir=.
16144 libname=conftest
16145 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16146 allow_undefined_flag_CXX=
16147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16148 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16149 ac_status=$?
16150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16151 test $ac_status = 0; }
16152 then
16153 lt_cv_archive_cmds_need_lc_CXX=no
16154 else
16155 lt_cv_archive_cmds_need_lc_CXX=yes
16156 fi
16157 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16158 else
16159 cat conftest.err 1>&5
16160 fi
16161 $RM conftest*
16162
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16165 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16166 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16167 ;;
16168 esac
16169 fi
16170 ;;
16171 esac
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16236
16237 library_names_spec=
16238 libname_spec='lib$name'
16239 soname_spec=
16240 shrext_cmds=.so
16241 postinstall_cmds=
16242 postuninstall_cmds=
16243 finish_cmds=
16244 finish_eval=
16245 shlibpath_var=
16246 shlibpath_overrides_runpath=unknown
16247 version_type=none
16248 dynamic_linker="$host_os ld.so"
16249 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16250 need_lib_prefix=unknown
16251 hardcode_into_libs=no
16252
16253 # when you set need_version to no, make sure it does not cause -set_version
16254 # flags to be left without arguments
16255 need_version=unknown
16256
16257
16258
16259 case $host_os in
16260 aix3*)
16261 version_type=linux # correct to gnu/linux during the next big refactor
16262 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16263 shlibpath_var=LIBPATH
16264
16265 # AIX 3 has no versioning support, so we append a major version to the name.
16266 soname_spec='$libname$release$shared_ext$major'
16267 ;;
16268
16269 aix[4-9]*)
16270 version_type=linux # correct to gnu/linux during the next big refactor
16271 need_lib_prefix=no
16272 need_version=no
16273 hardcode_into_libs=yes
16274 if test ia64 = "$host_cpu"; then
16275 # AIX 5 supports IA64
16276 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 else
16279 # With GCC up to 2.95.x, collect2 would create an import file
16280 # for dependence libraries. The import file would start with
16281 # the line '#! .'. This would cause the generated library to
16282 # depend on '.', always an invalid library. This was fixed in
16283 # development snapshots of GCC prior to 3.0.
16284 case $host_os in
16285 aix4 | aix4.[01] | aix4.[01].*)
16286 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16287 echo ' yes '
16288 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16289 :
16290 else
16291 can_build_shared=no
16292 fi
16293 ;;
16294 esac
16295 # Using Import Files as archive members, it is possible to support
16296 # filename-based versioning of shared library archives on AIX. While
16297 # this would work for both with and without runtime linking, it will
16298 # prevent static linking of such archives. So we do filename-based
16299 # shared library versioning with .so extension only, which is used
16300 # when both runtime linking and shared linking is enabled.
16301 # Unfortunately, runtime linking may impact performance, so we do
16302 # not want this to be the default eventually. Also, we use the
16303 # versioned .so libs for executables only if there is the -brtl
16304 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16305 # To allow for filename-based versioning support, we need to create
16306 # libNAME.so.V as an archive file, containing:
16307 # *) an Import File, referring to the versioned filename of the
16308 # archive as well as the shared archive member, telling the
16309 # bitwidth (32 or 64) of that shared object, and providing the
16310 # list of exported symbols of that shared object, eventually
16311 # decorated with the 'weak' keyword
16312 # *) the shared object with the F_LOADONLY flag set, to really avoid
16313 # it being seen by the linker.
16314 # At run time we better use the real file rather than another symlink,
16315 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16316
16317 case $with_aix_soname,$aix_use_runtimelinking in
16318 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16319 # soname into executable. Probably we can add versioning support to
16320 # collect2, so additional links can be useful in future.
16321 aix,yes) # traditional libtool
16322 dynamic_linker='AIX unversionable lib.so'
16323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16324 # instead of lib<name>.a to let people know that these are not
16325 # typical AIX shared libraries.
16326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16327 ;;
16328 aix,no) # traditional AIX only
16329 dynamic_linker='AIX lib.a(lib.so.V)'
16330 # We preserve .a as extension for shared libraries through AIX4.2
16331 # and later when we are not doing run time linking.
16332 library_names_spec='$libname$release.a $libname.a'
16333 soname_spec='$libname$release$shared_ext$major'
16334 ;;
16335 svr4,*) # full svr4 only
16336 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16337 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16338 # We do not specify a path in Import Files, so LIBPATH fires.
16339 shlibpath_overrides_runpath=yes
16340 ;;
16341 *,yes) # both, prefer svr4
16342 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16343 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16344 # unpreferred sharedlib libNAME.a needs extra handling
16345 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"'
16346 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"'
16347 # We do not specify a path in Import Files, so LIBPATH fires.
16348 shlibpath_overrides_runpath=yes
16349 ;;
16350 *,no) # both, prefer aix
16351 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16352 library_names_spec='$libname$release.a $libname.a'
16353 soname_spec='$libname$release$shared_ext$major'
16354 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16355 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)'
16356 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"'
16357 ;;
16358 esac
16359 shlibpath_var=LIBPATH
16360 fi
16361 ;;
16362
16363 amigaos*)
16364 case $host_cpu in
16365 powerpc)
16366 # Since July 2007 AmigaOS4 officially supports .so libraries.
16367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 ;;
16370 m68k)
16371 library_names_spec='$libname.ixlibrary $libname.a'
16372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16373 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'
16374 ;;
16375 esac
16376 ;;
16377
16378 beos*)
16379 library_names_spec='$libname$shared_ext'
16380 dynamic_linker="$host_os ld.so"
16381 shlibpath_var=LIBRARY_PATH
16382 ;;
16383
16384 bsdi[45]*)
16385 version_type=linux # correct to gnu/linux during the next big refactor
16386 need_version=no
16387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16388 soname_spec='$libname$release$shared_ext$major'
16389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16393 # the default ld.so.conf also contains /usr/contrib/lib and
16394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16395 # libtool to hard-code these into programs
16396 ;;
16397
16398 cygwin* | mingw* | pw32* | cegcc*)
16399 version_type=windows
16400 shrext_cmds=.dll
16401 need_version=no
16402 need_lib_prefix=no
16403
16404 case $GCC,$cc_basename in
16405 yes,*)
16406 # gcc
16407 library_names_spec='$libname.dll.a'
16408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16409 postinstall_cmds='base_file=`basename \$file`~
16410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16411 dldir=$destdir/`dirname \$dlpath`~
16412 test -d \$dldir || mkdir -p \$dldir~
16413 $install_prog $dir/$dlname \$dldir/$dlname~
16414 chmod a+x \$dldir/$dlname~
16415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16417 fi'
16418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16419 dlpath=$dir/\$dldll~
16420 $RM \$dlpath'
16421 shlibpath_overrides_runpath=yes
16422
16423 case $host_os in
16424 cygwin*)
16425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16426 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16427
16428 ;;
16429 mingw* | cegcc*)
16430 # MinGW DLLs use traditional 'lib' prefix
16431 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16432 ;;
16433 pw32*)
16434 # pw32 DLLs use 'pw' prefix rather than 'lib'
16435 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16436 ;;
16437 esac
16438 dynamic_linker='Win32 ld.exe'
16439 ;;
16440
16441 *,cl*)
16442 # Native MSVC
16443 libname_spec='$name'
16444 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16445 library_names_spec='$libname.dll.lib'
16446
16447 case $build_os in
16448 mingw*)
16449 sys_lib_search_path_spec=
16450 lt_save_ifs=$IFS
16451 IFS=';'
16452 for lt_path in $LIB
16453 do
16454 IFS=$lt_save_ifs
16455 # Let DOS variable expansion print the short 8.3 style file name.
16456 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16457 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16458 done
16459 IFS=$lt_save_ifs
16460 # Convert to MSYS style.
16461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16462 ;;
16463 cygwin*)
16464 # Convert to unix form, then to dos form, then back to unix form
16465 # but this time dos style (no spaces!) so that the unix form looks
16466 # like /cygdrive/c/PROGRA~1:/cygdr...
16467 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16468 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16469 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 ;;
16471 *)
16472 sys_lib_search_path_spec=$LIB
16473 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16474 # It is most probably a Windows format PATH.
16475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16476 else
16477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16478 fi
16479 # FIXME: find the short name or the path components, as spaces are
16480 # common. (e.g. "Program Files" -> "PROGRA~1")
16481 ;;
16482 esac
16483
16484 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16485 postinstall_cmds='base_file=`basename \$file`~
16486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16487 dldir=$destdir/`dirname \$dlpath`~
16488 test -d \$dldir || mkdir -p \$dldir~
16489 $install_prog $dir/$dlname \$dldir/$dlname'
16490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16491 dlpath=$dir/\$dldll~
16492 $RM \$dlpath'
16493 shlibpath_overrides_runpath=yes
16494 dynamic_linker='Win32 link.exe'
16495 ;;
16496
16497 *)
16498 # Assume MSVC wrapper
16499 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16500 dynamic_linker='Win32 ld.exe'
16501 ;;
16502 esac
16503 # FIXME: first we should search . and the directory the executable is in
16504 shlibpath_var=PATH
16505 ;;
16506
16507 darwin* | rhapsody*)
16508 dynamic_linker="$host_os dyld"
16509 version_type=darwin
16510 need_lib_prefix=no
16511 need_version=no
16512 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16513 soname_spec='$libname$release$major$shared_ext'
16514 shlibpath_overrides_runpath=yes
16515 shlibpath_var=DYLD_LIBRARY_PATH
16516 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16517
16518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16519 ;;
16520
16521 dgux*)
16522 version_type=linux # correct to gnu/linux during the next big refactor
16523 need_lib_prefix=no
16524 need_version=no
16525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16526 soname_spec='$libname$release$shared_ext$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 ;;
16529
16530 freebsd* | dragonfly*)
16531 # DragonFly does not have aout. When/if they implement a new
16532 # versioning mechanism, adjust this.
16533 if test -x /usr/bin/objformat; then
16534 objformat=`/usr/bin/objformat`
16535 else
16536 case $host_os in
16537 freebsd[23].*) objformat=aout ;;
16538 *) objformat=elf ;;
16539 esac
16540 fi
16541 version_type=freebsd-$objformat
16542 case $version_type in
16543 freebsd-elf*)
16544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16545 soname_spec='$libname$release$shared_ext$major'
16546 need_version=no
16547 need_lib_prefix=no
16548 ;;
16549 freebsd-*)
16550 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16551 need_version=yes
16552 ;;
16553 esac
16554 shlibpath_var=LD_LIBRARY_PATH
16555 case $host_os in
16556 freebsd2.*)
16557 shlibpath_overrides_runpath=yes
16558 ;;
16559 freebsd3.[01]* | freebsdelf3.[01]*)
16560 shlibpath_overrides_runpath=yes
16561 hardcode_into_libs=yes
16562 ;;
16563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16565 shlibpath_overrides_runpath=no
16566 hardcode_into_libs=yes
16567 ;;
16568 *) # from 4.6 on, and DragonFly
16569 shlibpath_overrides_runpath=yes
16570 hardcode_into_libs=yes
16571 ;;
16572 esac
16573 ;;
16574
16575 haiku*)
16576 version_type=linux # correct to gnu/linux during the next big refactor
16577 need_lib_prefix=no
16578 need_version=no
16579 dynamic_linker="$host_os runtime_loader"
16580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16581 soname_spec='$libname$release$shared_ext$major'
16582 shlibpath_var=LIBRARY_PATH
16583 shlibpath_overrides_runpath=no
16584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16585 hardcode_into_libs=yes
16586 ;;
16587
16588 hpux9* | hpux10* | hpux11*)
16589 # Give a soname corresponding to the major version so that dld.sl refuses to
16590 # link against other versions.
16591 version_type=sunos
16592 need_lib_prefix=no
16593 need_version=no
16594 case $host_cpu in
16595 ia64*)
16596 shrext_cmds='.so'
16597 hardcode_into_libs=yes
16598 dynamic_linker="$host_os dld.so"
16599 shlibpath_var=LD_LIBRARY_PATH
16600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16602 soname_spec='$libname$release$shared_ext$major'
16603 if test 32 = "$HPUX_IA64_MODE"; then
16604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16605 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16606 else
16607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16608 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16609 fi
16610 ;;
16611 hppa*64*)
16612 shrext_cmds='.sl'
16613 hardcode_into_libs=yes
16614 dynamic_linker="$host_os dld.sl"
16615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16618 soname_spec='$libname$release$shared_ext$major'
16619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621 ;;
16622 *)
16623 shrext_cmds='.sl'
16624 dynamic_linker="$host_os dld.sl"
16625 shlibpath_var=SHLIB_PATH
16626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16628 soname_spec='$libname$release$shared_ext$major'
16629 ;;
16630 esac
16631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16632 postinstall_cmds='chmod 555 $lib'
16633 # or fails outright, so override atomically:
16634 install_override_mode=555
16635 ;;
16636
16637 interix[3-9]*)
16638 version_type=linux # correct to gnu/linux during the next big refactor
16639 need_lib_prefix=no
16640 need_version=no
16641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16642 soname_spec='$libname$release$shared_ext$major'
16643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16647 ;;
16648
16649 irix5* | irix6* | nonstopux*)
16650 case $host_os in
16651 nonstopux*) version_type=nonstopux ;;
16652 *)
16653 if test yes = "$lt_cv_prog_gnu_ld"; then
16654 version_type=linux # correct to gnu/linux during the next big refactor
16655 else
16656 version_type=irix
16657 fi ;;
16658 esac
16659 need_lib_prefix=no
16660 need_version=no
16661 soname_spec='$libname$release$shared_ext$major'
16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16663 case $host_os in
16664 irix5* | nonstopux*)
16665 libsuff= shlibsuff=
16666 ;;
16667 *)
16668 case $LD in # libtool.m4 will add one of these switches to LD
16669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670 libsuff= shlibsuff= libmagic=32-bit;;
16671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672 libsuff=32 shlibsuff=N32 libmagic=N32;;
16673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675 *) libsuff= shlibsuff= libmagic=never-match;;
16676 esac
16677 ;;
16678 esac
16679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680 shlibpath_overrides_runpath=no
16681 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16682 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16683 hardcode_into_libs=yes
16684 ;;
16685
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16688 dynamic_linker=no
16689 ;;
16690
16691 linux*android*)
16692 version_type=none # Android doesn't support versioned libraries.
16693 need_lib_prefix=no
16694 need_version=no
16695 library_names_spec='$libname$release$shared_ext'
16696 soname_spec='$libname$release$shared_ext'
16697 finish_cmds=
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes
16700
16701 # This implies no fast_install, which is unacceptable.
16702 # Some rework will be needed to allow for fast_install
16703 # before this can be enabled.
16704 hardcode_into_libs=yes
16705
16706 dynamic_linker='Android linker'
16707 # Don't embed -rpath directories since the linker doesn't support them.
16708 hardcode_libdir_flag_spec_CXX='-L$libdir'
16709 ;;
16710
16711 # This must be glibc/ELF.
16712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16713 version_type=linux # correct to gnu/linux during the next big refactor
16714 need_lib_prefix=no
16715 need_version=no
16716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16717 soname_spec='$libname$release$shared_ext$major'
16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16721
16722 # Some binutils ld are patched to set DT_RUNPATH
16723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724 $as_echo_n "(cached) " >&6
16725 else
16726 lt_cv_shlibpath_overrides_runpath=no
16727 save_LDFLAGS=$LDFLAGS
16728 save_libdir=$libdir
16729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733
16734 int
16735 main ()
16736 {
16737
16738 ;
16739 return 0;
16740 }
16741 _ACEOF
16742 if ac_fn_cxx_try_link "$LINENO"; then :
16743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744 lt_cv_shlibpath_overrides_runpath=yes
16745 fi
16746 fi
16747 rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749 LDFLAGS=$save_LDFLAGS
16750 libdir=$save_libdir
16751
16752 fi
16753
16754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16755
16756 # This implies no fast_install, which is unacceptable.
16757 # Some rework will be needed to allow for fast_install
16758 # before this can be enabled.
16759 hardcode_into_libs=yes
16760
16761 # Add ABI-specific directories to the system library path.
16762 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16763
16764 # Ideally, we could use ldconfig to report *all* directores which are
16765 # searched for libraries, however this is still not possible. Aside from not
16766 # being certain /sbin/ldconfig is available, command
16767 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16768 # even though it is searched at run-time. Try to do the best guess by
16769 # appending ld.so.conf contents (and includes) to the search path.
16770 if test -f /etc/ld.so.conf; then
16771 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' ' '`
16772 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16773 fi
16774
16775 # We used to test for /lib/ld.so.1 and disable shared libraries on
16776 # powerpc, because MkLinux only supported shared libraries with the
16777 # GNU dynamic linker. Since this was broken with cross compilers,
16778 # most powerpc-linux boxes support dynamic linking these days and
16779 # people can always --disable-shared, the test was removed, and we
16780 # assume the GNU/Linux dynamic linker is in use.
16781 dynamic_linker='GNU/Linux ld.so'
16782 ;;
16783
16784 netbsd*)
16785 version_type=sunos
16786 need_lib_prefix=no
16787 need_version=no
16788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16789 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791 dynamic_linker='NetBSD (a.out) ld.so'
16792 else
16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16794 soname_spec='$libname$release$shared_ext$major'
16795 dynamic_linker='NetBSD ld.elf_so'
16796 fi
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16799 hardcode_into_libs=yes
16800 ;;
16801
16802 newsos6)
16803 version_type=linux # correct to gnu/linux during the next big refactor
16804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=yes
16807 ;;
16808
16809 *nto* | *qnx*)
16810 version_type=qnx
16811 need_lib_prefix=no
16812 need_version=no
16813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16814 soname_spec='$libname$release$shared_ext$major'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=no
16817 hardcode_into_libs=yes
16818 dynamic_linker='ldqnx.so'
16819 ;;
16820
16821 openbsd* | bitrig*)
16822 version_type=sunos
16823 sys_lib_dlsearch_path_spec=/usr/lib
16824 need_lib_prefix=no
16825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16826 need_version=no
16827 else
16828 need_version=yes
16829 fi
16830 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 ;;
16835
16836 os2*)
16837 libname_spec='$name'
16838 version_type=windows
16839 shrext_cmds=.dll
16840 need_version=no
16841 need_lib_prefix=no
16842 # OS/2 can only load a DLL with a base name of 8 characters or less.
16843 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16844 v=$($ECHO $release$versuffix | tr -d .-);
16845 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16846 $ECHO $n$v`$shared_ext'
16847 library_names_spec='${libname}_dll.$libext'
16848 dynamic_linker='OS/2 ld.exe'
16849 shlibpath_var=BEGINLIBPATH
16850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16852 postinstall_cmds='base_file=`basename \$file`~
16853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16854 dldir=$destdir/`dirname \$dlpath`~
16855 test -d \$dldir || mkdir -p \$dldir~
16856 $install_prog $dir/$dlname \$dldir/$dlname~
16857 chmod a+x \$dldir/$dlname~
16858 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16859 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16860 fi'
16861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16862 dlpath=$dir/\$dldll~
16863 $RM \$dlpath'
16864 ;;
16865
16866 osf3* | osf4* | osf5*)
16867 version_type=osf
16868 need_lib_prefix=no
16869 need_version=no
16870 soname_spec='$libname$release$shared_ext$major'
16871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16875 ;;
16876
16877 rdos*)
16878 dynamic_linker=no
16879 ;;
16880
16881 solaris*)
16882 version_type=linux # correct to gnu/linux during the next big refactor
16883 need_lib_prefix=no
16884 need_version=no
16885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16886 soname_spec='$libname$release$shared_ext$major'
16887 shlibpath_var=LD_LIBRARY_PATH
16888 shlibpath_overrides_runpath=yes
16889 hardcode_into_libs=yes
16890 # ldd complains unless libraries are executable
16891 postinstall_cmds='chmod +x $lib'
16892 ;;
16893
16894 sunos4*)
16895 version_type=sunos
16896 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16900 if test yes = "$with_gnu_ld"; then
16901 need_lib_prefix=no
16902 fi
16903 need_version=yes
16904 ;;
16905
16906 sysv4 | sysv4.3*)
16907 version_type=linux # correct to gnu/linux during the next big refactor
16908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16909 soname_spec='$libname$release$shared_ext$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 case $host_vendor in
16912 sni)
16913 shlibpath_overrides_runpath=no
16914 need_lib_prefix=no
16915 runpath_var=LD_RUN_PATH
16916 ;;
16917 siemens)
16918 need_lib_prefix=no
16919 ;;
16920 motorola)
16921 need_lib_prefix=no
16922 need_version=no
16923 shlibpath_overrides_runpath=no
16924 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16925 ;;
16926 esac
16927 ;;
16928
16929 sysv4*MP*)
16930 if test -d /usr/nec; then
16931 version_type=linux # correct to gnu/linux during the next big refactor
16932 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16933 soname_spec='$libname$shared_ext.$major'
16934 shlibpath_var=LD_LIBRARY_PATH
16935 fi
16936 ;;
16937
16938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16939 version_type=sco
16940 need_lib_prefix=no
16941 need_version=no
16942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16943 soname_spec='$libname$release$shared_ext$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 shlibpath_overrides_runpath=yes
16946 hardcode_into_libs=yes
16947 if test yes = "$with_gnu_ld"; then
16948 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16949 else
16950 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16951 case $host_os in
16952 sco3.2v5*)
16953 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16954 ;;
16955 esac
16956 fi
16957 sys_lib_dlsearch_path_spec='/usr/lib'
16958 ;;
16959
16960 tpf*)
16961 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16962 version_type=linux # correct to gnu/linux during the next big refactor
16963 need_lib_prefix=no
16964 need_version=no
16965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 shlibpath_overrides_runpath=no
16968 hardcode_into_libs=yes
16969 ;;
16970
16971 uts4*)
16972 version_type=linux # correct to gnu/linux during the next big refactor
16973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16974 soname_spec='$libname$release$shared_ext$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 ;;
16977
16978 *)
16979 dynamic_linker=no
16980 ;;
16981 esac
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16983 $as_echo "$dynamic_linker" >&6; }
16984 test no = "$dynamic_linker" && can_build_shared=no
16985
16986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16987 if test yes = "$GCC"; then
16988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16989 fi
16990
16991 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16992 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16993 fi
16994
16995 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16996 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16997 fi
16998
16999 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17000 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17001
17002 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17003 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17004
17005 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17006 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17049 hardcode_action_CXX=
17050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17051 test -n "$runpath_var_CXX" ||
17052 test yes = "$hardcode_automatic_CXX"; then
17053
17054 # We can hardcode non-existent directories.
17055 if test no != "$hardcode_direct_CXX" &&
17056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17057 # have to relink, otherwise we might link with an installed library
17058 # when we should be linking with a yet-to-be-installed one
17059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17060 test no != "$hardcode_minus_L_CXX"; then
17061 # Linking always hardcodes the temporary library directory.
17062 hardcode_action_CXX=relink
17063 else
17064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17065 hardcode_action_CXX=immediate
17066 fi
17067 else
17068 # We cannot hardcode anything, or else we can only hardcode existing
17069 # directories.
17070 hardcode_action_CXX=unsupported
17071 fi
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17073 $as_echo "$hardcode_action_CXX" >&6; }
17074
17075 if test relink = "$hardcode_action_CXX" ||
17076 test yes = "$inherit_rpath_CXX"; then
17077 # Fast installation is not supported
17078 enable_fast_install=no
17079 elif test yes = "$shlibpath_overrides_runpath" ||
17080 test no = "$enable_shared"; then
17081 # Fast installation is not necessary
17082 enable_fast_install=needless
17083 fi
17084
17085
17086
17087
17088
17089
17090
17091 fi # test -n "$compiler"
17092
17093 CC=$lt_save_CC
17094 CFLAGS=$lt_save_CFLAGS
17095 LDCXX=$LD
17096 LD=$lt_save_LD
17097 GCC=$lt_save_GCC
17098 with_gnu_ld=$lt_save_with_gnu_ld
17099 lt_cv_path_LDCXX=$lt_cv_path_LD
17100 lt_cv_path_LD=$lt_save_path_LD
17101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17103 fi # test yes != "$_lt_caught_CXX_error"
17104
17105 ac_ext=cpp
17106 ac_cpp='$CXXCPP $CPPFLAGS'
17107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125 ac_config_commands="$ac_config_commands libtool"
17126
17127
17128
17129
17130 # Only expand once:
17131
17132
17133
17134 ax_cxx_compile_cxx11_required=true
17135 ac_ext=cpp
17136 ac_cpp='$CXXCPP $CPPFLAGS'
17137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17140 ac_success=no
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17142 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17143 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17148
17149
17150 // If the compiler admits that it is not ready for C++11, why torture it?
17151 // Hopefully, this will speed up the test.
17152
17153 #ifndef __cplusplus
17154
17155 #error "This is not a C++ compiler"
17156
17157 #elif __cplusplus < 201103L
17158
17159 #error "This is not a C++11 compiler"
17160
17161 #else
17162
17163 namespace cxx11
17164 {
17165
17166 namespace test_static_assert
17167 {
17168
17169 template <typename T>
17170 struct check
17171 {
17172 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17173 };
17174
17175 }
17176
17177 namespace test_final_override
17178 {
17179
17180 struct Base
17181 {
17182 virtual void f() {}
17183 };
17184
17185 struct Derived : public Base
17186 {
17187 virtual void f() override {}
17188 };
17189
17190 }
17191
17192 namespace test_double_right_angle_brackets
17193 {
17194
17195 template < typename T >
17196 struct check {};
17197
17198 typedef check<void> single_type;
17199 typedef check<check<void>> double_type;
17200 typedef check<check<check<void>>> triple_type;
17201 typedef check<check<check<check<void>>>> quadruple_type;
17202
17203 }
17204
17205 namespace test_decltype
17206 {
17207
17208 int
17209 f()
17210 {
17211 int a = 1;
17212 decltype(a) b = 2;
17213 return a + b;
17214 }
17215
17216 }
17217
17218 namespace test_type_deduction
17219 {
17220
17221 template < typename T1, typename T2 >
17222 struct is_same
17223 {
17224 static const bool value = false;
17225 };
17226
17227 template < typename T >
17228 struct is_same<T, T>
17229 {
17230 static const bool value = true;
17231 };
17232
17233 template < typename T1, typename T2 >
17234 auto
17235 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17236 {
17237 return a1 + a2;
17238 }
17239
17240 int
17241 test(const int c, volatile int v)
17242 {
17243 static_assert(is_same<int, decltype(0)>::value == true, "");
17244 static_assert(is_same<int, decltype(c)>::value == false, "");
17245 static_assert(is_same<int, decltype(v)>::value == false, "");
17246 auto ac = c;
17247 auto av = v;
17248 auto sumi = ac + av + 'x';
17249 auto sumf = ac + av + 1.0;
17250 static_assert(is_same<int, decltype(ac)>::value == true, "");
17251 static_assert(is_same<int, decltype(av)>::value == true, "");
17252 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17253 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17254 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17255 return (sumf > 0.0) ? sumi : add(c, v);
17256 }
17257
17258 }
17259
17260 namespace test_noexcept
17261 {
17262
17263 int f() { return 0; }
17264 int g() noexcept { return 0; }
17265
17266 static_assert(noexcept(f()) == false, "");
17267 static_assert(noexcept(g()) == true, "");
17268
17269 }
17270
17271 namespace test_constexpr
17272 {
17273
17274 template < typename CharT >
17275 unsigned long constexpr
17276 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17277 {
17278 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17279 }
17280
17281 template < typename CharT >
17282 unsigned long constexpr
17283 strlen_c(const CharT *const s) noexcept
17284 {
17285 return strlen_c_r(s, 0UL);
17286 }
17287
17288 static_assert(strlen_c("") == 0UL, "");
17289 static_assert(strlen_c("1") == 1UL, "");
17290 static_assert(strlen_c("example") == 7UL, "");
17291 static_assert(strlen_c("another\0example") == 7UL, "");
17292
17293 }
17294
17295 namespace test_rvalue_references
17296 {
17297
17298 template < int N >
17299 struct answer
17300 {
17301 static constexpr int value = N;
17302 };
17303
17304 answer<1> f(int&) { return answer<1>(); }
17305 answer<2> f(const int&) { return answer<2>(); }
17306 answer<3> f(int&&) { return answer<3>(); }
17307
17308 void
17309 test()
17310 {
17311 int i = 0;
17312 const int c = 0;
17313 static_assert(decltype(f(i))::value == 1, "");
17314 static_assert(decltype(f(c))::value == 2, "");
17315 static_assert(decltype(f(0))::value == 3, "");
17316 }
17317
17318 }
17319
17320 namespace test_uniform_initialization
17321 {
17322
17323 struct test
17324 {
17325 static const int zero {};
17326 static const int one {1};
17327 };
17328
17329 static_assert(test::zero == 0, "");
17330 static_assert(test::one == 1, "");
17331
17332 }
17333
17334 namespace test_lambdas
17335 {
17336
17337 void
17338 test1()
17339 {
17340 auto lambda1 = [](){};
17341 auto lambda2 = lambda1;
17342 lambda1();
17343 lambda2();
17344 }
17345
17346 int
17347 test2()
17348 {
17349 auto a = [](int i, int j){ return i + j; }(1, 2);
17350 auto b = []() -> int { return '0'; }();
17351 auto c = [=](){ return a + b; }();
17352 auto d = [&](){ return c; }();
17353 auto e = [a, &b](int x) mutable {
17354 const auto identity = [](int y){ return y; };
17355 for (auto i = 0; i < a; ++i)
17356 a += b--;
17357 return x + identity(a + b);
17358 }(0);
17359 return a + b + c + d + e;
17360 }
17361
17362 int
17363 test3()
17364 {
17365 const auto nullary = [](){ return 0; };
17366 const auto unary = [](int x){ return x; };
17367 using nullary_t = decltype(nullary);
17368 using unary_t = decltype(unary);
17369 const auto higher1st = [](nullary_t f){ return f(); };
17370 const auto higher2nd = [unary](nullary_t f1){
17371 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17372 };
17373 return higher1st(nullary) + higher2nd(nullary)(unary);
17374 }
17375
17376 }
17377
17378 namespace test_variadic_templates
17379 {
17380
17381 template <int...>
17382 struct sum;
17383
17384 template <int N0, int... N1toN>
17385 struct sum<N0, N1toN...>
17386 {
17387 static constexpr auto value = N0 + sum<N1toN...>::value;
17388 };
17389
17390 template <>
17391 struct sum<>
17392 {
17393 static constexpr auto value = 0;
17394 };
17395
17396 static_assert(sum<>::value == 0, "");
17397 static_assert(sum<1>::value == 1, "");
17398 static_assert(sum<23>::value == 23, "");
17399 static_assert(sum<1, 2>::value == 3, "");
17400 static_assert(sum<5, 5, 11>::value == 21, "");
17401 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17402
17403 }
17404
17405 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17406 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17407 // because of this.
17408 namespace test_template_alias_sfinae
17409 {
17410
17411 struct foo {};
17412
17413 template<typename T>
17414 using member = typename T::member_type;
17415
17416 template<typename T>
17417 void func(...) {}
17418
17419 template<typename T>
17420 void func(member<T>*) {}
17421
17422 void test();
17423
17424 void test() { func<foo>(0); }
17425
17426 }
17427
17428 } // namespace cxx11
17429
17430 #endif // __cplusplus >= 201103L
17431
17432
17433
17434 _ACEOF
17435 if ac_fn_cxx_try_compile "$LINENO"; then :
17436 ax_cv_cxx_compile_cxx11=yes
17437 else
17438 ax_cv_cxx_compile_cxx11=no
17439 fi
17440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17441 fi
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17443 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17444 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17445 ac_success=yes
17446 fi
17447
17448 if test x$ac_success = xno; then
17449 for switch in -std=gnu++11 -std=gnu++0x; do
17450 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17452 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17453 if eval \${$cachevar+:} false; then :
17454 $as_echo_n "(cached) " >&6
17455 else
17456 ac_save_CXX="$CXX"
17457 CXX="$CXX $switch"
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17460
17461
17462 // If the compiler admits that it is not ready for C++11, why torture it?
17463 // Hopefully, this will speed up the test.
17464
17465 #ifndef __cplusplus
17466
17467 #error "This is not a C++ compiler"
17468
17469 #elif __cplusplus < 201103L
17470
17471 #error "This is not a C++11 compiler"
17472
17473 #else
17474
17475 namespace cxx11
17476 {
17477
17478 namespace test_static_assert
17479 {
17480
17481 template <typename T>
17482 struct check
17483 {
17484 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17485 };
17486
17487 }
17488
17489 namespace test_final_override
17490 {
17491
17492 struct Base
17493 {
17494 virtual void f() {}
17495 };
17496
17497 struct Derived : public Base
17498 {
17499 virtual void f() override {}
17500 };
17501
17502 }
17503
17504 namespace test_double_right_angle_brackets
17505 {
17506
17507 template < typename T >
17508 struct check {};
17509
17510 typedef check<void> single_type;
17511 typedef check<check<void>> double_type;
17512 typedef check<check<check<void>>> triple_type;
17513 typedef check<check<check<check<void>>>> quadruple_type;
17514
17515 }
17516
17517 namespace test_decltype
17518 {
17519
17520 int
17521 f()
17522 {
17523 int a = 1;
17524 decltype(a) b = 2;
17525 return a + b;
17526 }
17527
17528 }
17529
17530 namespace test_type_deduction
17531 {
17532
17533 template < typename T1, typename T2 >
17534 struct is_same
17535 {
17536 static const bool value = false;
17537 };
17538
17539 template < typename T >
17540 struct is_same<T, T>
17541 {
17542 static const bool value = true;
17543 };
17544
17545 template < typename T1, typename T2 >
17546 auto
17547 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17548 {
17549 return a1 + a2;
17550 }
17551
17552 int
17553 test(const int c, volatile int v)
17554 {
17555 static_assert(is_same<int, decltype(0)>::value == true, "");
17556 static_assert(is_same<int, decltype(c)>::value == false, "");
17557 static_assert(is_same<int, decltype(v)>::value == false, "");
17558 auto ac = c;
17559 auto av = v;
17560 auto sumi = ac + av + 'x';
17561 auto sumf = ac + av + 1.0;
17562 static_assert(is_same<int, decltype(ac)>::value == true, "");
17563 static_assert(is_same<int, decltype(av)>::value == true, "");
17564 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17565 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17566 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17567 return (sumf > 0.0) ? sumi : add(c, v);
17568 }
17569
17570 }
17571
17572 namespace test_noexcept
17573 {
17574
17575 int f() { return 0; }
17576 int g() noexcept { return 0; }
17577
17578 static_assert(noexcept(f()) == false, "");
17579 static_assert(noexcept(g()) == true, "");
17580
17581 }
17582
17583 namespace test_constexpr
17584 {
17585
17586 template < typename CharT >
17587 unsigned long constexpr
17588 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17589 {
17590 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17591 }
17592
17593 template < typename CharT >
17594 unsigned long constexpr
17595 strlen_c(const CharT *const s) noexcept
17596 {
17597 return strlen_c_r(s, 0UL);
17598 }
17599
17600 static_assert(strlen_c("") == 0UL, "");
17601 static_assert(strlen_c("1") == 1UL, "");
17602 static_assert(strlen_c("example") == 7UL, "");
17603 static_assert(strlen_c("another\0example") == 7UL, "");
17604
17605 }
17606
17607 namespace test_rvalue_references
17608 {
17609
17610 template < int N >
17611 struct answer
17612 {
17613 static constexpr int value = N;
17614 };
17615
17616 answer<1> f(int&) { return answer<1>(); }
17617 answer<2> f(const int&) { return answer<2>(); }
17618 answer<3> f(int&&) { return answer<3>(); }
17619
17620 void
17621 test()
17622 {
17623 int i = 0;
17624 const int c = 0;
17625 static_assert(decltype(f(i))::value == 1, "");
17626 static_assert(decltype(f(c))::value == 2, "");
17627 static_assert(decltype(f(0))::value == 3, "");
17628 }
17629
17630 }
17631
17632 namespace test_uniform_initialization
17633 {
17634
17635 struct test
17636 {
17637 static const int zero {};
17638 static const int one {1};
17639 };
17640
17641 static_assert(test::zero == 0, "");
17642 static_assert(test::one == 1, "");
17643
17644 }
17645
17646 namespace test_lambdas
17647 {
17648
17649 void
17650 test1()
17651 {
17652 auto lambda1 = [](){};
17653 auto lambda2 = lambda1;
17654 lambda1();
17655 lambda2();
17656 }
17657
17658 int
17659 test2()
17660 {
17661 auto a = [](int i, int j){ return i + j; }(1, 2);
17662 auto b = []() -> int { return '0'; }();
17663 auto c = [=](){ return a + b; }();
17664 auto d = [&](){ return c; }();
17665 auto e = [a, &b](int x) mutable {
17666 const auto identity = [](int y){ return y; };
17667 for (auto i = 0; i < a; ++i)
17668 a += b--;
17669 return x + identity(a + b);
17670 }(0);
17671 return a + b + c + d + e;
17672 }
17673
17674 int
17675 test3()
17676 {
17677 const auto nullary = [](){ return 0; };
17678 const auto unary = [](int x){ return x; };
17679 using nullary_t = decltype(nullary);
17680 using unary_t = decltype(unary);
17681 const auto higher1st = [](nullary_t f){ return f(); };
17682 const auto higher2nd = [unary](nullary_t f1){
17683 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17684 };
17685 return higher1st(nullary) + higher2nd(nullary)(unary);
17686 }
17687
17688 }
17689
17690 namespace test_variadic_templates
17691 {
17692
17693 template <int...>
17694 struct sum;
17695
17696 template <int N0, int... N1toN>
17697 struct sum<N0, N1toN...>
17698 {
17699 static constexpr auto value = N0 + sum<N1toN...>::value;
17700 };
17701
17702 template <>
17703 struct sum<>
17704 {
17705 static constexpr auto value = 0;
17706 };
17707
17708 static_assert(sum<>::value == 0, "");
17709 static_assert(sum<1>::value == 1, "");
17710 static_assert(sum<23>::value == 23, "");
17711 static_assert(sum<1, 2>::value == 3, "");
17712 static_assert(sum<5, 5, 11>::value == 21, "");
17713 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17714
17715 }
17716
17717 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17718 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17719 // because of this.
17720 namespace test_template_alias_sfinae
17721 {
17722
17723 struct foo {};
17724
17725 template<typename T>
17726 using member = typename T::member_type;
17727
17728 template<typename T>
17729 void func(...) {}
17730
17731 template<typename T>
17732 void func(member<T>*) {}
17733
17734 void test();
17735
17736 void test() { func<foo>(0); }
17737
17738 }
17739
17740 } // namespace cxx11
17741
17742 #endif // __cplusplus >= 201103L
17743
17744
17745
17746 _ACEOF
17747 if ac_fn_cxx_try_compile "$LINENO"; then :
17748 eval $cachevar=yes
17749 else
17750 eval $cachevar=no
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753 CXX="$ac_save_CXX"
17754 fi
17755 eval ac_res=\$$cachevar
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17757 $as_echo "$ac_res" >&6; }
17758 if eval test x\$$cachevar = xyes; then
17759 CXX="$CXX $switch"
17760 if test -n "$CXXCPP" ; then
17761 CXXCPP="$CXXCPP $switch"
17762 fi
17763 ac_success=yes
17764 break
17765 fi
17766 done
17767 fi
17768
17769 if test x$ac_success = xno; then
17770 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
17771 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17773 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17774 if eval \${$cachevar+:} false; then :
17775 $as_echo_n "(cached) " >&6
17776 else
17777 ac_save_CXX="$CXX"
17778 CXX="$CXX $switch"
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781
17782
17783 // If the compiler admits that it is not ready for C++11, why torture it?
17784 // Hopefully, this will speed up the test.
17785
17786 #ifndef __cplusplus
17787
17788 #error "This is not a C++ compiler"
17789
17790 #elif __cplusplus < 201103L
17791
17792 #error "This is not a C++11 compiler"
17793
17794 #else
17795
17796 namespace cxx11
17797 {
17798
17799 namespace test_static_assert
17800 {
17801
17802 template <typename T>
17803 struct check
17804 {
17805 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17806 };
17807
17808 }
17809
17810 namespace test_final_override
17811 {
17812
17813 struct Base
17814 {
17815 virtual void f() {}
17816 };
17817
17818 struct Derived : public Base
17819 {
17820 virtual void f() override {}
17821 };
17822
17823 }
17824
17825 namespace test_double_right_angle_brackets
17826 {
17827
17828 template < typename T >
17829 struct check {};
17830
17831 typedef check<void> single_type;
17832 typedef check<check<void>> double_type;
17833 typedef check<check<check<void>>> triple_type;
17834 typedef check<check<check<check<void>>>> quadruple_type;
17835
17836 }
17837
17838 namespace test_decltype
17839 {
17840
17841 int
17842 f()
17843 {
17844 int a = 1;
17845 decltype(a) b = 2;
17846 return a + b;
17847 }
17848
17849 }
17850
17851 namespace test_type_deduction
17852 {
17853
17854 template < typename T1, typename T2 >
17855 struct is_same
17856 {
17857 static const bool value = false;
17858 };
17859
17860 template < typename T >
17861 struct is_same<T, T>
17862 {
17863 static const bool value = true;
17864 };
17865
17866 template < typename T1, typename T2 >
17867 auto
17868 add(T1 a1, T2 a2) -> decltype(a1 + a2)
17869 {
17870 return a1 + a2;
17871 }
17872
17873 int
17874 test(const int c, volatile int v)
17875 {
17876 static_assert(is_same<int, decltype(0)>::value == true, "");
17877 static_assert(is_same<int, decltype(c)>::value == false, "");
17878 static_assert(is_same<int, decltype(v)>::value == false, "");
17879 auto ac = c;
17880 auto av = v;
17881 auto sumi = ac + av + 'x';
17882 auto sumf = ac + av + 1.0;
17883 static_assert(is_same<int, decltype(ac)>::value == true, "");
17884 static_assert(is_same<int, decltype(av)>::value == true, "");
17885 static_assert(is_same<int, decltype(sumi)>::value == true, "");
17886 static_assert(is_same<int, decltype(sumf)>::value == false, "");
17887 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17888 return (sumf > 0.0) ? sumi : add(c, v);
17889 }
17890
17891 }
17892
17893 namespace test_noexcept
17894 {
17895
17896 int f() { return 0; }
17897 int g() noexcept { return 0; }
17898
17899 static_assert(noexcept(f()) == false, "");
17900 static_assert(noexcept(g()) == true, "");
17901
17902 }
17903
17904 namespace test_constexpr
17905 {
17906
17907 template < typename CharT >
17908 unsigned long constexpr
17909 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17910 {
17911 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17912 }
17913
17914 template < typename CharT >
17915 unsigned long constexpr
17916 strlen_c(const CharT *const s) noexcept
17917 {
17918 return strlen_c_r(s, 0UL);
17919 }
17920
17921 static_assert(strlen_c("") == 0UL, "");
17922 static_assert(strlen_c("1") == 1UL, "");
17923 static_assert(strlen_c("example") == 7UL, "");
17924 static_assert(strlen_c("another\0example") == 7UL, "");
17925
17926 }
17927
17928 namespace test_rvalue_references
17929 {
17930
17931 template < int N >
17932 struct answer
17933 {
17934 static constexpr int value = N;
17935 };
17936
17937 answer<1> f(int&) { return answer<1>(); }
17938 answer<2> f(const int&) { return answer<2>(); }
17939 answer<3> f(int&&) { return answer<3>(); }
17940
17941 void
17942 test()
17943 {
17944 int i = 0;
17945 const int c = 0;
17946 static_assert(decltype(f(i))::value == 1, "");
17947 static_assert(decltype(f(c))::value == 2, "");
17948 static_assert(decltype(f(0))::value == 3, "");
17949 }
17950
17951 }
17952
17953 namespace test_uniform_initialization
17954 {
17955
17956 struct test
17957 {
17958 static const int zero {};
17959 static const int one {1};
17960 };
17961
17962 static_assert(test::zero == 0, "");
17963 static_assert(test::one == 1, "");
17964
17965 }
17966
17967 namespace test_lambdas
17968 {
17969
17970 void
17971 test1()
17972 {
17973 auto lambda1 = [](){};
17974 auto lambda2 = lambda1;
17975 lambda1();
17976 lambda2();
17977 }
17978
17979 int
17980 test2()
17981 {
17982 auto a = [](int i, int j){ return i + j; }(1, 2);
17983 auto b = []() -> int { return '0'; }();
17984 auto c = [=](){ return a + b; }();
17985 auto d = [&](){ return c; }();
17986 auto e = [a, &b](int x) mutable {
17987 const auto identity = [](int y){ return y; };
17988 for (auto i = 0; i < a; ++i)
17989 a += b--;
17990 return x + identity(a + b);
17991 }(0);
17992 return a + b + c + d + e;
17993 }
17994
17995 int
17996 test3()
17997 {
17998 const auto nullary = [](){ return 0; };
17999 const auto unary = [](int x){ return x; };
18000 using nullary_t = decltype(nullary);
18001 using unary_t = decltype(unary);
18002 const auto higher1st = [](nullary_t f){ return f(); };
18003 const auto higher2nd = [unary](nullary_t f1){
18004 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18005 };
18006 return higher1st(nullary) + higher2nd(nullary)(unary);
18007 }
18008
18009 }
18010
18011 namespace test_variadic_templates
18012 {
18013
18014 template <int...>
18015 struct sum;
18016
18017 template <int N0, int... N1toN>
18018 struct sum<N0, N1toN...>
18019 {
18020 static constexpr auto value = N0 + sum<N1toN...>::value;
18021 };
18022
18023 template <>
18024 struct sum<>
18025 {
18026 static constexpr auto value = 0;
18027 };
18028
18029 static_assert(sum<>::value == 0, "");
18030 static_assert(sum<1>::value == 1, "");
18031 static_assert(sum<23>::value == 23, "");
18032 static_assert(sum<1, 2>::value == 3, "");
18033 static_assert(sum<5, 5, 11>::value == 21, "");
18034 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18035
18036 }
18037
18038 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18039 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18040 // because of this.
18041 namespace test_template_alias_sfinae
18042 {
18043
18044 struct foo {};
18045
18046 template<typename T>
18047 using member = typename T::member_type;
18048
18049 template<typename T>
18050 void func(...) {}
18051
18052 template<typename T>
18053 void func(member<T>*) {}
18054
18055 void test();
18056
18057 void test() { func<foo>(0); }
18058
18059 }
18060
18061 } // namespace cxx11
18062
18063 #endif // __cplusplus >= 201103L
18064
18065
18066
18067 _ACEOF
18068 if ac_fn_cxx_try_compile "$LINENO"; then :
18069 eval $cachevar=yes
18070 else
18071 eval $cachevar=no
18072 fi
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 CXX="$ac_save_CXX"
18075 fi
18076 eval ac_res=\$$cachevar
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18078 $as_echo "$ac_res" >&6; }
18079 if eval test x\$$cachevar = xyes; then
18080 CXX="$CXX $switch"
18081 if test -n "$CXXCPP" ; then
18082 CXXCPP="$CXXCPP $switch"
18083 fi
18084 ac_success=yes
18085 break
18086 fi
18087 done
18088 fi
18089 ac_ext=cpp
18090 ac_cpp='$CXXCPP $CPPFLAGS'
18091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18094
18095 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18096 if test x$ac_success = xno; then
18097 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18098 fi
18099 fi
18100 if test x$ac_success = xno; then
18101 HAVE_CXX11=0
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18103 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18104 else
18105 HAVE_CXX11=1
18106
18107 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18108
18109 fi
18110
18111
18112
18113
18114
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
18116 $as_echo_n "checking for __attribute__((format))... " >&6; }
18117 if ${ax_cv_have_func_attribute_format+:} false; then :
18118 $as_echo_n "(cached) " >&6
18119 else
18120
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18123
18124
18125 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
18126
18127 int
18128 main ()
18129 {
18130
18131 ;
18132 return 0;
18133 }
18134
18135 _ACEOF
18136 if ac_fn_cxx_try_link "$LINENO"; then :
18137 if test -s conftest.err; then :
18138 ax_cv_have_func_attribute_format=no
18139 else
18140 ax_cv_have_func_attribute_format=yes
18141 fi
18142 else
18143 ax_cv_have_func_attribute_format=no
18144 fi
18145 rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
18150 $as_echo "$ax_cv_have_func_attribute_format" >&6; }
18151
18152 if test yes = $ax_cv_have_func_attribute_format; then :
18153
18154 cat >>confdefs.h <<_ACEOF
18155 #define HAVE_FUNC_ATTRIBUTE_FORMAT 1
18156 _ACEOF
18157
18158 fi
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18171 if test -n "$ac_tool_prefix"; then
18172 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18173 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 case $PKG_CONFIG in
18180 [\\/]* | ?:[\\/]*)
18181 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18182 ;;
18183 *)
18184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187 IFS=$as_save_IFS
18188 test -z "$as_dir" && as_dir=.
18189 for ac_exec_ext in '' $ac_executable_extensions; do
18190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 break 2
18194 fi
18195 done
18196 done
18197 IFS=$as_save_IFS
18198
18199 ;;
18200 esac
18201 fi
18202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18203 if test -n "$PKG_CONFIG"; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18205 $as_echo "$PKG_CONFIG" >&6; }
18206 else
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 fi
18210
18211
18212 fi
18213 if test -z "$ac_cv_path_PKG_CONFIG"; then
18214 ac_pt_PKG_CONFIG=$PKG_CONFIG
18215 # Extract the first word of "pkg-config", so it can be a program name with args.
18216 set dummy pkg-config; ac_word=$2
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18218 $as_echo_n "checking for $ac_word... " >&6; }
18219 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18220 $as_echo_n "(cached) " >&6
18221 else
18222 case $ac_pt_PKG_CONFIG in
18223 [\\/]* | ?:[\\/]*)
18224 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18225 ;;
18226 *)
18227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18228 for as_dir in $PATH
18229 do
18230 IFS=$as_save_IFS
18231 test -z "$as_dir" && as_dir=.
18232 for ac_exec_ext in '' $ac_executable_extensions; do
18233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18234 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18236 break 2
18237 fi
18238 done
18239 done
18240 IFS=$as_save_IFS
18241
18242 ;;
18243 esac
18244 fi
18245 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18246 if test -n "$ac_pt_PKG_CONFIG"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18248 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18249 else
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18252 fi
18253
18254 if test "x$ac_pt_PKG_CONFIG" = x; then
18255 PKG_CONFIG=""
18256 else
18257 case $cross_compiling:$ac_tool_warned in
18258 yes:)
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18261 ac_tool_warned=yes ;;
18262 esac
18263 PKG_CONFIG=$ac_pt_PKG_CONFIG
18264 fi
18265 else
18266 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18267 fi
18268
18269 fi
18270 if test -n "$PKG_CONFIG"; then
18271 _pkg_min_version=0.20
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18273 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18274 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276 $as_echo "yes" >&6; }
18277 else
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279 $as_echo "no" >&6; }
18280 PKG_CONFIG=""
18281 fi
18282 fi
18283
18284 # Extract the first word of "gperf", so it can be a program name with args.
18285 set dummy gperf; ac_word=$2
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18287 $as_echo_n "checking for $ac_word... " >&6; }
18288 if ${ac_cv_path_GPERF+:} false; then :
18289 $as_echo_n "(cached) " >&6
18290 else
18291 case $GPERF in
18292 [\\/]* | ?:[\\/]*)
18293 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
18294 ;;
18295 *)
18296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18297 for as_dir in $PATH
18298 do
18299 IFS=$as_save_IFS
18300 test -z "$as_dir" && as_dir=.
18301 for ac_exec_ext in '' $ac_executable_extensions; do
18302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18303 ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
18304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18305 break 2
18306 fi
18307 done
18308 done
18309 IFS=$as_save_IFS
18310
18311 ;;
18312 esac
18313 fi
18314 GPERF=$ac_cv_path_GPERF
18315 if test -n "$GPERF"; then
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18317 $as_echo "$GPERF" >&6; }
18318 else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320 $as_echo "no" >&6; }
18321 fi
18322
18323
18324 if test -z "$GPERF"; then :
18325 as_fn_error $? "gperf not found" "$LINENO" 5
18326 fi
18327
18328 # ====================
18329 # Find additional apps
18330 # ====================
18331
18332 pkg_failed=no
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REVENGE" >&5
18334 $as_echo_n "checking for REVENGE... " >&6; }
18335
18336 if test -n "$REVENGE_CFLAGS"; then
18337 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
18338 elif test -n "$PKG_CONFIG"; then
18339 if test -n "$PKG_CONFIG" && \
18340 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
18341 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
18342 ac_status=$?
18343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18344 test $ac_status = 0; }; then
18345 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "librevenge-0.0" 2>/dev/null`
18346 test "x$?" != "x0" && pkg_failed=yes
18347 else
18348 pkg_failed=yes
18349 fi
18350 else
18351 pkg_failed=untried
18352 fi
18353 if test -n "$REVENGE_LIBS"; then
18354 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
18355 elif test -n "$PKG_CONFIG"; then
18356 if test -n "$PKG_CONFIG" && \
18357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-0.0\""; } >&5
18358 ($PKG_CONFIG --exists --print-errors "librevenge-0.0") 2>&5
18359 ac_status=$?
18360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18361 test $ac_status = 0; }; then
18362 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "librevenge-0.0" 2>/dev/null`
18363 test "x$?" != "x0" && pkg_failed=yes
18364 else
18365 pkg_failed=yes
18366 fi
18367 else
18368 pkg_failed=untried
18369 fi
18370
18371
18372
18373 if test $pkg_failed = yes; then
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18375 $as_echo "no" >&6; }
18376
18377 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18378 _pkg_short_errors_supported=yes
18379 else
18380 _pkg_short_errors_supported=no
18381 fi
18382 if test $_pkg_short_errors_supported = yes; then
18383 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-0.0" 2>&1`
18384 else
18385 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-0.0" 2>&1`
18386 fi
18387 # Put the nasty error message in config.log where it belongs
18388 echo "$REVENGE_PKG_ERRORS" >&5
18389
18390 as_fn_error $? "Package requirements (librevenge-0.0) were not met:
18391
18392 $REVENGE_PKG_ERRORS
18393
18394 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18395 installed software in a non-standard prefix.
18396
18397 Alternatively, you may set the environment variables REVENGE_CFLAGS
18398 and REVENGE_LIBS to avoid the need to call pkg-config.
18399 See the pkg-config man page for more details." "$LINENO" 5
18400 elif test $pkg_failed = untried; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402 $as_echo "no" >&6; }
18403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18405 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18406 is in your PATH or set the PKG_CONFIG environment variable to the full
18407 path to pkg-config.
18408
18409 Alternatively, you may set the environment variables REVENGE_CFLAGS
18410 and REVENGE_LIBS to avoid the need to call pkg-config.
18411 See the pkg-config man page for more details.
18412
18413 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18414 See \`config.log' for more details" "$LINENO" 5; }
18415 else
18416 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
18417 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18419 $as_echo "yes" >&6; }
18420
18421 fi
18422
18423
18424 pkg_failed=no
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
18426 $as_echo_n "checking for XML... " >&6; }
18427
18428 if test -n "$XML_CFLAGS"; then
18429 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
18430 elif test -n "$PKG_CONFIG"; then
18431 if test -n "$PKG_CONFIG" && \
18432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18433 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
18434 ac_status=$?
18435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18436 test $ac_status = 0; }; then
18437 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
18438 test "x$?" != "x0" && pkg_failed=yes
18439 else
18440 pkg_failed=yes
18441 fi
18442 else
18443 pkg_failed=untried
18444 fi
18445 if test -n "$XML_LIBS"; then
18446 pkg_cv_XML_LIBS="$XML_LIBS"
18447 elif test -n "$PKG_CONFIG"; then
18448 if test -n "$PKG_CONFIG" && \
18449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
18450 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
18451 ac_status=$?
18452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18453 test $ac_status = 0; }; then
18454 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
18455 test "x$?" != "x0" && pkg_failed=yes
18456 else
18457 pkg_failed=yes
18458 fi
18459 else
18460 pkg_failed=untried
18461 fi
18462
18463
18464
18465 if test $pkg_failed = yes; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18467 $as_echo "no" >&6; }
18468
18469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18470 _pkg_short_errors_supported=yes
18471 else
18472 _pkg_short_errors_supported=no
18473 fi
18474 if test $_pkg_short_errors_supported = yes; then
18475 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
18476 else
18477 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
18478 fi
18479 # Put the nasty error message in config.log where it belongs
18480 echo "$XML_PKG_ERRORS" >&5
18481
18482 as_fn_error $? "Package requirements (libxml-2.0) were not met:
18483
18484 $XML_PKG_ERRORS
18485
18486 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18487 installed software in a non-standard prefix.
18488
18489 Alternatively, you may set the environment variables XML_CFLAGS
18490 and XML_LIBS to avoid the need to call pkg-config.
18491 See the pkg-config man page for more details." "$LINENO" 5
18492 elif test $pkg_failed = untried; then
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18494 $as_echo "no" >&6; }
18495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18497 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18498 is in your PATH or set the PKG_CONFIG environment variable to the full
18499 path to pkg-config.
18500
18501 Alternatively, you may set the environment variables XML_CFLAGS
18502 and XML_LIBS to avoid the need to call pkg-config.
18503 See the pkg-config man page for more details.
18504
18505 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18506 See \`config.log' for more details" "$LINENO" 5; }
18507 else
18508 XML_CFLAGS=$pkg_cv_XML_CFLAGS
18509 XML_LIBS=$pkg_cv_XML_LIBS
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18511 $as_echo "yes" >&6; }
18512
18513 fi
18514
18515
18516 pkg_failed=no
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
18518 $as_echo_n "checking for ZLIB... " >&6; }
18519
18520 if test -n "$ZLIB_CFLAGS"; then
18521 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
18522 elif test -n "$PKG_CONFIG"; then
18523 if test -n "$PKG_CONFIG" && \
18524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18525 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18526 ac_status=$?
18527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18528 test $ac_status = 0; }; then
18529 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
18530 test "x$?" != "x0" && pkg_failed=yes
18531 else
18532 pkg_failed=yes
18533 fi
18534 else
18535 pkg_failed=untried
18536 fi
18537 if test -n "$ZLIB_LIBS"; then
18538 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
18539 elif test -n "$PKG_CONFIG"; then
18540 if test -n "$PKG_CONFIG" && \
18541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
18542 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
18543 ac_status=$?
18544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18545 test $ac_status = 0; }; then
18546 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
18547 test "x$?" != "x0" && pkg_failed=yes
18548 else
18549 pkg_failed=yes
18550 fi
18551 else
18552 pkg_failed=untried
18553 fi
18554
18555
18556
18557 if test $pkg_failed = yes; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559 $as_echo "no" >&6; }
18560
18561 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18562 _pkg_short_errors_supported=yes
18563 else
18564 _pkg_short_errors_supported=no
18565 fi
18566 if test $_pkg_short_errors_supported = yes; then
18567 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
18568 else
18569 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
18570 fi
18571 # Put the nasty error message in config.log where it belongs
18572 echo "$ZLIB_PKG_ERRORS" >&5
18573
18574 as_fn_error $? "Package requirements (zlib) were not met:
18575
18576 $ZLIB_PKG_ERRORS
18577
18578 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18579 installed software in a non-standard prefix.
18580
18581 Alternatively, you may set the environment variables ZLIB_CFLAGS
18582 and ZLIB_LIBS to avoid the need to call pkg-config.
18583 See the pkg-config man page for more details." "$LINENO" 5
18584 elif test $pkg_failed = untried; then
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18586 $as_echo "no" >&6; }
18587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18589 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18590 is in your PATH or set the PKG_CONFIG environment variable to the full
18591 path to pkg-config.
18592
18593 Alternatively, you may set the environment variables ZLIB_CFLAGS
18594 and ZLIB_LIBS to avoid the need to call pkg-config.
18595 See the pkg-config man page for more details.
18596
18597 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18598 See \`config.log' for more details" "$LINENO" 5; }
18599 else
18600 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
18601 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18603 $as_echo "yes" >&6; }
18604
18605 fi
18606
18607 # ===============
18608 # Find liblangtag
18609 # ===============
18610
18611 # Check whether --with-liblangtag was given.
18612 if test "${with_liblangtag+set}" = set; then :
18613 withval=$with_liblangtag; with_liblangtag="$withval"
18614 else
18615 with_liblangtag="yes"
18616
18617 fi
18618
18619 if test "x$with_liblangtag" = "xyes"; then :
18620
18621
18622 pkg_failed=no
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LANGTAG" >&5
18624 $as_echo_n "checking for LANGTAG... " >&6; }
18625
18626 if test -n "$LANGTAG_CFLAGS"; then
18627 pkg_cv_LANGTAG_CFLAGS="$LANGTAG_CFLAGS"
18628 elif test -n "$PKG_CONFIG"; then
18629 if test -n "$PKG_CONFIG" && \
18630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblangtag\""; } >&5
18631 ($PKG_CONFIG --exists --print-errors "liblangtag") 2>&5
18632 ac_status=$?
18633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18634 test $ac_status = 0; }; then
18635 pkg_cv_LANGTAG_CFLAGS=`$PKG_CONFIG --cflags "liblangtag" 2>/dev/null`
18636 test "x$?" != "x0" && pkg_failed=yes
18637 else
18638 pkg_failed=yes
18639 fi
18640 else
18641 pkg_failed=untried
18642 fi
18643 if test -n "$LANGTAG_LIBS"; then
18644 pkg_cv_LANGTAG_LIBS="$LANGTAG_LIBS"
18645 elif test -n "$PKG_CONFIG"; then
18646 if test -n "$PKG_CONFIG" && \
18647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblangtag\""; } >&5
18648 ($PKG_CONFIG --exists --print-errors "liblangtag") 2>&5
18649 ac_status=$?
18650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18651 test $ac_status = 0; }; then
18652 pkg_cv_LANGTAG_LIBS=`$PKG_CONFIG --libs "liblangtag" 2>/dev/null`
18653 test "x$?" != "x0" && pkg_failed=yes
18654 else
18655 pkg_failed=yes
18656 fi
18657 else
18658 pkg_failed=untried
18659 fi
18660
18661
18662
18663 if test $pkg_failed = yes; then
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666
18667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18668 _pkg_short_errors_supported=yes
18669 else
18670 _pkg_short_errors_supported=no
18671 fi
18672 if test $_pkg_short_errors_supported = yes; then
18673 LANGTAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblangtag" 2>&1`
18674 else
18675 LANGTAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblangtag" 2>&1`
18676 fi
18677 # Put the nasty error message in config.log where it belongs
18678 echo "$LANGTAG_PKG_ERRORS" >&5
18679
18680 as_fn_error $? "Package requirements (liblangtag) were not met:
18681
18682 $LANGTAG_PKG_ERRORS
18683
18684 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18685 installed software in a non-standard prefix.
18686
18687 Alternatively, you may set the environment variables LANGTAG_CFLAGS
18688 and LANGTAG_LIBS to avoid the need to call pkg-config.
18689 See the pkg-config man page for more details." "$LINENO" 5
18690 elif test $pkg_failed = untried; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18695 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18696 is in your PATH or set the PKG_CONFIG environment variable to the full
18697 path to pkg-config.
18698
18699 Alternatively, you may set the environment variables LANGTAG_CFLAGS
18700 and LANGTAG_LIBS to avoid the need to call pkg-config.
18701 See the pkg-config man page for more details.
18702
18703 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18704 See \`config.log' for more details" "$LINENO" 5; }
18705 else
18706 LANGTAG_CFLAGS=$pkg_cv_LANGTAG_CFLAGS
18707 LANGTAG_LIBS=$pkg_cv_LANGTAG_LIBS
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18709 $as_echo "yes" >&6; }
18710
18711 fi
18712
18713 $as_echo "#define WITH_LIBLANGTAG 1" >>confdefs.h
18714
18715
18716 fi
18717 if test "x$with_liblangtag" = "xyes"; then
18718 WITH_LIBLANGTAG_TRUE=
18719 WITH_LIBLANGTAG_FALSE='#'
18720 else
18721 WITH_LIBLANGTAG_TRUE='#'
18722 WITH_LIBLANGTAG_FALSE=
18723 fi
18724
18725
18726 if test "x$enable_experimental" = "xyes"; then :
18727
18728 # ===========
18729 # Find libcss
18730 # ===========
18731
18732 pkg_failed=no
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CSS" >&5
18734 $as_echo_n "checking for CSS... " >&6; }
18735
18736 if test -n "$CSS_CFLAGS"; then
18737 pkg_cv_CSS_CFLAGS="$CSS_CFLAGS"
18738 elif test -n "$PKG_CONFIG"; then
18739 if test -n "$PKG_CONFIG" && \
18740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
18741 libcss >= 0.6.0
18742 libparserutils
18743 libwapcaplet
18744 \""; } >&5
18745 ($PKG_CONFIG --exists --print-errors "
18746 libcss >= 0.6.0
18747 libparserutils
18748 libwapcaplet
18749 ") 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; }; then
18753 pkg_cv_CSS_CFLAGS=`$PKG_CONFIG --cflags "
18754 libcss >= 0.6.0
18755 libparserutils
18756 libwapcaplet
18757 " 2>/dev/null`
18758 test "x$?" != "x0" && pkg_failed=yes
18759 else
18760 pkg_failed=yes
18761 fi
18762 else
18763 pkg_failed=untried
18764 fi
18765 if test -n "$CSS_LIBS"; then
18766 pkg_cv_CSS_LIBS="$CSS_LIBS"
18767 elif test -n "$PKG_CONFIG"; then
18768 if test -n "$PKG_CONFIG" && \
18769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
18770 libcss >= 0.6.0
18771 libparserutils
18772 libwapcaplet
18773 \""; } >&5
18774 ($PKG_CONFIG --exists --print-errors "
18775 libcss >= 0.6.0
18776 libparserutils
18777 libwapcaplet
18778 ") 2>&5
18779 ac_status=$?
18780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18781 test $ac_status = 0; }; then
18782 pkg_cv_CSS_LIBS=`$PKG_CONFIG --libs "
18783 libcss >= 0.6.0
18784 libparserutils
18785 libwapcaplet
18786 " 2>/dev/null`
18787 test "x$?" != "x0" && pkg_failed=yes
18788 else
18789 pkg_failed=yes
18790 fi
18791 else
18792 pkg_failed=untried
18793 fi
18794
18795
18796
18797 if test $pkg_failed = yes; then
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18799 $as_echo "no" >&6; }
18800
18801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18802 _pkg_short_errors_supported=yes
18803 else
18804 _pkg_short_errors_supported=no
18805 fi
18806 if test $_pkg_short_errors_supported = yes; then
18807 CSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
18808 libcss >= 0.6.0
18809 libparserutils
18810 libwapcaplet
18811 " 2>&1`
18812 else
18813 CSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
18814 libcss >= 0.6.0
18815 libparserutils
18816 libwapcaplet
18817 " 2>&1`
18818 fi
18819 # Put the nasty error message in config.log where it belongs
18820 echo "$CSS_PKG_ERRORS" >&5
18821
18822 as_fn_error $? "Package requirements (
18823 libcss >= 0.6.0
18824 libparserutils
18825 libwapcaplet
18826 ) were not met:
18827
18828 $CSS_PKG_ERRORS
18829
18830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18831 installed software in a non-standard prefix.
18832
18833 Alternatively, you may set the environment variables CSS_CFLAGS
18834 and CSS_LIBS to avoid the need to call pkg-config.
18835 See the pkg-config man page for more details." "$LINENO" 5
18836 elif test $pkg_failed = untried; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838 $as_echo "no" >&6; }
18839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18841 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18842 is in your PATH or set the PKG_CONFIG environment variable to the full
18843 path to pkg-config.
18844
18845 Alternatively, you may set the environment variables CSS_CFLAGS
18846 and CSS_LIBS to avoid the need to call pkg-config.
18847 See the pkg-config man page for more details.
18848
18849 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18850 See \`config.log' for more details" "$LINENO" 5; }
18851 else
18852 CSS_CFLAGS=$pkg_cv_CSS_CFLAGS
18853 CSS_LIBS=$pkg_cv_CSS_LIBS
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18855 $as_echo "yes" >&6; }
18856
18857 fi
18858
18859 # ===========
18860 # Find hubbub
18861 # ===========
18862
18863 pkg_failed=no
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUBBUB" >&5
18865 $as_echo_n "checking for HUBBUB... " >&6; }
18866
18867 if test -n "$HUBBUB_CFLAGS"; then
18868 pkg_cv_HUBBUB_CFLAGS="$HUBBUB_CFLAGS"
18869 elif test -n "$PKG_CONFIG"; then
18870 if test -n "$PKG_CONFIG" && \
18871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhubbub >= 0.3.0\""; } >&5
18872 ($PKG_CONFIG --exists --print-errors "libhubbub >= 0.3.0") 2>&5
18873 ac_status=$?
18874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18875 test $ac_status = 0; }; then
18876 pkg_cv_HUBBUB_CFLAGS=`$PKG_CONFIG --cflags "libhubbub >= 0.3.0" 2>/dev/null`
18877 test "x$?" != "x0" && pkg_failed=yes
18878 else
18879 pkg_failed=yes
18880 fi
18881 else
18882 pkg_failed=untried
18883 fi
18884 if test -n "$HUBBUB_LIBS"; then
18885 pkg_cv_HUBBUB_LIBS="$HUBBUB_LIBS"
18886 elif test -n "$PKG_CONFIG"; then
18887 if test -n "$PKG_CONFIG" && \
18888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhubbub >= 0.3.0\""; } >&5
18889 ($PKG_CONFIG --exists --print-errors "libhubbub >= 0.3.0") 2>&5
18890 ac_status=$?
18891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18892 test $ac_status = 0; }; then
18893 pkg_cv_HUBBUB_LIBS=`$PKG_CONFIG --libs "libhubbub >= 0.3.0" 2>/dev/null`
18894 test "x$?" != "x0" && pkg_failed=yes
18895 else
18896 pkg_failed=yes
18897 fi
18898 else
18899 pkg_failed=untried
18900 fi
18901
18902
18903
18904 if test $pkg_failed = yes; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906 $as_echo "no" >&6; }
18907
18908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18909 _pkg_short_errors_supported=yes
18910 else
18911 _pkg_short_errors_supported=no
18912 fi
18913 if test $_pkg_short_errors_supported = yes; then
18914 HUBBUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhubbub >= 0.3.0" 2>&1`
18915 else
18916 HUBBUB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhubbub >= 0.3.0" 2>&1`
18917 fi
18918 # Put the nasty error message in config.log where it belongs
18919 echo "$HUBBUB_PKG_ERRORS" >&5
18920
18921 as_fn_error $? "Package requirements (libhubbub >= 0.3.0) were not met:
18922
18923 $HUBBUB_PKG_ERRORS
18924
18925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18926 installed software in a non-standard prefix.
18927
18928 Alternatively, you may set the environment variables HUBBUB_CFLAGS
18929 and HUBBUB_LIBS to avoid the need to call pkg-config.
18930 See the pkg-config man page for more details." "$LINENO" 5
18931 elif test $pkg_failed = untried; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18933 $as_echo "no" >&6; }
18934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18937 is in your PATH or set the PKG_CONFIG environment variable to the full
18938 path to pkg-config.
18939
18940 Alternatively, you may set the environment variables HUBBUB_CFLAGS
18941 and HUBBUB_LIBS to avoid the need to call pkg-config.
18942 See the pkg-config man page for more details.
18943
18944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18945 See \`config.log' for more details" "$LINENO" 5; }
18946 else
18947 HUBBUB_CFLAGS=$pkg_cv_HUBBUB_CFLAGS
18948 HUBBUB_LIBS=$pkg_cv_HUBBUB_LIBS
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18950 $as_echo "yes" >&6; }
18951
18952 fi
18953
18954 # ==============
18955 # Find libmspack
18956 # ==============
18957
18958 pkg_failed=no
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSPACK" >&5
18960 $as_echo_n "checking for MSPACK... " >&6; }
18961
18962 if test -n "$MSPACK_CFLAGS"; then
18963 pkg_cv_MSPACK_CFLAGS="$MSPACK_CFLAGS"
18964 elif test -n "$PKG_CONFIG"; then
18965 if test -n "$PKG_CONFIG" && \
18966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack\""; } >&5
18967 ($PKG_CONFIG --exists --print-errors "libmspack") 2>&5
18968 ac_status=$?
18969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18970 test $ac_status = 0; }; then
18971 pkg_cv_MSPACK_CFLAGS=`$PKG_CONFIG --cflags "libmspack" 2>/dev/null`
18972 test "x$?" != "x0" && pkg_failed=yes
18973 else
18974 pkg_failed=yes
18975 fi
18976 else
18977 pkg_failed=untried
18978 fi
18979 if test -n "$MSPACK_LIBS"; then
18980 pkg_cv_MSPACK_LIBS="$MSPACK_LIBS"
18981 elif test -n "$PKG_CONFIG"; then
18982 if test -n "$PKG_CONFIG" && \
18983 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack\""; } >&5
18984 ($PKG_CONFIG --exists --print-errors "libmspack") 2>&5
18985 ac_status=$?
18986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18987 test $ac_status = 0; }; then
18988 pkg_cv_MSPACK_LIBS=`$PKG_CONFIG --libs "libmspack" 2>/dev/null`
18989 test "x$?" != "x0" && pkg_failed=yes
18990 else
18991 pkg_failed=yes
18992 fi
18993 else
18994 pkg_failed=untried
18995 fi
18996
18997
18998
18999 if test $pkg_failed = yes; then
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19002
19003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19004 _pkg_short_errors_supported=yes
19005 else
19006 _pkg_short_errors_supported=no
19007 fi
19008 if test $_pkg_short_errors_supported = yes; then
19009 MSPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmspack" 2>&1`
19010 else
19011 MSPACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmspack" 2>&1`
19012 fi
19013 # Put the nasty error message in config.log where it belongs
19014 echo "$MSPACK_PKG_ERRORS" >&5
19015
19016 as_fn_error $? "Package requirements (libmspack) were not met:
19017
19018 $MSPACK_PKG_ERRORS
19019
19020 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19021 installed software in a non-standard prefix.
19022
19023 Alternatively, you may set the environment variables MSPACK_CFLAGS
19024 and MSPACK_LIBS to avoid the need to call pkg-config.
19025 See the pkg-config man page for more details." "$LINENO" 5
19026 elif test $pkg_failed = untried; then
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19028 $as_echo "no" >&6; }
19029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19031 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19032 is in your PATH or set the PKG_CONFIG environment variable to the full
19033 path to pkg-config.
19034
19035 Alternatively, you may set the environment variables MSPACK_CFLAGS
19036 and MSPACK_LIBS to avoid the need to call pkg-config.
19037 See the pkg-config man page for more details.
19038
19039 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19040 See \`config.log' for more details" "$LINENO" 5; }
19041 else
19042 MSPACK_CFLAGS=$pkg_cv_MSPACK_CFLAGS
19043 MSPACK_LIBS=$pkg_cv_MSPACK_LIBS
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19045 $as_echo "yes" >&6; }
19046
19047 fi
19048
19049 REQUIRES_EXPERIMENTAL="libcss libhubbub libmspack"
19050
19051 ENABLE_EXPERIMENTAL=YES
19052
19053 fi
19054
19055
19056 if test "x$enable_experimental" = "xyes"; then
19057 ENABLE_EXPERIMENTAL_TRUE=
19058 ENABLE_EXPERIMENTAL_FALSE='#'
19059 else
19060 ENABLE_EXPERIMENTAL_TRUE='#'
19061 ENABLE_EXPERIMENTAL_FALSE=
19062 fi
19063
19064
19065 # ==================
19066 # Find boost headers
19067 # ==================
19068 saved_CPPFLAGS="${CPPFLAGS}"
19069 CPPFLAGS="${BOOST_CFLAGS} ${CPPFLAGS}"
19070 for ac_header in boost/algorithm/string/classification.hpp \
19071 boost/algorithm/string/predicate.hpp \
19072 boost/algorithm/string/split.hpp \
19073 boost/cstdint.hpp \
19074 boost/fusion/include/std_pair.hpp \
19075 boost/intrusive_ptr.hpp \
19076 boost/numeric/conversion/cast.hpp \
19077 boost/optional.hpp \
19078 boost/spirit/include/qi.hpp \
19079 boost/variant.hpp \
19080
19081 do :
19082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19083 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19084
19085 "
19086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19087 cat >>confdefs.h <<_ACEOF
19088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19089 _ACEOF
19090
19091 else
19092 as_fn_error $? "Required boost headers not found." "$LINENO" 5
19093 fi
19094
19095 done
19096
19097 CPPFLAGS="${saved_CPPFLAGS}"
19098
19099
19100 # ========
19101 # Find icu
19102 # ========
19103
19104 pkg_failed=no
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
19106 $as_echo_n "checking for ICU... " >&6; }
19107
19108 if test -n "$ICU_CFLAGS"; then
19109 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
19110 elif test -n "$PKG_CONFIG"; then
19111 if test -n "$PKG_CONFIG" && \
19112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
19113 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
19114 ac_status=$?
19115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19116 test $ac_status = 0; }; then
19117 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
19118 test "x$?" != "x0" && pkg_failed=yes
19119 else
19120 pkg_failed=yes
19121 fi
19122 else
19123 pkg_failed=untried
19124 fi
19125 if test -n "$ICU_LIBS"; then
19126 pkg_cv_ICU_LIBS="$ICU_LIBS"
19127 elif test -n "$PKG_CONFIG"; then
19128 if test -n "$PKG_CONFIG" && \
19129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
19130 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
19131 ac_status=$?
19132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19133 test $ac_status = 0; }; then
19134 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
19135 test "x$?" != "x0" && pkg_failed=yes
19136 else
19137 pkg_failed=yes
19138 fi
19139 else
19140 pkg_failed=untried
19141 fi
19142
19143
19144
19145 if test $pkg_failed = yes; then
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19147 $as_echo "no" >&6; }
19148
19149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19150 _pkg_short_errors_supported=yes
19151 else
19152 _pkg_short_errors_supported=no
19153 fi
19154 if test $_pkg_short_errors_supported = yes; then
19155 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
19156 else
19157 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
19158 fi
19159 # Put the nasty error message in config.log where it belongs
19160 echo "$ICU_PKG_ERRORS" >&5
19161
19162 as_fn_error $? "Package requirements (icu-i18n) were not met:
19163
19164 $ICU_PKG_ERRORS
19165
19166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19167 installed software in a non-standard prefix.
19168
19169 Alternatively, you may set the environment variables ICU_CFLAGS
19170 and ICU_LIBS to avoid the need to call pkg-config.
19171 See the pkg-config man page for more details." "$LINENO" 5
19172 elif test $pkg_failed = untried; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19174 $as_echo "no" >&6; }
19175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19177 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19178 is in your PATH or set the PKG_CONFIG environment variable to the full
19179 path to pkg-config.
19180
19181 Alternatively, you may set the environment variables ICU_CFLAGS
19182 and ICU_LIBS to avoid the need to call pkg-config.
19183 See the pkg-config man page for more details.
19184
19185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19186 See \`config.log' for more details" "$LINENO" 5; }
19187 else
19188 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
19189 ICU_LIBS=$pkg_cv_ICU_LIBS
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19191 $as_echo "yes" >&6; }
19192
19193 fi
19194
19195
19196
19197 # =================================
19198 # Libtool/Version Makefile settings
19199 # =================================
19200 EBOOK_MAJOR_VERSION=0
19201
19202 EBOOK_MINOR_VERSION=1
19203
19204 EBOOK_MICRO_VERSION=3
19205
19206 EBOOK_VERSION=0.1.3
19207
19208 # AC_SUBST(LT_RELEASE, [libe_book_version_major.libe_book_version_minor])
19209 LT_CURRENT=`expr 100 '*' 0 + 1`
19210 # For 1.0.0 comment the first line and uncomment the second
19211 LT_AGE=0
19212 # LT_AGE=libe_book_version_minor
19213
19214 LT_REVISION=3
19215
19216
19217
19218 # ==========================
19219 # Platform check for windows
19220 # ==========================
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19222 $as_echo_n "checking for native Win32... " >&6; }
19223 case $host in #(
19224 *-*-mingw*) :
19225
19226 native_win32=yes
19227 LIBEBOOK_WIN32_RESOURCE=libe-book-win32res.lo
19228 EBOOK2HTML_WIN32_RESOURCE=ebook2html-win32res.lo
19229 EBOOK2RAW_WIN32_RESOURCE=ebook2raw-win32res.lo
19230 EBOOK2TEXT_WIN32_RESOURCE=ebook2raw-win32res.lo
19231 ;; #(
19232 *) :
19233
19234 native_win32=no
19235 LIBEBOOK_WIN32_RESOURCE=
19236 EBOOK2HTML_WIN32_RESOURCE=
19237 EBOOK2RAW_WIN32_RESOURCE=
19238 EBOOK2TEXT_WIN32_RESOURCE=
19239
19240 ;;
19241 esac
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
19243 $as_echo "$native_win32" >&6; }
19244 if test "x$native_win32" = "xyes"; then
19245 OS_WIN32_TRUE=
19246 OS_WIN32_FALSE='#'
19247 else
19248 OS_WIN32_TRUE='#'
19249 OS_WIN32_FALSE=
19250 fi
19251
19252
19253
19254
19255
19256
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
19258 $as_echo_n "checking for Win32 platform in general... " >&6; }
19259 case $host in #(
19260 *-*-mingw*|*-*-cygwin*) :
19261 platform_win32=yes ;; #(
19262 *) :
19263 platform_win32=no
19264 ;;
19265 esac
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
19267 $as_echo "$platform_win32" >&6; }
19268 if test "x$platform_win32" = "xyes"; then
19269 PLATFORM_WIN32_TRUE=
19270 PLATFORM_WIN32_FALSE='#'
19271 else
19272 PLATFORM_WIN32_TRUE='#'
19273 PLATFORM_WIN32_FALSE=
19274 fi
19275
19276
19277 if test "x$platform_win32" = "xyes"; then :
19278
19279 else
19280
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
19282 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
19283 saved_CXXFLAGS="$CXXFLAGS"
19284 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19287
19288 int
19289 main ()
19290 {
19291
19292 ;
19293 return 0;
19294 }
19295 _ACEOF
19296 if ac_fn_cxx_try_compile "$LINENO"; then :
19297
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299 $as_echo "yes" >&6; }
19300 CXXFLAGS="$CXXFLAGS -DLIBE_BOOK_VISIBILITY"
19301
19302 else
19303
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19306 CXXFLAGS="$saved_CXXFLAGS"
19307
19308
19309 fi
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311
19312
19313 fi
19314
19315 # ================
19316 # Check for cflags
19317 # ================
19318 # Check whether --enable-werror was given.
19319 if test "${enable_werror+set}" = set; then :
19320 enableval=$enable_werror; enable_werror="$enableval"
19321 else
19322 enable_werror=no
19323
19324 fi
19325
19326 if test x"$enable_werror" != "xno"; then :
19327
19328 CFLAGS="$CFLAGS -Werror"
19329 CXXFLAGS="$CXXFLAGS -Werror"
19330
19331 fi
19332 # Check whether --enable-weffc was given.
19333 if test "${enable_weffc+set}" = set; then :
19334 enableval=$enable_weffc; enable_weffc="$enableval"
19335 else
19336 enable_weffc=yes
19337
19338 fi
19339
19340 # Check whether --enable-wparanoic was given.
19341 if test "${enable_wparanoic+set}" = set; then :
19342 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
19343 else
19344 enable_wparanoic=no
19345
19346 fi
19347
19348 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
19349 # is used when compiling for Win32 with gcc.
19350 if test "x$native_win32" = "xyes"; then :
19351
19352 if test -n "$ac_tool_prefix"; then
19353 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19354 set dummy ${ac_tool_prefix}windres; ac_word=$2
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19356 $as_echo_n "checking for $ac_word... " >&6; }
19357 if ${ac_cv_prog_WINDRES+:} false; then :
19358 $as_echo_n "(cached) " >&6
19359 else
19360 if test -n "$WINDRES"; then
19361 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19362 else
19363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19364 for as_dir in $PATH
19365 do
19366 IFS=$as_save_IFS
19367 test -z "$as_dir" && as_dir=.
19368 for ac_exec_ext in '' $ac_executable_extensions; do
19369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19370 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19372 break 2
19373 fi
19374 done
19375 done
19376 IFS=$as_save_IFS
19377
19378 fi
19379 fi
19380 WINDRES=$ac_cv_prog_WINDRES
19381 if test -n "$WINDRES"; then
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19383 $as_echo "$WINDRES" >&6; }
19384 else
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19386 $as_echo "no" >&6; }
19387 fi
19388
19389
19390 fi
19391 if test -z "$ac_cv_prog_WINDRES"; then
19392 ac_ct_WINDRES=$WINDRES
19393 # Extract the first word of "windres", so it can be a program name with args.
19394 set dummy windres; ac_word=$2
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19396 $as_echo_n "checking for $ac_word... " >&6; }
19397 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19398 $as_echo_n "(cached) " >&6
19399 else
19400 if test -n "$ac_ct_WINDRES"; then
19401 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19402 else
19403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19404 for as_dir in $PATH
19405 do
19406 IFS=$as_save_IFS
19407 test -z "$as_dir" && as_dir=.
19408 for ac_exec_ext in '' $ac_executable_extensions; do
19409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19410 ac_cv_prog_ac_ct_WINDRES="windres"
19411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19412 break 2
19413 fi
19414 done
19415 done
19416 IFS=$as_save_IFS
19417
19418 fi
19419 fi
19420 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19421 if test -n "$ac_ct_WINDRES"; then
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19423 $as_echo "$ac_ct_WINDRES" >&6; }
19424 else
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426 $as_echo "no" >&6; }
19427 fi
19428
19429 if test "x$ac_ct_WINDRES" = x; then
19430 WINDRES=""
19431 else
19432 case $cross_compiling:$ac_tool_warned in
19433 yes:)
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19436 ac_tool_warned=yes ;;
19437 esac
19438 WINDRES=$ac_ct_WINDRES
19439 fi
19440 else
19441 WINDRES="$ac_cv_prog_WINDRES"
19442 fi
19443
19444 if test x"$GCC" = xyes; then :
19445
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
19447 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
19448 if test -z "$ac_cv_prog_CC"; then :
19449
19450 our_gcc="$CC"
19451
19452 else
19453
19454 our_gcc="$ac_cv_prog_CC"
19455
19456 fi
19457 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then :
19458
19459 msnative_struct="-mms-bitfields"
19460 CFLAGS="$CFLAGS $msnative_struct"
19461 CXXFLAGS="$CXXFLAGS $msnative_struct"
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
19463 $as_echo "${msnative_struct}" >&6; }
19464
19465 else
19466
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
19468 $as_echo "no way" >&6; }
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
19470 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
19471
19472 fi
19473
19474 fi
19475 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
19476 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
19477
19478 else
19479
19480 if test x"$GCC" = xyes; then :
19481
19482 # Be tough with warnings and produce less careless code
19483 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
19484 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
19485 if test x"$enable_weffc" != "xno"; then :
19486
19487 CXXFLAGS="$CXXFLAGS -Weffc++"
19488
19489 fi
19490 if test x"$enable_wparanoic" != "xno"; then :
19491
19492 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
19493 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
19494 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
19495 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
19496 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
19497 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
19498 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
19499 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
19500 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
19501 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
19502 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
19503 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
19504 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
19505 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
19506 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
19507
19508 fi
19509
19510 fi
19511
19512 fi
19513
19514
19515 # ============
19516 # Debug switch
19517 # ============
19518 # Check whether --enable-debug was given.
19519 if test "${enable_debug+set}" = set; then :
19520 enableval=$enable_debug; enable_debug="$enableval"
19521 else
19522 enable_debug=no
19523
19524 fi
19525
19526 if test "x$enable_debug" = "xyes"; then :
19527
19528 DEBUG_CXXFLAGS="-DDEBUG -g"
19529 CXXFLAGS="$CXXFLAGS -O0"
19530 CFLAGS="$CFLAGS -O0"
19531
19532 else
19533
19534 DEBUG_CXXFLAGS="-DNDEBUG"
19535
19536 fi
19537
19538
19539 # ==========
19540 # Unit tests
19541 # ==========
19542 # Check whether --enable-tests was given.
19543 if test "${enable_tests+set}" = set; then :
19544 enableval=$enable_tests; enable_tests="$enableval"
19545 else
19546 enable_tests=yes
19547
19548 fi
19549
19550 if test "x$enable_tests" = "xyes"; then :
19551
19552
19553 pkg_failed=no
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
19555 $as_echo_n "checking for CPPUNIT... " >&6; }
19556
19557 if test -n "$CPPUNIT_CFLAGS"; then
19558 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
19559 elif test -n "$PKG_CONFIG"; then
19560 if test -n "$PKG_CONFIG" && \
19561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
19562 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
19563 ac_status=$?
19564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565 test $ac_status = 0; }; then
19566 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
19567 test "x$?" != "x0" && pkg_failed=yes
19568 else
19569 pkg_failed=yes
19570 fi
19571 else
19572 pkg_failed=untried
19573 fi
19574 if test -n "$CPPUNIT_LIBS"; then
19575 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
19576 elif test -n "$PKG_CONFIG"; then
19577 if test -n "$PKG_CONFIG" && \
19578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
19579 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
19580 ac_status=$?
19581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19582 test $ac_status = 0; }; then
19583 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
19584 test "x$?" != "x0" && pkg_failed=yes
19585 else
19586 pkg_failed=yes
19587 fi
19588 else
19589 pkg_failed=untried
19590 fi
19591
19592
19593
19594 if test $pkg_failed = yes; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596 $as_echo "no" >&6; }
19597
19598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19599 _pkg_short_errors_supported=yes
19600 else
19601 _pkg_short_errors_supported=no
19602 fi
19603 if test $_pkg_short_errors_supported = yes; then
19604 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
19605 else
19606 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
19607 fi
19608 # Put the nasty error message in config.log where it belongs
19609 echo "$CPPUNIT_PKG_ERRORS" >&5
19610
19611 as_fn_error $? "Package requirements (cppunit) were not met:
19612
19613 $CPPUNIT_PKG_ERRORS
19614
19615 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19616 installed software in a non-standard prefix.
19617
19618 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
19619 and CPPUNIT_LIBS to avoid the need to call pkg-config.
19620 See the pkg-config man page for more details." "$LINENO" 5
19621 elif test $pkg_failed = untried; then
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19623 $as_echo "no" >&6; }
19624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19626 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19627 is in your PATH or set the PKG_CONFIG environment variable to the full
19628 path to pkg-config.
19629
19630 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
19631 and CPPUNIT_LIBS to avoid the need to call pkg-config.
19632 See the pkg-config man page for more details.
19633
19634 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19635 See \`config.log' for more details" "$LINENO" 5; }
19636 else
19637 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
19638 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19640 $as_echo "yes" >&6; }
19641
19642 fi
19643
19644 fi
19645
19646
19647 if test "x$enable_tests" = "xyes"; then
19648 WITH_LIBEBOOK_TESTS_TRUE=
19649 WITH_LIBEBOOK_TESTS_FALSE='#'
19650 else
19651 WITH_LIBEBOOK_TESTS_TRUE='#'
19652 WITH_LIBEBOOK_TESTS_FALSE=
19653 fi
19654
19655 if test "x$enable_tests" = "xyes"; then :
19656 need_stream=yes
19657 fi
19658
19659 # =============
19660 # Documentation
19661 # =============
19662
19663 # Check whether --with-docs was given.
19664 if test "${with_docs+set}" = set; then :
19665 withval=$with_docs; with_docs="$withval"
19666 else
19667 if test "x$native_win32" = "xyes"; then :
19668 with_docs=no
19669 else
19670 with_docs=yes
19671 fi
19672
19673 fi
19674
19675 if test "x$with_docs" != "xno"; then :
19676
19677 # Extract the first word of "doxygen", so it can be a program name with args.
19678 set dummy doxygen; ac_word=$2
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19680 $as_echo_n "checking for $ac_word... " >&6; }
19681 if ${ac_cv_path_DOXYGEN+:} false; then :
19682 $as_echo_n "(cached) " >&6
19683 else
19684 case $DOXYGEN in
19685 [\\/]* | ?:[\\/]*)
19686 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19687 ;;
19688 *)
19689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19690 for as_dir in $PATH
19691 do
19692 IFS=$as_save_IFS
19693 test -z "$as_dir" && as_dir=.
19694 for ac_exec_ext in '' $ac_executable_extensions; do
19695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19696 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19698 break 2
19699 fi
19700 done
19701 done
19702 IFS=$as_save_IFS
19703
19704 ;;
19705 esac
19706 fi
19707 DOXYGEN=$ac_cv_path_DOXYGEN
19708 if test -n "$DOXYGEN"; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19710 $as_echo "$DOXYGEN" >&6; }
19711 else
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19713 $as_echo "no" >&6; }
19714 fi
19715
19716
19717 if test -z "$DOXYGEN"; then :
19718
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
19720 $as_echo "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
19722 $as_echo "$as_me: WARNING: *** The documentation will not be built." >&2;}
19723 build_docs=no
19724
19725 else
19726 build_docs=yes
19727 fi
19728
19729 else
19730 build_docs=no
19731 fi
19732 if test "x$build_docs" != "xno"; then
19733 WITH_LIBEBOOK_DOCS_TRUE=
19734 WITH_LIBEBOOK_DOCS_FALSE='#'
19735 else
19736 WITH_LIBEBOOK_DOCS_TRUE='#'
19737 WITH_LIBEBOOK_DOCS_FALSE=
19738 fi
19739
19740
19741 # ================
19742 # Conversion tools
19743 # ================
19744
19745 # Check whether --with-tools was given.
19746 if test "${with_tools+set}" = set; then :
19747 withval=$with_tools; with_tools="$withval"
19748 else
19749 if test "x$native_win32" = "xyes"; then :
19750 with_tools=no
19751 else
19752 with_tools=yes
19753 fi
19754
19755 fi
19756
19757 if test "x$with_tools" != "xno"; then
19758 WITH_LIBEBOOK_TOOLS_TRUE=
19759 WITH_LIBEBOOK_TOOLS_FALSE='#'
19760 else
19761 WITH_LIBEBOOK_TOOLS_TRUE='#'
19762 WITH_LIBEBOOK_TOOLS_FALSE=
19763 fi
19764
19765 if test "x$with_tools" = "xyes"; then :
19766 need_stream=yes; need_generators=yes
19767 fi
19768
19769 # =======
19770 # Fuzzers
19771 # =======
19772 # Check whether --enable-fuzzers was given.
19773 if test "${enable_fuzzers+set}" = set; then :
19774 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
19775 else
19776 enable_fuzzers=no
19777
19778 fi
19779
19780 if test "x$enable_fuzzers" = "xyes"; then
19781 BUILD_FUZZERS_TRUE=
19782 BUILD_FUZZERS_FALSE='#'
19783 else
19784 BUILD_FUZZERS_TRUE='#'
19785 BUILD_FUZZERS_FALSE=
19786 fi
19787
19788 if test "x$enable_fuzzers" = "xyes"; then :
19789 need_stream=yes; need_generators=yes
19790 fi
19791
19792 if test "x$need_generators" = "xyes"; then :
19793
19794
19795 pkg_failed=no
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REVENGE_GENERATORS" >&5
19797 $as_echo_n "checking for REVENGE_GENERATORS... " >&6; }
19798
19799 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
19800 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
19801 elif test -n "$PKG_CONFIG"; then
19802 if test -n "$PKG_CONFIG" && \
19803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
19804 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
19805 ac_status=$?
19806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19807 test $ac_status = 0; }; then
19808 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags "librevenge-generators-0.0" 2>/dev/null`
19809 test "x$?" != "x0" && pkg_failed=yes
19810 else
19811 pkg_failed=yes
19812 fi
19813 else
19814 pkg_failed=untried
19815 fi
19816 if test -n "$REVENGE_GENERATORS_LIBS"; then
19817 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
19818 elif test -n "$PKG_CONFIG"; then
19819 if test -n "$PKG_CONFIG" && \
19820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-generators-0.0\""; } >&5
19821 ($PKG_CONFIG --exists --print-errors "librevenge-generators-0.0") 2>&5
19822 ac_status=$?
19823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19824 test $ac_status = 0; }; then
19825 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs "librevenge-generators-0.0" 2>/dev/null`
19826 test "x$?" != "x0" && pkg_failed=yes
19827 else
19828 pkg_failed=yes
19829 fi
19830 else
19831 pkg_failed=untried
19832 fi
19833
19834
19835
19836 if test $pkg_failed = yes; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838 $as_echo "no" >&6; }
19839
19840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19841 _pkg_short_errors_supported=yes
19842 else
19843 _pkg_short_errors_supported=no
19844 fi
19845 if test $_pkg_short_errors_supported = yes; then
19846 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
19847 else
19848 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-generators-0.0" 2>&1`
19849 fi
19850 # Put the nasty error message in config.log where it belongs
19851 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
19852
19853 as_fn_error $? "Package requirements (librevenge-generators-0.0) were not met:
19854
19855 $REVENGE_GENERATORS_PKG_ERRORS
19856
19857 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19858 installed software in a non-standard prefix.
19859
19860 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
19861 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
19862 See the pkg-config man page for more details." "$LINENO" 5
19863 elif test $pkg_failed = untried; then
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19865 $as_echo "no" >&6; }
19866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19868 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19869 is in your PATH or set the PKG_CONFIG environment variable to the full
19870 path to pkg-config.
19871
19872 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
19873 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
19874 See the pkg-config man page for more details.
19875
19876 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19877 See \`config.log' for more details" "$LINENO" 5; }
19878 else
19879 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
19880 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19882 $as_echo "yes" >&6; }
19883
19884 fi
19885
19886 fi
19887 if test "x$need_stream" = "xyes"; then :
19888
19889
19890 pkg_failed=no
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for REVENGE_STREAM" >&5
19892 $as_echo_n "checking for REVENGE_STREAM... " >&6; }
19893
19894 if test -n "$REVENGE_STREAM_CFLAGS"; then
19895 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
19896 elif test -n "$PKG_CONFIG"; then
19897 if test -n "$PKG_CONFIG" && \
19898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
19899 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
19900 ac_status=$?
19901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19902 test $ac_status = 0; }; then
19903 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags "librevenge-stream-0.0" 2>/dev/null`
19904 test "x$?" != "x0" && pkg_failed=yes
19905 else
19906 pkg_failed=yes
19907 fi
19908 else
19909 pkg_failed=untried
19910 fi
19911 if test -n "$REVENGE_STREAM_LIBS"; then
19912 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
19913 elif test -n "$PKG_CONFIG"; then
19914 if test -n "$PKG_CONFIG" && \
19915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librevenge-stream-0.0\""; } >&5
19916 ($PKG_CONFIG --exists --print-errors "librevenge-stream-0.0") 2>&5
19917 ac_status=$?
19918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19919 test $ac_status = 0; }; then
19920 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs "librevenge-stream-0.0" 2>/dev/null`
19921 test "x$?" != "x0" && pkg_failed=yes
19922 else
19923 pkg_failed=yes
19924 fi
19925 else
19926 pkg_failed=untried
19927 fi
19928
19929
19930
19931 if test $pkg_failed = yes; then
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19933 $as_echo "no" >&6; }
19934
19935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19936 _pkg_short_errors_supported=yes
19937 else
19938 _pkg_short_errors_supported=no
19939 fi
19940 if test $_pkg_short_errors_supported = yes; then
19941 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
19942 else
19943 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librevenge-stream-0.0" 2>&1`
19944 fi
19945 # Put the nasty error message in config.log where it belongs
19946 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
19947
19948 as_fn_error $? "Package requirements (librevenge-stream-0.0) were not met:
19949
19950 $REVENGE_STREAM_PKG_ERRORS
19951
19952 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19953 installed software in a non-standard prefix.
19954
19955 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
19956 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
19957 See the pkg-config man page for more details." "$LINENO" 5
19958 elif test $pkg_failed = untried; then
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 $as_echo "no" >&6; }
19961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19963 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19964 is in your PATH or set the PKG_CONFIG environment variable to the full
19965 path to pkg-config.
19966
19967 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
19968 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
19969 See the pkg-config man page for more details.
19970
19971 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19972 See \`config.log' for more details" "$LINENO" 5; }
19973 else
19974 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
19975 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19977 $as_echo "yes" >&6; }
19978
19979 fi
19980
19981 fi
19982
19983 # =====================
19984 # Prepare all .in files
19985 # =====================
19986 ac_config_files="$ac_config_files Makefile data/Makefile inc/Makefile inc/libe-book/Makefile src/Makefile src/conv/Makefile src/conv/html/Makefile src/conv/html/ebook2html.rc src/conv/raw/Makefile src/conv/raw/ebook2raw.rc src/conv/text/Makefile src/conv/text/ebook2text.rc src/fuzz/Makefile src/lib/Makefile src/lib/libe-book.rc src/test/Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile libe-book-$EBOOK_MAJOR_VERSION.$EBOOK_MINOR_VERSION.pc:libe-book.pc.in"
19987
19988 cat >confcache <<\_ACEOF
19989 # This file is a shell script that caches the results of configure
19990 # tests run on this system so they can be shared between configure
19991 # scripts and configure runs, see configure's option --config-cache.
19992 # It is not useful on other systems. If it contains results you don't
19993 # want to keep, you may remove or edit it.
19994 #
19995 # config.status only pays attention to the cache file if you give it
19996 # the --recheck option to rerun configure.
19997 #
19998 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19999 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20000 # following values.
20001
20002 _ACEOF
20003
20004 # The following way of writing the cache mishandles newlines in values,
20005 # but we know of no workaround that is simple, portable, and efficient.
20006 # So, we kill variables containing newlines.
20007 # Ultrix sh set writes to stderr and can't be redirected directly,
20008 # and sets the high bit in the cache file unless we assign to the vars.
20009 (
20010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20011 eval ac_val=\$$ac_var
20012 case $ac_val in #(
20013 *${as_nl}*)
20014 case $ac_var in #(
20015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20017 esac
20018 case $ac_var in #(
20019 _ | IFS | as_nl) ;; #(
20020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20021 *) { eval $ac_var=; unset $ac_var;} ;;
20022 esac ;;
20023 esac
20024 done
20025
20026 (set) 2>&1 |
20027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20028 *${as_nl}ac_space=\ *)
20029 # `set' does not quote correctly, so add quotes: double-quote
20030 # substitution turns \\\\ into \\, and sed turns \\ into \.
20031 sed -n \
20032 "s/'/'\\\\''/g;
20033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20034 ;; #(
20035 *)
20036 # `set' quotes correctly as required by POSIX, so do not add quotes.
20037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20038 ;;
20039 esac |
20040 sort
20041 ) |
20042 sed '
20043 /^ac_cv_env_/b end
20044 t clear
20045 :clear
20046 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20047 t end
20048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20049 :end' >>confcache
20050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20051 if test -w "$cache_file"; then
20052 if test "x$cache_file" != "x/dev/null"; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20054 $as_echo "$as_me: updating cache $cache_file" >&6;}
20055 if test ! -f "$cache_file" || test -h "$cache_file"; then
20056 cat confcache >"$cache_file"
20057 else
20058 case $cache_file in #(
20059 */* | ?:*)
20060 mv -f confcache "$cache_file"$$ &&
20061 mv -f "$cache_file"$$ "$cache_file" ;; #(
20062 *)
20063 mv -f confcache "$cache_file" ;;
20064 esac
20065 fi
20066 fi
20067 else
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20069 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20070 fi
20071 fi
20072 rm -f confcache
20073
20074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20075 # Let make expand exec_prefix.
20076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20077
20078 DEFS=-DHAVE_CONFIG_H
20079
20080 ac_libobjs=
20081 ac_ltlibobjs=
20082 U=
20083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20084 # 1. Remove the extension, and $U if already installed.
20085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20086 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20088 # will be set to the directory where LIBOBJS objects are built.
20089 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20090 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20091 done
20092 LIBOBJS=$ac_libobjs
20093
20094 LTLIBOBJS=$ac_ltlibobjs
20095
20096
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20098 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20099 if test -n "$am_sleep_pid"; then
20100 # Hide warnings about reused PIDs.
20101 wait $am_sleep_pid 2>/dev/null
20102 fi
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20104 $as_echo "done" >&6; }
20105 if test -n "$EXEEXT"; then
20106 am__EXEEXT_TRUE=
20107 am__EXEEXT_FALSE='#'
20108 else
20109 am__EXEEXT_TRUE='#'
20110 am__EXEEXT_FALSE=
20111 fi
20112
20113 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20114 as_fn_error $? "conditional \"AMDEP\" was never defined.
20115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20116 fi
20117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20118 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20120 fi
20121 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20122 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20124 fi
20125 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20126 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20128 fi
20129 if test -z "${WITH_LIBLANGTAG_TRUE}" && test -z "${WITH_LIBLANGTAG_FALSE}"; then
20130 as_fn_error $? "conditional \"WITH_LIBLANGTAG\" was never defined.
20131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20132 fi
20133 if test -z "${ENABLE_EXPERIMENTAL_TRUE}" && test -z "${ENABLE_EXPERIMENTAL_FALSE}"; then
20134 as_fn_error $? "conditional \"ENABLE_EXPERIMENTAL\" was never defined.
20135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20136 fi
20137 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20138 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20140 fi
20141 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
20142 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
20143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20144 fi
20145 if test -z "${WITH_LIBEBOOK_TESTS_TRUE}" && test -z "${WITH_LIBEBOOK_TESTS_FALSE}"; then
20146 as_fn_error $? "conditional \"WITH_LIBEBOOK_TESTS\" was never defined.
20147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20148 fi
20149 if test -z "${WITH_LIBEBOOK_DOCS_TRUE}" && test -z "${WITH_LIBEBOOK_DOCS_FALSE}"; then
20150 as_fn_error $? "conditional \"WITH_LIBEBOOK_DOCS\" was never defined.
20151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20152 fi
20153 if test -z "${WITH_LIBEBOOK_TOOLS_TRUE}" && test -z "${WITH_LIBEBOOK_TOOLS_FALSE}"; then
20154 as_fn_error $? "conditional \"WITH_LIBEBOOK_TOOLS\" was never defined.
20155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20156 fi
20157 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
20158 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
20159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20160 fi
20161
20162 : "${CONFIG_STATUS=./config.status}"
20163 ac_write_fail=0
20164 ac_clean_files_save=$ac_clean_files
20165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20167 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20168 as_write_fail=0
20169 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20170 #! $SHELL
20171 # Generated by $as_me.
20172 # Run this file to recreate the current configuration.
20173 # Compiler output produced by configure, useful for debugging
20174 # configure, is in config.log if it exists.
20175
20176 debug=false
20177 ac_cs_recheck=false
20178 ac_cs_silent=false
20179
20180 SHELL=\${CONFIG_SHELL-$SHELL}
20181 export SHELL
20182 _ASEOF
20183 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20184 ## -------------------- ##
20185 ## M4sh Initialization. ##
20186 ## -------------------- ##
20187
20188 # Be more Bourne compatible
20189 DUALCASE=1; export DUALCASE # for MKS sh
20190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20191 emulate sh
20192 NULLCMD=:
20193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20194 # is contrary to our usage. Disable this feature.
20195 alias -g '${1+"$@"}'='"$@"'
20196 setopt NO_GLOB_SUBST
20197 else
20198 case `(set -o) 2>/dev/null` in #(
20199 *posix*) :
20200 set -o posix ;; #(
20201 *) :
20202 ;;
20203 esac
20204 fi
20205
20206
20207 as_nl='
20208 '
20209 export as_nl
20210 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20211 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20214 # Prefer a ksh shell builtin over an external printf program on Solaris,
20215 # but without wasting forks for bash or zsh.
20216 if test -z "$BASH_VERSION$ZSH_VERSION" \
20217 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20218 as_echo='print -r --'
20219 as_echo_n='print -rn --'
20220 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20221 as_echo='printf %s\n'
20222 as_echo_n='printf %s'
20223 else
20224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20225 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20226 as_echo_n='/usr/ucb/echo -n'
20227 else
20228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20229 as_echo_n_body='eval
20230 arg=$1;
20231 case $arg in #(
20232 *"$as_nl"*)
20233 expr "X$arg" : "X\\(.*\\)$as_nl";
20234 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20235 esac;
20236 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20237 '
20238 export as_echo_n_body
20239 as_echo_n='sh -c $as_echo_n_body as_echo'
20240 fi
20241 export as_echo_body
20242 as_echo='sh -c $as_echo_body as_echo'
20243 fi
20244
20245 # The user is always right.
20246 if test "${PATH_SEPARATOR+set}" != set; then
20247 PATH_SEPARATOR=:
20248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20250 PATH_SEPARATOR=';'
20251 }
20252 fi
20253
20254
20255 # IFS
20256 # We need space, tab and new line, in precisely that order. Quoting is
20257 # there to prevent editors from complaining about space-tab.
20258 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20259 # splitting by setting IFS to empty value.)
20260 IFS=" "" $as_nl"
20261
20262 # Find who we are. Look in the path if we contain no directory separator.
20263 as_myself=
20264 case $0 in #((
20265 *[\\/]* ) as_myself=$0 ;;
20266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20267 for as_dir in $PATH
20268 do
20269 IFS=$as_save_IFS
20270 test -z "$as_dir" && as_dir=.
20271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20272 done
20273 IFS=$as_save_IFS
20274
20275 ;;
20276 esac
20277 # We did not find ourselves, most probably we were run as `sh COMMAND'
20278 # in which case we are not to be found in the path.
20279 if test "x$as_myself" = x; then
20280 as_myself=$0
20281 fi
20282 if test ! -f "$as_myself"; then
20283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20284 exit 1
20285 fi
20286
20287 # Unset variables that we do not need and which cause bugs (e.g. in
20288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20289 # suppresses any "Segmentation fault" message there. '((' could
20290 # trigger a bug in pdksh 5.2.14.
20291 for as_var in BASH_ENV ENV MAIL MAILPATH
20292 do eval test x\${$as_var+set} = xset \
20293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20294 done
20295 PS1='$ '
20296 PS2='> '
20297 PS4='+ '
20298
20299 # NLS nuisances.
20300 LC_ALL=C
20301 export LC_ALL
20302 LANGUAGE=C
20303 export LANGUAGE
20304
20305 # CDPATH.
20306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20307
20308
20309 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20310 # ----------------------------------------
20311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20313 # script with STATUS, using 1 if that was 0.
20314 as_fn_error ()
20315 {
20316 as_status=$1; test $as_status -eq 0 && as_status=1
20317 if test "$4"; then
20318 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20320 fi
20321 $as_echo "$as_me: error: $2" >&2
20322 as_fn_exit $as_status
20323 } # as_fn_error
20324
20325
20326 # as_fn_set_status STATUS
20327 # -----------------------
20328 # Set $? to STATUS, without forking.
20329 as_fn_set_status ()
20330 {
20331 return $1
20332 } # as_fn_set_status
20333
20334 # as_fn_exit STATUS
20335 # -----------------
20336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20337 as_fn_exit ()
20338 {
20339 set +e
20340 as_fn_set_status $1
20341 exit $1
20342 } # as_fn_exit
20343
20344 # as_fn_unset VAR
20345 # ---------------
20346 # Portably unset VAR.
20347 as_fn_unset ()
20348 {
20349 { eval $1=; unset $1;}
20350 }
20351 as_unset=as_fn_unset
20352 # as_fn_append VAR VALUE
20353 # ----------------------
20354 # Append the text in VALUE to the end of the definition contained in VAR. Take
20355 # advantage of any shell optimizations that allow amortized linear growth over
20356 # repeated appends, instead of the typical quadratic growth present in naive
20357 # implementations.
20358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20359 eval 'as_fn_append ()
20360 {
20361 eval $1+=\$2
20362 }'
20363 else
20364 as_fn_append ()
20365 {
20366 eval $1=\$$1\$2
20367 }
20368 fi # as_fn_append
20369
20370 # as_fn_arith ARG...
20371 # ------------------
20372 # Perform arithmetic evaluation on the ARGs, and store the result in the
20373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20374 # must be portable across $(()) and expr.
20375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20376 eval 'as_fn_arith ()
20377 {
20378 as_val=$(( $* ))
20379 }'
20380 else
20381 as_fn_arith ()
20382 {
20383 as_val=`expr "$@" || test $? -eq 1`
20384 }
20385 fi # as_fn_arith
20386
20387
20388 if expr a : '\(a\)' >/dev/null 2>&1 &&
20389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20390 as_expr=expr
20391 else
20392 as_expr=false
20393 fi
20394
20395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20396 as_basename=basename
20397 else
20398 as_basename=false
20399 fi
20400
20401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20402 as_dirname=dirname
20403 else
20404 as_dirname=false
20405 fi
20406
20407 as_me=`$as_basename -- "$0" ||
20408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20409 X"$0" : 'X\(//\)$' \| \
20410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20411 $as_echo X/"$0" |
20412 sed '/^.*\/\([^/][^/]*\)\/*$/{
20413 s//\1/
20414 q
20415 }
20416 /^X\/\(\/\/\)$/{
20417 s//\1/
20418 q
20419 }
20420 /^X\/\(\/\).*/{
20421 s//\1/
20422 q
20423 }
20424 s/.*/./; q'`
20425
20426 # Avoid depending upon Character Ranges.
20427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20430 as_cr_digits='0123456789'
20431 as_cr_alnum=$as_cr_Letters$as_cr_digits
20432
20433 ECHO_C= ECHO_N= ECHO_T=
20434 case `echo -n x` in #(((((
20435 -n*)
20436 case `echo 'xy\c'` in
20437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20438 xy) ECHO_C='\c';;
20439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20440 ECHO_T=' ';;
20441 esac;;
20442 *)
20443 ECHO_N='-n';;
20444 esac
20445
20446 rm -f conf$$ conf$$.exe conf$$.file
20447 if test -d conf$$.dir; then
20448 rm -f conf$$.dir/conf$$.file
20449 else
20450 rm -f conf$$.dir
20451 mkdir conf$$.dir 2>/dev/null
20452 fi
20453 if (echo >conf$$.file) 2>/dev/null; then
20454 if ln -s conf$$.file conf$$ 2>/dev/null; then
20455 as_ln_s='ln -s'
20456 # ... but there are two gotchas:
20457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20459 # In both cases, we have to default to `cp -pR'.
20460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20461 as_ln_s='cp -pR'
20462 elif ln conf$$.file conf$$ 2>/dev/null; then
20463 as_ln_s=ln
20464 else
20465 as_ln_s='cp -pR'
20466 fi
20467 else
20468 as_ln_s='cp -pR'
20469 fi
20470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20471 rmdir conf$$.dir 2>/dev/null
20472
20473
20474 # as_fn_mkdir_p
20475 # -------------
20476 # Create "$as_dir" as a directory, including parents if necessary.
20477 as_fn_mkdir_p ()
20478 {
20479
20480 case $as_dir in #(
20481 -*) as_dir=./$as_dir;;
20482 esac
20483 test -d "$as_dir" || eval $as_mkdir_p || {
20484 as_dirs=
20485 while :; do
20486 case $as_dir in #(
20487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20488 *) as_qdir=$as_dir;;
20489 esac
20490 as_dirs="'$as_qdir' $as_dirs"
20491 as_dir=`$as_dirname -- "$as_dir" ||
20492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20493 X"$as_dir" : 'X\(//\)[^/]' \| \
20494 X"$as_dir" : 'X\(//\)$' \| \
20495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20496 $as_echo X"$as_dir" |
20497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20498 s//\1/
20499 q
20500 }
20501 /^X\(\/\/\)[^/].*/{
20502 s//\1/
20503 q
20504 }
20505 /^X\(\/\/\)$/{
20506 s//\1/
20507 q
20508 }
20509 /^X\(\/\).*/{
20510 s//\1/
20511 q
20512 }
20513 s/.*/./; q'`
20514 test -d "$as_dir" && break
20515 done
20516 test -z "$as_dirs" || eval "mkdir $as_dirs"
20517 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20518
20519
20520 } # as_fn_mkdir_p
20521 if mkdir -p . 2>/dev/null; then
20522 as_mkdir_p='mkdir -p "$as_dir"'
20523 else
20524 test -d ./-p && rmdir ./-p
20525 as_mkdir_p=false
20526 fi
20527
20528
20529 # as_fn_executable_p FILE
20530 # -----------------------
20531 # Test if FILE is an executable regular file.
20532 as_fn_executable_p ()
20533 {
20534 test -f "$1" && test -x "$1"
20535 } # as_fn_executable_p
20536 as_test_x='test -x'
20537 as_executable_p=as_fn_executable_p
20538
20539 # Sed expression to map a string onto a valid CPP name.
20540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20541
20542 # Sed expression to map a string onto a valid variable name.
20543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20544
20545
20546 exec 6>&1
20547 ## ----------------------------------- ##
20548 ## Main body of $CONFIG_STATUS script. ##
20549 ## ----------------------------------- ##
20550 _ASEOF
20551 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20552
20553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20554 # Save the log message, to keep $0 and so on meaningful, and to
20555 # report actual input values of CONFIG_FILES etc. instead of their
20556 # values after options handling.
20557 ac_log="
20558 This file was extended by libe-book $as_me 0.1.3, which was
20559 generated by GNU Autoconf 2.69. Invocation command line was
20560
20561 CONFIG_FILES = $CONFIG_FILES
20562 CONFIG_HEADERS = $CONFIG_HEADERS
20563 CONFIG_LINKS = $CONFIG_LINKS
20564 CONFIG_COMMANDS = $CONFIG_COMMANDS
20565 $ $0 $@
20566
20567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20568 "
20569
20570 _ACEOF
20571
20572 case $ac_config_files in *"
20573 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20574 esac
20575
20576 case $ac_config_headers in *"
20577 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20578 esac
20579
20580
20581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20582 # Files that config.status was made for.
20583 config_files="$ac_config_files"
20584 config_headers="$ac_config_headers"
20585 config_commands="$ac_config_commands"
20586
20587 _ACEOF
20588
20589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20590 ac_cs_usage="\
20591 \`$as_me' instantiates files and other configuration actions
20592 from templates according to the current configuration. Unless the files
20593 and actions are specified as TAGs, all are instantiated by default.
20594
20595 Usage: $0 [OPTION]... [TAG]...
20596
20597 -h, --help print this help, then exit
20598 -V, --version print version number and configuration settings, then exit
20599 --config print configuration, then exit
20600 -q, --quiet, --silent
20601 do not print progress messages
20602 -d, --debug don't remove temporary files
20603 --recheck update $as_me by reconfiguring in the same conditions
20604 --file=FILE[:TEMPLATE]
20605 instantiate the configuration file FILE
20606 --header=FILE[:TEMPLATE]
20607 instantiate the configuration header FILE
20608
20609 Configuration files:
20610 $config_files
20611
20612 Configuration headers:
20613 $config_headers
20614
20615 Configuration commands:
20616 $config_commands
20617
20618 Report bugs to the package provider."
20619
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20623 ac_cs_version="\\
20624 libe-book config.status 0.1.3
20625 configured by $0, generated by GNU Autoconf 2.69,
20626 with options \\"\$ac_cs_config\\"
20627
20628 Copyright (C) 2012 Free Software Foundation, Inc.
20629 This config.status script is free software; the Free Software Foundation
20630 gives unlimited permission to copy, distribute and modify it."
20631
20632 ac_pwd='$ac_pwd'
20633 srcdir='$srcdir'
20634 INSTALL='$INSTALL'
20635 MKDIR_P='$MKDIR_P'
20636 AWK='$AWK'
20637 test -n "\$AWK" || AWK=awk
20638 _ACEOF
20639
20640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20641 # The default lists apply if the user does not specify any file.
20642 ac_need_defaults=:
20643 while test $# != 0
20644 do
20645 case $1 in
20646 --*=?*)
20647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20649 ac_shift=:
20650 ;;
20651 --*=)
20652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20653 ac_optarg=
20654 ac_shift=:
20655 ;;
20656 *)
20657 ac_option=$1
20658 ac_optarg=$2
20659 ac_shift=shift
20660 ;;
20661 esac
20662
20663 case $ac_option in
20664 # Handling of the options.
20665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20666 ac_cs_recheck=: ;;
20667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20668 $as_echo "$ac_cs_version"; exit ;;
20669 --config | --confi | --conf | --con | --co | --c )
20670 $as_echo "$ac_cs_config"; exit ;;
20671 --debug | --debu | --deb | --de | --d | -d )
20672 debug=: ;;
20673 --file | --fil | --fi | --f )
20674 $ac_shift
20675 case $ac_optarg in
20676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20677 '') as_fn_error $? "missing file argument" ;;
20678 esac
20679 as_fn_append CONFIG_FILES " '$ac_optarg'"
20680 ac_need_defaults=false;;
20681 --header | --heade | --head | --hea )
20682 $ac_shift
20683 case $ac_optarg in
20684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20685 esac
20686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20687 ac_need_defaults=false;;
20688 --he | --h)
20689 # Conflict between --help and --header
20690 as_fn_error $? "ambiguous option: \`$1'
20691 Try \`$0 --help' for more information.";;
20692 --help | --hel | -h )
20693 $as_echo "$ac_cs_usage"; exit ;;
20694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20696 ac_cs_silent=: ;;
20697
20698 # This is an error.
20699 -*) as_fn_error $? "unrecognized option: \`$1'
20700 Try \`$0 --help' for more information." ;;
20701
20702 *) as_fn_append ac_config_targets " $1"
20703 ac_need_defaults=false ;;
20704
20705 esac
20706 shift
20707 done
20708
20709 ac_configure_extra_args=
20710
20711 if $ac_cs_silent; then
20712 exec 6>/dev/null
20713 ac_configure_extra_args="$ac_configure_extra_args --silent"
20714 fi
20715
20716 _ACEOF
20717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20718 if \$ac_cs_recheck; then
20719 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20720 shift
20721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20722 CONFIG_SHELL='$SHELL'
20723 export CONFIG_SHELL
20724 exec "\$@"
20725 fi
20726
20727 _ACEOF
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20729 exec 5>>config.log
20730 {
20731 echo
20732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20733 ## Running $as_me. ##
20734 _ASBOX
20735 $as_echo "$ac_log"
20736 } >&5
20737
20738 _ACEOF
20739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20740 #
20741 # INIT-COMMANDS
20742 #
20743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20744
20745
20746 # The HP-UX ksh and POSIX shell print the target directory to stdout
20747 # if CDPATH is set.
20748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20749
20750 sed_quote_subst='$sed_quote_subst'
20751 double_quote_subst='$double_quote_subst'
20752 delay_variable_subst='$delay_variable_subst'
20753 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20754 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20755 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20756 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20757 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20758 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20759 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20760 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20761 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20762 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20763 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20764 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20765 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20766 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20767 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20768 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20769 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20770 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20771 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20772 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20773 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20774 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20775 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20776 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20777 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20778 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20779 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20780 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20781 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20782 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20783 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20784 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20785 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20786 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20787 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20788 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20789 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20790 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20791 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20792 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20793 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20794 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20795 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20796 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20797 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20798 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20799 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20800 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20801 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20802 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20803 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20804 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20805 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20806 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20807 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20808 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20809 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20810 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20811 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20812 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"`'
20813 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20814 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20815 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20816 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20817 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20818 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20819 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20820 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20821 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20822 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20823 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20824 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20825 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20826 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20827 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20828 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20829 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20830 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20831 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20832 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20833 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20834 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20835 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20836 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20837 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20838 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20839 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20840 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20841 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20842 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20843 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20844 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20845 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20846 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20847 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20848 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20849 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20850 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20851 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20852 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20853 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20854 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20855 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20856 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20857 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20858 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20859 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20860 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20861 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20862 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20863 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20864 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20865 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20866 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20867 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20868 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20869 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20870 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20871 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20872 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20873 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20874 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20875 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20876 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20877 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20878 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20879 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20880 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20881 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20882 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20883 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20884 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20885 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20886 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20887 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20888 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20889 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20890 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20891 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20892 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20893 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20894 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20895 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20896 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20897 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20898 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20899 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20900 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20901 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20902 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20903 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20904 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20905 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20906 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20907 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20908 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20909 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20910 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20911 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20912 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20913 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20914 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20915 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20916 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20917 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20918 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20919 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20920 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20921 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20922 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20923 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20924 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20925 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20926 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20927 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20928 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20929 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20930 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20931 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20932 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20933 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20934 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20935 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20936 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20937 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20938 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20939 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20940 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20941 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20942 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20943
20944 LTCC='$LTCC'
20945 LTCFLAGS='$LTCFLAGS'
20946 compiler='$compiler_DEFAULT'
20947
20948 # A function that is used when there is no print builtin or printf.
20949 func_fallback_echo ()
20950 {
20951 eval 'cat <<_LTECHO_EOF
20952 \$1
20953 _LTECHO_EOF'
20954 }
20955
20956 # Quote evaled strings.
20957 for var in AS \
20958 DLLTOOL \
20959 OBJDUMP \
20960 SHELL \
20961 ECHO \
20962 PATH_SEPARATOR \
20963 SED \
20964 GREP \
20965 EGREP \
20966 FGREP \
20967 LD \
20968 NM \
20969 LN_S \
20970 lt_SP2NL \
20971 lt_NL2SP \
20972 reload_flag \
20973 deplibs_check_method \
20974 file_magic_cmd \
20975 file_magic_glob \
20976 want_nocaseglob \
20977 sharedlib_from_linklib_cmd \
20978 AR \
20979 AR_FLAGS \
20980 archiver_list_spec \
20981 STRIP \
20982 RANLIB \
20983 CC \
20984 CFLAGS \
20985 compiler \
20986 lt_cv_sys_global_symbol_pipe \
20987 lt_cv_sys_global_symbol_to_cdecl \
20988 lt_cv_sys_global_symbol_to_import \
20989 lt_cv_sys_global_symbol_to_c_name_address \
20990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20991 lt_cv_nm_interface \
20992 nm_file_list_spec \
20993 lt_cv_truncate_bin \
20994 lt_prog_compiler_no_builtin_flag \
20995 lt_prog_compiler_pic \
20996 lt_prog_compiler_wl \
20997 lt_prog_compiler_static \
20998 lt_cv_prog_compiler_c_o \
20999 need_locks \
21000 MANIFEST_TOOL \
21001 DSYMUTIL \
21002 NMEDIT \
21003 LIPO \
21004 OTOOL \
21005 OTOOL64 \
21006 shrext_cmds \
21007 export_dynamic_flag_spec \
21008 whole_archive_flag_spec \
21009 compiler_needs_object \
21010 with_gnu_ld \
21011 allow_undefined_flag \
21012 no_undefined_flag \
21013 hardcode_libdir_flag_spec \
21014 hardcode_libdir_separator \
21015 exclude_expsyms \
21016 include_expsyms \
21017 file_list_spec \
21018 variables_saved_for_relink \
21019 libname_spec \
21020 library_names_spec \
21021 soname_spec \
21022 install_override_mode \
21023 finish_eval \
21024 old_striplib \
21025 striplib \
21026 compiler_lib_search_dirs \
21027 predep_objects \
21028 postdep_objects \
21029 predeps \
21030 postdeps \
21031 compiler_lib_search_path \
21032 LD_CXX \
21033 reload_flag_CXX \
21034 compiler_CXX \
21035 lt_prog_compiler_no_builtin_flag_CXX \
21036 lt_prog_compiler_pic_CXX \
21037 lt_prog_compiler_wl_CXX \
21038 lt_prog_compiler_static_CXX \
21039 lt_cv_prog_compiler_c_o_CXX \
21040 export_dynamic_flag_spec_CXX \
21041 whole_archive_flag_spec_CXX \
21042 compiler_needs_object_CXX \
21043 with_gnu_ld_CXX \
21044 allow_undefined_flag_CXX \
21045 no_undefined_flag_CXX \
21046 hardcode_libdir_flag_spec_CXX \
21047 hardcode_libdir_separator_CXX \
21048 exclude_expsyms_CXX \
21049 include_expsyms_CXX \
21050 file_list_spec_CXX \
21051 compiler_lib_search_dirs_CXX \
21052 predep_objects_CXX \
21053 postdep_objects_CXX \
21054 predeps_CXX \
21055 postdeps_CXX \
21056 compiler_lib_search_path_CXX; do
21057 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21058 *[\\\\\\\`\\"\\\$]*)
21059 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21060 ;;
21061 *)
21062 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21063 ;;
21064 esac
21065 done
21066
21067 # Double-quote double-evaled strings.
21068 for var in reload_cmds \
21069 old_postinstall_cmds \
21070 old_postuninstall_cmds \
21071 old_archive_cmds \
21072 extract_expsyms_cmds \
21073 old_archive_from_new_cmds \
21074 old_archive_from_expsyms_cmds \
21075 archive_cmds \
21076 archive_expsym_cmds \
21077 module_cmds \
21078 module_expsym_cmds \
21079 export_symbols_cmds \
21080 prelink_cmds \
21081 postlink_cmds \
21082 postinstall_cmds \
21083 postuninstall_cmds \
21084 finish_cmds \
21085 sys_lib_search_path_spec \
21086 configure_time_dlsearch_path \
21087 configure_time_lt_sys_library_path \
21088 reload_cmds_CXX \
21089 old_archive_cmds_CXX \
21090 old_archive_from_new_cmds_CXX \
21091 old_archive_from_expsyms_cmds_CXX \
21092 archive_cmds_CXX \
21093 archive_expsym_cmds_CXX \
21094 module_cmds_CXX \
21095 module_expsym_cmds_CXX \
21096 export_symbols_cmds_CXX \
21097 prelink_cmds_CXX \
21098 postlink_cmds_CXX; do
21099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21100 *[\\\\\\\`\\"\\\$]*)
21101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21102 ;;
21103 *)
21104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21105 ;;
21106 esac
21107 done
21108
21109 ac_aux_dir='$ac_aux_dir'
21110
21111 # See if we are running on zsh, and set the options that allow our
21112 # commands through without removal of \ escapes INIT.
21113 if test -n "\${ZSH_VERSION+set}"; then
21114 setopt NO_GLOB_SUBST
21115 fi
21116
21117
21118 PACKAGE='$PACKAGE'
21119 VERSION='$VERSION'
21120 RM='$RM'
21121 ofile='$ofile'
21122
21123
21124
21125
21126
21127
21128 _ACEOF
21129
21130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21131
21132 # Handling of arguments.
21133 for ac_config_target in $ac_config_targets
21134 do
21135 case $ac_config_target in
21136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21137 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21138 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21140 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
21141 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
21142 "inc/libe-book/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libe-book/Makefile" ;;
21143 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21144 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
21145 "src/conv/html/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/html/Makefile" ;;
21146 "src/conv/html/ebook2html.rc") CONFIG_FILES="$CONFIG_FILES src/conv/html/ebook2html.rc" ;;
21147 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
21148 "src/conv/raw/ebook2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/ebook2raw.rc" ;;
21149 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
21150 "src/conv/text/ebook2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/ebook2text.rc" ;;
21151 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
21152 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21153 "src/lib/libe-book.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libe-book.rc" ;;
21154 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
21155 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21156 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
21157 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21158 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
21159 "libe-book-$EBOOK_MAJOR_VERSION.$EBOOK_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libe-book-$EBOOK_MAJOR_VERSION.$EBOOK_MINOR_VERSION.pc:libe-book.pc.in" ;;
21160
21161 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21162 esac
21163 done
21164
21165
21166 # If the user did not use the arguments to specify the items to instantiate,
21167 # then the envvar interface is used. Set only those that are not.
21168 # We use the long form for the default assignment because of an extremely
21169 # bizarre bug on SunOS 4.1.3.
21170 if $ac_need_defaults; then
21171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21174 fi
21175
21176 # Have a temporary directory for convenience. Make it in the build tree
21177 # simply because there is no reason against having it here, and in addition,
21178 # creating and moving files from /tmp can sometimes cause problems.
21179 # Hook for its removal unless debugging.
21180 # Note that there is a small window in which the directory will not be cleaned:
21181 # after its creation but before its name has been assigned to `$tmp'.
21182 $debug ||
21183 {
21184 tmp= ac_tmp=
21185 trap 'exit_status=$?
21186 : "${ac_tmp:=$tmp}"
21187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21188 ' 0
21189 trap 'as_fn_exit 1' 1 2 13 15
21190 }
21191 # Create a (secure) tmp directory for tmp files.
21192
21193 {
21194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21195 test -d "$tmp"
21196 } ||
21197 {
21198 tmp=./conf$$-$RANDOM
21199 (umask 077 && mkdir "$tmp")
21200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21201 ac_tmp=$tmp
21202
21203 # Set up the scripts for CONFIG_FILES section.
21204 # No need to generate them if there are no CONFIG_FILES.
21205 # This happens for instance with `./config.status config.h'.
21206 if test -n "$CONFIG_FILES"; then
21207
21208
21209 ac_cr=`echo X | tr X '\015'`
21210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21211 # But we know of no other shell where ac_cr would be empty at this
21212 # point, so we can use a bashism as a fallback.
21213 if test "x$ac_cr" = x; then
21214 eval ac_cr=\$\'\\r\'
21215 fi
21216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21218 ac_cs_awk_cr='\\r'
21219 else
21220 ac_cs_awk_cr=$ac_cr
21221 fi
21222
21223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21224 _ACEOF
21225
21226
21227 {
21228 echo "cat >conf$$subs.awk <<_ACEOF" &&
21229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21230 echo "_ACEOF"
21231 } >conf$$subs.sh ||
21232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21234 ac_delim='%!_!# '
21235 for ac_last_try in false false false false false :; do
21236 . ./conf$$subs.sh ||
21237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21238
21239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21240 if test $ac_delim_n = $ac_delim_num; then
21241 break
21242 elif $ac_last_try; then
21243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21244 else
21245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21246 fi
21247 done
21248 rm -f conf$$subs.sh
21249
21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21251 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21252 _ACEOF
21253 sed -n '
21254 h
21255 s/^/S["/; s/!.*/"]=/
21256 p
21257 g
21258 s/^[^!]*!//
21259 :repl
21260 t repl
21261 s/'"$ac_delim"'$//
21262 t delim
21263 :nl
21264 h
21265 s/\(.\{148\}\)..*/\1/
21266 t more1
21267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21268 p
21269 n
21270 b repl
21271 :more1
21272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21273 p
21274 g
21275 s/.\{148\}//
21276 t nl
21277 :delim
21278 h
21279 s/\(.\{148\}\)..*/\1/
21280 t more2
21281 s/["\\]/\\&/g; s/^/"/; s/$/"/
21282 p
21283 b
21284 :more2
21285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21286 p
21287 g
21288 s/.\{148\}//
21289 t delim
21290 ' <conf$$subs.awk | sed '
21291 /^[^""]/{
21292 N
21293 s/\n//
21294 }
21295 ' >>$CONFIG_STATUS || ac_write_fail=1
21296 rm -f conf$$subs.awk
21297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21298 _ACAWK
21299 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21300 for (key in S) S_is_set[key] = 1
21301 FS = ""
21302
21303 }
21304 {
21305 line = $ 0
21306 nfields = split(line, field, "@")
21307 substed = 0
21308 len = length(field[1])
21309 for (i = 2; i < nfields; i++) {
21310 key = field[i]
21311 keylen = length(key)
21312 if (S_is_set[key]) {
21313 value = S[key]
21314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21315 len += length(value) + length(field[++i])
21316 substed = 1
21317 } else
21318 len += 1 + keylen
21319 }
21320
21321 print line
21322 }
21323
21324 _ACAWK
21325 _ACEOF
21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21329 else
21330 cat
21331 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21333 _ACEOF
21334
21335 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21336 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21337 # trailing colons and then remove the whole line if VPATH becomes empty
21338 # (actually we leave an empty line to preserve line numbers).
21339 if test "x$srcdir" = x.; then
21340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21341 h
21342 s///
21343 s/^/:/
21344 s/[ ]*$/:/
21345 s/:\$(srcdir):/:/g
21346 s/:\${srcdir}:/:/g
21347 s/:@srcdir@:/:/g
21348 s/^:*//
21349 s/:*$//
21350 x
21351 s/\(=[ ]*\).*/\1/
21352 G
21353 s/\n//
21354 s/^[^=]*=[ ]*$//
21355 }'
21356 fi
21357
21358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21359 fi # test -n "$CONFIG_FILES"
21360
21361 # Set up the scripts for CONFIG_HEADERS section.
21362 # No need to generate them if there are no CONFIG_HEADERS.
21363 # This happens for instance with `./config.status Makefile'.
21364 if test -n "$CONFIG_HEADERS"; then
21365 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21366 BEGIN {
21367 _ACEOF
21368
21369 # Transform confdefs.h into an awk script `defines.awk', embedded as
21370 # here-document in config.status, that substitutes the proper values into
21371 # config.h.in to produce config.h.
21372
21373 # Create a delimiter string that does not exist in confdefs.h, to ease
21374 # handling of long lines.
21375 ac_delim='%!_!# '
21376 for ac_last_try in false false :; do
21377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21378 if test -z "$ac_tt"; then
21379 break
21380 elif $ac_last_try; then
21381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21382 else
21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21384 fi
21385 done
21386
21387 # For the awk script, D is an array of macro values keyed by name,
21388 # likewise P contains macro parameters if any. Preserve backslash
21389 # newline sequences.
21390
21391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21392 sed -n '
21393 s/.\{148\}/&'"$ac_delim"'/g
21394 t rset
21395 :rset
21396 s/^[ ]*#[ ]*define[ ][ ]*/ /
21397 t def
21398 d
21399 :def
21400 s/\\$//
21401 t bsnl
21402 s/["\\]/\\&/g
21403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21404 D["\1"]=" \3"/p
21405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21406 d
21407 :bsnl
21408 s/["\\]/\\&/g
21409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21410 D["\1"]=" \3\\\\\\n"\\/p
21411 t cont
21412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21413 t cont
21414 d
21415 :cont
21416 n
21417 s/.\{148\}/&'"$ac_delim"'/g
21418 t clear
21419 :clear
21420 s/\\$//
21421 t bsnlc
21422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21423 d
21424 :bsnlc
21425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21426 b cont
21427 ' <confdefs.h | sed '
21428 s/'"$ac_delim"'/"\\\
21429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21430
21431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21432 for (key in D) D_is_set[key] = 1
21433 FS = ""
21434 }
21435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21436 line = \$ 0
21437 split(line, arg, " ")
21438 if (arg[1] == "#") {
21439 defundef = arg[2]
21440 mac1 = arg[3]
21441 } else {
21442 defundef = substr(arg[1], 2)
21443 mac1 = arg[2]
21444 }
21445 split(mac1, mac2, "(") #)
21446 macro = mac2[1]
21447 prefix = substr(line, 1, index(line, defundef) - 1)
21448 if (D_is_set[macro]) {
21449 # Preserve the white space surrounding the "#".
21450 print prefix "define", macro P[macro] D[macro]
21451 next
21452 } else {
21453 # Replace #undef with comments. This is necessary, for example,
21454 # in the case of _POSIX_SOURCE, which is predefined and required
21455 # on some systems where configure will not decide to define it.
21456 if (defundef == "undef") {
21457 print "/*", prefix defundef, macro, "*/"
21458 next
21459 }
21460 }
21461 }
21462 { print }
21463 _ACAWK
21464 _ACEOF
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21467 fi # test -n "$CONFIG_HEADERS"
21468
21469
21470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21471 shift
21472 for ac_tag
21473 do
21474 case $ac_tag in
21475 :[FHLC]) ac_mode=$ac_tag; continue;;
21476 esac
21477 case $ac_mode$ac_tag in
21478 :[FHL]*:*);;
21479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21480 :[FH]-) ac_tag=-:-;;
21481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21482 esac
21483 ac_save_IFS=$IFS
21484 IFS=:
21485 set x $ac_tag
21486 IFS=$ac_save_IFS
21487 shift
21488 ac_file=$1
21489 shift
21490
21491 case $ac_mode in
21492 :L) ac_source=$1;;
21493 :[FH])
21494 ac_file_inputs=
21495 for ac_f
21496 do
21497 case $ac_f in
21498 -) ac_f="$ac_tmp/stdin";;
21499 *) # Look for the file first in the build tree, then in the source tree
21500 # (if the path is not absolute). The absolute path cannot be DOS-style,
21501 # because $ac_f cannot contain `:'.
21502 test -f "$ac_f" ||
21503 case $ac_f in
21504 [\\/$]*) false;;
21505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21506 esac ||
21507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21508 esac
21509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21510 as_fn_append ac_file_inputs " '$ac_f'"
21511 done
21512
21513 # Let's still pretend it is `configure' which instantiates (i.e., don't
21514 # use $as_me), people would be surprised to read:
21515 # /* config.h. Generated by config.status. */
21516 configure_input='Generated from '`
21517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21518 `' by configure.'
21519 if test x"$ac_file" != x-; then
21520 configure_input="$ac_file. $configure_input"
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21522 $as_echo "$as_me: creating $ac_file" >&6;}
21523 fi
21524 # Neutralize special characters interpreted by sed in replacement strings.
21525 case $configure_input in #(
21526 *\&* | *\|* | *\\* )
21527 ac_sed_conf_input=`$as_echo "$configure_input" |
21528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21529 *) ac_sed_conf_input=$configure_input;;
21530 esac
21531
21532 case $ac_tag in
21533 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21535 esac
21536 ;;
21537 esac
21538
21539 ac_dir=`$as_dirname -- "$ac_file" ||
21540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21541 X"$ac_file" : 'X\(//\)[^/]' \| \
21542 X"$ac_file" : 'X\(//\)$' \| \
21543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21544 $as_echo X"$ac_file" |
21545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21546 s//\1/
21547 q
21548 }
21549 /^X\(\/\/\)[^/].*/{
21550 s//\1/
21551 q
21552 }
21553 /^X\(\/\/\)$/{
21554 s//\1/
21555 q
21556 }
21557 /^X\(\/\).*/{
21558 s//\1/
21559 q
21560 }
21561 s/.*/./; q'`
21562 as_dir="$ac_dir"; as_fn_mkdir_p
21563 ac_builddir=.
21564
21565 case "$ac_dir" in
21566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21567 *)
21568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21569 # A ".." for each directory in $ac_dir_suffix.
21570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21571 case $ac_top_builddir_sub in
21572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21574 esac ;;
21575 esac
21576 ac_abs_top_builddir=$ac_pwd
21577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21578 # for backward compatibility:
21579 ac_top_builddir=$ac_top_build_prefix
21580
21581 case $srcdir in
21582 .) # We are building in place.
21583 ac_srcdir=.
21584 ac_top_srcdir=$ac_top_builddir_sub
21585 ac_abs_top_srcdir=$ac_pwd ;;
21586 [\\/]* | ?:[\\/]* ) # Absolute name.
21587 ac_srcdir=$srcdir$ac_dir_suffix;
21588 ac_top_srcdir=$srcdir
21589 ac_abs_top_srcdir=$srcdir ;;
21590 *) # Relative name.
21591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21592 ac_top_srcdir=$ac_top_build_prefix$srcdir
21593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21594 esac
21595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21596
21597
21598 case $ac_mode in
21599 :F)
21600 #
21601 # CONFIG_FILE
21602 #
21603
21604 case $INSTALL in
21605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21607 esac
21608 ac_MKDIR_P=$MKDIR_P
21609 case $MKDIR_P in
21610 [\\/$]* | ?:[\\/]* ) ;;
21611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21612 esac
21613 _ACEOF
21614
21615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21616 # If the template does not know about datarootdir, expand it.
21617 # FIXME: This hack should be removed a few years after 2.60.
21618 ac_datarootdir_hack=; ac_datarootdir_seen=
21619 ac_sed_dataroot='
21620 /datarootdir/ {
21621 p
21622 q
21623 }
21624 /@datadir@/p
21625 /@docdir@/p
21626 /@infodir@/p
21627 /@localedir@/p
21628 /@mandir@/p'
21629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21630 *datarootdir*) ac_datarootdir_seen=yes;;
21631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21634 _ACEOF
21635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21636 ac_datarootdir_hack='
21637 s&@datadir@&$datadir&g
21638 s&@docdir@&$docdir&g
21639 s&@infodir@&$infodir&g
21640 s&@localedir@&$localedir&g
21641 s&@mandir@&$mandir&g
21642 s&\\\${datarootdir}&$datarootdir&g' ;;
21643 esac
21644 _ACEOF
21645
21646 # Neutralize VPATH when `$srcdir' = `.'.
21647 # Shell code in configure.ac might set extrasub.
21648 # FIXME: do we really want to maintain this feature?
21649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21650 ac_sed_extra="$ac_vpsub
21651 $extrasub
21652 _ACEOF
21653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21654 :t
21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21656 s|@configure_input@|$ac_sed_conf_input|;t t
21657 s&@top_builddir@&$ac_top_builddir_sub&;t t
21658 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21659 s&@srcdir@&$ac_srcdir&;t t
21660 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21661 s&@top_srcdir@&$ac_top_srcdir&;t t
21662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21663 s&@builddir@&$ac_builddir&;t t
21664 s&@abs_builddir@&$ac_abs_builddir&;t t
21665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21666 s&@INSTALL@&$ac_INSTALL&;t t
21667 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21668 $ac_datarootdir_hack
21669 "
21670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21672
21673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21676 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21678 which seems to be undefined. Please make sure it is defined" >&5
21679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21680 which seems to be undefined. Please make sure it is defined" >&2;}
21681
21682 rm -f "$ac_tmp/stdin"
21683 case $ac_file in
21684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21686 esac \
21687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21688 ;;
21689 :H)
21690 #
21691 # CONFIG_HEADER
21692 #
21693 if test x"$ac_file" != x-; then
21694 {
21695 $as_echo "/* $configure_input */" \
21696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21697 } >"$ac_tmp/config.h" \
21698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21699 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21702 else
21703 rm -f "$ac_file"
21704 mv "$ac_tmp/config.h" "$ac_file" \
21705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21706 fi
21707 else
21708 $as_echo "/* $configure_input */" \
21709 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21710 || as_fn_error $? "could not create -" "$LINENO" 5
21711 fi
21712 # Compute "$ac_file"'s index in $config_headers.
21713 _am_arg="$ac_file"
21714 _am_stamp_count=1
21715 for _am_header in $config_headers :; do
21716 case $_am_header in
21717 $_am_arg | $_am_arg:* )
21718 break ;;
21719 * )
21720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21721 esac
21722 done
21723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$_am_arg" : 'X\(//\)[^/]' \| \
21726 X"$_am_arg" : 'X\(//\)$' \| \
21727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21728 $as_echo X"$_am_arg" |
21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21730 s//\1/
21731 q
21732 }
21733 /^X\(\/\/\)[^/].*/{
21734 s//\1/
21735 q
21736 }
21737 /^X\(\/\/\)$/{
21738 s//\1/
21739 q
21740 }
21741 /^X\(\/\).*/{
21742 s//\1/
21743 q
21744 }
21745 s/.*/./; q'`/stamp-h$_am_stamp_count
21746 ;;
21747
21748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21749 $as_echo "$as_me: executing $ac_file commands" >&6;}
21750 ;;
21751 esac
21752
21753
21754 case $ac_file$ac_mode in
21755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21756 # Older Autoconf quotes --file arguments for eval, but not when files
21757 # are listed without --file. Let's play safe and only enable the eval
21758 # if we detect the quoting.
21759 case $CONFIG_FILES in
21760 *\'*) eval set x "$CONFIG_FILES" ;;
21761 *) set x $CONFIG_FILES ;;
21762 esac
21763 shift
21764 for mf
21765 do
21766 # Strip MF so we end up with the name of the file.
21767 mf=`echo "$mf" | sed -e 's/:.*$//'`
21768 # Check whether this is an Automake generated Makefile or not.
21769 # We used to match only the files named 'Makefile.in', but
21770 # some people rename them; so instead we look at the file content.
21771 # Grep'ing the first line is not enough: some people post-process
21772 # each Makefile.in and add a new line on top of each file to say so.
21773 # Grep'ing the whole file is not good either: AIX grep has a line
21774 # limit of 2048, but all sed's we know have understand at least 4000.
21775 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21776 dirpart=`$as_dirname -- "$mf" ||
21777 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21778 X"$mf" : 'X\(//\)[^/]' \| \
21779 X"$mf" : 'X\(//\)$' \| \
21780 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21781 $as_echo X"$mf" |
21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21783 s//\1/
21784 q
21785 }
21786 /^X\(\/\/\)[^/].*/{
21787 s//\1/
21788 q
21789 }
21790 /^X\(\/\/\)$/{
21791 s//\1/
21792 q
21793 }
21794 /^X\(\/\).*/{
21795 s//\1/
21796 q
21797 }
21798 s/.*/./; q'`
21799 else
21800 continue
21801 fi
21802 # Extract the definition of DEPDIR, am__include, and am__quote
21803 # from the Makefile without running 'make'.
21804 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21805 test -z "$DEPDIR" && continue
21806 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21807 test -z "$am__include" && continue
21808 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21809 # Find all dependency output files, they are included files with
21810 # $(DEPDIR) in their names. We invoke sed twice because it is the
21811 # simplest approach to changing $(DEPDIR) to its actual value in the
21812 # expansion.
21813 for file in `sed -n "
21814 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21815 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21816 # Make sure the directory exists.
21817 test -f "$dirpart/$file" && continue
21818 fdir=`$as_dirname -- "$file" ||
21819 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820 X"$file" : 'X\(//\)[^/]' \| \
21821 X"$file" : 'X\(//\)$' \| \
21822 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21823 $as_echo X"$file" |
21824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21825 s//\1/
21826 q
21827 }
21828 /^X\(\/\/\)[^/].*/{
21829 s//\1/
21830 q
21831 }
21832 /^X\(\/\/\)$/{
21833 s//\1/
21834 q
21835 }
21836 /^X\(\/\).*/{
21837 s//\1/
21838 q
21839 }
21840 s/.*/./; q'`
21841 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21842 # echo "creating $dirpart/$file"
21843 echo '# dummy' > "$dirpart/$file"
21844 done
21845 done
21846 }
21847 ;;
21848 "libtool":C)
21849
21850 # See if we are running on zsh, and set the options that allow our
21851 # commands through without removal of \ escapes.
21852 if test -n "${ZSH_VERSION+set}"; then
21853 setopt NO_GLOB_SUBST
21854 fi
21855
21856 cfgfile=${ofile}T
21857 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21858 $RM "$cfgfile"
21859
21860 cat <<_LT_EOF >> "$cfgfile"
21861 #! $SHELL
21862 # Generated automatically by $as_me ($PACKAGE) $VERSION
21863 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21864 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21865
21866 # Provide generalized library-building support services.
21867 # Written by Gordon Matzigkeit, 1996
21868
21869 # Copyright (C) 2014 Free Software Foundation, Inc.
21870 # This is free software; see the source for copying conditions. There is NO
21871 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21872
21873 # GNU Libtool is free software; you can redistribute it and/or modify
21874 # it under the terms of the GNU General Public License as published by
21875 # the Free Software Foundation; either version 2 of of the License, or
21876 # (at your option) any later version.
21877 #
21878 # As a special exception to the GNU General Public License, if you
21879 # distribute this file as part of a program or library that is built
21880 # using GNU Libtool, you may include this file under the same
21881 # distribution terms that you use for the rest of that program.
21882 #
21883 # GNU Libtool is distributed in the hope that it will be useful, but
21884 # WITHOUT ANY WARRANTY; without even the implied warranty of
21885 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21886 # GNU General Public License for more details.
21887 #
21888 # You should have received a copy of the GNU General Public License
21889 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21890
21891
21892 # The names of the tagged configurations supported by this script.
21893 available_tags='CXX '
21894
21895 # Configured defaults for sys_lib_dlsearch_path munging.
21896 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21897
21898 # ### BEGIN LIBTOOL CONFIG
21899
21900 # Which release of libtool.m4 was used?
21901 macro_version=$macro_version
21902 macro_revision=$macro_revision
21903
21904 # Assembler program.
21905 AS=$lt_AS
21906
21907 # DLL creation program.
21908 DLLTOOL=$lt_DLLTOOL
21909
21910 # Object dumper program.
21911 OBJDUMP=$lt_OBJDUMP
21912
21913 # Whether or not to build static libraries.
21914 build_old_libs=$enable_static
21915
21916 # What type of objects to build.
21917 pic_mode=$pic_mode
21918
21919 # Whether or not to build shared libraries.
21920 build_libtool_libs=$enable_shared
21921
21922 # Whether or not to optimize for fast installation.
21923 fast_install=$enable_fast_install
21924
21925 # Shared archive member basename,for filename based shared library versioning on AIX.
21926 shared_archive_member_spec=$shared_archive_member_spec
21927
21928 # Shell to use when invoking shell scripts.
21929 SHELL=$lt_SHELL
21930
21931 # An echo program that protects backslashes.
21932 ECHO=$lt_ECHO
21933
21934 # The PATH separator for the build system.
21935 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21936
21937 # The host system.
21938 host_alias=$host_alias
21939 host=$host
21940 host_os=$host_os
21941
21942 # The build system.
21943 build_alias=$build_alias
21944 build=$build
21945 build_os=$build_os
21946
21947 # A sed program that does not truncate output.
21948 SED=$lt_SED
21949
21950 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21951 Xsed="\$SED -e 1s/^X//"
21952
21953 # A grep program that handles long lines.
21954 GREP=$lt_GREP
21955
21956 # An ERE matcher.
21957 EGREP=$lt_EGREP
21958
21959 # A literal string matcher.
21960 FGREP=$lt_FGREP
21961
21962 # A BSD- or MS-compatible name lister.
21963 NM=$lt_NM
21964
21965 # Whether we need soft or hard links.
21966 LN_S=$lt_LN_S
21967
21968 # What is the maximum length of a command?
21969 max_cmd_len=$max_cmd_len
21970
21971 # Object file suffix (normally "o").
21972 objext=$ac_objext
21973
21974 # Executable file suffix (normally "").
21975 exeext=$exeext
21976
21977 # whether the shell understands "unset".
21978 lt_unset=$lt_unset
21979
21980 # turn spaces into newlines.
21981 SP2NL=$lt_lt_SP2NL
21982
21983 # turn newlines into spaces.
21984 NL2SP=$lt_lt_NL2SP
21985
21986 # convert \$build file names to \$host format.
21987 to_host_file_cmd=$lt_cv_to_host_file_cmd
21988
21989 # convert \$build files to toolchain format.
21990 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21991
21992 # Method to check whether dependent libraries are shared objects.
21993 deplibs_check_method=$lt_deplibs_check_method
21994
21995 # Command to use when deplibs_check_method = "file_magic".
21996 file_magic_cmd=$lt_file_magic_cmd
21997
21998 # How to find potential files when deplibs_check_method = "file_magic".
21999 file_magic_glob=$lt_file_magic_glob
22000
22001 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22002 want_nocaseglob=$lt_want_nocaseglob
22003
22004 # Command to associate shared and link libraries.
22005 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22006
22007 # The archiver.
22008 AR=$lt_AR
22009
22010 # Flags to create an archive.
22011 AR_FLAGS=$lt_AR_FLAGS
22012
22013 # How to feed a file listing to the archiver.
22014 archiver_list_spec=$lt_archiver_list_spec
22015
22016 # A symbol stripping program.
22017 STRIP=$lt_STRIP
22018
22019 # Commands used to install an old-style archive.
22020 RANLIB=$lt_RANLIB
22021 old_postinstall_cmds=$lt_old_postinstall_cmds
22022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22023
22024 # Whether to use a lock for old archive extraction.
22025 lock_old_archive_extraction=$lock_old_archive_extraction
22026
22027 # A C compiler.
22028 LTCC=$lt_CC
22029
22030 # LTCC compiler flags.
22031 LTCFLAGS=$lt_CFLAGS
22032
22033 # Take the output of nm and produce a listing of raw symbols and C names.
22034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22035
22036 # Transform the output of nm in a proper C declaration.
22037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22038
22039 # Transform the output of nm into a list of symbols to manually relocate.
22040 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22041
22042 # Transform the output of nm in a C name address pair.
22043 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22044
22045 # Transform the output of nm in a C name address pair when lib prefix is needed.
22046 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22047
22048 # The name lister interface.
22049 nm_interface=$lt_lt_cv_nm_interface
22050
22051 # Specify filename containing input files for \$NM.
22052 nm_file_list_spec=$lt_nm_file_list_spec
22053
22054 # The root where to search for dependent libraries,and where our libraries should be installed.
22055 lt_sysroot=$lt_sysroot
22056
22057 # Command to truncate a binary pipe.
22058 lt_truncate_bin=$lt_lt_cv_truncate_bin
22059
22060 # The name of the directory that contains temporary libtool files.
22061 objdir=$objdir
22062
22063 # Used to examine libraries when file_magic_cmd begins with "file".
22064 MAGIC_CMD=$MAGIC_CMD
22065
22066 # Must we lock files when doing compilation?
22067 need_locks=$lt_need_locks
22068
22069 # Manifest tool.
22070 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22071
22072 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22073 DSYMUTIL=$lt_DSYMUTIL
22074
22075 # Tool to change global to local symbols on Mac OS X.
22076 NMEDIT=$lt_NMEDIT
22077
22078 # Tool to manipulate fat objects and archives on Mac OS X.
22079 LIPO=$lt_LIPO
22080
22081 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22082 OTOOL=$lt_OTOOL
22083
22084 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22085 OTOOL64=$lt_OTOOL64
22086
22087 # Old archive suffix (normally "a").
22088 libext=$libext
22089
22090 # Shared library suffix (normally ".so").
22091 shrext_cmds=$lt_shrext_cmds
22092
22093 # The commands to extract the exported symbol list from a shared archive.
22094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22095
22096 # Variables whose values should be saved in libtool wrapper scripts and
22097 # restored at link time.
22098 variables_saved_for_relink=$lt_variables_saved_for_relink
22099
22100 # Do we need the "lib" prefix for modules?
22101 need_lib_prefix=$need_lib_prefix
22102
22103 # Do we need a version for libraries?
22104 need_version=$need_version
22105
22106 # Library versioning type.
22107 version_type=$version_type
22108
22109 # Shared library runtime path variable.
22110 runpath_var=$runpath_var
22111
22112 # Shared library path variable.
22113 shlibpath_var=$shlibpath_var
22114
22115 # Is shlibpath searched before the hard-coded library search path?
22116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22117
22118 # Format of library name prefix.
22119 libname_spec=$lt_libname_spec
22120
22121 # List of archive names. First name is the real one, the rest are links.
22122 # The last name is the one that the linker finds with -lNAME
22123 library_names_spec=$lt_library_names_spec
22124
22125 # The coded name of the library, if different from the real name.
22126 soname_spec=$lt_soname_spec
22127
22128 # Permission mode override for installation of shared libraries.
22129 install_override_mode=$lt_install_override_mode
22130
22131 # Command to use after installation of a shared archive.
22132 postinstall_cmds=$lt_postinstall_cmds
22133
22134 # Command to use after uninstallation of a shared archive.
22135 postuninstall_cmds=$lt_postuninstall_cmds
22136
22137 # Commands used to finish a libtool library installation in a directory.
22138 finish_cmds=$lt_finish_cmds
22139
22140 # As "finish_cmds", except a single script fragment to be evaled but
22141 # not shown.
22142 finish_eval=$lt_finish_eval
22143
22144 # Whether we should hardcode library paths into libraries.
22145 hardcode_into_libs=$hardcode_into_libs
22146
22147 # Compile-time system search path for libraries.
22148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22149
22150 # Detected run-time system search path for libraries.
22151 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22152
22153 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22154 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22155
22156 # Whether dlopen is supported.
22157 dlopen_support=$enable_dlopen
22158
22159 # Whether dlopen of programs is supported.
22160 dlopen_self=$enable_dlopen_self
22161
22162 # Whether dlopen of statically linked programs is supported.
22163 dlopen_self_static=$enable_dlopen_self_static
22164
22165 # Commands to strip libraries.
22166 old_striplib=$lt_old_striplib
22167 striplib=$lt_striplib
22168
22169
22170 # The linker used to build libraries.
22171 LD=$lt_LD
22172
22173 # How to create reloadable object files.
22174 reload_flag=$lt_reload_flag
22175 reload_cmds=$lt_reload_cmds
22176
22177 # Commands used to build an old-style archive.
22178 old_archive_cmds=$lt_old_archive_cmds
22179
22180 # A language specific compiler.
22181 CC=$lt_compiler
22182
22183 # Is the compiler the GNU compiler?
22184 with_gcc=$GCC
22185
22186 # Compiler flag to turn off builtin functions.
22187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22188
22189 # Additional compiler flags for building library objects.
22190 pic_flag=$lt_lt_prog_compiler_pic
22191
22192 # How to pass a linker flag through the compiler.
22193 wl=$lt_lt_prog_compiler_wl
22194
22195 # Compiler flag to prevent dynamic linking.
22196 link_static_flag=$lt_lt_prog_compiler_static
22197
22198 # Does compiler simultaneously support -c and -o options?
22199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22200
22201 # Whether or not to add -lc for building shared libraries.
22202 build_libtool_need_lc=$archive_cmds_need_lc
22203
22204 # Whether or not to disallow shared libs when runtime libs are static.
22205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22206
22207 # Compiler flag to allow reflexive dlopens.
22208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22209
22210 # Compiler flag to generate shared objects directly from archives.
22211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22212
22213 # Whether the compiler copes with passing no objects directly.
22214 compiler_needs_object=$lt_compiler_needs_object
22215
22216 # Create an old-style archive from a shared archive.
22217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22218
22219 # Create a temporary old-style archive to link instead of a shared archive.
22220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22221
22222 # Commands used to build a shared archive.
22223 archive_cmds=$lt_archive_cmds
22224 archive_expsym_cmds=$lt_archive_expsym_cmds
22225
22226 # Commands used to build a loadable module if different from building
22227 # a shared archive.
22228 module_cmds=$lt_module_cmds
22229 module_expsym_cmds=$lt_module_expsym_cmds
22230
22231 # Whether we are building with GNU ld or not.
22232 with_gnu_ld=$lt_with_gnu_ld
22233
22234 # Flag that allows shared libraries with undefined symbols to be built.
22235 allow_undefined_flag=$lt_allow_undefined_flag
22236
22237 # Flag that enforces no undefined symbols.
22238 no_undefined_flag=$lt_no_undefined_flag
22239
22240 # Flag to hardcode \$libdir into a binary during linking.
22241 # This must work even if \$libdir does not exist
22242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22243
22244 # Whether we need a single "-rpath" flag with a separated argument.
22245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22246
22247 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22248 # DIR into the resulting binary.
22249 hardcode_direct=$hardcode_direct
22250
22251 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22252 # DIR into the resulting binary and the resulting library dependency is
22253 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22254 # library is relocated.
22255 hardcode_direct_absolute=$hardcode_direct_absolute
22256
22257 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22258 # into the resulting binary.
22259 hardcode_minus_L=$hardcode_minus_L
22260
22261 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22262 # into the resulting binary.
22263 hardcode_shlibpath_var=$hardcode_shlibpath_var
22264
22265 # Set to "yes" if building a shared library automatically hardcodes DIR
22266 # into the library and all subsequent libraries and executables linked
22267 # against it.
22268 hardcode_automatic=$hardcode_automatic
22269
22270 # Set to yes if linker adds runtime paths of dependent libraries
22271 # to runtime path list.
22272 inherit_rpath=$inherit_rpath
22273
22274 # Whether libtool must link a program against all its dependency libraries.
22275 link_all_deplibs=$link_all_deplibs
22276
22277 # Set to "yes" if exported symbols are required.
22278 always_export_symbols=$always_export_symbols
22279
22280 # The commands to list exported symbols.
22281 export_symbols_cmds=$lt_export_symbols_cmds
22282
22283 # Symbols that should not be listed in the preloaded symbols.
22284 exclude_expsyms=$lt_exclude_expsyms
22285
22286 # Symbols that must always be exported.
22287 include_expsyms=$lt_include_expsyms
22288
22289 # Commands necessary for linking programs (against libraries) with templates.
22290 prelink_cmds=$lt_prelink_cmds
22291
22292 # Commands necessary for finishing linking programs.
22293 postlink_cmds=$lt_postlink_cmds
22294
22295 # Specify filename containing input files.
22296 file_list_spec=$lt_file_list_spec
22297
22298 # How to hardcode a shared library path into an executable.
22299 hardcode_action=$hardcode_action
22300
22301 # The directories searched by this compiler when creating a shared library.
22302 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22303
22304 # Dependencies to place before and after the objects being linked to
22305 # create a shared library.
22306 predep_objects=$lt_predep_objects
22307 postdep_objects=$lt_postdep_objects
22308 predeps=$lt_predeps
22309 postdeps=$lt_postdeps
22310
22311 # The library search path used internally by the compiler when linking
22312 # a shared library.
22313 compiler_lib_search_path=$lt_compiler_lib_search_path
22314
22315 # ### END LIBTOOL CONFIG
22316
22317 _LT_EOF
22318
22319 cat <<'_LT_EOF' >> "$cfgfile"
22320
22321 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22322
22323 # func_munge_path_list VARIABLE PATH
22324 # -----------------------------------
22325 # VARIABLE is name of variable containing _space_ separated list of
22326 # directories to be munged by the contents of PATH, which is string
22327 # having a format:
22328 # "DIR[:DIR]:"
22329 # string "DIR[ DIR]" will be prepended to VARIABLE
22330 # ":DIR[:DIR]"
22331 # string "DIR[ DIR]" will be appended to VARIABLE
22332 # "DIRP[:DIRP]::[DIRA:]DIRA"
22333 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22334 # "DIRA[ DIRA]" will be appended to VARIABLE
22335 # "DIR[:DIR]"
22336 # VARIABLE will be replaced by "DIR[ DIR]"
22337 func_munge_path_list ()
22338 {
22339 case x$2 in
22340 x)
22341 ;;
22342 *:)
22343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22344 ;;
22345 x:*)
22346 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22347 ;;
22348 *::*)
22349 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22350 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22351 ;;
22352 *)
22353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22354 ;;
22355 esac
22356 }
22357
22358
22359 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22360 func_cc_basename ()
22361 {
22362 for cc_temp in $*""; do
22363 case $cc_temp in
22364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22366 \-*) ;;
22367 *) break;;
22368 esac
22369 done
22370 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22371 }
22372
22373
22374 # ### END FUNCTIONS SHARED WITH CONFIGURE
22375
22376 _LT_EOF
22377
22378 case $host_os in
22379 aix3*)
22380 cat <<\_LT_EOF >> "$cfgfile"
22381 # AIX sometimes has problems with the GCC collect2 program. For some
22382 # reason, if we set the COLLECT_NAMES environment variable, the problems
22383 # vanish in a puff of smoke.
22384 if test set != "${COLLECT_NAMES+set}"; then
22385 COLLECT_NAMES=
22386 export COLLECT_NAMES
22387 fi
22388 _LT_EOF
22389 ;;
22390 esac
22391
22392
22393 ltmain=$ac_aux_dir/ltmain.sh
22394
22395
22396 # We use sed instead of cat because bash on DJGPP gets confused if
22397 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22398 # text mode, it properly converts lines to CR/LF. This bash problem
22399 # is reportedly fixed, but why not run on old versions too?
22400 sed '$q' "$ltmain" >> "$cfgfile" \
22401 || (rm -f "$cfgfile"; exit 1)
22402
22403 mv -f "$cfgfile" "$ofile" ||
22404 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22405 chmod +x "$ofile"
22406
22407
22408 cat <<_LT_EOF >> "$ofile"
22409
22410 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22411
22412 # The linker used to build libraries.
22413 LD=$lt_LD_CXX
22414
22415 # How to create reloadable object files.
22416 reload_flag=$lt_reload_flag_CXX
22417 reload_cmds=$lt_reload_cmds_CXX
22418
22419 # Commands used to build an old-style archive.
22420 old_archive_cmds=$lt_old_archive_cmds_CXX
22421
22422 # A language specific compiler.
22423 CC=$lt_compiler_CXX
22424
22425 # Is the compiler the GNU compiler?
22426 with_gcc=$GCC_CXX
22427
22428 # Compiler flag to turn off builtin functions.
22429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22430
22431 # Additional compiler flags for building library objects.
22432 pic_flag=$lt_lt_prog_compiler_pic_CXX
22433
22434 # How to pass a linker flag through the compiler.
22435 wl=$lt_lt_prog_compiler_wl_CXX
22436
22437 # Compiler flag to prevent dynamic linking.
22438 link_static_flag=$lt_lt_prog_compiler_static_CXX
22439
22440 # Does compiler simultaneously support -c and -o options?
22441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22442
22443 # Whether or not to add -lc for building shared libraries.
22444 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22445
22446 # Whether or not to disallow shared libs when runtime libs are static.
22447 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22448
22449 # Compiler flag to allow reflexive dlopens.
22450 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22451
22452 # Compiler flag to generate shared objects directly from archives.
22453 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22454
22455 # Whether the compiler copes with passing no objects directly.
22456 compiler_needs_object=$lt_compiler_needs_object_CXX
22457
22458 # Create an old-style archive from a shared archive.
22459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22460
22461 # Create a temporary old-style archive to link instead of a shared archive.
22462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22463
22464 # Commands used to build a shared archive.
22465 archive_cmds=$lt_archive_cmds_CXX
22466 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22467
22468 # Commands used to build a loadable module if different from building
22469 # a shared archive.
22470 module_cmds=$lt_module_cmds_CXX
22471 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22472
22473 # Whether we are building with GNU ld or not.
22474 with_gnu_ld=$lt_with_gnu_ld_CXX
22475
22476 # Flag that allows shared libraries with undefined symbols to be built.
22477 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22478
22479 # Flag that enforces no undefined symbols.
22480 no_undefined_flag=$lt_no_undefined_flag_CXX
22481
22482 # Flag to hardcode \$libdir into a binary during linking.
22483 # This must work even if \$libdir does not exist
22484 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22485
22486 # Whether we need a single "-rpath" flag with a separated argument.
22487 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22488
22489 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22490 # DIR into the resulting binary.
22491 hardcode_direct=$hardcode_direct_CXX
22492
22493 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22494 # DIR into the resulting binary and the resulting library dependency is
22495 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22496 # library is relocated.
22497 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22498
22499 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22500 # into the resulting binary.
22501 hardcode_minus_L=$hardcode_minus_L_CXX
22502
22503 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22504 # into the resulting binary.
22505 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22506
22507 # Set to "yes" if building a shared library automatically hardcodes DIR
22508 # into the library and all subsequent libraries and executables linked
22509 # against it.
22510 hardcode_automatic=$hardcode_automatic_CXX
22511
22512 # Set to yes if linker adds runtime paths of dependent libraries
22513 # to runtime path list.
22514 inherit_rpath=$inherit_rpath_CXX
22515
22516 # Whether libtool must link a program against all its dependency libraries.
22517 link_all_deplibs=$link_all_deplibs_CXX
22518
22519 # Set to "yes" if exported symbols are required.
22520 always_export_symbols=$always_export_symbols_CXX
22521
22522 # The commands to list exported symbols.
22523 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22524
22525 # Symbols that should not be listed in the preloaded symbols.
22526 exclude_expsyms=$lt_exclude_expsyms_CXX
22527
22528 # Symbols that must always be exported.
22529 include_expsyms=$lt_include_expsyms_CXX
22530
22531 # Commands necessary for linking programs (against libraries) with templates.
22532 prelink_cmds=$lt_prelink_cmds_CXX
22533
22534 # Commands necessary for finishing linking programs.
22535 postlink_cmds=$lt_postlink_cmds_CXX
22536
22537 # Specify filename containing input files.
22538 file_list_spec=$lt_file_list_spec_CXX
22539
22540 # How to hardcode a shared library path into an executable.
22541 hardcode_action=$hardcode_action_CXX
22542
22543 # The directories searched by this compiler when creating a shared library.
22544 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22545
22546 # Dependencies to place before and after the objects being linked to
22547 # create a shared library.
22548 predep_objects=$lt_predep_objects_CXX
22549 postdep_objects=$lt_postdep_objects_CXX
22550 predeps=$lt_predeps_CXX
22551 postdeps=$lt_postdeps_CXX
22552
22553 # The library search path used internally by the compiler when linking
22554 # a shared library.
22555 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22556
22557 # ### END LIBTOOL TAG CONFIG: CXX
22558 _LT_EOF
22559
22560 ;;
22561
22562 esac
22563 done # for ac_tag
22564
22565
22566 as_fn_exit 0
22567 _ACEOF
22568 ac_clean_files=$ac_clean_files_save
22569
22570 test $ac_write_fail = 0 ||
22571 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22572
22573
22574 # configure is writing to config.log, and then calls config.status.
22575 # config.status does its own redirection, appending to config.log.
22576 # Unfortunately, on DOS this fails, as config.log is still kept open
22577 # by configure, so config.status won't be able to write to it; its
22578 # output is simply discarded. So we exec the FD to /dev/null,
22579 # effectively closing config.log, so it can be properly (re)opened and
22580 # appended to by config.status. When coming back to configure, we
22581 # need to make the FD available again.
22582 if test "$no_create" != yes; then
22583 ac_cs_success=:
22584 ac_config_status_args=
22585 test "$silent" = yes &&
22586 ac_config_status_args="$ac_config_status_args --quiet"
22587 exec 5>/dev/null
22588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22589 exec 5>>config.log
22590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22591 # would make configure fail if this is the last instruction.
22592 $ac_cs_success || as_fn_exit 1
22593 fi
22594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22597 fi
22598
22599
22600 # ==============================================
22601 # Display final informations about configuration
22602 # ==============================================
22603 { $as_echo "$as_me:${as_lineno-$LINENO}:
22604 ==============================================================================
22605 Build configuration:
22606 debug: ${enable_debug}
22607 docs: ${build_docs}
22608 experimental: ${enable_experimental}
22609 fuzzers: ${enable_fuzzers}
22610 liblangtag: ${with_liblangtag}
22611 tests: ${enable_tests}
22612 tools: ${with_tools}
22613 werror: ${enable_werror}
22614 ==============================================================================
22615 " >&5
22616 $as_echo "$as_me:
22617 ==============================================================================
22618 Build configuration:
22619 debug: ${enable_debug}
22620 docs: ${build_docs}
22621 experimental: ${enable_experimental}
22622 fuzzers: ${enable_fuzzers}
22623 liblangtag: ${with_liblangtag}
22624 tests: ${enable_tests}
22625 tools: ${with_tools}
22626 werror: ${enable_werror}
22627 ==============================================================================
22628 " >&6;}
22629