Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for liblqr-1 0.4.2.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell [email protected] about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='liblqr-1'
569 PACKAGE_TARNAME='liblqr-1'
570 PACKAGE_VERSION='0.4.2'
571 PACKAGE_STRING='liblqr-1 0.4.2'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_default_prefix=/usr
576 ac_unique_file="lqr/lqr_carver.c"
577 # Factoring default headers for most tests.
578 ac_includes_default="\
579 #include <stdio.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef STDC_HEADERS
587 # include <stdlib.h>
588 # include <stddef.h>
589 #else
590 # ifdef HAVE_STDLIB_H
591 # include <stdlib.h>
592 # endif
593 #endif
594 #ifdef HAVE_STRING_H
595 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
596 # include <memory.h>
597 # endif
598 # include <string.h>
599 #endif
600 #ifdef HAVE_STRINGS_H
601 # include <strings.h>
602 #endif
603 #ifdef HAVE_INTTYPES_H
604 # include <inttypes.h>
605 #endif
606 #ifdef HAVE_STDINT_H
607 # include <stdint.h>
608 #endif
609 #ifdef HAVE_UNISTD_H
610 # include <unistd.h>
611 #endif"
612
613 ac_subst_vars='LTLIBOBJS
614 LIBOBJS
615 FVISIBILITY_FLAG
616 LT_NOUNDEF_FLAG
617 INSTMAN_FALSE
618 INSTMAN_TRUE
619 DATADIR
620 GLIB_DIR
621 GLIB_LIBS
622 GLIB_CFLAGS
623 PKG_CONFIG_LIBDIR
624 PKG_CONFIG_PATH
625 PKG_CONFIG
626 MAINT
627 MAINTAINER_MODE_FALSE
628 MAINTAINER_MODE_TRUE
629 CXXCPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 ac_ct_AR
637 AR
638 NM
639 ac_ct_DUMPBIN
640 DUMPBIN
641 LD
642 FGREP
643 SED
644 host_os
645 host_vendor
646 host_cpu
647 host
648 build_os
649 build_vendor
650 build_cpu
651 build
652 LIBTOOL
653 OBJDUMP
654 DLLTOOL
655 AS
656 EGREP
657 GREP
658 CPP
659 RANLIB
660 LN_S
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
666 CXX
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 am__untar
684 am__tar
685 AMTAR
686 am__leading_dot
687 SET_MAKE
688 AWK
689 mkdir_p
690 INSTALL_STRIP_PROGRAM
691 STRIP
692 install_sh
693 MAKEINFO
694 AUTOHEADER
695 AUTOMAKE
696 AUTOCONF
697 ACLOCAL
698 VERSION
699 PACKAGE
700 CYGPATH_W
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 LTVERSION
705 LIBRARY_SNAME
706 LIBRARY_NAME
707 API_VERSION
708 LIBRARY_BASE_NAME
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
751 enable_static
752 enable_shared
753 with_pic
754 enable_fast_install
755 with_gnu_ld
756 with_sysroot
757 enable_libtool_lock
758 enable_maintainer_mode
759 enable_install_man
760 enable_legacy_macros
761 enable_declspec
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 CXX
772 CXXFLAGS
773 CCC
774 CPP
775 CXXCPP
776 PKG_CONFIG
777 PKG_CONFIG_PATH
778 PKG_CONFIG_LIBDIR
779 GLIB_CFLAGS
780 GLIB_LIBS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures liblqr-1 0.4.2 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/liblqr-1]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of liblqr-1 0.4.2:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-static[=PKGS] build static libraries [default=no]
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1410 --enable-install-man Install man pages
1411 --disable-legacy-macros Disable legacy macros
1412 --disable-declspec Disable Win32 __declspec directives (only meaningful
1413 for building static library on MinGW)
1414
1415 Optional Packages:
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1419 both]
1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1421 --with-sysroot=DIR Search for dependent libraries within DIR
1422 (or the compiler's sysroot if not specified).
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 CXX C++ compiler command
1433 CXXFLAGS C++ compiler flags
1434 CPP C preprocessor
1435 CXXCPP C++ preprocessor
1436 PKG_CONFIG path to pkg-config utility
1437 PKG_CONFIG_PATH
1438 directories to add to pkg-config's search path
1439 PKG_CONFIG_LIBDIR
1440 path overriding pkg-config's built-in search path
1441 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1442 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to the package provider.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
1458 ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477 .) # We are building in place.
1478 ac_srcdir=.
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
1482 ac_srcdir=$srcdir$ac_dir_suffix;
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
1500 else
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
1504 done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509 cat <<\_ACEOF
1510 liblqr-1 configure 0.4.2
1511 generated by GNU Autoconf 2.68
1512
1513 Copyright (C) 2010 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517 exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551 else
1552 $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555 ac_retval=1
1556 fi
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_cxx_try_compile LINENO
1609 # ----------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_cxx_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_cxx_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_cxx_try_compile
1645
1646 # ac_fn_c_try_cpp LINENO
1647 # ----------------------
1648 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_cpp ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_cpp conftest.$ac_ext"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } > conftest.i && {
1668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_cpp
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1772
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1777
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1783
1784 #undef $2
1785
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1799
1800 int
1801 main ()
1802 {
1803 return $2 ();
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821 } # ac_fn_c_check_func
1822
1823 # ac_fn_cxx_try_cpp LINENO
1824 # ------------------------
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_cpp ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_cpp conftest.$ac_ext"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } > conftest.i && {
1845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1846 test ! -s conftest.err
1847 }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854 fi
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_cxx_try_cpp
1859
1860 # ac_fn_cxx_try_link LINENO
1861 # -------------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_link ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1880 fi
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 $as_test_x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=1
1895 fi
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1903
1904 } # ac_fn_cxx_try_link
1905 cat >config.log <<_ACEOF
1906 This file contains any messages produced by compilers while
1907 running configure, to aid debugging if configure makes a mistake.
1908
1909 It was created by liblqr-1 $as_me 0.4.2, which was
1910 generated by GNU Autoconf 2.68. Invocation command line was
1911
1912 $ $0 $@
1913
1914 _ACEOF
1915 exec 5>>config.log
1916 {
1917 cat <<_ASUNAME
1918 ## --------- ##
1919 ## Platform. ##
1920 ## --------- ##
1921
1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1923 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1924 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1925 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1926 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927
1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930
1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1938
1939 _ASUNAME
1940
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 $as_echo "PATH: $as_dir"
1947 done
1948 IFS=$as_save_IFS
1949
1950 } >&5
1951
1952 cat >&5 <<_ACEOF
1953
1954
1955 ## ----------- ##
1956 ## Core tests. ##
1957 ## ----------- ##
1958
1959 _ACEOF
1960
1961
1962 # Keep a trace of the command line.
1963 # Strip out --no-create and --no-recursion so they do not pile up.
1964 # Strip out --silent because we don't want to record it for future runs.
1965 # Also quote any args containing shell meta-characters.
1966 # Make two passes to allow for proper duplicate-argument suppression.
1967 ac_configure_args=
1968 ac_configure_args0=
1969 ac_configure_args1=
1970 ac_must_keep_next=false
1971 for ac_pass in 1 2
1972 do
1973 for ac_arg
1974 do
1975 case $ac_arg in
1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1978 | -silent | --silent | --silen | --sile | --sil)
1979 continue ;;
1980 *\'*)
1981 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 esac
1983 case $ac_pass in
1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 2)
1986 as_fn_append ac_configure_args1 " '$ac_arg'"
1987 if test $ac_must_keep_next = true; then
1988 ac_must_keep_next=false # Got value, back to normal.
1989 else
1990 case $ac_arg in
1991 *=* | --config-cache | -C | -disable-* | --disable-* \
1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1994 | -with-* | --with-* | -without-* | --without-* | --x)
1995 case "$ac_configure_args0 " in
1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 esac
1998 ;;
1999 -* ) ac_must_keep_next=true ;;
2000 esac
2001 fi
2002 as_fn_append ac_configure_args " '$ac_arg'"
2003 ;;
2004 esac
2005 done
2006 done
2007 { ac_configure_args0=; unset ac_configure_args0;}
2008 { ac_configure_args1=; unset ac_configure_args1;}
2009
2010 # When interrupted or exit'd, cleanup temporary files, and complete
2011 # config.log. We remove comments because anyway the quotes in there
2012 # would cause problems or look ugly.
2013 # WARNING: Use '\'' to represent an apostrophe within the trap.
2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2015 trap 'exit_status=$?
2016 # Save into config.log some information that might help in debugging.
2017 {
2018 echo
2019
2020 $as_echo "## ---------------- ##
2021 ## Cache variables. ##
2022 ## ---------------- ##"
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
2025 (
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
2041 (set) 2>&1 |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2044 sed -n \
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
2048 *)
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 ;;
2051 esac |
2052 sort
2053 )
2054 echo
2055
2056 $as_echo "## ----------------- ##
2057 ## Output variables. ##
2058 ## ----------------- ##"
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 $as_echo "## ------------------- ##
2072 ## File substitutions. ##
2073 ## ------------------- ##"
2074 echo
2075 for ac_var in $ac_subst_files
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084 fi
2085
2086 if test -s confdefs.h; then
2087 $as_echo "## ----------- ##
2088 ## confdefs.h. ##
2089 ## ----------- ##"
2090 echo
2091 cat confdefs.h
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
2097 } >&5
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 $as_echo "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2136 _ACEOF
2137
2138
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2141 ac_site_file1=NONE
2142 ac_site_file2=NONE
2143 if test -n "$CONFIG_SITE"; then
2144 # We do not want a PATH search for config.site.
2145 case $CONFIG_SITE in #((
2146 -*) ac_site_file1=./$CONFIG_SITE;;
2147 */*) ac_site_file1=$CONFIG_SITE;;
2148 *) ac_site_file1=./$CONFIG_SITE;;
2149 esac
2150 elif test "x$prefix" != xNONE; then
2151 ac_site_file1=$prefix/share/config.site
2152 ac_site_file2=$prefix/etc/config.site
2153 else
2154 ac_site_file1=$ac_default_prefix/share/config.site
2155 ac_site_file2=$ac_default_prefix/etc/config.site
2156 fi
2157 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2158 do
2159 test "x$ac_site_file" = xNONE && continue
2160 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2162 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2163 sed 's/^/| /' "$ac_site_file" >&5
2164 . "$ac_site_file" \
2165 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167 as_fn_error $? "failed to load site script $ac_site_file
2168 See \`config.log' for more details" "$LINENO" 5; }
2169 fi
2170 done
2171
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special files
2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2175 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 case $cache_file in
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2181 esac
2182 fi
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185 $as_echo "$as_me: creating cache $cache_file" >&6;}
2186 >$cache_file
2187 fi
2188
2189 # Check that the precious variables saved in the cache have kept the same
2190 # value.
2191 ac_cache_corrupted=false
2192 for ac_var in $ac_precious_vars; do
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
2197 case $ac_old_set,$ac_new_set in
2198 set,)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,set)
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2236 esac
2237 fi
2238 done
2239 if $ac_cache_corrupted; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245 fi
2246 ## -------------------- ##
2247 ## Main body of script. ##
2248 ## -------------------- ##
2249
2250 ac_ext=c
2251 ac_cpp='$CPP $CPPFLAGS'
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257
2258
2259
2260
2261 $as_echo "#define LIBRARY_NAME PACKAGE_NAME" >>confdefs.h
2262
2263
2264
2265 $as_echo "#define PACKAGE_MAJOR_VERSION 0" >>confdefs.h
2266
2267
2268 $as_echo "#define PACKAGE_MINOR_VERSION 4" >>confdefs.h
2269
2270
2271 $as_echo "#define PACKAGE_MICRO_VERSION 2" >>confdefs.h
2272
2273
2274
2275 $as_echo "#define LTVERSION_CURRENT 3" >>confdefs.h
2276
2277
2278 $as_echo "#define LTVERSION_REVISON 2" >>confdefs.h
2279
2280
2281 $as_echo "#define LTVERSION_AGE 3" >>confdefs.h
2282
2283
2284 LIBRARY_BASE_NAME=lqr
2285
2286 API_VERSION=1
2287
2288 LIBRARY_NAME=liblqr-1
2289
2290 LIBRARY_SNAME=lqr-1
2291
2292
2293 PACKAGE_VERSION=0.4.2
2294
2295
2296 LTVERSION=3:2:3
2297
2298
2299
2300 ac_config_headers="$ac_config_headers config.h"
2301
2302
2303
2304
2305 am__api_version="1.9"
2306 ac_aux_dir=
2307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 if test -f "$ac_dir/install-sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f "$ac_dir/install.sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f "$ac_dir/shtool"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2320 fi
2321 done
2322 if test -z "$ac_aux_dir"; then
2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2324 fi
2325
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
2334
2335 # Find a good install program. We prefer a C program (faster),
2336 # so one script is as good as another. But avoid the broken or
2337 # incompatible versions:
2338 # SysV /etc/install, /usr/sbin/install
2339 # SunOS /usr/etc/install
2340 # IRIX /sbin/install
2341 # AIX /bin/install
2342 # AmigaOS /C/install, which installs bootblocks on floppy discs
2343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2346 # OS/2's system install, which has a completely different semantic
2347 # ./install, which can be erroneously created by make from ./install.sh.
2348 # Reject install programs that cannot install multiple files.
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2350 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2351 if test -z "$INSTALL"; then
2352 if ${ac_cv_path_install+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 # Account for people who put trailing slashes in PATH elements.
2361 case $as_dir/ in #((
2362 ./ | .// | /[cC]/* | \
2363 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2364 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2365 /usr/ucb/* ) ;;
2366 *)
2367 # OSF1 and SCO ODT 3.0 have their own names for install.
2368 # Don't use installbsd from OSF since it installs stuff as root
2369 # by default.
2370 for ac_prog in ginstall scoinst install; do
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2373 if test $ac_prog = install &&
2374 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375 # AIX install. It has an incompatible calling convention.
2376 :
2377 elif test $ac_prog = install &&
2378 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # program-specific install script used by HP pwplus--don't use.
2380 :
2381 else
2382 rm -rf conftest.one conftest.two conftest.dir
2383 echo one > conftest.one
2384 echo two > conftest.two
2385 mkdir conftest.dir
2386 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2387 test -s conftest.one && test -s conftest.two &&
2388 test -s conftest.dir/conftest.one &&
2389 test -s conftest.dir/conftest.two
2390 then
2391 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2392 break 3
2393 fi
2394 fi
2395 fi
2396 done
2397 done
2398 ;;
2399 esac
2400
2401 done
2402 IFS=$as_save_IFS
2403
2404 rm -rf conftest.one conftest.two conftest.dir
2405
2406 fi
2407 if test "${ac_cv_path_install+set}" = set; then
2408 INSTALL=$ac_cv_path_install
2409 else
2410 # As a last resort, use the slow shell script. Don't cache a
2411 # value for INSTALL within a source directory, because that will
2412 # break other packages using the cache if that directory is
2413 # removed, or if the value is a relative name.
2414 INSTALL=$ac_install_sh
2415 fi
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2418 $as_echo "$INSTALL" >&6; }
2419
2420 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2421 # It thinks the first close brace ends the variable substitution.
2422 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2423
2424 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2425
2426 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2429 $as_echo_n "checking whether build environment is sane... " >&6; }
2430 # Just in case
2431 sleep 1
2432 echo timestamp > conftest.file
2433 # Do `set' in a subshell so we don't clobber the current shell's
2434 # arguments. Must try -L first in case configure is actually a
2435 # symlink; some systems play weird games with the mod time of symlinks
2436 # (eg FreeBSD returns the mod time of the symlink's containing
2437 # directory).
2438 if (
2439 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2440 if test "$*" = "X"; then
2441 # -L didn't work.
2442 set X `ls -t $srcdir/configure conftest.file`
2443 fi
2444 rm -f conftest.file
2445 if test "$*" != "X $srcdir/configure conftest.file" \
2446 && test "$*" != "X conftest.file $srcdir/configure"; then
2447
2448 # If neither matched, then we have a broken ls. This can happen
2449 # if, for instance, CONFIG_SHELL is bash and it inherits a
2450 # broken ls alias from the environment. This has actually
2451 # happened. Such a system could not be considered "sane".
2452 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2453 alias in your environment" "$LINENO" 5
2454 fi
2455
2456 test "$2" = conftest.file
2457 )
2458 then
2459 # Ok.
2460 :
2461 else
2462 as_fn_error $? "newly created file is older than distributed files!
2463 Check your system clock" "$LINENO" 5
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2466 $as_echo "yes" >&6; }
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2472 # Double any \ or $.
2473 # By default was `s,x,x', remove it if useless.
2474 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2475 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2476
2477 # expand $ac_aux_dir to an absolute path
2478 am_aux_dir=`cd $ac_aux_dir && pwd`
2479
2480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483 am_missing_run="$MISSING --run "
2484 else
2485 am_missing_run=
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2488 fi
2489
2490 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2491 # We used to keeping the `.' as first argument, in order to
2492 # allow $(mkdir_p) to be used without argument. As in
2493 # $(mkdir_p) $(somedir)
2494 # where $(somedir) is conditionally defined. However this is wrong
2495 # for two reasons:
2496 # 1. if the package is installed by a user who cannot write `.'
2497 # make install will fail,
2498 # 2. the above comment should most certainly read
2499 # $(mkdir_p) $(DESTDIR)$(somedir)
2500 # so it does not work when $(somedir) is undefined and
2501 # $(DESTDIR) is not.
2502 # To support the latter case, we have to write
2503 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2504 # so the `.' trick is pointless.
2505 mkdir_p='mkdir -p --'
2506 else
2507 # On NextStep and OpenStep, the `mkdir' command does not
2508 # recognize any option. It will interpret all options as
2509 # directories to create, and then abort because `.' already
2510 # exists.
2511 for d in ./-p ./--version;
2512 do
2513 test -d $d && rmdir $d
2514 done
2515 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2516 if test -f "$ac_aux_dir/mkinstalldirs"; then
2517 mkdir_p='$(mkinstalldirs)'
2518 else
2519 mkdir_p='$(install_sh) -d'
2520 fi
2521 fi
2522
2523 for ac_prog in gawk mawk nawk awk
2524 do
2525 # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_AWK+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$AWK"; then
2533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_AWK="$ac_prog"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 break 2
2545 fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 AWK=$ac_cv_prog_AWK
2553 if test -n "$AWK"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2555 $as_echo "$AWK" >&6; }
2556 else
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562 test -n "$AWK" && break
2563 done
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2567 set x ${MAKE-make}
2568 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2569 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 cat >conftest.make <<\_ACEOF
2573 SHELL = /bin/sh
2574 all:
2575 @echo '@@@%%%=$(MAKE)=@@@%%%'
2576 _ACEOF
2577 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2579 *@@@%%%=?*=@@@%%%*)
2580 eval ac_cv_prog_make_${ac_make}_set=yes;;
2581 *)
2582 eval ac_cv_prog_make_${ac_make}_set=no;;
2583 esac
2584 rm -f conftest.make
2585 fi
2586 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 SET_MAKE=
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 SET_MAKE="MAKE=${MAKE-make}"
2594 fi
2595
2596 rm -rf .tst 2>/dev/null
2597 mkdir .tst 2>/dev/null
2598 if test -d .tst; then
2599 am__leading_dot=.
2600 else
2601 am__leading_dot=_
2602 fi
2603 rmdir .tst 2>/dev/null
2604
2605 # test to see if srcdir already configured
2606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2607 test -f $srcdir/config.status; then
2608 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2609 fi
2610
2611 # test whether we have cygpath
2612 if test -z "$CYGPATH_W"; then
2613 if (cygpath --version) >/dev/null 2>/dev/null; then
2614 CYGPATH_W='cygpath -w'
2615 else
2616 CYGPATH_W=echo
2617 fi
2618 fi
2619
2620
2621 # Define the identity of the package.
2622 PACKAGE='liblqr-1'
2623 VERSION='0.4.2'
2624
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE "$PACKAGE"
2628 _ACEOF
2629
2630
2631 cat >>confdefs.h <<_ACEOF
2632 #define VERSION "$VERSION"
2633 _ACEOF
2634
2635 # Some tools Automake needs.
2636
2637 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2638
2639
2640 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2641
2642
2643 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2644
2645
2646 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2647
2648
2649 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2650
2651 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2652
2653 # Installed binaries are usually stripped using `strip' when the user
2654 # run `make install-strip'. However `strip' might not be the right
2655 # tool to use in cross-compilation environments, therefore Automake
2656 # will honor the `STRIP' environment variable to overrule this program.
2657 if test "$cross_compiling" != no; then
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2660 set dummy ${ac_tool_prefix}strip; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_STRIP+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$STRIP"; then
2667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 STRIP=$ac_cv_prog_STRIP
2687 if test -n "$STRIP"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2689 $as_echo "$STRIP" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_STRIP"; then
2698 ac_ct_STRIP=$STRIP
2699 # Extract the first word of "strip", so it can be a program name with args.
2700 set dummy strip; ac_word=$2
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$ac_ct_STRIP"; then
2707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_ac_ct_STRIP="strip"
2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2727 if test -n "$ac_ct_STRIP"; then
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2729 $as_echo "$ac_ct_STRIP" >&6; }
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735 if test "x$ac_ct_STRIP" = x; then
2736 STRIP=":"
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 STRIP=$ac_ct_STRIP
2745 fi
2746 else
2747 STRIP="$ac_cv_prog_STRIP"
2748 fi
2749
2750 fi
2751 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2752
2753 # We need awk for the "check" target. The system "awk" is bad on
2754 # some platforms.
2755 # Always define AMTAR for backward compatibility.
2756
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2758
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2760
2761
2762
2763
2764
2765
2766 DEPDIR="${am__leading_dot}deps"
2767
2768 ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2773 am__doit:
2774 @echo done
2775 .PHONY: am__doit
2776 END
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2780 am__include="#"
2781 am__quote=
2782 _am_result=none
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # We grep out `Entering directory' and `Leaving directory'
2786 # messages which can occur if `w' ends up in MAKEFLAGS.
2787 # In particular we don't look at `^make:' because GNU make might
2788 # be invoked under some other name (usually "gmake"), in which
2789 # case it prints its new name instead of `make'.
2790 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2791 am__include=include
2792 am__quote=
2793 _am_result=GNU
2794 fi
2795 # Now try BSD make style include.
2796 if test "$am__include" = "#"; then
2797 echo '.include "confinc"' > confmf
2798 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2799 am__include=.include
2800 am__quote="\""
2801 _am_result=BSD
2802 fi
2803 fi
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2809
2810 # Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812 enableval=$enable_dependency_tracking;
2813 fi
2814
2815 if test "x$enable_dependency_tracking" != xno; then
2816 am_depcomp="$ac_aux_dir/depcomp"
2817 AMDEPBACKSLASH='\'
2818 fi
2819
2820
2821 if test "x$enable_dependency_tracking" != xno; then
2822 AMDEP_TRUE=
2823 AMDEP_FALSE='#'
2824 else
2825 AMDEP_TRUE='#'
2826 AMDEP_FALSE=
2827 fi
2828
2829
2830
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$ac_cv_prog_CC"; then
2876 ac_ct_CC=$CC
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913 if test "x$ac_ct_CC" = x; then
2914 CC=""
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922 CC=$ac_ct_CC
2923 fi
2924 else
2925 CC="$ac_cv_prog_CC"
2926 fi
2927
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2965
2966
2967 fi
2968 fi
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2990 continue
2991 fi
2992 ac_cv_prog_CC="cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3003 shift
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3008 shift
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010 fi
3011 fi
3012 fi
3013 fi
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3028 do
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050 done
3051 done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066 test -n "$CC" && break
3067 done
3068 fi
3069 if test -z "$CC"; then
3070 ac_ct_CC=$CC
3071 for ac_prog in cl.exe
3072 do
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 test -n "$ac_ct_CC" && break
3111 done
3112
3113 if test "x$ac_ct_CC" = x; then
3114 CC=""
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 CC=$ac_ct_CC
3123 fi
3124 fi
3125
3126 fi
3127
3128
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details" "$LINENO" 5; }
3133
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 ac_status=$?
3148 if test -s conftest.err; then
3149 sed '10a\
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3153 fi
3154 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3157 done
3158
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161
3162 int
3163 main ()
3164 {
3165
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3184 do
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188 esac
3189 done
3190 rm -f $ac_rmfiles
3191
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3207 # Autoconf.
3208 for ac_file in $ac_files ''
3209 do
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3213 ;;
3214 [ab].out )
3215 # We found the default executable, but exeext='' is most
3216 # certainly right.
3217 break;;
3218 *.* )
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220 then :; else
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 fi
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3227 # actually working.
3228 break;;
3229 * )
3230 break;;
3231 esac
3232 done
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3234
3235 else
3236 ac_file=''
3237 fi
3238 if test -z "$ac_file"; then :
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3257
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe'), while it won't with
3276 # `rm'.
3277 for ac_file in conftest.exe conftest conftest.*; do
3278 test -f "$ac_file" || continue
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282 break;;
3283 * ) break;;
3284 esac
3285 done
3286 else
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details" "$LINENO" 5; }
3291 fi
3292 rm -f conftest conftest$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3295
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3298 ac_exeext=$EXEEXT
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301 #include <stdio.h>
3302 int
3303 main ()
3304 {
3305 FILE *f = fopen ("conftest.out", "w");
3306 return ferror (f) || fclose (f) != 0;
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 ac_clean_files="$ac_clean_files conftest.out"
3313 # Check that the compiler produces executables we can run. If not, either
3314 # the compiler is broken, or we cross compile.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316 $as_echo_n "checking whether we are cross compiling... " >&6; }
3317 if test "$cross_compiling" != yes; then
3318 { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 if { ac_try='./conftest$ac_cv_exeext'
3330 { { case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; }; then
3340 cross_compiling=no
3341 else
3342 if test "$cross_compiling" = maybe; then
3343 cross_compiling=yes
3344 else
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 fi
3351 fi
3352 fi
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354 $as_echo "$cross_compiling" >&6; }
3355
3356 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if ${ac_cv_objext+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.o conftest.obj
3375 if { { ac_try="$ac_compile"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_compile") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 for ac_file in conftest.o conftest.obj conftest.*; do
3387 test -f "$ac_file" || continue;
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3391 break;;
3392 esac
3393 done
3394 else
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of object files: cannot compile
3401 See \`config.log' for more details" "$LINENO" 5; }
3402 fi
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406 $as_echo "$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3408 ac_objext=$OBJEXT
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411 if ${ac_cv_c_compiler_gnu+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420 #ifndef __GNUC__
3421 choke me
3422 #endif
3423
3424 ;
3425 return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_compiler_gnu=yes
3430 else
3431 ac_compiler_gnu=no
3432 fi
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439 if test $ac_compiler_gnu = yes; then
3440 GCC=yes
3441 else
3442 GCC=
3443 fi
3444 ac_test_CFLAGS=${CFLAGS+set}
3445 ac_save_CFLAGS=$CFLAGS
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3448 if ${ac_cv_prog_cc_g+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 ac_save_c_werror_flag=$ac_c_werror_flag
3452 ac_c_werror_flag=yes
3453 ac_cv_prog_cc_g=no
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_g=yes
3468 else
3469 CFLAGS=""
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472
3473 int
3474 main ()
3475 {
3476
3477 ;
3478 return 0;
3479 }
3480 _ACEOF
3481 if ac_fn_c_try_compile "$LINENO"; then :
3482
3483 else
3484 ac_c_werror_flag=$ac_save_c_werror_flag
3485 CFLAGS="-g"
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_cv_prog_cc_g=yes
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_c_werror_flag=$ac_save_c_werror_flag
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508 $as_echo "$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510 CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512 if test "$GCC" = yes; then
3513 CFLAGS="-g -O2"
3514 else
3515 CFLAGS="-g"
3516 fi
3517 else
3518 if test "$GCC" = yes; then
3519 CFLAGS="-O2"
3520 else
3521 CFLAGS=
3522 fi
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526 if ${ac_cv_prog_cc_c89+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 ac_cv_prog_cc_c89=no
3530 ac_save_CC=$CC
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533 #include <stdarg.h>
3534 #include <stdio.h>
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3541 char **p;
3542 int i;
3543 {
3544 return p[i];
3545 }
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3547 {
3548 char *s;
3549 va_list v;
3550 va_start (v,p);
3551 s = g (p, va_arg (v,int));
3552 va_end (v);
3553 return s;
3554 }
3555
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3557 function prototypes and stuff, but not '\xHH' hex character constants.
3558 These don't provoke an error unfortunately, instead are silently treated
3559 as 'x'. The following induces an error, until -std is added to get
3560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3561 array size at least. It's necessary to write '\x00'==0 to get something
3562 that's true only with -std. */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566 inside strings and character constants. */
3567 #define FOO(x) 'x'
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 int argc;
3575 char **argv;
3576 int
3577 main ()
3578 {
3579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 do
3587 CC="$ac_save_CC $ac_arg"
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_c89=$ac_arg
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext
3592 test "x$ac_cv_prog_cc_c89" != "xno" && break
3593 done
3594 rm -f conftest.$ac_ext
3595 CC=$ac_save_CC
3596
3597 fi
3598 # AC_CACHE_VAL
3599 case "x$ac_cv_prog_cc_c89" in
3600 x)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3602 $as_echo "none needed" >&6; } ;;
3603 xno)
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3605 $as_echo "unsupported" >&6; } ;;
3606 *)
3607 CC="$CC $ac_cv_prog_cc_c89"
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3610 esac
3611 if test "x$ac_cv_prog_cc_c89" != xno; then :
3612
3613 fi
3614
3615 ac_ext=c
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621 depcc="$CC" am_compiler_list=
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3624 $as_echo_n "checking dependency style of $depcc... " >&6; }
3625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3629 # We make a subdir and do the tests there. Otherwise we can end up
3630 # making bogus files that we don't know about and never remove. For
3631 # instance it was reported that on HP-UX the gcc test will end up
3632 # making a dummy file named `D' -- because `-MD' means `put the output
3633 # in D'.
3634 mkdir conftest.dir
3635 # Copy depcomp to subdir because otherwise we won't find it if we're
3636 # using a relative directory.
3637 cp "$am_depcomp" conftest.dir
3638 cd conftest.dir
3639 # We will build objects and dependencies in a subdirectory because
3640 # it helps to detect inapplicable dependency modes. For instance
3641 # both Tru64's cc and ICC support -MD to output dependencies as a
3642 # side effect of compilation, but ICC will put the dependencies in
3643 # the current directory while Tru64 will put them in the object
3644 # directory.
3645 mkdir sub
3646
3647 am_cv_CC_dependencies_compiler_type=none
3648 if test "$am_compiler_list" = ""; then
3649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3650 fi
3651 for depmode in $am_compiler_list; do
3652 # Setup a source with many dependencies, because some compilers
3653 # like to wrap large dependency lists on column 80 (with \), and
3654 # we should not choose a depcomp mode which is confused by this.
3655 #
3656 # We need to recreate these files for each test, as the compiler may
3657 # overwrite some of them when testing with obscure command lines.
3658 # This happens at least with the AIX C compiler.
3659 : > sub/conftest.c
3660 for i in 1 2 3 4 5 6; do
3661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3662 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3663 # Solaris 8's {/usr,}/bin/sh.
3664 touch sub/conftst$i.h
3665 done
3666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3667
3668 case $depmode in
3669 nosideeffect)
3670 # after this tag, mechanisms are not by side-effect, so they'll
3671 # only be used when explicitly requested
3672 if test "x$enable_dependency_tracking" = xyes; then
3673 continue
3674 else
3675 break
3676 fi
3677 ;;
3678 none) break ;;
3679 esac
3680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3681 # mode. It turns out that the SunPro C++ compiler does not properly
3682 # handle `-M -o', and we need to detect this.
3683 if depmode=$depmode \
3684 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3685 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3686 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3687 >/dev/null 2>conftest.err &&
3688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3689 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3691 # icc doesn't choke on unknown options, it will just issue warnings
3692 # or remarks (even with -Werror). So we grep stderr for any message
3693 # that says an option was ignored or not supported.
3694 # When given -MP, icc 7.0 and 7.1 complain thusly:
3695 # icc: Command line warning: ignoring option '-M'; no argument required
3696 # The diagnosis changed in icc 8.0:
3697 # icc: Command line remark: option '-MP' not supported
3698 if (grep 'ignoring option' conftest.err ||
3699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3700 am_cv_CC_dependencies_compiler_type=$depmode
3701 break
3702 fi
3703 fi
3704 done
3705
3706 cd ..
3707 rm -rf conftest.dir
3708 else
3709 am_cv_CC_dependencies_compiler_type=none
3710 fi
3711
3712 fi
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3714 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3715 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3716
3717
3718
3719 if
3720 test "x$enable_dependency_tracking" != xno \
3721 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3722 am__fastdepCC_TRUE=
3723 am__fastdepCC_FALSE='#'
3724 else
3725 am__fastdepCC_TRUE='#'
3726 am__fastdepCC_FALSE=
3727 fi
3728
3729
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3732 $as_echo_n "checking for library containing strerror... " >&6; }
3733 if ${ac_cv_search_strerror+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_func_search_save_LIBS=$LIBS
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 /* Override any GCC internal prototype to avoid an error.
3741 Use char because int might match the return type of a GCC
3742 builtin and then its argument prototype would still apply. */
3743 #ifdef __cplusplus
3744 extern "C"
3745 #endif
3746 char strerror ();
3747 int
3748 main ()
3749 {
3750 return strerror ();
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 for ac_lib in '' cposix; do
3756 if test -z "$ac_lib"; then
3757 ac_res="none required"
3758 else
3759 ac_res=-l$ac_lib
3760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3761 fi
3762 if ac_fn_c_try_link "$LINENO"; then :
3763 ac_cv_search_strerror=$ac_res
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext \
3766 conftest$ac_exeext
3767 if ${ac_cv_search_strerror+:} false; then :
3768 break
3769 fi
3770 done
3771 if ${ac_cv_search_strerror+:} false; then :
3772
3773 else
3774 ac_cv_search_strerror=no
3775 fi
3776 rm conftest.$ac_ext
3777 LIBS=$ac_func_search_save_LIBS
3778 fi
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3780 $as_echo "$ac_cv_search_strerror" >&6; }
3781 ac_res=$ac_cv_search_strerror
3782 if test "$ac_res" != no; then :
3783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3784
3785 fi
3786
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830 fi
3831 if test -z "$ac_cv_prog_CC"; then
3832 ac_ct_CC=$CC
3833 # Extract the first word of "gcc", so it can be a program name with args.
3834 set dummy gcc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_ac_ct_CC="gcc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3861 if test -n "$ac_ct_CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3863 $as_echo "$ac_ct_CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869 if test "x$ac_ct_CC" = x; then
3870 CC=""
3871 else
3872 case $cross_compiling:$ac_tool_warned in
3873 yes:)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3876 ac_tool_warned=yes ;;
3877 esac
3878 CC=$ac_ct_CC
3879 fi
3880 else
3881 CC="$ac_cv_prog_CC"
3882 fi
3883
3884 if test -z "$CC"; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}cc; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if ${ac_cv_prog_CC+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test -n "$CC"; then
3894 ac_cv_prog_CC="$CC" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_CC="${ac_tool_prefix}cc"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907 done
3908 done
3909 IFS=$as_save_IFS
3910
3911 fi
3912 fi
3913 CC=$ac_cv_prog_CC
3914 if test -n "$CC"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916 $as_echo "$CC" >&6; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921
3922
3923 fi
3924 fi
3925 if test -z "$CC"; then
3926 # Extract the first word of "cc", so it can be a program name with args.
3927 set dummy cc; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_CC+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$CC"; then
3934 ac_cv_prog_CC="$CC" # Let the user override the test.
3935 else
3936 ac_prog_rejected=no
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3945 ac_prog_rejected=yes
3946 continue
3947 fi
3948 ac_cv_prog_CC="cc"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 if test $ac_prog_rejected = yes; then
3957 # We found a bogon in the path, so make sure we never use it.
3958 set dummy $ac_cv_prog_CC
3959 shift
3960 if test $# != 0; then
3961 # We chose a different compiler from the bogus one.
3962 # However, it has the same basename, so the bogon will be chosen
3963 # first if we set CC to just the basename; use the full file name.
3964 shift
3965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3966 fi
3967 fi
3968 fi
3969 fi
3970 CC=$ac_cv_prog_CC
3971 if test -n "$CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973 $as_echo "$CC" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979
3980 fi
3981 if test -z "$CC"; then
3982 if test -n "$ac_tool_prefix"; then
3983 for ac_prog in cl.exe
3984 do
3985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC="$CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4005 fi
4006 done
4007 done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 CC=$ac_cv_prog_CC
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021
4022 test -n "$CC" && break
4023 done
4024 fi
4025 if test -z "$CC"; then
4026 ac_ct_CC=$CC
4027 for ac_prog in cl.exe
4028 do
4029 # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy $ac_prog; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_CC="$ac_prog"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 fi
4055 fi
4056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 $as_echo "$ac_ct_CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4063 fi
4064
4065
4066 test -n "$ac_ct_CC" && break
4067 done
4068
4069 if test "x$ac_ct_CC" = x; then
4070 CC=""
4071 else
4072 case $cross_compiling:$ac_tool_warned in
4073 yes:)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4076 ac_tool_warned=yes ;;
4077 esac
4078 CC=$ac_ct_CC
4079 fi
4080 fi
4081
4082 fi
4083
4084
4085 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "no acceptable C compiler found in \$PATH
4088 See \`config.log' for more details" "$LINENO" 5; }
4089
4090 # Provide some information about the compiler.
4091 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4092 set X $ac_compile
4093 ac_compiler=$2
4094 for ac_option in --version -v -V -qversion; do
4095 { { ac_try="$ac_compiler $ac_option >&5"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4103 ac_status=$?
4104 if test -s conftest.err; then
4105 sed '10a\
4106 ... rest of stderr output deleted ...
4107 10q' conftest.err >conftest.er1
4108 cat conftest.er1 >&5
4109 fi
4110 rm -f conftest.er1 conftest.err
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }
4113 done
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4117 if ${ac_cv_c_compiler_gnu+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main ()
4125 {
4126 #ifndef __GNUC__
4127 choke me
4128 #endif
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_compiler_gnu=yes
4136 else
4137 ac_compiler_gnu=no
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4141
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4145 if test $ac_compiler_gnu = yes; then
4146 GCC=yes
4147 else
4148 GCC=
4149 fi
4150 ac_test_CFLAGS=${CFLAGS+set}
4151 ac_save_CFLAGS=$CFLAGS
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4154 if ${ac_cv_prog_cc_g+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 ac_save_c_werror_flag=$ac_c_werror_flag
4158 ac_c_werror_flag=yes
4159 ac_cv_prog_cc_g=no
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main ()
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4174 else
4175 CFLAGS=""
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178
4179 int
4180 main ()
4181 {
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188
4189 else
4190 ac_c_werror_flag=$ac_save_c_werror_flag
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 ac_c_werror_flag=$ac_save_c_werror_flag
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4214 $as_echo "$ac_cv_prog_cc_g" >&6; }
4215 if test "$ac_test_CFLAGS" = set; then
4216 CFLAGS=$ac_save_CFLAGS
4217 elif test $ac_cv_prog_cc_g = yes; then
4218 if test "$GCC" = yes; then
4219 CFLAGS="-g -O2"
4220 else
4221 CFLAGS="-g"
4222 fi
4223 else
4224 if test "$GCC" = yes; then
4225 CFLAGS="-O2"
4226 else
4227 CFLAGS=
4228 fi
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4232 if ${ac_cv_prog_cc_c89+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_cv_prog_cc_c89=no
4236 ac_save_CC=$CC
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #include <stdarg.h>
4240 #include <stdio.h>
4241 #include <sys/types.h>
4242 #include <sys/stat.h>
4243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4244 struct buf { int x; };
4245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4246 static char *e (p, i)
4247 char **p;
4248 int i;
4249 {
4250 return p[i];
4251 }
4252 static char *f (char * (*g) (char **, int), char **p, ...)
4253 {
4254 char *s;
4255 va_list v;
4256 va_start (v,p);
4257 s = g (p, va_arg (v,int));
4258 va_end (v);
4259 return s;
4260 }
4261
4262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4263 function prototypes and stuff, but not '\xHH' hex character constants.
4264 These don't provoke an error unfortunately, instead are silently treated
4265 as 'x'. The following induces an error, until -std is added to get
4266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4267 array size at least. It's necessary to write '\x00'==0 to get something
4268 that's true only with -std. */
4269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4270
4271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4272 inside strings and character constants. */
4273 #define FOO(x) 'x'
4274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4275
4276 int test (int i, double x);
4277 struct s1 {int (*f) (int a);};
4278 struct s2 {int (*f) (double a);};
4279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4280 int argc;
4281 char **argv;
4282 int
4283 main ()
4284 {
4285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292 do
4293 CC="$ac_save_CC $ac_arg"
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_prog_cc_c89=$ac_arg
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext
4298 test "x$ac_cv_prog_cc_c89" != "xno" && break
4299 done
4300 rm -f conftest.$ac_ext
4301 CC=$ac_save_CC
4302
4303 fi
4304 # AC_CACHE_VAL
4305 case "x$ac_cv_prog_cc_c89" in
4306 x)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 $as_echo "none needed" >&6; } ;;
4309 xno)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4311 $as_echo "unsupported" >&6; } ;;
4312 *)
4313 CC="$CC $ac_cv_prog_cc_c89"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4316 esac
4317 if test "x$ac_cv_prog_cc_c89" != xno; then :
4318
4319 fi
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 depcc="$CC" am_compiler_list=
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4330 $as_echo_n "checking dependency style of $depcc... " >&6; }
4331 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named `D' -- because `-MD' means `put the output
4339 # in D'.
4340 mkdir conftest.dir
4341 # Copy depcomp to subdir because otherwise we won't find it if we're
4342 # using a relative directory.
4343 cp "$am_depcomp" conftest.dir
4344 cd conftest.dir
4345 # We will build objects and dependencies in a subdirectory because
4346 # it helps to detect inapplicable dependency modes. For instance
4347 # both Tru64's cc and ICC support -MD to output dependencies as a
4348 # side effect of compilation, but ICC will put the dependencies in
4349 # the current directory while Tru64 will put them in the object
4350 # directory.
4351 mkdir sub
4352
4353 am_cv_CC_dependencies_compiler_type=none
4354 if test "$am_compiler_list" = ""; then
4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 fi
4357 for depmode in $am_compiler_list; do
4358 # Setup a source with many dependencies, because some compilers
4359 # like to wrap large dependency lists on column 80 (with \), and
4360 # we should not choose a depcomp mode which is confused by this.
4361 #
4362 # We need to recreate these files for each test, as the compiler may
4363 # overwrite some of them when testing with obscure command lines.
4364 # This happens at least with the AIX C compiler.
4365 : > sub/conftest.c
4366 for i in 1 2 3 4 5 6; do
4367 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4368 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4369 # Solaris 8's {/usr,}/bin/sh.
4370 touch sub/conftst$i.h
4371 done
4372 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4373
4374 case $depmode in
4375 nosideeffect)
4376 # after this tag, mechanisms are not by side-effect, so they'll
4377 # only be used when explicitly requested
4378 if test "x$enable_dependency_tracking" = xyes; then
4379 continue
4380 else
4381 break
4382 fi
4383 ;;
4384 none) break ;;
4385 esac
4386 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4387 # mode. It turns out that the SunPro C++ compiler does not properly
4388 # handle `-M -o', and we need to detect this.
4389 if depmode=$depmode \
4390 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4391 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4392 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4393 >/dev/null 2>conftest.err &&
4394 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4395 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4396 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4397 # icc doesn't choke on unknown options, it will just issue warnings
4398 # or remarks (even with -Werror). So we grep stderr for any message
4399 # that says an option was ignored or not supported.
4400 # When given -MP, icc 7.0 and 7.1 complain thusly:
4401 # icc: Command line warning: ignoring option '-M'; no argument required
4402 # The diagnosis changed in icc 8.0:
4403 # icc: Command line remark: option '-MP' not supported
4404 if (grep 'ignoring option' conftest.err ||
4405 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4406 am_cv_CC_dependencies_compiler_type=$depmode
4407 break
4408 fi
4409 fi
4410 done
4411
4412 cd ..
4413 rm -rf conftest.dir
4414 else
4415 am_cv_CC_dependencies_compiler_type=none
4416 fi
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4420 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4421 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4422
4423
4424
4425 if
4426 test "x$enable_dependency_tracking" != xno \
4427 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4428 am__fastdepCC_TRUE=
4429 am__fastdepCC_FALSE='#'
4430 else
4431 am__fastdepCC_TRUE='#'
4432 am__fastdepCC_FALSE=
4433 fi
4434
4435
4436 ac_ext=cpp
4437 ac_cpp='$CXXCPP $CPPFLAGS'
4438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4441 if test -z "$CXX"; then
4442 if test -n "$CCC"; then
4443 CXX=$CCC
4444 else
4445 if test -n "$ac_tool_prefix"; then
4446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4447 do
4448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_CXX+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$CXX"; then
4456 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469 done
4470 done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 CXX=$ac_cv_prog_CXX
4476 if test -n "$CXX"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4478 $as_echo "$CXX" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 test -n "$CXX" && break
4486 done
4487 fi
4488 if test -z "$CXX"; then
4489 ac_ct_CXX=$CXX
4490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4491 do
4492 # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$ac_ct_CXX"; then
4500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_CXX="$ac_prog"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517 fi
4518 fi
4519 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4520 if test -n "$ac_ct_CXX"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4522 $as_echo "$ac_ct_CXX" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527
4528
4529 test -n "$ac_ct_CXX" && break
4530 done
4531
4532 if test "x$ac_ct_CXX" = x; then
4533 CXX="g++"
4534 else
4535 case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541 CXX=$ac_ct_CXX
4542 fi
4543 fi
4544
4545 fi
4546 fi
4547 # Provide some information about the compiler.
4548 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4549 set X $ac_compile
4550 ac_compiler=$2
4551 for ac_option in --version -v -V -qversion; do
4552 { { ac_try="$ac_compiler $ac_option >&5"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4560 ac_status=$?
4561 if test -s conftest.err; then
4562 sed '10a\
4563 ... rest of stderr output deleted ...
4564 10q' conftest.err >conftest.er1
4565 cat conftest.er1 >&5
4566 fi
4567 rm -f conftest.er1 conftest.err
4568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569 test $ac_status = 0; }
4570 done
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4573 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4574 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4579
4580 int
4581 main ()
4582 {
4583 #ifndef __GNUC__
4584 choke me
4585 #endif
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_compiler_gnu=yes
4593 else
4594 ac_compiler_gnu=no
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4598
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4601 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4602 if test $ac_compiler_gnu = yes; then
4603 GXX=yes
4604 else
4605 GXX=
4606 fi
4607 ac_test_CXXFLAGS=${CXXFLAGS+set}
4608 ac_save_CXXFLAGS=$CXXFLAGS
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4610 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4611 if ${ac_cv_prog_cxx_g+:} false; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4615 ac_cxx_werror_flag=yes
4616 ac_cv_prog_cxx_g=no
4617 CXXFLAGS="-g"
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620
4621 int
4622 main ()
4623 {
4624
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_cxx_try_compile "$LINENO"; then :
4630 ac_cv_prog_cxx_g=yes
4631 else
4632 CXXFLAGS=""
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_cxx_try_compile "$LINENO"; then :
4645
4646 else
4647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4648 CXXFLAGS="-g"
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651
4652 int
4653 main ()
4654 {
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 if ac_fn_cxx_try_compile "$LINENO"; then :
4661 ac_cv_prog_cxx_g=yes
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4671 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4672 if test "$ac_test_CXXFLAGS" = set; then
4673 CXXFLAGS=$ac_save_CXXFLAGS
4674 elif test $ac_cv_prog_cxx_g = yes; then
4675 if test "$GXX" = yes; then
4676 CXXFLAGS="-g -O2"
4677 else
4678 CXXFLAGS="-g"
4679 fi
4680 else
4681 if test "$GXX" = yes; then
4682 CXXFLAGS="-O2"
4683 else
4684 CXXFLAGS=
4685 fi
4686 fi
4687 ac_ext=c
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692
4693 depcc="$CXX" am_compiler_list=
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4696 $as_echo_n "checking dependency style of $depcc... " >&6; }
4697 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4701 # We make a subdir and do the tests there. Otherwise we can end up
4702 # making bogus files that we don't know about and never remove. For
4703 # instance it was reported that on HP-UX the gcc test will end up
4704 # making a dummy file named `D' -- because `-MD' means `put the output
4705 # in D'.
4706 mkdir conftest.dir
4707 # Copy depcomp to subdir because otherwise we won't find it if we're
4708 # using a relative directory.
4709 cp "$am_depcomp" conftest.dir
4710 cd conftest.dir
4711 # We will build objects and dependencies in a subdirectory because
4712 # it helps to detect inapplicable dependency modes. For instance
4713 # both Tru64's cc and ICC support -MD to output dependencies as a
4714 # side effect of compilation, but ICC will put the dependencies in
4715 # the current directory while Tru64 will put them in the object
4716 # directory.
4717 mkdir sub
4718
4719 am_cv_CXX_dependencies_compiler_type=none
4720 if test "$am_compiler_list" = ""; then
4721 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4722 fi
4723 for depmode in $am_compiler_list; do
4724 # Setup a source with many dependencies, because some compilers
4725 # like to wrap large dependency lists on column 80 (with \), and
4726 # we should not choose a depcomp mode which is confused by this.
4727 #
4728 # We need to recreate these files for each test, as the compiler may
4729 # overwrite some of them when testing with obscure command lines.
4730 # This happens at least with the AIX C compiler.
4731 : > sub/conftest.c
4732 for i in 1 2 3 4 5 6; do
4733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4734 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4735 # Solaris 8's {/usr,}/bin/sh.
4736 touch sub/conftst$i.h
4737 done
4738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4739
4740 case $depmode in
4741 nosideeffect)
4742 # after this tag, mechanisms are not by side-effect, so they'll
4743 # only be used when explicitly requested
4744 if test "x$enable_dependency_tracking" = xyes; then
4745 continue
4746 else
4747 break
4748 fi
4749 ;;
4750 none) break ;;
4751 esac
4752 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4753 # mode. It turns out that the SunPro C++ compiler does not properly
4754 # handle `-M -o', and we need to detect this.
4755 if depmode=$depmode \
4756 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4757 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4758 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4759 >/dev/null 2>conftest.err &&
4760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4763 # icc doesn't choke on unknown options, it will just issue warnings
4764 # or remarks (even with -Werror). So we grep stderr for any message
4765 # that says an option was ignored or not supported.
4766 # When given -MP, icc 7.0 and 7.1 complain thusly:
4767 # icc: Command line warning: ignoring option '-M'; no argument required
4768 # The diagnosis changed in icc 8.0:
4769 # icc: Command line remark: option '-MP' not supported
4770 if (grep 'ignoring option' conftest.err ||
4771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4772 am_cv_CXX_dependencies_compiler_type=$depmode
4773 break
4774 fi
4775 fi
4776 done
4777
4778 cd ..
4779 rm -rf conftest.dir
4780 else
4781 am_cv_CXX_dependencies_compiler_type=none
4782 fi
4783
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4786 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4787 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4788
4789
4790
4791 if
4792 test "x$enable_dependency_tracking" != xno \
4793 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4794 am__fastdepCXX_TRUE=
4795 am__fastdepCXX_FALSE='#'
4796 else
4797 am__fastdepCXX_TRUE='#'
4798 am__fastdepCXX_FALSE=
4799 fi
4800
4801
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4809 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_CC+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$CC"; then
4816 ac_cv_prog_CC="$CC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829 done
4830 done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 CC=$ac_cv_prog_CC
4836 if test -n "$CC"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838 $as_echo "$CC" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845 fi
4846 if test -z "$ac_cv_prog_CC"; then
4847 ac_ct_CC=$CC
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849 set dummy gcc; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_CC="gcc"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876 if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878 $as_echo "$ac_ct_CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884 if test "x$ac_ct_CC" = x; then
4885 CC=""
4886 else
4887 case $cross_compiling:$ac_tool_warned in
4888 yes:)
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4891 ac_tool_warned=yes ;;
4892 esac
4893 CC=$ac_ct_CC
4894 fi
4895 else
4896 CC="$ac_cv_prog_CC"
4897 fi
4898
4899 if test -z "$CC"; then
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}cc; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_CC+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CC="${ac_tool_prefix}cc"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 CC=$ac_cv_prog_CC
4929 if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 fi
4939 fi
4940 if test -z "$CC"; then
4941 # Extract the first word of "cc", so it can be a program name with args.
4942 set dummy cc; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_CC+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$CC"; then
4949 ac_cv_prog_CC="$CC" # Let the user override the test.
4950 else
4951 ac_prog_rejected=no
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4960 ac_prog_rejected=yes
4961 continue
4962 fi
4963 ac_cv_prog_CC="cc"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971 if test $ac_prog_rejected = yes; then
4972 # We found a bogon in the path, so make sure we never use it.
4973 set dummy $ac_cv_prog_CC
4974 shift
4975 if test $# != 0; then
4976 # We chose a different compiler from the bogus one.
4977 # However, it has the same basename, so the bogon will be chosen
4978 # first if we set CC to just the basename; use the full file name.
4979 shift
4980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4981 fi
4982 fi
4983 fi
4984 fi
4985 CC=$ac_cv_prog_CC
4986 if test -n "$CC"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4988 $as_echo "$CC" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994
4995 fi
4996 if test -z "$CC"; then
4997 if test -n "$ac_tool_prefix"; then
4998 for ac_prog in cl.exe
4999 do
5000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_CC+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$CC"; then
5008 ac_cv_prog_CC="$CC" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 CC=$ac_cv_prog_CC
5028 if test -n "$CC"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5030 $as_echo "$CC" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 test -n "$CC" && break
5038 done
5039 fi
5040 if test -z "$CC"; then
5041 ac_ct_CC=$CC
5042 for ac_prog in cl.exe
5043 do
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$ac_ct_CC"; then
5052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_CC="$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5072 if test -n "$ac_ct_CC"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5074 $as_echo "$ac_ct_CC" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081 test -n "$ac_ct_CC" && break
5082 done
5083
5084 if test "x$ac_ct_CC" = x; then
5085 CC=""
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088 yes:)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 CC=$ac_ct_CC
5094 fi
5095 fi
5096
5097 fi
5098
5099
5100 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5102 as_fn_error $? "no acceptable C compiler found in \$PATH
5103 See \`config.log' for more details" "$LINENO" 5; }
5104
5105 # Provide some information about the compiler.
5106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5107 set X $ac_compile
5108 ac_compiler=$2
5109 for ac_option in --version -v -V -qversion; do
5110 { { ac_try="$ac_compiler $ac_option >&5"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5116 $as_echo "$ac_try_echo"; } >&5
5117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5118 ac_status=$?
5119 if test -s conftest.err; then
5120 sed '10a\
5121 ... rest of stderr output deleted ...
5122 10q' conftest.err >conftest.er1
5123 cat conftest.er1 >&5
5124 fi
5125 rm -f conftest.er1 conftest.err
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 done
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5132 if ${ac_cv_c_compiler_gnu+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137
5138 int
5139 main ()
5140 {
5141 #ifndef __GNUC__
5142 choke me
5143 #endif
5144
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"; then :
5150 ac_compiler_gnu=yes
5151 else
5152 ac_compiler_gnu=no
5153 fi
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5156
5157 fi
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5160 if test $ac_compiler_gnu = yes; then
5161 GCC=yes
5162 else
5163 GCC=
5164 fi
5165 ac_test_CFLAGS=${CFLAGS+set}
5166 ac_save_CFLAGS=$CFLAGS
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5169 if ${ac_cv_prog_cc_g+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 ac_save_c_werror_flag=$ac_c_werror_flag
5173 ac_c_werror_flag=yes
5174 ac_cv_prog_cc_g=no
5175 CFLAGS="-g"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178
5179 int
5180 main ()
5181 {
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 ac_cv_prog_cc_g=yes
5189 else
5190 CFLAGS=""
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203
5204 else
5205 ac_c_werror_flag=$ac_save_c_werror_flag
5206 CFLAGS="-g"
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209
5210 int
5211 main ()
5212 {
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219 ac_cv_prog_cc_g=yes
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_c_werror_flag=$ac_save_c_werror_flag
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5229 $as_echo "$ac_cv_prog_cc_g" >&6; }
5230 if test "$ac_test_CFLAGS" = set; then
5231 CFLAGS=$ac_save_CFLAGS
5232 elif test $ac_cv_prog_cc_g = yes; then
5233 if test "$GCC" = yes; then
5234 CFLAGS="-g -O2"
5235 else
5236 CFLAGS="-g"
5237 fi
5238 else
5239 if test "$GCC" = yes; then
5240 CFLAGS="-O2"
5241 else
5242 CFLAGS=
5243 fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5247 if ${ac_cv_prog_cc_c89+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 ac_cv_prog_cc_c89=no
5251 ac_save_CC=$CC
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <stdarg.h>
5255 #include <stdio.h>
5256 #include <sys/types.h>
5257 #include <sys/stat.h>
5258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5259 struct buf { int x; };
5260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5261 static char *e (p, i)
5262 char **p;
5263 int i;
5264 {
5265 return p[i];
5266 }
5267 static char *f (char * (*g) (char **, int), char **p, ...)
5268 {
5269 char *s;
5270 va_list v;
5271 va_start (v,p);
5272 s = g (p, va_arg (v,int));
5273 va_end (v);
5274 return s;
5275 }
5276
5277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5278 function prototypes and stuff, but not '\xHH' hex character constants.
5279 These don't provoke an error unfortunately, instead are silently treated
5280 as 'x'. The following induces an error, until -std is added to get
5281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5282 array size at least. It's necessary to write '\x00'==0 to get something
5283 that's true only with -std. */
5284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5285
5286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5287 inside strings and character constants. */
5288 #define FOO(x) 'x'
5289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5290
5291 int test (int i, double x);
5292 struct s1 {int (*f) (int a);};
5293 struct s2 {int (*f) (double a);};
5294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5295 int argc;
5296 char **argv;
5297 int
5298 main ()
5299 {
5300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5307 do
5308 CC="$ac_save_CC $ac_arg"
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_prog_cc_c89=$ac_arg
5311 fi
5312 rm -f core conftest.err conftest.$ac_objext
5313 test "x$ac_cv_prog_cc_c89" != "xno" && break
5314 done
5315 rm -f conftest.$ac_ext
5316 CC=$ac_save_CC
5317
5318 fi
5319 # AC_CACHE_VAL
5320 case "x$ac_cv_prog_cc_c89" in
5321 x)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5323 $as_echo "none needed" >&6; } ;;
5324 xno)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5326 $as_echo "unsupported" >&6; } ;;
5327 *)
5328 CC="$CC $ac_cv_prog_cc_c89"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5331 esac
5332 if test "x$ac_cv_prog_cc_c89" != xno; then :
5333
5334 fi
5335
5336 ac_ext=c
5337 ac_cpp='$CPP $CPPFLAGS'
5338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342 depcc="$CC" am_compiler_list=
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5345 $as_echo_n "checking dependency style of $depcc... " >&6; }
5346 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5350 # We make a subdir and do the tests there. Otherwise we can end up
5351 # making bogus files that we don't know about and never remove. For
5352 # instance it was reported that on HP-UX the gcc test will end up
5353 # making a dummy file named `D' -- because `-MD' means `put the output
5354 # in D'.
5355 mkdir conftest.dir
5356 # Copy depcomp to subdir because otherwise we won't find it if we're
5357 # using a relative directory.
5358 cp "$am_depcomp" conftest.dir
5359 cd conftest.dir
5360 # We will build objects and dependencies in a subdirectory because
5361 # it helps to detect inapplicable dependency modes. For instance
5362 # both Tru64's cc and ICC support -MD to output dependencies as a
5363 # side effect of compilation, but ICC will put the dependencies in
5364 # the current directory while Tru64 will put them in the object
5365 # directory.
5366 mkdir sub
5367
5368 am_cv_CC_dependencies_compiler_type=none
5369 if test "$am_compiler_list" = ""; then
5370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5371 fi
5372 for depmode in $am_compiler_list; do
5373 # Setup a source with many dependencies, because some compilers
5374 # like to wrap large dependency lists on column 80 (with \), and
5375 # we should not choose a depcomp mode which is confused by this.
5376 #
5377 # We need to recreate these files for each test, as the compiler may
5378 # overwrite some of them when testing with obscure command lines.
5379 # This happens at least with the AIX C compiler.
5380 : > sub/conftest.c
5381 for i in 1 2 3 4 5 6; do
5382 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5383 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5384 # Solaris 8's {/usr,}/bin/sh.
5385 touch sub/conftst$i.h
5386 done
5387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5388
5389 case $depmode in
5390 nosideeffect)
5391 # after this tag, mechanisms are not by side-effect, so they'll
5392 # only be used when explicitly requested
5393 if test "x$enable_dependency_tracking" = xyes; then
5394 continue
5395 else
5396 break
5397 fi
5398 ;;
5399 none) break ;;
5400 esac
5401 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5402 # mode. It turns out that the SunPro C++ compiler does not properly
5403 # handle `-M -o', and we need to detect this.
5404 if depmode=$depmode \
5405 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5406 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5407 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5408 >/dev/null 2>conftest.err &&
5409 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5410 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5411 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5412 # icc doesn't choke on unknown options, it will just issue warnings
5413 # or remarks (even with -Werror). So we grep stderr for any message
5414 # that says an option was ignored or not supported.
5415 # When given -MP, icc 7.0 and 7.1 complain thusly:
5416 # icc: Command line warning: ignoring option '-M'; no argument required
5417 # The diagnosis changed in icc 8.0:
5418 # icc: Command line remark: option '-MP' not supported
5419 if (grep 'ignoring option' conftest.err ||
5420 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5421 am_cv_CC_dependencies_compiler_type=$depmode
5422 break
5423 fi
5424 fi
5425 done
5426
5427 cd ..
5428 rm -rf conftest.dir
5429 else
5430 am_cv_CC_dependencies_compiler_type=none
5431 fi
5432
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5435 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5436 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5437
5438
5439
5440 if
5441 test "x$enable_dependency_tracking" != xno \
5442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5443 am__fastdepCC_TRUE=
5444 am__fastdepCC_FALSE='#'
5445 else
5446 am__fastdepCC_TRUE='#'
5447 am__fastdepCC_FALSE=
5448 fi
5449
5450
5451
5452 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5453
5454
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5456 $as_echo_n "checking whether ln -s works... " >&6; }
5457 LN_S=$as_ln_s
5458 if test "$LN_S" = "ln -s"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460 $as_echo "yes" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5463 $as_echo "no, using $LN_S" >&6; }
5464 fi
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5467 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5468 set x ${MAKE-make}
5469 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5470 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 cat >conftest.make <<\_ACEOF
5474 SHELL = /bin/sh
5475 all:
5476 @echo '@@@%%%=$(MAKE)=@@@%%%'
5477 _ACEOF
5478 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5479 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5480 *@@@%%%=?*=@@@%%%*)
5481 eval ac_cv_prog_make_${ac_make}_set=yes;;
5482 *)
5483 eval ac_cv_prog_make_${ac_make}_set=no;;
5484 esac
5485 rm -f conftest.make
5486 fi
5487 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489 $as_echo "yes" >&6; }
5490 SET_MAKE=
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 SET_MAKE="MAKE=${MAKE-make}"
5495 fi
5496
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_RANLIB+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$RANLIB"; then
5506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 RANLIB=$ac_cv_prog_RANLIB
5526 if test -n "$RANLIB"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5528 $as_echo "$RANLIB" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 fi
5536 if test -z "$ac_cv_prog_RANLIB"; then
5537 ac_ct_RANLIB=$RANLIB
5538 # Extract the first word of "ranlib", so it can be a program name with args.
5539 set dummy ranlib; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$ac_ct_RANLIB"; then
5546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_RANLIB="ranlib"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559 done
5560 done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5566 if test -n "$ac_ct_RANLIB"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5568 $as_echo "$ac_ct_RANLIB" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574 if test "x$ac_ct_RANLIB" = x; then
5575 RANLIB=":"
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 RANLIB=$ac_ct_RANLIB
5584 fi
5585 else
5586 RANLIB="$ac_cv_prog_RANLIB"
5587 fi
5588
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5595 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5596 # On Suns, sometimes $CPP names a directory.
5597 if test -n "$CPP" && test -d "$CPP"; then
5598 CPP=
5599 fi
5600 if test -z "$CPP"; then
5601 if ${ac_cv_prog_CPP+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 # Double quotes because CPP needs to be expanded
5605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5606 do
5607 ac_preproc_ok=false
5608 for ac_c_preproc_warn_flag in '' yes
5609 do
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5613 # <limits.h> exists even on freestanding compilers.
5614 # On the NeXT, cc -E runs the code through the compiler's parser,
5615 # not just through cpp. "Syntax error" is here to catch this case.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #ifdef __STDC__
5619 # include <limits.h>
5620 #else
5621 # include <assert.h>
5622 #endif
5623 Syntax error
5624 _ACEOF
5625 if ac_fn_c_try_cpp "$LINENO"; then :
5626
5627 else
5628 # Broken: fails on valid input.
5629 continue
5630 fi
5631 rm -f conftest.err conftest.i conftest.$ac_ext
5632
5633 # OK, works on sane cases. Now check whether nonexistent headers
5634 # can be detected and how.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <ac_nonexistent.h>
5638 _ACEOF
5639 if ac_fn_c_try_cpp "$LINENO"; then :
5640 # Broken: success on invalid input.
5641 continue
5642 else
5643 # Passes both tests.
5644 ac_preproc_ok=:
5645 break
5646 fi
5647 rm -f conftest.err conftest.i conftest.$ac_ext
5648
5649 done
5650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5651 rm -f conftest.i conftest.err conftest.$ac_ext
5652 if $ac_preproc_ok; then :
5653 break
5654 fi
5655
5656 done
5657 ac_cv_prog_CPP=$CPP
5658
5659 fi
5660 CPP=$ac_cv_prog_CPP
5661 else
5662 ac_cv_prog_CPP=$CPP
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5665 $as_echo "$CPP" >&6; }
5666 ac_preproc_ok=false
5667 for ac_c_preproc_warn_flag in '' yes
5668 do
5669 # Use a header file that comes with gcc, so configuring glibc
5670 # with a fresh cross-compiler works.
5671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5672 # <limits.h> exists even on freestanding compilers.
5673 # On the NeXT, cc -E runs the code through the compiler's parser,
5674 # not just through cpp. "Syntax error" is here to catch this case.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #ifdef __STDC__
5678 # include <limits.h>
5679 #else
5680 # include <assert.h>
5681 #endif
5682 Syntax error
5683 _ACEOF
5684 if ac_fn_c_try_cpp "$LINENO"; then :
5685
5686 else
5687 # Broken: fails on valid input.
5688 continue
5689 fi
5690 rm -f conftest.err conftest.i conftest.$ac_ext
5691
5692 # OK, works on sane cases. Now check whether nonexistent headers
5693 # can be detected and how.
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <ac_nonexistent.h>
5697 _ACEOF
5698 if ac_fn_c_try_cpp "$LINENO"; then :
5699 # Broken: success on invalid input.
5700 continue
5701 else
5702 # Passes both tests.
5703 ac_preproc_ok=:
5704 break
5705 fi
5706 rm -f conftest.err conftest.i conftest.$ac_ext
5707
5708 done
5709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5710 rm -f conftest.i conftest.err conftest.$ac_ext
5711 if $ac_preproc_ok; then :
5712
5713 else
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5717 See \`config.log' for more details" "$LINENO" 5; }
5718 fi
5719
5720 ac_ext=c
5721 ac_cpp='$CPP $CPPFLAGS'
5722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5725
5726
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5728 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5729 if ${ac_cv_path_GREP+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 if test -z "$GREP"; then
5733 ac_path_GREP_found=false
5734 # Loop through the user's path and test for each of PROGNAME-LIST
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5737 do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
5740 for ac_prog in grep ggrep; do
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5743 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5744 # Check for GNU ac_path_GREP and select it if it is found.
5745 # Check for GNU $ac_path_GREP
5746 case `"$ac_path_GREP" --version 2>&1` in
5747 *GNU*)
5748 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5749 *)
5750 ac_count=0
5751 $as_echo_n 0123456789 >"conftest.in"
5752 while :
5753 do
5754 cat "conftest.in" "conftest.in" >"conftest.tmp"
5755 mv "conftest.tmp" "conftest.in"
5756 cp "conftest.in" "conftest.nl"
5757 $as_echo 'GREP' >> "conftest.nl"
5758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5760 as_fn_arith $ac_count + 1 && ac_count=$as_val
5761 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5762 # Best one so far, save it but keep looking for a better one
5763 ac_cv_path_GREP="$ac_path_GREP"
5764 ac_path_GREP_max=$ac_count
5765 fi
5766 # 10*(2^10) chars as input seems more than enough
5767 test $ac_count -gt 10 && break
5768 done
5769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5770 esac
5771
5772 $ac_path_GREP_found && break 3
5773 done
5774 done
5775 done
5776 IFS=$as_save_IFS
5777 if test -z "$ac_cv_path_GREP"; then
5778 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5779 fi
5780 else
5781 ac_cv_path_GREP=$GREP
5782 fi
5783
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5786 $as_echo "$ac_cv_path_GREP" >&6; }
5787 GREP="$ac_cv_path_GREP"
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5791 $as_echo_n "checking for egrep... " >&6; }
5792 if ${ac_cv_path_EGREP+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5796 then ac_cv_path_EGREP="$GREP -E"
5797 else
5798 if test -z "$EGREP"; then
5799 ac_path_EGREP_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in egrep; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5809 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5810 # Check for GNU ac_path_EGREP and select it if it is found.
5811 # Check for GNU $ac_path_EGREP
5812 case `"$ac_path_EGREP" --version 2>&1` in
5813 *GNU*)
5814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5815 *)
5816 ac_count=0
5817 $as_echo_n 0123456789 >"conftest.in"
5818 while :
5819 do
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo 'EGREP' >> "conftest.nl"
5824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 as_fn_arith $ac_count + 1 && ac_count=$as_val
5827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_EGREP="$ac_path_EGREP"
5830 ac_path_EGREP_max=$ac_count
5831 fi
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5837
5838 $ac_path_EGREP_found && break 3
5839 done
5840 done
5841 done
5842 IFS=$as_save_IFS
5843 if test -z "$ac_cv_path_EGREP"; then
5844 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5845 fi
5846 else
5847 ac_cv_path_EGREP=$EGREP
5848 fi
5849
5850 fi
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5853 $as_echo "$ac_cv_path_EGREP" >&6; }
5854 EGREP="$ac_cv_path_EGREP"
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5858 $as_echo_n "checking for ANSI C header files... " >&6; }
5859 if ${ac_cv_header_stdc+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 #include <stdlib.h>
5865 #include <stdarg.h>
5866 #include <string.h>
5867 #include <float.h>
5868
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 ac_cv_header_stdc=yes
5879 else
5880 ac_cv_header_stdc=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <string.h>
5889
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "memchr" >/dev/null 2>&1; then :
5893
5894 else
5895 ac_cv_header_stdc=no
5896 fi
5897 rm -f conftest*
5898
5899 fi
5900
5901 if test $ac_cv_header_stdc = yes; then
5902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <stdlib.h>
5906
5907 _ACEOF
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "free" >/dev/null 2>&1; then :
5910
5911 else
5912 ac_cv_header_stdc=no
5913 fi
5914 rm -f conftest*
5915
5916 fi
5917
5918 if test $ac_cv_header_stdc = yes; then
5919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5920 if test "$cross_compiling" = yes; then :
5921 :
5922 else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <ctype.h>
5926 #include <stdlib.h>
5927 #if ((' ' & 0x0FF) == 0x020)
5928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5930 #else
5931 # define ISLOWER(c) \
5932 (('a' <= (c) && (c) <= 'i') \
5933 || ('j' <= (c) && (c) <= 'r') \
5934 || ('s' <= (c) && (c) <= 'z'))
5935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5936 #endif
5937
5938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5939 int
5940 main ()
5941 {
5942 int i;
5943 for (i = 0; i < 256; i++)
5944 if (XOR (islower (i), ISLOWER (i))
5945 || toupper (i) != TOUPPER (i))
5946 return 2;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_run "$LINENO"; then :
5951
5952 else
5953 ac_cv_header_stdc=no
5954 fi
5955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5956 conftest.$ac_objext conftest.beam conftest.$ac_ext
5957 fi
5958
5959 fi
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5962 $as_echo "$ac_cv_header_stdc" >&6; }
5963 if test $ac_cv_header_stdc = yes; then
5964
5965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5966
5967 fi
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5971 $as_echo_n "checking for inline... " >&6; }
5972 if ${ac_cv_c_inline+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 ac_cv_c_inline=no
5976 for ac_kw in inline __inline__ __inline; do
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #ifndef __cplusplus
5980 typedef int foo_t;
5981 static $ac_kw foo_t static_foo () {return 0; }
5982 $ac_kw foo_t foo () {return 0; }
5983 #endif
5984
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 ac_cv_c_inline=$ac_kw
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 test "$ac_cv_c_inline" != no && break
5991 done
5992
5993 fi
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5995 $as_echo "$ac_cv_c_inline" >&6; }
5996
5997 case $ac_cv_c_inline in
5998 inline | yes) ;;
5999 *)
6000 case $ac_cv_c_inline in
6001 no) ac_val=;;
6002 *) ac_val=$ac_cv_c_inline;;
6003 esac
6004 cat >>confdefs.h <<_ACEOF
6005 #ifndef __cplusplus
6006 #define inline $ac_val
6007 #endif
6008 _ACEOF
6009 ;;
6010 esac
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6013 $as_echo_n "checking for working volatile... " >&6; }
6014 if ${ac_cv_c_volatile+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019
6020 int
6021 main ()
6022 {
6023
6024 volatile int x;
6025 int * volatile y = (int *) 0;
6026 return !x && !y;
6027 ;
6028 return 0;
6029 }
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_c_volatile=yes
6033 else
6034 ac_cv_c_volatile=no
6035 fi
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6039 $as_echo "$ac_cv_c_volatile" >&6; }
6040 if test $ac_cv_c_volatile = no; then
6041
6042 $as_echo "#define volatile /**/" >>confdefs.h
6043
6044 fi
6045
6046
6047 # Check whether --enable-static was given.
6048 if test "${enable_static+set}" = set; then :
6049 enableval=$enable_static; p=${PACKAGE-default}
6050 case $enableval in
6051 yes) enable_static=yes ;;
6052 no) enable_static=no ;;
6053 *)
6054 enable_static=no
6055 # Look at the argument we got. We use all the common list separators.
6056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6057 for pkg in $enableval; do
6058 IFS="$lt_save_ifs"
6059 if test "X$pkg" = "X$p"; then
6060 enable_static=yes
6061 fi
6062 done
6063 IFS="$lt_save_ifs"
6064 ;;
6065 esac
6066 else
6067 enable_static=no
6068 fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 case `pwd` in
6079 *\ * | *\ *)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6081 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6082 esac
6083
6084
6085
6086 macro_version='2.4.2'
6087 macro_revision='1.3337'
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 ltmain="$ac_aux_dir/ltmain.sh"
6102
6103 # Make sure we can run config.sub.
6104 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6105 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6108 $as_echo_n "checking build system type... " >&6; }
6109 if ${ac_cv_build+:} false; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 ac_build_alias=$build_alias
6113 test "x$ac_build_alias" = x &&
6114 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6115 test "x$ac_build_alias" = x &&
6116 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6117 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6118 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6119
6120 fi
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6122 $as_echo "$ac_cv_build" >&6; }
6123 case $ac_cv_build in
6124 *-*-*) ;;
6125 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6126 esac
6127 build=$ac_cv_build
6128 ac_save_IFS=$IFS; IFS='-'
6129 set x $ac_cv_build
6130 shift
6131 build_cpu=$1
6132 build_vendor=$2
6133 shift; shift
6134 # Remember, the first character of IFS is used to create $*,
6135 # except with old shells:
6136 build_os=$*
6137 IFS=$ac_save_IFS
6138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6142 $as_echo_n "checking host system type... " >&6; }
6143 if ${ac_cv_host+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test "x$host_alias" = x; then
6147 ac_cv_host=$ac_cv_build
6148 else
6149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6150 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6151 fi
6152
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6155 $as_echo "$ac_cv_host" >&6; }
6156 case $ac_cv_host in
6157 *-*-*) ;;
6158 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6159 esac
6160 host=$ac_cv_host
6161 ac_save_IFS=$IFS; IFS='-'
6162 set x $ac_cv_host
6163 shift
6164 host_cpu=$1
6165 host_vendor=$2
6166 shift; shift
6167 # Remember, the first character of IFS is used to create $*,
6168 # except with old shells:
6169 host_os=$*
6170 IFS=$ac_save_IFS
6171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6172
6173
6174 # Backslashify metacharacters that are still active within
6175 # double-quoted strings.
6176 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6177
6178 # Same as above, but do not quote variable references.
6179 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6180
6181 # Sed substitution to delay expansion of an escaped shell variable in a
6182 # double_quote_subst'ed string.
6183 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6184
6185 # Sed substitution to delay expansion of an escaped single quote.
6186 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6187
6188 # Sed substitution to avoid accidental globbing in evaled expressions
6189 no_glob_subst='s/\*/\\\*/g'
6190
6191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6196 $as_echo_n "checking how to print strings... " >&6; }
6197 # Test print first, because it will be a builtin if present.
6198 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6199 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6200 ECHO='print -r --'
6201 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6202 ECHO='printf %s\n'
6203 else
6204 # Use this function as a fallback that always works.
6205 func_fallback_echo ()
6206 {
6207 eval 'cat <<_LTECHO_EOF
6208 $1
6209 _LTECHO_EOF'
6210 }
6211 ECHO='func_fallback_echo'
6212 fi
6213
6214 # func_echo_all arg...
6215 # Invoke $ECHO with all args, space-separated.
6216 func_echo_all ()
6217 {
6218 $ECHO ""
6219 }
6220
6221 case "$ECHO" in
6222 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6223 $as_echo "printf" >&6; } ;;
6224 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6225 $as_echo "print -r" >&6; } ;;
6226 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6227 $as_echo "cat" >&6; } ;;
6228 esac
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6244 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6245 if ${ac_cv_path_SED+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6249 for ac_i in 1 2 3 4 5 6 7; do
6250 ac_script="$ac_script$as_nl$ac_script"
6251 done
6252 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6253 { ac_script=; unset ac_script;}
6254 if test -z "$SED"; then
6255 ac_path_SED_found=false
6256 # Loop through the user's path and test for each of PROGNAME-LIST
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_prog in sed gsed; do
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6265 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6266 # Check for GNU ac_path_SED and select it if it is found.
6267 # Check for GNU $ac_path_SED
6268 case `"$ac_path_SED" --version 2>&1` in
6269 *GNU*)
6270 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6271 *)
6272 ac_count=0
6273 $as_echo_n 0123456789 >"conftest.in"
6274 while :
6275 do
6276 cat "conftest.in" "conftest.in" >"conftest.tmp"
6277 mv "conftest.tmp" "conftest.in"
6278 cp "conftest.in" "conftest.nl"
6279 $as_echo '' >> "conftest.nl"
6280 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6282 as_fn_arith $ac_count + 1 && ac_count=$as_val
6283 if test $ac_count -gt ${ac_path_SED_max-0}; then
6284 # Best one so far, save it but keep looking for a better one
6285 ac_cv_path_SED="$ac_path_SED"
6286 ac_path_SED_max=$ac_count
6287 fi
6288 # 10*(2^10) chars as input seems more than enough
6289 test $ac_count -gt 10 && break
6290 done
6291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6292 esac
6293
6294 $ac_path_SED_found && break 3
6295 done
6296 done
6297 done
6298 IFS=$as_save_IFS
6299 if test -z "$ac_cv_path_SED"; then
6300 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6301 fi
6302 else
6303 ac_cv_path_SED=$SED
6304 fi
6305
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6308 $as_echo "$ac_cv_path_SED" >&6; }
6309 SED="$ac_cv_path_SED"
6310 rm -f conftest.sed
6311
6312 test -z "$SED" && SED=sed
6313 Xsed="$SED -e 1s/^X//"
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6326 $as_echo_n "checking for fgrep... " >&6; }
6327 if ${ac_cv_path_FGREP+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6331 then ac_cv_path_FGREP="$GREP -F"
6332 else
6333 if test -z "$FGREP"; then
6334 ac_path_FGREP_found=false
6335 # Loop through the user's path and test for each of PROGNAME-LIST
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6338 do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_prog in fgrep; do
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6344 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6345 # Check for GNU ac_path_FGREP and select it if it is found.
6346 # Check for GNU $ac_path_FGREP
6347 case `"$ac_path_FGREP" --version 2>&1` in
6348 *GNU*)
6349 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6350 *)
6351 ac_count=0
6352 $as_echo_n 0123456789 >"conftest.in"
6353 while :
6354 do
6355 cat "conftest.in" "conftest.in" >"conftest.tmp"
6356 mv "conftest.tmp" "conftest.in"
6357 cp "conftest.in" "conftest.nl"
6358 $as_echo 'FGREP' >> "conftest.nl"
6359 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6361 as_fn_arith $ac_count + 1 && ac_count=$as_val
6362 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6363 # Best one so far, save it but keep looking for a better one
6364 ac_cv_path_FGREP="$ac_path_FGREP"
6365 ac_path_FGREP_max=$ac_count
6366 fi
6367 # 10*(2^10) chars as input seems more than enough
6368 test $ac_count -gt 10 && break
6369 done
6370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6371 esac
6372
6373 $ac_path_FGREP_found && break 3
6374 done
6375 done
6376 done
6377 IFS=$as_save_IFS
6378 if test -z "$ac_cv_path_FGREP"; then
6379 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6380 fi
6381 else
6382 ac_cv_path_FGREP=$FGREP
6383 fi
6384
6385 fi
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6388 $as_echo "$ac_cv_path_FGREP" >&6; }
6389 FGREP="$ac_cv_path_FGREP"
6390
6391
6392 test -z "$GREP" && GREP=grep
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412 # Check whether --with-gnu-ld was given.
6413 if test "${with_gnu_ld+set}" = set; then :
6414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6415 else
6416 with_gnu_ld=no
6417 fi
6418
6419 ac_prog=ld
6420 if test "$GCC" = yes; then
6421 # Check if gcc -print-prog-name=ld gives a path.
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6423 $as_echo_n "checking for ld used by $CC... " >&6; }
6424 case $host in
6425 *-*-mingw*)
6426 # gcc leaves a trailing carriage return which upsets mingw
6427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6428 *)
6429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6430 esac
6431 case $ac_prog in
6432 # Accept absolute paths.
6433 [\\/]* | ?:[\\/]*)
6434 re_direlt='/[^/][^/]*/\.\./'
6435 # Canonicalize the pathname of ld
6436 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6437 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6438 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6439 done
6440 test -z "$LD" && LD="$ac_prog"
6441 ;;
6442 "")
6443 # If it fails, then pretend we aren't using GCC.
6444 ac_prog=ld
6445 ;;
6446 *)
6447 # If it is relative, then search for the first ld in PATH.
6448 with_gnu_ld=unknown
6449 ;;
6450 esac
6451 elif test "$with_gnu_ld" = yes; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6453 $as_echo_n "checking for GNU ld... " >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6456 $as_echo_n "checking for non-GNU ld... " >&6; }
6457 fi
6458 if ${lt_cv_path_LD+:} false; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -z "$LD"; then
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6467 lt_cv_path_LD="$ac_dir/$ac_prog"
6468 # Check to see if the program is GNU ld. I'd rather use --version,
6469 # but apparently some variants of GNU ld only accept -v.
6470 # Break only if it was the GNU/non-GNU ld that we prefer.
6471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6472 *GNU* | *'with BFD'*)
6473 test "$with_gnu_ld" != no && break
6474 ;;
6475 *)
6476 test "$with_gnu_ld" != yes && break
6477 ;;
6478 esac
6479 fi
6480 done
6481 IFS="$lt_save_ifs"
6482 else
6483 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6484 fi
6485 fi
6486
6487 LD="$lt_cv_path_LD"
6488 if test -n "$LD"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6490 $as_echo "$LD" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6497 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6498 if ${lt_cv_prog_gnu_ld+:} false; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6502 case `$LD -v 2>&1 </dev/null` in
6503 *GNU* | *'with BFD'*)
6504 lt_cv_prog_gnu_ld=yes
6505 ;;
6506 *)
6507 lt_cv_prog_gnu_ld=no
6508 ;;
6509 esac
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6512 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6513 with_gnu_ld=$lt_cv_prog_gnu_ld
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6524 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6525 if ${lt_cv_path_NM+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$NM"; then
6529 # Let the user override the test.
6530 lt_cv_path_NM="$NM"
6531 else
6532 lt_nm_to_check="${ac_tool_prefix}nm"
6533 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6534 lt_nm_to_check="$lt_nm_to_check nm"
6535 fi
6536 for lt_tmp_nm in $lt_nm_to_check; do
6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6539 IFS="$lt_save_ifs"
6540 test -z "$ac_dir" && ac_dir=.
6541 tmp_nm="$ac_dir/$lt_tmp_nm"
6542 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6543 # Check to see if the nm accepts a BSD-compat flag.
6544 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6545 # nm: unknown option "B" ignored
6546 # Tru64's nm complains that /dev/null is an invalid object file
6547 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6548 */dev/null* | *'Invalid file or object type'*)
6549 lt_cv_path_NM="$tmp_nm -B"
6550 break
6551 ;;
6552 *)
6553 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6554 */dev/null*)
6555 lt_cv_path_NM="$tmp_nm -p"
6556 break
6557 ;;
6558 *)
6559 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6560 continue # so that we can try to find one that supports BSD flags
6561 ;;
6562 esac
6563 ;;
6564 esac
6565 fi
6566 done
6567 IFS="$lt_save_ifs"
6568 done
6569 : ${lt_cv_path_NM=no}
6570 fi
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6573 $as_echo "$lt_cv_path_NM" >&6; }
6574 if test "$lt_cv_path_NM" != "no"; then
6575 NM="$lt_cv_path_NM"
6576 else
6577 # Didn't find any BSD compatible name lister, look for dumpbin.
6578 if test -n "$DUMPBIN"; then :
6579 # Let the user override the test.
6580 else
6581 if test -n "$ac_tool_prefix"; then
6582 for ac_prog in dumpbin "link -dump"
6583 do
6584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_DUMPBIN+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$DUMPBIN"; then
6592 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 DUMPBIN=$ac_cv_prog_DUMPBIN
6612 if test -n "$DUMPBIN"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6614 $as_echo "$DUMPBIN" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 test -n "$DUMPBIN" && break
6622 done
6623 fi
6624 if test -z "$DUMPBIN"; then
6625 ac_ct_DUMPBIN=$DUMPBIN
6626 for ac_prog in dumpbin "link -dump"
6627 do
6628 # Extract the first word of "$ac_prog", so it can be a program name with args.
6629 set dummy $ac_prog; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 if test -n "$ac_ct_DUMPBIN"; then
6636 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi
6654 fi
6655 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6656 if test -n "$ac_ct_DUMPBIN"; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6658 $as_echo "$ac_ct_DUMPBIN" >&6; }
6659 else
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663
6664
6665 test -n "$ac_ct_DUMPBIN" && break
6666 done
6667
6668 if test "x$ac_ct_DUMPBIN" = x; then
6669 DUMPBIN=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 ac_tool_warned=yes ;;
6676 esac
6677 DUMPBIN=$ac_ct_DUMPBIN
6678 fi
6679 fi
6680
6681 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6682 *COFF*)
6683 DUMPBIN="$DUMPBIN -symbols"
6684 ;;
6685 *)
6686 DUMPBIN=:
6687 ;;
6688 esac
6689 fi
6690
6691 if test "$DUMPBIN" != ":"; then
6692 NM="$DUMPBIN"
6693 fi
6694 fi
6695 test -z "$NM" && NM=nm
6696
6697
6698
6699
6700
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6703 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6704 if ${lt_cv_nm_interface+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 lt_cv_nm_interface="BSD nm"
6708 echo "int some_variable = 0;" > conftest.$ac_ext
6709 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6710 (eval "$ac_compile" 2>conftest.err)
6711 cat conftest.err >&5
6712 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6713 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6714 cat conftest.err >&5
6715 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6716 cat conftest.out >&5
6717 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6718 lt_cv_nm_interface="MS dumpbin"
6719 fi
6720 rm -f conftest*
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6723 $as_echo "$lt_cv_nm_interface" >&6; }
6724
6725 # find the maximum length of command line arguments
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6727 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6728 if ${lt_cv_sys_max_cmd_len+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 i=0
6732 teststring="ABCD"
6733
6734 case $build_os in
6735 msdosdjgpp*)
6736 # On DJGPP, this test can blow up pretty badly due to problems in libc
6737 # (any single argument exceeding 2000 bytes causes a buffer overrun
6738 # during glob expansion). Even if it were fixed, the result of this
6739 # check would be larger than it should be.
6740 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6741 ;;
6742
6743 gnu*)
6744 # Under GNU Hurd, this test is not required because there is
6745 # no limit to the length of command line arguments.
6746 # Libtool will interpret -1 as no limit whatsoever
6747 lt_cv_sys_max_cmd_len=-1;
6748 ;;
6749
6750 cygwin* | mingw* | cegcc*)
6751 # On Win9x/ME, this test blows up -- it succeeds, but takes
6752 # about 5 minutes as the teststring grows exponentially.
6753 # Worse, since 9x/ME are not pre-emptively multitasking,
6754 # you end up with a "frozen" computer, even though with patience
6755 # the test eventually succeeds (with a max line length of 256k).
6756 # Instead, let's just punt: use the minimum linelength reported by
6757 # all of the supported platforms: 8192 (on NT/2K/XP).
6758 lt_cv_sys_max_cmd_len=8192;
6759 ;;
6760
6761 mint*)
6762 # On MiNT this can take a long time and run out of memory.
6763 lt_cv_sys_max_cmd_len=8192;
6764 ;;
6765
6766 amigaos*)
6767 # On AmigaOS with pdksh, this test takes hours, literally.
6768 # So we just punt and use a minimum line length of 8192.
6769 lt_cv_sys_max_cmd_len=8192;
6770 ;;
6771
6772 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6773 # This has been around since 386BSD, at least. Likely further.
6774 if test -x /sbin/sysctl; then
6775 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6776 elif test -x /usr/sbin/sysctl; then
6777 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6778 else
6779 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6780 fi
6781 # And add a safety zone
6782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6784 ;;
6785
6786 interix*)
6787 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6788 lt_cv_sys_max_cmd_len=196608
6789 ;;
6790
6791 os2*)
6792 # The test takes a long time on OS/2.
6793 lt_cv_sys_max_cmd_len=8192
6794 ;;
6795
6796 osf*)
6797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6799 # nice to cause kernel panics so lets avoid the loop below.
6800 # First set a reasonable default.
6801 lt_cv_sys_max_cmd_len=16384
6802 #
6803 if test -x /sbin/sysconfig; then
6804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6806 esac
6807 fi
6808 ;;
6809 sco3.2v5*)
6810 lt_cv_sys_max_cmd_len=102400
6811 ;;
6812 sysv5* | sco5v6* | sysv4.2uw2*)
6813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6814 if test -n "$kargmax"; then
6815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6816 else
6817 lt_cv_sys_max_cmd_len=32768
6818 fi
6819 ;;
6820 *)
6821 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6822 if test -n "$lt_cv_sys_max_cmd_len"; then
6823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6825 else
6826 # Make teststring a little bigger before we do anything with it.
6827 # a 1K string should be a reasonable start.
6828 for i in 1 2 3 4 5 6 7 8 ; do
6829 teststring=$teststring$teststring
6830 done
6831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6832 # If test is not a shell built-in, we'll probably end up computing a
6833 # maximum length that is only half of the actual maximum length, but
6834 # we can't tell.
6835 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6836 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6837 test $i != 17 # 1/2 MB should be enough
6838 do
6839 i=`expr $i + 1`
6840 teststring=$teststring$teststring
6841 done
6842 # Only check the string length outside the loop.
6843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6844 teststring=
6845 # Add a significant safety factor because C++ compilers can tack on
6846 # massive amounts of additional arguments before passing them to the
6847 # linker. It appears as though 1/2 is a usable value.
6848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6849 fi
6850 ;;
6851 esac
6852
6853 fi
6854
6855 if test -n $lt_cv_sys_max_cmd_len ; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6857 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6860 $as_echo "none" >&6; }
6861 fi
6862 max_cmd_len=$lt_cv_sys_max_cmd_len
6863
6864
6865
6866
6867
6868
6869 : ${CP="cp -f"}
6870 : ${MV="mv -f"}
6871 : ${RM="rm -f"}
6872
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6874 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6875 # Try some XSI features
6876 xsi_shell=no
6877 ( _lt_dummy="a/b/c"
6878 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6879 = c,a/b,b/c, \
6880 && eval 'test $(( 1 + 1 )) -eq 2 \
6881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6882 && xsi_shell=yes
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6884 $as_echo "$xsi_shell" >&6; }
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6888 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6889 lt_shell_append=no
6890 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6891 >/dev/null 2>&1 \
6892 && lt_shell_append=yes
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6894 $as_echo "$lt_shell_append" >&6; }
6895
6896
6897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6898 lt_unset=unset
6899 else
6900 lt_unset=false
6901 fi
6902
6903
6904
6905
6906
6907 # test EBCDIC or ASCII
6908 case `echo X|tr X '\101'` in
6909 A) # ASCII based system
6910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6911 lt_SP2NL='tr \040 \012'
6912 lt_NL2SP='tr \015\012 \040\040'
6913 ;;
6914 *) # EBCDIC based system
6915 lt_SP2NL='tr \100 \n'
6916 lt_NL2SP='tr \r\n \100\100'
6917 ;;
6918 esac
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6929 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6930 if ${lt_cv_to_host_file_cmd+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 case $host in
6934 *-*-mingw* )
6935 case $build in
6936 *-*-mingw* ) # actually msys
6937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6938 ;;
6939 *-*-cygwin* )
6940 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6941 ;;
6942 * ) # otherwise, assume *nix
6943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6944 ;;
6945 esac
6946 ;;
6947 *-*-cygwin* )
6948 case $build in
6949 *-*-mingw* ) # actually msys
6950 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6951 ;;
6952 *-*-cygwin* )
6953 lt_cv_to_host_file_cmd=func_convert_file_noop
6954 ;;
6955 * ) # otherwise, assume *nix
6956 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6957 ;;
6958 esac
6959 ;;
6960 * ) # unhandled hosts (and "normal" native builds)
6961 lt_cv_to_host_file_cmd=func_convert_file_noop
6962 ;;
6963 esac
6964
6965 fi
6966
6967 to_host_file_cmd=$lt_cv_to_host_file_cmd
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6969 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6970
6971
6972
6973
6974
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6976 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6977 if ${lt_cv_to_tool_file_cmd+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 #assume ordinary cross tools, or native build.
6981 lt_cv_to_tool_file_cmd=func_convert_file_noop
6982 case $host in
6983 *-*-mingw* )
6984 case $build in
6985 *-*-mingw* ) # actually msys
6986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6987 ;;
6988 esac
6989 ;;
6990 esac
6991
6992 fi
6993
6994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6996 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6997
6998
6999
7000
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7003 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7004 if ${lt_cv_ld_reload_flag+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 lt_cv_ld_reload_flag='-r'
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7010 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7011 reload_flag=$lt_cv_ld_reload_flag
7012 case $reload_flag in
7013 "" | " "*) ;;
7014 *) reload_flag=" $reload_flag" ;;
7015 esac
7016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7017 case $host_os in
7018 cygwin* | mingw* | pw32* | cegcc*)
7019 if test "$GCC" != yes; then
7020 reload_cmds=false
7021 fi
7022 ;;
7023 darwin*)
7024 if test "$GCC" = yes; then
7025 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7026 else
7027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7028 fi
7029 ;;
7030 esac
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_OBJDUMP+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$OBJDUMP"; then
7049 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 OBJDUMP=$ac_cv_prog_OBJDUMP
7069 if test -n "$OBJDUMP"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7071 $as_echo "$OBJDUMP" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_OBJDUMP"; then
7080 ac_ct_OBJDUMP=$OBJDUMP
7081 # Extract the first word of "objdump", so it can be a program name with args.
7082 set dummy objdump; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$ac_ct_OBJDUMP"; then
7089 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7109 if test -n "$ac_ct_OBJDUMP"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7111 $as_echo "$ac_ct_OBJDUMP" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117 if test "x$ac_ct_OBJDUMP" = x; then
7118 OBJDUMP="false"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 OBJDUMP=$ac_ct_OBJDUMP
7127 fi
7128 else
7129 OBJDUMP="$ac_cv_prog_OBJDUMP"
7130 fi
7131
7132 test -z "$OBJDUMP" && OBJDUMP=objdump
7133
7134
7135
7136
7137
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7140 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7141 if ${lt_cv_deplibs_check_method+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 lt_cv_file_magic_cmd='$MAGIC_CMD'
7145 lt_cv_file_magic_test_file=
7146 lt_cv_deplibs_check_method='unknown'
7147 # Need to set the preceding variable on all platforms that support
7148 # interlibrary dependencies.
7149 # 'none' -- dependencies not supported.
7150 # `unknown' -- same as none, but documents that we really don't know.
7151 # 'pass_all' -- all dependencies passed with no checks.
7152 # 'test_compile' -- check by making test program.
7153 # 'file_magic [[regex]]' -- check by looking for files in library path
7154 # which responds to the $file_magic_cmd with a given extended regex.
7155 # If you have `file' or equivalent on your system and you're not sure
7156 # whether `pass_all' will *always* work, you probably want this one.
7157
7158 case $host_os in
7159 aix[4-9]*)
7160 lt_cv_deplibs_check_method=pass_all
7161 ;;
7162
7163 beos*)
7164 lt_cv_deplibs_check_method=pass_all
7165 ;;
7166
7167 bsdi[45]*)
7168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7169 lt_cv_file_magic_cmd='/usr/bin/file -L'
7170 lt_cv_file_magic_test_file=/shlib/libc.so
7171 ;;
7172
7173 cygwin*)
7174 # func_win32_libid is a shell function defined in ltmain.sh
7175 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7176 lt_cv_file_magic_cmd='func_win32_libid'
7177 ;;
7178
7179 mingw* | pw32*)
7180 # Base MSYS/MinGW do not provide the 'file' command needed by
7181 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7182 # unless we find 'file', for example because we are cross-compiling.
7183 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7184 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7186 lt_cv_file_magic_cmd='func_win32_libid'
7187 else
7188 # Keep this pattern in sync with the one in func_win32_libid.
7189 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7190 lt_cv_file_magic_cmd='$OBJDUMP -f'
7191 fi
7192 ;;
7193
7194 cegcc*)
7195 # use the weaker test based on 'objdump'. See mingw*.
7196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7197 lt_cv_file_magic_cmd='$OBJDUMP -f'
7198 ;;
7199
7200 darwin* | rhapsody*)
7201 lt_cv_deplibs_check_method=pass_all
7202 ;;
7203
7204 freebsd* | dragonfly*)
7205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7206 case $host_cpu in
7207 i*86 )
7208 # Not sure whether the presence of OpenBSD here was a mistake.
7209 # Let's accept both of them until this is cleared up.
7210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7211 lt_cv_file_magic_cmd=/usr/bin/file
7212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7213 ;;
7214 esac
7215 else
7216 lt_cv_deplibs_check_method=pass_all
7217 fi
7218 ;;
7219
7220 gnu*)
7221 lt_cv_deplibs_check_method=pass_all
7222 ;;
7223
7224 haiku*)
7225 lt_cv_deplibs_check_method=pass_all
7226 ;;
7227
7228 hpux10.20* | hpux11*)
7229 lt_cv_file_magic_cmd=/usr/bin/file
7230 case $host_cpu in
7231 ia64*)
7232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7233 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7234 ;;
7235 hppa*64*)
7236 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]'
7237 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7238 ;;
7239 *)
7240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7241 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7242 ;;
7243 esac
7244 ;;
7245
7246 interix[3-9]*)
7247 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7249 ;;
7250
7251 irix5* | irix6* | nonstopux*)
7252 case $LD in
7253 *-32|*"-32 ") libmagic=32-bit;;
7254 *-n32|*"-n32 ") libmagic=N32;;
7255 *-64|*"-64 ") libmagic=64-bit;;
7256 *) libmagic=never-match;;
7257 esac
7258 lt_cv_deplibs_check_method=pass_all
7259 ;;
7260
7261 # This must be glibc/ELF.
7262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7263 lt_cv_deplibs_check_method=pass_all
7264 ;;
7265
7266 netbsd* | netbsdelf*-gnu)
7267 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7269 else
7270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7271 fi
7272 ;;
7273
7274 newos6*)
7275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7276 lt_cv_file_magic_cmd=/usr/bin/file
7277 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7278 ;;
7279
7280 *nto* | *qnx*)
7281 lt_cv_deplibs_check_method=pass_all
7282 ;;
7283
7284 openbsd*)
7285 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7287 else
7288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7289 fi
7290 ;;
7291
7292 osf3* | osf4* | osf5*)
7293 lt_cv_deplibs_check_method=pass_all
7294 ;;
7295
7296 rdos*)
7297 lt_cv_deplibs_check_method=pass_all
7298 ;;
7299
7300 solaris*)
7301 lt_cv_deplibs_check_method=pass_all
7302 ;;
7303
7304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7305 lt_cv_deplibs_check_method=pass_all
7306 ;;
7307
7308 sysv4 | sysv4.3*)
7309 case $host_vendor in
7310 motorola)
7311 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]'
7312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7313 ;;
7314 ncr)
7315 lt_cv_deplibs_check_method=pass_all
7316 ;;
7317 sequent)
7318 lt_cv_file_magic_cmd='/bin/file'
7319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7320 ;;
7321 sni)
7322 lt_cv_file_magic_cmd='/bin/file'
7323 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7324 lt_cv_file_magic_test_file=/lib/libc.so
7325 ;;
7326 siemens)
7327 lt_cv_deplibs_check_method=pass_all
7328 ;;
7329 pc)
7330 lt_cv_deplibs_check_method=pass_all
7331 ;;
7332 esac
7333 ;;
7334
7335 tpf*)
7336 lt_cv_deplibs_check_method=pass_all
7337 ;;
7338 esac
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7342 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7343
7344 file_magic_glob=
7345 want_nocaseglob=no
7346 if test "$build" = "$host"; then
7347 case $host_os in
7348 mingw* | pw32*)
7349 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7350 want_nocaseglob=yes
7351 else
7352 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7353 fi
7354 ;;
7355 esac
7356 fi
7357
7358 file_magic_cmd=$lt_cv_file_magic_cmd
7359 deplibs_check_method=$lt_cv_deplibs_check_method
7360 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_DLLTOOL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$DLLTOOL"; then
7392 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 DLLTOOL=$ac_cv_prog_DLLTOOL
7412 if test -n "$DLLTOOL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7414 $as_echo "$DLLTOOL" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421 fi
7422 if test -z "$ac_cv_prog_DLLTOOL"; then
7423 ac_ct_DLLTOOL=$DLLTOOL
7424 # Extract the first word of "dlltool", so it can be a program name with args.
7425 set dummy dlltool; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$ac_ct_DLLTOOL"; then
7432 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7452 if test -n "$ac_ct_DLLTOOL"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7454 $as_echo "$ac_ct_DLLTOOL" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460 if test "x$ac_ct_DLLTOOL" = x; then
7461 DLLTOOL="false"
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469 DLLTOOL=$ac_ct_DLLTOOL
7470 fi
7471 else
7472 DLLTOOL="$ac_cv_prog_DLLTOOL"
7473 fi
7474
7475 test -z "$DLLTOOL" && DLLTOOL=dlltool
7476
7477
7478
7479
7480
7481
7482
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7484 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7485 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 lt_cv_sharedlib_from_linklib_cmd='unknown'
7489
7490 case $host_os in
7491 cygwin* | mingw* | pw32* | cegcc*)
7492 # two different shell functions defined in ltmain.sh
7493 # decide which to use based on capabilities of $DLLTOOL
7494 case `$DLLTOOL --help 2>&1` in
7495 *--identify-strict*)
7496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7497 ;;
7498 *)
7499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7500 ;;
7501 esac
7502 ;;
7503 *)
7504 # fallback: assume linklib IS sharedlib
7505 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7506 ;;
7507 esac
7508
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7511 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7512 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7513 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7514
7515
7516
7517
7518
7519
7520
7521 if test -n "$ac_tool_prefix"; then
7522 for ac_prog in ar
7523 do
7524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_AR+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$AR"; then
7532 ac_cv_prog_AR="$AR" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 AR=$ac_cv_prog_AR
7552 if test -n "$AR"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7554 $as_echo "$AR" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560
7561 test -n "$AR" && break
7562 done
7563 fi
7564 if test -z "$AR"; then
7565 ac_ct_AR=$AR
7566 for ac_prog in ar
7567 do
7568 # Extract the first word of "$ac_prog", so it can be a program name with args.
7569 set dummy $ac_prog; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$ac_ct_AR"; then
7576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_ac_ct_AR="$ac_prog"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7596 if test -n "$ac_ct_AR"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7598 $as_echo "$ac_ct_AR" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 test -n "$ac_ct_AR" && break
7606 done
7607
7608 if test "x$ac_ct_AR" = x; then
7609 AR="false"
7610 else
7611 case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617 AR=$ac_ct_AR
7618 fi
7619 fi
7620
7621 : ${AR=ar}
7622 : ${AR_FLAGS=cru}
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7635 $as_echo_n "checking for archiver @FILE support... " >&6; }
7636 if ${lt_cv_ar_at_file+:} false; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 lt_cv_ar_at_file=no
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642
7643 int
7644 main ()
7645 {
7646
7647 ;
7648 return 0;
7649 }
7650 _ACEOF
7651 if ac_fn_c_try_compile "$LINENO"; then :
7652 echo conftest.$ac_objext > conftest.lst
7653 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7655 (eval $lt_ar_try) 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; }
7659 if test "$ac_status" -eq 0; then
7660 # Ensure the archiver fails upon bogus file names.
7661 rm -f conftest.$ac_objext libconftest.a
7662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7663 (eval $lt_ar_try) 2>&5
7664 ac_status=$?
7665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7666 test $ac_status = 0; }
7667 if test "$ac_status" -ne 0; then
7668 lt_cv_ar_at_file=@
7669 fi
7670 fi
7671 rm -f conftest.* libconftest.a
7672
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7678 $as_echo "$lt_cv_ar_at_file" >&6; }
7679
7680 if test "x$lt_cv_ar_at_file" = xno; then
7681 archiver_list_spec=
7682 else
7683 archiver_list_spec=$lt_cv_ar_at_file
7684 fi
7685
7686
7687
7688
7689
7690
7691
7692 if test -n "$ac_tool_prefix"; then
7693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7694 set dummy ${ac_tool_prefix}strip; ac_word=$2
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7696 $as_echo_n "checking for $ac_word... " >&6; }
7697 if ${ac_cv_prog_STRIP+:} false; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7700 if test -n "$STRIP"; then
7701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7702 else
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 for as_dir in $PATH
7705 do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi
7719 fi
7720 STRIP=$ac_cv_prog_STRIP
7721 if test -n "$STRIP"; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7723 $as_echo "$STRIP" >&6; }
7724 else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728
7729
7730 fi
7731 if test -z "$ac_cv_prog_STRIP"; then
7732 ac_ct_STRIP=$STRIP
7733 # Extract the first word of "strip", so it can be a program name with args.
7734 set dummy strip; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$ac_ct_STRIP"; then
7741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_prog_ac_ct_STRIP="strip"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7761 if test -n "$ac_ct_STRIP"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7763 $as_echo "$ac_ct_STRIP" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769 if test "x$ac_ct_STRIP" = x; then
7770 STRIP=":"
7771 else
7772 case $cross_compiling:$ac_tool_warned in
7773 yes:)
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776 ac_tool_warned=yes ;;
7777 esac
7778 STRIP=$ac_ct_STRIP
7779 fi
7780 else
7781 STRIP="$ac_cv_prog_STRIP"
7782 fi
7783
7784 test -z "$STRIP" && STRIP=:
7785
7786
7787
7788
7789
7790
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_RANLIB+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$RANLIB"; then
7800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 RANLIB=$ac_cv_prog_RANLIB
7820 if test -n "$RANLIB"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7822 $as_echo "$RANLIB" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_RANLIB"; then
7831 ac_ct_RANLIB=$RANLIB
7832 # Extract the first word of "ranlib", so it can be a program name with args.
7833 set dummy ranlib; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$ac_ct_RANLIB"; then
7840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_prog_ac_ct_RANLIB="ranlib"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7860 if test -n "$ac_ct_RANLIB"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7862 $as_echo "$ac_ct_RANLIB" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868 if test "x$ac_ct_RANLIB" = x; then
7869 RANLIB=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877 RANLIB=$ac_ct_RANLIB
7878 fi
7879 else
7880 RANLIB="$ac_cv_prog_RANLIB"
7881 fi
7882
7883 test -z "$RANLIB" && RANLIB=:
7884
7885
7886
7887
7888
7889
7890 # Determine commands to create old-style static archives.
7891 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7892 old_postinstall_cmds='chmod 644 $oldlib'
7893 old_postuninstall_cmds=
7894
7895 if test -n "$RANLIB"; then
7896 case $host_os in
7897 openbsd*)
7898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7899 ;;
7900 *)
7901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7902 ;;
7903 esac
7904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7905 fi
7906
7907 case $host_os in
7908 darwin*)
7909 lock_old_archive_extraction=yes ;;
7910 *)
7911 lock_old_archive_extraction=no ;;
7912 esac
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952 # If no C compiler was specified, use CC.
7953 LTCC=${LTCC-"$CC"}
7954
7955 # If no C compiler flags were specified, use CFLAGS.
7956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7957
7958 # Allow CC to be a program name with arguments.
7959 compiler=$CC
7960
7961
7962 # Check for command to grab the raw symbol name followed by C symbol from nm.
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7965 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968
7969 # These are sane defaults that work on at least a few old systems.
7970 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7971
7972 # Character class describing NM global symbol codes.
7973 symcode='[BCDEGRST]'
7974
7975 # Regexp to match symbols that can be accessed directly from C.
7976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7977
7978 # Define system-specific variables.
7979 case $host_os in
7980 aix*)
7981 symcode='[BCDT]'
7982 ;;
7983 cygwin* | mingw* | pw32* | cegcc*)
7984 symcode='[ABCDGISTW]'
7985 ;;
7986 hpux*)
7987 if test "$host_cpu" = ia64; then
7988 symcode='[ABCDEGRST]'
7989 fi
7990 ;;
7991 irix* | nonstopux*)
7992 symcode='[BCDEGRST]'
7993 ;;
7994 osf*)
7995 symcode='[BCDEGQRST]'
7996 ;;
7997 solaris*)
7998 symcode='[BDRT]'
7999 ;;
8000 sco3.2v5*)
8001 symcode='[DT]'
8002 ;;
8003 sysv4.2uw2*)
8004 symcode='[DT]'
8005 ;;
8006 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8007 symcode='[ABDT]'
8008 ;;
8009 sysv4)
8010 symcode='[DFNSTU]'
8011 ;;
8012 esac
8013
8014 # If we're using GNU nm, then use its standard symbol codes.
8015 case `$NM -V 2>&1` in
8016 *GNU* | *'with BFD'*)
8017 symcode='[ABCDGIRSTW]' ;;
8018 esac
8019
8020 # Transform an extracted symbol line into a proper C declaration.
8021 # Some systems (esp. on ia64) link data and code symbols differently,
8022 # so use this general approach.
8023 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8024
8025 # Transform an extracted symbol line into symbol name and symbol address
8026 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8027 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8028
8029 # Handle CRLF in mingw tool chain
8030 opt_cr=
8031 case $build_os in
8032 mingw*)
8033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8034 ;;
8035 esac
8036
8037 # Try without a prefix underscore, then with it.
8038 for ac_symprfx in "" "_"; do
8039
8040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8041 symxfrm="\\1 $ac_symprfx\\2 \\2"
8042
8043 # Write the raw and C identifiers.
8044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8045 # Fake it for dumpbin and say T for any non-static function
8046 # and D for any global variable.
8047 # Also find C++ and __fastcall symbols from MSVC++,
8048 # which start with @ or ?.
8049 lt_cv_sys_global_symbol_pipe="$AWK '"\
8050 " {last_section=section; section=\$ 3};"\
8051 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8052 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8053 " \$ 0!~/External *\|/{next};"\
8054 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8055 " {if(hide[section]) next};"\
8056 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8057 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8058 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8059 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8060 " ' prfx=^$ac_symprfx"
8061 else
8062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8063 fi
8064 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8065
8066 # Check to see that the pipe works correctly.
8067 pipe_works=no
8068
8069 rm -f conftest*
8070 cat > conftest.$ac_ext <<_LT_EOF
8071 #ifdef __cplusplus
8072 extern "C" {
8073 #endif
8074 char nm_test_var;
8075 void nm_test_func(void);
8076 void nm_test_func(void){}
8077 #ifdef __cplusplus
8078 }
8079 #endif
8080 int main(){nm_test_var='a';nm_test_func();return(0);}
8081 _LT_EOF
8082
8083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8084 (eval $ac_compile) 2>&5
8085 ac_status=$?
8086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8087 test $ac_status = 0; }; then
8088 # Now try to grab the symbols.
8089 nlist=conftest.nm
8090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8091 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8092 ac_status=$?
8093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; } && test -s "$nlist"; then
8095 # Try sorting and uniquifying the output.
8096 if sort "$nlist" | uniq > "$nlist"T; then
8097 mv -f "$nlist"T "$nlist"
8098 else
8099 rm -f "$nlist"T
8100 fi
8101
8102 # Make sure that we snagged all the symbols we need.
8103 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8104 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8105 cat <<_LT_EOF > conftest.$ac_ext
8106 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8107 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8108 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8109 relocations are performed -- see ld's documentation on pseudo-relocs. */
8110 # define LT_DLSYM_CONST
8111 #elif defined(__osf__)
8112 /* This system does not cope well with relocations in const data. */
8113 # define LT_DLSYM_CONST
8114 #else
8115 # define LT_DLSYM_CONST const
8116 #endif
8117
8118 #ifdef __cplusplus
8119 extern "C" {
8120 #endif
8121
8122 _LT_EOF
8123 # Now generate the symbol file.
8124 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8125
8126 cat <<_LT_EOF >> conftest.$ac_ext
8127
8128 /* The mapping between symbol names and symbols. */
8129 LT_DLSYM_CONST struct {
8130 const char *name;
8131 void *address;
8132 }
8133 lt__PROGRAM__LTX_preloaded_symbols[] =
8134 {
8135 { "@PROGRAM@", (void *) 0 },
8136 _LT_EOF
8137 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8138 cat <<\_LT_EOF >> conftest.$ac_ext
8139 {0, (void *) 0}
8140 };
8141
8142 /* This works around a problem in FreeBSD linker */
8143 #ifdef FREEBSD_WORKAROUND
8144 static const void *lt_preloaded_setup() {
8145 return lt__PROGRAM__LTX_preloaded_symbols;
8146 }
8147 #endif
8148
8149 #ifdef __cplusplus
8150 }
8151 #endif
8152 _LT_EOF
8153 # Now try linking the two files.
8154 mv conftest.$ac_objext conftstm.$ac_objext
8155 lt_globsym_save_LIBS=$LIBS
8156 lt_globsym_save_CFLAGS=$CFLAGS
8157 LIBS="conftstm.$ac_objext"
8158 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8160 (eval $ac_link) 2>&5
8161 ac_status=$?
8162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8163 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8164 pipe_works=yes
8165 fi
8166 LIBS=$lt_globsym_save_LIBS
8167 CFLAGS=$lt_globsym_save_CFLAGS
8168 else
8169 echo "cannot find nm_test_func in $nlist" >&5
8170 fi
8171 else
8172 echo "cannot find nm_test_var in $nlist" >&5
8173 fi
8174 else
8175 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8176 fi
8177 else
8178 echo "$progname: failed program was:" >&5
8179 cat conftest.$ac_ext >&5
8180 fi
8181 rm -rf conftest* conftst*
8182
8183 # Do not use the global_symbol_pipe unless it works.
8184 if test "$pipe_works" = yes; then
8185 break
8186 else
8187 lt_cv_sys_global_symbol_pipe=
8188 fi
8189 done
8190
8191 fi
8192
8193 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8194 lt_cv_sys_global_symbol_to_cdecl=
8195 fi
8196 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8198 $as_echo "failed" >&6; }
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8201 $as_echo "ok" >&6; }
8202 fi
8203
8204 # Response file support.
8205 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8206 nm_file_list_spec='@'
8207 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8208 nm_file_list_spec='@'
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8238 $as_echo_n "checking for sysroot... " >&6; }
8239
8240 # Check whether --with-sysroot was given.
8241 if test "${with_sysroot+set}" = set; then :
8242 withval=$with_sysroot;
8243 else
8244 with_sysroot=no
8245 fi
8246
8247
8248 lt_sysroot=
8249 case ${with_sysroot} in #(
8250 yes)
8251 if test "$GCC" = yes; then
8252 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8253 fi
8254 ;; #(
8255 /*)
8256 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8257 ;; #(
8258 no|'')
8259 ;; #(
8260 *)
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8262 $as_echo "${with_sysroot}" >&6; }
8263 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8264 ;;
8265 esac
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8268 $as_echo "${lt_sysroot:-no}" >&6; }
8269
8270
8271
8272
8273
8274 # Check whether --enable-libtool-lock was given.
8275 if test "${enable_libtool_lock+set}" = set; then :
8276 enableval=$enable_libtool_lock;
8277 fi
8278
8279 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8280
8281 # Some flags need to be propagated to the compiler or linker for good
8282 # libtool support.
8283 case $host in
8284 ia64-*-hpux*)
8285 # Find out which ABI we are using.
8286 echo 'int i;' > conftest.$ac_ext
8287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8288 (eval $ac_compile) 2>&5
8289 ac_status=$?
8290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8291 test $ac_status = 0; }; then
8292 case `/usr/bin/file conftest.$ac_objext` in
8293 *ELF-32*)
8294 HPUX_IA64_MODE="32"
8295 ;;
8296 *ELF-64*)
8297 HPUX_IA64_MODE="64"
8298 ;;
8299 esac
8300 fi
8301 rm -rf conftest*
8302 ;;
8303 *-*-irix6*)
8304 # Find out which ABI we are using.
8305 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307 (eval $ac_compile) 2>&5
8308 ac_status=$?
8309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; }; then
8311 if test "$lt_cv_prog_gnu_ld" = yes; then
8312 case `/usr/bin/file conftest.$ac_objext` in
8313 *32-bit*)
8314 LD="${LD-ld} -melf32bsmip"
8315 ;;
8316 *N32*)
8317 LD="${LD-ld} -melf32bmipn32"
8318 ;;
8319 *64-bit*)
8320 LD="${LD-ld} -melf64bmip"
8321 ;;
8322 esac
8323 else
8324 case `/usr/bin/file conftest.$ac_objext` in
8325 *32-bit*)
8326 LD="${LD-ld} -32"
8327 ;;
8328 *N32*)
8329 LD="${LD-ld} -n32"
8330 ;;
8331 *64-bit*)
8332 LD="${LD-ld} -64"
8333 ;;
8334 esac
8335 fi
8336 fi
8337 rm -rf conftest*
8338 ;;
8339
8340 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8341 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8342 # Find out which ABI we are using.
8343 echo 'int i;' > conftest.$ac_ext
8344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8345 (eval $ac_compile) 2>&5
8346 ac_status=$?
8347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348 test $ac_status = 0; }; then
8349 case `/usr/bin/file conftest.o` in
8350 *32-bit*)
8351 case $host in
8352 x86_64-*kfreebsd*-gnu)
8353 LD="${LD-ld} -m elf_i386_fbsd"
8354 ;;
8355 x86_64-*linux*)
8356 LD="${LD-ld} -m elf_i386"
8357 ;;
8358 ppc64-*linux*|powerpc64-*linux*)
8359 LD="${LD-ld} -m elf32ppclinux"
8360 ;;
8361 s390x-*linux*)
8362 LD="${LD-ld} -m elf_s390"
8363 ;;
8364 sparc64-*linux*)
8365 LD="${LD-ld} -m elf32_sparc"
8366 ;;
8367 esac
8368 ;;
8369 *64-bit*)
8370 case $host in
8371 x86_64-*kfreebsd*-gnu)
8372 LD="${LD-ld} -m elf_x86_64_fbsd"
8373 ;;
8374 x86_64-*linux*)
8375 LD="${LD-ld} -m elf_x86_64"
8376 ;;
8377 ppc*-*linux*|powerpc*-*linux*)
8378 LD="${LD-ld} -m elf64ppc"
8379 ;;
8380 s390*-*linux*|s390*-*tpf*)
8381 LD="${LD-ld} -m elf64_s390"
8382 ;;
8383 sparc*-*linux*)
8384 LD="${LD-ld} -m elf64_sparc"
8385 ;;
8386 esac
8387 ;;
8388 esac
8389 fi
8390 rm -rf conftest*
8391 ;;
8392
8393 *-*-sco3.2v5*)
8394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8395 SAVE_CFLAGS="$CFLAGS"
8396 CFLAGS="$CFLAGS -belf"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8398 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8399 if ${lt_cv_cc_needs_belf+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_ext=c
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main ()
8413 {
8414
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_link "$LINENO"; then :
8420 lt_cv_cc_needs_belf=yes
8421 else
8422 lt_cv_cc_needs_belf=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426 ac_ext=c
8427 ac_cpp='$CPP $CPPFLAGS'
8428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8431
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8434 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8435 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8437 CFLAGS="$SAVE_CFLAGS"
8438 fi
8439 ;;
8440 *-*solaris*)
8441 # Find out which ABI we are using.
8442 echo 'int i;' > conftest.$ac_ext
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8444 (eval $ac_compile) 2>&5
8445 ac_status=$?
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; }; then
8448 case `/usr/bin/file conftest.o` in
8449 *64-bit*)
8450 case $lt_cv_prog_gnu_ld in
8451 yes*)
8452 case $host in
8453 i?86-*-solaris*)
8454 LD="${LD-ld} -m elf_x86_64"
8455 ;;
8456 sparc*-*-solaris*)
8457 LD="${LD-ld} -m elf64_sparc"
8458 ;;
8459 esac
8460 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8461 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8462 LD="${LD-ld}_sol2"
8463 fi
8464 ;;
8465 *)
8466 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8467 LD="${LD-ld} -64"
8468 fi
8469 ;;
8470 esac
8471 ;;
8472 esac
8473 fi
8474 rm -rf conftest*
8475 ;;
8476 esac
8477
8478 need_locks="$enable_libtool_lock"
8479
8480 if test -n "$ac_tool_prefix"; then
8481 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8482 set dummy ${ac_tool_prefix}mt; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$MANIFEST_TOOL"; then
8489 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8509 if test -n "$MANIFEST_TOOL"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8511 $as_echo "$MANIFEST_TOOL" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518 fi
8519 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8520 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8521 # Extract the first word of "mt", so it can be a program name with args.
8522 set dummy mt; ac_word=$2
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 $as_echo_n "checking for $ac_word... " >&6; }
8525 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 if test -n "$ac_ct_MANIFEST_TOOL"; then
8529 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8530 else
8531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 for as_dir in $PATH
8533 do
8534 IFS=$as_save_IFS
8535 test -z "$as_dir" && as_dir=.
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8538 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 fi
8547 fi
8548 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8549 if test -n "$ac_ct_MANIFEST_TOOL"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8551 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 $as_echo "no" >&6; }
8555 fi
8556
8557 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8558 MANIFEST_TOOL=":"
8559 else
8560 case $cross_compiling:$ac_tool_warned in
8561 yes:)
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8564 ac_tool_warned=yes ;;
8565 esac
8566 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8567 fi
8568 else
8569 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8570 fi
8571
8572 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8574 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8575 if ${lt_cv_path_mainfest_tool+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 lt_cv_path_mainfest_tool=no
8579 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8580 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8581 cat conftest.err >&5
8582 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8583 lt_cv_path_mainfest_tool=yes
8584 fi
8585 rm -f conftest*
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8588 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8589 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8590 MANIFEST_TOOL=:
8591 fi
8592
8593
8594
8595
8596
8597
8598 case $host_os in
8599 rhapsody* | darwin*)
8600 if test -n "$ac_tool_prefix"; then
8601 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8602 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 if test -n "$DSYMUTIL"; then
8609 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8629 if test -n "$DSYMUTIL"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8631 $as_echo "$DSYMUTIL" >&6; }
8632 else
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637
8638 fi
8639 if test -z "$ac_cv_prog_DSYMUTIL"; then
8640 ac_ct_DSYMUTIL=$DSYMUTIL
8641 # Extract the first word of "dsymutil", so it can be a program name with args.
8642 set dummy dsymutil; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 if test -n "$ac_ct_DSYMUTIL"; then
8649 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662 done
8663 done
8664 IFS=$as_save_IFS
8665
8666 fi
8667 fi
8668 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8669 if test -n "$ac_ct_DSYMUTIL"; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8671 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8672 else
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8674 $as_echo "no" >&6; }
8675 fi
8676
8677 if test "x$ac_ct_DSYMUTIL" = x; then
8678 DSYMUTIL=":"
8679 else
8680 case $cross_compiling:$ac_tool_warned in
8681 yes:)
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8684 ac_tool_warned=yes ;;
8685 esac
8686 DSYMUTIL=$ac_ct_DSYMUTIL
8687 fi
8688 else
8689 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8690 fi
8691
8692 if test -n "$ac_tool_prefix"; then
8693 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8694 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_prog_NMEDIT+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 if test -n "$NMEDIT"; then
8701 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714 done
8715 done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 NMEDIT=$ac_cv_prog_NMEDIT
8721 if test -n "$NMEDIT"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8723 $as_echo "$NMEDIT" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730 fi
8731 if test -z "$ac_cv_prog_NMEDIT"; then
8732 ac_ct_NMEDIT=$NMEDIT
8733 # Extract the first word of "nmedit", so it can be a program name with args.
8734 set dummy nmedit; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$ac_ct_NMEDIT"; then
8741 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8745 do
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8753 fi
8754 done
8755 done
8756 IFS=$as_save_IFS
8757
8758 fi
8759 fi
8760 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8761 if test -n "$ac_ct_NMEDIT"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8763 $as_echo "$ac_ct_NMEDIT" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8767 fi
8768
8769 if test "x$ac_ct_NMEDIT" = x; then
8770 NMEDIT=":"
8771 else
8772 case $cross_compiling:$ac_tool_warned in
8773 yes:)
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8776 ac_tool_warned=yes ;;
8777 esac
8778 NMEDIT=$ac_ct_NMEDIT
8779 fi
8780 else
8781 NMEDIT="$ac_cv_prog_NMEDIT"
8782 fi
8783
8784 if test -n "$ac_tool_prefix"; then
8785 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8786 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_prog_LIPO+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 if test -n "$LIPO"; then
8793 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8797 do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806 done
8807 done
8808 IFS=$as_save_IFS
8809
8810 fi
8811 fi
8812 LIPO=$ac_cv_prog_LIPO
8813 if test -n "$LIPO"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8815 $as_echo "$LIPO" >&6; }
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8819 fi
8820
8821
8822 fi
8823 if test -z "$ac_cv_prog_LIPO"; then
8824 ac_ct_LIPO=$LIPO
8825 # Extract the first word of "lipo", so it can be a program name with args.
8826 set dummy lipo; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 if test -n "$ac_ct_LIPO"; then
8833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8837 do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_ac_ct_LIPO="lipo"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846 done
8847 done
8848 IFS=$as_save_IFS
8849
8850 fi
8851 fi
8852 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8853 if test -n "$ac_ct_LIPO"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8855 $as_echo "$ac_ct_LIPO" >&6; }
8856 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8859 fi
8860
8861 if test "x$ac_ct_LIPO" = x; then
8862 LIPO=":"
8863 else
8864 case $cross_compiling:$ac_tool_warned in
8865 yes:)
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8868 ac_tool_warned=yes ;;
8869 esac
8870 LIPO=$ac_ct_LIPO
8871 fi
8872 else
8873 LIPO="$ac_cv_prog_LIPO"
8874 fi
8875
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}otool; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_prog_OTOOL+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$OTOOL"; then
8885 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898 done
8899 done
8900 IFS=$as_save_IFS
8901
8902 fi
8903 fi
8904 OTOOL=$ac_cv_prog_OTOOL
8905 if test -n "$OTOOL"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8907 $as_echo "$OTOOL" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914 fi
8915 if test -z "$ac_cv_prog_OTOOL"; then
8916 ac_ct_OTOOL=$OTOOL
8917 # Extract the first word of "otool", so it can be a program name with args.
8918 set dummy otool; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$ac_ct_OTOOL"; then
8925 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ac_ct_OTOOL="otool"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8945 if test -n "$ac_ct_OTOOL"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8947 $as_echo "$ac_ct_OTOOL" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953 if test "x$ac_ct_OTOOL" = x; then
8954 OTOOL=":"
8955 else
8956 case $cross_compiling:$ac_tool_warned in
8957 yes:)
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned=yes ;;
8961 esac
8962 OTOOL=$ac_ct_OTOOL
8963 fi
8964 else
8965 OTOOL="$ac_cv_prog_OTOOL"
8966 fi
8967
8968 if test -n "$ac_tool_prefix"; then
8969 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8970 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if ${ac_cv_prog_OTOOL64+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$OTOOL64"; then
8977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990 done
8991 done
8992 IFS=$as_save_IFS
8993
8994 fi
8995 fi
8996 OTOOL64=$ac_cv_prog_OTOOL64
8997 if test -n "$OTOOL64"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8999 $as_echo "$OTOOL64" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9003 fi
9004
9005
9006 fi
9007 if test -z "$ac_cv_prog_OTOOL64"; then
9008 ac_ct_OTOOL64=$OTOOL64
9009 # Extract the first word of "otool64", so it can be a program name with args.
9010 set dummy otool64; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 if test -n "$ac_ct_OTOOL64"; then
9017 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_ac_ct_OTOOL64="otool64"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030 done
9031 done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9037 if test -n "$ac_ct_OTOOL64"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9039 $as_echo "$ac_ct_OTOOL64" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045 if test "x$ac_ct_OTOOL64" = x; then
9046 OTOOL64=":"
9047 else
9048 case $cross_compiling:$ac_tool_warned in
9049 yes:)
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9052 ac_tool_warned=yes ;;
9053 esac
9054 OTOOL64=$ac_ct_OTOOL64
9055 fi
9056 else
9057 OTOOL64="$ac_cv_prog_OTOOL64"
9058 fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9087 $as_echo_n "checking for -single_module linker flag... " >&6; }
9088 if ${lt_cv_apple_cc_single_mod+:} false; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 lt_cv_apple_cc_single_mod=no
9092 if test -z "${LT_MULTI_MODULE}"; then
9093 # By default we will add the -single_module flag. You can override
9094 # by either setting the environment variable LT_MULTI_MODULE
9095 # non-empty at configure time, or by adding -multi_module to the
9096 # link flags.
9097 rm -rf libconftest.dylib*
9098 echo "int foo(void){return 1;}" > conftest.c
9099 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9100 -dynamiclib -Wl,-single_module conftest.c" >&5
9101 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9102 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9103 _lt_result=$?
9104 # If there is a non-empty error log, and "single_module"
9105 # appears in it, assume the flag caused a linker warning
9106 if test -s conftest.err && $GREP single_module conftest.err; then
9107 cat conftest.err >&5
9108 # Otherwise, if the output was created with a 0 exit code from
9109 # the compiler, it worked.
9110 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9111 lt_cv_apple_cc_single_mod=yes
9112 else
9113 cat conftest.err >&5
9114 fi
9115 rm -rf libconftest.dylib*
9116 rm -f conftest.*
9117 fi
9118 fi
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9120 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9121
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9123 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9124 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 lt_cv_ld_exported_symbols_list=no
9128 save_LDFLAGS=$LDFLAGS
9129 echo "_main" > conftest.sym
9130 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133
9134 int
9135 main ()
9136 {
9137
9138 ;
9139 return 0;
9140 }
9141 _ACEOF
9142 if ac_fn_c_try_link "$LINENO"; then :
9143 lt_cv_ld_exported_symbols_list=yes
9144 else
9145 lt_cv_ld_exported_symbols_list=no
9146 fi
9147 rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LDFLAGS="$save_LDFLAGS"
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9153 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9154
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9156 $as_echo_n "checking for -force_load linker flag... " >&6; }
9157 if ${lt_cv_ld_force_load+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 lt_cv_ld_force_load=no
9161 cat > conftest.c << _LT_EOF
9162 int forced_loaded() { return 2;}
9163 _LT_EOF
9164 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9165 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9166 echo "$AR cru libconftest.a conftest.o" >&5
9167 $AR cru libconftest.a conftest.o 2>&5
9168 echo "$RANLIB libconftest.a" >&5
9169 $RANLIB libconftest.a 2>&5
9170 cat > conftest.c << _LT_EOF
9171 int main() { return 0;}
9172 _LT_EOF
9173 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9174 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9175 _lt_result=$?
9176 if test -s conftest.err && $GREP force_load conftest.err; then
9177 cat conftest.err >&5
9178 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9179 lt_cv_ld_force_load=yes
9180 else
9181 cat conftest.err >&5
9182 fi
9183 rm -f conftest.err libconftest.a conftest conftest.c
9184 rm -rf conftest.dSYM
9185
9186 fi
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9188 $as_echo "$lt_cv_ld_force_load" >&6; }
9189 case $host_os in
9190 rhapsody* | darwin1.[012])
9191 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9192 darwin1.*)
9193 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9194 darwin*) # darwin 5.x on
9195 # if running on 10.5 or later, the deployment target defaults
9196 # to the OS version, if on x86, and 10.4, the deployment
9197 # target defaults to 10.4. Don't you love it?
9198 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9199 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9200 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9201 10.[012]*)
9202 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9203 10.*)
9204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9205 esac
9206 ;;
9207 esac
9208 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9209 _lt_dar_single_mod='$single_module'
9210 fi
9211 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9212 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9213 else
9214 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9215 fi
9216 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9217 _lt_dsymutil='~$DSYMUTIL $lib || :'
9218 else
9219 _lt_dsymutil=
9220 fi
9221 ;;
9222 esac
9223
9224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9226 inttypes.h stdint.h unistd.h
9227 do :
9228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9230 "
9231 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9234 _ACEOF
9235
9236 fi
9237
9238 done
9239
9240
9241 for ac_header in dlfcn.h
9242 do :
9243 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9244 "
9245 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9246 cat >>confdefs.h <<_ACEOF
9247 #define HAVE_DLFCN_H 1
9248 _ACEOF
9249
9250 fi
9251
9252 done
9253
9254
9255
9256
9257 func_stripname_cnf ()
9258 {
9259 case ${2} in
9260 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9261 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9262 esac
9263 } # func_stripname_cnf
9264
9265
9266
9267
9268
9269 # Set options
9270 enable_win32_dll=yes
9271
9272 case $host in
9273 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9274 if test -n "$ac_tool_prefix"; then
9275 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9276 set dummy ${ac_tool_prefix}as; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if ${ac_cv_prog_AS+:} false; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test -n "$AS"; then
9283 ac_cv_prog_AS="$AS" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292 ac_cv_prog_AS="${ac_tool_prefix}as"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9295 fi
9296 done
9297 done
9298 IFS=$as_save_IFS
9299
9300 fi
9301 fi
9302 AS=$ac_cv_prog_AS
9303 if test -n "$AS"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9305 $as_echo "$AS" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310
9311
9312 fi
9313 if test -z "$ac_cv_prog_AS"; then
9314 ac_ct_AS=$AS
9315 # Extract the first word of "as", so it can be a program name with args.
9316 set dummy as; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 if test -n "$ac_ct_AS"; then
9323 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_ac_ct_AS="as"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338 IFS=$as_save_IFS
9339
9340 fi
9341 fi
9342 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9343 if test -n "$ac_ct_AS"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9345 $as_echo "$ac_ct_AS" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351 if test "x$ac_ct_AS" = x; then
9352 AS="false"
9353 else
9354 case $cross_compiling:$ac_tool_warned in
9355 yes:)
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9358 ac_tool_warned=yes ;;
9359 esac
9360 AS=$ac_ct_AS
9361 fi
9362 else
9363 AS="$ac_cv_prog_AS"
9364 fi
9365
9366 if test -n "$ac_tool_prefix"; then
9367 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9368 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9370 $as_echo_n "checking for $ac_word... " >&6; }
9371 if ${ac_cv_prog_DLLTOOL+:} false; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 if test -n "$DLLTOOL"; then
9375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9376 else
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9379 do
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9387 fi
9388 done
9389 done
9390 IFS=$as_save_IFS
9391
9392 fi
9393 fi
9394 DLLTOOL=$ac_cv_prog_DLLTOOL
9395 if test -n "$DLLTOOL"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9397 $as_echo "$DLLTOOL" >&6; }
9398 else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9401 fi
9402
9403
9404 fi
9405 if test -z "$ac_cv_prog_DLLTOOL"; then
9406 ac_ct_DLLTOOL=$DLLTOOL
9407 # Extract the first word of "dlltool", so it can be a program name with args.
9408 set dummy dlltool; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 if test -n "$ac_ct_DLLTOOL"; then
9415 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9416 else
9417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418 for as_dir in $PATH
9419 do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
9423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9424 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428 done
9429 done
9430 IFS=$as_save_IFS
9431
9432 fi
9433 fi
9434 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9435 if test -n "$ac_ct_DLLTOOL"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9437 $as_echo "$ac_ct_DLLTOOL" >&6; }
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9441 fi
9442
9443 if test "x$ac_ct_DLLTOOL" = x; then
9444 DLLTOOL="false"
9445 else
9446 case $cross_compiling:$ac_tool_warned in
9447 yes:)
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9450 ac_tool_warned=yes ;;
9451 esac
9452 DLLTOOL=$ac_ct_DLLTOOL
9453 fi
9454 else
9455 DLLTOOL="$ac_cv_prog_DLLTOOL"
9456 fi
9457
9458 if test -n "$ac_tool_prefix"; then
9459 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9460 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if ${ac_cv_prog_OBJDUMP+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 if test -n "$OBJDUMP"; then
9467 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9468 else
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9471 do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480 done
9481 done
9482 IFS=$as_save_IFS
9483
9484 fi
9485 fi
9486 OBJDUMP=$ac_cv_prog_OBJDUMP
9487 if test -n "$OBJDUMP"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9489 $as_echo "$OBJDUMP" >&6; }
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9493 fi
9494
9495
9496 fi
9497 if test -z "$ac_cv_prog_OBJDUMP"; then
9498 ac_ct_OBJDUMP=$OBJDUMP
9499 # Extract the first word of "objdump", so it can be a program name with args.
9500 set dummy objdump; ac_word=$2
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502 $as_echo_n "checking for $ac_word... " >&6; }
9503 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 if test -n "$ac_ct_OBJDUMP"; then
9507 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9508 else
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9511 do
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9516 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518 break 2
9519 fi
9520 done
9521 done
9522 IFS=$as_save_IFS
9523
9524 fi
9525 fi
9526 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9527 if test -n "$ac_ct_OBJDUMP"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9529 $as_echo "$ac_ct_OBJDUMP" >&6; }
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 fi
9534
9535 if test "x$ac_ct_OBJDUMP" = x; then
9536 OBJDUMP="false"
9537 else
9538 case $cross_compiling:$ac_tool_warned in
9539 yes:)
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9542 ac_tool_warned=yes ;;
9543 esac
9544 OBJDUMP=$ac_ct_OBJDUMP
9545 fi
9546 else
9547 OBJDUMP="$ac_cv_prog_OBJDUMP"
9548 fi
9549
9550 ;;
9551 esac
9552
9553 test -z "$AS" && AS=as
9554
9555
9556
9557
9558
9559 test -z "$DLLTOOL" && DLLTOOL=dlltool
9560
9561
9562
9563
9564
9565 test -z "$OBJDUMP" && OBJDUMP=objdump
9566
9567
9568
9569
9570
9571
9572
9573 enable_dlopen=no
9574
9575
9576
9577 # Check whether --enable-shared was given.
9578 if test "${enable_shared+set}" = set; then :
9579 enableval=$enable_shared; p=${PACKAGE-default}
9580 case $enableval in
9581 yes) enable_shared=yes ;;
9582 no) enable_shared=no ;;
9583 *)
9584 enable_shared=no
9585 # Look at the argument we got. We use all the common list separators.
9586 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9587 for pkg in $enableval; do
9588 IFS="$lt_save_ifs"
9589 if test "X$pkg" = "X$p"; then
9590 enable_shared=yes
9591 fi
9592 done
9593 IFS="$lt_save_ifs"
9594 ;;
9595 esac
9596 else
9597 enable_shared=yes
9598 fi
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 # Check whether --with-pic was given.
9611 if test "${with_pic+set}" = set; then :
9612 withval=$with_pic; lt_p=${PACKAGE-default}
9613 case $withval in
9614 yes|no) pic_mode=$withval ;;
9615 *)
9616 pic_mode=default
9617 # Look at the argument we got. We use all the common list separators.
9618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9619 for lt_pkg in $withval; do
9620 IFS="$lt_save_ifs"
9621 if test "X$lt_pkg" = "X$lt_p"; then
9622 pic_mode=yes
9623 fi
9624 done
9625 IFS="$lt_save_ifs"
9626 ;;
9627 esac
9628 else
9629 pic_mode=default
9630 fi
9631
9632
9633 test -z "$pic_mode" && pic_mode=default
9634
9635
9636
9637
9638
9639
9640
9641 # Check whether --enable-fast-install was given.
9642 if test "${enable_fast_install+set}" = set; then :
9643 enableval=$enable_fast_install; p=${PACKAGE-default}
9644 case $enableval in
9645 yes) enable_fast_install=yes ;;
9646 no) enable_fast_install=no ;;
9647 *)
9648 enable_fast_install=no
9649 # Look at the argument we got. We use all the common list separators.
9650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9651 for pkg in $enableval; do
9652 IFS="$lt_save_ifs"
9653 if test "X$pkg" = "X$p"; then
9654 enable_fast_install=yes
9655 fi
9656 done
9657 IFS="$lt_save_ifs"
9658 ;;
9659 esac
9660 else
9661 enable_fast_install=yes
9662 fi
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674 # This can be used to rebuild libtool when needed
9675 LIBTOOL_DEPS="$ltmain"
9676
9677 # Always use our own libtool.
9678 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 test -z "$LN_S" && LN_S="ln -s"
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 if test -n "${ZSH_VERSION+set}" ; then
9725 setopt NO_GLOB_SUBST
9726 fi
9727
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9729 $as_echo_n "checking for objdir... " >&6; }
9730 if ${lt_cv_objdir+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 rm -f .libs 2>/dev/null
9734 mkdir .libs 2>/dev/null
9735 if test -d .libs; then
9736 lt_cv_objdir=.libs
9737 else
9738 # MS-DOS does not allow filenames that begin with a dot.
9739 lt_cv_objdir=_libs
9740 fi
9741 rmdir .libs 2>/dev/null
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9744 $as_echo "$lt_cv_objdir" >&6; }
9745 objdir=$lt_cv_objdir
9746
9747
9748
9749
9750
9751 cat >>confdefs.h <<_ACEOF
9752 #define LT_OBJDIR "$lt_cv_objdir/"
9753 _ACEOF
9754
9755
9756
9757
9758 case $host_os in
9759 aix3*)
9760 # AIX sometimes has problems with the GCC collect2 program. For some
9761 # reason, if we set the COLLECT_NAMES environment variable, the problems
9762 # vanish in a puff of smoke.
9763 if test "X${COLLECT_NAMES+set}" != Xset; then
9764 COLLECT_NAMES=
9765 export COLLECT_NAMES
9766 fi
9767 ;;
9768 esac
9769
9770 # Global variables:
9771 ofile=libtool
9772 can_build_shared=yes
9773
9774 # All known linkers require a `.a' archive for static linking (except MSVC,
9775 # which needs '.lib').
9776 libext=a
9777
9778 with_gnu_ld="$lt_cv_prog_gnu_ld"
9779
9780 old_CC="$CC"
9781 old_CFLAGS="$CFLAGS"
9782
9783 # Set sane defaults for various variables
9784 test -z "$CC" && CC=cc
9785 test -z "$LTCC" && LTCC=$CC
9786 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9787 test -z "$LD" && LD=ld
9788 test -z "$ac_objext" && ac_objext=o
9789
9790 for cc_temp in $compiler""; do
9791 case $cc_temp in
9792 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9793 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9794 \-*) ;;
9795 *) break;;
9796 esac
9797 done
9798 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9799
9800
9801 # Only perform the check for file, if the check method requires it
9802 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9803 case $deplibs_check_method in
9804 file_magic*)
9805 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9807 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9808 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 case $MAGIC_CMD in
9812 [\\/*] | ?:[\\/]*)
9813 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9814 ;;
9815 *)
9816 lt_save_MAGIC_CMD="$MAGIC_CMD"
9817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9818 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9819 for ac_dir in $ac_dummy; do
9820 IFS="$lt_save_ifs"
9821 test -z "$ac_dir" && ac_dir=.
9822 if test -f $ac_dir/${ac_tool_prefix}file; then
9823 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9824 if test -n "$file_magic_test_file"; then
9825 case $deplibs_check_method in
9826 "file_magic "*)
9827 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9828 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9829 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9830 $EGREP "$file_magic_regex" > /dev/null; then
9831 :
9832 else
9833 cat <<_LT_EOF 1>&2
9834
9835 *** Warning: the command libtool uses to detect shared libraries,
9836 *** $file_magic_cmd, produces output that libtool cannot recognize.
9837 *** The result is that libtool may fail to recognize shared libraries
9838 *** as such. This will affect the creation of libtool libraries that
9839 *** depend on shared libraries, but programs linked with such libtool
9840 *** libraries will work regardless of this problem. Nevertheless, you
9841 *** may want to report the problem to your system manager and/or to
9842 *** [email protected]
9843
9844 _LT_EOF
9845 fi ;;
9846 esac
9847 fi
9848 break
9849 fi
9850 done
9851 IFS="$lt_save_ifs"
9852 MAGIC_CMD="$lt_save_MAGIC_CMD"
9853 ;;
9854 esac
9855 fi
9856
9857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9858 if test -n "$MAGIC_CMD"; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9860 $as_echo "$MAGIC_CMD" >&6; }
9861 else
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9863 $as_echo "no" >&6; }
9864 fi
9865
9866
9867
9868
9869
9870 if test -z "$lt_cv_path_MAGIC_CMD"; then
9871 if test -n "$ac_tool_prefix"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9873 $as_echo_n "checking for file... " >&6; }
9874 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 case $MAGIC_CMD in
9878 [\\/*] | ?:[\\/]*)
9879 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9880 ;;
9881 *)
9882 lt_save_MAGIC_CMD="$MAGIC_CMD"
9883 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9884 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9885 for ac_dir in $ac_dummy; do
9886 IFS="$lt_save_ifs"
9887 test -z "$ac_dir" && ac_dir=.
9888 if test -f $ac_dir/file; then
9889 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9890 if test -n "$file_magic_test_file"; then
9891 case $deplibs_check_method in
9892 "file_magic "*)
9893 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9896 $EGREP "$file_magic_regex" > /dev/null; then
9897 :
9898 else
9899 cat <<_LT_EOF 1>&2
9900
9901 *** Warning: the command libtool uses to detect shared libraries,
9902 *** $file_magic_cmd, produces output that libtool cannot recognize.
9903 *** The result is that libtool may fail to recognize shared libraries
9904 *** as such. This will affect the creation of libtool libraries that
9905 *** depend on shared libraries, but programs linked with such libtool
9906 *** libraries will work regardless of this problem. Nevertheless, you
9907 *** may want to report the problem to your system manager and/or to
9908 *** [email protected]
9909
9910 _LT_EOF
9911 fi ;;
9912 esac
9913 fi
9914 break
9915 fi
9916 done
9917 IFS="$lt_save_ifs"
9918 MAGIC_CMD="$lt_save_MAGIC_CMD"
9919 ;;
9920 esac
9921 fi
9922
9923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9924 if test -n "$MAGIC_CMD"; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9926 $as_echo "$MAGIC_CMD" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9930 fi
9931
9932
9933 else
9934 MAGIC_CMD=:
9935 fi
9936 fi
9937
9938 fi
9939 ;;
9940 esac
9941
9942 # Use C for the default configuration in the libtool script
9943
9944 lt_save_CC="$CC"
9945 ac_ext=c
9946 ac_cpp='$CPP $CPPFLAGS'
9947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9950
9951
9952 # Source file extension for C test sources.
9953 ac_ext=c
9954
9955 # Object file extension for compiled C test sources.
9956 objext=o
9957 objext=$objext
9958
9959 # Code to be used in simple compile tests
9960 lt_simple_compile_test_code="int some_variable = 0;"
9961
9962 # Code to be used in simple link tests
9963 lt_simple_link_test_code='int main(){return(0);}'
9964
9965
9966
9967
9968
9969
9970
9971 # If no C compiler was specified, use CC.
9972 LTCC=${LTCC-"$CC"}
9973
9974 # If no C compiler flags were specified, use CFLAGS.
9975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9976
9977 # Allow CC to be a program name with arguments.
9978 compiler=$CC
9979
9980 # Save the default compiler, since it gets overwritten when the other
9981 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9982 compiler_DEFAULT=$CC
9983
9984 # save warnings/boilerplate of simple test code
9985 ac_outfile=conftest.$ac_objext
9986 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9987 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9988 _lt_compiler_boilerplate=`cat conftest.err`
9989 $RM conftest*
9990
9991 ac_outfile=conftest.$ac_objext
9992 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9993 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9994 _lt_linker_boilerplate=`cat conftest.err`
9995 $RM -r conftest*
9996
9997
9998 if test -n "$compiler"; then
9999
10000 lt_prog_compiler_no_builtin_flag=
10001
10002 if test "$GCC" = yes; then
10003 case $cc_basename in
10004 nvcc*)
10005 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10006 *)
10007 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10008 esac
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10011 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10012 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 lt_cv_prog_compiler_rtti_exceptions=no
10016 ac_outfile=conftest.$ac_objext
10017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10018 lt_compiler_flag="-fno-rtti -fno-exceptions"
10019 # Insert the option either (1) after the last *FLAGS variable, or
10020 # (2) before a word containing "conftest.", or (3) at the end.
10021 # Note that $ac_compile itself does not contain backslashes and begins
10022 # with a dollar sign (not a hyphen), so the echo should work correctly.
10023 # The option is referenced via a variable to avoid confusing sed.
10024 lt_compile=`echo "$ac_compile" | $SED \
10025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10027 -e 's:$: $lt_compiler_flag:'`
10028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10029 (eval "$lt_compile" 2>conftest.err)
10030 ac_status=$?
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 if (exit $ac_status) && test -s "$ac_outfile"; then
10034 # The compiler can only warn and ignore the option if not recognized
10035 # So say no if there are warnings other than the usual output.
10036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10039 lt_cv_prog_compiler_rtti_exceptions=yes
10040 fi
10041 fi
10042 $RM conftest*
10043
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10046 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10047
10048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10049 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10050 else
10051 :
10052 fi
10053
10054 fi
10055
10056
10057
10058
10059
10060
10061 lt_prog_compiler_wl=
10062 lt_prog_compiler_pic=
10063 lt_prog_compiler_static=
10064
10065
10066 if test "$GCC" = yes; then
10067 lt_prog_compiler_wl='-Wl,'
10068 lt_prog_compiler_static='-static'
10069
10070 case $host_os in
10071 aix*)
10072 # All AIX code is PIC.
10073 if test "$host_cpu" = ia64; then
10074 # AIX 5 now supports IA64 processor
10075 lt_prog_compiler_static='-Bstatic'
10076 fi
10077 ;;
10078
10079 amigaos*)
10080 case $host_cpu in
10081 powerpc)
10082 # see comment about AmigaOS4 .so support
10083 lt_prog_compiler_pic='-fPIC'
10084 ;;
10085 m68k)
10086 # FIXME: we need at least 68020 code to build shared libraries, but
10087 # adding the `-m68020' flag to GCC prevents building anything better,
10088 # like `-m68040'.
10089 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10090 ;;
10091 esac
10092 ;;
10093
10094 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10095 # PIC is the default for these OSes.
10096 ;;
10097
10098 mingw* | cygwin* | pw32* | os2* | cegcc*)
10099 # This hack is so that the source file can tell whether it is being
10100 # built for inclusion in a dll (and should export symbols for example).
10101 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10102 # (--disable-auto-import) libraries
10103 lt_prog_compiler_pic='-DDLL_EXPORT'
10104 ;;
10105
10106 darwin* | rhapsody*)
10107 # PIC is the default on this platform
10108 # Common symbols not allowed in MH_DYLIB files
10109 lt_prog_compiler_pic='-fno-common'
10110 ;;
10111
10112 haiku*)
10113 # PIC is the default for Haiku.
10114 # The "-static" flag exists, but is broken.
10115 lt_prog_compiler_static=
10116 ;;
10117
10118 hpux*)
10119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10121 # sets the default TLS model and affects inlining.
10122 case $host_cpu in
10123 hppa*64*)
10124 # +Z the default
10125 ;;
10126 *)
10127 lt_prog_compiler_pic='-fPIC'
10128 ;;
10129 esac
10130 ;;
10131
10132 interix[3-9]*)
10133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10134 # Instead, we relocate shared libraries at runtime.
10135 ;;
10136
10137 msdosdjgpp*)
10138 # Just because we use GCC doesn't mean we suddenly get shared libraries
10139 # on systems that don't support them.
10140 lt_prog_compiler_can_build_shared=no
10141 enable_shared=no
10142 ;;
10143
10144 *nto* | *qnx*)
10145 # QNX uses GNU C++, but need to define -shared option too, otherwise
10146 # it will coredump.
10147 lt_prog_compiler_pic='-fPIC -shared'
10148 ;;
10149
10150 sysv4*MP*)
10151 if test -d /usr/nec; then
10152 lt_prog_compiler_pic=-Kconform_pic
10153 fi
10154 ;;
10155
10156 *)
10157 lt_prog_compiler_pic='-fPIC'
10158 ;;
10159 esac
10160
10161 case $cc_basename in
10162 nvcc*) # Cuda Compiler Driver 2.2
10163 lt_prog_compiler_wl='-Xlinker '
10164 if test -n "$lt_prog_compiler_pic"; then
10165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10166 fi
10167 ;;
10168 esac
10169 else
10170 # PORTME Check for flag to pass linker flags through the system compiler.
10171 case $host_os in
10172 aix*)
10173 lt_prog_compiler_wl='-Wl,'
10174 if test "$host_cpu" = ia64; then
10175 # AIX 5 now supports IA64 processor
10176 lt_prog_compiler_static='-Bstatic'
10177 else
10178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10179 fi
10180 ;;
10181
10182 mingw* | cygwin* | pw32* | os2* | cegcc*)
10183 # This hack is so that the source file can tell whether it is being
10184 # built for inclusion in a dll (and should export symbols for example).
10185 lt_prog_compiler_pic='-DDLL_EXPORT'
10186 ;;
10187
10188 hpux9* | hpux10* | hpux11*)
10189 lt_prog_compiler_wl='-Wl,'
10190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10191 # not for PA HP-UX.
10192 case $host_cpu in
10193 hppa*64*|ia64*)
10194 # +Z the default
10195 ;;
10196 *)
10197 lt_prog_compiler_pic='+Z'
10198 ;;
10199 esac
10200 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10201 lt_prog_compiler_static='${wl}-a ${wl}archive'
10202 ;;
10203
10204 irix5* | irix6* | nonstopux*)
10205 lt_prog_compiler_wl='-Wl,'
10206 # PIC (with -KPIC) is the default.
10207 lt_prog_compiler_static='-non_shared'
10208 ;;
10209
10210 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10211 case $cc_basename in
10212 # old Intel for x86_64 which still supported -KPIC.
10213 ecc*)
10214 lt_prog_compiler_wl='-Wl,'
10215 lt_prog_compiler_pic='-KPIC'
10216 lt_prog_compiler_static='-static'
10217 ;;
10218 # icc used to be incompatible with GCC.
10219 # ICC 10 doesn't accept -KPIC any more.
10220 icc* | ifort*)
10221 lt_prog_compiler_wl='-Wl,'
10222 lt_prog_compiler_pic='-fPIC'
10223 lt_prog_compiler_static='-static'
10224 ;;
10225 # Lahey Fortran 8.1.
10226 lf95*)
10227 lt_prog_compiler_wl='-Wl,'
10228 lt_prog_compiler_pic='--shared'
10229 lt_prog_compiler_static='--static'
10230 ;;
10231 nagfor*)
10232 # NAG Fortran compiler
10233 lt_prog_compiler_wl='-Wl,-Wl,,'
10234 lt_prog_compiler_pic='-PIC'
10235 lt_prog_compiler_static='-Bstatic'
10236 ;;
10237 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10238 # Portland Group compilers (*not* the Pentium gcc compiler,
10239 # which looks to be a dead project)
10240 lt_prog_compiler_wl='-Wl,'
10241 lt_prog_compiler_pic='-fpic'
10242 lt_prog_compiler_static='-Bstatic'
10243 ;;
10244 ccc*)
10245 lt_prog_compiler_wl='-Wl,'
10246 # All Alpha code is PIC.
10247 lt_prog_compiler_static='-non_shared'
10248 ;;
10249 xl* | bgxl* | bgf* | mpixl*)
10250 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10251 lt_prog_compiler_wl='-Wl,'
10252 lt_prog_compiler_pic='-qpic'
10253 lt_prog_compiler_static='-qstaticlink'
10254 ;;
10255 *)
10256 case `$CC -V 2>&1 | sed 5q` in
10257 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10258 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10259 lt_prog_compiler_pic='-KPIC'
10260 lt_prog_compiler_static='-Bstatic'
10261 lt_prog_compiler_wl=''
10262 ;;
10263 *Sun\ F* | *Sun*Fortran*)
10264 lt_prog_compiler_pic='-KPIC'
10265 lt_prog_compiler_static='-Bstatic'
10266 lt_prog_compiler_wl='-Qoption ld '
10267 ;;
10268 *Sun\ C*)
10269 # Sun C 5.9
10270 lt_prog_compiler_pic='-KPIC'
10271 lt_prog_compiler_static='-Bstatic'
10272 lt_prog_compiler_wl='-Wl,'
10273 ;;
10274 *Intel*\ [CF]*Compiler*)
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-fPIC'
10277 lt_prog_compiler_static='-static'
10278 ;;
10279 *Portland\ Group*)
10280 lt_prog_compiler_wl='-Wl,'
10281 lt_prog_compiler_pic='-fpic'
10282 lt_prog_compiler_static='-Bstatic'
10283 ;;
10284 esac
10285 ;;
10286 esac
10287 ;;
10288
10289 newsos6)
10290 lt_prog_compiler_pic='-KPIC'
10291 lt_prog_compiler_static='-Bstatic'
10292 ;;
10293
10294 *nto* | *qnx*)
10295 # QNX uses GNU C++, but need to define -shared option too, otherwise
10296 # it will coredump.
10297 lt_prog_compiler_pic='-fPIC -shared'
10298 ;;
10299
10300 osf3* | osf4* | osf5*)
10301 lt_prog_compiler_wl='-Wl,'
10302 # All OSF/1 code is PIC.
10303 lt_prog_compiler_static='-non_shared'
10304 ;;
10305
10306 rdos*)
10307 lt_prog_compiler_static='-non_shared'
10308 ;;
10309
10310 solaris*)
10311 lt_prog_compiler_pic='-KPIC'
10312 lt_prog_compiler_static='-Bstatic'
10313 case $cc_basename in
10314 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10315 lt_prog_compiler_wl='-Qoption ld ';;
10316 *)
10317 lt_prog_compiler_wl='-Wl,';;
10318 esac
10319 ;;
10320
10321 sunos4*)
10322 lt_prog_compiler_wl='-Qoption ld '
10323 lt_prog_compiler_pic='-PIC'
10324 lt_prog_compiler_static='-Bstatic'
10325 ;;
10326
10327 sysv4 | sysv4.2uw2* | sysv4.3*)
10328 lt_prog_compiler_wl='-Wl,'
10329 lt_prog_compiler_pic='-KPIC'
10330 lt_prog_compiler_static='-Bstatic'
10331 ;;
10332
10333 sysv4*MP*)
10334 if test -d /usr/nec ;then
10335 lt_prog_compiler_pic='-Kconform_pic'
10336 lt_prog_compiler_static='-Bstatic'
10337 fi
10338 ;;
10339
10340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10341 lt_prog_compiler_wl='-Wl,'
10342 lt_prog_compiler_pic='-KPIC'
10343 lt_prog_compiler_static='-Bstatic'
10344 ;;
10345
10346 unicos*)
10347 lt_prog_compiler_wl='-Wl,'
10348 lt_prog_compiler_can_build_shared=no
10349 ;;
10350
10351 uts4*)
10352 lt_prog_compiler_pic='-pic'
10353 lt_prog_compiler_static='-Bstatic'
10354 ;;
10355
10356 *)
10357 lt_prog_compiler_can_build_shared=no
10358 ;;
10359 esac
10360 fi
10361
10362 case $host_os in
10363 # For platforms which do not support PIC, -DPIC is meaningless:
10364 *djgpp*)
10365 lt_prog_compiler_pic=
10366 ;;
10367 *)
10368 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10369 ;;
10370 esac
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10373 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10374 if ${lt_cv_prog_compiler_pic+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10380 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10381 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10382
10383 #
10384 # Check to make sure the PIC flag actually works.
10385 #
10386 if test -n "$lt_prog_compiler_pic"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10389 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391 else
10392 lt_cv_prog_compiler_pic_works=no
10393 ac_outfile=conftest.$ac_objext
10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10395 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10396 # Insert the option either (1) after the last *FLAGS variable, or
10397 # (2) before a word containing "conftest.", or (3) at the end.
10398 # Note that $ac_compile itself does not contain backslashes and begins
10399 # with a dollar sign (not a hyphen), so the echo should work correctly.
10400 # The option is referenced via a variable to avoid confusing sed.
10401 lt_compile=`echo "$ac_compile" | $SED \
10402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10404 -e 's:$: $lt_compiler_flag:'`
10405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10406 (eval "$lt_compile" 2>conftest.err)
10407 ac_status=$?
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 if (exit $ac_status) && test -s "$ac_outfile"; then
10411 # The compiler can only warn and ignore the option if not recognized
10412 # So say no if there are warnings other than the usual output.
10413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10416 lt_cv_prog_compiler_pic_works=yes
10417 fi
10418 fi
10419 $RM conftest*
10420
10421 fi
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10423 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10424
10425 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10426 case $lt_prog_compiler_pic in
10427 "" | " "*) ;;
10428 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10429 esac
10430 else
10431 lt_prog_compiler_pic=
10432 lt_prog_compiler_can_build_shared=no
10433 fi
10434
10435 fi
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 #
10448 # Check to make sure the static flag actually works.
10449 #
10450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10452 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10453 if ${lt_cv_prog_compiler_static_works+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 lt_cv_prog_compiler_static_works=no
10457 save_LDFLAGS="$LDFLAGS"
10458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10461 # The linker can only warn and ignore the option if not recognized
10462 # So say no if there are warnings
10463 if test -s conftest.err; then
10464 # Append any errors to the config.log.
10465 cat conftest.err 1>&5
10466 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10468 if diff conftest.exp conftest.er2 >/dev/null; then
10469 lt_cv_prog_compiler_static_works=yes
10470 fi
10471 else
10472 lt_cv_prog_compiler_static_works=yes
10473 fi
10474 fi
10475 $RM -r conftest*
10476 LDFLAGS="$save_LDFLAGS"
10477
10478 fi
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10480 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10481
10482 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10483 :
10484 else
10485 lt_prog_compiler_static=
10486 fi
10487
10488
10489
10490
10491
10492
10493
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10496 if ${lt_cv_prog_compiler_c_o+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 lt_cv_prog_compiler_c_o=no
10500 $RM -r conftest 2>/dev/null
10501 mkdir conftest
10502 cd conftest
10503 mkdir out
10504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10505
10506 lt_compiler_flag="-o out/conftest2.$ac_objext"
10507 # Insert the option either (1) after the last *FLAGS variable, or
10508 # (2) before a word containing "conftest.", or (3) at the end.
10509 # Note that $ac_compile itself does not contain backslashes and begins
10510 # with a dollar sign (not a hyphen), so the echo should work correctly.
10511 lt_compile=`echo "$ac_compile" | $SED \
10512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10514 -e 's:$: $lt_compiler_flag:'`
10515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10516 (eval "$lt_compile" 2>out/conftest.err)
10517 ac_status=$?
10518 cat out/conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10521 then
10522 # The compiler can only warn and ignore the option if not recognized
10523 # So say no if there are warnings
10524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10527 lt_cv_prog_compiler_c_o=yes
10528 fi
10529 fi
10530 chmod u+w . 2>&5
10531 $RM conftest*
10532 # SGI C++ compiler will create directory out/ii_files/ for
10533 # template instantiation
10534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10535 $RM out/* && rmdir out
10536 cd ..
10537 $RM -r conftest
10538 $RM conftest*
10539
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10542 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10543
10544
10545
10546
10547
10548
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10551 if ${lt_cv_prog_compiler_c_o+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 lt_cv_prog_compiler_c_o=no
10555 $RM -r conftest 2>/dev/null
10556 mkdir conftest
10557 cd conftest
10558 mkdir out
10559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10560
10561 lt_compiler_flag="-o out/conftest2.$ac_objext"
10562 # Insert the option either (1) after the last *FLAGS variable, or
10563 # (2) before a word containing "conftest.", or (3) at the end.
10564 # Note that $ac_compile itself does not contain backslashes and begins
10565 # with a dollar sign (not a hyphen), so the echo should work correctly.
10566 lt_compile=`echo "$ac_compile" | $SED \
10567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10569 -e 's:$: $lt_compiler_flag:'`
10570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10571 (eval "$lt_compile" 2>out/conftest.err)
10572 ac_status=$?
10573 cat out/conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10576 then
10577 # The compiler can only warn and ignore the option if not recognized
10578 # So say no if there are warnings
10579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10582 lt_cv_prog_compiler_c_o=yes
10583 fi
10584 fi
10585 chmod u+w . 2>&5
10586 $RM conftest*
10587 # SGI C++ compiler will create directory out/ii_files/ for
10588 # template instantiation
10589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10590 $RM out/* && rmdir out
10591 cd ..
10592 $RM -r conftest
10593 $RM conftest*
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10598
10599
10600
10601
10602 hard_links="nottested"
10603 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10604 # do not overwrite the value of need_locks provided by the user
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10606 $as_echo_n "checking if we can lock with hard links... " >&6; }
10607 hard_links=yes
10608 $RM conftest*
10609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10610 touch conftest.a
10611 ln conftest.a conftest.b 2>&5 || hard_links=no
10612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10614 $as_echo "$hard_links" >&6; }
10615 if test "$hard_links" = no; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10617 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10618 need_locks=warn
10619 fi
10620 else
10621 need_locks=no
10622 fi
10623
10624
10625
10626
10627
10628
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10631
10632 runpath_var=
10633 allow_undefined_flag=
10634 always_export_symbols=no
10635 archive_cmds=
10636 archive_expsym_cmds=
10637 compiler_needs_object=no
10638 enable_shared_with_static_runtimes=no
10639 export_dynamic_flag_spec=
10640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10641 hardcode_automatic=no
10642 hardcode_direct=no
10643 hardcode_direct_absolute=no
10644 hardcode_libdir_flag_spec=
10645 hardcode_libdir_separator=
10646 hardcode_minus_L=no
10647 hardcode_shlibpath_var=unsupported
10648 inherit_rpath=no
10649 link_all_deplibs=unknown
10650 module_cmds=
10651 module_expsym_cmds=
10652 old_archive_from_new_cmds=
10653 old_archive_from_expsyms_cmds=
10654 thread_safe_flag_spec=
10655 whole_archive_flag_spec=
10656 # include_expsyms should be a list of space-separated symbols to be *always*
10657 # included in the symbol list
10658 include_expsyms=
10659 # exclude_expsyms can be an extended regexp of symbols to exclude
10660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10662 # as well as any symbol that contains `d'.
10663 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10665 # platforms (ab)use it in PIC code, but their linkers get confused if
10666 # the symbol is explicitly referenced. Since portable code cannot
10667 # rely on this symbol name, it's probably fine to never include it in
10668 # preloaded symbol tables.
10669 # Exclude shared library initialization/finalization symbols.
10670 extract_expsyms_cmds=
10671
10672 case $host_os in
10673 cygwin* | mingw* | pw32* | cegcc*)
10674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10675 # When not using gcc, we currently assume that we are using
10676 # Microsoft Visual C++.
10677 if test "$GCC" != yes; then
10678 with_gnu_ld=no
10679 fi
10680 ;;
10681 interix*)
10682 # we just hope/assume this is gcc and not c89 (= MSVC++)
10683 with_gnu_ld=yes
10684 ;;
10685 openbsd*)
10686 with_gnu_ld=no
10687 ;;
10688 linux* | k*bsd*-gnu | gnu*)
10689 link_all_deplibs=no
10690 ;;
10691 esac
10692
10693 ld_shlibs=yes
10694
10695 # On some targets, GNU ld is compatible enough with the native linker
10696 # that we're better off using the native interface for both.
10697 lt_use_gnu_ld_interface=no
10698 if test "$with_gnu_ld" = yes; then
10699 case $host_os in
10700 aix*)
10701 # The AIX port of GNU ld has always aspired to compatibility
10702 # with the native linker. However, as the warning in the GNU ld
10703 # block says, versions before 2.19.5* couldn't really create working
10704 # shared libraries, regardless of the interface used.
10705 case `$LD -v 2>&1` in
10706 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10707 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10708 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10709 *)
10710 lt_use_gnu_ld_interface=yes
10711 ;;
10712 esac
10713 ;;
10714 *)
10715 lt_use_gnu_ld_interface=yes
10716 ;;
10717 esac
10718 fi
10719
10720 if test "$lt_use_gnu_ld_interface" = yes; then
10721 # If archive_cmds runs LD, not CC, wlarc should be empty
10722 wlarc='${wl}'
10723
10724 # Set some defaults for GNU ld with shared library support. These
10725 # are reset later if shared libraries are not supported. Putting them
10726 # here allows them to be overridden if necessary.
10727 runpath_var=LD_RUN_PATH
10728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10729 export_dynamic_flag_spec='${wl}--export-dynamic'
10730 # ancient GNU ld didn't support --whole-archive et. al.
10731 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10732 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10733 else
10734 whole_archive_flag_spec=
10735 fi
10736 supports_anon_versioning=no
10737 case `$LD -v 2>&1` in
10738 *GNU\ gold*) supports_anon_versioning=yes ;;
10739 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10740 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10741 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10742 *\ 2.11.*) ;; # other 2.11 versions
10743 *) supports_anon_versioning=yes ;;
10744 esac
10745
10746 # See if GNU ld supports shared libraries.
10747 case $host_os in
10748 aix[3-9]*)
10749 # On AIX/PPC, the GNU linker is very broken
10750 if test "$host_cpu" != ia64; then
10751 ld_shlibs=no
10752 cat <<_LT_EOF 1>&2
10753
10754 *** Warning: the GNU linker, at least up to release 2.19, is reported
10755 *** to be unable to reliably create shared libraries on AIX.
10756 *** Therefore, libtool is disabling shared libraries support. If you
10757 *** really care for shared libraries, you may want to install binutils
10758 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10759 *** You will then need to restart the configuration process.
10760
10761 _LT_EOF
10762 fi
10763 ;;
10764
10765 amigaos*)
10766 case $host_cpu in
10767 powerpc)
10768 # see comment about AmigaOS4 .so support
10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10770 archive_expsym_cmds=''
10771 ;;
10772 m68k)
10773 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)'
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_minus_L=yes
10776 ;;
10777 esac
10778 ;;
10779
10780 beos*)
10781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10782 allow_undefined_flag=unsupported
10783 # Joseph Beckenbach <[email protected]> says some releases of gcc
10784 # support --undefined. This deserves some investigation. FIXME
10785 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786 else
10787 ld_shlibs=no
10788 fi
10789 ;;
10790
10791 cygwin* | mingw* | pw32* | cegcc*)
10792 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10793 # as there is no search path for DLLs.
10794 hardcode_libdir_flag_spec='-L$libdir'
10795 export_dynamic_flag_spec='${wl}--export-all-symbols'
10796 allow_undefined_flag=unsupported
10797 always_export_symbols=no
10798 enable_shared_with_static_runtimes=yes
10799 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'
10800 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10801
10802 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10804 # If the export-symbols file already is a .def file (1st line
10805 # is EXPORTS), use it as is; otherwise, prepend...
10806 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10807 cp $export_symbols $output_objdir/$soname.def;
10808 else
10809 echo EXPORTS > $output_objdir/$soname.def;
10810 cat $export_symbols >> $output_objdir/$soname.def;
10811 fi~
10812 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10813 else
10814 ld_shlibs=no
10815 fi
10816 ;;
10817
10818 haiku*)
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10820 link_all_deplibs=yes
10821 ;;
10822
10823 interix[3-9]*)
10824 hardcode_direct=no
10825 hardcode_shlibpath_var=no
10826 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10827 export_dynamic_flag_spec='${wl}-E'
10828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10829 # Instead, shared libraries are loaded at an image base (0x10000000 by
10830 # default) and relocated if they conflict, which is a slow very memory
10831 # consuming and fragmenting process. To avoid this, we pick a random,
10832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10835 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'
10836 ;;
10837
10838 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10839 tmp_diet=no
10840 if test "$host_os" = linux-dietlibc; then
10841 case $cc_basename in
10842 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10843 esac
10844 fi
10845 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10846 && test "$tmp_diet" = no
10847 then
10848 tmp_addflag=' $pic_flag'
10849 tmp_sharedflag='-shared'
10850 case $cc_basename,$host_cpu in
10851 pgcc*) # Portland Group C compiler
10852 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'
10853 tmp_addflag=' $pic_flag'
10854 ;;
10855 pgf77* | pgf90* | pgf95* | pgfortran*)
10856 # Portland Group f77 and f90 compilers
10857 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'
10858 tmp_addflag=' $pic_flag -Mnomain' ;;
10859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10860 tmp_addflag=' -i_dynamic' ;;
10861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10862 tmp_addflag=' -i_dynamic -nofor_main' ;;
10863 ifc* | ifort*) # Intel Fortran compiler
10864 tmp_addflag=' -nofor_main' ;;
10865 lf95*) # Lahey Fortran 8.1
10866 whole_archive_flag_spec=
10867 tmp_sharedflag='--shared' ;;
10868 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10869 tmp_sharedflag='-qmkshrobj'
10870 tmp_addflag= ;;
10871 nvcc*) # Cuda Compiler Driver 2.2
10872 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'
10873 compiler_needs_object=yes
10874 ;;
10875 esac
10876 case `$CC -V 2>&1 | sed 5q` in
10877 *Sun\ C*) # Sun C 5.9
10878 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'
10879 compiler_needs_object=yes
10880 tmp_sharedflag='-G' ;;
10881 *Sun\ F*) # Sun Fortran 8.3
10882 tmp_sharedflag='-G' ;;
10883 esac
10884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885
10886 if test "x$supports_anon_versioning" = xyes; then
10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889 echo "local: *; };" >> $output_objdir/$libname.ver~
10890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10891 fi
10892
10893 case $cc_basename in
10894 xlf* | bgf* | bgxlf* | mpixlf*)
10895 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10896 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10899 if test "x$supports_anon_versioning" = xyes; then
10900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10902 echo "local: *; };" >> $output_objdir/$libname.ver~
10903 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10904 fi
10905 ;;
10906 esac
10907 else
10908 ld_shlibs=no
10909 fi
10910 ;;
10911
10912 netbsd* | netbsdelf*-gnu)
10913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10914 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10915 wlarc=
10916 else
10917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10918 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10919 fi
10920 ;;
10921
10922 solaris*)
10923 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10924 ld_shlibs=no
10925 cat <<_LT_EOF 1>&2
10926
10927 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10928 *** create shared libraries on Solaris systems. Therefore, libtool
10929 *** is disabling shared libraries support. We urge you to upgrade GNU
10930 *** binutils to release 2.9.1 or newer. Another option is to modify
10931 *** your PATH or compiler configuration so that the native linker is
10932 *** used, and then restart.
10933
10934 _LT_EOF
10935 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10938 else
10939 ld_shlibs=no
10940 fi
10941 ;;
10942
10943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10944 case `$LD -v 2>&1` in
10945 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10946 ld_shlibs=no
10947 cat <<_LT_EOF 1>&2
10948
10949 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10950 *** reliably create shared libraries on SCO systems. Therefore, libtool
10951 *** is disabling shared libraries support. We urge you to upgrade GNU
10952 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10953 *** your PATH or compiler configuration so that the native linker is
10954 *** used, and then restart.
10955
10956 _LT_EOF
10957 ;;
10958 *)
10959 # For security reasons, it is highly recommended that you always
10960 # use absolute paths for naming shared libraries, and exclude the
10961 # DT_RUNPATH tag from executables and libraries. But doing so
10962 # requires that you compile everything twice, which is a pain.
10963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10967 else
10968 ld_shlibs=no
10969 fi
10970 ;;
10971 esac
10972 ;;
10973
10974 sunos4*)
10975 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10976 wlarc=
10977 hardcode_direct=yes
10978 hardcode_shlibpath_var=no
10979 ;;
10980
10981 *)
10982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10983 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10985 else
10986 ld_shlibs=no
10987 fi
10988 ;;
10989 esac
10990
10991 if test "$ld_shlibs" = no; then
10992 runpath_var=
10993 hardcode_libdir_flag_spec=
10994 export_dynamic_flag_spec=
10995 whole_archive_flag_spec=
10996 fi
10997 else
10998 # PORTME fill in a description of your system's linker (not GNU ld)
10999 case $host_os in
11000 aix3*)
11001 allow_undefined_flag=unsupported
11002 always_export_symbols=yes
11003 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'
11004 # Note: this linker hardcodes the directories in LIBPATH if there
11005 # are no directories specified by -L.
11006 hardcode_minus_L=yes
11007 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11008 # Neither direct hardcoding nor static linking is supported with a
11009 # broken collect2.
11010 hardcode_direct=unsupported
11011 fi
11012 ;;
11013
11014 aix[4-9]*)
11015 if test "$host_cpu" = ia64; then
11016 # On IA64, the linker does run time linking by default, so we don't
11017 # have to do anything special.
11018 aix_use_runtimelinking=no
11019 exp_sym_flag='-Bexport'
11020 no_entry_flag=""
11021 else
11022 # If we're using GNU nm, then we don't want the "-C" option.
11023 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11024 # Also, AIX nm treats weak defined symbols like other global
11025 # defined symbols, whereas GNU nm marks them as "W".
11026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11027 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11028 else
11029 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11030 fi
11031 aix_use_runtimelinking=no
11032
11033 # Test if we are trying to use run time linking or normal
11034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11035 # need to do runtime linking.
11036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11037 for ld_flag in $LDFLAGS; do
11038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11039 aix_use_runtimelinking=yes
11040 break
11041 fi
11042 done
11043 ;;
11044 esac
11045
11046 exp_sym_flag='-bexport'
11047 no_entry_flag='-bnoentry'
11048 fi
11049
11050 # When large executables or shared objects are built, AIX ld can
11051 # have problems creating the table of contents. If linking a library
11052 # or program results in "error TOC overflow" add -mminimal-toc to
11053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11055
11056 archive_cmds=''
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 hardcode_libdir_separator=':'
11060 link_all_deplibs=yes
11061 file_list_spec='${wl}-f,'
11062
11063 if test "$GCC" = yes; then
11064 case $host_os in aix4.[012]|aix4.[012].*)
11065 # We only want to do this on AIX 4.2 and lower, the check
11066 # below for broken collect2 doesn't work under 4.3+
11067 collect2name=`${CC} -print-prog-name=collect2`
11068 if test -f "$collect2name" &&
11069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11070 then
11071 # We have reworked collect2
11072 :
11073 else
11074 # We have old collect2
11075 hardcode_direct=unsupported
11076 # It fails to find uninstalled libraries when the uninstalled
11077 # path is not listed in the libpath. Setting hardcode_minus_L
11078 # to unsupported forces relinking
11079 hardcode_minus_L=yes
11080 hardcode_libdir_flag_spec='-L$libdir'
11081 hardcode_libdir_separator=
11082 fi
11083 ;;
11084 esac
11085 shared_flag='-shared'
11086 if test "$aix_use_runtimelinking" = yes; then
11087 shared_flag="$shared_flag "'${wl}-G'
11088 fi
11089 link_all_deplibs=no
11090 else
11091 # not using gcc
11092 if test "$host_cpu" = ia64; then
11093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11094 # chokes on -Wl,-G. The following line is correct:
11095 shared_flag='-G'
11096 else
11097 if test "$aix_use_runtimelinking" = yes; then
11098 shared_flag='${wl}-G'
11099 else
11100 shared_flag='${wl}-bM:SRE'
11101 fi
11102 fi
11103 fi
11104
11105 export_dynamic_flag_spec='${wl}-bexpall'
11106 # It seems that -bexpall does not export symbols beginning with
11107 # underscore (_), so it is better to generate a list of symbols to export.
11108 always_export_symbols=yes
11109 if test "$aix_use_runtimelinking" = yes; then
11110 # Warning - without using the other runtime loading flags (-brtl),
11111 # -berok will link without error, but may produce a broken library.
11112 allow_undefined_flag='-berok'
11113 # Determine the default libpath from the value encoded in an
11114 # empty executable.
11115 if test "${lt_cv_aix_libpath+set}" = set; then
11116 aix_libpath=$lt_cv_aix_libpath
11117 else
11118 if ${lt_cv_aix_libpath_+:} false; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11123
11124 int
11125 main ()
11126 {
11127
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 if ac_fn_c_try_link "$LINENO"; then :
11133
11134 lt_aix_libpath_sed='
11135 /Import File Strings/,/^$/ {
11136 /^0/ {
11137 s/^0 *\([^ ]*\) *$/\1/
11138 p
11139 }
11140 }'
11141 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11142 # Check for a 64-bit object if we didn't find anything.
11143 if test -z "$lt_cv_aix_libpath_"; then
11144 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11145 fi
11146 fi
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 if test -z "$lt_cv_aix_libpath_"; then
11150 lt_cv_aix_libpath_="/usr/lib:/lib"
11151 fi
11152
11153 fi
11154
11155 aix_libpath=$lt_cv_aix_libpath_
11156 fi
11157
11158 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11159 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11160 else
11161 if test "$host_cpu" = ia64; then
11162 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11163 allow_undefined_flag="-z nodefs"
11164 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"
11165 else
11166 # Determine the default libpath from the value encoded in an
11167 # empty executable.
11168 if test "${lt_cv_aix_libpath+set}" = set; then
11169 aix_libpath=$lt_cv_aix_libpath
11170 else
11171 if ${lt_cv_aix_libpath_+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176
11177 int
11178 main ()
11179 {
11180
11181 ;
11182 return 0;
11183 }
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"; then :
11186
11187 lt_aix_libpath_sed='
11188 /Import File Strings/,/^$/ {
11189 /^0/ {
11190 s/^0 *\([^ ]*\) *$/\1/
11191 p
11192 }
11193 }'
11194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11195 # Check for a 64-bit object if we didn't find anything.
11196 if test -z "$lt_cv_aix_libpath_"; then
11197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11198 fi
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11202 if test -z "$lt_cv_aix_libpath_"; then
11203 lt_cv_aix_libpath_="/usr/lib:/lib"
11204 fi
11205
11206 fi
11207
11208 aix_libpath=$lt_cv_aix_libpath_
11209 fi
11210
11211 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11212 # Warning - without using the other run time loading flags,
11213 # -berok will link without error, but may produce a broken library.
11214 no_undefined_flag=' ${wl}-bernotok'
11215 allow_undefined_flag=' ${wl}-berok'
11216 if test "$with_gnu_ld" = yes; then
11217 # We only use this code for GNU lds that support --whole-archive.
11218 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11219 else
11220 # Exported symbols can be pulled into shared objects from archives
11221 whole_archive_flag_spec='$convenience'
11222 fi
11223 archive_cmds_need_lc=yes
11224 # This is similar to how AIX traditionally builds its shared libraries.
11225 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11226 fi
11227 fi
11228 ;;
11229
11230 amigaos*)
11231 case $host_cpu in
11232 powerpc)
11233 # see comment about AmigaOS4 .so support
11234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11235 archive_expsym_cmds=''
11236 ;;
11237 m68k)
11238 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)'
11239 hardcode_libdir_flag_spec='-L$libdir'
11240 hardcode_minus_L=yes
11241 ;;
11242 esac
11243 ;;
11244
11245 bsdi[45]*)
11246 export_dynamic_flag_spec=-rdynamic
11247 ;;
11248
11249 cygwin* | mingw* | pw32* | cegcc*)
11250 # When not using gcc, we currently assume that we are using
11251 # Microsoft Visual C++.
11252 # hardcode_libdir_flag_spec is actually meaningless, as there is
11253 # no search path for DLLs.
11254 case $cc_basename in
11255 cl*)
11256 # Native MSVC
11257 hardcode_libdir_flag_spec=' '
11258 allow_undefined_flag=unsupported
11259 always_export_symbols=yes
11260 file_list_spec='@'
11261 # Tell ltmain to make .lib files, not .a files.
11262 libext=lib
11263 # Tell ltmain to make .dll files, not .so files.
11264 shrext_cmds=".dll"
11265 # FIXME: Setting linknames here is a bad hack.
11266 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11267 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11268 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11269 else
11270 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11271 fi~
11272 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11273 linknames='
11274 # The linker will not automatically build a static lib if we build a DLL.
11275 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11276 enable_shared_with_static_runtimes=yes
11277 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11278 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11279 # Don't use ranlib
11280 old_postinstall_cmds='chmod 644 $oldlib'
11281 postlink_cmds='lt_outputfile="@OUTPUT@"~
11282 lt_tool_outputfile="@TOOL_OUTPUT@"~
11283 case $lt_outputfile in
11284 *.exe|*.EXE) ;;
11285 *)
11286 lt_outputfile="$lt_outputfile.exe"
11287 lt_tool_outputfile="$lt_tool_outputfile.exe"
11288 ;;
11289 esac~
11290 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11291 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11292 $RM "$lt_outputfile.manifest";
11293 fi'
11294 ;;
11295 *)
11296 # Assume MSVC wrapper
11297 hardcode_libdir_flag_spec=' '
11298 allow_undefined_flag=unsupported
11299 # Tell ltmain to make .lib files, not .a files.
11300 libext=lib
11301 # Tell ltmain to make .dll files, not .so files.
11302 shrext_cmds=".dll"
11303 # FIXME: Setting linknames here is a bad hack.
11304 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11305 # The linker will automatically build a .lib file if we build a DLL.
11306 old_archive_from_new_cmds='true'
11307 # FIXME: Should let the user specify the lib program.
11308 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11309 enable_shared_with_static_runtimes=yes
11310 ;;
11311 esac
11312 ;;
11313
11314 darwin* | rhapsody*)
11315
11316
11317 archive_cmds_need_lc=no
11318 hardcode_direct=no
11319 hardcode_automatic=yes
11320 hardcode_shlibpath_var=unsupported
11321 if test "$lt_cv_ld_force_load" = "yes"; then
11322 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\"`'
11323
11324 else
11325 whole_archive_flag_spec=''
11326 fi
11327 link_all_deplibs=yes
11328 allow_undefined_flag="$_lt_dar_allow_undefined"
11329 case $cc_basename in
11330 ifort*) _lt_dar_can_shared=yes ;;
11331 *) _lt_dar_can_shared=$GCC ;;
11332 esac
11333 if test "$_lt_dar_can_shared" = "yes"; then
11334 output_verbose_link_cmd=func_echo_all
11335 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11336 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11337 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}"
11338 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}"
11339
11340 else
11341 ld_shlibs=no
11342 fi
11343
11344 ;;
11345
11346 dgux*)
11347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11348 hardcode_libdir_flag_spec='-L$libdir'
11349 hardcode_shlibpath_var=no
11350 ;;
11351
11352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11353 # support. Future versions do this automatically, but an explicit c++rt0.o
11354 # does not break anything, and helps significantly (at the cost of a little
11355 # extra space).
11356 freebsd2.2*)
11357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11358 hardcode_libdir_flag_spec='-R$libdir'
11359 hardcode_direct=yes
11360 hardcode_shlibpath_var=no
11361 ;;
11362
11363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11364 freebsd2.*)
11365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11366 hardcode_direct=yes
11367 hardcode_minus_L=yes
11368 hardcode_shlibpath_var=no
11369 ;;
11370
11371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11372 freebsd* | dragonfly*)
11373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11374 hardcode_libdir_flag_spec='-R$libdir'
11375 hardcode_direct=yes
11376 hardcode_shlibpath_var=no
11377 ;;
11378
11379 hpux9*)
11380 if test "$GCC" = yes; then
11381 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11382 else
11383 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11384 fi
11385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11386 hardcode_libdir_separator=:
11387 hardcode_direct=yes
11388
11389 # hardcode_minus_L: Not really in the search PATH,
11390 # but as the default location of the library.
11391 hardcode_minus_L=yes
11392 export_dynamic_flag_spec='${wl}-E'
11393 ;;
11394
11395 hpux10*)
11396 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11397 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11398 else
11399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11400 fi
11401 if test "$with_gnu_ld" = no; then
11402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11403 hardcode_libdir_separator=:
11404 hardcode_direct=yes
11405 hardcode_direct_absolute=yes
11406 export_dynamic_flag_spec='${wl}-E'
11407 # hardcode_minus_L: Not really in the search PATH,
11408 # but as the default location of the library.
11409 hardcode_minus_L=yes
11410 fi
11411 ;;
11412
11413 hpux11*)
11414 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11415 case $host_cpu in
11416 hppa*64*)
11417 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11418 ;;
11419 ia64*)
11420 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11421 ;;
11422 *)
11423 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11424 ;;
11425 esac
11426 else
11427 case $host_cpu in
11428 hppa*64*)
11429 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 ;;
11431 ia64*)
11432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11433 ;;
11434 *)
11435
11436 # Older versions of the 11.00 compiler do not understand -b yet
11437 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11439 $as_echo_n "checking if $CC understands -b... " >&6; }
11440 if ${lt_cv_prog_compiler__b+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 lt_cv_prog_compiler__b=no
11444 save_LDFLAGS="$LDFLAGS"
11445 LDFLAGS="$LDFLAGS -b"
11446 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11448 # The linker can only warn and ignore the option if not recognized
11449 # So say no if there are warnings
11450 if test -s conftest.err; then
11451 # Append any errors to the config.log.
11452 cat conftest.err 1>&5
11453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11455 if diff conftest.exp conftest.er2 >/dev/null; then
11456 lt_cv_prog_compiler__b=yes
11457 fi
11458 else
11459 lt_cv_prog_compiler__b=yes
11460 fi
11461 fi
11462 $RM -r conftest*
11463 LDFLAGS="$save_LDFLAGS"
11464
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11467 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11468
11469 if test x"$lt_cv_prog_compiler__b" = xyes; then
11470 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11471 else
11472 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11473 fi
11474
11475 ;;
11476 esac
11477 fi
11478 if test "$with_gnu_ld" = no; then
11479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11480 hardcode_libdir_separator=:
11481
11482 case $host_cpu in
11483 hppa*64*|ia64*)
11484 hardcode_direct=no
11485 hardcode_shlibpath_var=no
11486 ;;
11487 *)
11488 hardcode_direct=yes
11489 hardcode_direct_absolute=yes
11490 export_dynamic_flag_spec='${wl}-E'
11491
11492 # hardcode_minus_L: Not really in the search PATH,
11493 # but as the default location of the library.
11494 hardcode_minus_L=yes
11495 ;;
11496 esac
11497 fi
11498 ;;
11499
11500 irix5* | irix6* | nonstopux*)
11501 if test "$GCC" = yes; then
11502 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'
11503 # Try to use the -exported_symbol ld option, if it does not
11504 # work, assume that -exports_file does not work either and
11505 # implicitly export all symbols.
11506 # This should be the same for all languages, so no per-tag cache variable.
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11508 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11509 if ${lt_cv_irix_exported_symbol+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 save_LDFLAGS="$LDFLAGS"
11513 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 int foo (void) { return 0; }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 lt_cv_irix_exported_symbol=yes
11520 else
11521 lt_cv_irix_exported_symbol=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LDFLAGS="$save_LDFLAGS"
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11528 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11529 if test "$lt_cv_irix_exported_symbol" = yes; then
11530 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'
11531 fi
11532 else
11533 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'
11534 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'
11535 fi
11536 archive_cmds_need_lc='no'
11537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11538 hardcode_libdir_separator=:
11539 inherit_rpath=yes
11540 link_all_deplibs=yes
11541 ;;
11542
11543 netbsd* | netbsdelf*-gnu)
11544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11546 else
11547 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11548 fi
11549 hardcode_libdir_flag_spec='-R$libdir'
11550 hardcode_direct=yes
11551 hardcode_shlibpath_var=no
11552 ;;
11553
11554 newsos6)
11555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11556 hardcode_direct=yes
11557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11558 hardcode_libdir_separator=:
11559 hardcode_shlibpath_var=no
11560 ;;
11561
11562 *nto* | *qnx*)
11563 ;;
11564
11565 openbsd*)
11566 if test -f /usr/libexec/ld.so; then
11567 hardcode_direct=yes
11568 hardcode_shlibpath_var=no
11569 hardcode_direct_absolute=yes
11570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11572 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11574 export_dynamic_flag_spec='${wl}-E'
11575 else
11576 case $host_os in
11577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11579 hardcode_libdir_flag_spec='-R$libdir'
11580 ;;
11581 *)
11582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11584 ;;
11585 esac
11586 fi
11587 else
11588 ld_shlibs=no
11589 fi
11590 ;;
11591
11592 os2*)
11593 hardcode_libdir_flag_spec='-L$libdir'
11594 hardcode_minus_L=yes
11595 allow_undefined_flag=unsupported
11596 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11597 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11598 ;;
11599
11600 osf3*)
11601 if test "$GCC" = yes; then
11602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11603 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'
11604 else
11605 allow_undefined_flag=' -expect_unresolved \*'
11606 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'
11607 fi
11608 archive_cmds_need_lc='no'
11609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11610 hardcode_libdir_separator=:
11611 ;;
11612
11613 osf4* | osf5*) # as osf3* with the addition of -msym flag
11614 if test "$GCC" = yes; then
11615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11616 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'
11617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11618 else
11619 allow_undefined_flag=' -expect_unresolved \*'
11620 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'
11621 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~
11622 $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'
11623
11624 # Both c and cxx compiler support -rpath directly
11625 hardcode_libdir_flag_spec='-rpath $libdir'
11626 fi
11627 archive_cmds_need_lc='no'
11628 hardcode_libdir_separator=:
11629 ;;
11630
11631 solaris*)
11632 no_undefined_flag=' -z defs'
11633 if test "$GCC" = yes; then
11634 wlarc='${wl}'
11635 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11637 $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'
11638 else
11639 case `$CC -V 2>&1` in
11640 *"Compilers 5.0"*)
11641 wlarc=''
11642 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11644 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11645 ;;
11646 *)
11647 wlarc='${wl}'
11648 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11650 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11651 ;;
11652 esac
11653 fi
11654 hardcode_libdir_flag_spec='-R$libdir'
11655 hardcode_shlibpath_var=no
11656 case $host_os in
11657 solaris2.[0-5] | solaris2.[0-5].*) ;;
11658 *)
11659 # The compiler driver will combine and reorder linker options,
11660 # but understands `-z linker_flag'. GCC discards it without `$wl',
11661 # but is careful enough not to reorder.
11662 # Supported since Solaris 2.6 (maybe 2.5.1?)
11663 if test "$GCC" = yes; then
11664 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11665 else
11666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11667 fi
11668 ;;
11669 esac
11670 link_all_deplibs=yes
11671 ;;
11672
11673 sunos4*)
11674 if test "x$host_vendor" = xsequent; then
11675 # Use $CC to link under sequent, because it throws in some extra .o
11676 # files that make .init and .fini sections work.
11677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11678 else
11679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11680 fi
11681 hardcode_libdir_flag_spec='-L$libdir'
11682 hardcode_direct=yes
11683 hardcode_minus_L=yes
11684 hardcode_shlibpath_var=no
11685 ;;
11686
11687 sysv4)
11688 case $host_vendor in
11689 sni)
11690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11691 hardcode_direct=yes # is this really true???
11692 ;;
11693 siemens)
11694 ## LD is ld it makes a PLAMLIB
11695 ## CC just makes a GrossModule.
11696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11697 reload_cmds='$CC -r -o $output$reload_objs'
11698 hardcode_direct=no
11699 ;;
11700 motorola)
11701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11703 ;;
11704 esac
11705 runpath_var='LD_RUN_PATH'
11706 hardcode_shlibpath_var=no
11707 ;;
11708
11709 sysv4.3*)
11710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11711 hardcode_shlibpath_var=no
11712 export_dynamic_flag_spec='-Bexport'
11713 ;;
11714
11715 sysv4*MP*)
11716 if test -d /usr/nec; then
11717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718 hardcode_shlibpath_var=no
11719 runpath_var=LD_RUN_PATH
11720 hardcode_runpath_var=yes
11721 ld_shlibs=yes
11722 fi
11723 ;;
11724
11725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11726 no_undefined_flag='${wl}-z,text'
11727 archive_cmds_need_lc=no
11728 hardcode_shlibpath_var=no
11729 runpath_var='LD_RUN_PATH'
11730
11731 if test "$GCC" = yes; then
11732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 else
11735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11737 fi
11738 ;;
11739
11740 sysv5* | sco3.2v5* | sco5v6*)
11741 # Note: We can NOT use -z defs as we might desire, because we do not
11742 # link with -lc, and that would cause any symbols used from libc to
11743 # always be unresolved, which means just about no library would
11744 # ever link correctly. If we're not using GNU ld we use -z text
11745 # though, which does catch some bad symbols but isn't as heavy-handed
11746 # as -z defs.
11747 no_undefined_flag='${wl}-z,text'
11748 allow_undefined_flag='${wl}-z,nodefs'
11749 archive_cmds_need_lc=no
11750 hardcode_shlibpath_var=no
11751 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11752 hardcode_libdir_separator=':'
11753 link_all_deplibs=yes
11754 export_dynamic_flag_spec='${wl}-Bexport'
11755 runpath_var='LD_RUN_PATH'
11756
11757 if test "$GCC" = yes; then
11758 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 else
11761 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 fi
11764 ;;
11765
11766 uts4*)
11767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11768 hardcode_libdir_flag_spec='-L$libdir'
11769 hardcode_shlibpath_var=no
11770 ;;
11771
11772 *)
11773 ld_shlibs=no
11774 ;;
11775 esac
11776
11777 if test x$host_vendor = xsni; then
11778 case $host in
11779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11780 export_dynamic_flag_spec='${wl}-Blargedynsym'
11781 ;;
11782 esac
11783 fi
11784 fi
11785
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11787 $as_echo "$ld_shlibs" >&6; }
11788 test "$ld_shlibs" = no && can_build_shared=no
11789
11790 with_gnu_ld=$with_gnu_ld
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806 #
11807 # Do we need to explicitly link libc?
11808 #
11809 case "x$archive_cmds_need_lc" in
11810 x|xyes)
11811 # Assume -lc should be added
11812 archive_cmds_need_lc=yes
11813
11814 if test "$enable_shared" = yes && test "$GCC" = yes; then
11815 case $archive_cmds in
11816 *'~'*)
11817 # FIXME: we may have to deal with multi-command sequences.
11818 ;;
11819 '$CC '*)
11820 # Test whether the compiler implicitly links with -lc since on some
11821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11822 # to ld, don't add -lc before -lgcc.
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11825 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 $RM conftest*
11829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830
11831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11832 (eval $ac_compile) 2>&5
11833 ac_status=$?
11834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11835 test $ac_status = 0; } 2>conftest.err; then
11836 soname=conftest
11837 lib=conftest
11838 libobjs=conftest.$ac_objext
11839 deplibs=
11840 wl=$lt_prog_compiler_wl
11841 pic_flag=$lt_prog_compiler_pic
11842 compiler_flags=-v
11843 linker_flags=-v
11844 verstring=
11845 output_objdir=.
11846 libname=conftest
11847 lt_save_allow_undefined_flag=$allow_undefined_flag
11848 allow_undefined_flag=
11849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11850 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11851 ac_status=$?
11852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853 test $ac_status = 0; }
11854 then
11855 lt_cv_archive_cmds_need_lc=no
11856 else
11857 lt_cv_archive_cmds_need_lc=yes
11858 fi
11859 allow_undefined_flag=$lt_save_allow_undefined_flag
11860 else
11861 cat conftest.err 1>&5
11862 fi
11863 $RM conftest*
11864
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11867 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11868 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11869 ;;
11870 esac
11871 fi
11872 ;;
11873 esac
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12027 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12028
12029 if test "$GCC" = yes; then
12030 case $host_os in
12031 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12032 *) lt_awk_arg="/^libraries:/" ;;
12033 esac
12034 case $host_os in
12035 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12036 *) lt_sed_strip_eq="s,=/,/,g" ;;
12037 esac
12038 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12039 case $lt_search_path_spec in
12040 *\;*)
12041 # if the path contains ";" then we assume it to be the separator
12042 # otherwise default to the standard path separator (i.e. ":") - it is
12043 # assumed that no part of a normal pathname contains ";" but that should
12044 # okay in the real world where ";" in dirpaths is itself problematic.
12045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12046 ;;
12047 *)
12048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12049 ;;
12050 esac
12051 # Ok, now we have the path, separated by spaces, we can step through it
12052 # and add multilib dir if necessary.
12053 lt_tmp_lt_search_path_spec=
12054 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12055 for lt_sys_path in $lt_search_path_spec; do
12056 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12058 else
12059 test -d "$lt_sys_path" && \
12060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12061 fi
12062 done
12063 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12064 BEGIN {RS=" "; FS="/|\n";} {
12065 lt_foo="";
12066 lt_count=0;
12067 for (lt_i = NF; lt_i > 0; lt_i--) {
12068 if ($lt_i != "" && $lt_i != ".") {
12069 if ($lt_i == "..") {
12070 lt_count++;
12071 } else {
12072 if (lt_count == 0) {
12073 lt_foo="/" $lt_i lt_foo;
12074 } else {
12075 lt_count--;
12076 }
12077 }
12078 }
12079 }
12080 if (lt_foo != "") { lt_freq[lt_foo]++; }
12081 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12082 }'`
12083 # AWK program above erroneously prepends '/' to C:/dos/paths
12084 # for these hosts.
12085 case $host_os in
12086 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12087 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12088 esac
12089 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12090 else
12091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12092 fi
12093 library_names_spec=
12094 libname_spec='lib$name'
12095 soname_spec=
12096 shrext_cmds=".so"
12097 postinstall_cmds=
12098 postuninstall_cmds=
12099 finish_cmds=
12100 finish_eval=
12101 shlibpath_var=
12102 shlibpath_overrides_runpath=unknown
12103 version_type=none
12104 dynamic_linker="$host_os ld.so"
12105 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12106 need_lib_prefix=unknown
12107 hardcode_into_libs=no
12108
12109 # when you set need_version to no, make sure it does not cause -set_version
12110 # flags to be left without arguments
12111 need_version=unknown
12112
12113 case $host_os in
12114 aix3*)
12115 version_type=linux # correct to gnu/linux during the next big refactor
12116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12117 shlibpath_var=LIBPATH
12118
12119 # AIX 3 has no versioning support, so we append a major version to the name.
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 ;;
12122
12123 aix[4-9]*)
12124 version_type=linux # correct to gnu/linux during the next big refactor
12125 need_lib_prefix=no
12126 need_version=no
12127 hardcode_into_libs=yes
12128 if test "$host_cpu" = ia64; then
12129 # AIX 5 supports IA64
12130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 else
12133 # With GCC up to 2.95.x, collect2 would create an import file
12134 # for dependence libraries. The import file would start with
12135 # the line `#! .'. This would cause the generated library to
12136 # depend on `.', always an invalid library. This was fixed in
12137 # development snapshots of GCC prior to 3.0.
12138 case $host_os in
12139 aix4 | aix4.[01] | aix4.[01].*)
12140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12141 echo ' yes '
12142 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12143 :
12144 else
12145 can_build_shared=no
12146 fi
12147 ;;
12148 esac
12149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12150 # soname into executable. Probably we can add versioning support to
12151 # collect2, so additional links can be useful in future.
12152 if test "$aix_use_runtimelinking" = yes; then
12153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12154 # instead of lib<name>.a to let people know that these are not
12155 # typical AIX shared libraries.
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 else
12158 # We preserve .a as extension for shared libraries through AIX4.2
12159 # and later when we are not doing run time linking.
12160 library_names_spec='${libname}${release}.a $libname.a'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 fi
12163 shlibpath_var=LIBPATH
12164 fi
12165 ;;
12166
12167 amigaos*)
12168 case $host_cpu in
12169 powerpc)
12170 # Since July 2007 AmigaOS4 officially supports .so libraries.
12171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 ;;
12174 m68k)
12175 library_names_spec='$libname.ixlibrary $libname.a'
12176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12177 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
12178 ;;
12179 esac
12180 ;;
12181
12182 beos*)
12183 library_names_spec='${libname}${shared_ext}'
12184 dynamic_linker="$host_os ld.so"
12185 shlibpath_var=LIBRARY_PATH
12186 ;;
12187
12188 bsdi[45]*)
12189 version_type=linux # correct to gnu/linux during the next big refactor
12190 need_version=no
12191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12192 soname_spec='${libname}${release}${shared_ext}$major'
12193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12197 # the default ld.so.conf also contains /usr/contrib/lib and
12198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12199 # libtool to hard-code these into programs
12200 ;;
12201
12202 cygwin* | mingw* | pw32* | cegcc*)
12203 version_type=windows
12204 shrext_cmds=".dll"
12205 need_version=no
12206 need_lib_prefix=no
12207
12208 case $GCC,$cc_basename in
12209 yes,*)
12210 # gcc
12211 library_names_spec='$libname.dll.a'
12212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12213 postinstall_cmds='base_file=`basename \${file}`~
12214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12215 dldir=$destdir/`dirname \$dlpath`~
12216 test -d \$dldir || mkdir -p \$dldir~
12217 $install_prog $dir/$dlname \$dldir/$dlname~
12218 chmod a+x \$dldir/$dlname~
12219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12221 fi'
12222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12223 dlpath=$dir/\$dldll~
12224 $RM \$dlpath'
12225 shlibpath_overrides_runpath=yes
12226
12227 case $host_os in
12228 cygwin*)
12229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12230 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12231
12232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12233 ;;
12234 mingw* | cegcc*)
12235 # MinGW DLLs use traditional 'lib' prefix
12236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12237 ;;
12238 pw32*)
12239 # pw32 DLLs use 'pw' prefix rather than 'lib'
12240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12241 ;;
12242 esac
12243 dynamic_linker='Win32 ld.exe'
12244 ;;
12245
12246 *,cl*)
12247 # Native MSVC
12248 libname_spec='$name'
12249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12250 library_names_spec='${libname}.dll.lib'
12251
12252 case $build_os in
12253 mingw*)
12254 sys_lib_search_path_spec=
12255 lt_save_ifs=$IFS
12256 IFS=';'
12257 for lt_path in $LIB
12258 do
12259 IFS=$lt_save_ifs
12260 # Let DOS variable expansion print the short 8.3 style file name.
12261 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12262 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12263 done
12264 IFS=$lt_save_ifs
12265 # Convert to MSYS style.
12266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12267 ;;
12268 cygwin*)
12269 # Convert to unix form, then to dos form, then back to unix form
12270 # but this time dos style (no spaces!) so that the unix form looks
12271 # like /cygdrive/c/PROGRA~1:/cygdr...
12272 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12273 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12274 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12275 ;;
12276 *)
12277 sys_lib_search_path_spec="$LIB"
12278 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12279 # It is most probably a Windows format PATH.
12280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12281 else
12282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12283 fi
12284 # FIXME: find the short name or the path components, as spaces are
12285 # common. (e.g. "Program Files" -> "PROGRA~1")
12286 ;;
12287 esac
12288
12289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12290 postinstall_cmds='base_file=`basename \${file}`~
12291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12292 dldir=$destdir/`dirname \$dlpath`~
12293 test -d \$dldir || mkdir -p \$dldir~
12294 $install_prog $dir/$dlname \$dldir/$dlname'
12295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12296 dlpath=$dir/\$dldll~
12297 $RM \$dlpath'
12298 shlibpath_overrides_runpath=yes
12299 dynamic_linker='Win32 link.exe'
12300 ;;
12301
12302 *)
12303 # Assume MSVC wrapper
12304 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12305 dynamic_linker='Win32 ld.exe'
12306 ;;
12307 esac
12308 # FIXME: first we should search . and the directory the executable is in
12309 shlibpath_var=PATH
12310 ;;
12311
12312 darwin* | rhapsody*)
12313 dynamic_linker="$host_os dyld"
12314 version_type=darwin
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12318 soname_spec='${libname}${release}${major}$shared_ext'
12319 shlibpath_overrides_runpath=yes
12320 shlibpath_var=DYLD_LIBRARY_PATH
12321 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12322
12323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12325 ;;
12326
12327 dgux*)
12328 version_type=linux # correct to gnu/linux during the next big refactor
12329 need_lib_prefix=no
12330 need_version=no
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 ;;
12335
12336 freebsd* | dragonfly*)
12337 # DragonFly does not have aout. When/if they implement a new
12338 # versioning mechanism, adjust this.
12339 if test -x /usr/bin/objformat; then
12340 objformat=`/usr/bin/objformat`
12341 else
12342 case $host_os in
12343 freebsd[23].*) objformat=aout ;;
12344 *) objformat=elf ;;
12345 esac
12346 fi
12347 version_type=freebsd-$objformat
12348 case $version_type in
12349 freebsd-elf*)
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12351 need_version=no
12352 need_lib_prefix=no
12353 ;;
12354 freebsd-*)
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12356 need_version=yes
12357 ;;
12358 esac
12359 shlibpath_var=LD_LIBRARY_PATH
12360 case $host_os in
12361 freebsd2.*)
12362 shlibpath_overrides_runpath=yes
12363 ;;
12364 freebsd3.[01]* | freebsdelf3.[01]*)
12365 shlibpath_overrides_runpath=yes
12366 hardcode_into_libs=yes
12367 ;;
12368 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12369 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12370 shlibpath_overrides_runpath=no
12371 hardcode_into_libs=yes
12372 ;;
12373 *) # from 4.6 on, and DragonFly
12374 shlibpath_overrides_runpath=yes
12375 hardcode_into_libs=yes
12376 ;;
12377 esac
12378 ;;
12379
12380 gnu*)
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 need_lib_prefix=no
12383 need_version=no
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12385 soname_spec='${libname}${release}${shared_ext}$major'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=no
12388 hardcode_into_libs=yes
12389 ;;
12390
12391 haiku*)
12392 version_type=linux # correct to gnu/linux during the next big refactor
12393 need_lib_prefix=no
12394 need_version=no
12395 dynamic_linker="$host_os runtime_loader"
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12397 soname_spec='${libname}${release}${shared_ext}$major'
12398 shlibpath_var=LIBRARY_PATH
12399 shlibpath_overrides_runpath=yes
12400 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12401 hardcode_into_libs=yes
12402 ;;
12403
12404 hpux9* | hpux10* | hpux11*)
12405 # Give a soname corresponding to the major version so that dld.sl refuses to
12406 # link against other versions.
12407 version_type=sunos
12408 need_lib_prefix=no
12409 need_version=no
12410 case $host_cpu in
12411 ia64*)
12412 shrext_cmds='.so'
12413 hardcode_into_libs=yes
12414 dynamic_linker="$host_os dld.so"
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 if test "X$HPUX_IA64_MODE" = X32; then
12420 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12421 else
12422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12423 fi
12424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12425 ;;
12426 hppa*64*)
12427 shrext_cmds='.sl'
12428 hardcode_into_libs=yes
12429 dynamic_linker="$host_os dld.sl"
12430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12433 soname_spec='${libname}${release}${shared_ext}$major'
12434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12436 ;;
12437 *)
12438 shrext_cmds='.sl'
12439 dynamic_linker="$host_os dld.sl"
12440 shlibpath_var=SHLIB_PATH
12441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443 soname_spec='${libname}${release}${shared_ext}$major'
12444 ;;
12445 esac
12446 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12447 postinstall_cmds='chmod 555 $lib'
12448 # or fails outright, so override atomically:
12449 install_override_mode=555
12450 ;;
12451
12452 interix[3-9]*)
12453 version_type=linux # correct to gnu/linux during the next big refactor
12454 need_lib_prefix=no
12455 need_version=no
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12457 soname_spec='${libname}${release}${shared_ext}$major'
12458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=no
12461 hardcode_into_libs=yes
12462 ;;
12463
12464 irix5* | irix6* | nonstopux*)
12465 case $host_os in
12466 nonstopux*) version_type=nonstopux ;;
12467 *)
12468 if test "$lt_cv_prog_gnu_ld" = yes; then
12469 version_type=linux # correct to gnu/linux during the next big refactor
12470 else
12471 version_type=irix
12472 fi ;;
12473 esac
12474 need_lib_prefix=no
12475 need_version=no
12476 soname_spec='${libname}${release}${shared_ext}$major'
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 case $host_os in
12479 irix5* | nonstopux*)
12480 libsuff= shlibsuff=
12481 ;;
12482 *)
12483 case $LD in # libtool.m4 will add one of these switches to LD
12484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12485 libsuff= shlibsuff= libmagic=32-bit;;
12486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12487 libsuff=32 shlibsuff=N32 libmagic=N32;;
12488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12490 *) libsuff= shlibsuff= libmagic=never-match;;
12491 esac
12492 ;;
12493 esac
12494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12495 shlibpath_overrides_runpath=no
12496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12498 hardcode_into_libs=yes
12499 ;;
12500
12501 # No shared lib support for Linux oldld, aout, or coff.
12502 linux*oldld* | linux*aout* | linux*coff*)
12503 dynamic_linker=no
12504 ;;
12505
12506 # This must be glibc/ELF.
12507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12508 version_type=linux # correct to gnu/linux during the next big refactor
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 shlibpath_overrides_runpath=no
12516
12517 # Some binutils ld are patched to set DT_RUNPATH
12518 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 lt_cv_shlibpath_overrides_runpath=no
12522 save_LDFLAGS=$LDFLAGS
12523 save_libdir=$libdir
12524 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12525 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 int
12530 main ()
12531 {
12532
12533 ;
12534 return 0;
12535 }
12536 _ACEOF
12537 if ac_fn_c_try_link "$LINENO"; then :
12538 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12539 lt_cv_shlibpath_overrides_runpath=yes
12540 fi
12541 fi
12542 rm -f core conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12544 LDFLAGS=$save_LDFLAGS
12545 libdir=$save_libdir
12546
12547 fi
12548
12549 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12550
12551 # This implies no fast_install, which is unacceptable.
12552 # Some rework will be needed to allow for fast_install
12553 # before this can be enabled.
12554 hardcode_into_libs=yes
12555
12556 # Append ld.so.conf contents to the search path
12557 if test -f /etc/ld.so.conf; then
12558 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' ' '`
12559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12560 fi
12561
12562 # We used to test for /lib/ld.so.1 and disable shared libraries on
12563 # powerpc, because MkLinux only supported shared libraries with the
12564 # GNU dynamic linker. Since this was broken with cross compilers,
12565 # most powerpc-linux boxes support dynamic linking these days and
12566 # people can always --disable-shared, the test was removed, and we
12567 # assume the GNU/Linux dynamic linker is in use.
12568 dynamic_linker='GNU/Linux ld.so'
12569 ;;
12570
12571 netbsdelf*-gnu)
12572 version_type=linux
12573 need_lib_prefix=no
12574 need_version=no
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12576 soname_spec='${libname}${release}${shared_ext}$major'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=no
12579 hardcode_into_libs=yes
12580 dynamic_linker='NetBSD ld.elf_so'
12581 ;;
12582
12583 netbsd*)
12584 version_type=sunos
12585 need_lib_prefix=no
12586 need_version=no
12587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12590 dynamic_linker='NetBSD (a.out) ld.so'
12591 else
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12594 dynamic_linker='NetBSD ld.elf_so'
12595 fi
12596 shlibpath_var=LD_LIBRARY_PATH
12597 shlibpath_overrides_runpath=yes
12598 hardcode_into_libs=yes
12599 ;;
12600
12601 newsos6)
12602 version_type=linux # correct to gnu/linux during the next big refactor
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=yes
12606 ;;
12607
12608 *nto* | *qnx*)
12609 version_type=qnx
12610 need_lib_prefix=no
12611 need_version=no
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12613 soname_spec='${libname}${release}${shared_ext}$major'
12614 shlibpath_var=LD_LIBRARY_PATH
12615 shlibpath_overrides_runpath=no
12616 hardcode_into_libs=yes
12617 dynamic_linker='ldqnx.so'
12618 ;;
12619
12620 openbsd*)
12621 version_type=sunos
12622 sys_lib_dlsearch_path_spec="/usr/lib"
12623 need_lib_prefix=no
12624 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12625 case $host_os in
12626 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12627 *) need_version=no ;;
12628 esac
12629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12633 case $host_os in
12634 openbsd2.[89] | openbsd2.[89].*)
12635 shlibpath_overrides_runpath=no
12636 ;;
12637 *)
12638 shlibpath_overrides_runpath=yes
12639 ;;
12640 esac
12641 else
12642 shlibpath_overrides_runpath=yes
12643 fi
12644 ;;
12645
12646 os2*)
12647 libname_spec='$name'
12648 shrext_cmds=".dll"
12649 need_lib_prefix=no
12650 library_names_spec='$libname${shared_ext} $libname.a'
12651 dynamic_linker='OS/2 ld.exe'
12652 shlibpath_var=LIBPATH
12653 ;;
12654
12655 osf3* | osf4* | osf5*)
12656 version_type=osf
12657 need_lib_prefix=no
12658 need_version=no
12659 soname_spec='${libname}${release}${shared_ext}$major'
12660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12663 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12664 ;;
12665
12666 rdos*)
12667 dynamic_linker=no
12668 ;;
12669
12670 solaris*)
12671 version_type=linux # correct to gnu/linux during the next big refactor
12672 need_lib_prefix=no
12673 need_version=no
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 shlibpath_var=LD_LIBRARY_PATH
12677 shlibpath_overrides_runpath=yes
12678 hardcode_into_libs=yes
12679 # ldd complains unless libraries are executable
12680 postinstall_cmds='chmod +x $lib'
12681 ;;
12682
12683 sunos4*)
12684 version_type=sunos
12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes
12689 if test "$with_gnu_ld" = yes; then
12690 need_lib_prefix=no
12691 fi
12692 need_version=yes
12693 ;;
12694
12695 sysv4 | sysv4.3*)
12696 version_type=linux # correct to gnu/linux during the next big refactor
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12698 soname_spec='${libname}${release}${shared_ext}$major'
12699 shlibpath_var=LD_LIBRARY_PATH
12700 case $host_vendor in
12701 sni)
12702 shlibpath_overrides_runpath=no
12703 need_lib_prefix=no
12704 runpath_var=LD_RUN_PATH
12705 ;;
12706 siemens)
12707 need_lib_prefix=no
12708 ;;
12709 motorola)
12710 need_lib_prefix=no
12711 need_version=no
12712 shlibpath_overrides_runpath=no
12713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12714 ;;
12715 esac
12716 ;;
12717
12718 sysv4*MP*)
12719 if test -d /usr/nec ;then
12720 version_type=linux # correct to gnu/linux during the next big refactor
12721 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12722 soname_spec='$libname${shared_ext}.$major'
12723 shlibpath_var=LD_LIBRARY_PATH
12724 fi
12725 ;;
12726
12727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12728 version_type=freebsd-elf
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=yes
12735 hardcode_into_libs=yes
12736 if test "$with_gnu_ld" = yes; then
12737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12738 else
12739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12740 case $host_os in
12741 sco3.2v5*)
12742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12743 ;;
12744 esac
12745 fi
12746 sys_lib_dlsearch_path_spec='/usr/lib'
12747 ;;
12748
12749 tpf*)
12750 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12751 version_type=linux # correct to gnu/linux during the next big refactor
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 shlibpath_overrides_runpath=no
12757 hardcode_into_libs=yes
12758 ;;
12759
12760 uts4*)
12761 version_type=linux # correct to gnu/linux during the next big refactor
12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12763 soname_spec='${libname}${release}${shared_ext}$major'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 ;;
12766
12767 *)
12768 dynamic_linker=no
12769 ;;
12770 esac
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12772 $as_echo "$dynamic_linker" >&6; }
12773 test "$dynamic_linker" = no && can_build_shared=no
12774
12775 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12776 if test "$GCC" = yes; then
12777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12778 fi
12779
12780 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12781 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12782 fi
12783 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12785 fi
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12879 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12880 hardcode_action=
12881 if test -n "$hardcode_libdir_flag_spec" ||
12882 test -n "$runpath_var" ||
12883 test "X$hardcode_automatic" = "Xyes" ; then
12884
12885 # We can hardcode non-existent directories.
12886 if test "$hardcode_direct" != no &&
12887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12888 # have to relink, otherwise we might link with an installed library
12889 # when we should be linking with a yet-to-be-installed one
12890 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12891 test "$hardcode_minus_L" != no; then
12892 # Linking always hardcodes the temporary library directory.
12893 hardcode_action=relink
12894 else
12895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12896 hardcode_action=immediate
12897 fi
12898 else
12899 # We cannot hardcode anything, or else we can only hardcode existing
12900 # directories.
12901 hardcode_action=unsupported
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12904 $as_echo "$hardcode_action" >&6; }
12905
12906 if test "$hardcode_action" = relink ||
12907 test "$inherit_rpath" = yes; then
12908 # Fast installation is not supported
12909 enable_fast_install=no
12910 elif test "$shlibpath_overrides_runpath" = yes ||
12911 test "$enable_shared" = no; then
12912 # Fast installation is not necessary
12913 enable_fast_install=needless
12914 fi
12915
12916
12917
12918
12919
12920
12921 if test "x$enable_dlopen" != xyes; then
12922 enable_dlopen=unknown
12923 enable_dlopen_self=unknown
12924 enable_dlopen_self_static=unknown
12925 else
12926 lt_cv_dlopen=no
12927 lt_cv_dlopen_libs=
12928
12929 case $host_os in
12930 beos*)
12931 lt_cv_dlopen="load_add_on"
12932 lt_cv_dlopen_libs=
12933 lt_cv_dlopen_self=yes
12934 ;;
12935
12936 mingw* | pw32* | cegcc*)
12937 lt_cv_dlopen="LoadLibrary"
12938 lt_cv_dlopen_libs=
12939 ;;
12940
12941 cygwin*)
12942 lt_cv_dlopen="dlopen"
12943 lt_cv_dlopen_libs=
12944 ;;
12945
12946 darwin*)
12947 # if libdl is installed we need to link against it
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12950 if ${ac_cv_lib_dl_dlopen+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-ldl $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char dlopen ();
12965 int
12966 main ()
12967 {
12968 return dlopen ();
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_lib_dl_dlopen=yes
12975 else
12976 ac_cv_lib_dl_dlopen=no
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12984 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12985 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12986 else
12987
12988 lt_cv_dlopen="dyld"
12989 lt_cv_dlopen_libs=
12990 lt_cv_dlopen_self=yes
12991
12992 fi
12993
12994 ;;
12995
12996 *)
12997 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12998 if test "x$ac_cv_func_shl_load" = xyes; then :
12999 lt_cv_dlopen="shl_load"
13000 else
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13002 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13003 if ${ac_cv_lib_dld_shl_load+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 ac_check_lib_save_LIBS=$LIBS
13007 LIBS="-ldld $LIBS"
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010
13011 /* Override any GCC internal prototype to avoid an error.
13012 Use char because int might match the return type of a GCC
13013 builtin and then its argument prototype would still apply. */
13014 #ifdef __cplusplus
13015 extern "C"
13016 #endif
13017 char shl_load ();
13018 int
13019 main ()
13020 {
13021 return shl_load ();
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_lib_dld_shl_load=yes
13028 else
13029 ac_cv_lib_dld_shl_load=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 LIBS=$ac_check_lib_save_LIBS
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13036 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13037 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13038 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13039 else
13040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13041 if test "x$ac_cv_func_dlopen" = xyes; then :
13042 lt_cv_dlopen="dlopen"
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13045 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13046 if ${ac_cv_lib_dl_dlopen+:} false; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 ac_check_lib_save_LIBS=$LIBS
13050 LIBS="-ldl $LIBS"
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13057 #ifdef __cplusplus
13058 extern "C"
13059 #endif
13060 char dlopen ();
13061 int
13062 main ()
13063 {
13064 return dlopen ();
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"; then :
13070 ac_cv_lib_dl_dlopen=yes
13071 else
13072 ac_cv_lib_dl_dlopen=no
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext conftest.$ac_ext
13076 LIBS=$ac_check_lib_save_LIBS
13077 fi
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13079 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13080 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13084 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13085 if ${ac_cv_lib_svld_dlopen+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 ac_check_lib_save_LIBS=$LIBS
13089 LIBS="-lsvld $LIBS"
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char dlopen ();
13100 int
13101 main ()
13102 {
13103 return dlopen ();
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 ac_cv_lib_svld_dlopen=yes
13110 else
13111 ac_cv_lib_svld_dlopen=no
13112 fi
13113 rm -f core conftest.err conftest.$ac_objext \
13114 conftest$ac_exeext conftest.$ac_ext
13115 LIBS=$ac_check_lib_save_LIBS
13116 fi
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13118 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13119 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13123 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13124 if ${ac_cv_lib_dld_dld_link+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-ldld $LIBS"
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131
13132 /* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13135 #ifdef __cplusplus
13136 extern "C"
13137 #endif
13138 char dld_link ();
13139 int
13140 main ()
13141 {
13142 return dld_link ();
13143 ;
13144 return 0;
13145 }
13146 _ACEOF
13147 if ac_fn_c_try_link "$LINENO"; then :
13148 ac_cv_lib_dld_dld_link=yes
13149 else
13150 ac_cv_lib_dld_dld_link=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_lib_save_LIBS
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13157 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13158 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13160 fi
13161
13162
13163 fi
13164
13165
13166 fi
13167
13168
13169 fi
13170
13171
13172 fi
13173
13174
13175 fi
13176
13177 ;;
13178 esac
13179
13180 if test "x$lt_cv_dlopen" != xno; then
13181 enable_dlopen=yes
13182 else
13183 enable_dlopen=no
13184 fi
13185
13186 case $lt_cv_dlopen in
13187 dlopen)
13188 save_CPPFLAGS="$CPPFLAGS"
13189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13190
13191 save_LDFLAGS="$LDFLAGS"
13192 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13193
13194 save_LIBS="$LIBS"
13195 LIBS="$lt_cv_dlopen_libs $LIBS"
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13198 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13199 if ${lt_cv_dlopen_self+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test "$cross_compiling" = yes; then :
13203 lt_cv_dlopen_self=cross
13204 else
13205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13206 lt_status=$lt_dlunknown
13207 cat > conftest.$ac_ext <<_LT_EOF
13208 #line $LINENO "configure"
13209 #include "confdefs.h"
13210
13211 #if HAVE_DLFCN_H
13212 #include <dlfcn.h>
13213 #endif
13214
13215 #include <stdio.h>
13216
13217 #ifdef RTLD_GLOBAL
13218 # define LT_DLGLOBAL RTLD_GLOBAL
13219 #else
13220 # ifdef DL_GLOBAL
13221 # define LT_DLGLOBAL DL_GLOBAL
13222 # else
13223 # define LT_DLGLOBAL 0
13224 # endif
13225 #endif
13226
13227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13228 find out it does not work in some platform. */
13229 #ifndef LT_DLLAZY_OR_NOW
13230 # ifdef RTLD_LAZY
13231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13232 # else
13233 # ifdef DL_LAZY
13234 # define LT_DLLAZY_OR_NOW DL_LAZY
13235 # else
13236 # ifdef RTLD_NOW
13237 # define LT_DLLAZY_OR_NOW RTLD_NOW
13238 # else
13239 # ifdef DL_NOW
13240 # define LT_DLLAZY_OR_NOW DL_NOW
13241 # else
13242 # define LT_DLLAZY_OR_NOW 0
13243 # endif
13244 # endif
13245 # endif
13246 # endif
13247 #endif
13248
13249 /* When -fvisbility=hidden is used, assume the code has been annotated
13250 correspondingly for the symbols needed. */
13251 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13252 int fnord () __attribute__((visibility("default")));
13253 #endif
13254
13255 int fnord () { return 42; }
13256 int main ()
13257 {
13258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13259 int status = $lt_dlunknown;
13260
13261 if (self)
13262 {
13263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13264 else
13265 {
13266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13267 else puts (dlerror ());
13268 }
13269 /* dlclose (self); */
13270 }
13271 else
13272 puts (dlerror ());
13273
13274 return status;
13275 }
13276 _LT_EOF
13277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13278 (eval $ac_link) 2>&5
13279 ac_status=$?
13280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13281 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13282 (./conftest; exit; ) >&5 2>/dev/null
13283 lt_status=$?
13284 case x$lt_status in
13285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13287 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13288 esac
13289 else :
13290 # compilation failed
13291 lt_cv_dlopen_self=no
13292 fi
13293 fi
13294 rm -fr conftest*
13295
13296
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13299 $as_echo "$lt_cv_dlopen_self" >&6; }
13300
13301 if test "x$lt_cv_dlopen_self" = xyes; then
13302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13304 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13305 if ${lt_cv_dlopen_self_static+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test "$cross_compiling" = yes; then :
13309 lt_cv_dlopen_self_static=cross
13310 else
13311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13312 lt_status=$lt_dlunknown
13313 cat > conftest.$ac_ext <<_LT_EOF
13314 #line $LINENO "configure"
13315 #include "confdefs.h"
13316
13317 #if HAVE_DLFCN_H
13318 #include <dlfcn.h>
13319 #endif
13320
13321 #include <stdio.h>
13322
13323 #ifdef RTLD_GLOBAL
13324 # define LT_DLGLOBAL RTLD_GLOBAL
13325 #else
13326 # ifdef DL_GLOBAL
13327 # define LT_DLGLOBAL DL_GLOBAL
13328 # else
13329 # define LT_DLGLOBAL 0
13330 # endif
13331 #endif
13332
13333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13334 find out it does not work in some platform. */
13335 #ifndef LT_DLLAZY_OR_NOW
13336 # ifdef RTLD_LAZY
13337 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13338 # else
13339 # ifdef DL_LAZY
13340 # define LT_DLLAZY_OR_NOW DL_LAZY
13341 # else
13342 # ifdef RTLD_NOW
13343 # define LT_DLLAZY_OR_NOW RTLD_NOW
13344 # else
13345 # ifdef DL_NOW
13346 # define LT_DLLAZY_OR_NOW DL_NOW
13347 # else
13348 # define LT_DLLAZY_OR_NOW 0
13349 # endif
13350 # endif
13351 # endif
13352 # endif
13353 #endif
13354
13355 /* When -fvisbility=hidden is used, assume the code has been annotated
13356 correspondingly for the symbols needed. */
13357 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13358 int fnord () __attribute__((visibility("default")));
13359 #endif
13360
13361 int fnord () { return 42; }
13362 int main ()
13363 {
13364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13365 int status = $lt_dlunknown;
13366
13367 if (self)
13368 {
13369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13370 else
13371 {
13372 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13373 else puts (dlerror ());
13374 }
13375 /* dlclose (self); */
13376 }
13377 else
13378 puts (dlerror ());
13379
13380 return status;
13381 }
13382 _LT_EOF
13383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13384 (eval $ac_link) 2>&5
13385 ac_status=$?
13386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13387 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13388 (./conftest; exit; ) >&5 2>/dev/null
13389 lt_status=$?
13390 case x$lt_status in
13391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13394 esac
13395 else :
13396 # compilation failed
13397 lt_cv_dlopen_self_static=no
13398 fi
13399 fi
13400 rm -fr conftest*
13401
13402
13403 fi
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13405 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13406 fi
13407
13408 CPPFLAGS="$save_CPPFLAGS"
13409 LDFLAGS="$save_LDFLAGS"
13410 LIBS="$save_LIBS"
13411 ;;
13412 esac
13413
13414 case $lt_cv_dlopen_self in
13415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13416 *) enable_dlopen_self=unknown ;;
13417 esac
13418
13419 case $lt_cv_dlopen_self_static in
13420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13421 *) enable_dlopen_self_static=unknown ;;
13422 esac
13423 fi
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441 striplib=
13442 old_striplib=
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13444 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450 else
13451 # FIXME - insert some real tests, host_os isn't really good enough
13452 case $host_os in
13453 darwin*)
13454 if test -n "$STRIP" ; then
13455 striplib="$STRIP -x"
13456 old_striplib="$STRIP -S"
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13458 $as_echo "yes" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13462 fi
13463 ;;
13464 *)
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13467 ;;
13468 esac
13469 fi
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 # Report which library types will actually be built
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13484 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13486 $as_echo "$can_build_shared" >&6; }
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13489 $as_echo_n "checking whether to build shared libraries... " >&6; }
13490 test "$can_build_shared" = "no" && enable_shared=no
13491
13492 # On AIX, shared libraries and static libraries use the same namespace, and
13493 # are all built from PIC.
13494 case $host_os in
13495 aix3*)
13496 test "$enable_shared" = yes && enable_static=no
13497 if test -n "$RANLIB"; then
13498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13499 postinstall_cmds='$RANLIB $lib'
13500 fi
13501 ;;
13502
13503 aix[4-9]*)
13504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13505 test "$enable_shared" = yes && enable_static=no
13506 fi
13507 ;;
13508 esac
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13510 $as_echo "$enable_shared" >&6; }
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13513 $as_echo_n "checking whether to build static libraries... " >&6; }
13514 # Make sure either enable_shared or enable_static is yes.
13515 test "$enable_shared" = yes || enable_static=yes
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13517 $as_echo "$enable_static" >&6; }
13518
13519
13520
13521
13522 fi
13523 ac_ext=c
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528
13529 CC="$lt_save_CC"
13530
13531 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13532 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13533 (test "X$CXX" != "Xg++"))) ; then
13534 ac_ext=cpp
13535 ac_cpp='$CXXCPP $CPPFLAGS'
13536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13540 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13541 if test -z "$CXXCPP"; then
13542 if ${ac_cv_prog_CXXCPP+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 # Double quotes because CXXCPP needs to be expanded
13546 for CXXCPP in "$CXX -E" "/lib/cpp"
13547 do
13548 ac_preproc_ok=false
13549 for ac_cxx_preproc_warn_flag in '' yes
13550 do
13551 # Use a header file that comes with gcc, so configuring glibc
13552 # with a fresh cross-compiler works.
13553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13554 # <limits.h> exists even on freestanding compilers.
13555 # On the NeXT, cc -E runs the code through the compiler's parser,
13556 # not just through cpp. "Syntax error" is here to catch this case.
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #ifdef __STDC__
13560 # include <limits.h>
13561 #else
13562 # include <assert.h>
13563 #endif
13564 Syntax error
13565 _ACEOF
13566 if ac_fn_cxx_try_cpp "$LINENO"; then :
13567
13568 else
13569 # Broken: fails on valid input.
13570 continue
13571 fi
13572 rm -f conftest.err conftest.i conftest.$ac_ext
13573
13574 # OK, works on sane cases. Now check whether nonexistent headers
13575 # can be detected and how.
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <ac_nonexistent.h>
13579 _ACEOF
13580 if ac_fn_cxx_try_cpp "$LINENO"; then :
13581 # Broken: success on invalid input.
13582 continue
13583 else
13584 # Passes both tests.
13585 ac_preproc_ok=:
13586 break
13587 fi
13588 rm -f conftest.err conftest.i conftest.$ac_ext
13589
13590 done
13591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13592 rm -f conftest.i conftest.err conftest.$ac_ext
13593 if $ac_preproc_ok; then :
13594 break
13595 fi
13596
13597 done
13598 ac_cv_prog_CXXCPP=$CXXCPP
13599
13600 fi
13601 CXXCPP=$ac_cv_prog_CXXCPP
13602 else
13603 ac_cv_prog_CXXCPP=$CXXCPP
13604 fi
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13606 $as_echo "$CXXCPP" >&6; }
13607 ac_preproc_ok=false
13608 for ac_cxx_preproc_warn_flag in '' yes
13609 do
13610 # Use a header file that comes with gcc, so configuring glibc
13611 # with a fresh cross-compiler works.
13612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13613 # <limits.h> exists even on freestanding compilers.
13614 # On the NeXT, cc -E runs the code through the compiler's parser,
13615 # not just through cpp. "Syntax error" is here to catch this case.
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #ifdef __STDC__
13619 # include <limits.h>
13620 #else
13621 # include <assert.h>
13622 #endif
13623 Syntax error
13624 _ACEOF
13625 if ac_fn_cxx_try_cpp "$LINENO"; then :
13626
13627 else
13628 # Broken: fails on valid input.
13629 continue
13630 fi
13631 rm -f conftest.err conftest.i conftest.$ac_ext
13632
13633 # OK, works on sane cases. Now check whether nonexistent headers
13634 # can be detected and how.
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #include <ac_nonexistent.h>
13638 _ACEOF
13639 if ac_fn_cxx_try_cpp "$LINENO"; then :
13640 # Broken: success on invalid input.
13641 continue
13642 else
13643 # Passes both tests.
13644 ac_preproc_ok=:
13645 break
13646 fi
13647 rm -f conftest.err conftest.i conftest.$ac_ext
13648
13649 done
13650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13651 rm -f conftest.i conftest.err conftest.$ac_ext
13652 if $ac_preproc_ok; then :
13653
13654 else
13655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13657 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13658 See \`config.log' for more details" "$LINENO" 5; }
13659 fi
13660
13661 ac_ext=c
13662 ac_cpp='$CPP $CPPFLAGS'
13663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13666
13667 else
13668 _lt_caught_CXX_error=yes
13669 fi
13670
13671 ac_ext=cpp
13672 ac_cpp='$CXXCPP $CPPFLAGS'
13673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13676
13677 archive_cmds_need_lc_CXX=no
13678 allow_undefined_flag_CXX=
13679 always_export_symbols_CXX=no
13680 archive_expsym_cmds_CXX=
13681 compiler_needs_object_CXX=no
13682 export_dynamic_flag_spec_CXX=
13683 hardcode_direct_CXX=no
13684 hardcode_direct_absolute_CXX=no
13685 hardcode_libdir_flag_spec_CXX=
13686 hardcode_libdir_separator_CXX=
13687 hardcode_minus_L_CXX=no
13688 hardcode_shlibpath_var_CXX=unsupported
13689 hardcode_automatic_CXX=no
13690 inherit_rpath_CXX=no
13691 module_cmds_CXX=
13692 module_expsym_cmds_CXX=
13693 link_all_deplibs_CXX=unknown
13694 old_archive_cmds_CXX=$old_archive_cmds
13695 reload_flag_CXX=$reload_flag
13696 reload_cmds_CXX=$reload_cmds
13697 no_undefined_flag_CXX=
13698 whole_archive_flag_spec_CXX=
13699 enable_shared_with_static_runtimes_CXX=no
13700
13701 # Source file extension for C++ test sources.
13702 ac_ext=cpp
13703
13704 # Object file extension for compiled C++ test sources.
13705 objext=o
13706 objext_CXX=$objext
13707
13708 # No sense in running all these tests if we already determined that
13709 # the CXX compiler isn't working. Some variables (like enable_shared)
13710 # are currently assumed to apply to all compilers on this platform,
13711 # and will be corrupted by setting them based on a non-working compiler.
13712 if test "$_lt_caught_CXX_error" != yes; then
13713 # Code to be used in simple compile tests
13714 lt_simple_compile_test_code="int some_variable = 0;"
13715
13716 # Code to be used in simple link tests
13717 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13718
13719 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13720
13721
13722
13723
13724
13725
13726 # If no C compiler was specified, use CC.
13727 LTCC=${LTCC-"$CC"}
13728
13729 # If no C compiler flags were specified, use CFLAGS.
13730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13731
13732 # Allow CC to be a program name with arguments.
13733 compiler=$CC
13734
13735
13736 # save warnings/boilerplate of simple test code
13737 ac_outfile=conftest.$ac_objext
13738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13740 _lt_compiler_boilerplate=`cat conftest.err`
13741 $RM conftest*
13742
13743 ac_outfile=conftest.$ac_objext
13744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13746 _lt_linker_boilerplate=`cat conftest.err`
13747 $RM -r conftest*
13748
13749
13750 # Allow CC to be a program name with arguments.
13751 lt_save_CC=$CC
13752 lt_save_CFLAGS=$CFLAGS
13753 lt_save_LD=$LD
13754 lt_save_GCC=$GCC
13755 GCC=$GXX
13756 lt_save_with_gnu_ld=$with_gnu_ld
13757 lt_save_path_LD=$lt_cv_path_LD
13758 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13759 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13760 else
13761 $as_unset lt_cv_prog_gnu_ld
13762 fi
13763 if test -n "${lt_cv_path_LDCXX+set}"; then
13764 lt_cv_path_LD=$lt_cv_path_LDCXX
13765 else
13766 $as_unset lt_cv_path_LD
13767 fi
13768 test -z "${LDCXX+set}" || LD=$LDCXX
13769 CC=${CXX-"c++"}
13770 CFLAGS=$CXXFLAGS
13771 compiler=$CC
13772 compiler_CXX=$CC
13773 for cc_temp in $compiler""; do
13774 case $cc_temp in
13775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13777 \-*) ;;
13778 *) break;;
13779 esac
13780 done
13781 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13782
13783
13784 if test -n "$compiler"; then
13785 # We don't want -fno-exception when compiling C++ code, so set the
13786 # no_builtin_flag separately
13787 if test "$GXX" = yes; then
13788 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13789 else
13790 lt_prog_compiler_no_builtin_flag_CXX=
13791 fi
13792
13793 if test "$GXX" = yes; then
13794 # Set up default GNU C++ configuration
13795
13796
13797
13798 # Check whether --with-gnu-ld was given.
13799 if test "${with_gnu_ld+set}" = set; then :
13800 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13801 else
13802 with_gnu_ld=no
13803 fi
13804
13805 ac_prog=ld
13806 if test "$GCC" = yes; then
13807 # Check if gcc -print-prog-name=ld gives a path.
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13809 $as_echo_n "checking for ld used by $CC... " >&6; }
13810 case $host in
13811 *-*-mingw*)
13812 # gcc leaves a trailing carriage return which upsets mingw
13813 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13814 *)
13815 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13816 esac
13817 case $ac_prog in
13818 # Accept absolute paths.
13819 [\\/]* | ?:[\\/]*)
13820 re_direlt='/[^/][^/]*/\.\./'
13821 # Canonicalize the pathname of ld
13822 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13823 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13824 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13825 done
13826 test -z "$LD" && LD="$ac_prog"
13827 ;;
13828 "")
13829 # If it fails, then pretend we aren't using GCC.
13830 ac_prog=ld
13831 ;;
13832 *)
13833 # If it is relative, then search for the first ld in PATH.
13834 with_gnu_ld=unknown
13835 ;;
13836 esac
13837 elif test "$with_gnu_ld" = yes; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13839 $as_echo_n "checking for GNU ld... " >&6; }
13840 else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13842 $as_echo_n "checking for non-GNU ld... " >&6; }
13843 fi
13844 if ${lt_cv_path_LD+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 if test -z "$LD"; then
13848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13849 for ac_dir in $PATH; do
13850 IFS="$lt_save_ifs"
13851 test -z "$ac_dir" && ac_dir=.
13852 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13853 lt_cv_path_LD="$ac_dir/$ac_prog"
13854 # Check to see if the program is GNU ld. I'd rather use --version,
13855 # but apparently some variants of GNU ld only accept -v.
13856 # Break only if it was the GNU/non-GNU ld that we prefer.
13857 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13858 *GNU* | *'with BFD'*)
13859 test "$with_gnu_ld" != no && break
13860 ;;
13861 *)
13862 test "$with_gnu_ld" != yes && break
13863 ;;
13864 esac
13865 fi
13866 done
13867 IFS="$lt_save_ifs"
13868 else
13869 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13870 fi
13871 fi
13872
13873 LD="$lt_cv_path_LD"
13874 if test -n "$LD"; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13876 $as_echo "$LD" >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13880 fi
13881 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13883 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13884 if ${lt_cv_prog_gnu_ld+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13888 case `$LD -v 2>&1 </dev/null` in
13889 *GNU* | *'with BFD'*)
13890 lt_cv_prog_gnu_ld=yes
13891 ;;
13892 *)
13893 lt_cv_prog_gnu_ld=no
13894 ;;
13895 esac
13896 fi
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13898 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13899 with_gnu_ld=$lt_cv_prog_gnu_ld
13900
13901
13902
13903
13904
13905
13906
13907 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13908 # archiving commands below assume that GNU ld is being used.
13909 if test "$with_gnu_ld" = yes; then
13910 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 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'
13912
13913 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13914 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13915
13916 # If archive_cmds runs LD, not CC, wlarc should be empty
13917 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13918 # investigate it a little bit more. (MM)
13919 wlarc='${wl}'
13920
13921 # ancient GNU ld didn't support --whole-archive et. al.
13922 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13923 $GREP 'no-whole-archive' > /dev/null; then
13924 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13925 else
13926 whole_archive_flag_spec_CXX=
13927 fi
13928 else
13929 with_gnu_ld=no
13930 wlarc=
13931
13932 # A generic and very simple default shared library creation
13933 # command for GNU C++ for the case where it uses the native
13934 # linker, instead of GNU ld. If possible, this setting should
13935 # overridden to take advantage of the native linker features on
13936 # the platform it is being used on.
13937 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13938 fi
13939
13940 # Commands to make compiler produce verbose output that lists
13941 # what "hidden" libraries, object files and flags are used when
13942 # linking a shared library.
13943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13944
13945 else
13946 GXX=no
13947 with_gnu_ld=no
13948 wlarc=
13949 fi
13950
13951 # PORTME: fill in a description of your system's C++ link characteristics
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13954 ld_shlibs_CXX=yes
13955 case $host_os in
13956 aix3*)
13957 # FIXME: insert proper C++ library support
13958 ld_shlibs_CXX=no
13959 ;;
13960 aix[4-9]*)
13961 if test "$host_cpu" = ia64; then
13962 # On IA64, the linker does run time linking by default, so we don't
13963 # have to do anything special.
13964 aix_use_runtimelinking=no
13965 exp_sym_flag='-Bexport'
13966 no_entry_flag=""
13967 else
13968 aix_use_runtimelinking=no
13969
13970 # Test if we are trying to use run time linking or normal
13971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13972 # need to do runtime linking.
13973 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13974 for ld_flag in $LDFLAGS; do
13975 case $ld_flag in
13976 *-brtl*)
13977 aix_use_runtimelinking=yes
13978 break
13979 ;;
13980 esac
13981 done
13982 ;;
13983 esac
13984
13985 exp_sym_flag='-bexport'
13986 no_entry_flag='-bnoentry'
13987 fi
13988
13989 # When large executables or shared objects are built, AIX ld can
13990 # have problems creating the table of contents. If linking a library
13991 # or program results in "error TOC overflow" add -mminimal-toc to
13992 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13993 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13994
13995 archive_cmds_CXX=''
13996 hardcode_direct_CXX=yes
13997 hardcode_direct_absolute_CXX=yes
13998 hardcode_libdir_separator_CXX=':'
13999 link_all_deplibs_CXX=yes
14000 file_list_spec_CXX='${wl}-f,'
14001
14002 if test "$GXX" = yes; then
14003 case $host_os in aix4.[012]|aix4.[012].*)
14004 # We only want to do this on AIX 4.2 and lower, the check
14005 # below for broken collect2 doesn't work under 4.3+
14006 collect2name=`${CC} -print-prog-name=collect2`
14007 if test -f "$collect2name" &&
14008 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14009 then
14010 # We have reworked collect2
14011 :
14012 else
14013 # We have old collect2
14014 hardcode_direct_CXX=unsupported
14015 # It fails to find uninstalled libraries when the uninstalled
14016 # path is not listed in the libpath. Setting hardcode_minus_L
14017 # to unsupported forces relinking
14018 hardcode_minus_L_CXX=yes
14019 hardcode_libdir_flag_spec_CXX='-L$libdir'
14020 hardcode_libdir_separator_CXX=
14021 fi
14022 esac
14023 shared_flag='-shared'
14024 if test "$aix_use_runtimelinking" = yes; then
14025 shared_flag="$shared_flag "'${wl}-G'
14026 fi
14027 else
14028 # not using gcc
14029 if test "$host_cpu" = ia64; then
14030 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14031 # chokes on -Wl,-G. The following line is correct:
14032 shared_flag='-G'
14033 else
14034 if test "$aix_use_runtimelinking" = yes; then
14035 shared_flag='${wl}-G'
14036 else
14037 shared_flag='${wl}-bM:SRE'
14038 fi
14039 fi
14040 fi
14041
14042 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14043 # It seems that -bexpall does not export symbols beginning with
14044 # underscore (_), so it is better to generate a list of symbols to
14045 # export.
14046 always_export_symbols_CXX=yes
14047 if test "$aix_use_runtimelinking" = yes; then
14048 # Warning - without using the other runtime loading flags (-brtl),
14049 # -berok will link without error, but may produce a broken library.
14050 allow_undefined_flag_CXX='-berok'
14051 # Determine the default libpath from the value encoded in an empty
14052 # executable.
14053 if test "${lt_cv_aix_libpath+set}" = set; then
14054 aix_libpath=$lt_cv_aix_libpath
14055 else
14056 if ${lt_cv_aix_libpath__CXX+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14061
14062 int
14063 main ()
14064 {
14065
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 if ac_fn_cxx_try_link "$LINENO"; then :
14071
14072 lt_aix_libpath_sed='
14073 /Import File Strings/,/^$/ {
14074 /^0/ {
14075 s/^0 *\([^ ]*\) *$/\1/
14076 p
14077 }
14078 }'
14079 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14080 # Check for a 64-bit object if we didn't find anything.
14081 if test -z "$lt_cv_aix_libpath__CXX"; then
14082 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14083 fi
14084 fi
14085 rm -f core conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14087 if test -z "$lt_cv_aix_libpath__CXX"; then
14088 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14089 fi
14090
14091 fi
14092
14093 aix_libpath=$lt_cv_aix_libpath__CXX
14094 fi
14095
14096 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14097
14098 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14099 else
14100 if test "$host_cpu" = ia64; then
14101 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14102 allow_undefined_flag_CXX="-z nodefs"
14103 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"
14104 else
14105 # Determine the default libpath from the value encoded in an
14106 # empty executable.
14107 if test "${lt_cv_aix_libpath+set}" = set; then
14108 aix_libpath=$lt_cv_aix_libpath
14109 else
14110 if ${lt_cv_aix_libpath__CXX+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14115
14116 int
14117 main ()
14118 {
14119
14120 ;
14121 return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_cxx_try_link "$LINENO"; then :
14125
14126 lt_aix_libpath_sed='
14127 /Import File Strings/,/^$/ {
14128 /^0/ {
14129 s/^0 *\([^ ]*\) *$/\1/
14130 p
14131 }
14132 }'
14133 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14134 # Check for a 64-bit object if we didn't find anything.
14135 if test -z "$lt_cv_aix_libpath__CXX"; then
14136 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14137 fi
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 if test -z "$lt_cv_aix_libpath__CXX"; then
14142 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14143 fi
14144
14145 fi
14146
14147 aix_libpath=$lt_cv_aix_libpath__CXX
14148 fi
14149
14150 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14151 # Warning - without using the other run time loading flags,
14152 # -berok will link without error, but may produce a broken library.
14153 no_undefined_flag_CXX=' ${wl}-bernotok'
14154 allow_undefined_flag_CXX=' ${wl}-berok'
14155 if test "$with_gnu_ld" = yes; then
14156 # We only use this code for GNU lds that support --whole-archive.
14157 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14158 else
14159 # Exported symbols can be pulled into shared objects from archives
14160 whole_archive_flag_spec_CXX='$convenience'
14161 fi
14162 archive_cmds_need_lc_CXX=yes
14163 # This is similar to how AIX traditionally builds its shared
14164 # libraries.
14165 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14166 fi
14167 fi
14168 ;;
14169
14170 beos*)
14171 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14172 allow_undefined_flag_CXX=unsupported
14173 # Joseph Beckenbach <[email protected]> says some releases of gcc
14174 # support --undefined. This deserves some investigation. FIXME
14175 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14176 else
14177 ld_shlibs_CXX=no
14178 fi
14179 ;;
14180
14181 chorus*)
14182 case $cc_basename in
14183 *)
14184 # FIXME: insert proper C++ library support
14185 ld_shlibs_CXX=no
14186 ;;
14187 esac
14188 ;;
14189
14190 cygwin* | mingw* | pw32* | cegcc*)
14191 case $GXX,$cc_basename in
14192 ,cl* | no,cl*)
14193 # Native MSVC
14194 # hardcode_libdir_flag_spec is actually meaningless, as there is
14195 # no search path for DLLs.
14196 hardcode_libdir_flag_spec_CXX=' '
14197 allow_undefined_flag_CXX=unsupported
14198 always_export_symbols_CXX=yes
14199 file_list_spec_CXX='@'
14200 # Tell ltmain to make .lib files, not .a files.
14201 libext=lib
14202 # Tell ltmain to make .dll files, not .so files.
14203 shrext_cmds=".dll"
14204 # FIXME: Setting linknames here is a bad hack.
14205 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14206 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14207 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14208 else
14209 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14210 fi~
14211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14212 linknames='
14213 # The linker will not automatically build a static lib if we build a DLL.
14214 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14215 enable_shared_with_static_runtimes_CXX=yes
14216 # Don't use ranlib
14217 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14218 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14219 lt_tool_outputfile="@TOOL_OUTPUT@"~
14220 case $lt_outputfile in
14221 *.exe|*.EXE) ;;
14222 *)
14223 lt_outputfile="$lt_outputfile.exe"
14224 lt_tool_outputfile="$lt_tool_outputfile.exe"
14225 ;;
14226 esac~
14227 func_to_tool_file "$lt_outputfile"~
14228 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14229 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14230 $RM "$lt_outputfile.manifest";
14231 fi'
14232 ;;
14233 *)
14234 # g++
14235 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14236 # as there is no search path for DLLs.
14237 hardcode_libdir_flag_spec_CXX='-L$libdir'
14238 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14239 allow_undefined_flag_CXX=unsupported
14240 always_export_symbols_CXX=no
14241 enable_shared_with_static_runtimes_CXX=yes
14242
14243 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14244 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'
14245 # If the export-symbols file already is a .def file (1st line
14246 # is EXPORTS), use it as is; otherwise, prepend...
14247 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14248 cp $export_symbols $output_objdir/$soname.def;
14249 else
14250 echo EXPORTS > $output_objdir/$soname.def;
14251 cat $export_symbols >> $output_objdir/$soname.def;
14252 fi~
14253 $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'
14254 else
14255 ld_shlibs_CXX=no
14256 fi
14257 ;;
14258 esac
14259 ;;
14260 darwin* | rhapsody*)
14261
14262
14263 archive_cmds_need_lc_CXX=no
14264 hardcode_direct_CXX=no
14265 hardcode_automatic_CXX=yes
14266 hardcode_shlibpath_var_CXX=unsupported
14267 if test "$lt_cv_ld_force_load" = "yes"; then
14268 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\"`'
14269
14270 else
14271 whole_archive_flag_spec_CXX=''
14272 fi
14273 link_all_deplibs_CXX=yes
14274 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14275 case $cc_basename in
14276 ifort*) _lt_dar_can_shared=yes ;;
14277 *) _lt_dar_can_shared=$GCC ;;
14278 esac
14279 if test "$_lt_dar_can_shared" = "yes"; then
14280 output_verbose_link_cmd=func_echo_all
14281 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}"
14282 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14283 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}"
14284 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}"
14285 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14286 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}"
14287 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}"
14288 fi
14289
14290 else
14291 ld_shlibs_CXX=no
14292 fi
14293
14294 ;;
14295
14296 dgux*)
14297 case $cc_basename in
14298 ec++*)
14299 # FIXME: insert proper C++ library support
14300 ld_shlibs_CXX=no
14301 ;;
14302 ghcx*)
14303 # Green Hills C++ Compiler
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14306 ;;
14307 *)
14308 # FIXME: insert proper C++ library support
14309 ld_shlibs_CXX=no
14310 ;;
14311 esac
14312 ;;
14313
14314 freebsd2.*)
14315 # C++ shared libraries reported to be fairly broken before
14316 # switch to ELF
14317 ld_shlibs_CXX=no
14318 ;;
14319
14320 freebsd-elf*)
14321 archive_cmds_need_lc_CXX=no
14322 ;;
14323
14324 freebsd* | dragonfly*)
14325 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14326 # conventions
14327 ld_shlibs_CXX=yes
14328 ;;
14329
14330 gnu*)
14331 ;;
14332
14333 haiku*)
14334 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 link_all_deplibs_CXX=yes
14336 ;;
14337
14338 hpux9*)
14339 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14340 hardcode_libdir_separator_CXX=:
14341 export_dynamic_flag_spec_CXX='${wl}-E'
14342 hardcode_direct_CXX=yes
14343 hardcode_minus_L_CXX=yes # Not in the search PATH,
14344 # but as the default
14345 # location of the library.
14346
14347 case $cc_basename in
14348 CC*)
14349 # FIXME: insert proper C++ library support
14350 ld_shlibs_CXX=no
14351 ;;
14352 aCC*)
14353 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14354 # Commands to make compiler produce verbose output that lists
14355 # what "hidden" libraries, object files and flags are used when
14356 # linking a shared library.
14357 #
14358 # There doesn't appear to be a way to prevent this compiler from
14359 # explicitly linking system object files so we need to strip them
14360 # from the output so that they don't get included in the library
14361 # dependencies.
14362 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"'
14363 ;;
14364 *)
14365 if test "$GXX" = yes; then
14366 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14367 else
14368 # FIXME: insert proper C++ library support
14369 ld_shlibs_CXX=no
14370 fi
14371 ;;
14372 esac
14373 ;;
14374
14375 hpux10*|hpux11*)
14376 if test $with_gnu_ld = no; then
14377 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14378 hardcode_libdir_separator_CXX=:
14379
14380 case $host_cpu in
14381 hppa*64*|ia64*)
14382 ;;
14383 *)
14384 export_dynamic_flag_spec_CXX='${wl}-E'
14385 ;;
14386 esac
14387 fi
14388 case $host_cpu in
14389 hppa*64*|ia64*)
14390 hardcode_direct_CXX=no
14391 hardcode_shlibpath_var_CXX=no
14392 ;;
14393 *)
14394 hardcode_direct_CXX=yes
14395 hardcode_direct_absolute_CXX=yes
14396 hardcode_minus_L_CXX=yes # Not in the search PATH,
14397 # but as the default
14398 # location of the library.
14399 ;;
14400 esac
14401
14402 case $cc_basename in
14403 CC*)
14404 # FIXME: insert proper C++ library support
14405 ld_shlibs_CXX=no
14406 ;;
14407 aCC*)
14408 case $host_cpu in
14409 hppa*64*)
14410 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14411 ;;
14412 ia64*)
14413 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14414 ;;
14415 *)
14416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14417 ;;
14418 esac
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14422 #
14423 # There doesn't appear to be a way to prevent this compiler from
14424 # explicitly linking system object files so we need to strip them
14425 # from the output so that they don't get included in the library
14426 # dependencies.
14427 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"'
14428 ;;
14429 *)
14430 if test "$GXX" = yes; then
14431 if test $with_gnu_ld = no; then
14432 case $host_cpu in
14433 hppa*64*)
14434 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14435 ;;
14436 ia64*)
14437 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438 ;;
14439 *)
14440 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'
14441 ;;
14442 esac
14443 fi
14444 else
14445 # FIXME: insert proper C++ library support
14446 ld_shlibs_CXX=no
14447 fi
14448 ;;
14449 esac
14450 ;;
14451
14452 interix[3-9]*)
14453 hardcode_direct_CXX=no
14454 hardcode_shlibpath_var_CXX=no
14455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14456 export_dynamic_flag_spec_CXX='${wl}-E'
14457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14458 # Instead, shared libraries are loaded at an image base (0x10000000 by
14459 # default) and relocated if they conflict, which is a slow very memory
14460 # consuming and fragmenting process. To avoid this, we pick a random,
14461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14463 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'
14464 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'
14465 ;;
14466 irix5* | irix6*)
14467 case $cc_basename in
14468 CC*)
14469 # SGI C++
14470 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'
14471
14472 # Archives containing C++ object files must be created using
14473 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14474 # necessary to make sure instantiated templates are included
14475 # in the archive.
14476 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14477 ;;
14478 *)
14479 if test "$GXX" = yes; then
14480 if test "$with_gnu_ld" = no; then
14481 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'
14482 else
14483 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'
14484 fi
14485 fi
14486 link_all_deplibs_CXX=yes
14487 ;;
14488 esac
14489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14490 hardcode_libdir_separator_CXX=:
14491 inherit_rpath_CXX=yes
14492 ;;
14493
14494 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14495 case $cc_basename in
14496 KCC*)
14497 # Kuck and Associates, Inc. (KAI) C++ Compiler
14498
14499 # KCC will only create a shared library if the output file
14500 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14501 # to its proper name (with version) after linking.
14502 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'
14503 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'
14504 # Commands to make compiler produce verbose output that lists
14505 # what "hidden" libraries, object files and flags are used when
14506 # linking a shared library.
14507 #
14508 # There doesn't appear to be a way to prevent this compiler from
14509 # explicitly linking system object files so we need to strip them
14510 # from the output so that they don't get included in the library
14511 # dependencies.
14512 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"'
14513
14514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14516
14517 # Archives containing C++ object files must be created using
14518 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14519 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14520 ;;
14521 icpc* | ecpc* )
14522 # Intel C++
14523 with_gnu_ld=yes
14524 # version 8.0 and above of icpc choke on multiply defined symbols
14525 # if we add $predep_objects and $postdep_objects, however 7.1 and
14526 # earlier do not add the objects themselves.
14527 case `$CC -V 2>&1` in
14528 *"Version 7."*)
14529 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14530 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'
14531 ;;
14532 *) # Version 8.0 or newer
14533 tmp_idyn=
14534 case $host_cpu in
14535 ia64*) tmp_idyn=' -i_dynamic';;
14536 esac
14537 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14538 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'
14539 ;;
14540 esac
14541 archive_cmds_need_lc_CXX=no
14542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14543 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14544 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14545 ;;
14546 pgCC* | pgcpp*)
14547 # Portland Group C++ compiler
14548 case `$CC -V` in
14549 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14550 prelink_cmds_CXX='tpldir=Template.dir~
14551 rm -rf $tpldir~
14552 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14553 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14554 old_archive_cmds_CXX='tpldir=Template.dir~
14555 rm -rf $tpldir~
14556 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14557 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14558 $RANLIB $oldlib'
14559 archive_cmds_CXX='tpldir=Template.dir~
14560 rm -rf $tpldir~
14561 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14562 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14563 archive_expsym_cmds_CXX='tpldir=Template.dir~
14564 rm -rf $tpldir~
14565 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14566 $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'
14567 ;;
14568 *) # Version 6 and above use weak symbols
14569 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14570 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'
14571 ;;
14572 esac
14573
14574 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14576 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'
14577 ;;
14578 cxx*)
14579 # Compaq C++
14580 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14581 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'
14582
14583 runpath_var=LD_RUN_PATH
14584 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14585 hardcode_libdir_separator_CXX=:
14586
14587 # Commands to make compiler produce verbose output that lists
14588 # what "hidden" libraries, object files and flags are used when
14589 # linking a shared library.
14590 #
14591 # There doesn't appear to be a way to prevent this compiler from
14592 # explicitly linking system object files so we need to strip them
14593 # from the output so that they don't get included in the library
14594 # dependencies.
14595 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'
14596 ;;
14597 xl* | mpixl* | bgxl*)
14598 # IBM XL 8.0 on PPC, with GNU ld
14599 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14601 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602 if test "x$supports_anon_versioning" = xyes; then
14603 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14604 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14605 echo "local: *; };" >> $output_objdir/$libname.ver~
14606 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14607 fi
14608 ;;
14609 *)
14610 case `$CC -V 2>&1 | sed 5q` in
14611 *Sun\ C*)
14612 # Sun C++ 5.9
14613 no_undefined_flag_CXX=' -zdefs'
14614 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14615 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'
14616 hardcode_libdir_flag_spec_CXX='-R$libdir'
14617 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'
14618 compiler_needs_object_CXX=yes
14619
14620 # Not sure whether something based on
14621 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14622 # would be better.
14623 output_verbose_link_cmd='func_echo_all'
14624
14625 # Archives containing C++ object files must be created using
14626 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14627 # necessary to make sure instantiated templates are included
14628 # in the archive.
14629 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14630 ;;
14631 esac
14632 ;;
14633 esac
14634 ;;
14635
14636 lynxos*)
14637 # FIXME: insert proper C++ library support
14638 ld_shlibs_CXX=no
14639 ;;
14640
14641 m88k*)
14642 # FIXME: insert proper C++ library support
14643 ld_shlibs_CXX=no
14644 ;;
14645
14646 mvs*)
14647 case $cc_basename in
14648 cxx*)
14649 # FIXME: insert proper C++ library support
14650 ld_shlibs_CXX=no
14651 ;;
14652 *)
14653 # FIXME: insert proper C++ library support
14654 ld_shlibs_CXX=no
14655 ;;
14656 esac
14657 ;;
14658
14659 netbsd*)
14660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14661 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14662 wlarc=
14663 hardcode_libdir_flag_spec_CXX='-R$libdir'
14664 hardcode_direct_CXX=yes
14665 hardcode_shlibpath_var_CXX=no
14666 fi
14667 # Workaround some broken pre-1.5 toolchains
14668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14669 ;;
14670
14671 *nto* | *qnx*)
14672 ld_shlibs_CXX=yes
14673 ;;
14674
14675 openbsd2*)
14676 # C++ shared libraries are fairly broken
14677 ld_shlibs_CXX=no
14678 ;;
14679
14680 openbsd*)
14681 if test -f /usr/libexec/ld.so; then
14682 hardcode_direct_CXX=yes
14683 hardcode_shlibpath_var_CXX=no
14684 hardcode_direct_absolute_CXX=yes
14685 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14689 export_dynamic_flag_spec_CXX='${wl}-E'
14690 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14691 fi
14692 output_verbose_link_cmd=func_echo_all
14693 else
14694 ld_shlibs_CXX=no
14695 fi
14696 ;;
14697
14698 osf3* | osf4* | osf5*)
14699 case $cc_basename in
14700 KCC*)
14701 # Kuck and Associates, Inc. (KAI) C++ Compiler
14702
14703 # KCC will only create a shared library if the output file
14704 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14705 # to its proper name (with version) after linking.
14706 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'
14707
14708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14709 hardcode_libdir_separator_CXX=:
14710
14711 # Archives containing C++ object files must be created using
14712 # the KAI C++ compiler.
14713 case $host in
14714 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14715 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14716 esac
14717 ;;
14718 RCC*)
14719 # Rational C++ 2.4.1
14720 # FIXME: insert proper C++ library support
14721 ld_shlibs_CXX=no
14722 ;;
14723 cxx*)
14724 case $host in
14725 osf3*)
14726 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14727 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'
14728 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14729 ;;
14730 *)
14731 allow_undefined_flag_CXX=' -expect_unresolved \*'
14732 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'
14733 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14734 echo "-hidden">> $lib.exp~
14735 $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~
14736 $RM $lib.exp'
14737 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14738 ;;
14739 esac
14740
14741 hardcode_libdir_separator_CXX=:
14742
14743 # Commands to make compiler produce verbose output that lists
14744 # what "hidden" libraries, object files and flags are used when
14745 # linking a shared library.
14746 #
14747 # There doesn't appear to be a way to prevent this compiler from
14748 # explicitly linking system object files so we need to strip them
14749 # from the output so that they don't get included in the library
14750 # dependencies.
14751 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"'
14752 ;;
14753 *)
14754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14755 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14756 case $host in
14757 osf3*)
14758 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'
14759 ;;
14760 *)
14761 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'
14762 ;;
14763 esac
14764
14765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14766 hardcode_libdir_separator_CXX=:
14767
14768 # Commands to make compiler produce verbose output that lists
14769 # what "hidden" libraries, object files and flags are used when
14770 # linking a shared library.
14771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14772
14773 else
14774 # FIXME: insert proper C++ library support
14775 ld_shlibs_CXX=no
14776 fi
14777 ;;
14778 esac
14779 ;;
14780
14781 psos*)
14782 # FIXME: insert proper C++ library support
14783 ld_shlibs_CXX=no
14784 ;;
14785
14786 sunos4*)
14787 case $cc_basename in
14788 CC*)
14789 # Sun C++ 4.x
14790 # FIXME: insert proper C++ library support
14791 ld_shlibs_CXX=no
14792 ;;
14793 lcc*)
14794 # Lucid
14795 # FIXME: insert proper C++ library support
14796 ld_shlibs_CXX=no
14797 ;;
14798 *)
14799 # FIXME: insert proper C++ library support
14800 ld_shlibs_CXX=no
14801 ;;
14802 esac
14803 ;;
14804
14805 solaris*)
14806 case $cc_basename in
14807 CC* | sunCC*)
14808 # Sun C++ 4.2, 5.x and Centerline C++
14809 archive_cmds_need_lc_CXX=yes
14810 no_undefined_flag_CXX=' -zdefs'
14811 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14812 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14813 $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'
14814
14815 hardcode_libdir_flag_spec_CXX='-R$libdir'
14816 hardcode_shlibpath_var_CXX=no
14817 case $host_os in
14818 solaris2.[0-5] | solaris2.[0-5].*) ;;
14819 *)
14820 # The compiler driver will combine and reorder linker options,
14821 # but understands `-z linker_flag'.
14822 # Supported since Solaris 2.6 (maybe 2.5.1?)
14823 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14824 ;;
14825 esac
14826 link_all_deplibs_CXX=yes
14827
14828 output_verbose_link_cmd='func_echo_all'
14829
14830 # Archives containing C++ object files must be created using
14831 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14832 # necessary to make sure instantiated templates are included
14833 # in the archive.
14834 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14835 ;;
14836 gcx*)
14837 # Green Hills C++ Compiler
14838 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14839
14840 # The C++ compiler must be used to create the archive.
14841 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14842 ;;
14843 *)
14844 # GNU C++ compiler with Solaris linker
14845 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14846 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14847 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14848 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14849 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14850 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14851
14852 # Commands to make compiler produce verbose output that lists
14853 # what "hidden" libraries, object files and flags are used when
14854 # linking a shared library.
14855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14856 else
14857 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14858 # platform.
14859 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14860 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14861 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14862
14863 # Commands to make compiler produce verbose output that lists
14864 # what "hidden" libraries, object files and flags are used when
14865 # linking a shared library.
14866 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14867 fi
14868
14869 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14870 case $host_os in
14871 solaris2.[0-5] | solaris2.[0-5].*) ;;
14872 *)
14873 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14874 ;;
14875 esac
14876 fi
14877 ;;
14878 esac
14879 ;;
14880
14881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14882 no_undefined_flag_CXX='${wl}-z,text'
14883 archive_cmds_need_lc_CXX=no
14884 hardcode_shlibpath_var_CXX=no
14885 runpath_var='LD_RUN_PATH'
14886
14887 case $cc_basename in
14888 CC*)
14889 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14890 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891 ;;
14892 *)
14893 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14895 ;;
14896 esac
14897 ;;
14898
14899 sysv5* | sco3.2v5* | sco5v6*)
14900 # Note: We can NOT use -z defs as we might desire, because we do not
14901 # link with -lc, and that would cause any symbols used from libc to
14902 # always be unresolved, which means just about no library would
14903 # ever link correctly. If we're not using GNU ld we use -z text
14904 # though, which does catch some bad symbols but isn't as heavy-handed
14905 # as -z defs.
14906 no_undefined_flag_CXX='${wl}-z,text'
14907 allow_undefined_flag_CXX='${wl}-z,nodefs'
14908 archive_cmds_need_lc_CXX=no
14909 hardcode_shlibpath_var_CXX=no
14910 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14911 hardcode_libdir_separator_CXX=':'
14912 link_all_deplibs_CXX=yes
14913 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14914 runpath_var='LD_RUN_PATH'
14915
14916 case $cc_basename in
14917 CC*)
14918 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14921 '"$old_archive_cmds_CXX"
14922 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14923 '"$reload_cmds_CXX"
14924 ;;
14925 *)
14926 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14927 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14928 ;;
14929 esac
14930 ;;
14931
14932 tandem*)
14933 case $cc_basename in
14934 NCC*)
14935 # NonStop-UX NCC 3.20
14936 # FIXME: insert proper C++ library support
14937 ld_shlibs_CXX=no
14938 ;;
14939 *)
14940 # FIXME: insert proper C++ library support
14941 ld_shlibs_CXX=no
14942 ;;
14943 esac
14944 ;;
14945
14946 vxworks*)
14947 # FIXME: insert proper C++ library support
14948 ld_shlibs_CXX=no
14949 ;;
14950
14951 *)
14952 # FIXME: insert proper C++ library support
14953 ld_shlibs_CXX=no
14954 ;;
14955 esac
14956
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14958 $as_echo "$ld_shlibs_CXX" >&6; }
14959 test "$ld_shlibs_CXX" = no && can_build_shared=no
14960
14961 GCC_CXX="$GXX"
14962 LD_CXX="$LD"
14963
14964 ## CAVEAT EMPTOR:
14965 ## There is no encapsulation within the following macros, do not change
14966 ## the running order or otherwise move them around unless you know exactly
14967 ## what you are doing...
14968 # Dependencies to place before and after the object being linked:
14969 predep_objects_CXX=
14970 postdep_objects_CXX=
14971 predeps_CXX=
14972 postdeps_CXX=
14973 compiler_lib_search_path_CXX=
14974
14975 cat > conftest.$ac_ext <<_LT_EOF
14976 class Foo
14977 {
14978 public:
14979 Foo (void) { a = 0; }
14980 private:
14981 int a;
14982 };
14983 _LT_EOF
14984
14985
14986 _lt_libdeps_save_CFLAGS=$CFLAGS
14987 case "$CC $CFLAGS " in #(
14988 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14989 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14990 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14991 esac
14992
14993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14994 (eval $ac_compile) 2>&5
14995 ac_status=$?
14996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 test $ac_status = 0; }; then
14998 # Parse the compiler output and extract the necessary
14999 # objects, libraries and library flags.
15000
15001 # Sentinel used to keep track of whether or not we are before
15002 # the conftest object file.
15003 pre_test_object_deps_done=no
15004
15005 for p in `eval "$output_verbose_link_cmd"`; do
15006 case ${prev}${p} in
15007
15008 -L* | -R* | -l*)
15009 # Some compilers place space between "-{L,R}" and the path.
15010 # Remove the space.
15011 if test $p = "-L" ||
15012 test $p = "-R"; then
15013 prev=$p
15014 continue
15015 fi
15016
15017 # Expand the sysroot to ease extracting the directories later.
15018 if test -z "$prev"; then
15019 case $p in
15020 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15021 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15022 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15023 esac
15024 fi
15025 case $p in
15026 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15027 esac
15028 if test "$pre_test_object_deps_done" = no; then
15029 case ${prev} in
15030 -L | -R)
15031 # Internal compiler library paths should come after those
15032 # provided the user. The postdeps already come after the
15033 # user supplied libs so there is no need to process them.
15034 if test -z "$compiler_lib_search_path_CXX"; then
15035 compiler_lib_search_path_CXX="${prev}${p}"
15036 else
15037 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15038 fi
15039 ;;
15040 # The "-l" case would never come before the object being
15041 # linked, so don't bother handling this case.
15042 esac
15043 else
15044 if test -z "$postdeps_CXX"; then
15045 postdeps_CXX="${prev}${p}"
15046 else
15047 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15048 fi
15049 fi
15050 prev=
15051 ;;
15052
15053 *.lto.$objext) ;; # Ignore GCC LTO objects
15054 *.$objext)
15055 # This assumes that the test object file only shows up
15056 # once in the compiler output.
15057 if test "$p" = "conftest.$objext"; then
15058 pre_test_object_deps_done=yes
15059 continue
15060 fi
15061
15062 if test "$pre_test_object_deps_done" = no; then
15063 if test -z "$predep_objects_CXX"; then
15064 predep_objects_CXX="$p"
15065 else
15066 predep_objects_CXX="$predep_objects_CXX $p"
15067 fi
15068 else
15069 if test -z "$postdep_objects_CXX"; then
15070 postdep_objects_CXX="$p"
15071 else
15072 postdep_objects_CXX="$postdep_objects_CXX $p"
15073 fi
15074 fi
15075 ;;
15076
15077 *) ;; # Ignore the rest.
15078
15079 esac
15080 done
15081
15082 # Clean up.
15083 rm -f a.out a.exe
15084 else
15085 echo "libtool.m4: error: problem compiling CXX test program"
15086 fi
15087
15088 $RM -f confest.$objext
15089 CFLAGS=$_lt_libdeps_save_CFLAGS
15090
15091 # PORTME: override above test on systems where it is broken
15092 case $host_os in
15093 interix[3-9]*)
15094 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15095 # hack all around it, let's just trust "g++" to DTRT.
15096 predep_objects_CXX=
15097 postdep_objects_CXX=
15098 postdeps_CXX=
15099 ;;
15100
15101 linux*)
15102 case `$CC -V 2>&1 | sed 5q` in
15103 *Sun\ C*)
15104 # Sun C++ 5.9
15105
15106 # The more standards-conforming stlport4 library is
15107 # incompatible with the Cstd library. Avoid specifying
15108 # it if it's in CXXFLAGS. Ignore libCrun as
15109 # -library=stlport4 depends on it.
15110 case " $CXX $CXXFLAGS " in
15111 *" -library=stlport4 "*)
15112 solaris_use_stlport4=yes
15113 ;;
15114 esac
15115
15116 if test "$solaris_use_stlport4" != yes; then
15117 postdeps_CXX='-library=Cstd -library=Crun'
15118 fi
15119 ;;
15120 esac
15121 ;;
15122
15123 solaris*)
15124 case $cc_basename in
15125 CC* | sunCC*)
15126 # The more standards-conforming stlport4 library is
15127 # incompatible with the Cstd library. Avoid specifying
15128 # it if it's in CXXFLAGS. Ignore libCrun as
15129 # -library=stlport4 depends on it.
15130 case " $CXX $CXXFLAGS " in
15131 *" -library=stlport4 "*)
15132 solaris_use_stlport4=yes
15133 ;;
15134 esac
15135
15136 # Adding this requires a known-good setup of shared libraries for
15137 # Sun compiler versions before 5.6, else PIC objects from an old
15138 # archive will be linked into the output, leading to subtle bugs.
15139 if test "$solaris_use_stlport4" != yes; then
15140 postdeps_CXX='-library=Cstd -library=Crun'
15141 fi
15142 ;;
15143 esac
15144 ;;
15145 esac
15146
15147
15148 case " $postdeps_CXX " in
15149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15150 esac
15151 compiler_lib_search_dirs_CXX=
15152 if test -n "${compiler_lib_search_path_CXX}"; then
15153 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15154 fi
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 lt_prog_compiler_wl_CXX=
15187 lt_prog_compiler_pic_CXX=
15188 lt_prog_compiler_static_CXX=
15189
15190
15191 # C++ specific cases for pic, static, wl, etc.
15192 if test "$GXX" = yes; then
15193 lt_prog_compiler_wl_CXX='-Wl,'
15194 lt_prog_compiler_static_CXX='-static'
15195
15196 case $host_os in
15197 aix*)
15198 # All AIX code is PIC.
15199 if test "$host_cpu" = ia64; then
15200 # AIX 5 now supports IA64 processor
15201 lt_prog_compiler_static_CXX='-Bstatic'
15202 fi
15203 ;;
15204
15205 amigaos*)
15206 case $host_cpu in
15207 powerpc)
15208 # see comment about AmigaOS4 .so support
15209 lt_prog_compiler_pic_CXX='-fPIC'
15210 ;;
15211 m68k)
15212 # FIXME: we need at least 68020 code to build shared libraries, but
15213 # adding the `-m68020' flag to GCC prevents building anything better,
15214 # like `-m68040'.
15215 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15216 ;;
15217 esac
15218 ;;
15219
15220 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15221 # PIC is the default for these OSes.
15222 ;;
15223 mingw* | cygwin* | os2* | pw32* | cegcc*)
15224 # This hack is so that the source file can tell whether it is being
15225 # built for inclusion in a dll (and should export symbols for example).
15226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15227 # (--disable-auto-import) libraries
15228 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15229 ;;
15230 darwin* | rhapsody*)
15231 # PIC is the default on this platform
15232 # Common symbols not allowed in MH_DYLIB files
15233 lt_prog_compiler_pic_CXX='-fno-common'
15234 ;;
15235 *djgpp*)
15236 # DJGPP does not support shared libraries at all
15237 lt_prog_compiler_pic_CXX=
15238 ;;
15239 haiku*)
15240 # PIC is the default for Haiku.
15241 # The "-static" flag exists, but is broken.
15242 lt_prog_compiler_static_CXX=
15243 ;;
15244 interix[3-9]*)
15245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15246 # Instead, we relocate shared libraries at runtime.
15247 ;;
15248 sysv4*MP*)
15249 if test -d /usr/nec; then
15250 lt_prog_compiler_pic_CXX=-Kconform_pic
15251 fi
15252 ;;
15253 hpux*)
15254 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15255 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15256 # sets the default TLS model and affects inlining.
15257 case $host_cpu in
15258 hppa*64*)
15259 ;;
15260 *)
15261 lt_prog_compiler_pic_CXX='-fPIC'
15262 ;;
15263 esac
15264 ;;
15265 *qnx* | *nto*)
15266 # QNX uses GNU C++, but need to define -shared option too, otherwise
15267 # it will coredump.
15268 lt_prog_compiler_pic_CXX='-fPIC -shared'
15269 ;;
15270 *)
15271 lt_prog_compiler_pic_CXX='-fPIC'
15272 ;;
15273 esac
15274 else
15275 case $host_os in
15276 aix[4-9]*)
15277 # All AIX code is PIC.
15278 if test "$host_cpu" = ia64; then
15279 # AIX 5 now supports IA64 processor
15280 lt_prog_compiler_static_CXX='-Bstatic'
15281 else
15282 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15283 fi
15284 ;;
15285 chorus*)
15286 case $cc_basename in
15287 cxch68*)
15288 # Green Hills C++ Compiler
15289 # _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"
15290 ;;
15291 esac
15292 ;;
15293 mingw* | cygwin* | os2* | pw32* | cegcc*)
15294 # This hack is so that the source file can tell whether it is being
15295 # built for inclusion in a dll (and should export symbols for example).
15296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15297 ;;
15298 dgux*)
15299 case $cc_basename in
15300 ec++*)
15301 lt_prog_compiler_pic_CXX='-KPIC'
15302 ;;
15303 ghcx*)
15304 # Green Hills C++ Compiler
15305 lt_prog_compiler_pic_CXX='-pic'
15306 ;;
15307 *)
15308 ;;
15309 esac
15310 ;;
15311 freebsd* | dragonfly*)
15312 # FreeBSD uses GNU C++
15313 ;;
15314 hpux9* | hpux10* | hpux11*)
15315 case $cc_basename in
15316 CC*)
15317 lt_prog_compiler_wl_CXX='-Wl,'
15318 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15319 if test "$host_cpu" != ia64; then
15320 lt_prog_compiler_pic_CXX='+Z'
15321 fi
15322 ;;
15323 aCC*)
15324 lt_prog_compiler_wl_CXX='-Wl,'
15325 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15326 case $host_cpu in
15327 hppa*64*|ia64*)
15328 # +Z the default
15329 ;;
15330 *)
15331 lt_prog_compiler_pic_CXX='+Z'
15332 ;;
15333 esac
15334 ;;
15335 *)
15336 ;;
15337 esac
15338 ;;
15339 interix*)
15340 # This is c89, which is MS Visual C++ (no shared libs)
15341 # Anyone wants to do a port?
15342 ;;
15343 irix5* | irix6* | nonstopux*)
15344 case $cc_basename in
15345 CC*)
15346 lt_prog_compiler_wl_CXX='-Wl,'
15347 lt_prog_compiler_static_CXX='-non_shared'
15348 # CC pic flag -KPIC is the default.
15349 ;;
15350 *)
15351 ;;
15352 esac
15353 ;;
15354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15355 case $cc_basename in
15356 KCC*)
15357 # KAI C++ Compiler
15358 lt_prog_compiler_wl_CXX='--backend -Wl,'
15359 lt_prog_compiler_pic_CXX='-fPIC'
15360 ;;
15361 ecpc* )
15362 # old Intel C++ for x86_64 which still supported -KPIC.
15363 lt_prog_compiler_wl_CXX='-Wl,'
15364 lt_prog_compiler_pic_CXX='-KPIC'
15365 lt_prog_compiler_static_CXX='-static'
15366 ;;
15367 icpc* )
15368 # Intel C++, used to be incompatible with GCC.
15369 # ICC 10 doesn't accept -KPIC any more.
15370 lt_prog_compiler_wl_CXX='-Wl,'
15371 lt_prog_compiler_pic_CXX='-fPIC'
15372 lt_prog_compiler_static_CXX='-static'
15373 ;;
15374 pgCC* | pgcpp*)
15375 # Portland Group C++ compiler
15376 lt_prog_compiler_wl_CXX='-Wl,'
15377 lt_prog_compiler_pic_CXX='-fpic'
15378 lt_prog_compiler_static_CXX='-Bstatic'
15379 ;;
15380 cxx*)
15381 # Compaq C++
15382 # Make sure the PIC flag is empty. It appears that all Alpha
15383 # Linux and Compaq Tru64 Unix objects are PIC.
15384 lt_prog_compiler_pic_CXX=
15385 lt_prog_compiler_static_CXX='-non_shared'
15386 ;;
15387 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15388 # IBM XL 8.0, 9.0 on PPC and BlueGene
15389 lt_prog_compiler_wl_CXX='-Wl,'
15390 lt_prog_compiler_pic_CXX='-qpic'
15391 lt_prog_compiler_static_CXX='-qstaticlink'
15392 ;;
15393 *)
15394 case `$CC -V 2>&1 | sed 5q` in
15395 *Sun\ C*)
15396 # Sun C++ 5.9
15397 lt_prog_compiler_pic_CXX='-KPIC'
15398 lt_prog_compiler_static_CXX='-Bstatic'
15399 lt_prog_compiler_wl_CXX='-Qoption ld '
15400 ;;
15401 esac
15402 ;;
15403 esac
15404 ;;
15405 lynxos*)
15406 ;;
15407 m88k*)
15408 ;;
15409 mvs*)
15410 case $cc_basename in
15411 cxx*)
15412 lt_prog_compiler_pic_CXX='-W c,exportall'
15413 ;;
15414 *)
15415 ;;
15416 esac
15417 ;;
15418 netbsd* | netbsdelf*-gnu)
15419 ;;
15420 *qnx* | *nto*)
15421 # QNX uses GNU C++, but need to define -shared option too, otherwise
15422 # it will coredump.
15423 lt_prog_compiler_pic_CXX='-fPIC -shared'
15424 ;;
15425 osf3* | osf4* | osf5*)
15426 case $cc_basename in
15427 KCC*)
15428 lt_prog_compiler_wl_CXX='--backend -Wl,'
15429 ;;
15430 RCC*)
15431 # Rational C++ 2.4.1
15432 lt_prog_compiler_pic_CXX='-pic'
15433 ;;
15434 cxx*)
15435 # Digital/Compaq C++
15436 lt_prog_compiler_wl_CXX='-Wl,'
15437 # Make sure the PIC flag is empty. It appears that all Alpha
15438 # Linux and Compaq Tru64 Unix objects are PIC.
15439 lt_prog_compiler_pic_CXX=
15440 lt_prog_compiler_static_CXX='-non_shared'
15441 ;;
15442 *)
15443 ;;
15444 esac
15445 ;;
15446 psos*)
15447 ;;
15448 solaris*)
15449 case $cc_basename in
15450 CC* | sunCC*)
15451 # Sun C++ 4.2, 5.x and Centerline C++
15452 lt_prog_compiler_pic_CXX='-KPIC'
15453 lt_prog_compiler_static_CXX='-Bstatic'
15454 lt_prog_compiler_wl_CXX='-Qoption ld '
15455 ;;
15456 gcx*)
15457 # Green Hills C++ Compiler
15458 lt_prog_compiler_pic_CXX='-PIC'
15459 ;;
15460 *)
15461 ;;
15462 esac
15463 ;;
15464 sunos4*)
15465 case $cc_basename in
15466 CC*)
15467 # Sun C++ 4.x
15468 lt_prog_compiler_pic_CXX='-pic'
15469 lt_prog_compiler_static_CXX='-Bstatic'
15470 ;;
15471 lcc*)
15472 # Lucid
15473 lt_prog_compiler_pic_CXX='-pic'
15474 ;;
15475 *)
15476 ;;
15477 esac
15478 ;;
15479 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15480 case $cc_basename in
15481 CC*)
15482 lt_prog_compiler_wl_CXX='-Wl,'
15483 lt_prog_compiler_pic_CXX='-KPIC'
15484 lt_prog_compiler_static_CXX='-Bstatic'
15485 ;;
15486 esac
15487 ;;
15488 tandem*)
15489 case $cc_basename in
15490 NCC*)
15491 # NonStop-UX NCC 3.20
15492 lt_prog_compiler_pic_CXX='-KPIC'
15493 ;;
15494 *)
15495 ;;
15496 esac
15497 ;;
15498 vxworks*)
15499 ;;
15500 *)
15501 lt_prog_compiler_can_build_shared_CXX=no
15502 ;;
15503 esac
15504 fi
15505
15506 case $host_os in
15507 # For platforms which do not support PIC, -DPIC is meaningless:
15508 *djgpp*)
15509 lt_prog_compiler_pic_CXX=
15510 ;;
15511 *)
15512 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15513 ;;
15514 esac
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15517 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15518 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15522 fi
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15524 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15525 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15526
15527 #
15528 # Check to make sure the PIC flag actually works.
15529 #
15530 if test -n "$lt_prog_compiler_pic_CXX"; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15532 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15533 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 lt_cv_prog_compiler_pic_works_CXX=no
15537 ac_outfile=conftest.$ac_objext
15538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15539 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15540 # Insert the option either (1) after the last *FLAGS variable, or
15541 # (2) before a word containing "conftest.", or (3) at the end.
15542 # Note that $ac_compile itself does not contain backslashes and begins
15543 # with a dollar sign (not a hyphen), so the echo should work correctly.
15544 # The option is referenced via a variable to avoid confusing sed.
15545 lt_compile=`echo "$ac_compile" | $SED \
15546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15548 -e 's:$: $lt_compiler_flag:'`
15549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15550 (eval "$lt_compile" 2>conftest.err)
15551 ac_status=$?
15552 cat conftest.err >&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 if (exit $ac_status) && test -s "$ac_outfile"; then
15555 # The compiler can only warn and ignore the option if not recognized
15556 # So say no if there are warnings other than the usual output.
15557 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15560 lt_cv_prog_compiler_pic_works_CXX=yes
15561 fi
15562 fi
15563 $RM conftest*
15564
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15567 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15568
15569 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15570 case $lt_prog_compiler_pic_CXX in
15571 "" | " "*) ;;
15572 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15573 esac
15574 else
15575 lt_prog_compiler_pic_CXX=
15576 lt_prog_compiler_can_build_shared_CXX=no
15577 fi
15578
15579 fi
15580
15581
15582
15583
15584
15585 #
15586 # Check to make sure the static flag actually works.
15587 #
15588 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15590 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15591 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 lt_cv_prog_compiler_static_works_CXX=no
15595 save_LDFLAGS="$LDFLAGS"
15596 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15599 # The linker can only warn and ignore the option if not recognized
15600 # So say no if there are warnings
15601 if test -s conftest.err; then
15602 # Append any errors to the config.log.
15603 cat conftest.err 1>&5
15604 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15606 if diff conftest.exp conftest.er2 >/dev/null; then
15607 lt_cv_prog_compiler_static_works_CXX=yes
15608 fi
15609 else
15610 lt_cv_prog_compiler_static_works_CXX=yes
15611 fi
15612 fi
15613 $RM -r conftest*
15614 LDFLAGS="$save_LDFLAGS"
15615
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15618 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15619
15620 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15621 :
15622 else
15623 lt_prog_compiler_static_CXX=
15624 fi
15625
15626
15627
15628
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15630 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15631 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 lt_cv_prog_compiler_c_o_CXX=no
15635 $RM -r conftest 2>/dev/null
15636 mkdir conftest
15637 cd conftest
15638 mkdir out
15639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15640
15641 lt_compiler_flag="-o out/conftest2.$ac_objext"
15642 # Insert the option either (1) after the last *FLAGS variable, or
15643 # (2) before a word containing "conftest.", or (3) at the end.
15644 # Note that $ac_compile itself does not contain backslashes and begins
15645 # with a dollar sign (not a hyphen), so the echo should work correctly.
15646 lt_compile=`echo "$ac_compile" | $SED \
15647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15649 -e 's:$: $lt_compiler_flag:'`
15650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15651 (eval "$lt_compile" 2>out/conftest.err)
15652 ac_status=$?
15653 cat out/conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15656 then
15657 # The compiler can only warn and ignore the option if not recognized
15658 # So say no if there are warnings
15659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15660 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15661 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15662 lt_cv_prog_compiler_c_o_CXX=yes
15663 fi
15664 fi
15665 chmod u+w . 2>&5
15666 $RM conftest*
15667 # SGI C++ compiler will create directory out/ii_files/ for
15668 # template instantiation
15669 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15670 $RM out/* && rmdir out
15671 cd ..
15672 $RM -r conftest
15673 $RM conftest*
15674
15675 fi
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15677 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15678
15679
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15682 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15683 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 lt_cv_prog_compiler_c_o_CXX=no
15687 $RM -r conftest 2>/dev/null
15688 mkdir conftest
15689 cd conftest
15690 mkdir out
15691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15692
15693 lt_compiler_flag="-o out/conftest2.$ac_objext"
15694 # Insert the option either (1) after the last *FLAGS variable, or
15695 # (2) before a word containing "conftest.", or (3) at the end.
15696 # Note that $ac_compile itself does not contain backslashes and begins
15697 # with a dollar sign (not a hyphen), so the echo should work correctly.
15698 lt_compile=`echo "$ac_compile" | $SED \
15699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15701 -e 's:$: $lt_compiler_flag:'`
15702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15703 (eval "$lt_compile" 2>out/conftest.err)
15704 ac_status=$?
15705 cat out/conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15708 then
15709 # The compiler can only warn and ignore the option if not recognized
15710 # So say no if there are warnings
15711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15712 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15713 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15714 lt_cv_prog_compiler_c_o_CXX=yes
15715 fi
15716 fi
15717 chmod u+w . 2>&5
15718 $RM conftest*
15719 # SGI C++ compiler will create directory out/ii_files/ for
15720 # template instantiation
15721 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15722 $RM out/* && rmdir out
15723 cd ..
15724 $RM -r conftest
15725 $RM conftest*
15726
15727 fi
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15729 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15730
15731
15732
15733
15734 hard_links="nottested"
15735 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15736 # do not overwrite the value of need_locks provided by the user
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15738 $as_echo_n "checking if we can lock with hard links... " >&6; }
15739 hard_links=yes
15740 $RM conftest*
15741 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15742 touch conftest.a
15743 ln conftest.a conftest.b 2>&5 || hard_links=no
15744 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15746 $as_echo "$hard_links" >&6; }
15747 if test "$hard_links" = no; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15749 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15750 need_locks=warn
15751 fi
15752 else
15753 need_locks=no
15754 fi
15755
15756
15757
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15759 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15760
15761 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15762 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15763 case $host_os in
15764 aix[4-9]*)
15765 # If we're using GNU nm, then we don't want the "-C" option.
15766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15767 # Also, AIX nm treats weak defined symbols like other global defined
15768 # symbols, whereas GNU nm marks them as "W".
15769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15770 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15771 else
15772 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15773 fi
15774 ;;
15775 pw32*)
15776 export_symbols_cmds_CXX="$ltdll_cmds"
15777 ;;
15778 cygwin* | mingw* | cegcc*)
15779 case $cc_basename in
15780 cl*)
15781 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15782 ;;
15783 *)
15784 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'
15785 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15786 ;;
15787 esac
15788 ;;
15789 linux* | k*bsd*-gnu | gnu*)
15790 link_all_deplibs_CXX=no
15791 ;;
15792 *)
15793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15794 ;;
15795 esac
15796
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15798 $as_echo "$ld_shlibs_CXX" >&6; }
15799 test "$ld_shlibs_CXX" = no && can_build_shared=no
15800
15801 with_gnu_ld_CXX=$with_gnu_ld
15802
15803
15804
15805
15806
15807
15808 #
15809 # Do we need to explicitly link libc?
15810 #
15811 case "x$archive_cmds_need_lc_CXX" in
15812 x|xyes)
15813 # Assume -lc should be added
15814 archive_cmds_need_lc_CXX=yes
15815
15816 if test "$enable_shared" = yes && test "$GCC" = yes; then
15817 case $archive_cmds_CXX in
15818 *'~'*)
15819 # FIXME: we may have to deal with multi-command sequences.
15820 ;;
15821 '$CC '*)
15822 # Test whether the compiler implicitly links with -lc since on some
15823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15824 # to ld, don't add -lc before -lgcc.
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15827 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 $RM conftest*
15831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15832
15833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15834 (eval $ac_compile) 2>&5
15835 ac_status=$?
15836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15837 test $ac_status = 0; } 2>conftest.err; then
15838 soname=conftest
15839 lib=conftest
15840 libobjs=conftest.$ac_objext
15841 deplibs=
15842 wl=$lt_prog_compiler_wl_CXX
15843 pic_flag=$lt_prog_compiler_pic_CXX
15844 compiler_flags=-v
15845 linker_flags=-v
15846 verstring=
15847 output_objdir=.
15848 libname=conftest
15849 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15850 allow_undefined_flag_CXX=
15851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15852 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15853 ac_status=$?
15854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15855 test $ac_status = 0; }
15856 then
15857 lt_cv_archive_cmds_need_lc_CXX=no
15858 else
15859 lt_cv_archive_cmds_need_lc_CXX=yes
15860 fi
15861 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15862 else
15863 cat conftest.err 1>&5
15864 fi
15865 $RM conftest*
15866
15867 fi
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15869 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15870 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15871 ;;
15872 esac
15873 fi
15874 ;;
15875 esac
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15939 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15940
15941 library_names_spec=
15942 libname_spec='lib$name'
15943 soname_spec=
15944 shrext_cmds=".so"
15945 postinstall_cmds=
15946 postuninstall_cmds=
15947 finish_cmds=
15948 finish_eval=
15949 shlibpath_var=
15950 shlibpath_overrides_runpath=unknown
15951 version_type=none
15952 dynamic_linker="$host_os ld.so"
15953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15954 need_lib_prefix=unknown
15955 hardcode_into_libs=no
15956
15957 # when you set need_version to no, make sure it does not cause -set_version
15958 # flags to be left without arguments
15959 need_version=unknown
15960
15961 case $host_os in
15962 aix3*)
15963 version_type=linux # correct to gnu/linux during the next big refactor
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15965 shlibpath_var=LIBPATH
15966
15967 # AIX 3 has no versioning support, so we append a major version to the name.
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 ;;
15970
15971 aix[4-9]*)
15972 version_type=linux # correct to gnu/linux during the next big refactor
15973 need_lib_prefix=no
15974 need_version=no
15975 hardcode_into_libs=yes
15976 if test "$host_cpu" = ia64; then
15977 # AIX 5 supports IA64
15978 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 else
15981 # With GCC up to 2.95.x, collect2 would create an import file
15982 # for dependence libraries. The import file would start with
15983 # the line `#! .'. This would cause the generated library to
15984 # depend on `.', always an invalid library. This was fixed in
15985 # development snapshots of GCC prior to 3.0.
15986 case $host_os in
15987 aix4 | aix4.[01] | aix4.[01].*)
15988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15989 echo ' yes '
15990 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15991 :
15992 else
15993 can_build_shared=no
15994 fi
15995 ;;
15996 esac
15997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15998 # soname into executable. Probably we can add versioning support to
15999 # collect2, so additional links can be useful in future.
16000 if test "$aix_use_runtimelinking" = yes; then
16001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16002 # instead of lib<name>.a to let people know that these are not
16003 # typical AIX shared libraries.
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 else
16006 # We preserve .a as extension for shared libraries through AIX4.2
16007 # and later when we are not doing run time linking.
16008 library_names_spec='${libname}${release}.a $libname.a'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 fi
16011 shlibpath_var=LIBPATH
16012 fi
16013 ;;
16014
16015 amigaos*)
16016 case $host_cpu in
16017 powerpc)
16018 # Since July 2007 AmigaOS4 officially supports .so libraries.
16019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021 ;;
16022 m68k)
16023 library_names_spec='$libname.ixlibrary $libname.a'
16024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16025 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16026 ;;
16027 esac
16028 ;;
16029
16030 beos*)
16031 library_names_spec='${libname}${shared_ext}'
16032 dynamic_linker="$host_os ld.so"
16033 shlibpath_var=LIBRARY_PATH
16034 ;;
16035
16036 bsdi[45]*)
16037 version_type=linux # correct to gnu/linux during the next big refactor
16038 need_version=no
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16045 # the default ld.so.conf also contains /usr/contrib/lib and
16046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16047 # libtool to hard-code these into programs
16048 ;;
16049
16050 cygwin* | mingw* | pw32* | cegcc*)
16051 version_type=windows
16052 shrext_cmds=".dll"
16053 need_version=no
16054 need_lib_prefix=no
16055
16056 case $GCC,$cc_basename in
16057 yes,*)
16058 # gcc
16059 library_names_spec='$libname.dll.a'
16060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16061 postinstall_cmds='base_file=`basename \${file}`~
16062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16063 dldir=$destdir/`dirname \$dlpath`~
16064 test -d \$dldir || mkdir -p \$dldir~
16065 $install_prog $dir/$dlname \$dldir/$dlname~
16066 chmod a+x \$dldir/$dlname~
16067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16069 fi'
16070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16071 dlpath=$dir/\$dldll~
16072 $RM \$dlpath'
16073 shlibpath_overrides_runpath=yes
16074
16075 case $host_os in
16076 cygwin*)
16077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16079
16080 ;;
16081 mingw* | cegcc*)
16082 # MinGW DLLs use traditional 'lib' prefix
16083 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084 ;;
16085 pw32*)
16086 # pw32 DLLs use 'pw' prefix rather than 'lib'
16087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16088 ;;
16089 esac
16090 dynamic_linker='Win32 ld.exe'
16091 ;;
16092
16093 *,cl*)
16094 # Native MSVC
16095 libname_spec='$name'
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 library_names_spec='${libname}.dll.lib'
16098
16099 case $build_os in
16100 mingw*)
16101 sys_lib_search_path_spec=
16102 lt_save_ifs=$IFS
16103 IFS=';'
16104 for lt_path in $LIB
16105 do
16106 IFS=$lt_save_ifs
16107 # Let DOS variable expansion print the short 8.3 style file name.
16108 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16109 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16110 done
16111 IFS=$lt_save_ifs
16112 # Convert to MSYS style.
16113 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16114 ;;
16115 cygwin*)
16116 # Convert to unix form, then to dos form, then back to unix form
16117 # but this time dos style (no spaces!) so that the unix form looks
16118 # like /cygdrive/c/PROGRA~1:/cygdr...
16119 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16120 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16121 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16122 ;;
16123 *)
16124 sys_lib_search_path_spec="$LIB"
16125 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16126 # It is most probably a Windows format PATH.
16127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16128 else
16129 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16130 fi
16131 # FIXME: find the short name or the path components, as spaces are
16132 # common. (e.g. "Program Files" -> "PROGRA~1")
16133 ;;
16134 esac
16135
16136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16137 postinstall_cmds='base_file=`basename \${file}`~
16138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16139 dldir=$destdir/`dirname \$dlpath`~
16140 test -d \$dldir || mkdir -p \$dldir~
16141 $install_prog $dir/$dlname \$dldir/$dlname'
16142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16143 dlpath=$dir/\$dldll~
16144 $RM \$dlpath'
16145 shlibpath_overrides_runpath=yes
16146 dynamic_linker='Win32 link.exe'
16147 ;;
16148
16149 *)
16150 # Assume MSVC wrapper
16151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16152 dynamic_linker='Win32 ld.exe'
16153 ;;
16154 esac
16155 # FIXME: first we should search . and the directory the executable is in
16156 shlibpath_var=PATH
16157 ;;
16158
16159 darwin* | rhapsody*)
16160 dynamic_linker="$host_os dyld"
16161 version_type=darwin
16162 need_lib_prefix=no
16163 need_version=no
16164 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16165 soname_spec='${libname}${release}${major}$shared_ext'
16166 shlibpath_overrides_runpath=yes
16167 shlibpath_var=DYLD_LIBRARY_PATH
16168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16169
16170 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16171 ;;
16172
16173 dgux*)
16174 version_type=linux # correct to gnu/linux during the next big refactor
16175 need_lib_prefix=no
16176 need_version=no
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 shlibpath_var=LD_LIBRARY_PATH
16180 ;;
16181
16182 freebsd* | dragonfly*)
16183 # DragonFly does not have aout. When/if they implement a new
16184 # versioning mechanism, adjust this.
16185 if test -x /usr/bin/objformat; then
16186 objformat=`/usr/bin/objformat`
16187 else
16188 case $host_os in
16189 freebsd[23].*) objformat=aout ;;
16190 *) objformat=elf ;;
16191 esac
16192 fi
16193 version_type=freebsd-$objformat
16194 case $version_type in
16195 freebsd-elf*)
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16197 need_version=no
16198 need_lib_prefix=no
16199 ;;
16200 freebsd-*)
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16202 need_version=yes
16203 ;;
16204 esac
16205 shlibpath_var=LD_LIBRARY_PATH
16206 case $host_os in
16207 freebsd2.*)
16208 shlibpath_overrides_runpath=yes
16209 ;;
16210 freebsd3.[01]* | freebsdelf3.[01]*)
16211 shlibpath_overrides_runpath=yes
16212 hardcode_into_libs=yes
16213 ;;
16214 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16215 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16216 shlibpath_overrides_runpath=no
16217 hardcode_into_libs=yes
16218 ;;
16219 *) # from 4.6 on, and DragonFly
16220 shlibpath_overrides_runpath=yes
16221 hardcode_into_libs=yes
16222 ;;
16223 esac
16224 ;;
16225
16226 gnu*)
16227 version_type=linux # correct to gnu/linux during the next big refactor
16228 need_lib_prefix=no
16229 need_version=no
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=no
16234 hardcode_into_libs=yes
16235 ;;
16236
16237 haiku*)
16238 version_type=linux # correct to gnu/linux during the next big refactor
16239 need_lib_prefix=no
16240 need_version=no
16241 dynamic_linker="$host_os runtime_loader"
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes
16246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16247 hardcode_into_libs=yes
16248 ;;
16249
16250 hpux9* | hpux10* | hpux11*)
16251 # Give a soname corresponding to the major version so that dld.sl refuses to
16252 # link against other versions.
16253 version_type=sunos
16254 need_lib_prefix=no
16255 need_version=no
16256 case $host_cpu in
16257 ia64*)
16258 shrext_cmds='.so'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.so"
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 if test "X$HPUX_IA64_MODE" = X32; then
16266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16267 else
16268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16269 fi
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16271 ;;
16272 hppa*64*)
16273 shrext_cmds='.sl'
16274 hardcode_into_libs=yes
16275 dynamic_linker="$host_os dld.sl"
16276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16282 ;;
16283 *)
16284 shrext_cmds='.sl'
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=SHLIB_PATH
16287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 ;;
16291 esac
16292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16293 postinstall_cmds='chmod 555 $lib'
16294 # or fails outright, so override atomically:
16295 install_override_mode=555
16296 ;;
16297
16298 interix[3-9]*)
16299 version_type=linux # correct to gnu/linux during the next big refactor
16300 need_lib_prefix=no
16301 need_version=no
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=no
16307 hardcode_into_libs=yes
16308 ;;
16309
16310 irix5* | irix6* | nonstopux*)
16311 case $host_os in
16312 nonstopux*) version_type=nonstopux ;;
16313 *)
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 version_type=linux # correct to gnu/linux during the next big refactor
16316 else
16317 version_type=irix
16318 fi ;;
16319 esac
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 case $host_os in
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16327 ;;
16328 *)
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16337 esac
16338 ;;
16339 esac
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16345 ;;
16346
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16349 dynamic_linker=no
16350 ;;
16351
16352 # This must be glibc/ELF.
16353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16354 version_type=linux # correct to gnu/linux during the next big refactor
16355 need_lib_prefix=no
16356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362
16363 # Some binutils ld are patched to set DT_RUNPATH
16364 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 lt_cv_shlibpath_overrides_runpath=no
16368 save_LDFLAGS=$LDFLAGS
16369 save_libdir=$libdir
16370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374
16375 int
16376 main ()
16377 {
16378
16379 ;
16380 return 0;
16381 }
16382 _ACEOF
16383 if ac_fn_cxx_try_link "$LINENO"; then :
16384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16385 lt_cv_shlibpath_overrides_runpath=yes
16386 fi
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 LDFLAGS=$save_LDFLAGS
16391 libdir=$save_libdir
16392
16393 fi
16394
16395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16396
16397 # This implies no fast_install, which is unacceptable.
16398 # Some rework will be needed to allow for fast_install
16399 # before this can be enabled.
16400 hardcode_into_libs=yes
16401
16402 # Append ld.so.conf contents to the search path
16403 if test -f /etc/ld.so.conf; then
16404 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' ' '`
16405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16406 fi
16407
16408 # We used to test for /lib/ld.so.1 and disable shared libraries on
16409 # powerpc, because MkLinux only supported shared libraries with the
16410 # GNU dynamic linker. Since this was broken with cross compilers,
16411 # most powerpc-linux boxes support dynamic linking these days and
16412 # people can always --disable-shared, the test was removed, and we
16413 # assume the GNU/Linux dynamic linker is in use.
16414 dynamic_linker='GNU/Linux ld.so'
16415 ;;
16416
16417 netbsdelf*-gnu)
16418 version_type=linux
16419 need_lib_prefix=no
16420 need_version=no
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 shlibpath_overrides_runpath=no
16425 hardcode_into_libs=yes
16426 dynamic_linker='NetBSD ld.elf_so'
16427 ;;
16428
16429 netbsd*)
16430 version_type=sunos
16431 need_lib_prefix=no
16432 need_version=no
16433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 dynamic_linker='NetBSD (a.out) ld.so'
16437 else
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16439 soname_spec='${libname}${release}${shared_ext}$major'
16440 dynamic_linker='NetBSD ld.elf_so'
16441 fi
16442 shlibpath_var=LD_LIBRARY_PATH
16443 shlibpath_overrides_runpath=yes
16444 hardcode_into_libs=yes
16445 ;;
16446
16447 newsos6)
16448 version_type=linux # correct to gnu/linux during the next big refactor
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 shlibpath_overrides_runpath=yes
16452 ;;
16453
16454 *nto* | *qnx*)
16455 version_type=qnx
16456 need_lib_prefix=no
16457 need_version=no
16458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=no
16462 hardcode_into_libs=yes
16463 dynamic_linker='ldqnx.so'
16464 ;;
16465
16466 openbsd*)
16467 version_type=sunos
16468 sys_lib_dlsearch_path_spec="/usr/lib"
16469 need_lib_prefix=no
16470 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16471 case $host_os in
16472 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16473 *) need_version=no ;;
16474 esac
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16479 case $host_os in
16480 openbsd2.[89] | openbsd2.[89].*)
16481 shlibpath_overrides_runpath=no
16482 ;;
16483 *)
16484 shlibpath_overrides_runpath=yes
16485 ;;
16486 esac
16487 else
16488 shlibpath_overrides_runpath=yes
16489 fi
16490 ;;
16491
16492 os2*)
16493 libname_spec='$name'
16494 shrext_cmds=".dll"
16495 need_lib_prefix=no
16496 library_names_spec='$libname${shared_ext} $libname.a'
16497 dynamic_linker='OS/2 ld.exe'
16498 shlibpath_var=LIBPATH
16499 ;;
16500
16501 osf3* | osf4* | osf5*)
16502 version_type=osf
16503 need_lib_prefix=no
16504 need_version=no
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16510 ;;
16511
16512 rdos*)
16513 dynamic_linker=no
16514 ;;
16515
16516 solaris*)
16517 version_type=linux # correct to gnu/linux during the next big refactor
16518 need_lib_prefix=no
16519 need_version=no
16520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 shlibpath_var=LD_LIBRARY_PATH
16523 shlibpath_overrides_runpath=yes
16524 hardcode_into_libs=yes
16525 # ldd complains unless libraries are executable
16526 postinstall_cmds='chmod +x $lib'
16527 ;;
16528
16529 sunos4*)
16530 version_type=sunos
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 shlibpath_overrides_runpath=yes
16535 if test "$with_gnu_ld" = yes; then
16536 need_lib_prefix=no
16537 fi
16538 need_version=yes
16539 ;;
16540
16541 sysv4 | sysv4.3*)
16542 version_type=linux # correct to gnu/linux during the next big refactor
16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LD_LIBRARY_PATH
16546 case $host_vendor in
16547 sni)
16548 shlibpath_overrides_runpath=no
16549 need_lib_prefix=no
16550 runpath_var=LD_RUN_PATH
16551 ;;
16552 siemens)
16553 need_lib_prefix=no
16554 ;;
16555 motorola)
16556 need_lib_prefix=no
16557 need_version=no
16558 shlibpath_overrides_runpath=no
16559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16560 ;;
16561 esac
16562 ;;
16563
16564 sysv4*MP*)
16565 if test -d /usr/nec ;then
16566 version_type=linux # correct to gnu/linux during the next big refactor
16567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16568 soname_spec='$libname${shared_ext}.$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 fi
16571 ;;
16572
16573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16574 version_type=freebsd-elf
16575 need_lib_prefix=no
16576 need_version=no
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 shlibpath_overrides_runpath=yes
16581 hardcode_into_libs=yes
16582 if test "$with_gnu_ld" = yes; then
16583 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16584 else
16585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16586 case $host_os in
16587 sco3.2v5*)
16588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16589 ;;
16590 esac
16591 fi
16592 sys_lib_dlsearch_path_spec='/usr/lib'
16593 ;;
16594
16595 tpf*)
16596 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16597 version_type=linux # correct to gnu/linux during the next big refactor
16598 need_lib_prefix=no
16599 need_version=no
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 shlibpath_overrides_runpath=no
16603 hardcode_into_libs=yes
16604 ;;
16605
16606 uts4*)
16607 version_type=linux # correct to gnu/linux during the next big refactor
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609 soname_spec='${libname}${release}${shared_ext}$major'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 ;;
16612
16613 *)
16614 dynamic_linker=no
16615 ;;
16616 esac
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16618 $as_echo "$dynamic_linker" >&6; }
16619 test "$dynamic_linker" = no && can_build_shared=no
16620
16621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16622 if test "$GCC" = yes; then
16623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16624 fi
16625
16626 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16627 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16628 fi
16629 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16630 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16631 fi
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16671 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16672 hardcode_action_CXX=
16673 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16674 test -n "$runpath_var_CXX" ||
16675 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16676
16677 # We can hardcode non-existent directories.
16678 if test "$hardcode_direct_CXX" != no &&
16679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16680 # have to relink, otherwise we might link with an installed library
16681 # when we should be linking with a yet-to-be-installed one
16682 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16683 test "$hardcode_minus_L_CXX" != no; then
16684 # Linking always hardcodes the temporary library directory.
16685 hardcode_action_CXX=relink
16686 else
16687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16688 hardcode_action_CXX=immediate
16689 fi
16690 else
16691 # We cannot hardcode anything, or else we can only hardcode existing
16692 # directories.
16693 hardcode_action_CXX=unsupported
16694 fi
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16696 $as_echo "$hardcode_action_CXX" >&6; }
16697
16698 if test "$hardcode_action_CXX" = relink ||
16699 test "$inherit_rpath_CXX" = yes; then
16700 # Fast installation is not supported
16701 enable_fast_install=no
16702 elif test "$shlibpath_overrides_runpath" = yes ||
16703 test "$enable_shared" = no; then
16704 # Fast installation is not necessary
16705 enable_fast_install=needless
16706 fi
16707
16708
16709
16710
16711
16712
16713
16714 fi # test -n "$compiler"
16715
16716 CC=$lt_save_CC
16717 CFLAGS=$lt_save_CFLAGS
16718 LDCXX=$LD
16719 LD=$lt_save_LD
16720 GCC=$lt_save_GCC
16721 with_gnu_ld=$lt_save_with_gnu_ld
16722 lt_cv_path_LDCXX=$lt_cv_path_LD
16723 lt_cv_path_LD=$lt_save_path_LD
16724 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16725 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16726 fi # test "$_lt_caught_CXX_error" != yes
16727
16728 ac_ext=c
16729 ac_cpp='$CPP $CPPFLAGS'
16730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748 ac_config_commands="$ac_config_commands libtool"
16749
16750
16751
16752
16753 # Only expand once:
16754
16755
16756
16757 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
16758
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16760 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16761 # Check whether --enable-maintainer-mode was given.
16762 if test "${enable_maintainer_mode+set}" = set; then :
16763 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16764 else
16765 USE_MAINTAINER_MODE=no
16766 fi
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16769 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16770
16771
16772 if test $USE_MAINTAINER_MODE = yes; then
16773 MAINTAINER_MODE_TRUE=
16774 MAINTAINER_MODE_FALSE='#'
16775 else
16776 MAINTAINER_MODE_TRUE='#'
16777 MAINTAINER_MODE_FALSE=
16778 fi
16779
16780 MAINT=$MAINTAINER_MODE_TRUE
16781
16782
16783
16784 if test "x$GCC" = "xyes"; then
16785 case " $CFLAGS " in
16786 *[\ \ ]-Wall[\ \ ]*) ;;
16787 *) CFLAGS="$CFLAGS -Wall" ;;
16788 esac
16789 fi
16790
16791 GLIB_REQUIRED_VERSION=2.8.0
16792
16793
16794
16795
16796
16797
16798
16799
16800 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16801 if test -n "$ac_tool_prefix"; then
16802 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16803 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805 $as_echo_n "checking for $ac_word... " >&6; }
16806 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 case $PKG_CONFIG in
16810 [\\/]* | ?:[\\/]*)
16811 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16812 ;;
16813 *)
16814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16815 for as_dir in $PATH
16816 do
16817 IFS=$as_save_IFS
16818 test -z "$as_dir" && as_dir=.
16819 for ac_exec_ext in '' $ac_executable_extensions; do
16820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16821 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 break 2
16824 fi
16825 done
16826 done
16827 IFS=$as_save_IFS
16828
16829 ;;
16830 esac
16831 fi
16832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16833 if test -n "$PKG_CONFIG"; then
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16835 $as_echo "$PKG_CONFIG" >&6; }
16836 else
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838 $as_echo "no" >&6; }
16839 fi
16840
16841
16842 fi
16843 if test -z "$ac_cv_path_PKG_CONFIG"; then
16844 ac_pt_PKG_CONFIG=$PKG_CONFIG
16845 # Extract the first word of "pkg-config", so it can be a program name with args.
16846 set dummy pkg-config; ac_word=$2
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16848 $as_echo_n "checking for $ac_word... " >&6; }
16849 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 case $ac_pt_PKG_CONFIG in
16853 [\\/]* | ?:[\\/]*)
16854 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16855 ;;
16856 *)
16857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $PATH
16859 do
16860 IFS=$as_save_IFS
16861 test -z "$as_dir" && as_dir=.
16862 for ac_exec_ext in '' $ac_executable_extensions; do
16863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16864 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16866 break 2
16867 fi
16868 done
16869 done
16870 IFS=$as_save_IFS
16871
16872 ;;
16873 esac
16874 fi
16875 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16876 if test -n "$ac_pt_PKG_CONFIG"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16878 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16879 else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16882 fi
16883
16884 if test "x$ac_pt_PKG_CONFIG" = x; then
16885 PKG_CONFIG=""
16886 else
16887 case $cross_compiling:$ac_tool_warned in
16888 yes:)
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16891 ac_tool_warned=yes ;;
16892 esac
16893 PKG_CONFIG=$ac_pt_PKG_CONFIG
16894 fi
16895 else
16896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16897 fi
16898
16899 fi
16900 if test -n "$PKG_CONFIG"; then
16901 _pkg_min_version=0.9.0
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16903 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16906 $as_echo "yes" >&6; }
16907 else
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16909 $as_echo "no" >&6; }
16910 PKG_CONFIG=""
16911 fi
16912 fi
16913
16914 pkg_failed=no
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
16916 $as_echo_n "checking for GLIB... " >&6; }
16917
16918 if test -n "$GLIB_CFLAGS"; then
16919 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
16920 elif test -n "$PKG_CONFIG"; then
16921 if test -n "$PKG_CONFIG" && \
16922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
16923 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
16924 ac_status=$?
16925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16926 test $ac_status = 0; }; then
16927 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
16928 test "x$?" != "x0" && pkg_failed=yes
16929 else
16930 pkg_failed=yes
16931 fi
16932 else
16933 pkg_failed=untried
16934 fi
16935 if test -n "$GLIB_LIBS"; then
16936 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
16937 elif test -n "$PKG_CONFIG"; then
16938 if test -n "$PKG_CONFIG" && \
16939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\""; } >&5
16940 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
16941 ac_status=$?
16942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16943 test $ac_status = 0; }; then
16944 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
16945 test "x$?" != "x0" && pkg_failed=yes
16946 else
16947 pkg_failed=yes
16948 fi
16949 else
16950 pkg_failed=untried
16951 fi
16952
16953
16954
16955 if test $pkg_failed = yes; then
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16958
16959 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16960 _pkg_short_errors_supported=yes
16961 else
16962 _pkg_short_errors_supported=no
16963 fi
16964 if test $_pkg_short_errors_supported = yes; then
16965 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
16966 else
16967 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>&1`
16968 fi
16969 # Put the nasty error message in config.log where it belongs
16970 echo "$GLIB_PKG_ERRORS" >&5
16971
16972 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
16973
16974 $GLIB_PKG_ERRORS
16975
16976 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16977 installed software in a non-standard prefix.
16978
16979 Alternatively, you may set the environment variables GLIB_CFLAGS
16980 and GLIB_LIBS to avoid the need to call pkg-config.
16981 See the pkg-config man page for more details." "$LINENO" 5
16982 elif test $pkg_failed = untried; then
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16987 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16988 is in your PATH or set the PKG_CONFIG environment variable to the full
16989 path to pkg-config.
16990
16991 Alternatively, you may set the environment variables GLIB_CFLAGS
16992 and GLIB_LIBS to avoid the need to call pkg-config.
16993 See the pkg-config man page for more details.
16994
16995 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16996 See \`config.log' for more details" "$LINENO" 5; }
16997 else
16998 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
16999 GLIB_LIBS=$pkg_cv_GLIB_LIBS
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17001 $as_echo "yes" >&6; }
17002
17003 fi
17004
17005 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
17006
17007
17008 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
17009
17010
17011 GLIB_DIR=`$PKG_CONFIG --variable=libdir glib-2.0`
17012
17013
17014 for ac_func in bind_textdomain_codeset
17015 do :
17016 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17017 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
17020 _ACEOF
17021
17022 fi
17023 done
17024
17025
17026 DATADIR="${datadir}/liblqr-1"
17027
17028
17029 # Check whether --enable-install-man was given.
17030 if test "${enable_install_man+set}" = set; then :
17031 enableval=$enable_install_man; case "${enableval}" in #(
17032 yes) :
17033 install_man=true ;; #(
17034 no) :
17035 install_man=false ;; #(
17036 *) :
17037 as_fn_error $? "bad value ${enableval} for --enable-install-man" "$LINENO" 5
17038 ;;
17039 esac
17040 else
17041 install_man=false
17042 fi
17043
17044
17045
17046 if test x$install_man = xtrue; then
17047 INSTMAN_TRUE=
17048 INSTMAN_FALSE='#'
17049 else
17050 INSTMAN_TRUE='#'
17051 INSTMAN_FALSE=
17052 fi
17053
17054
17055 # Check whether --enable-legacy-macros was given.
17056 if test "${enable_legacy_macros+set}" = set; then :
17057 enableval=$enable_legacy_macros; case "${enableval}" in #(
17058 yes) :
17059 legacy_macros=true ;; #(
17060 no) :
17061 legacy_macros=false ;; #(
17062 *) :
17063 as_fn_error $? "bad value ${enableval} for --enable-legacy-macros" "$LINENO" 5
17064 ;;
17065 esac
17066 else
17067 legacy_macros=true
17068 fi
17069
17070 if test "x$legacy_macros" = "xfalse"; then :
17071
17072 $as_echo "#define LQR_DISABLE_LEGACY_MACROS /**/" >>confdefs.h
17073
17074 else
17075 :
17076
17077 fi
17078
17079 # Check whether --enable-declspec was given.
17080 if test "${enable_declspec+set}" = set; then :
17081 enableval=$enable_declspec; case "${enableval}" in #(
17082 yes) :
17083 declspec=true ;; #(
17084 no) :
17085 declspec=false ;; #(
17086 *) :
17087 as_fn_error $? "bad value ${enableval} for --enable-declspec" "$LINENO" 5
17088 ;;
17089 esac
17090 else
17091 declspec=true
17092 fi
17093
17094 if test "x$declspec" = "xfalse"; then :
17095
17096 $as_echo "#define LQR_DISABLE_DECLSPEC /**/" >>confdefs.h
17097
17098 else
17099 :
17100
17101 fi
17102
17103
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on Win32" >&5
17105 $as_echo_n "checking if we are on Win32... " >&6; }
17106 ac_ext=c
17107 ac_cpp='$CPP $CPPFLAGS'
17108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17111
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114
17115 #ifndef WIN32
17116 #errrrrrrrrorrrrr
17117 #endif
17118
17119 _ACEOF
17120 if ac_fn_c_try_cpp "$LINENO"; then :
17121 is_win32=true
17122 else
17123 is_win32=false
17124
17125 fi
17126 rm -f conftest.err conftest.i conftest.$ac_ext
17127 if test "x$is_win32" = "xtrue"; then :
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17129 $as_echo "yes" >&6; }; LT_NOUNDEF_FLAG="-no-undefined"; FVISIBILITY_FLAG=""
17130 elif { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }; LT_NOUNDEF_FLAG=""; FVISIBILITY_FLAG="-fvisibility=\"hidden\""; then :
17132
17133 fi
17134
17135
17136
17137
17138
17139 $as_echo "#define LQR_EXPORTS /**/" >>confdefs.h
17140
17141
17142 ac_config_files="$ac_config_files Makefile lqr/Makefile man/Makefile lqr-1.pc"
17143
17144
17145
17146 cat >confcache <<\_ACEOF
17147 # This file is a shell script that caches the results of configure
17148 # tests run on this system so they can be shared between configure
17149 # scripts and configure runs, see configure's option --config-cache.
17150 # It is not useful on other systems. If it contains results you don't
17151 # want to keep, you may remove or edit it.
17152 #
17153 # config.status only pays attention to the cache file if you give it
17154 # the --recheck option to rerun configure.
17155 #
17156 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17157 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17158 # following values.
17159
17160 _ACEOF
17161
17162 # The following way of writing the cache mishandles newlines in values,
17163 # but we know of no workaround that is simple, portable, and efficient.
17164 # So, we kill variables containing newlines.
17165 # Ultrix sh set writes to stderr and can't be redirected directly,
17166 # and sets the high bit in the cache file unless we assign to the vars.
17167 (
17168 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17169 eval ac_val=\$$ac_var
17170 case $ac_val in #(
17171 *${as_nl}*)
17172 case $ac_var in #(
17173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17175 esac
17176 case $ac_var in #(
17177 _ | IFS | as_nl) ;; #(
17178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17179 *) { eval $ac_var=; unset $ac_var;} ;;
17180 esac ;;
17181 esac
17182 done
17183
17184 (set) 2>&1 |
17185 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17186 *${as_nl}ac_space=\ *)
17187 # `set' does not quote correctly, so add quotes: double-quote
17188 # substitution turns \\\\ into \\, and sed turns \\ into \.
17189 sed -n \
17190 "s/'/'\\\\''/g;
17191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17192 ;; #(
17193 *)
17194 # `set' quotes correctly as required by POSIX, so do not add quotes.
17195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17196 ;;
17197 esac |
17198 sort
17199 ) |
17200 sed '
17201 /^ac_cv_env_/b end
17202 t clear
17203 :clear
17204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17205 t end
17206 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17207 :end' >>confcache
17208 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17209 if test -w "$cache_file"; then
17210 if test "x$cache_file" != "x/dev/null"; then
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17212 $as_echo "$as_me: updating cache $cache_file" >&6;}
17213 if test ! -f "$cache_file" || test -h "$cache_file"; then
17214 cat confcache >"$cache_file"
17215 else
17216 case $cache_file in #(
17217 */* | ?:*)
17218 mv -f confcache "$cache_file"$$ &&
17219 mv -f "$cache_file"$$ "$cache_file" ;; #(
17220 *)
17221 mv -f confcache "$cache_file" ;;
17222 esac
17223 fi
17224 fi
17225 else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17227 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17228 fi
17229 fi
17230 rm -f confcache
17231
17232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17233 # Let make expand exec_prefix.
17234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17235
17236 DEFS=-DHAVE_CONFIG_H
17237
17238 ac_libobjs=
17239 ac_ltlibobjs=
17240 U=
17241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17242 # 1. Remove the extension, and $U if already installed.
17243 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17244 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17246 # will be set to the directory where LIBOBJS objects are built.
17247 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17248 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17249 done
17250 LIBOBJS=$ac_libobjs
17251
17252 LTLIBOBJS=$ac_ltlibobjs
17253
17254
17255 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17256 as_fn_error $? "conditional \"AMDEP\" was never defined.
17257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17258 fi
17259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17260 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17262 fi
17263 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17264 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17266 fi
17267 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17268 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17270 fi
17271 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17272 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17274 fi
17275 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17276 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17278 fi
17279 if test -z "${INSTMAN_TRUE}" && test -z "${INSTMAN_FALSE}"; then
17280 as_fn_error $? "conditional \"INSTMAN\" was never defined.
17281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17282 fi
17283
17284 : "${CONFIG_STATUS=./config.status}"
17285 ac_write_fail=0
17286 ac_clean_files_save=$ac_clean_files
17287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17289 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17290 as_write_fail=0
17291 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17292 #! $SHELL
17293 # Generated by $as_me.
17294 # Run this file to recreate the current configuration.
17295 # Compiler output produced by configure, useful for debugging
17296 # configure, is in config.log if it exists.
17297
17298 debug=false
17299 ac_cs_recheck=false
17300 ac_cs_silent=false
17301
17302 SHELL=\${CONFIG_SHELL-$SHELL}
17303 export SHELL
17304 _ASEOF
17305 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17306 ## -------------------- ##
17307 ## M4sh Initialization. ##
17308 ## -------------------- ##
17309
17310 # Be more Bourne compatible
17311 DUALCASE=1; export DUALCASE # for MKS sh
17312 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17313 emulate sh
17314 NULLCMD=:
17315 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17316 # is contrary to our usage. Disable this feature.
17317 alias -g '${1+"$@"}'='"$@"'
17318 setopt NO_GLOB_SUBST
17319 else
17320 case `(set -o) 2>/dev/null` in #(
17321 *posix*) :
17322 set -o posix ;; #(
17323 *) :
17324 ;;
17325 esac
17326 fi
17327
17328
17329 as_nl='
17330 '
17331 export as_nl
17332 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17333 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17334 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17336 # Prefer a ksh shell builtin over an external printf program on Solaris,
17337 # but without wasting forks for bash or zsh.
17338 if test -z "$BASH_VERSION$ZSH_VERSION" \
17339 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17340 as_echo='print -r --'
17341 as_echo_n='print -rn --'
17342 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17343 as_echo='printf %s\n'
17344 as_echo_n='printf %s'
17345 else
17346 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17347 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17348 as_echo_n='/usr/ucb/echo -n'
17349 else
17350 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17351 as_echo_n_body='eval
17352 arg=$1;
17353 case $arg in #(
17354 *"$as_nl"*)
17355 expr "X$arg" : "X\\(.*\\)$as_nl";
17356 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17357 esac;
17358 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17359 '
17360 export as_echo_n_body
17361 as_echo_n='sh -c $as_echo_n_body as_echo'
17362 fi
17363 export as_echo_body
17364 as_echo='sh -c $as_echo_body as_echo'
17365 fi
17366
17367 # The user is always right.
17368 if test "${PATH_SEPARATOR+set}" != set; then
17369 PATH_SEPARATOR=:
17370 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17371 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17372 PATH_SEPARATOR=';'
17373 }
17374 fi
17375
17376
17377 # IFS
17378 # We need space, tab and new line, in precisely that order. Quoting is
17379 # there to prevent editors from complaining about space-tab.
17380 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17381 # splitting by setting IFS to empty value.)
17382 IFS=" "" $as_nl"
17383
17384 # Find who we are. Look in the path if we contain no directory separator.
17385 as_myself=
17386 case $0 in #((
17387 *[\\/]* ) as_myself=$0 ;;
17388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17389 for as_dir in $PATH
17390 do
17391 IFS=$as_save_IFS
17392 test -z "$as_dir" && as_dir=.
17393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17394 done
17395 IFS=$as_save_IFS
17396
17397 ;;
17398 esac
17399 # We did not find ourselves, most probably we were run as `sh COMMAND'
17400 # in which case we are not to be found in the path.
17401 if test "x$as_myself" = x; then
17402 as_myself=$0
17403 fi
17404 if test ! -f "$as_myself"; then
17405 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17406 exit 1
17407 fi
17408
17409 # Unset variables that we do not need and which cause bugs (e.g. in
17410 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17411 # suppresses any "Segmentation fault" message there. '((' could
17412 # trigger a bug in pdksh 5.2.14.
17413 for as_var in BASH_ENV ENV MAIL MAILPATH
17414 do eval test x\${$as_var+set} = xset \
17415 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17416 done
17417 PS1='$ '
17418 PS2='> '
17419 PS4='+ '
17420
17421 # NLS nuisances.
17422 LC_ALL=C
17423 export LC_ALL
17424 LANGUAGE=C
17425 export LANGUAGE
17426
17427 # CDPATH.
17428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17429
17430
17431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17432 # ----------------------------------------
17433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17435 # script with STATUS, using 1 if that was 0.
17436 as_fn_error ()
17437 {
17438 as_status=$1; test $as_status -eq 0 && as_status=1
17439 if test "$4"; then
17440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17441 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17442 fi
17443 $as_echo "$as_me: error: $2" >&2
17444 as_fn_exit $as_status
17445 } # as_fn_error
17446
17447
17448 # as_fn_set_status STATUS
17449 # -----------------------
17450 # Set $? to STATUS, without forking.
17451 as_fn_set_status ()
17452 {
17453 return $1
17454 } # as_fn_set_status
17455
17456 # as_fn_exit STATUS
17457 # -----------------
17458 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17459 as_fn_exit ()
17460 {
17461 set +e
17462 as_fn_set_status $1
17463 exit $1
17464 } # as_fn_exit
17465
17466 # as_fn_unset VAR
17467 # ---------------
17468 # Portably unset VAR.
17469 as_fn_unset ()
17470 {
17471 { eval $1=; unset $1;}
17472 }
17473 as_unset=as_fn_unset
17474 # as_fn_append VAR VALUE
17475 # ----------------------
17476 # Append the text in VALUE to the end of the definition contained in VAR. Take
17477 # advantage of any shell optimizations that allow amortized linear growth over
17478 # repeated appends, instead of the typical quadratic growth present in naive
17479 # implementations.
17480 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17481 eval 'as_fn_append ()
17482 {
17483 eval $1+=\$2
17484 }'
17485 else
17486 as_fn_append ()
17487 {
17488 eval $1=\$$1\$2
17489 }
17490 fi # as_fn_append
17491
17492 # as_fn_arith ARG...
17493 # ------------------
17494 # Perform arithmetic evaluation on the ARGs, and store the result in the
17495 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17496 # must be portable across $(()) and expr.
17497 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17498 eval 'as_fn_arith ()
17499 {
17500 as_val=$(( $* ))
17501 }'
17502 else
17503 as_fn_arith ()
17504 {
17505 as_val=`expr "$@" || test $? -eq 1`
17506 }
17507 fi # as_fn_arith
17508
17509
17510 if expr a : '\(a\)' >/dev/null 2>&1 &&
17511 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17512 as_expr=expr
17513 else
17514 as_expr=false
17515 fi
17516
17517 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17518 as_basename=basename
17519 else
17520 as_basename=false
17521 fi
17522
17523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17524 as_dirname=dirname
17525 else
17526 as_dirname=false
17527 fi
17528
17529 as_me=`$as_basename -- "$0" ||
17530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17531 X"$0" : 'X\(//\)$' \| \
17532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17533 $as_echo X/"$0" |
17534 sed '/^.*\/\([^/][^/]*\)\/*$/{
17535 s//\1/
17536 q
17537 }
17538 /^X\/\(\/\/\)$/{
17539 s//\1/
17540 q
17541 }
17542 /^X\/\(\/\).*/{
17543 s//\1/
17544 q
17545 }
17546 s/.*/./; q'`
17547
17548 # Avoid depending upon Character Ranges.
17549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17552 as_cr_digits='0123456789'
17553 as_cr_alnum=$as_cr_Letters$as_cr_digits
17554
17555 ECHO_C= ECHO_N= ECHO_T=
17556 case `echo -n x` in #(((((
17557 -n*)
17558 case `echo 'xy\c'` in
17559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17560 xy) ECHO_C='\c';;
17561 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17562 ECHO_T=' ';;
17563 esac;;
17564 *)
17565 ECHO_N='-n';;
17566 esac
17567
17568 rm -f conf$$ conf$$.exe conf$$.file
17569 if test -d conf$$.dir; then
17570 rm -f conf$$.dir/conf$$.file
17571 else
17572 rm -f conf$$.dir
17573 mkdir conf$$.dir 2>/dev/null
17574 fi
17575 if (echo >conf$$.file) 2>/dev/null; then
17576 if ln -s conf$$.file conf$$ 2>/dev/null; then
17577 as_ln_s='ln -s'
17578 # ... but there are two gotchas:
17579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17581 # In both cases, we have to default to `cp -p'.
17582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17583 as_ln_s='cp -p'
17584 elif ln conf$$.file conf$$ 2>/dev/null; then
17585 as_ln_s=ln
17586 else
17587 as_ln_s='cp -p'
17588 fi
17589 else
17590 as_ln_s='cp -p'
17591 fi
17592 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17593 rmdir conf$$.dir 2>/dev/null
17594
17595
17596 # as_fn_mkdir_p
17597 # -------------
17598 # Create "$as_dir" as a directory, including parents if necessary.
17599 as_fn_mkdir_p ()
17600 {
17601
17602 case $as_dir in #(
17603 -*) as_dir=./$as_dir;;
17604 esac
17605 test -d "$as_dir" || eval $as_mkdir_p || {
17606 as_dirs=
17607 while :; do
17608 case $as_dir in #(
17609 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17610 *) as_qdir=$as_dir;;
17611 esac
17612 as_dirs="'$as_qdir' $as_dirs"
17613 as_dir=`$as_dirname -- "$as_dir" ||
17614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17615 X"$as_dir" : 'X\(//\)[^/]' \| \
17616 X"$as_dir" : 'X\(//\)$' \| \
17617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17618 $as_echo X"$as_dir" |
17619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17620 s//\1/
17621 q
17622 }
17623 /^X\(\/\/\)[^/].*/{
17624 s//\1/
17625 q
17626 }
17627 /^X\(\/\/\)$/{
17628 s//\1/
17629 q
17630 }
17631 /^X\(\/\).*/{
17632 s//\1/
17633 q
17634 }
17635 s/.*/./; q'`
17636 test -d "$as_dir" && break
17637 done
17638 test -z "$as_dirs" || eval "mkdir $as_dirs"
17639 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17640
17641
17642 } # as_fn_mkdir_p
17643 if mkdir -p . 2>/dev/null; then
17644 as_mkdir_p='mkdir -p "$as_dir"'
17645 else
17646 test -d ./-p && rmdir ./-p
17647 as_mkdir_p=false
17648 fi
17649
17650 if test -x / >/dev/null 2>&1; then
17651 as_test_x='test -x'
17652 else
17653 if ls -dL / >/dev/null 2>&1; then
17654 as_ls_L_option=L
17655 else
17656 as_ls_L_option=
17657 fi
17658 as_test_x='
17659 eval sh -c '\''
17660 if test -d "$1"; then
17661 test -d "$1/.";
17662 else
17663 case $1 in #(
17664 -*)set "./$1";;
17665 esac;
17666 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17667 ???[sx]*):;;*)false;;esac;fi
17668 '\'' sh
17669 '
17670 fi
17671 as_executable_p=$as_test_x
17672
17673 # Sed expression to map a string onto a valid CPP name.
17674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17675
17676 # Sed expression to map a string onto a valid variable name.
17677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17678
17679
17680 exec 6>&1
17681 ## ----------------------------------- ##
17682 ## Main body of $CONFIG_STATUS script. ##
17683 ## ----------------------------------- ##
17684 _ASEOF
17685 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17686
17687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17688 # Save the log message, to keep $0 and so on meaningful, and to
17689 # report actual input values of CONFIG_FILES etc. instead of their
17690 # values after options handling.
17691 ac_log="
17692 This file was extended by liblqr-1 $as_me 0.4.2, which was
17693 generated by GNU Autoconf 2.68. Invocation command line was
17694
17695 CONFIG_FILES = $CONFIG_FILES
17696 CONFIG_HEADERS = $CONFIG_HEADERS
17697 CONFIG_LINKS = $CONFIG_LINKS
17698 CONFIG_COMMANDS = $CONFIG_COMMANDS
17699 $ $0 $@
17700
17701 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17702 "
17703
17704 _ACEOF
17705
17706 case $ac_config_files in *"
17707 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17708 esac
17709
17710 case $ac_config_headers in *"
17711 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17712 esac
17713
17714
17715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17716 # Files that config.status was made for.
17717 config_files="$ac_config_files"
17718 config_headers="$ac_config_headers"
17719 config_commands="$ac_config_commands"
17720
17721 _ACEOF
17722
17723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17724 ac_cs_usage="\
17725 \`$as_me' instantiates files and other configuration actions
17726 from templates according to the current configuration. Unless the files
17727 and actions are specified as TAGs, all are instantiated by default.
17728
17729 Usage: $0 [OPTION]... [TAG]...
17730
17731 -h, --help print this help, then exit
17732 -V, --version print version number and configuration settings, then exit
17733 --config print configuration, then exit
17734 -q, --quiet, --silent
17735 do not print progress messages
17736 -d, --debug don't remove temporary files
17737 --recheck update $as_me by reconfiguring in the same conditions
17738 --file=FILE[:TEMPLATE]
17739 instantiate the configuration file FILE
17740 --header=FILE[:TEMPLATE]
17741 instantiate the configuration header FILE
17742
17743 Configuration files:
17744 $config_files
17745
17746 Configuration headers:
17747 $config_headers
17748
17749 Configuration commands:
17750 $config_commands
17751
17752 Report bugs to the package provider."
17753
17754 _ACEOF
17755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17756 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17757 ac_cs_version="\\
17758 liblqr-1 config.status 0.4.2
17759 configured by $0, generated by GNU Autoconf 2.68,
17760 with options \\"\$ac_cs_config\\"
17761
17762 Copyright (C) 2010 Free Software Foundation, Inc.
17763 This config.status script is free software; the Free Software Foundation
17764 gives unlimited permission to copy, distribute and modify it."
17765
17766 ac_pwd='$ac_pwd'
17767 srcdir='$srcdir'
17768 INSTALL='$INSTALL'
17769 AWK='$AWK'
17770 test -n "\$AWK" || AWK=awk
17771 _ACEOF
17772
17773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17774 # The default lists apply if the user does not specify any file.
17775 ac_need_defaults=:
17776 while test $# != 0
17777 do
17778 case $1 in
17779 --*=?*)
17780 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17781 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17782 ac_shift=:
17783 ;;
17784 --*=)
17785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17786 ac_optarg=
17787 ac_shift=:
17788 ;;
17789 *)
17790 ac_option=$1
17791 ac_optarg=$2
17792 ac_shift=shift
17793 ;;
17794 esac
17795
17796 case $ac_option in
17797 # Handling of the options.
17798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17799 ac_cs_recheck=: ;;
17800 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17801 $as_echo "$ac_cs_version"; exit ;;
17802 --config | --confi | --conf | --con | --co | --c )
17803 $as_echo "$ac_cs_config"; exit ;;
17804 --debug | --debu | --deb | --de | --d | -d )
17805 debug=: ;;
17806 --file | --fil | --fi | --f )
17807 $ac_shift
17808 case $ac_optarg in
17809 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17810 '') as_fn_error $? "missing file argument" ;;
17811 esac
17812 as_fn_append CONFIG_FILES " '$ac_optarg'"
17813 ac_need_defaults=false;;
17814 --header | --heade | --head | --hea )
17815 $ac_shift
17816 case $ac_optarg in
17817 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17818 esac
17819 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17820 ac_need_defaults=false;;
17821 --he | --h)
17822 # Conflict between --help and --header
17823 as_fn_error $? "ambiguous option: \`$1'
17824 Try \`$0 --help' for more information.";;
17825 --help | --hel | -h )
17826 $as_echo "$ac_cs_usage"; exit ;;
17827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17828 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17829 ac_cs_silent=: ;;
17830
17831 # This is an error.
17832 -*) as_fn_error $? "unrecognized option: \`$1'
17833 Try \`$0 --help' for more information." ;;
17834
17835 *) as_fn_append ac_config_targets " $1"
17836 ac_need_defaults=false ;;
17837
17838 esac
17839 shift
17840 done
17841
17842 ac_configure_extra_args=
17843
17844 if $ac_cs_silent; then
17845 exec 6>/dev/null
17846 ac_configure_extra_args="$ac_configure_extra_args --silent"
17847 fi
17848
17849 _ACEOF
17850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17851 if \$ac_cs_recheck; then
17852 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17853 shift
17854 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17855 CONFIG_SHELL='$SHELL'
17856 export CONFIG_SHELL
17857 exec "\$@"
17858 fi
17859
17860 _ACEOF
17861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862 exec 5>>config.log
17863 {
17864 echo
17865 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17866 ## Running $as_me. ##
17867 _ASBOX
17868 $as_echo "$ac_log"
17869 } >&5
17870
17871 _ACEOF
17872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17873 #
17874 # INIT-COMMANDS
17875 #
17876 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17877
17878
17879 # The HP-UX ksh and POSIX shell print the target directory to stdout
17880 # if CDPATH is set.
17881 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17882
17883 sed_quote_subst='$sed_quote_subst'
17884 double_quote_subst='$double_quote_subst'
17885 delay_variable_subst='$delay_variable_subst'
17886 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17887 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17888 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17889 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17890 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17891 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17892 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17893 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17894 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17895 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17896 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17897 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17898 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17899 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17900 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17901 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17902 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17903 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17904 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17905 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17906 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17907 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17908 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17909 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17910 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17911 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17912 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17913 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17914 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17915 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17916 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17917 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17918 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17919 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17920 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17921 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17922 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17923 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17924 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17925 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17926 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17927 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17928 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17929 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17930 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17931 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17932 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17933 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17934 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17935 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17936 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17937 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17938 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17939 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17940 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17941 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17942 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17943 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"`'
17944 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17945 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17946 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17947 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17948 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17949 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17950 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17951 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17952 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17953 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17954 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17955 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17956 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17957 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17958 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17959 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17960 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17961 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17962 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17963 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17964 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17965 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17966 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17967 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17968 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17969 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17970 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17971 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17972 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17973 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17974 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17975 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17976 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17977 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17978 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17979 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17980 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17981 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17982 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17983 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17984 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17985 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17986 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17987 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17988 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17989 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17990 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17991 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17992 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17993 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17994 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17995 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17996 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17997 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17998 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17999 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18000 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18001 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18002 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18003 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18004 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18005 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18006 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18007 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18008 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18009 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18010 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18011 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18012 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18013 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18014 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18015 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18016 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18017 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18018 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18019 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18020 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18021 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18022 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18023 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18024 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18025 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18026 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18027 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18028 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18029 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18030 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18031 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18032 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18033 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18034 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18035 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18036 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18037 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18038 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18039 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18040 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18041 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18042 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18043 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18044 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18045 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18046 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18047 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18048 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18049 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18050 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18051 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18052 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18053 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18054 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18055 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18056 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18057 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18058 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18059 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18060 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18061 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18062 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18063 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18064 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18065 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18066 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18067 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18068 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18069 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18070 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18071
18072 LTCC='$LTCC'
18073 LTCFLAGS='$LTCFLAGS'
18074 compiler='$compiler_DEFAULT'
18075
18076 # A function that is used when there is no print builtin or printf.
18077 func_fallback_echo ()
18078 {
18079 eval 'cat <<_LTECHO_EOF
18080 \$1
18081 _LTECHO_EOF'
18082 }
18083
18084 # Quote evaled strings.
18085 for var in AS \
18086 DLLTOOL \
18087 OBJDUMP \
18088 SHELL \
18089 ECHO \
18090 PATH_SEPARATOR \
18091 SED \
18092 GREP \
18093 EGREP \
18094 FGREP \
18095 LD \
18096 NM \
18097 LN_S \
18098 lt_SP2NL \
18099 lt_NL2SP \
18100 reload_flag \
18101 deplibs_check_method \
18102 file_magic_cmd \
18103 file_magic_glob \
18104 want_nocaseglob \
18105 sharedlib_from_linklib_cmd \
18106 AR \
18107 AR_FLAGS \
18108 archiver_list_spec \
18109 STRIP \
18110 RANLIB \
18111 CC \
18112 CFLAGS \
18113 compiler \
18114 lt_cv_sys_global_symbol_pipe \
18115 lt_cv_sys_global_symbol_to_cdecl \
18116 lt_cv_sys_global_symbol_to_c_name_address \
18117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18118 nm_file_list_spec \
18119 lt_prog_compiler_no_builtin_flag \
18120 lt_prog_compiler_pic \
18121 lt_prog_compiler_wl \
18122 lt_prog_compiler_static \
18123 lt_cv_prog_compiler_c_o \
18124 need_locks \
18125 MANIFEST_TOOL \
18126 DSYMUTIL \
18127 NMEDIT \
18128 LIPO \
18129 OTOOL \
18130 OTOOL64 \
18131 shrext_cmds \
18132 export_dynamic_flag_spec \
18133 whole_archive_flag_spec \
18134 compiler_needs_object \
18135 with_gnu_ld \
18136 allow_undefined_flag \
18137 no_undefined_flag \
18138 hardcode_libdir_flag_spec \
18139 hardcode_libdir_separator \
18140 exclude_expsyms \
18141 include_expsyms \
18142 file_list_spec \
18143 variables_saved_for_relink \
18144 libname_spec \
18145 library_names_spec \
18146 soname_spec \
18147 install_override_mode \
18148 finish_eval \
18149 old_striplib \
18150 striplib \
18151 compiler_lib_search_dirs \
18152 predep_objects \
18153 postdep_objects \
18154 predeps \
18155 postdeps \
18156 compiler_lib_search_path \
18157 LD_CXX \
18158 reload_flag_CXX \
18159 compiler_CXX \
18160 lt_prog_compiler_no_builtin_flag_CXX \
18161 lt_prog_compiler_pic_CXX \
18162 lt_prog_compiler_wl_CXX \
18163 lt_prog_compiler_static_CXX \
18164 lt_cv_prog_compiler_c_o_CXX \
18165 export_dynamic_flag_spec_CXX \
18166 whole_archive_flag_spec_CXX \
18167 compiler_needs_object_CXX \
18168 with_gnu_ld_CXX \
18169 allow_undefined_flag_CXX \
18170 no_undefined_flag_CXX \
18171 hardcode_libdir_flag_spec_CXX \
18172 hardcode_libdir_separator_CXX \
18173 exclude_expsyms_CXX \
18174 include_expsyms_CXX \
18175 file_list_spec_CXX \
18176 compiler_lib_search_dirs_CXX \
18177 predep_objects_CXX \
18178 postdep_objects_CXX \
18179 predeps_CXX \
18180 postdeps_CXX \
18181 compiler_lib_search_path_CXX; do
18182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18183 *[\\\\\\\`\\"\\\$]*)
18184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18185 ;;
18186 *)
18187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18188 ;;
18189 esac
18190 done
18191
18192 # Double-quote double-evaled strings.
18193 for var in reload_cmds \
18194 old_postinstall_cmds \
18195 old_postuninstall_cmds \
18196 old_archive_cmds \
18197 extract_expsyms_cmds \
18198 old_archive_from_new_cmds \
18199 old_archive_from_expsyms_cmds \
18200 archive_cmds \
18201 archive_expsym_cmds \
18202 module_cmds \
18203 module_expsym_cmds \
18204 export_symbols_cmds \
18205 prelink_cmds \
18206 postlink_cmds \
18207 postinstall_cmds \
18208 postuninstall_cmds \
18209 finish_cmds \
18210 sys_lib_search_path_spec \
18211 sys_lib_dlsearch_path_spec \
18212 reload_cmds_CXX \
18213 old_archive_cmds_CXX \
18214 old_archive_from_new_cmds_CXX \
18215 old_archive_from_expsyms_cmds_CXX \
18216 archive_cmds_CXX \
18217 archive_expsym_cmds_CXX \
18218 module_cmds_CXX \
18219 module_expsym_cmds_CXX \
18220 export_symbols_cmds_CXX \
18221 prelink_cmds_CXX \
18222 postlink_cmds_CXX; do
18223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18224 *[\\\\\\\`\\"\\\$]*)
18225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18226 ;;
18227 *)
18228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18229 ;;
18230 esac
18231 done
18232
18233 ac_aux_dir='$ac_aux_dir'
18234 xsi_shell='$xsi_shell'
18235 lt_shell_append='$lt_shell_append'
18236
18237 # See if we are running on zsh, and set the options which allow our
18238 # commands through without removal of \ escapes INIT.
18239 if test -n "\${ZSH_VERSION+set}" ; then
18240 setopt NO_GLOB_SUBST
18241 fi
18242
18243
18244 PACKAGE='$PACKAGE'
18245 VERSION='$VERSION'
18246 TIMESTAMP='$TIMESTAMP'
18247 RM='$RM'
18248 ofile='$ofile'
18249
18250
18251
18252
18253
18254
18255 _ACEOF
18256
18257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18258
18259 # Handling of arguments.
18260 for ac_config_target in $ac_config_targets
18261 do
18262 case $ac_config_target in
18263 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18264 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18265 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18266 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18267 "lqr/Makefile") CONFIG_FILES="$CONFIG_FILES lqr/Makefile" ;;
18268 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18269 "lqr-1.pc") CONFIG_FILES="$CONFIG_FILES lqr-1.pc" ;;
18270
18271 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18272 esac
18273 done
18274
18275
18276 # If the user did not use the arguments to specify the items to instantiate,
18277 # then the envvar interface is used. Set only those that are not.
18278 # We use the long form for the default assignment because of an extremely
18279 # bizarre bug on SunOS 4.1.3.
18280 if $ac_need_defaults; then
18281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18284 fi
18285
18286 # Have a temporary directory for convenience. Make it in the build tree
18287 # simply because there is no reason against having it here, and in addition,
18288 # creating and moving files from /tmp can sometimes cause problems.
18289 # Hook for its removal unless debugging.
18290 # Note that there is a small window in which the directory will not be cleaned:
18291 # after its creation but before its name has been assigned to `$tmp'.
18292 $debug ||
18293 {
18294 tmp= ac_tmp=
18295 trap 'exit_status=$?
18296 : "${ac_tmp:=$tmp}"
18297 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18298 ' 0
18299 trap 'as_fn_exit 1' 1 2 13 15
18300 }
18301 # Create a (secure) tmp directory for tmp files.
18302
18303 {
18304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18305 test -d "$tmp"
18306 } ||
18307 {
18308 tmp=./conf$$-$RANDOM
18309 (umask 077 && mkdir "$tmp")
18310 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18311 ac_tmp=$tmp
18312
18313 # Set up the scripts for CONFIG_FILES section.
18314 # No need to generate them if there are no CONFIG_FILES.
18315 # This happens for instance with `./config.status config.h'.
18316 if test -n "$CONFIG_FILES"; then
18317
18318
18319 ac_cr=`echo X | tr X '\015'`
18320 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18321 # But we know of no other shell where ac_cr would be empty at this
18322 # point, so we can use a bashism as a fallback.
18323 if test "x$ac_cr" = x; then
18324 eval ac_cr=\$\'\\r\'
18325 fi
18326 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18327 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18328 ac_cs_awk_cr='\\r'
18329 else
18330 ac_cs_awk_cr=$ac_cr
18331 fi
18332
18333 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18334 _ACEOF
18335
18336
18337 {
18338 echo "cat >conf$$subs.awk <<_ACEOF" &&
18339 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18340 echo "_ACEOF"
18341 } >conf$$subs.sh ||
18342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18343 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18344 ac_delim='%!_!# '
18345 for ac_last_try in false false false false false :; do
18346 . ./conf$$subs.sh ||
18347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18348
18349 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18350 if test $ac_delim_n = $ac_delim_num; then
18351 break
18352 elif $ac_last_try; then
18353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18354 else
18355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18356 fi
18357 done
18358 rm -f conf$$subs.sh
18359
18360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18361 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18362 _ACEOF
18363 sed -n '
18364 h
18365 s/^/S["/; s/!.*/"]=/
18366 p
18367 g
18368 s/^[^!]*!//
18369 :repl
18370 t repl
18371 s/'"$ac_delim"'$//
18372 t delim
18373 :nl
18374 h
18375 s/\(.\{148\}\)..*/\1/
18376 t more1
18377 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18378 p
18379 n
18380 b repl
18381 :more1
18382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18383 p
18384 g
18385 s/.\{148\}//
18386 t nl
18387 :delim
18388 h
18389 s/\(.\{148\}\)..*/\1/
18390 t more2
18391 s/["\\]/\\&/g; s/^/"/; s/$/"/
18392 p
18393 b
18394 :more2
18395 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18396 p
18397 g
18398 s/.\{148\}//
18399 t delim
18400 ' <conf$$subs.awk | sed '
18401 /^[^""]/{
18402 N
18403 s/\n//
18404 }
18405 ' >>$CONFIG_STATUS || ac_write_fail=1
18406 rm -f conf$$subs.awk
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 _ACAWK
18409 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18410 for (key in S) S_is_set[key] = 1
18411 FS = ""
18412
18413 }
18414 {
18415 line = $ 0
18416 nfields = split(line, field, "@")
18417 substed = 0
18418 len = length(field[1])
18419 for (i = 2; i < nfields; i++) {
18420 key = field[i]
18421 keylen = length(key)
18422 if (S_is_set[key]) {
18423 value = S[key]
18424 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18425 len += length(value) + length(field[++i])
18426 substed = 1
18427 } else
18428 len += 1 + keylen
18429 }
18430
18431 print line
18432 }
18433
18434 _ACAWK
18435 _ACEOF
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18437 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18438 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18439 else
18440 cat
18441 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18442 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18443 _ACEOF
18444
18445 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18446 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18447 # trailing colons and then remove the whole line if VPATH becomes empty
18448 # (actually we leave an empty line to preserve line numbers).
18449 if test "x$srcdir" = x.; then
18450 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18451 h
18452 s///
18453 s/^/:/
18454 s/[ ]*$/:/
18455 s/:\$(srcdir):/:/g
18456 s/:\${srcdir}:/:/g
18457 s/:@srcdir@:/:/g
18458 s/^:*//
18459 s/:*$//
18460 x
18461 s/\(=[ ]*\).*/\1/
18462 G
18463 s/\n//
18464 s/^[^=]*=[ ]*$//
18465 }'
18466 fi
18467
18468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469 fi # test -n "$CONFIG_FILES"
18470
18471 # Set up the scripts for CONFIG_HEADERS section.
18472 # No need to generate them if there are no CONFIG_HEADERS.
18473 # This happens for instance with `./config.status Makefile'.
18474 if test -n "$CONFIG_HEADERS"; then
18475 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18476 BEGIN {
18477 _ACEOF
18478
18479 # Transform confdefs.h into an awk script `defines.awk', embedded as
18480 # here-document in config.status, that substitutes the proper values into
18481 # config.h.in to produce config.h.
18482
18483 # Create a delimiter string that does not exist in confdefs.h, to ease
18484 # handling of long lines.
18485 ac_delim='%!_!# '
18486 for ac_last_try in false false :; do
18487 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18488 if test -z "$ac_tt"; then
18489 break
18490 elif $ac_last_try; then
18491 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18492 else
18493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18494 fi
18495 done
18496
18497 # For the awk script, D is an array of macro values keyed by name,
18498 # likewise P contains macro parameters if any. Preserve backslash
18499 # newline sequences.
18500
18501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18502 sed -n '
18503 s/.\{148\}/&'"$ac_delim"'/g
18504 t rset
18505 :rset
18506 s/^[ ]*#[ ]*define[ ][ ]*/ /
18507 t def
18508 d
18509 :def
18510 s/\\$//
18511 t bsnl
18512 s/["\\]/\\&/g
18513 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18514 D["\1"]=" \3"/p
18515 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18516 d
18517 :bsnl
18518 s/["\\]/\\&/g
18519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18520 D["\1"]=" \3\\\\\\n"\\/p
18521 t cont
18522 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18523 t cont
18524 d
18525 :cont
18526 n
18527 s/.\{148\}/&'"$ac_delim"'/g
18528 t clear
18529 :clear
18530 s/\\$//
18531 t bsnlc
18532 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18533 d
18534 :bsnlc
18535 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18536 b cont
18537 ' <confdefs.h | sed '
18538 s/'"$ac_delim"'/"\\\
18539 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18540
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 for (key in D) D_is_set[key] = 1
18543 FS = ""
18544 }
18545 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18546 line = \$ 0
18547 split(line, arg, " ")
18548 if (arg[1] == "#") {
18549 defundef = arg[2]
18550 mac1 = arg[3]
18551 } else {
18552 defundef = substr(arg[1], 2)
18553 mac1 = arg[2]
18554 }
18555 split(mac1, mac2, "(") #)
18556 macro = mac2[1]
18557 prefix = substr(line, 1, index(line, defundef) - 1)
18558 if (D_is_set[macro]) {
18559 # Preserve the white space surrounding the "#".
18560 print prefix "define", macro P[macro] D[macro]
18561 next
18562 } else {
18563 # Replace #undef with comments. This is necessary, for example,
18564 # in the case of _POSIX_SOURCE, which is predefined and required
18565 # on some systems where configure will not decide to define it.
18566 if (defundef == "undef") {
18567 print "/*", prefix defundef, macro, "*/"
18568 next
18569 }
18570 }
18571 }
18572 { print }
18573 _ACAWK
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18576 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18577 fi # test -n "$CONFIG_HEADERS"
18578
18579
18580 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18581 shift
18582 for ac_tag
18583 do
18584 case $ac_tag in
18585 :[FHLC]) ac_mode=$ac_tag; continue;;
18586 esac
18587 case $ac_mode$ac_tag in
18588 :[FHL]*:*);;
18589 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18590 :[FH]-) ac_tag=-:-;;
18591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18592 esac
18593 ac_save_IFS=$IFS
18594 IFS=:
18595 set x $ac_tag
18596 IFS=$ac_save_IFS
18597 shift
18598 ac_file=$1
18599 shift
18600
18601 case $ac_mode in
18602 :L) ac_source=$1;;
18603 :[FH])
18604 ac_file_inputs=
18605 for ac_f
18606 do
18607 case $ac_f in
18608 -) ac_f="$ac_tmp/stdin";;
18609 *) # Look for the file first in the build tree, then in the source tree
18610 # (if the path is not absolute). The absolute path cannot be DOS-style,
18611 # because $ac_f cannot contain `:'.
18612 test -f "$ac_f" ||
18613 case $ac_f in
18614 [\\/$]*) false;;
18615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18616 esac ||
18617 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18618 esac
18619 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18620 as_fn_append ac_file_inputs " '$ac_f'"
18621 done
18622
18623 # Let's still pretend it is `configure' which instantiates (i.e., don't
18624 # use $as_me), people would be surprised to read:
18625 # /* config.h. Generated by config.status. */
18626 configure_input='Generated from '`
18627 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18628 `' by configure.'
18629 if test x"$ac_file" != x-; then
18630 configure_input="$ac_file. $configure_input"
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18632 $as_echo "$as_me: creating $ac_file" >&6;}
18633 fi
18634 # Neutralize special characters interpreted by sed in replacement strings.
18635 case $configure_input in #(
18636 *\&* | *\|* | *\\* )
18637 ac_sed_conf_input=`$as_echo "$configure_input" |
18638 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18639 *) ac_sed_conf_input=$configure_input;;
18640 esac
18641
18642 case $ac_tag in
18643 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18645 esac
18646 ;;
18647 esac
18648
18649 ac_dir=`$as_dirname -- "$ac_file" ||
18650 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18651 X"$ac_file" : 'X\(//\)[^/]' \| \
18652 X"$ac_file" : 'X\(//\)$' \| \
18653 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18654 $as_echo X"$ac_file" |
18655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18656 s//\1/
18657 q
18658 }
18659 /^X\(\/\/\)[^/].*/{
18660 s//\1/
18661 q
18662 }
18663 /^X\(\/\/\)$/{
18664 s//\1/
18665 q
18666 }
18667 /^X\(\/\).*/{
18668 s//\1/
18669 q
18670 }
18671 s/.*/./; q'`
18672 as_dir="$ac_dir"; as_fn_mkdir_p
18673 ac_builddir=.
18674
18675 case "$ac_dir" in
18676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18677 *)
18678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18679 # A ".." for each directory in $ac_dir_suffix.
18680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18681 case $ac_top_builddir_sub in
18682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18684 esac ;;
18685 esac
18686 ac_abs_top_builddir=$ac_pwd
18687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18688 # for backward compatibility:
18689 ac_top_builddir=$ac_top_build_prefix
18690
18691 case $srcdir in
18692 .) # We are building in place.
18693 ac_srcdir=.
18694 ac_top_srcdir=$ac_top_builddir_sub
18695 ac_abs_top_srcdir=$ac_pwd ;;
18696 [\\/]* | ?:[\\/]* ) # Absolute name.
18697 ac_srcdir=$srcdir$ac_dir_suffix;
18698 ac_top_srcdir=$srcdir
18699 ac_abs_top_srcdir=$srcdir ;;
18700 *) # Relative name.
18701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18702 ac_top_srcdir=$ac_top_build_prefix$srcdir
18703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18704 esac
18705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18706
18707
18708 case $ac_mode in
18709 :F)
18710 #
18711 # CONFIG_FILE
18712 #
18713
18714 case $INSTALL in
18715 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18716 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18717 esac
18718 _ACEOF
18719
18720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721 # If the template does not know about datarootdir, expand it.
18722 # FIXME: This hack should be removed a few years after 2.60.
18723 ac_datarootdir_hack=; ac_datarootdir_seen=
18724 ac_sed_dataroot='
18725 /datarootdir/ {
18726 p
18727 q
18728 }
18729 /@datadir@/p
18730 /@docdir@/p
18731 /@infodir@/p
18732 /@localedir@/p
18733 /@mandir@/p'
18734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18735 *datarootdir*) ac_datarootdir_seen=yes;;
18736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18739 _ACEOF
18740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18741 ac_datarootdir_hack='
18742 s&@datadir@&$datadir&g
18743 s&@docdir@&$docdir&g
18744 s&@infodir@&$infodir&g
18745 s&@localedir@&$localedir&g
18746 s&@mandir@&$mandir&g
18747 s&\\\${datarootdir}&$datarootdir&g' ;;
18748 esac
18749 _ACEOF
18750
18751 # Neutralize VPATH when `$srcdir' = `.'.
18752 # Shell code in configure.ac might set extrasub.
18753 # FIXME: do we really want to maintain this feature?
18754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18755 ac_sed_extra="$ac_vpsub
18756 $extrasub
18757 _ACEOF
18758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18759 :t
18760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18761 s|@configure_input@|$ac_sed_conf_input|;t t
18762 s&@top_builddir@&$ac_top_builddir_sub&;t t
18763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18764 s&@srcdir@&$ac_srcdir&;t t
18765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18766 s&@top_srcdir@&$ac_top_srcdir&;t t
18767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18768 s&@builddir@&$ac_builddir&;t t
18769 s&@abs_builddir@&$ac_abs_builddir&;t t
18770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18771 s&@INSTALL@&$ac_INSTALL&;t t
18772 $ac_datarootdir_hack
18773 "
18774 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18775 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18776
18777 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18778 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18779 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18780 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18782 which seems to be undefined. Please make sure it is defined" >&5
18783 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18784 which seems to be undefined. Please make sure it is defined" >&2;}
18785
18786 rm -f "$ac_tmp/stdin"
18787 case $ac_file in
18788 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18789 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18790 esac \
18791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18792 ;;
18793 :H)
18794 #
18795 # CONFIG_HEADER
18796 #
18797 if test x"$ac_file" != x-; then
18798 {
18799 $as_echo "/* $configure_input */" \
18800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18801 } >"$ac_tmp/config.h" \
18802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18803 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18805 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18806 else
18807 rm -f "$ac_file"
18808 mv "$ac_tmp/config.h" "$ac_file" \
18809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18810 fi
18811 else
18812 $as_echo "/* $configure_input */" \
18813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18814 || as_fn_error $? "could not create -" "$LINENO" 5
18815 fi
18816 # Compute "$ac_file"'s index in $config_headers.
18817 _am_stamp_count=1
18818 for _am_header in $config_headers :; do
18819 case $_am_header in
18820 "$ac_file" | "$ac_file":* )
18821 break ;;
18822 * )
18823 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18824 esac
18825 done
18826 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
18827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18828 X"$ac_file" : 'X\(//\)[^/]' \| \
18829 X"$ac_file" : 'X\(//\)$' \| \
18830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18831 $as_echo X"$ac_file" |
18832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18833 s//\1/
18834 q
18835 }
18836 /^X\(\/\/\)[^/].*/{
18837 s//\1/
18838 q
18839 }
18840 /^X\(\/\/\)$/{
18841 s//\1/
18842 q
18843 }
18844 /^X\(\/\).*/{
18845 s//\1/
18846 q
18847 }
18848 s/.*/./; q'`/stamp-h$_am_stamp_count
18849 ;;
18850
18851 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18852 $as_echo "$as_me: executing $ac_file commands" >&6;}
18853 ;;
18854 esac
18855
18856
18857 case $ac_file$ac_mode in
18858 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18859 # Strip MF so we end up with the name of the file.
18860 mf=`echo "$mf" | sed -e 's/:.*$//'`
18861 # Check whether this is an Automake generated Makefile or not.
18862 # We used to match only the files named `Makefile.in', but
18863 # some people rename them; so instead we look at the file content.
18864 # Grep'ing the first line is not enough: some people post-process
18865 # each Makefile.in and add a new line on top of each file to say so.
18866 # So let's grep whole file.
18867 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18868 dirpart=`$as_dirname -- "$mf" ||
18869 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18870 X"$mf" : 'X\(//\)[^/]' \| \
18871 X"$mf" : 'X\(//\)$' \| \
18872 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18873 $as_echo X"$mf" |
18874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18875 s//\1/
18876 q
18877 }
18878 /^X\(\/\/\)[^/].*/{
18879 s//\1/
18880 q
18881 }
18882 /^X\(\/\/\)$/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\).*/{
18887 s//\1/
18888 q
18889 }
18890 s/.*/./; q'`
18891 else
18892 continue
18893 fi
18894 # Extract the definition of DEPDIR, am__include, and am__quote
18895 # from the Makefile without running `make'.
18896 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18897 test -z "$DEPDIR" && continue
18898 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18899 test -z "am__include" && continue
18900 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18901 # When using ansi2knr, U may be empty or an underscore; expand it
18902 U=`sed -n 's/^U = //p' < "$mf"`
18903 # Find all dependency output files, they are included files with
18904 # $(DEPDIR) in their names. We invoke sed twice because it is the
18905 # simplest approach to changing $(DEPDIR) to its actual value in the
18906 # expansion.
18907 for file in `sed -n "
18908 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18909 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18910 # Make sure the directory exists.
18911 test -f "$dirpart/$file" && continue
18912 fdir=`$as_dirname -- "$file" ||
18913 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18914 X"$file" : 'X\(//\)[^/]' \| \
18915 X"$file" : 'X\(//\)$' \| \
18916 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18917 $as_echo X"$file" |
18918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18919 s//\1/
18920 q
18921 }
18922 /^X\(\/\/\)[^/].*/{
18923 s//\1/
18924 q
18925 }
18926 /^X\(\/\/\)$/{
18927 s//\1/
18928 q
18929 }
18930 /^X\(\/\).*/{
18931 s//\1/
18932 q
18933 }
18934 s/.*/./; q'`
18935 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18936 # echo "creating $dirpart/$file"
18937 echo '# dummy' > "$dirpart/$file"
18938 done
18939 done
18940 ;;
18941 "libtool":C)
18942
18943 # See if we are running on zsh, and set the options which allow our
18944 # commands through without removal of \ escapes.
18945 if test -n "${ZSH_VERSION+set}" ; then
18946 setopt NO_GLOB_SUBST
18947 fi
18948
18949 cfgfile="${ofile}T"
18950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18951 $RM "$cfgfile"
18952
18953 cat <<_LT_EOF >> "$cfgfile"
18954 #! $SHELL
18955
18956 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18957 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18958 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18959 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18960 #
18961 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18962 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18963 # Foundation, Inc.
18964 # Written by Gordon Matzigkeit, 1996
18965 #
18966 # This file is part of GNU Libtool.
18967 #
18968 # GNU Libtool is free software; you can redistribute it and/or
18969 # modify it under the terms of the GNU General Public License as
18970 # published by the Free Software Foundation; either version 2 of
18971 # the License, or (at your option) any later version.
18972 #
18973 # As a special exception to the GNU General Public License,
18974 # if you distribute this file as part of a program or library that
18975 # is built using GNU Libtool, you may include this file under the
18976 # same distribution terms that you use for the rest of that program.
18977 #
18978 # GNU Libtool is distributed in the hope that it will be useful,
18979 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18980 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18981 # GNU General Public License for more details.
18982 #
18983 # You should have received a copy of the GNU General Public License
18984 # along with GNU Libtool; see the file COPYING. If not, a copy
18985 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18986 # obtained by writing to the Free Software Foundation, Inc.,
18987 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18988
18989
18990 # The names of the tagged configurations supported by this script.
18991 available_tags="CXX "
18992
18993 # ### BEGIN LIBTOOL CONFIG
18994
18995 # Whether or not to build static libraries.
18996 build_old_libs=$enable_static
18997
18998 # Which release of libtool.m4 was used?
18999 macro_version=$macro_version
19000 macro_revision=$macro_revision
19001
19002 # Assembler program.
19003 AS=$lt_AS
19004
19005 # DLL creation program.
19006 DLLTOOL=$lt_DLLTOOL
19007
19008 # Object dumper program.
19009 OBJDUMP=$lt_OBJDUMP
19010
19011 # Whether or not to build shared libraries.
19012 build_libtool_libs=$enable_shared
19013
19014 # What type of objects to build.
19015 pic_mode=$pic_mode
19016
19017 # Whether or not to optimize for fast installation.
19018 fast_install=$enable_fast_install
19019
19020 # Shell to use when invoking shell scripts.
19021 SHELL=$lt_SHELL
19022
19023 # An echo program that protects backslashes.
19024 ECHO=$lt_ECHO
19025
19026 # The PATH separator for the build system.
19027 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19028
19029 # The host system.
19030 host_alias=$host_alias
19031 host=$host
19032 host_os=$host_os
19033
19034 # The build system.
19035 build_alias=$build_alias
19036 build=$build
19037 build_os=$build_os
19038
19039 # A sed program that does not truncate output.
19040 SED=$lt_SED
19041
19042 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19043 Xsed="\$SED -e 1s/^X//"
19044
19045 # A grep program that handles long lines.
19046 GREP=$lt_GREP
19047
19048 # An ERE matcher.
19049 EGREP=$lt_EGREP
19050
19051 # A literal string matcher.
19052 FGREP=$lt_FGREP
19053
19054 # A BSD- or MS-compatible name lister.
19055 NM=$lt_NM
19056
19057 # Whether we need soft or hard links.
19058 LN_S=$lt_LN_S
19059
19060 # What is the maximum length of a command?
19061 max_cmd_len=$max_cmd_len
19062
19063 # Object file suffix (normally "o").
19064 objext=$ac_objext
19065
19066 # Executable file suffix (normally "").
19067 exeext=$exeext
19068
19069 # whether the shell understands "unset".
19070 lt_unset=$lt_unset
19071
19072 # turn spaces into newlines.
19073 SP2NL=$lt_lt_SP2NL
19074
19075 # turn newlines into spaces.
19076 NL2SP=$lt_lt_NL2SP
19077
19078 # convert \$build file names to \$host format.
19079 to_host_file_cmd=$lt_cv_to_host_file_cmd
19080
19081 # convert \$build files to toolchain format.
19082 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19083
19084 # Method to check whether dependent libraries are shared objects.
19085 deplibs_check_method=$lt_deplibs_check_method
19086
19087 # Command to use when deplibs_check_method = "file_magic".
19088 file_magic_cmd=$lt_file_magic_cmd
19089
19090 # How to find potential files when deplibs_check_method = "file_magic".
19091 file_magic_glob=$lt_file_magic_glob
19092
19093 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19094 want_nocaseglob=$lt_want_nocaseglob
19095
19096 # Command to associate shared and link libraries.
19097 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19098
19099 # The archiver.
19100 AR=$lt_AR
19101
19102 # Flags to create an archive.
19103 AR_FLAGS=$lt_AR_FLAGS
19104
19105 # How to feed a file listing to the archiver.
19106 archiver_list_spec=$lt_archiver_list_spec
19107
19108 # A symbol stripping program.
19109 STRIP=$lt_STRIP
19110
19111 # Commands used to install an old-style archive.
19112 RANLIB=$lt_RANLIB
19113 old_postinstall_cmds=$lt_old_postinstall_cmds
19114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19115
19116 # Whether to use a lock for old archive extraction.
19117 lock_old_archive_extraction=$lock_old_archive_extraction
19118
19119 # A C compiler.
19120 LTCC=$lt_CC
19121
19122 # LTCC compiler flags.
19123 LTCFLAGS=$lt_CFLAGS
19124
19125 # Take the output of nm and produce a listing of raw symbols and C names.
19126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19127
19128 # Transform the output of nm in a proper C declaration.
19129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19130
19131 # Transform the output of nm in a C name address pair.
19132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19133
19134 # Transform the output of nm in a C name address pair when lib prefix is needed.
19135 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19136
19137 # Specify filename containing input files for \$NM.
19138 nm_file_list_spec=$lt_nm_file_list_spec
19139
19140 # The root where to search for dependent libraries,and in which our libraries should be installed.
19141 lt_sysroot=$lt_sysroot
19142
19143 # The name of the directory that contains temporary libtool files.
19144 objdir=$objdir
19145
19146 # Used to examine libraries when file_magic_cmd begins with "file".
19147 MAGIC_CMD=$MAGIC_CMD
19148
19149 # Must we lock files when doing compilation?
19150 need_locks=$lt_need_locks
19151
19152 # Manifest tool.
19153 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19154
19155 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19156 DSYMUTIL=$lt_DSYMUTIL
19157
19158 # Tool to change global to local symbols on Mac OS X.
19159 NMEDIT=$lt_NMEDIT
19160
19161 # Tool to manipulate fat objects and archives on Mac OS X.
19162 LIPO=$lt_LIPO
19163
19164 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19165 OTOOL=$lt_OTOOL
19166
19167 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19168 OTOOL64=$lt_OTOOL64
19169
19170 # Old archive suffix (normally "a").
19171 libext=$libext
19172
19173 # Shared library suffix (normally ".so").
19174 shrext_cmds=$lt_shrext_cmds
19175
19176 # The commands to extract the exported symbol list from a shared archive.
19177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19178
19179 # Variables whose values should be saved in libtool wrapper scripts and
19180 # restored at link time.
19181 variables_saved_for_relink=$lt_variables_saved_for_relink
19182
19183 # Do we need the "lib" prefix for modules?
19184 need_lib_prefix=$need_lib_prefix
19185
19186 # Do we need a version for libraries?
19187 need_version=$need_version
19188
19189 # Library versioning type.
19190 version_type=$version_type
19191
19192 # Shared library runtime path variable.
19193 runpath_var=$runpath_var
19194
19195 # Shared library path variable.
19196 shlibpath_var=$shlibpath_var
19197
19198 # Is shlibpath searched before the hard-coded library search path?
19199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19200
19201 # Format of library name prefix.
19202 libname_spec=$lt_libname_spec
19203
19204 # List of archive names. First name is the real one, the rest are links.
19205 # The last name is the one that the linker finds with -lNAME
19206 library_names_spec=$lt_library_names_spec
19207
19208 # The coded name of the library, if different from the real name.
19209 soname_spec=$lt_soname_spec
19210
19211 # Permission mode override for installation of shared libraries.
19212 install_override_mode=$lt_install_override_mode
19213
19214 # Command to use after installation of a shared archive.
19215 postinstall_cmds=$lt_postinstall_cmds
19216
19217 # Command to use after uninstallation of a shared archive.
19218 postuninstall_cmds=$lt_postuninstall_cmds
19219
19220 # Commands used to finish a libtool library installation in a directory.
19221 finish_cmds=$lt_finish_cmds
19222
19223 # As "finish_cmds", except a single script fragment to be evaled but
19224 # not shown.
19225 finish_eval=$lt_finish_eval
19226
19227 # Whether we should hardcode library paths into libraries.
19228 hardcode_into_libs=$hardcode_into_libs
19229
19230 # Compile-time system search path for libraries.
19231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232
19233 # Run-time system search path for libraries.
19234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235
19236 # Whether dlopen is supported.
19237 dlopen_support=$enable_dlopen
19238
19239 # Whether dlopen of programs is supported.
19240 dlopen_self=$enable_dlopen_self
19241
19242 # Whether dlopen of statically linked programs is supported.
19243 dlopen_self_static=$enable_dlopen_self_static
19244
19245 # Commands to strip libraries.
19246 old_striplib=$lt_old_striplib
19247 striplib=$lt_striplib
19248
19249
19250 # The linker used to build libraries.
19251 LD=$lt_LD
19252
19253 # How to create reloadable object files.
19254 reload_flag=$lt_reload_flag
19255 reload_cmds=$lt_reload_cmds
19256
19257 # Commands used to build an old-style archive.
19258 old_archive_cmds=$lt_old_archive_cmds
19259
19260 # A language specific compiler.
19261 CC=$lt_compiler
19262
19263 # Is the compiler the GNU compiler?
19264 with_gcc=$GCC
19265
19266 # Compiler flag to turn off builtin functions.
19267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19268
19269 # Additional compiler flags for building library objects.
19270 pic_flag=$lt_lt_prog_compiler_pic
19271
19272 # How to pass a linker flag through the compiler.
19273 wl=$lt_lt_prog_compiler_wl
19274
19275 # Compiler flag to prevent dynamic linking.
19276 link_static_flag=$lt_lt_prog_compiler_static
19277
19278 # Does compiler simultaneously support -c and -o options?
19279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19280
19281 # Whether or not to add -lc for building shared libraries.
19282 build_libtool_need_lc=$archive_cmds_need_lc
19283
19284 # Whether or not to disallow shared libs when runtime libs are static.
19285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19286
19287 # Compiler flag to allow reflexive dlopens.
19288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19289
19290 # Compiler flag to generate shared objects directly from archives.
19291 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19292
19293 # Whether the compiler copes with passing no objects directly.
19294 compiler_needs_object=$lt_compiler_needs_object
19295
19296 # Create an old-style archive from a shared archive.
19297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19298
19299 # Create a temporary old-style archive to link instead of a shared archive.
19300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19301
19302 # Commands used to build a shared archive.
19303 archive_cmds=$lt_archive_cmds
19304 archive_expsym_cmds=$lt_archive_expsym_cmds
19305
19306 # Commands used to build a loadable module if different from building
19307 # a shared archive.
19308 module_cmds=$lt_module_cmds
19309 module_expsym_cmds=$lt_module_expsym_cmds
19310
19311 # Whether we are building with GNU ld or not.
19312 with_gnu_ld=$lt_with_gnu_ld
19313
19314 # Flag that allows shared libraries with undefined symbols to be built.
19315 allow_undefined_flag=$lt_allow_undefined_flag
19316
19317 # Flag that enforces no undefined symbols.
19318 no_undefined_flag=$lt_no_undefined_flag
19319
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19323
19324 # Whether we need a single "-rpath" flag with a separated argument.
19325 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19326
19327 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19328 # DIR into the resulting binary.
19329 hardcode_direct=$hardcode_direct
19330
19331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19332 # DIR into the resulting binary and the resulting library dependency is
19333 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19334 # library is relocated.
19335 hardcode_direct_absolute=$hardcode_direct_absolute
19336
19337 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19338 # into the resulting binary.
19339 hardcode_minus_L=$hardcode_minus_L
19340
19341 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19342 # into the resulting binary.
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var
19344
19345 # Set to "yes" if building a shared library automatically hardcodes DIR
19346 # into the library and all subsequent libraries and executables linked
19347 # against it.
19348 hardcode_automatic=$hardcode_automatic
19349
19350 # Set to yes if linker adds runtime paths of dependent libraries
19351 # to runtime path list.
19352 inherit_rpath=$inherit_rpath
19353
19354 # Whether libtool must link a program against all its dependency libraries.
19355 link_all_deplibs=$link_all_deplibs
19356
19357 # Set to "yes" if exported symbols are required.
19358 always_export_symbols=$always_export_symbols
19359
19360 # The commands to list exported symbols.
19361 export_symbols_cmds=$lt_export_symbols_cmds
19362
19363 # Symbols that should not be listed in the preloaded symbols.
19364 exclude_expsyms=$lt_exclude_expsyms
19365
19366 # Symbols that must always be exported.
19367 include_expsyms=$lt_include_expsyms
19368
19369 # Commands necessary for linking programs (against libraries) with templates.
19370 prelink_cmds=$lt_prelink_cmds
19371
19372 # Commands necessary for finishing linking programs.
19373 postlink_cmds=$lt_postlink_cmds
19374
19375 # Specify filename containing input files.
19376 file_list_spec=$lt_file_list_spec
19377
19378 # How to hardcode a shared library path into an executable.
19379 hardcode_action=$hardcode_action
19380
19381 # The directories searched by this compiler when creating a shared library.
19382 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19383
19384 # Dependencies to place before and after the objects being linked to
19385 # create a shared library.
19386 predep_objects=$lt_predep_objects
19387 postdep_objects=$lt_postdep_objects
19388 predeps=$lt_predeps
19389 postdeps=$lt_postdeps
19390
19391 # The library search path used internally by the compiler when linking
19392 # a shared library.
19393 compiler_lib_search_path=$lt_compiler_lib_search_path
19394
19395 # ### END LIBTOOL CONFIG
19396
19397 _LT_EOF
19398
19399 case $host_os in
19400 aix3*)
19401 cat <<\_LT_EOF >> "$cfgfile"
19402 # AIX sometimes has problems with the GCC collect2 program. For some
19403 # reason, if we set the COLLECT_NAMES environment variable, the problems
19404 # vanish in a puff of smoke.
19405 if test "X${COLLECT_NAMES+set}" != Xset; then
19406 COLLECT_NAMES=
19407 export COLLECT_NAMES
19408 fi
19409 _LT_EOF
19410 ;;
19411 esac
19412
19413
19414 ltmain="$ac_aux_dir/ltmain.sh"
19415
19416
19417 # We use sed instead of cat because bash on DJGPP gets confused if
19418 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19419 # text mode, it properly converts lines to CR/LF. This bash problem
19420 # is reportedly fixed, but why not run on old versions too?
19421 sed '$q' "$ltmain" >> "$cfgfile" \
19422 || (rm -f "$cfgfile"; exit 1)
19423
19424 if test x"$xsi_shell" = xyes; then
19425 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19426 func_dirname ()\
19427 {\
19428 \ case ${1} in\
19429 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19430 \ * ) func_dirname_result="${3}" ;;\
19431 \ esac\
19432 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19433 && mv -f "$cfgfile.tmp" "$cfgfile" \
19434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19435 test 0 -eq $? || _lt_function_replace_fail=:
19436
19437
19438 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19439 func_basename ()\
19440 {\
19441 \ func_basename_result="${1##*/}"\
19442 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19443 && mv -f "$cfgfile.tmp" "$cfgfile" \
19444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19445 test 0 -eq $? || _lt_function_replace_fail=:
19446
19447
19448 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19449 func_dirname_and_basename ()\
19450 {\
19451 \ case ${1} in\
19452 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19453 \ * ) func_dirname_result="${3}" ;;\
19454 \ esac\
19455 \ func_basename_result="${1##*/}"\
19456 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19457 && mv -f "$cfgfile.tmp" "$cfgfile" \
19458 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19459 test 0 -eq $? || _lt_function_replace_fail=:
19460
19461
19462 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19463 func_stripname ()\
19464 {\
19465 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19466 \ # positional parameters, so assign one to ordinary parameter first.\
19467 \ func_stripname_result=${3}\
19468 \ func_stripname_result=${func_stripname_result#"${1}"}\
19469 \ func_stripname_result=${func_stripname_result%"${2}"}\
19470 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19471 && mv -f "$cfgfile.tmp" "$cfgfile" \
19472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19473 test 0 -eq $? || _lt_function_replace_fail=:
19474
19475
19476 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19477 func_split_long_opt ()\
19478 {\
19479 \ func_split_long_opt_name=${1%%=*}\
19480 \ func_split_long_opt_arg=${1#*=}\
19481 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19482 && mv -f "$cfgfile.tmp" "$cfgfile" \
19483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19484 test 0 -eq $? || _lt_function_replace_fail=:
19485
19486
19487 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19488 func_split_short_opt ()\
19489 {\
19490 \ func_split_short_opt_arg=${1#??}\
19491 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19492 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19493 && mv -f "$cfgfile.tmp" "$cfgfile" \
19494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19495 test 0 -eq $? || _lt_function_replace_fail=:
19496
19497
19498 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19499 func_lo2o ()\
19500 {\
19501 \ case ${1} in\
19502 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19503 \ *) func_lo2o_result=${1} ;;\
19504 \ esac\
19505 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19506 && mv -f "$cfgfile.tmp" "$cfgfile" \
19507 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19508 test 0 -eq $? || _lt_function_replace_fail=:
19509
19510
19511 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19512 func_xform ()\
19513 {\
19514 func_xform_result=${1%.*}.lo\
19515 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19516 && mv -f "$cfgfile.tmp" "$cfgfile" \
19517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19518 test 0 -eq $? || _lt_function_replace_fail=:
19519
19520
19521 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19522 func_arith ()\
19523 {\
19524 func_arith_result=$(( $* ))\
19525 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19526 && mv -f "$cfgfile.tmp" "$cfgfile" \
19527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19528 test 0 -eq $? || _lt_function_replace_fail=:
19529
19530
19531 sed -e '/^func_len ()$/,/^} # func_len /c\
19532 func_len ()\
19533 {\
19534 func_len_result=${#1}\
19535 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19536 && mv -f "$cfgfile.tmp" "$cfgfile" \
19537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19538 test 0 -eq $? || _lt_function_replace_fail=:
19539
19540 fi
19541
19542 if test x"$lt_shell_append" = xyes; then
19543 sed -e '/^func_append ()$/,/^} # func_append /c\
19544 func_append ()\
19545 {\
19546 eval "${1}+=\\${2}"\
19547 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19548 && mv -f "$cfgfile.tmp" "$cfgfile" \
19549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19550 test 0 -eq $? || _lt_function_replace_fail=:
19551
19552
19553 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19554 func_append_quoted ()\
19555 {\
19556 \ func_quote_for_eval "${2}"\
19557 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19558 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19559 && mv -f "$cfgfile.tmp" "$cfgfile" \
19560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19561 test 0 -eq $? || _lt_function_replace_fail=:
19562
19563
19564 # Save a `func_append' function call where possible by direct use of '+='
19565 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19566 && mv -f "$cfgfile.tmp" "$cfgfile" \
19567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19568 test 0 -eq $? || _lt_function_replace_fail=:
19569 else
19570 # Save a `func_append' function call even when '+=' is not available
19571 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19572 && mv -f "$cfgfile.tmp" "$cfgfile" \
19573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19574 test 0 -eq $? || _lt_function_replace_fail=:
19575 fi
19576
19577 if test x"$_lt_function_replace_fail" = x":"; then
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19579 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19580 fi
19581
19582
19583 mv -f "$cfgfile" "$ofile" ||
19584 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19585 chmod +x "$ofile"
19586
19587
19588 cat <<_LT_EOF >> "$ofile"
19589
19590 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19591
19592 # The linker used to build libraries.
19593 LD=$lt_LD_CXX
19594
19595 # How to create reloadable object files.
19596 reload_flag=$lt_reload_flag_CXX
19597 reload_cmds=$lt_reload_cmds_CXX
19598
19599 # Commands used to build an old-style archive.
19600 old_archive_cmds=$lt_old_archive_cmds_CXX
19601
19602 # A language specific compiler.
19603 CC=$lt_compiler_CXX
19604
19605 # Is the compiler the GNU compiler?
19606 with_gcc=$GCC_CXX
19607
19608 # Compiler flag to turn off builtin functions.
19609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19610
19611 # Additional compiler flags for building library objects.
19612 pic_flag=$lt_lt_prog_compiler_pic_CXX
19613
19614 # How to pass a linker flag through the compiler.
19615 wl=$lt_lt_prog_compiler_wl_CXX
19616
19617 # Compiler flag to prevent dynamic linking.
19618 link_static_flag=$lt_lt_prog_compiler_static_CXX
19619
19620 # Does compiler simultaneously support -c and -o options?
19621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19622
19623 # Whether or not to add -lc for building shared libraries.
19624 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19625
19626 # Whether or not to disallow shared libs when runtime libs are static.
19627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19628
19629 # Compiler flag to allow reflexive dlopens.
19630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19631
19632 # Compiler flag to generate shared objects directly from archives.
19633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19634
19635 # Whether the compiler copes with passing no objects directly.
19636 compiler_needs_object=$lt_compiler_needs_object_CXX
19637
19638 # Create an old-style archive from a shared archive.
19639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19640
19641 # Create a temporary old-style archive to link instead of a shared archive.
19642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19643
19644 # Commands used to build a shared archive.
19645 archive_cmds=$lt_archive_cmds_CXX
19646 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19647
19648 # Commands used to build a loadable module if different from building
19649 # a shared archive.
19650 module_cmds=$lt_module_cmds_CXX
19651 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19652
19653 # Whether we are building with GNU ld or not.
19654 with_gnu_ld=$lt_with_gnu_ld_CXX
19655
19656 # Flag that allows shared libraries with undefined symbols to be built.
19657 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19658
19659 # Flag that enforces no undefined symbols.
19660 no_undefined_flag=$lt_no_undefined_flag_CXX
19661
19662 # Flag to hardcode \$libdir into a binary during linking.
19663 # This must work even if \$libdir does not exist
19664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19665
19666 # Whether we need a single "-rpath" flag with a separated argument.
19667 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19668
19669 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19670 # DIR into the resulting binary.
19671 hardcode_direct=$hardcode_direct_CXX
19672
19673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19674 # DIR into the resulting binary and the resulting library dependency is
19675 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19676 # library is relocated.
19677 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19678
19679 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19680 # into the resulting binary.
19681 hardcode_minus_L=$hardcode_minus_L_CXX
19682
19683 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19684 # into the resulting binary.
19685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19686
19687 # Set to "yes" if building a shared library automatically hardcodes DIR
19688 # into the library and all subsequent libraries and executables linked
19689 # against it.
19690 hardcode_automatic=$hardcode_automatic_CXX
19691
19692 # Set to yes if linker adds runtime paths of dependent libraries
19693 # to runtime path list.
19694 inherit_rpath=$inherit_rpath_CXX
19695
19696 # Whether libtool must link a program against all its dependency libraries.
19697 link_all_deplibs=$link_all_deplibs_CXX
19698
19699 # Set to "yes" if exported symbols are required.
19700 always_export_symbols=$always_export_symbols_CXX
19701
19702 # The commands to list exported symbols.
19703 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19704
19705 # Symbols that should not be listed in the preloaded symbols.
19706 exclude_expsyms=$lt_exclude_expsyms_CXX
19707
19708 # Symbols that must always be exported.
19709 include_expsyms=$lt_include_expsyms_CXX
19710
19711 # Commands necessary for linking programs (against libraries) with templates.
19712 prelink_cmds=$lt_prelink_cmds_CXX
19713
19714 # Commands necessary for finishing linking programs.
19715 postlink_cmds=$lt_postlink_cmds_CXX
19716
19717 # Specify filename containing input files.
19718 file_list_spec=$lt_file_list_spec_CXX
19719
19720 # How to hardcode a shared library path into an executable.
19721 hardcode_action=$hardcode_action_CXX
19722
19723 # The directories searched by this compiler when creating a shared library.
19724 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19725
19726 # Dependencies to place before and after the objects being linked to
19727 # create a shared library.
19728 predep_objects=$lt_predep_objects_CXX
19729 postdep_objects=$lt_postdep_objects_CXX
19730 predeps=$lt_predeps_CXX
19731 postdeps=$lt_postdeps_CXX
19732
19733 # The library search path used internally by the compiler when linking
19734 # a shared library.
19735 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19736
19737 # ### END LIBTOOL TAG CONFIG: CXX
19738 _LT_EOF
19739
19740 ;;
19741
19742 esac
19743 done # for ac_tag
19744
19745
19746 as_fn_exit 0
19747 _ACEOF
19748 ac_clean_files=$ac_clean_files_save
19749
19750 test $ac_write_fail = 0 ||
19751 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19752
19753
19754 # configure is writing to config.log, and then calls config.status.
19755 # config.status does its own redirection, appending to config.log.
19756 # Unfortunately, on DOS this fails, as config.log is still kept open
19757 # by configure, so config.status won't be able to write to it; its
19758 # output is simply discarded. So we exec the FD to /dev/null,
19759 # effectively closing config.log, so it can be properly (re)opened and
19760 # appended to by config.status. When coming back to configure, we
19761 # need to make the FD available again.
19762 if test "$no_create" != yes; then
19763 ac_cs_success=:
19764 ac_config_status_args=
19765 test "$silent" = yes &&
19766 ac_config_status_args="$ac_config_status_args --quiet"
19767 exec 5>/dev/null
19768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19769 exec 5>>config.log
19770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19771 # would make configure fail if this is the last instruction.
19772 $ac_cs_success || as_fn_exit 1
19773 fi
19774 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19776 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19777 fi
19778